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 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if 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 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_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. 43 if 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 --' 47 elif (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' 50 else 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' 70 fi 71 72 # The user is always right. 73 if 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 } 79 fi 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.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 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 100 IFS=$as_save_IFS 101 102 ;; 103 esac 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. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 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. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export 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. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $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 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if 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 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -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 199 test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202 else 203 as_have_required=no 204 fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207 else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209 as_found=false 210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211 do 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 225 fi 226 fi 227 done;; 228 esac 229 as_found=false 230 done 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 234 fi; } 235 IFS=$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. 244 BASH_ENV=/dev/null 245 ENV=/dev/null 246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247 case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252 esac 253 exec $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 257 exit 255 258 fi 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 (at] 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 273 fi 274 fi 275 fi 276 SHELL=${CONFIG_SHELL-/bin/sh} 277 export SHELL 278 # Unset more variables known to interfere with behavior of common tools. 279 CLICOLOR_FORCE= GREP_OPTIONS= 280 unset CLICOLOR_FORCE GREP_OPTIONS 281 282 ## --------------------- ## 283 ## M4sh Shell Functions. ## 284 ## --------------------- ## 285 # as_fn_unset VAR 286 # --------------- 287 # Portably unset VAR. 288 as_fn_unset () 289 { 290 { eval $1=; unset $1;} 291 } 292 as_unset=as_fn_unset 293 294 # as_fn_set_status STATUS 295 # ----------------------- 296 # Set $? to STATUS, without forking. 297 as_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. 305 as_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. 315 as_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. 363 as_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. 373 if (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 }' 378 else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383 fi # 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. 390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395 else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400 fi # 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. 408 as_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 419 if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422 else 423 as_expr=false 424 fi 425 426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428 else 429 as_basename=false 430 fi 431 432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434 else 435 as_dirname=false 436 fi 437 438 as_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. 458 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461 as_cr_digits='0123456789' 462 as_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 500 ECHO_C= ECHO_N= ECHO_T= 501 case `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';; 511 esac 512 513 rm -f conf$$ conf$$.exe conf$$.file 514 if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516 else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519 fi 520 if (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 534 else 535 as_ln_s='cp -pR' 536 fi 537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538 rmdir conf$$.dir 2>/dev/null 539 540 if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542 else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545 fi 546 547 as_test_x='test -x' 548 as_executable_p=as_fn_executable_p 549 550 # Sed expression to map a string onto a valid CPP name. 551 as_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. 554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557 test -n "$DJDIR" || exec 7<&0 </dev/null 558 exec 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. 563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565 # 566 # Initializations. 567 # 568 ac_default_prefix=/usr/local 569 ac_clean_files= 570 ac_config_libobj_dir=. 571 LIBOBJS= 572 cross_compiling=no 573 subdirs= 574 MFLAGS= 575 MAKEFLAGS= 576 577 # Identity of this package. 578 PACKAGE_NAME= 579 PACKAGE_TARNAME= 580 PACKAGE_VERSION= 581 PACKAGE_STRING= 582 PACKAGE_BUGREPORT= 583 PACKAGE_URL= 584 585 ac_unique_file="xmalloc.c" 586 # Factoring default headers for most tests. 587 ac_includes_default="\ 588 #include <stdio.h> 589 #ifdef HAVE_SYS_TYPES_H 590 # include <sys/types.h> 591 #endif 592 #ifdef HAVE_SYS_STAT_H 593 # include <sys/stat.h> 594 #endif 595 #ifdef STDC_HEADERS 596 # include <stdlib.h> 597 # include <stddef.h> 598 #else 599 # ifdef HAVE_STDLIB_H 600 # include <stdlib.h> 601 # endif 602 #endif 603 #ifdef HAVE_STRING_H 604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605 # include <memory.h> 606 # endif 607 # include <string.h> 608 #endif 609 #ifdef HAVE_STRINGS_H 610 # include <strings.h> 611 #endif 612 #ifdef HAVE_INTTYPES_H 613 # include <inttypes.h> 614 #endif 615 #ifdef HAVE_STDINT_H 616 # include <stdint.h> 617 #endif 618 #ifdef HAVE_UNISTD_H 619 # include <unistd.h> 620 #endif" 621 622 ac_header_list= 623 ac_subst_vars='LTLIBOBJS 624 INSTALL_DEST 625 pexecute 626 target_header_dir 627 CHECK 628 LIBOBJS 629 HWCAP_CFLAGS 630 target_os 631 target_vendor 632 target_cpu 633 target 634 CET_HOST_FLAGS 635 NOASANFLAG 636 PICFLAG 637 INSTALL_DATA 638 INSTALL_SCRIPT 639 INSTALL_PROGRAM 640 OUTPUT_OPTION 641 NO_MINUS_C_MINUS_O 642 ac_libiberty_warn_cflags 643 RANLIB_PLUGIN_OPTION 644 AR_PLUGIN_OPTION 645 LLVM_CONFIG 646 EGREP 647 GREP 648 CPP 649 OBJEXT 650 EXEEXT 651 ac_ct_CC 652 CPPFLAGS 653 LDFLAGS 654 CFLAGS 655 CC 656 RANLIB 657 AR 658 host_os 659 host_vendor 660 host_cpu 661 host 662 build_os 663 build_vendor 664 build_cpu 665 build 666 HAVE_PERL 667 PERL 668 BUILD_INFO 669 MAKEINFO 670 ETAGS 671 NOTMAINT 672 MAINT 673 libiberty_topdir 674 target_alias 675 host_alias 676 build_alias 677 LIBS 678 ECHO_T 679 ECHO_N 680 ECHO_C 681 DEFS 682 mandir 683 localedir 684 libdir 685 psdir 686 pdfdir 687 dvidir 688 htmldir 689 infodir 690 docdir 691 oldincludedir 692 includedir 693 localstatedir 694 sharedstatedir 695 sysconfdir 696 datadir 697 datarootdir 698 libexecdir 699 sbindir 700 bindir 701 program_transform_name 702 prefix 703 exec_prefix 704 PACKAGE_URL 705 PACKAGE_BUGREPORT 706 PACKAGE_STRING 707 PACKAGE_VERSION 708 PACKAGE_TARNAME 709 PACKAGE_NAME 710 PATH_SEPARATOR 711 SHELL' 712 ac_subst_files='host_makefile_frag' 713 ac_user_opts=' 714 enable_option_checking 715 with_target_subdir 716 with_build_subdir 717 with_cross_host 718 with_newlib 719 enable_maintainer_mode 720 enable_multilib 721 enable_install_libiberty 722 enable_largefile 723 enable_cet 724 ' 725 ac_precious_vars='build_alias 726 host_alias 727 target_alias 728 CC 729 CFLAGS 730 LDFLAGS 731 LIBS 732 CPPFLAGS 733 CPP' 734 735 736 # Initialize some variables set by options. 737 ac_init_help= 738 ac_init_version=false 739 ac_unrecognized_opts= 740 ac_unrecognized_sep= 741 # The variables have the same names as the options, with 742 # dashes changed to underlines. 743 cache_file=/dev/null 744 exec_prefix=NONE 745 no_create= 746 no_recursion= 747 prefix=NONE 748 program_prefix=NONE 749 program_suffix=NONE 750 program_transform_name=s,x,x, 751 silent= 752 site= 753 srcdir= 754 verbose= 755 x_includes=NONE 756 x_libraries=NONE 757 758 # Installation directory options. 759 # These are left unexpanded so users can "make install exec_prefix=/foo" 760 # and all the variables that are supposed to be based on exec_prefix 761 # by default will actually change. 762 # Use braces instead of parens because sh, perl, etc. also accept them. 763 # (The list follows the same order as the GNU Coding Standards.) 764 bindir='${exec_prefix}/bin' 765 sbindir='${exec_prefix}/sbin' 766 libexecdir='${exec_prefix}/libexec' 767 datarootdir='${prefix}/share' 768 datadir='${datarootdir}' 769 sysconfdir='${prefix}/etc' 770 sharedstatedir='${prefix}/com' 771 localstatedir='${prefix}/var' 772 includedir='${prefix}/include' 773 oldincludedir='/usr/include' 774 docdir='${datarootdir}/doc/${PACKAGE}' 775 infodir='${datarootdir}/info' 776 htmldir='${docdir}' 777 dvidir='${docdir}' 778 pdfdir='${docdir}' 779 psdir='${docdir}' 780 libdir='${exec_prefix}/lib' 781 localedir='${datarootdir}/locale' 782 mandir='${datarootdir}/man' 783 784 ac_prev= 785 ac_dashdash= 786 for ac_option 787 do 788 # If the previous option needs an argument, assign it. 789 if test -n "$ac_prev"; then 790 eval $ac_prev=\$ac_option 791 ac_prev= 792 continue 793 fi 794 795 case $ac_option in 796 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 797 *=) ac_optarg= ;; 798 *) ac_optarg=yes ;; 799 esac 800 801 # Accept the important Cygnus configure options, so we can diagnose typos. 802 803 case $ac_dashdash$ac_option in 804 --) 805 ac_dashdash=yes ;; 806 807 -bindir | --bindir | --bindi | --bind | --bin | --bi) 808 ac_prev=bindir ;; 809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 810 bindir=$ac_optarg ;; 811 812 -build | --build | --buil | --bui | --bu) 813 ac_prev=build_alias ;; 814 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 815 build_alias=$ac_optarg ;; 816 817 -cache-file | --cache-file | --cache-fil | --cache-fi \ 818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 819 ac_prev=cache_file ;; 820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 822 cache_file=$ac_optarg ;; 823 824 --config-cache | -C) 825 cache_file=config.cache ;; 826 827 -datadir | --datadir | --datadi | --datad) 828 ac_prev=datadir ;; 829 -datadir=* | --datadir=* | --datadi=* | --datad=*) 830 datadir=$ac_optarg ;; 831 832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 833 | --dataroo | --dataro | --datar) 834 ac_prev=datarootdir ;; 835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 837 datarootdir=$ac_optarg ;; 838 839 -disable-* | --disable-*) 840 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 841 # Reject names that are not valid shell variable names. 842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 843 as_fn_error $? "invalid feature name: $ac_useropt" 844 ac_useropt_orig=$ac_useropt 845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 846 case $ac_user_opts in 847 *" 848 "enable_$ac_useropt" 849 "*) ;; 850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 851 ac_unrecognized_sep=', ';; 852 esac 853 eval enable_$ac_useropt=no ;; 854 855 -docdir | --docdir | --docdi | --doc | --do) 856 ac_prev=docdir ;; 857 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 858 docdir=$ac_optarg ;; 859 860 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 861 ac_prev=dvidir ;; 862 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 863 dvidir=$ac_optarg ;; 864 865 -enable-* | --enable-*) 866 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 867 # Reject names that are not valid shell variable names. 868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 869 as_fn_error $? "invalid feature name: $ac_useropt" 870 ac_useropt_orig=$ac_useropt 871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 872 case $ac_user_opts in 873 *" 874 "enable_$ac_useropt" 875 "*) ;; 876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 877 ac_unrecognized_sep=', ';; 878 esac 879 eval enable_$ac_useropt=\$ac_optarg ;; 880 881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 883 | --exec | --exe | --ex) 884 ac_prev=exec_prefix ;; 885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 887 | --exec=* | --exe=* | --ex=*) 888 exec_prefix=$ac_optarg ;; 889 890 -gas | --gas | --ga | --g) 891 # Obsolete; use --with-gas. 892 with_gas=yes ;; 893 894 -help | --help | --hel | --he | -h) 895 ac_init_help=long ;; 896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 897 ac_init_help=recursive ;; 898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 899 ac_init_help=short ;; 900 901 -host | --host | --hos | --ho) 902 ac_prev=host_alias ;; 903 -host=* | --host=* | --hos=* | --ho=*) 904 host_alias=$ac_optarg ;; 905 906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 907 ac_prev=htmldir ;; 908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 909 | --ht=*) 910 htmldir=$ac_optarg ;; 911 912 -includedir | --includedir | --includedi | --included | --include \ 913 | --includ | --inclu | --incl | --inc) 914 ac_prev=includedir ;; 915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 916 | --includ=* | --inclu=* | --incl=* | --inc=*) 917 includedir=$ac_optarg ;; 918 919 -infodir | --infodir | --infodi | --infod | --info | --inf) 920 ac_prev=infodir ;; 921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 922 infodir=$ac_optarg ;; 923 924 -libdir | --libdir | --libdi | --libd) 925 ac_prev=libdir ;; 926 -libdir=* | --libdir=* | --libdi=* | --libd=*) 927 libdir=$ac_optarg ;; 928 929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 930 | --libexe | --libex | --libe) 931 ac_prev=libexecdir ;; 932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 933 | --libexe=* | --libex=* | --libe=*) 934 libexecdir=$ac_optarg ;; 935 936 -localedir | --localedir | --localedi | --localed | --locale) 937 ac_prev=localedir ;; 938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 939 localedir=$ac_optarg ;; 940 941 -localstatedir | --localstatedir | --localstatedi | --localstated \ 942 | --localstate | --localstat | --localsta | --localst | --locals) 943 ac_prev=localstatedir ;; 944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 946 localstatedir=$ac_optarg ;; 947 948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 949 ac_prev=mandir ;; 950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 951 mandir=$ac_optarg ;; 952 953 -nfp | --nfp | --nf) 954 # Obsolete; use --without-fp. 955 with_fp=no ;; 956 957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 958 | --no-cr | --no-c | -n) 959 no_create=yes ;; 960 961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 963 no_recursion=yes ;; 964 965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 967 | --oldin | --oldi | --old | --ol | --o) 968 ac_prev=oldincludedir ;; 969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 972 oldincludedir=$ac_optarg ;; 973 974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 975 ac_prev=prefix ;; 976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 977 prefix=$ac_optarg ;; 978 979 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 980 | --program-pre | --program-pr | --program-p) 981 ac_prev=program_prefix ;; 982 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 984 program_prefix=$ac_optarg ;; 985 986 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 987 | --program-suf | --program-su | --program-s) 988 ac_prev=program_suffix ;; 989 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 991 program_suffix=$ac_optarg ;; 992 993 -program-transform-name | --program-transform-name \ 994 | --program-transform-nam | --program-transform-na \ 995 | --program-transform-n | --program-transform- \ 996 | --program-transform | --program-transfor \ 997 | --program-transfo | --program-transf \ 998 | --program-trans | --program-tran \ 999 | --progr-tra | --program-tr | --program-t) 1000 ac_prev=program_transform_name ;; 1001 -program-transform-name=* | --program-transform-name=* \ 1002 | --program-transform-nam=* | --program-transform-na=* \ 1003 | --program-transform-n=* | --program-transform-=* \ 1004 | --program-transform=* | --program-transfor=* \ 1005 | --program-transfo=* | --program-transf=* \ 1006 | --program-trans=* | --program-tran=* \ 1007 | --progr-tra=* | --program-tr=* | --program-t=*) 1008 program_transform_name=$ac_optarg ;; 1009 1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1011 ac_prev=pdfdir ;; 1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1013 pdfdir=$ac_optarg ;; 1014 1015 -psdir | --psdir | --psdi | --psd | --ps) 1016 ac_prev=psdir ;; 1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1018 psdir=$ac_optarg ;; 1019 1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1021 | -silent | --silent | --silen | --sile | --sil) 1022 silent=yes ;; 1023 1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1025 ac_prev=sbindir ;; 1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1027 | --sbi=* | --sb=*) 1028 sbindir=$ac_optarg ;; 1029 1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1032 | --sharedst | --shareds | --shared | --share | --shar \ 1033 | --sha | --sh) 1034 ac_prev=sharedstatedir ;; 1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1038 | --sha=* | --sh=*) 1039 sharedstatedir=$ac_optarg ;; 1040 1041 -site | --site | --sit) 1042 ac_prev=site ;; 1043 -site=* | --site=* | --sit=*) 1044 site=$ac_optarg ;; 1045 1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1047 ac_prev=srcdir ;; 1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1049 srcdir=$ac_optarg ;; 1050 1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1052 | --syscon | --sysco | --sysc | --sys | --sy) 1053 ac_prev=sysconfdir ;; 1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1056 sysconfdir=$ac_optarg ;; 1057 1058 -target | --target | --targe | --targ | --tar | --ta | --t) 1059 ac_prev=target_alias ;; 1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1061 target_alias=$ac_optarg ;; 1062 1063 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1064 verbose=yes ;; 1065 1066 -version | --version | --versio | --versi | --vers | -V) 1067 ac_init_version=: ;; 1068 1069 -with-* | --with-*) 1070 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1071 # Reject names that are not valid shell variable names. 1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1073 as_fn_error $? "invalid package name: $ac_useropt" 1074 ac_useropt_orig=$ac_useropt 1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1076 case $ac_user_opts in 1077 *" 1078 "with_$ac_useropt" 1079 "*) ;; 1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1081 ac_unrecognized_sep=', ';; 1082 esac 1083 eval with_$ac_useropt=\$ac_optarg ;; 1084 1085 -without-* | --without-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 as_fn_error $? "invalid package name: $ac_useropt" 1090 ac_useropt_orig=$ac_useropt 1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1092 case $ac_user_opts in 1093 *" 1094 "with_$ac_useropt" 1095 "*) ;; 1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1097 ac_unrecognized_sep=', ';; 1098 esac 1099 eval with_$ac_useropt=no ;; 1100 1101 --x) 1102 # Obsolete; use --with-x. 1103 with_x=yes ;; 1104 1105 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1106 | --x-incl | --x-inc | --x-in | --x-i) 1107 ac_prev=x_includes ;; 1108 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1109 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1110 x_includes=$ac_optarg ;; 1111 1112 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1113 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1114 ac_prev=x_libraries ;; 1115 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1116 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1117 x_libraries=$ac_optarg ;; 1118 1119 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1120 Try \`$0 --help' for more information" 1121 ;; 1122 1123 *=*) 1124 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1125 # Reject names that are not valid shell variable names. 1126 case $ac_envvar in #( 1127 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1128 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1129 esac 1130 eval $ac_envvar=\$ac_optarg 1131 export $ac_envvar ;; 1132 1133 *) 1134 # FIXME: should be removed in autoconf 3.0. 1135 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1136 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1137 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1138 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1139 ;; 1140 1141 esac 1142 done 1143 1144 if test -n "$ac_prev"; then 1145 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1146 as_fn_error $? "missing argument to $ac_option" 1147 fi 1148 1149 if test -n "$ac_unrecognized_opts"; then 1150 case $enable_option_checking in 1151 no) ;; 1152 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1153 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1154 esac 1155 fi 1156 1157 # Check all directory arguments for consistency. 1158 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1159 datadir sysconfdir sharedstatedir localstatedir includedir \ 1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1161 libdir localedir mandir 1162 do 1163 eval ac_val=\$$ac_var 1164 # Remove trailing slashes. 1165 case $ac_val in 1166 */ ) 1167 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1168 eval $ac_var=\$ac_val;; 1169 esac 1170 # Be sure to have absolute directory names. 1171 case $ac_val in 1172 [\\/$]* | ?:[\\/]* ) continue;; 1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1174 esac 1175 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1176 done 1177 1178 # There might be people who depend on the old broken behavior: `$host' 1179 # used to hold the argument of --host etc. 1180 # FIXME: To remove some day. 1181 build=$build_alias 1182 host=$host_alias 1183 target=$target_alias 1184 1185 # FIXME: To remove some day. 1186 if test "x$host_alias" != x; then 1187 if test "x$build_alias" = x; then 1188 cross_compiling=maybe 1189 elif test "x$build_alias" != "x$host_alias"; then 1190 cross_compiling=yes 1191 fi 1192 fi 1193 1194 ac_tool_prefix= 1195 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1196 1197 test "$silent" = yes && exec 6>/dev/null 1198 1199 1200 ac_pwd=`pwd` && test -n "$ac_pwd" && 1201 ac_ls_di=`ls -di .` && 1202 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1203 as_fn_error $? "working directory cannot be determined" 1204 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1205 as_fn_error $? "pwd does not report name of working directory" 1206 1207 1208 # Find the source files, if location was not specified. 1209 if test -z "$srcdir"; then 1210 ac_srcdir_defaulted=yes 1211 # Try the directory containing this script, then the parent directory. 1212 ac_confdir=`$as_dirname -- "$as_myself" || 1213 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1214 X"$as_myself" : 'X\(//\)[^/]' \| \ 1215 X"$as_myself" : 'X\(//\)$' \| \ 1216 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1217 $as_echo X"$as_myself" | 1218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1219 s//\1/ 1220 q 1221 } 1222 /^X\(\/\/\)[^/].*/{ 1223 s//\1/ 1224 q 1225 } 1226 /^X\(\/\/\)$/{ 1227 s//\1/ 1228 q 1229 } 1230 /^X\(\/\).*/{ 1231 s//\1/ 1232 q 1233 } 1234 s/.*/./; q'` 1235 srcdir=$ac_confdir 1236 if test ! -r "$srcdir/$ac_unique_file"; then 1237 srcdir=.. 1238 fi 1239 else 1240 ac_srcdir_defaulted=no 1241 fi 1242 if test ! -r "$srcdir/$ac_unique_file"; then 1243 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1244 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1245 fi 1246 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1247 ac_abs_confdir=`( 1248 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1249 pwd)` 1250 # When building in place, set srcdir=. 1251 if test "$ac_abs_confdir" = "$ac_pwd"; then 1252 srcdir=. 1253 fi 1254 # Remove unnecessary trailing slashes from srcdir. 1255 # Double slashes in file names in object file debugging info 1256 # mess up M-x gdb in Emacs. 1257 case $srcdir in 1258 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1259 esac 1260 for ac_var in $ac_precious_vars; do 1261 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1262 eval ac_env_${ac_var}_value=\$${ac_var} 1263 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1264 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1265 done 1266 1267 # 1268 # Report the --help message. 1269 # 1270 if test "$ac_init_help" = "long"; then 1271 # Omit some internal or obsolete options to make the list less imposing. 1272 # This message is too long to be a string in the A/UX 3.1 sh. 1273 cat <<_ACEOF 1274 \`configure' configures this package to adapt to many kinds of systems. 1275 1276 Usage: $0 [OPTION]... [VAR=VALUE]... 1277 1278 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1279 VAR=VALUE. See below for descriptions of some of the useful variables. 1280 1281 Defaults for the options are specified in brackets. 1282 1283 Configuration: 1284 -h, --help display this help and exit 1285 --help=short display options specific to this package 1286 --help=recursive display the short help of all the included packages 1287 -V, --version display version information and exit 1288 -q, --quiet, --silent do not print \`checking ...' messages 1289 --cache-file=FILE cache test results in FILE [disabled] 1290 -C, --config-cache alias for \`--cache-file=config.cache' 1291 -n, --no-create do not create output files 1292 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1293 1294 Installation directories: 1295 --prefix=PREFIX install architecture-independent files in PREFIX 1296 [$ac_default_prefix] 1297 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1298 [PREFIX] 1299 1300 By default, \`make install' will install all the files in 1301 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1302 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1303 for instance \`--prefix=\$HOME'. 1304 1305 For better control, use the options below. 1306 1307 Fine tuning of the installation directories: 1308 --bindir=DIR user executables [EPREFIX/bin] 1309 --sbindir=DIR system admin executables [EPREFIX/sbin] 1310 --libexecdir=DIR program executables [EPREFIX/libexec] 1311 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1312 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1313 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1314 --libdir=DIR object code libraries [EPREFIX/lib] 1315 --includedir=DIR C header files [PREFIX/include] 1316 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1317 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1318 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1319 --infodir=DIR info documentation [DATAROOTDIR/info] 1320 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1321 --mandir=DIR man documentation [DATAROOTDIR/man] 1322 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1323 --htmldir=DIR html documentation [DOCDIR] 1324 --dvidir=DIR dvi documentation [DOCDIR] 1325 --pdfdir=DIR pdf documentation [DOCDIR] 1326 --psdir=DIR ps documentation [DOCDIR] 1327 _ACEOF 1328 1329 cat <<\_ACEOF 1330 1331 System types: 1332 --build=BUILD configure for building on BUILD [guessed] 1333 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1334 --target=TARGET configure for building compilers for TARGET [HOST] 1335 _ACEOF 1336 fi 1337 1338 if test -n "$ac_init_help"; then 1339 1340 cat <<\_ACEOF 1341 1342 Optional Features: 1343 --disable-option-checking ignore unrecognized --enable/--with options 1344 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1345 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1346 --enable-maintainer-mode 1347 enable make rules and dependencies not useful 1348 (and sometimes confusing) to the casual installer 1349 --enable-multilib build many library versions (default) 1350 --enable-install-libiberty Install headers and library for end users 1351 --disable-largefile omit support for large files 1352 --enable-cet enable Intel CET in host libraries [default=auto] 1353 1354 Optional Packages: 1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1357 --with-target-subdir=SUBDIR Configuring in a subdirectory for target 1358 --with-build-subdir=SUBDIR Configuring in a subdirectory for build 1359 --with-cross-host=HOST Configuring with a cross compiler 1360 --with-newlib Configuring with newlib 1361 1362 Some influential environment variables: 1363 CC C compiler command 1364 CFLAGS C compiler flags 1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1366 nonstandard directory <lib dir> 1367 LIBS libraries to pass to the linker, e.g. -l<library> 1368 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1369 you have headers in a nonstandard directory <include dir> 1370 CPP C preprocessor 1371 1372 Use these variables to override the choices made by `configure' or to help 1373 it to find libraries and programs with nonstandard names/locations. 1374 1375 Report bugs to the package provider. 1376 _ACEOF 1377 ac_status=$? 1378 fi 1379 1380 if test "$ac_init_help" = "recursive"; then 1381 # If there are subdirs, report their specific --help. 1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1383 test -d "$ac_dir" || 1384 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1385 continue 1386 ac_builddir=. 1387 1388 case "$ac_dir" in 1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1390 *) 1391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1392 # A ".." for each directory in $ac_dir_suffix. 1393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1394 case $ac_top_builddir_sub in 1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1397 esac ;; 1398 esac 1399 ac_abs_top_builddir=$ac_pwd 1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1401 # for backward compatibility: 1402 ac_top_builddir=$ac_top_build_prefix 1403 1404 case $srcdir in 1405 .) # We are building in place. 1406 ac_srcdir=. 1407 ac_top_srcdir=$ac_top_builddir_sub 1408 ac_abs_top_srcdir=$ac_pwd ;; 1409 [\\/]* | ?:[\\/]* ) # Absolute name. 1410 ac_srcdir=$srcdir$ac_dir_suffix; 1411 ac_top_srcdir=$srcdir 1412 ac_abs_top_srcdir=$srcdir ;; 1413 *) # Relative name. 1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1415 ac_top_srcdir=$ac_top_build_prefix$srcdir 1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1417 esac 1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1419 1420 cd "$ac_dir" || { ac_status=$?; continue; } 1421 # Check for guested configure. 1422 if test -f "$ac_srcdir/configure.gnu"; then 1423 echo && 1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1425 elif test -f "$ac_srcdir/configure"; then 1426 echo && 1427 $SHELL "$ac_srcdir/configure" --help=recursive 1428 else 1429 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1430 fi || ac_status=$? 1431 cd "$ac_pwd" || { ac_status=$?; break; } 1432 done 1433 fi 1434 1435 test -n "$ac_init_help" && exit $ac_status 1436 if $ac_init_version; then 1437 cat <<\_ACEOF 1438 configure 1439 generated by GNU Autoconf 2.69 1440 1441 Copyright (C) 2012 Free Software Foundation, Inc. 1442 This configure script is free software; the Free Software Foundation 1443 gives unlimited permission to copy, distribute and modify it. 1444 _ACEOF 1445 exit 1446 fi 1447 1448 ## ------------------------ ## 1449 ## Autoconf initialization. ## 1450 ## ------------------------ ## 1451 1452 # ac_fn_c_try_compile LINENO 1453 # -------------------------- 1454 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1455 ac_fn_c_try_compile () 1456 { 1457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1458 rm -f conftest.$ac_objext 1459 if { { ac_try="$ac_compile" 1460 case "(($ac_try" in 1461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1462 *) ac_try_echo=$ac_try;; 1463 esac 1464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1465 $as_echo "$ac_try_echo"; } >&5 1466 (eval "$ac_compile") 2>conftest.err 1467 ac_status=$? 1468 if test -s conftest.err; then 1469 grep -v '^ *+' conftest.err >conftest.er1 1470 cat conftest.er1 >&5 1471 mv -f conftest.er1 conftest.err 1472 fi 1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1474 test $ac_status = 0; } && { 1475 test -z "$ac_c_werror_flag" || 1476 test ! -s conftest.err 1477 } && test -s conftest.$ac_objext; then : 1478 ac_retval=0 1479 else 1480 $as_echo "$as_me: failed program was:" >&5 1481 sed 's/^/| /' conftest.$ac_ext >&5 1482 1483 ac_retval=1 1484 fi 1485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1486 as_fn_set_status $ac_retval 1487 1488 } # ac_fn_c_try_compile 1489 1490 # ac_fn_c_try_cpp LINENO 1491 # ---------------------- 1492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1493 ac_fn_c_try_cpp () 1494 { 1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1496 if { { ac_try="$ac_cpp conftest.$ac_ext" 1497 case "(($ac_try" in 1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1499 *) ac_try_echo=$ac_try;; 1500 esac 1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1502 $as_echo "$ac_try_echo"; } >&5 1503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1504 ac_status=$? 1505 if test -s conftest.err; then 1506 grep -v '^ *+' conftest.err >conftest.er1 1507 cat conftest.er1 >&5 1508 mv -f conftest.er1 conftest.err 1509 fi 1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1511 test $ac_status = 0; } > conftest.i && { 1512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1513 test ! -s conftest.err 1514 }; then : 1515 ac_retval=0 1516 else 1517 $as_echo "$as_me: failed program was:" >&5 1518 sed 's/^/| /' conftest.$ac_ext >&5 1519 1520 ac_retval=1 1521 fi 1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1523 as_fn_set_status $ac_retval 1524 1525 } # ac_fn_c_try_cpp 1526 1527 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1528 # ------------------------------------------------------- 1529 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1530 # the include files in INCLUDES and setting the cache variable VAR 1531 # accordingly. 1532 ac_fn_c_check_header_mongrel () 1533 { 1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1535 if eval \${$3+:} false; then : 1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1537 $as_echo_n "checking for $2... " >&6; } 1538 if eval \${$3+:} false; then : 1539 $as_echo_n "(cached) " >&6 1540 fi 1541 eval ac_res=\$$3 1542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1543 $as_echo "$ac_res" >&6; } 1544 else 1545 # Is the header compilable? 1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1547 $as_echo_n "checking $2 usability... " >&6; } 1548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1549 /* end confdefs.h. */ 1550 $4 1551 #include <$2> 1552 _ACEOF 1553 if ac_fn_c_try_compile "$LINENO"; then : 1554 ac_header_compiler=yes 1555 else 1556 ac_header_compiler=no 1557 fi 1558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1560 $as_echo "$ac_header_compiler" >&6; } 1561 1562 # Is the header present? 1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1564 $as_echo_n "checking $2 presence... " >&6; } 1565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1566 /* end confdefs.h. */ 1567 #include <$2> 1568 _ACEOF 1569 if ac_fn_c_try_cpp "$LINENO"; then : 1570 ac_header_preproc=yes 1571 else 1572 ac_header_preproc=no 1573 fi 1574 rm -f conftest.err conftest.i conftest.$ac_ext 1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1576 $as_echo "$ac_header_preproc" >&6; } 1577 1578 # So? What about this header? 1579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1580 yes:no: ) 1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1582 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1584 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1585 ;; 1586 no:yes:* ) 1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1588 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1590 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1592 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1594 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1596 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1597 ;; 1598 esac 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1600 $as_echo_n "checking for $2... " >&6; } 1601 if eval \${$3+:} false; then : 1602 $as_echo_n "(cached) " >&6 1603 else 1604 eval "$3=\$ac_header_compiler" 1605 fi 1606 eval ac_res=\$$3 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1608 $as_echo "$ac_res" >&6; } 1609 fi 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 1612 } # ac_fn_c_check_header_mongrel 1613 1614 # ac_fn_c_try_run LINENO 1615 # ---------------------- 1616 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1617 # that executables *can* be run. 1618 ac_fn_c_try_run () 1619 { 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 if { { ac_try="$ac_link" 1622 case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625 esac 1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627 $as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_link") 2>&5 1629 ac_status=$? 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1632 { { case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635 esac 1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637 $as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_try") 2>&5 1639 ac_status=$? 1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1641 test $ac_status = 0; }; }; then : 1642 ac_retval=0 1643 else 1644 $as_echo "$as_me: program exited with status $ac_status" >&5 1645 $as_echo "$as_me: failed program was:" >&5 1646 sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=$ac_status 1649 fi 1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 as_fn_set_status $ac_retval 1653 1654 } # ac_fn_c_try_run 1655 1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1657 # ------------------------------------------------------- 1658 # Tests whether HEADER exists and can be compiled using the include files in 1659 # INCLUDES, setting the cache variable VAR accordingly. 1660 ac_fn_c_check_header_compile () 1661 { 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1664 $as_echo_n "checking for $2... " >&6; } 1665 if eval \${$3+:} false; then : 1666 $as_echo_n "(cached) " >&6 1667 else 1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669 /* end confdefs.h. */ 1670 $4 1671 #include <$2> 1672 _ACEOF 1673 if ac_fn_c_try_compile "$LINENO"; then : 1674 eval "$3=yes" 1675 else 1676 eval "$3=no" 1677 fi 1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1679 fi 1680 eval ac_res=\$$3 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682 $as_echo "$ac_res" >&6; } 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 1685 } # ac_fn_c_check_header_compile 1686 1687 # ac_fn_c_try_link LINENO 1688 # ----------------------- 1689 # Try to link conftest.$ac_ext, and return whether this succeeded. 1690 ac_fn_c_try_link () 1691 { 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext conftest$ac_exeext 1694 if { { ac_try="$ac_link" 1695 case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698 esac 1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700 $as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_link") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest$ac_exeext && { 1713 test "$cross_compiling" = yes || 1714 test -x conftest$ac_exeext 1715 }; then : 1716 ac_retval=0 1717 else 1718 $as_echo "$as_me: failed program was:" >&5 1719 sed 's/^/| /' conftest.$ac_ext >&5 1720 1721 ac_retval=1 1722 fi 1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1725 # interfere with the next link command; also delete a directory that is 1726 # left behind by Apple's compiler. We do this before executing the actions. 1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 as_fn_set_status $ac_retval 1730 1731 } # ac_fn_c_try_link 1732 1733 # ac_fn_c_check_header_preproc LINENO HEADER VAR 1734 # ---------------------------------------------- 1735 # Tests whether HEADER is present, setting the cache variable VAR accordingly. 1736 ac_fn_c_check_header_preproc () 1737 { 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740 $as_echo_n "checking for $2... " >&6; } 1741 if eval \${$3+:} false; then : 1742 $as_echo_n "(cached) " >&6 1743 else 1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745 /* end confdefs.h. */ 1746 #include <$2> 1747 _ACEOF 1748 if ac_fn_c_try_cpp "$LINENO"; then : 1749 eval "$3=yes" 1750 else 1751 eval "$3=no" 1752 fi 1753 rm -f conftest.err conftest.i conftest.$ac_ext 1754 fi 1755 eval ac_res=\$$3 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1757 $as_echo "$ac_res" >&6; } 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 1760 } # ac_fn_c_check_header_preproc 1761 1762 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1763 # -------------------------------------------- 1764 # Tries to find the compile-time value of EXPR in a program that includes 1765 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1766 # computed 1767 ac_fn_c_compute_int () 1768 { 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 if test "$cross_compiling" = yes; then 1771 # Depending upon the size, compute the lo and hi bounds. 1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1773 /* end confdefs.h. */ 1774 $4 1775 int 1776 main () 1777 { 1778 static int test_array [1 - 2 * !(($2) >= 0)]; 1779 test_array [0] = 0; 1780 return test_array [0]; 1781 1782 ; 1783 return 0; 1784 } 1785 _ACEOF 1786 if ac_fn_c_try_compile "$LINENO"; then : 1787 ac_lo=0 ac_mid=0 1788 while :; do 1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1790 /* end confdefs.h. */ 1791 $4 1792 int 1793 main () 1794 { 1795 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1796 test_array [0] = 0; 1797 return test_array [0]; 1798 1799 ; 1800 return 0; 1801 } 1802 _ACEOF 1803 if ac_fn_c_try_compile "$LINENO"; then : 1804 ac_hi=$ac_mid; break 1805 else 1806 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1807 if test $ac_lo -le $ac_mid; then 1808 ac_lo= ac_hi= 1809 break 1810 fi 1811 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1812 fi 1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1814 done 1815 else 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817 /* end confdefs.h. */ 1818 $4 1819 int 1820 main () 1821 { 1822 static int test_array [1 - 2 * !(($2) < 0)]; 1823 test_array [0] = 0; 1824 return test_array [0]; 1825 1826 ; 1827 return 0; 1828 } 1829 _ACEOF 1830 if ac_fn_c_try_compile "$LINENO"; then : 1831 ac_hi=-1 ac_mid=-1 1832 while :; do 1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834 /* end confdefs.h. */ 1835 $4 1836 int 1837 main () 1838 { 1839 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1840 test_array [0] = 0; 1841 return test_array [0]; 1842 1843 ; 1844 return 0; 1845 } 1846 _ACEOF 1847 if ac_fn_c_try_compile "$LINENO"; then : 1848 ac_lo=$ac_mid; break 1849 else 1850 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1851 if test $ac_mid -le $ac_hi; then 1852 ac_lo= ac_hi= 1853 break 1854 fi 1855 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1856 fi 1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1858 done 1859 else 1860 ac_lo= ac_hi= 1861 fi 1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1863 fi 1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1865 # Binary search between lo and hi bounds. 1866 while test "x$ac_lo" != "x$ac_hi"; do 1867 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1869 /* end confdefs.h. */ 1870 $4 1871 int 1872 main () 1873 { 1874 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1875 test_array [0] = 0; 1876 return test_array [0]; 1877 1878 ; 1879 return 0; 1880 } 1881 _ACEOF 1882 if ac_fn_c_try_compile "$LINENO"; then : 1883 ac_hi=$ac_mid 1884 else 1885 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1886 fi 1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1888 done 1889 case $ac_lo in #(( 1890 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1891 '') ac_retval=1 ;; 1892 esac 1893 else 1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1895 /* end confdefs.h. */ 1896 $4 1897 static long int longval () { return $2; } 1898 static unsigned long int ulongval () { return $2; } 1899 #include <stdio.h> 1900 #include <stdlib.h> 1901 int 1902 main () 1903 { 1904 1905 FILE *f = fopen ("conftest.val", "w"); 1906 if (! f) 1907 return 1; 1908 if (($2) < 0) 1909 { 1910 long int i = longval (); 1911 if (i != ($2)) 1912 return 1; 1913 fprintf (f, "%ld", i); 1914 } 1915 else 1916 { 1917 unsigned long int i = ulongval (); 1918 if (i != ($2)) 1919 return 1; 1920 fprintf (f, "%lu", i); 1921 } 1922 /* Do not output a trailing newline, as this causes \r\n confusion 1923 on some platforms. */ 1924 return ferror (f) || fclose (f) != 0; 1925 1926 ; 1927 return 0; 1928 } 1929 _ACEOF 1930 if ac_fn_c_try_run "$LINENO"; then : 1931 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1932 else 1933 ac_retval=1 1934 fi 1935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1936 conftest.$ac_objext conftest.beam conftest.$ac_ext 1937 rm -f conftest.val 1938 1939 fi 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 as_fn_set_status $ac_retval 1942 1943 } # ac_fn_c_compute_int 1944 1945 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1946 # ------------------------------------------- 1947 # Tests whether TYPE exists after having included INCLUDES, setting cache 1948 # variable VAR accordingly. 1949 ac_fn_c_check_type () 1950 { 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1953 $as_echo_n "checking for $2... " >&6; } 1954 if eval \${$3+:} false; then : 1955 $as_echo_n "(cached) " >&6 1956 else 1957 eval "$3=no" 1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959 /* end confdefs.h. */ 1960 $4 1961 int 1962 main () 1963 { 1964 if (sizeof ($2)) 1965 return 0; 1966 ; 1967 return 0; 1968 } 1969 _ACEOF 1970 if ac_fn_c_try_compile "$LINENO"; then : 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972 /* end confdefs.h. */ 1973 $4 1974 int 1975 main () 1976 { 1977 if (sizeof (($2))) 1978 return 0; 1979 ; 1980 return 0; 1981 } 1982 _ACEOF 1983 if ac_fn_c_try_compile "$LINENO"; then : 1984 1985 else 1986 eval "$3=yes" 1987 fi 1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1989 fi 1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1991 fi 1992 eval ac_res=\$$3 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1994 $as_echo "$ac_res" >&6; } 1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1996 1997 } # ac_fn_c_check_type 1998 1999 # ac_fn_c_check_func LINENO FUNC VAR 2000 # ---------------------------------- 2001 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2002 ac_fn_c_check_func () 2003 { 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2006 $as_echo_n "checking for $2... " >&6; } 2007 if eval \${$3+:} false; then : 2008 $as_echo_n "(cached) " >&6 2009 else 2010 if test x$gcc_no_link = xyes; then 2011 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 2012 fi 2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014 /* end confdefs.h. */ 2015 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2016 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2017 #define $2 innocuous_$2 2018 2019 /* System header to define __stub macros and hopefully few prototypes, 2020 which can conflict with char $2 (); below. 2021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2022 <limits.h> exists even on freestanding compilers. */ 2023 2024 #ifdef __STDC__ 2025 # include <limits.h> 2026 #else 2027 # include <assert.h> 2028 #endif 2029 2030 #undef $2 2031 2032 /* Override any GCC internal prototype to avoid an error. 2033 Use char because int might match the return type of a GCC 2034 builtin and then its argument prototype would still apply. */ 2035 #ifdef __cplusplus 2036 extern "C" 2037 #endif 2038 char $2 (); 2039 /* The GNU C library defines this for functions which it implements 2040 to always fail with ENOSYS. Some functions are actually named 2041 something starting with __ and the normal name is an alias. */ 2042 #if defined __stub_$2 || defined __stub___$2 2043 choke me 2044 #endif 2045 2046 int 2047 main () 2048 { 2049 return $2 (); 2050 ; 2051 return 0; 2052 } 2053 _ACEOF 2054 if ac_fn_c_try_link "$LINENO"; then : 2055 eval "$3=yes" 2056 else 2057 eval "$3=no" 2058 fi 2059 rm -f core conftest.err conftest.$ac_objext \ 2060 conftest$ac_exeext conftest.$ac_ext 2061 fi 2062 eval ac_res=\$$3 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064 $as_echo "$ac_res" >&6; } 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 2067 } # ac_fn_c_check_func 2068 2069 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2070 # --------------------------------------------- 2071 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2072 # accordingly. 2073 ac_fn_c_check_decl () 2074 { 2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2076 as_decl_name=`echo $2|sed 's/ *(.*//'` 2077 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2079 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2080 if eval \${$3+:} false; then : 2081 $as_echo_n "(cached) " >&6 2082 else 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084 /* end confdefs.h. */ 2085 $4 2086 int 2087 main () 2088 { 2089 #ifndef $as_decl_name 2090 #ifdef __cplusplus 2091 (void) $as_decl_use; 2092 #else 2093 (void) $as_decl_name; 2094 #endif 2095 #endif 2096 2097 ; 2098 return 0; 2099 } 2100 _ACEOF 2101 if ac_fn_c_try_compile "$LINENO"; then : 2102 eval "$3=yes" 2103 else 2104 eval "$3=no" 2105 fi 2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107 fi 2108 eval ac_res=\$$3 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2110 $as_echo "$ac_res" >&6; } 2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2112 2113 } # ac_fn_c_check_decl 2114 cat >config.log <<_ACEOF 2115 This file contains any messages produced by compilers while 2116 running configure, to aid debugging if configure makes a mistake. 2117 2118 It was created by $as_me, which was 2119 generated by GNU Autoconf 2.69. Invocation command line was 2120 2121 $ $0 $@ 2122 2123 _ACEOF 2124 exec 5>>config.log 2125 { 2126 cat <<_ASUNAME 2127 ## --------- ## 2128 ## Platform. ## 2129 ## --------- ## 2130 2131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2132 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2133 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2134 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2135 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2136 2137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2138 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2139 2140 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2141 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2143 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2144 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2145 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2146 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2147 2148 _ASUNAME 2149 2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2151 for as_dir in $PATH 2152 do 2153 IFS=$as_save_IFS 2154 test -z "$as_dir" && as_dir=. 2155 $as_echo "PATH: $as_dir" 2156 done 2157 IFS=$as_save_IFS 2158 2159 } >&5 2160 2161 cat >&5 <<_ACEOF 2162 2163 2164 ## ----------- ## 2165 ## Core tests. ## 2166 ## ----------- ## 2167 2168 _ACEOF 2169 2170 2171 # Keep a trace of the command line. 2172 # Strip out --no-create and --no-recursion so they do not pile up. 2173 # Strip out --silent because we don't want to record it for future runs. 2174 # Also quote any args containing shell meta-characters. 2175 # Make two passes to allow for proper duplicate-argument suppression. 2176 ac_configure_args= 2177 ac_configure_args0= 2178 ac_configure_args1= 2179 ac_must_keep_next=false 2180 for ac_pass in 1 2 2181 do 2182 for ac_arg 2183 do 2184 case $ac_arg in 2185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2187 | -silent | --silent | --silen | --sile | --sil) 2188 continue ;; 2189 *\'*) 2190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2191 esac 2192 case $ac_pass in 2193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2194 2) 2195 as_fn_append ac_configure_args1 " '$ac_arg'" 2196 if test $ac_must_keep_next = true; then 2197 ac_must_keep_next=false # Got value, back to normal. 2198 else 2199 case $ac_arg in 2200 *=* | --config-cache | -C | -disable-* | --disable-* \ 2201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2203 | -with-* | --with-* | -without-* | --without-* | --x) 2204 case "$ac_configure_args0 " in 2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2206 esac 2207 ;; 2208 -* ) ac_must_keep_next=true ;; 2209 esac 2210 fi 2211 as_fn_append ac_configure_args " '$ac_arg'" 2212 ;; 2213 esac 2214 done 2215 done 2216 { ac_configure_args0=; unset ac_configure_args0;} 2217 { ac_configure_args1=; unset ac_configure_args1;} 2218 2219 # When interrupted or exit'd, cleanup temporary files, and complete 2220 # config.log. We remove comments because anyway the quotes in there 2221 # would cause problems or look ugly. 2222 # WARNING: Use '\'' to represent an apostrophe within the trap. 2223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2224 trap 'exit_status=$? 2225 # Save into config.log some information that might help in debugging. 2226 { 2227 echo 2228 2229 $as_echo "## ---------------- ## 2230 ## Cache variables. ## 2231 ## ---------------- ##" 2232 echo 2233 # The following way of writing the cache mishandles newlines in values, 2234 ( 2235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2236 eval ac_val=\$$ac_var 2237 case $ac_val in #( 2238 *${as_nl}*) 2239 case $ac_var in #( 2240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2242 esac 2243 case $ac_var in #( 2244 _ | IFS | as_nl) ;; #( 2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2246 *) { eval $ac_var=; unset $ac_var;} ;; 2247 esac ;; 2248 esac 2249 done 2250 (set) 2>&1 | 2251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2252 *${as_nl}ac_space=\ *) 2253 sed -n \ 2254 "s/'\''/'\''\\\\'\'''\''/g; 2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2256 ;; #( 2257 *) 2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2259 ;; 2260 esac | 2261 sort 2262 ) 2263 echo 2264 2265 $as_echo "## ----------------- ## 2266 ## Output variables. ## 2267 ## ----------------- ##" 2268 echo 2269 for ac_var in $ac_subst_vars 2270 do 2271 eval ac_val=\$$ac_var 2272 case $ac_val in 2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2274 esac 2275 $as_echo "$ac_var='\''$ac_val'\''" 2276 done | sort 2277 echo 2278 2279 if test -n "$ac_subst_files"; then 2280 $as_echo "## ------------------- ## 2281 ## File substitutions. ## 2282 ## ------------------- ##" 2283 echo 2284 for ac_var in $ac_subst_files 2285 do 2286 eval ac_val=\$$ac_var 2287 case $ac_val in 2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2289 esac 2290 $as_echo "$ac_var='\''$ac_val'\''" 2291 done | sort 2292 echo 2293 fi 2294 2295 if test -s confdefs.h; then 2296 $as_echo "## ----------- ## 2297 ## confdefs.h. ## 2298 ## ----------- ##" 2299 echo 2300 cat confdefs.h 2301 echo 2302 fi 2303 test "$ac_signal" != 0 && 2304 $as_echo "$as_me: caught signal $ac_signal" 2305 $as_echo "$as_me: exit $exit_status" 2306 } >&5 2307 rm -f core *.core core.conftest.* && 2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2309 exit $exit_status 2310 ' 0 2311 for ac_signal in 1 2 13 15; do 2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2313 done 2314 ac_signal=0 2315 2316 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2317 rm -f -r conftest* confdefs.h 2318 2319 $as_echo "/* confdefs.h */" > confdefs.h 2320 2321 # Predefined preprocessor variables. 2322 2323 cat >>confdefs.h <<_ACEOF 2324 #define PACKAGE_NAME "$PACKAGE_NAME" 2325 _ACEOF 2326 2327 cat >>confdefs.h <<_ACEOF 2328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2329 _ACEOF 2330 2331 cat >>confdefs.h <<_ACEOF 2332 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2333 _ACEOF 2334 2335 cat >>confdefs.h <<_ACEOF 2336 #define PACKAGE_STRING "$PACKAGE_STRING" 2337 _ACEOF 2338 2339 cat >>confdefs.h <<_ACEOF 2340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2341 _ACEOF 2342 2343 cat >>confdefs.h <<_ACEOF 2344 #define PACKAGE_URL "$PACKAGE_URL" 2345 _ACEOF 2346 2347 2348 # Let the site file select an alternate cache file if it wants to. 2349 # Prefer an explicitly selected file to automatically selected ones. 2350 ac_site_file1=NONE 2351 ac_site_file2=NONE 2352 if test -n "$CONFIG_SITE"; then 2353 # We do not want a PATH search for config.site. 2354 case $CONFIG_SITE in #(( 2355 -*) ac_site_file1=./$CONFIG_SITE;; 2356 */*) ac_site_file1=$CONFIG_SITE;; 2357 *) ac_site_file1=./$CONFIG_SITE;; 2358 esac 2359 elif test "x$prefix" != xNONE; then 2360 ac_site_file1=$prefix/share/config.site 2361 ac_site_file2=$prefix/etc/config.site 2362 else 2363 ac_site_file1=$ac_default_prefix/share/config.site 2364 ac_site_file2=$ac_default_prefix/etc/config.site 2365 fi 2366 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2367 do 2368 test "x$ac_site_file" = xNONE && continue 2369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2371 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2372 sed 's/^/| /' "$ac_site_file" >&5 2373 . "$ac_site_file" \ 2374 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2376 as_fn_error $? "failed to load site script $ac_site_file 2377 See \`config.log' for more details" "$LINENO" 5; } 2378 fi 2379 done 2380 2381 if test -r "$cache_file"; then 2382 # Some versions of bash will fail to source /dev/null (special files 2383 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2386 $as_echo "$as_me: loading cache $cache_file" >&6;} 2387 case $cache_file in 2388 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2389 *) . "./$cache_file";; 2390 esac 2391 fi 2392 else 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2394 $as_echo "$as_me: creating cache $cache_file" >&6;} 2395 >$cache_file 2396 fi 2397 2398 as_fn_append ac_header_list " stdlib.h" 2399 as_fn_append ac_header_list " unistd.h" 2400 as_fn_append ac_header_list " sys/param.h" 2401 # Check that the precious variables saved in the cache have kept the same 2402 # value. 2403 ac_cache_corrupted=false 2404 for ac_var in $ac_precious_vars; do 2405 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2406 eval ac_new_set=\$ac_env_${ac_var}_set 2407 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2408 eval ac_new_val=\$ac_env_${ac_var}_value 2409 case $ac_old_set,$ac_new_set in 2410 set,) 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2412 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2413 ac_cache_corrupted=: ;; 2414 ,set) 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2416 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2417 ac_cache_corrupted=: ;; 2418 ,);; 2419 *) 2420 if test "x$ac_old_val" != "x$ac_new_val"; then 2421 # differences in whitespace do not lead to failure. 2422 ac_old_val_w=`echo x $ac_old_val` 2423 ac_new_val_w=`echo x $ac_new_val` 2424 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2426 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2427 ac_cache_corrupted=: 2428 else 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2430 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2431 eval $ac_var=\$ac_old_val 2432 fi 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2434 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2436 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2437 fi;; 2438 esac 2439 # Pass precious variables to config.status. 2440 if test "$ac_new_set" = set; then 2441 case $ac_new_val in 2442 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2443 *) ac_arg=$ac_var=$ac_new_val ;; 2444 esac 2445 case " $ac_configure_args " in 2446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2447 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2448 esac 2449 fi 2450 done 2451 if $ac_cache_corrupted; then 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2455 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2456 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2457 fi 2458 ## -------------------- ## 2459 ## Main body of script. ## 2460 ## -------------------- ## 2461 2462 ac_ext=c 2463 ac_cpp='$CPP $CPPFLAGS' 2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2467 2468 2469 2470 2471 2472 2473 2474 2475 # This works around the fact that libtool configuration may change LD 2476 # for this particular configuration, but some shells, instead of 2477 # keeping the changes in LD private, export them just because LD is 2478 # exported. We don't use libtool yet, but some day we might, so... 2479 ORIGINAL_LD_FOR_MULTILIBS=$LD 2480 2481 2482 # Check whether --with-target-subdir was given. 2483 if test "${with_target_subdir+set}" = set; then : 2484 withval=$with_target_subdir; 2485 fi 2486 2487 2488 # Check whether --with-build-subdir was given. 2489 if test "${with_build_subdir+set}" = set; then : 2490 withval=$with_build_subdir; 2491 fi 2492 2493 2494 # Check whether --with-cross-host was given. 2495 if test "${with_cross_host+set}" = set; then : 2496 withval=$with_cross_host; 2497 fi 2498 2499 2500 # Check whether --with-newlib was given. 2501 if test "${with_newlib+set}" = set; then : 2502 withval=$with_newlib; 2503 fi 2504 2505 2506 if test "${srcdir}" = "."; then 2507 if test -n "${with_build_subdir}"; then 2508 libiberty_topdir="${srcdir}/../.." 2509 with_target_subdir= 2510 elif test -z "${with_target_subdir}"; then 2511 libiberty_topdir="${srcdir}/.." 2512 else 2513 if test "${with_target_subdir}" != "."; then 2514 libiberty_topdir="${srcdir}/${with_multisrctop}../.." 2515 else 2516 libiberty_topdir="${srcdir}/${with_multisrctop}.." 2517 fi 2518 fi 2519 else 2520 libiberty_topdir="${srcdir}/.." 2521 fi 2522 2523 ac_aux_dir= 2524 for ac_dir in $libiberty_topdir "$srcdir"/$libiberty_topdir; do 2525 if test -f "$ac_dir/install-sh"; then 2526 ac_aux_dir=$ac_dir 2527 ac_install_sh="$ac_aux_dir/install-sh -c" 2528 break 2529 elif test -f "$ac_dir/install.sh"; then 2530 ac_aux_dir=$ac_dir 2531 ac_install_sh="$ac_aux_dir/install.sh -c" 2532 break 2533 elif test -f "$ac_dir/shtool"; then 2534 ac_aux_dir=$ac_dir 2535 ac_install_sh="$ac_aux_dir/shtool install -c" 2536 break 2537 fi 2538 done 2539 if test -z "$ac_aux_dir"; then 2540 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5 2541 fi 2542 2543 # These three variables are undocumented and unsupported, 2544 # and are intended to be withdrawn in a future Autoconf release. 2545 # They can cause serious problems if a builder's source tree is in a directory 2546 # whose full name contains unusual characters. 2547 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2548 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2549 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2550 2551 2552 2553 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2555 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2556 # Check whether --enable-maintainer-mode was given. 2557 if test "${enable_maintainer_mode+set}" = set; then : 2558 enableval=$enable_maintainer_mode; maintainer_mode=$enableval 2559 else 2560 maintainer_mode=no 2561 fi 2562 2563 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5 2565 $as_echo "$maintainer_mode" >&6; } 2566 2567 if test "$maintainer_mode" = "yes"; then 2568 MAINT='' 2569 NOTMAINT='#' 2570 else 2571 MAINT='#' 2572 NOTMAINT='' 2573 fi 2574 2575 if test -z "$ETAGS"; then 2576 ETAGS=etags 2577 fi 2578 2579 2580 # Do we have a single-tree copy of texinfo? Even if we do, we can't 2581 # rely on it - libiberty is built before texinfo. 2582 # Extract the first word of "makeinfo", so it can be a program name with args. 2583 set dummy makeinfo; ac_word=$2 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2585 $as_echo_n "checking for $ac_word... " >&6; } 2586 if ${ac_cv_prog_MAKEINFO+:} false; then : 2587 $as_echo_n "(cached) " >&6 2588 else 2589 if test -n "$MAKEINFO"; then 2590 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 2591 else 2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2593 for as_dir in $PATH 2594 do 2595 IFS=$as_save_IFS 2596 test -z "$as_dir" && as_dir=. 2597 for ac_exec_ext in '' $ac_executable_extensions; do 2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2599 ac_cv_prog_MAKEINFO="makeinfo" 2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2601 break 2 2602 fi 2603 done 2604 done 2605 IFS=$as_save_IFS 2606 2607 fi 2608 fi 2609 MAKEINFO=$ac_cv_prog_MAKEINFO 2610 if test -n "$MAKEINFO"; then 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 2612 $as_echo "$MAKEINFO" >&6; } 2613 else 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2615 $as_echo "no" >&6; } 2616 fi 2617 2618 2619 if test "x$MAKEINFO" = "x"; then 2620 MAKEINFO="@echo makeinfo missing; true" 2621 BUILD_INFO= 2622 else 2623 BUILD_INFO=info 2624 case "$MAKEINFO" in 2625 */missing\ makeinfo*) 2626 BUILD_INFO= 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 2628 *** Makeinfo is missing. Info documentation will not be built." >&5 2629 $as_echo "$as_me: WARNING: 2630 *** Makeinfo is missing. Info documentation will not be built." >&2;} 2631 ;; 2632 *) 2633 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in 2634 x*\ [1-3].* ) 2635 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true" 2636 BUILD_INFO= 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 2638 *** Makeinfo is too old. Info documentation will not be built." >&5 2639 $as_echo "$as_me: WARNING: 2640 *** Makeinfo is too old. Info documentation will not be built." >&2;} 2641 ;; 2642 esac 2643 ;; 2644 esac 2645 fi 2646 2647 2648 2649 # Extract the first word of "perl", so it can be a program name with args. 2650 set dummy perl; ac_word=$2 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2652 $as_echo_n "checking for $ac_word... " >&6; } 2653 if ${ac_cv_prog_PERL+:} false; then : 2654 $as_echo_n "(cached) " >&6 2655 else 2656 if test -n "$PERL"; then 2657 ac_cv_prog_PERL="$PERL" # Let the user override the test. 2658 else 2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660 for as_dir in $PATH 2661 do 2662 IFS=$as_save_IFS 2663 test -z "$as_dir" && as_dir=. 2664 for ac_exec_ext in '' $ac_executable_extensions; do 2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2666 ac_cv_prog_PERL="perl" 2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2668 break 2 2669 fi 2670 done 2671 done 2672 IFS=$as_save_IFS 2673 2674 fi 2675 fi 2676 PERL=$ac_cv_prog_PERL 2677 if test -n "$PERL"; then 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 2679 $as_echo "$PERL" >&6; } 2680 else 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2682 $as_echo "no" >&6; } 2683 fi 2684 2685 2686 if test x"$PERL" = x""; then 2687 HAVE_PERL='#' 2688 else 2689 HAVE_PERL='' 2690 fi 2691 2692 2693 # Make sure we can run config.sub. 2694 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2695 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2696 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2698 $as_echo_n "checking build system type... " >&6; } 2699 if ${ac_cv_build+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701 else 2702 ac_build_alias=$build_alias 2703 test "x$ac_build_alias" = x && 2704 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2705 test "x$ac_build_alias" = x && 2706 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2707 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2709 2710 fi 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2712 $as_echo "$ac_cv_build" >&6; } 2713 case $ac_cv_build in 2714 *-*-*) ;; 2715 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2716 esac 2717 build=$ac_cv_build 2718 ac_save_IFS=$IFS; IFS='-' 2719 set x $ac_cv_build 2720 shift 2721 build_cpu=$1 2722 build_vendor=$2 2723 shift; shift 2724 # Remember, the first character of IFS is used to create $*, 2725 # except with old shells: 2726 build_os=$* 2727 IFS=$ac_save_IFS 2728 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2729 2730 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2732 $as_echo_n "checking host system type... " >&6; } 2733 if ${ac_cv_host+:} false; then : 2734 $as_echo_n "(cached) " >&6 2735 else 2736 if test "x$host_alias" = x; then 2737 ac_cv_host=$ac_cv_build 2738 else 2739 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2741 fi 2742 2743 fi 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2745 $as_echo "$ac_cv_host" >&6; } 2746 case $ac_cv_host in 2747 *-*-*) ;; 2748 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2749 esac 2750 host=$ac_cv_host 2751 ac_save_IFS=$IFS; IFS='-' 2752 set x $ac_cv_host 2753 shift 2754 host_cpu=$1 2755 host_vendor=$2 2756 shift; shift 2757 # Remember, the first character of IFS is used to create $*, 2758 # except with old shells: 2759 host_os=$* 2760 IFS=$ac_save_IFS 2761 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2762 2763 2764 2765 2766 if test -n "$ac_tool_prefix"; then 2767 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2768 set dummy ${ac_tool_prefix}ar; ac_word=$2 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770 $as_echo_n "checking for $ac_word... " >&6; } 2771 if ${ac_cv_prog_AR+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773 else 2774 if test -n "$AR"; then 2775 ac_cv_prog_AR="$AR" # Let the user override the test. 2776 else 2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778 for as_dir in $PATH 2779 do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2784 ac_cv_prog_AR="${ac_tool_prefix}ar" 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788 done 2789 done 2790 IFS=$as_save_IFS 2791 2792 fi 2793 fi 2794 AR=$ac_cv_prog_AR 2795 if test -n "$AR"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 2797 $as_echo "$AR" >&6; } 2798 else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800 $as_echo "no" >&6; } 2801 fi 2802 2803 2804 fi 2805 if test -z "$ac_cv_prog_AR"; then 2806 ac_ct_AR=$AR 2807 # Extract the first word of "ar", so it can be a program name with args. 2808 set dummy ar; ac_word=$2 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810 $as_echo_n "checking for $ac_word... " >&6; } 2811 if ${ac_cv_prog_ac_ct_AR+:} false; then : 2812 $as_echo_n "(cached) " >&6 2813 else 2814 if test -n "$ac_ct_AR"; then 2815 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2816 else 2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818 for as_dir in $PATH 2819 do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2824 ac_cv_prog_ac_ct_AR="ar" 2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828 done 2829 done 2830 IFS=$as_save_IFS 2831 2832 fi 2833 fi 2834 ac_ct_AR=$ac_cv_prog_ac_ct_AR 2835 if test -n "$ac_ct_AR"; then 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 2837 $as_echo "$ac_ct_AR" >&6; } 2838 else 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2840 $as_echo "no" >&6; } 2841 fi 2842 2843 if test "x$ac_ct_AR" = x; then 2844 AR="" 2845 else 2846 case $cross_compiling:$ac_tool_warned in 2847 yes:) 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2850 ac_tool_warned=yes ;; 2851 esac 2852 AR=$ac_ct_AR 2853 fi 2854 else 2855 AR="$ac_cv_prog_AR" 2856 fi 2857 2858 if test -n "$ac_tool_prefix"; then 2859 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2860 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2862 $as_echo_n "checking for $ac_word... " >&6; } 2863 if ${ac_cv_prog_RANLIB+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865 else 2866 if test -n "$RANLIB"; then 2867 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2868 else 2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2870 for as_dir in $PATH 2871 do 2872 IFS=$as_save_IFS 2873 test -z "$as_dir" && as_dir=. 2874 for ac_exec_ext in '' $ac_executable_extensions; do 2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2876 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2878 break 2 2879 fi 2880 done 2881 done 2882 IFS=$as_save_IFS 2883 2884 fi 2885 fi 2886 RANLIB=$ac_cv_prog_RANLIB 2887 if test -n "$RANLIB"; then 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 2889 $as_echo "$RANLIB" >&6; } 2890 else 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2892 $as_echo "no" >&6; } 2893 fi 2894 2895 2896 fi 2897 if test -z "$ac_cv_prog_RANLIB"; then 2898 ac_ct_RANLIB=$RANLIB 2899 # Extract the first word of "ranlib", so it can be a program name with args. 2900 set dummy ranlib; ac_word=$2 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2902 $as_echo_n "checking for $ac_word... " >&6; } 2903 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 2904 $as_echo_n "(cached) " >&6 2905 else 2906 if test -n "$ac_ct_RANLIB"; then 2907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2908 else 2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910 for as_dir in $PATH 2911 do 2912 IFS=$as_save_IFS 2913 test -z "$as_dir" && as_dir=. 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2916 ac_cv_prog_ac_ct_RANLIB="ranlib" 2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920 done 2921 done 2922 IFS=$as_save_IFS 2923 2924 fi 2925 fi 2926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2927 if test -n "$ac_ct_RANLIB"; then 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 2929 $as_echo "$ac_ct_RANLIB" >&6; } 2930 else 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2932 $as_echo "no" >&6; } 2933 fi 2934 2935 if test "x$ac_ct_RANLIB" = x; then 2936 RANLIB=":" 2937 else 2938 case $cross_compiling:$ac_tool_warned in 2939 yes:) 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2942 ac_tool_warned=yes ;; 2943 esac 2944 RANLIB=$ac_ct_RANLIB 2945 fi 2946 else 2947 RANLIB="$ac_cv_prog_RANLIB" 2948 fi 2949 2950 2951 # Add --enable-multilib to configure. 2952 # Default to --enable-multilib 2953 # Check whether --enable-multilib was given. 2954 if test "${enable_multilib+set}" = set; then : 2955 enableval=$enable_multilib; case "$enableval" in 2956 yes) multilib=yes ;; 2957 no) multilib=no ;; 2958 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 2959 esac 2960 else 2961 multilib=yes 2962 fi 2963 2964 2965 # Even if the default multilib is not a cross compilation, 2966 # it may be that some of the other multilibs are. 2967 if test $cross_compiling = no && test $multilib = yes \ 2968 && test "x${with_multisubdir}" != x ; then 2969 cross_compiling=maybe 2970 fi 2971 2972 # We may wish to install the target headers somewhere. 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5 2974 $as_echo_n "checking whether to install libiberty headers and static library... " >&6; } 2975 2976 # Check whether --enable-install-libiberty was given. 2977 if test "${enable_install_libiberty+set}" = set; then : 2978 enableval=$enable_install_libiberty; enable_install_libiberty=$enableval 2979 else 2980 enable_install_libiberty=no 2981 fi 2982 2983 # Option parsed, now set things appropriately. 2984 case x"$enable_install_libiberty" in 2985 xyes|x) 2986 target_header_dir=libiberty 2987 ;; 2988 xno) 2989 target_header_dir= 2990 ;; 2991 *) 2992 # This could be sanity-checked in various ways... 2993 target_header_dir="${enable_install_libiberty}" 2994 ;; 2995 esac 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5 2997 $as_echo "$enable_install_libiberty" >&6; } 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5 2999 $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;} 3000 3001 3002 ac_ext=c 3003 ac_cpp='$CPP $CPPFLAGS' 3004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3006 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3007 if test -n "$ac_tool_prefix"; then 3008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3009 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011 $as_echo_n "checking for $ac_word... " >&6; } 3012 if ${ac_cv_prog_CC+:} false; then : 3013 $as_echo_n "(cached) " >&6 3014 else 3015 if test -n "$CC"; then 3016 ac_cv_prog_CC="$CC" # Let the user override the test. 3017 else 3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019 for as_dir in $PATH 3020 do 3021 IFS=$as_save_IFS 3022 test -z "$as_dir" && as_dir=. 3023 for ac_exec_ext in '' $ac_executable_extensions; do 3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3025 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3027 break 2 3028 fi 3029 done 3030 done 3031 IFS=$as_save_IFS 3032 3033 fi 3034 fi 3035 CC=$ac_cv_prog_CC 3036 if test -n "$CC"; then 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3038 $as_echo "$CC" >&6; } 3039 else 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041 $as_echo "no" >&6; } 3042 fi 3043 3044 3045 fi 3046 if test -z "$ac_cv_prog_CC"; then 3047 ac_ct_CC=$CC 3048 # Extract the first word of "gcc", so it can be a program name with args. 3049 set dummy gcc; ac_word=$2 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3051 $as_echo_n "checking for $ac_word... " >&6; } 3052 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3053 $as_echo_n "(cached) " >&6 3054 else 3055 if test -n "$ac_ct_CC"; then 3056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3057 else 3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059 for as_dir in $PATH 3060 do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3065 ac_cv_prog_ac_ct_CC="gcc" 3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3067 break 2 3068 fi 3069 done 3070 done 3071 IFS=$as_save_IFS 3072 3073 fi 3074 fi 3075 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3076 if test -n "$ac_ct_CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3078 $as_echo "$ac_ct_CC" >&6; } 3079 else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081 $as_echo "no" >&6; } 3082 fi 3083 3084 if test "x$ac_ct_CC" = x; then 3085 CC="" 3086 else 3087 case $cross_compiling:$ac_tool_warned in 3088 yes:) 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3091 ac_tool_warned=yes ;; 3092 esac 3093 CC=$ac_ct_CC 3094 fi 3095 else 3096 CC="$ac_cv_prog_CC" 3097 fi 3098 3099 if test -z "$CC"; then 3100 if test -n "$ac_tool_prefix"; then 3101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3102 set dummy ${ac_tool_prefix}cc; ac_word=$2 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104 $as_echo_n "checking for $ac_word... " >&6; } 3105 if ${ac_cv_prog_CC+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107 else 3108 if test -n "$CC"; then 3109 ac_cv_prog_CC="$CC" # Let the user override the test. 3110 else 3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112 for as_dir in $PATH 3113 do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3118 ac_cv_prog_CC="${ac_tool_prefix}cc" 3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122 done 3123 done 3124 IFS=$as_save_IFS 3125 3126 fi 3127 fi 3128 CC=$ac_cv_prog_CC 3129 if test -n "$CC"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3131 $as_echo "$CC" >&6; } 3132 else 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134 $as_echo "no" >&6; } 3135 fi 3136 3137 3138 fi 3139 fi 3140 if test -z "$CC"; then 3141 # Extract the first word of "cc", so it can be a program name with args. 3142 set dummy cc; ac_word=$2 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144 $as_echo_n "checking for $ac_word... " >&6; } 3145 if ${ac_cv_prog_CC+:} false; then : 3146 $as_echo_n "(cached) " >&6 3147 else 3148 if test -n "$CC"; then 3149 ac_cv_prog_CC="$CC" # Let the user override the test. 3150 else 3151 ac_prog_rejected=no 3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153 for as_dir in $PATH 3154 do 3155 IFS=$as_save_IFS 3156 test -z "$as_dir" && as_dir=. 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3160 ac_prog_rejected=yes 3161 continue 3162 fi 3163 ac_cv_prog_CC="cc" 3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3165 break 2 3166 fi 3167 done 3168 done 3169 IFS=$as_save_IFS 3170 3171 if test $ac_prog_rejected = yes; then 3172 # We found a bogon in the path, so make sure we never use it. 3173 set dummy $ac_cv_prog_CC 3174 shift 3175 if test $# != 0; then 3176 # We chose a different compiler from the bogus one. 3177 # However, it has the same basename, so the bogon will be chosen 3178 # first if we set CC to just the basename; use the full file name. 3179 shift 3180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3181 fi 3182 fi 3183 fi 3184 fi 3185 CC=$ac_cv_prog_CC 3186 if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188 $as_echo "$CC" >&6; } 3189 else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191 $as_echo "no" >&6; } 3192 fi 3193 3194 3195 fi 3196 if test -z "$CC"; then 3197 if test -n "$ac_tool_prefix"; then 3198 for ac_prog in cl.exe 3199 do 3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3203 $as_echo_n "checking for $ac_word... " >&6; } 3204 if ${ac_cv_prog_CC+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206 else 3207 if test -n "$CC"; then 3208 ac_cv_prog_CC="$CC" # Let the user override the test. 3209 else 3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211 for as_dir in $PATH 3212 do 3213 IFS=$as_save_IFS 3214 test -z "$as_dir" && as_dir=. 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221 done 3222 done 3223 IFS=$as_save_IFS 3224 3225 fi 3226 fi 3227 CC=$ac_cv_prog_CC 3228 if test -n "$CC"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3230 $as_echo "$CC" >&6; } 3231 else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233 $as_echo "no" >&6; } 3234 fi 3235 3236 3237 test -n "$CC" && break 3238 done 3239 fi 3240 if test -z "$CC"; then 3241 ac_ct_CC=$CC 3242 for ac_prog in cl.exe 3243 do 3244 # Extract the first word of "$ac_prog", so it can be a program name with args. 3245 set dummy $ac_prog; ac_word=$2 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3247 $as_echo_n "checking for $ac_word... " >&6; } 3248 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3249 $as_echo_n "(cached) " >&6 3250 else 3251 if test -n "$ac_ct_CC"; then 3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3253 else 3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255 for as_dir in $PATH 3256 do 3257 IFS=$as_save_IFS 3258 test -z "$as_dir" && as_dir=. 3259 for ac_exec_ext in '' $ac_executable_extensions; do 3260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3261 ac_cv_prog_ac_ct_CC="$ac_prog" 3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3263 break 2 3264 fi 3265 done 3266 done 3267 IFS=$as_save_IFS 3268 3269 fi 3270 fi 3271 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3272 if test -n "$ac_ct_CC"; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3274 $as_echo "$ac_ct_CC" >&6; } 3275 else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277 $as_echo "no" >&6; } 3278 fi 3279 3280 3281 test -n "$ac_ct_CC" && break 3282 done 3283 3284 if test "x$ac_ct_CC" = x; then 3285 CC="" 3286 else 3287 case $cross_compiling:$ac_tool_warned in 3288 yes:) 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3291 ac_tool_warned=yes ;; 3292 esac 3293 CC=$ac_ct_CC 3294 fi 3295 fi 3296 3297 fi 3298 3299 3300 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3302 as_fn_error $? "no acceptable C compiler found in \$PATH 3303 See \`config.log' for more details" "$LINENO" 5; } 3304 3305 # Provide some information about the compiler. 3306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3307 set X $ac_compile 3308 ac_compiler=$2 3309 for ac_option in --version -v -V -qversion; do 3310 { { ac_try="$ac_compiler $ac_option >&5" 3311 case "(($ac_try" in 3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3313 *) ac_try_echo=$ac_try;; 3314 esac 3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3316 $as_echo "$ac_try_echo"; } >&5 3317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3318 ac_status=$? 3319 if test -s conftest.err; then 3320 sed '10a\ 3321 ... rest of stderr output deleted ... 3322 10q' conftest.err >conftest.er1 3323 cat conftest.er1 >&5 3324 fi 3325 rm -f conftest.er1 conftest.err 3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3327 test $ac_status = 0; } 3328 done 3329 3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3331 /* end confdefs.h. */ 3332 #include <stdio.h> 3333 int 3334 main () 3335 { 3336 printf ("hello world\n"); 3337 ; 3338 return 0; 3339 } 3340 _ACEOF 3341 # FIXME: Cleanup? 3342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 3343 (eval $ac_link) 2>&5 3344 ac_status=$? 3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3346 test $ac_status = 0; }; then : 3347 gcc_no_link=no 3348 else 3349 gcc_no_link=yes 3350 fi 3351 if test x$gcc_no_link = xyes; then 3352 # Setting cross_compile will disable run tests; it will 3353 # also disable AC_CHECK_FILE but that's generally 3354 # correct if we can't link. 3355 cross_compiling=yes 3356 EXEEXT= 3357 else 3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359 /* end confdefs.h. */ 3360 3361 int 3362 main () 3363 { 3364 3365 ; 3366 return 0; 3367 } 3368 _ACEOF 3369 ac_clean_files_save=$ac_clean_files 3370 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3371 # Try to create an executable without -o first, disregard a.out. 3372 # It will help us diagnose broken compilers, and finding out an intuition 3373 # of exeext. 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3375 $as_echo_n "checking whether the C compiler works... " >&6; } 3376 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3377 3378 # The possible output files: 3379 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3380 3381 ac_rmfiles= 3382 for ac_file in $ac_files 3383 do 3384 case $ac_file in 3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3386 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3387 esac 3388 done 3389 rm -f $ac_rmfiles 3390 3391 if { { ac_try="$ac_link_default" 3392 case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395 esac 3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3397 $as_echo "$ac_try_echo"; } >&5 3398 (eval "$ac_link_default") 2>&5 3399 ac_status=$? 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401 test $ac_status = 0; }; then : 3402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3403 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3404 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3405 # so that the user can short-circuit this test for compilers unknown to 3406 # Autoconf. 3407 for ac_file in $ac_files '' 3408 do 3409 test -f "$ac_file" || continue 3410 case $ac_file in 3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3412 ;; 3413 [ab].out ) 3414 # We found the default executable, but exeext='' is most 3415 # certainly right. 3416 break;; 3417 *.* ) 3418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3419 then :; else 3420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3421 fi 3422 # We set ac_cv_exeext here because the later test for it is not 3423 # safe: cross compilers may not add the suffix if given an `-o' 3424 # argument, so we may need to know it at that point already. 3425 # Even if this section looks crufty: it has the advantage of 3426 # actually working. 3427 break;; 3428 * ) 3429 break;; 3430 esac 3431 done 3432 test "$ac_cv_exeext" = no && ac_cv_exeext= 3433 3434 else 3435 ac_file='' 3436 fi 3437 if test -z "$ac_file"; then : 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439 $as_echo "no" >&6; } 3440 $as_echo "$as_me: failed program was:" >&5 3441 sed 's/^/| /' conftest.$ac_ext >&5 3442 3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3445 as_fn_error 77 "C compiler cannot create executables 3446 See \`config.log' for more details" "$LINENO" 5; } 3447 else 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3449 $as_echo "yes" >&6; } 3450 fi 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3452 $as_echo_n "checking for C compiler default output file name... " >&6; } 3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3454 $as_echo "$ac_file" >&6; } 3455 ac_exeext=$ac_cv_exeext 3456 3457 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3458 ac_clean_files=$ac_clean_files_save 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3460 $as_echo_n "checking for suffix of executables... " >&6; } 3461 if { { ac_try="$ac_link" 3462 case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465 esac 3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3467 $as_echo "$ac_try_echo"; } >&5 3468 (eval "$ac_link") 2>&5 3469 ac_status=$? 3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3471 test $ac_status = 0; }; then : 3472 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3473 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3474 # work properly (i.e., refer to `conftest.exe'), while it won't with 3475 # `rm'. 3476 for ac_file in conftest.exe conftest conftest.*; do 3477 test -f "$ac_file" || continue 3478 case $ac_file in 3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3481 break;; 3482 * ) break;; 3483 esac 3484 done 3485 else 3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3488 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3489 See \`config.log' for more details" "$LINENO" 5; } 3490 fi 3491 rm -f conftest conftest$ac_cv_exeext 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3493 $as_echo "$ac_cv_exeext" >&6; } 3494 3495 rm -f conftest.$ac_ext 3496 EXEEXT=$ac_cv_exeext 3497 ac_exeext=$EXEEXT 3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3499 /* end confdefs.h. */ 3500 #include <stdio.h> 3501 int 3502 main () 3503 { 3504 FILE *f = fopen ("conftest.out", "w"); 3505 return ferror (f) || fclose (f) != 0; 3506 3507 ; 3508 return 0; 3509 } 3510 _ACEOF 3511 ac_clean_files="$ac_clean_files conftest.out" 3512 # Check that the compiler produces executables we can run. If not, either 3513 # the compiler is broken, or we cross compile. 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3515 $as_echo_n "checking whether we are cross compiling... " >&6; } 3516 if test "$cross_compiling" != yes; then 3517 { { ac_try="$ac_link" 3518 case "(($ac_try" in 3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3520 *) ac_try_echo=$ac_try;; 3521 esac 3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3523 $as_echo "$ac_try_echo"; } >&5 3524 (eval "$ac_link") 2>&5 3525 ac_status=$? 3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3527 test $ac_status = 0; } 3528 if { ac_try='./conftest$ac_cv_exeext' 3529 { { case "(($ac_try" in 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3531 *) ac_try_echo=$ac_try;; 3532 esac 3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3534 $as_echo "$ac_try_echo"; } >&5 3535 (eval "$ac_try") 2>&5 3536 ac_status=$? 3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3538 test $ac_status = 0; }; }; then 3539 cross_compiling=no 3540 else 3541 if test "$cross_compiling" = maybe; then 3542 cross_compiling=yes 3543 else 3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546 as_fn_error $? "cannot run C compiled programs. 3547 If you meant to cross compile, use \`--host'. 3548 See \`config.log' for more details" "$LINENO" 5; } 3549 fi 3550 fi 3551 fi 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3553 $as_echo "$cross_compiling" >&6; } 3554 3555 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3556 ac_clean_files=$ac_clean_files_save 3557 fi 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3559 $as_echo_n "checking for suffix of object files... " >&6; } 3560 if ${ac_cv_objext+:} false; then : 3561 $as_echo_n "(cached) " >&6 3562 else 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564 /* end confdefs.h. */ 3565 3566 int 3567 main () 3568 { 3569 3570 ; 3571 return 0; 3572 } 3573 _ACEOF 3574 rm -f conftest.o conftest.obj 3575 if { { ac_try="$ac_compile" 3576 case "(($ac_try" in 3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3578 *) ac_try_echo=$ac_try;; 3579 esac 3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3581 $as_echo "$ac_try_echo"; } >&5 3582 (eval "$ac_compile") 2>&5 3583 ac_status=$? 3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3585 test $ac_status = 0; }; then : 3586 for ac_file in conftest.o conftest.obj conftest.*; do 3587 test -f "$ac_file" || continue; 3588 case $ac_file in 3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3591 break;; 3592 esac 3593 done 3594 else 3595 $as_echo "$as_me: failed program was:" >&5 3596 sed 's/^/| /' conftest.$ac_ext >&5 3597 3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3600 as_fn_error $? "cannot compute suffix of object files: cannot compile 3601 See \`config.log' for more details" "$LINENO" 5; } 3602 fi 3603 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3604 fi 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3606 $as_echo "$ac_cv_objext" >&6; } 3607 OBJEXT=$ac_cv_objext 3608 ac_objext=$OBJEXT 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3610 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3611 if ${ac_cv_c_compiler_gnu+:} false; then : 3612 $as_echo_n "(cached) " >&6 3613 else 3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3615 /* end confdefs.h. */ 3616 3617 int 3618 main () 3619 { 3620 #ifndef __GNUC__ 3621 choke me 3622 #endif 3623 3624 ; 3625 return 0; 3626 } 3627 _ACEOF 3628 if ac_fn_c_try_compile "$LINENO"; then : 3629 ac_compiler_gnu=yes 3630 else 3631 ac_compiler_gnu=no 3632 fi 3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3634 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3635 3636 fi 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3638 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3639 if test $ac_compiler_gnu = yes; then 3640 GCC=yes 3641 else 3642 GCC= 3643 fi 3644 ac_test_CFLAGS=${CFLAGS+set} 3645 ac_save_CFLAGS=$CFLAGS 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3647 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3648 if ${ac_cv_prog_cc_g+:} false; then : 3649 $as_echo_n "(cached) " >&6 3650 else 3651 ac_save_c_werror_flag=$ac_c_werror_flag 3652 ac_c_werror_flag=yes 3653 ac_cv_prog_cc_g=no 3654 CFLAGS="-g" 3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656 /* end confdefs.h. */ 3657 3658 int 3659 main () 3660 { 3661 3662 ; 3663 return 0; 3664 } 3665 _ACEOF 3666 if ac_fn_c_try_compile "$LINENO"; then : 3667 ac_cv_prog_cc_g=yes 3668 else 3669 CFLAGS="" 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671 /* end confdefs.h. */ 3672 3673 int 3674 main () 3675 { 3676 3677 ; 3678 return 0; 3679 } 3680 _ACEOF 3681 if ac_fn_c_try_compile "$LINENO"; then : 3682 3683 else 3684 ac_c_werror_flag=$ac_save_c_werror_flag 3685 CFLAGS="-g" 3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3687 /* end confdefs.h. */ 3688 3689 int 3690 main () 3691 { 3692 3693 ; 3694 return 0; 3695 } 3696 _ACEOF 3697 if ac_fn_c_try_compile "$LINENO"; then : 3698 ac_cv_prog_cc_g=yes 3699 fi 3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3701 fi 3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703 fi 3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3705 ac_c_werror_flag=$ac_save_c_werror_flag 3706 fi 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3708 $as_echo "$ac_cv_prog_cc_g" >&6; } 3709 if test "$ac_test_CFLAGS" = set; then 3710 CFLAGS=$ac_save_CFLAGS 3711 elif test $ac_cv_prog_cc_g = yes; then 3712 if test "$GCC" = yes; then 3713 CFLAGS="-g -O2" 3714 else 3715 CFLAGS="-g" 3716 fi 3717 else 3718 if test "$GCC" = yes; then 3719 CFLAGS="-O2" 3720 else 3721 CFLAGS= 3722 fi 3723 fi 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3725 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3726 if ${ac_cv_prog_cc_c89+:} false; then : 3727 $as_echo_n "(cached) " >&6 3728 else 3729 ac_cv_prog_cc_c89=no 3730 ac_save_CC=$CC 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3732 /* end confdefs.h. */ 3733 #include <stdarg.h> 3734 #include <stdio.h> 3735 struct stat; 3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3737 struct buf { int x; }; 3738 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3739 static char *e (p, i) 3740 char **p; 3741 int i; 3742 { 3743 return p[i]; 3744 } 3745 static char *f (char * (*g) (char **, int), char **p, ...) 3746 { 3747 char *s; 3748 va_list v; 3749 va_start (v,p); 3750 s = g (p, va_arg (v,int)); 3751 va_end (v); 3752 return s; 3753 } 3754 3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3756 function prototypes and stuff, but not '\xHH' hex character constants. 3757 These don't provoke an error unfortunately, instead are silently treated 3758 as 'x'. The following induces an error, until -std is added to get 3759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3760 array size at least. It's necessary to write '\x00'==0 to get something 3761 that's true only with -std. */ 3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3763 3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3765 inside strings and character constants. */ 3766 #define FOO(x) 'x' 3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3768 3769 int test (int i, double x); 3770 struct s1 {int (*f) (int a);}; 3771 struct s2 {int (*f) (double a);}; 3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3773 int argc; 3774 char **argv; 3775 int 3776 main () 3777 { 3778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3779 ; 3780 return 0; 3781 } 3782 _ACEOF 3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3785 do 3786 CC="$ac_save_CC $ac_arg" 3787 if ac_fn_c_try_compile "$LINENO"; then : 3788 ac_cv_prog_cc_c89=$ac_arg 3789 fi 3790 rm -f core conftest.err conftest.$ac_objext 3791 test "x$ac_cv_prog_cc_c89" != "xno" && break 3792 done 3793 rm -f conftest.$ac_ext 3794 CC=$ac_save_CC 3795 3796 fi 3797 # AC_CACHE_VAL 3798 case "x$ac_cv_prog_cc_c89" in 3799 x) 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3801 $as_echo "none needed" >&6; } ;; 3802 xno) 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3804 $as_echo "unsupported" >&6; } ;; 3805 *) 3806 CC="$CC $ac_cv_prog_cc_c89" 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3808 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3809 esac 3810 if test "x$ac_cv_prog_cc_c89" != xno; then : 3811 3812 fi 3813 3814 ac_ext=c 3815 ac_cpp='$CPP $CPPFLAGS' 3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3819 3820 3821 ac_ext=c 3822 ac_cpp='$CPP $CPPFLAGS' 3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3827 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3828 # On Suns, sometimes $CPP names a directory. 3829 if test -n "$CPP" && test -d "$CPP"; then 3830 CPP= 3831 fi 3832 if test -z "$CPP"; then 3833 if ${ac_cv_prog_CPP+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835 else 3836 # Double quotes because CPP needs to be expanded 3837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3838 do 3839 ac_preproc_ok=false 3840 for ac_c_preproc_warn_flag in '' yes 3841 do 3842 # Use a header file that comes with gcc, so configuring glibc 3843 # with a fresh cross-compiler works. 3844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3845 # <limits.h> exists even on freestanding compilers. 3846 # On the NeXT, cc -E runs the code through the compiler's parser, 3847 # not just through cpp. "Syntax error" is here to catch this case. 3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849 /* end confdefs.h. */ 3850 #ifdef __STDC__ 3851 # include <limits.h> 3852 #else 3853 # include <assert.h> 3854 #endif 3855 Syntax error 3856 _ACEOF 3857 if ac_fn_c_try_cpp "$LINENO"; then : 3858 3859 else 3860 # Broken: fails on valid input. 3861 continue 3862 fi 3863 rm -f conftest.err conftest.i conftest.$ac_ext 3864 3865 # OK, works on sane cases. Now check whether nonexistent headers 3866 # can be detected and how. 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868 /* end confdefs.h. */ 3869 #include <ac_nonexistent.h> 3870 _ACEOF 3871 if ac_fn_c_try_cpp "$LINENO"; then : 3872 # Broken: success on invalid input. 3873 continue 3874 else 3875 # Passes both tests. 3876 ac_preproc_ok=: 3877 break 3878 fi 3879 rm -f conftest.err conftest.i conftest.$ac_ext 3880 3881 done 3882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3883 rm -f conftest.i conftest.err conftest.$ac_ext 3884 if $ac_preproc_ok; then : 3885 break 3886 fi 3887 3888 done 3889 ac_cv_prog_CPP=$CPP 3890 3891 fi 3892 CPP=$ac_cv_prog_CPP 3893 else 3894 ac_cv_prog_CPP=$CPP 3895 fi 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3897 $as_echo "$CPP" >&6; } 3898 ac_preproc_ok=false 3899 for ac_c_preproc_warn_flag in '' yes 3900 do 3901 # Use a header file that comes with gcc, so configuring glibc 3902 # with a fresh cross-compiler works. 3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3904 # <limits.h> exists even on freestanding compilers. 3905 # On the NeXT, cc -E runs the code through the compiler's parser, 3906 # not just through cpp. "Syntax error" is here to catch this case. 3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3908 /* end confdefs.h. */ 3909 #ifdef __STDC__ 3910 # include <limits.h> 3911 #else 3912 # include <assert.h> 3913 #endif 3914 Syntax error 3915 _ACEOF 3916 if ac_fn_c_try_cpp "$LINENO"; then : 3917 3918 else 3919 # Broken: fails on valid input. 3920 continue 3921 fi 3922 rm -f conftest.err conftest.i conftest.$ac_ext 3923 3924 # OK, works on sane cases. Now check whether nonexistent headers 3925 # can be detected and how. 3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3927 /* end confdefs.h. */ 3928 #include <ac_nonexistent.h> 3929 _ACEOF 3930 if ac_fn_c_try_cpp "$LINENO"; then : 3931 # Broken: success on invalid input. 3932 continue 3933 else 3934 # Passes both tests. 3935 ac_preproc_ok=: 3936 break 3937 fi 3938 rm -f conftest.err conftest.i conftest.$ac_ext 3939 3940 done 3941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3942 rm -f conftest.i conftest.err conftest.$ac_ext 3943 if $ac_preproc_ok; then : 3944 3945 else 3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3948 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3949 See \`config.log' for more details" "$LINENO" 5; } 3950 fi 3951 3952 ac_ext=c 3953 ac_cpp='$CPP $CPPFLAGS' 3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3957 3958 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3960 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3961 if ${ac_cv_path_GREP+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963 else 3964 if test -z "$GREP"; then 3965 ac_path_GREP_found=false 3966 # Loop through the user's path and test for each of PROGNAME-LIST 3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3969 do 3970 IFS=$as_save_IFS 3971 test -z "$as_dir" && as_dir=. 3972 for ac_prog in grep ggrep; do 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3975 as_fn_executable_p "$ac_path_GREP" || continue 3976 # Check for GNU ac_path_GREP and select it if it is found. 3977 # Check for GNU $ac_path_GREP 3978 case `"$ac_path_GREP" --version 2>&1` in 3979 *GNU*) 3980 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3981 *) 3982 ac_count=0 3983 $as_echo_n 0123456789 >"conftest.in" 3984 while : 3985 do 3986 cat "conftest.in" "conftest.in" >"conftest.tmp" 3987 mv "conftest.tmp" "conftest.in" 3988 cp "conftest.in" "conftest.nl" 3989 $as_echo 'GREP' >> "conftest.nl" 3990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3992 as_fn_arith $ac_count + 1 && ac_count=$as_val 3993 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3994 # Best one so far, save it but keep looking for a better one 3995 ac_cv_path_GREP="$ac_path_GREP" 3996 ac_path_GREP_max=$ac_count 3997 fi 3998 # 10*(2^10) chars as input seems more than enough 3999 test $ac_count -gt 10 && break 4000 done 4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4002 esac 4003 4004 $ac_path_GREP_found && break 3 4005 done 4006 done 4007 done 4008 IFS=$as_save_IFS 4009 if test -z "$ac_cv_path_GREP"; then 4010 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4011 fi 4012 else 4013 ac_cv_path_GREP=$GREP 4014 fi 4015 4016 fi 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4018 $as_echo "$ac_cv_path_GREP" >&6; } 4019 GREP="$ac_cv_path_GREP" 4020 4021 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4023 $as_echo_n "checking for egrep... " >&6; } 4024 if ${ac_cv_path_EGREP+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026 else 4027 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4028 then ac_cv_path_EGREP="$GREP -E" 4029 else 4030 if test -z "$EGREP"; then 4031 ac_path_EGREP_found=false 4032 # Loop through the user's path and test for each of PROGNAME-LIST 4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4035 do 4036 IFS=$as_save_IFS 4037 test -z "$as_dir" && as_dir=. 4038 for ac_prog in egrep; do 4039 for ac_exec_ext in '' $ac_executable_extensions; do 4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4041 as_fn_executable_p "$ac_path_EGREP" || continue 4042 # Check for GNU ac_path_EGREP and select it if it is found. 4043 # Check for GNU $ac_path_EGREP 4044 case `"$ac_path_EGREP" --version 2>&1` in 4045 *GNU*) 4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4047 *) 4048 ac_count=0 4049 $as_echo_n 0123456789 >"conftest.in" 4050 while : 4051 do 4052 cat "conftest.in" "conftest.in" >"conftest.tmp" 4053 mv "conftest.tmp" "conftest.in" 4054 cp "conftest.in" "conftest.nl" 4055 $as_echo 'EGREP' >> "conftest.nl" 4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4058 as_fn_arith $ac_count + 1 && ac_count=$as_val 4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4060 # Best one so far, save it but keep looking for a better one 4061 ac_cv_path_EGREP="$ac_path_EGREP" 4062 ac_path_EGREP_max=$ac_count 4063 fi 4064 # 10*(2^10) chars as input seems more than enough 4065 test $ac_count -gt 10 && break 4066 done 4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4068 esac 4069 4070 $ac_path_EGREP_found && break 3 4071 done 4072 done 4073 done 4074 IFS=$as_save_IFS 4075 if test -z "$ac_cv_path_EGREP"; then 4076 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4077 fi 4078 else 4079 ac_cv_path_EGREP=$EGREP 4080 fi 4081 4082 fi 4083 fi 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4085 $as_echo "$ac_cv_path_EGREP" >&6; } 4086 EGREP="$ac_cv_path_EGREP" 4087 4088 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4090 $as_echo_n "checking for ANSI C header files... " >&6; } 4091 if ${ac_cv_header_stdc+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093 else 4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4095 /* end confdefs.h. */ 4096 #include <stdlib.h> 4097 #include <stdarg.h> 4098 #include <string.h> 4099 #include <float.h> 4100 4101 int 4102 main () 4103 { 4104 4105 ; 4106 return 0; 4107 } 4108 _ACEOF 4109 if ac_fn_c_try_compile "$LINENO"; then : 4110 ac_cv_header_stdc=yes 4111 else 4112 ac_cv_header_stdc=no 4113 fi 4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4115 4116 if test $ac_cv_header_stdc = yes; then 4117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119 /* end confdefs.h. */ 4120 #include <string.h> 4121 4122 _ACEOF 4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4124 $EGREP "memchr" >/dev/null 2>&1; then : 4125 4126 else 4127 ac_cv_header_stdc=no 4128 fi 4129 rm -f conftest* 4130 4131 fi 4132 4133 if test $ac_cv_header_stdc = yes; then 4134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136 /* end confdefs.h. */ 4137 #include <stdlib.h> 4138 4139 _ACEOF 4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4141 $EGREP "free" >/dev/null 2>&1; then : 4142 4143 else 4144 ac_cv_header_stdc=no 4145 fi 4146 rm -f conftest* 4147 4148 fi 4149 4150 if test $ac_cv_header_stdc = yes; then 4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4152 if test "$cross_compiling" = yes; then : 4153 : 4154 else 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156 /* end confdefs.h. */ 4157 #include <ctype.h> 4158 #include <stdlib.h> 4159 #if ((' ' & 0x0FF) == 0x020) 4160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4162 #else 4163 # define ISLOWER(c) \ 4164 (('a' <= (c) && (c) <= 'i') \ 4165 || ('j' <= (c) && (c) <= 'r') \ 4166 || ('s' <= (c) && (c) <= 'z')) 4167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4168 #endif 4169 4170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4171 int 4172 main () 4173 { 4174 int i; 4175 for (i = 0; i < 256; i++) 4176 if (XOR (islower (i), ISLOWER (i)) 4177 || toupper (i) != TOUPPER (i)) 4178 return 2; 4179 return 0; 4180 } 4181 _ACEOF 4182 if ac_fn_c_try_run "$LINENO"; then : 4183 4184 else 4185 ac_cv_header_stdc=no 4186 fi 4187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4188 conftest.$ac_objext conftest.beam conftest.$ac_ext 4189 fi 4190 4191 fi 4192 fi 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4194 $as_echo "$ac_cv_header_stdc" >&6; } 4195 if test $ac_cv_header_stdc = yes; then 4196 4197 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4198 4199 fi 4200 4201 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4202 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4203 inttypes.h stdint.h unistd.h 4204 do : 4205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4206 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4207 " 4208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4209 cat >>confdefs.h <<_ACEOF 4210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4211 _ACEOF 4212 4213 fi 4214 4215 done 4216 4217 4218 4219 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4220 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4221 MINIX=yes 4222 else 4223 MINIX= 4224 fi 4225 4226 4227 if test "$MINIX" = yes; then 4228 4229 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4230 4231 4232 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4233 4234 4235 $as_echo "#define _MINIX 1" >>confdefs.h 4236 4237 fi 4238 4239 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4241 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4242 if ${ac_cv_safe_to_define___extensions__+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244 else 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246 /* end confdefs.h. */ 4247 4248 # define __EXTENSIONS__ 1 4249 $ac_includes_default 4250 int 4251 main () 4252 { 4253 4254 ; 4255 return 0; 4256 } 4257 _ACEOF 4258 if ac_fn_c_try_compile "$LINENO"; then : 4259 ac_cv_safe_to_define___extensions__=yes 4260 else 4261 ac_cv_safe_to_define___extensions__=no 4262 fi 4263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4264 fi 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4266 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4267 test $ac_cv_safe_to_define___extensions__ = yes && 4268 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4269 4270 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4271 4272 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4273 4274 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4275 4276 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4277 4278 4279 # Check whether --enable-largefile was given. 4280 if test "${enable_largefile+set}" = set; then : 4281 enableval=$enable_largefile; 4282 fi 4283 4284 if test "$enable_largefile" != no; then 4285 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4287 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4288 if ${ac_cv_sys_largefile_CC+:} false; then : 4289 $as_echo_n "(cached) " >&6 4290 else 4291 ac_cv_sys_largefile_CC=no 4292 if test "$GCC" != yes; then 4293 ac_save_CC=$CC 4294 while :; do 4295 # IRIX 6.2 and later do not support large files by default, 4296 # so use the C compiler's -n32 option if that helps. 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298 /* end confdefs.h. */ 4299 #include <sys/types.h> 4300 /* Check that off_t can represent 2**63 - 1 correctly. 4301 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4302 since some C++ compilers masquerading as C compilers 4303 incorrectly reject 9223372036854775807. */ 4304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4306 && LARGE_OFF_T % 2147483647 == 1) 4307 ? 1 : -1]; 4308 int 4309 main () 4310 { 4311 4312 ; 4313 return 0; 4314 } 4315 _ACEOF 4316 if ac_fn_c_try_compile "$LINENO"; then : 4317 break 4318 fi 4319 rm -f core conftest.err conftest.$ac_objext 4320 CC="$CC -n32" 4321 if ac_fn_c_try_compile "$LINENO"; then : 4322 ac_cv_sys_largefile_CC=' -n32'; break 4323 fi 4324 rm -f core conftest.err conftest.$ac_objext 4325 break 4326 done 4327 CC=$ac_save_CC 4328 rm -f conftest.$ac_ext 4329 fi 4330 fi 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4332 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 4333 if test "$ac_cv_sys_largefile_CC" != no; then 4334 CC=$CC$ac_cv_sys_largefile_CC 4335 fi 4336 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4338 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4339 if ${ac_cv_sys_file_offset_bits+:} false; then : 4340 $as_echo_n "(cached) " >&6 4341 else 4342 while :; do 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344 /* end confdefs.h. */ 4345 #include <sys/types.h> 4346 /* Check that off_t can represent 2**63 - 1 correctly. 4347 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4348 since some C++ compilers masquerading as C compilers 4349 incorrectly reject 9223372036854775807. */ 4350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4352 && LARGE_OFF_T % 2147483647 == 1) 4353 ? 1 : -1]; 4354 int 4355 main () 4356 { 4357 4358 ; 4359 return 0; 4360 } 4361 _ACEOF 4362 if ac_fn_c_try_compile "$LINENO"; then : 4363 ac_cv_sys_file_offset_bits=no; break 4364 fi 4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4367 /* end confdefs.h. */ 4368 #define _FILE_OFFSET_BITS 64 4369 #include <sys/types.h> 4370 /* Check that off_t can represent 2**63 - 1 correctly. 4371 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4372 since some C++ compilers masquerading as C compilers 4373 incorrectly reject 9223372036854775807. */ 4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4376 && LARGE_OFF_T % 2147483647 == 1) 4377 ? 1 : -1]; 4378 int 4379 main () 4380 { 4381 4382 ; 4383 return 0; 4384 } 4385 _ACEOF 4386 if ac_fn_c_try_compile "$LINENO"; then : 4387 ac_cv_sys_file_offset_bits=64; break 4388 fi 4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4390 ac_cv_sys_file_offset_bits=unknown 4391 break 4392 done 4393 fi 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4395 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4396 case $ac_cv_sys_file_offset_bits in #( 4397 no | unknown) ;; 4398 *) 4399 cat >>confdefs.h <<_ACEOF 4400 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4401 _ACEOF 4402 ;; 4403 esac 4404 rm -rf conftest* 4405 if test $ac_cv_sys_file_offset_bits = unknown; then 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4407 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4408 if ${ac_cv_sys_large_files+:} false; then : 4409 $as_echo_n "(cached) " >&6 4410 else 4411 while :; do 4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4413 /* end confdefs.h. */ 4414 #include <sys/types.h> 4415 /* Check that off_t can represent 2**63 - 1 correctly. 4416 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4417 since some C++ compilers masquerading as C compilers 4418 incorrectly reject 9223372036854775807. */ 4419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4421 && LARGE_OFF_T % 2147483647 == 1) 4422 ? 1 : -1]; 4423 int 4424 main () 4425 { 4426 4427 ; 4428 return 0; 4429 } 4430 _ACEOF 4431 if ac_fn_c_try_compile "$LINENO"; then : 4432 ac_cv_sys_large_files=no; break 4433 fi 4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436 /* end confdefs.h. */ 4437 #define _LARGE_FILES 1 4438 #include <sys/types.h> 4439 /* Check that off_t can represent 2**63 - 1 correctly. 4440 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4441 since some C++ compilers masquerading as C compilers 4442 incorrectly reject 9223372036854775807. */ 4443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4445 && LARGE_OFF_T % 2147483647 == 1) 4446 ? 1 : -1]; 4447 int 4448 main () 4449 { 4450 4451 ; 4452 return 0; 4453 } 4454 _ACEOF 4455 if ac_fn_c_try_compile "$LINENO"; then : 4456 ac_cv_sys_large_files=1; break 4457 fi 4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4459 ac_cv_sys_large_files=unknown 4460 break 4461 done 4462 fi 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4464 $as_echo "$ac_cv_sys_large_files" >&6; } 4465 case $ac_cv_sys_large_files in #( 4466 no | unknown) ;; 4467 *) 4468 cat >>confdefs.h <<_ACEOF 4469 #define _LARGE_FILES $ac_cv_sys_large_files 4470 _ACEOF 4471 ;; 4472 esac 4473 rm -rf conftest* 4474 fi 4475 4476 4477 fi 4478 4479 4480 ac_c_preproc_warn_flag=yes 4481 4482 # Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the 4483 # wrong PLUGIN_OPTION with clang. 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5 4485 $as_echo_n "checking for clang... " >&6; } 4486 if ${clang_cv_is_clang+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488 else 4489 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491 /* end confdefs.h. */ 4492 4493 #ifdef __clang__ 4494 yes 4495 #endif 4496 4497 _ACEOF 4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4499 $EGREP "yes" >/dev/null 2>&1; then : 4500 clang_cv_is_clang=yes 4501 else 4502 clang_cv_is_clang=no 4503 fi 4504 rm -f conftest* 4505 4506 fi 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5 4508 $as_echo "$clang_cv_is_clang" >&6; } 4509 if test -n "$ac_tool_prefix"; then 4510 # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args. 4511 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4513 $as_echo_n "checking for $ac_word... " >&6; } 4514 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516 else 4517 if test -n "$LLVM_CONFIG"; then 4518 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 4519 else 4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4521 for as_dir in $PATH 4522 do 4523 IFS=$as_save_IFS 4524 test -z "$as_dir" && as_dir=. 4525 for ac_exec_ext in '' $ac_executable_extensions; do 4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4527 ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config" 4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4529 break 2 4530 fi 4531 done 4532 done 4533 IFS=$as_save_IFS 4534 4535 fi 4536 fi 4537 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 4538 if test -n "$LLVM_CONFIG"; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 4540 $as_echo "$LLVM_CONFIG" >&6; } 4541 else 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543 $as_echo "no" >&6; } 4544 fi 4545 4546 4547 fi 4548 if test -z "$ac_cv_prog_LLVM_CONFIG"; then 4549 ac_ct_LLVM_CONFIG=$LLVM_CONFIG 4550 # Extract the first word of "llvm-config", so it can be a program name with args. 4551 set dummy llvm-config; ac_word=$2 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4553 $as_echo_n "checking for $ac_word... " >&6; } 4554 if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556 else 4557 if test -n "$ac_ct_LLVM_CONFIG"; then 4558 ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # Let the user override the test. 4559 else 4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561 for as_dir in $PATH 4562 do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for ac_exec_ext in '' $ac_executable_extensions; do 4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4567 ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config" 4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4569 break 2 4570 fi 4571 done 4572 done 4573 IFS=$as_save_IFS 4574 4575 fi 4576 fi 4577 ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG 4578 if test -n "$ac_ct_LLVM_CONFIG"; then 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5 4580 $as_echo "$ac_ct_LLVM_CONFIG" >&6; } 4581 else 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4583 $as_echo "no" >&6; } 4584 fi 4585 4586 if test "x$ac_ct_LLVM_CONFIG" = x; then 4587 LLVM_CONFIG="" 4588 else 4589 case $cross_compiling:$ac_tool_warned in 4590 yes:) 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4593 ac_tool_warned=yes ;; 4594 esac 4595 LLVM_CONFIG=$ac_ct_LLVM_CONFIG 4596 fi 4597 else 4598 LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG" 4599 fi 4600 4601 plugin_file= 4602 if test $clang_cv_is_clang = yes; then 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5 4604 $as_echo_n "checking for clang plugin file... " >&6; } 4605 plugin_names="LLVMgold.so" 4606 for plugin in $plugin_names; do 4607 plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin` 4608 if test "$plugin_file" != "$plugin"; then 4609 break; 4610 fi 4611 if test -n "${LLVM_CONFIG}"; then 4612 plugin_file=`${LLVM_CONFIG} --libdir`/$plugin 4613 if test -f "$plugin_file"; then 4614 break; 4615 fi 4616 fi 4617 plugin_file= 4618 done 4619 if test -z "$plugin_file"; then 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4621 $as_echo "no" >&6; } 4622 else 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5 4624 $as_echo "$plugin_file" >&6; } 4625 if test -n "$ac_tool_prefix"; then 4626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4627 set dummy ${ac_tool_prefix}ar; ac_word=$2 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4629 $as_echo_n "checking for $ac_word... " >&6; } 4630 if ${ac_cv_prog_AR+:} false; then : 4631 $as_echo_n "(cached) " >&6 4632 else 4633 if test -n "$AR"; then 4634 ac_cv_prog_AR="$AR" # Let the user override the test. 4635 else 4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4637 for as_dir in $PATH 4638 do 4639 IFS=$as_save_IFS 4640 test -z "$as_dir" && as_dir=. 4641 for ac_exec_ext in '' $ac_executable_extensions; do 4642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4643 ac_cv_prog_AR="${ac_tool_prefix}ar" 4644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4645 break 2 4646 fi 4647 done 4648 done 4649 IFS=$as_save_IFS 4650 4651 fi 4652 fi 4653 AR=$ac_cv_prog_AR 4654 if test -n "$AR"; then 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4656 $as_echo "$AR" >&6; } 4657 else 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4659 $as_echo "no" >&6; } 4660 fi 4661 4662 4663 fi 4664 if test -z "$ac_cv_prog_AR"; then 4665 ac_ct_AR=$AR 4666 # Extract the first word of "ar", so it can be a program name with args. 4667 set dummy ar; ac_word=$2 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4669 $as_echo_n "checking for $ac_word... " >&6; } 4670 if ${ac_cv_prog_ac_ct_AR+:} false; then : 4671 $as_echo_n "(cached) " >&6 4672 else 4673 if test -n "$ac_ct_AR"; then 4674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4675 else 4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4677 for as_dir in $PATH 4678 do 4679 IFS=$as_save_IFS 4680 test -z "$as_dir" && as_dir=. 4681 for ac_exec_ext in '' $ac_executable_extensions; do 4682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4683 ac_cv_prog_ac_ct_AR="ar" 4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4685 break 2 4686 fi 4687 done 4688 done 4689 IFS=$as_save_IFS 4690 4691 fi 4692 fi 4693 ac_ct_AR=$ac_cv_prog_ac_ct_AR 4694 if test -n "$ac_ct_AR"; then 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4696 $as_echo "$ac_ct_AR" >&6; } 4697 else 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4699 $as_echo "no" >&6; } 4700 fi 4701 4702 if test "x$ac_ct_AR" = x; then 4703 AR="" 4704 else 4705 case $cross_compiling:$ac_tool_warned in 4706 yes:) 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4709 ac_tool_warned=yes ;; 4710 esac 4711 AR=$ac_ct_AR 4712 fi 4713 else 4714 AR="$ac_cv_prog_AR" 4715 fi 4716 4717 if test -z "${AR}"; then 4718 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 4719 fi 4720 plugin_option="--plugin $plugin_file" 4721 touch conftest.c 4722 ${AR} $plugin_option rc conftest.a conftest.c 4723 if test "$?" != 0; then 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 4725 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 4726 plugin_file= 4727 fi 4728 rm -f conftest.* 4729 fi 4730 fi 4731 PLUGIN_FILE="$plugin_file" 4732 4733 if test -n "$PLUGIN_FILE"; then 4734 PLUGIN_OPTION="--plugin $PLUGIN_FILE" 4735 else 4736 if test -n "$ac_tool_prefix"; then 4737 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4738 set dummy ${ac_tool_prefix}ar; ac_word=$2 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4740 $as_echo_n "checking for $ac_word... " >&6; } 4741 if ${ac_cv_prog_AR+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743 else 4744 if test -n "$AR"; then 4745 ac_cv_prog_AR="$AR" # Let the user override the test. 4746 else 4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4748 for as_dir in $PATH 4749 do 4750 IFS=$as_save_IFS 4751 test -z "$as_dir" && as_dir=. 4752 for ac_exec_ext in '' $ac_executable_extensions; do 4753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4754 ac_cv_prog_AR="${ac_tool_prefix}ar" 4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4756 break 2 4757 fi 4758 done 4759 done 4760 IFS=$as_save_IFS 4761 4762 fi 4763 fi 4764 AR=$ac_cv_prog_AR 4765 if test -n "$AR"; then 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4767 $as_echo "$AR" >&6; } 4768 else 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4770 $as_echo "no" >&6; } 4771 fi 4772 4773 4774 fi 4775 if test -z "$ac_cv_prog_AR"; then 4776 ac_ct_AR=$AR 4777 # Extract the first word of "ar", so it can be a program name with args. 4778 set dummy ar; ac_word=$2 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4780 $as_echo_n "checking for $ac_word... " >&6; } 4781 if ${ac_cv_prog_ac_ct_AR+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783 else 4784 if test -n "$ac_ct_AR"; then 4785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4786 else 4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4788 for as_dir in $PATH 4789 do 4790 IFS=$as_save_IFS 4791 test -z "$as_dir" && as_dir=. 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4794 ac_cv_prog_ac_ct_AR="ar" 4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4796 break 2 4797 fi 4798 done 4799 done 4800 IFS=$as_save_IFS 4801 4802 fi 4803 fi 4804 ac_ct_AR=$ac_cv_prog_ac_ct_AR 4805 if test -n "$ac_ct_AR"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4807 $as_echo "$ac_ct_AR" >&6; } 4808 else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810 $as_echo "no" >&6; } 4811 fi 4812 4813 if test "x$ac_ct_AR" = x; then 4814 AR="" 4815 else 4816 case $cross_compiling:$ac_tool_warned in 4817 yes:) 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4820 ac_tool_warned=yes ;; 4821 esac 4822 AR=$ac_ct_AR 4823 fi 4824 else 4825 AR="$ac_cv_prog_AR" 4826 fi 4827 4828 if test -z "${AR}"; then 4829 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 4830 fi 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 4832 $as_echo_n "checking for -plugin option... " >&6; } 4833 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 4834 plugin_option= 4835 for plugin in $plugin_names; do 4836 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 4837 if test x$plugin_so = x$plugin; then 4838 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 4839 fi 4840 if test x$plugin_so != x$plugin; then 4841 plugin_option="--plugin $plugin_so" 4842 break 4843 fi 4844 done 4845 if test -z "$plugin_option"; then 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4847 $as_echo "no" >&6; } 4848 else 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 4850 $as_echo "$plugin_option" >&6; } 4851 touch conftest.c 4852 ${AR} $plugin_option rc conftest.a conftest.c 4853 if test "$?" != 0; then 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 4855 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 4856 plugin_option= 4857 fi 4858 rm -f conftest.* 4859 fi 4860 PLUGIN_OPTION="$plugin_option" 4861 4862 fi 4863 if test -n "$PLUGIN_OPTION"; then 4864 case "$AR" in 4865 *"$PLUGIN_OPTION"*) 4866 ;; 4867 *) 4868 if $AR --help 2>&1 | grep -q "\--plugin"; then 4869 AR_PLUGIN_OPTION="$PLUGIN_OPTION" 4870 4871 fi 4872 ;; 4873 esac 4874 case "$RANLIB" in 4875 *"$PLUGIN_OPTION"*) 4876 ;; 4877 *) 4878 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 4879 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" 4880 4881 fi 4882 ;; 4883 esac 4884 fi 4885 4886 ac_ext=c 4887 ac_cpp='$CPP $CPPFLAGS' 4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4891 4892 ac_libiberty_warn_cflags= 4893 save_CFLAGS="$CFLAGS" 4894 for real_option in -W -Wall -Wwrite-strings -Wc++-compat \ 4895 -Wstrict-prototypes \ 4896 -Wshadow=local; do 4897 # Do the check with the no- prefix removed since gcc silently 4898 # accepts any -Wno-* option on purpose 4899 case $real_option in 4900 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 4901 *) option=$real_option ;; 4902 esac 4903 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 4904 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 4906 $as_echo_n "checking whether $CC supports $option... " >&6; } 4907 if eval \${$as_acx_Woption+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909 else 4910 CFLAGS="$option" 4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912 /* end confdefs.h. */ 4913 4914 int 4915 main () 4916 { 4917 4918 ; 4919 return 0; 4920 } 4921 _ACEOF 4922 if ac_fn_c_try_compile "$LINENO"; then : 4923 eval "$as_acx_Woption=yes" 4924 else 4925 eval "$as_acx_Woption=no" 4926 fi 4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4928 4929 fi 4930 eval ac_res=\$$as_acx_Woption 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4932 $as_echo "$ac_res" >&6; } 4933 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 4934 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option" 4935 fi 4936 done 4937 CFLAGS="$save_CFLAGS" 4938 ac_ext=c 4939 ac_cpp='$CPP $CPPFLAGS' 4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4943 4944 4945 ac_ext=c 4946 ac_cpp='$CPP $CPPFLAGS' 4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4950 4951 # Do the check with the no- prefix removed from the warning options 4952 # since gcc silently accepts any -Wno-* option on purpose 4953 if test "$GCC" = yes; then : 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5 4955 $as_echo_n "checking whether $CC supports -pedantic ... " >&6; } 4956 if ${acx_cv_prog_cc_pedantic_+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958 else 4959 save_CFLAGS="$CFLAGS" 4960 CFLAGS="-pedantic " 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962 /* end confdefs.h. */ 4963 4964 int 4965 main () 4966 { 4967 4968 ; 4969 return 0; 4970 } 4971 _ACEOF 4972 if ac_fn_c_try_compile "$LINENO"; then : 4973 acx_cv_prog_cc_pedantic_=yes 4974 else 4975 acx_cv_prog_cc_pedantic_=no 4976 fi 4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4978 CFLAGS="$save_CFLAGS" 4979 fi 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5 4981 $as_echo "$acx_cv_prog_cc_pedantic_" >&6; } 4982 if test $acx_cv_prog_cc_pedantic_ = yes; then : 4983 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic " 4984 fi 4985 4986 fi 4987 ac_ext=c 4988 ac_cpp='$CPP $CPPFLAGS' 4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4992 4993 4994 4995 if test "x$CC" != xcc; then 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4997 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4998 else 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5000 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5001 fi 5002 set dummy $CC; ac_cc=`$as_echo "$2" | 5003 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5004 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006 else 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008 /* end confdefs.h. */ 5009 5010 int 5011 main () 5012 { 5013 5014 ; 5015 return 0; 5016 } 5017 _ACEOF 5018 # Make sure it works both with $CC and with simple cc. 5019 # We do the test twice because some compilers refuse to overwrite an 5020 # existing .o file with -o, though they will create one. 5021 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5022 rm -f conftest2.* 5023 if { { case "(($ac_try" in 5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5025 *) ac_try_echo=$ac_try;; 5026 esac 5027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5028 $as_echo "$ac_try_echo"; } >&5 5029 (eval "$ac_try") 2>&5 5030 ac_status=$? 5031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5032 test $ac_status = 0; } && 5033 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5035 *) ac_try_echo=$ac_try;; 5036 esac 5037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5038 $as_echo "$ac_try_echo"; } >&5 5039 (eval "$ac_try") 2>&5 5040 ac_status=$? 5041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5042 test $ac_status = 0; }; 5043 then 5044 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5045 if test "x$CC" != xcc; then 5046 # Test first that cc exists at all. 5047 if { ac_try='cc -c conftest.$ac_ext >&5' 5048 { { case "(($ac_try" in 5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5050 *) ac_try_echo=$ac_try;; 5051 esac 5052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5053 $as_echo "$ac_try_echo"; } >&5 5054 (eval "$ac_try") 2>&5 5055 ac_status=$? 5056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5057 test $ac_status = 0; }; }; then 5058 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5059 rm -f conftest2.* 5060 if { { case "(($ac_try" in 5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5062 *) ac_try_echo=$ac_try;; 5063 esac 5064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5065 $as_echo "$ac_try_echo"; } >&5 5066 (eval "$ac_try") 2>&5 5067 ac_status=$? 5068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5069 test $ac_status = 0; } && 5070 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5072 *) ac_try_echo=$ac_try;; 5073 esac 5074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5075 $as_echo "$ac_try_echo"; } >&5 5076 (eval "$ac_try") 2>&5 5077 ac_status=$? 5078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5079 test $ac_status = 0; }; 5080 then 5081 # cc works too. 5082 : 5083 else 5084 # cc exists but doesn't like -o. 5085 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5086 fi 5087 fi 5088 fi 5089 else 5090 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5091 fi 5092 rm -f core conftest* 5093 5094 fi 5095 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5097 $as_echo "yes" >&6; } 5098 else 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5100 $as_echo "no" >&6; } 5101 5102 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5103 5104 fi 5105 5106 # autoconf is lame and doesn't give us any substitution variable for this. 5107 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then 5108 NO_MINUS_C_MINUS_O=yes 5109 else 5110 OUTPUT_OPTION='-o $@' 5111 fi 5112 5113 5114 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5116 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5117 if ${ac_cv_c_const+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119 else 5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5121 /* end confdefs.h. */ 5122 5123 int 5124 main () 5125 { 5126 5127 #ifndef __cplusplus 5128 /* Ultrix mips cc rejects this sort of thing. */ 5129 typedef int charset[2]; 5130 const charset cs = { 0, 0 }; 5131 /* SunOS 4.1.1 cc rejects this. */ 5132 char const *const *pcpcc; 5133 char **ppc; 5134 /* NEC SVR4.0.2 mips cc rejects this. */ 5135 struct point {int x, y;}; 5136 static struct point const zero = {0,0}; 5137 /* AIX XL C 1.02.0.0 rejects this. 5138 It does not let you subtract one const X* pointer from another in 5139 an arm of an if-expression whose if-part is not a constant 5140 expression */ 5141 const char *g = "string"; 5142 pcpcc = &g + (g ? g-g : 0); 5143 /* HPUX 7.0 cc rejects these. */ 5144 ++pcpcc; 5145 ppc = (char**) pcpcc; 5146 pcpcc = (char const *const *) ppc; 5147 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5148 char tx; 5149 char *t = &tx; 5150 char const *s = 0 ? (char *) 0 : (char const *) 0; 5151 5152 *t++ = 0; 5153 if (s) return 0; 5154 } 5155 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5156 int x[] = {25, 17}; 5157 const int *foo = &x[0]; 5158 ++foo; 5159 } 5160 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5161 typedef const int *iptr; 5162 iptr p = 0; 5163 ++p; 5164 } 5165 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5166 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5167 struct s { int j; const int *ap[3]; } bx; 5168 struct s *b = &bx; b->j = 5; 5169 } 5170 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5171 const int foo = 10; 5172 if (!foo) return 0; 5173 } 5174 return !cs[0] && !zero.x; 5175 #endif 5176 5177 ; 5178 return 0; 5179 } 5180 _ACEOF 5181 if ac_fn_c_try_compile "$LINENO"; then : 5182 ac_cv_c_const=yes 5183 else 5184 ac_cv_c_const=no 5185 fi 5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5187 fi 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5189 $as_echo "$ac_cv_c_const" >&6; } 5190 if test $ac_cv_c_const = no; then 5191 5192 $as_echo "#define const /**/" >>confdefs.h 5193 5194 fi 5195 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5197 $as_echo_n "checking for inline... " >&6; } 5198 if ${ac_cv_c_inline+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200 else 5201 ac_cv_c_inline=no 5202 for ac_kw in inline __inline__ __inline; do 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204 /* end confdefs.h. */ 5205 #ifndef __cplusplus 5206 typedef int foo_t; 5207 static $ac_kw foo_t static_foo () {return 0; } 5208 $ac_kw foo_t foo () {return 0; } 5209 #endif 5210 5211 _ACEOF 5212 if ac_fn_c_try_compile "$LINENO"; then : 5213 ac_cv_c_inline=$ac_kw 5214 fi 5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5216 test "$ac_cv_c_inline" != no && break 5217 done 5218 5219 fi 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5221 $as_echo "$ac_cv_c_inline" >&6; } 5222 5223 case $ac_cv_c_inline in 5224 inline | yes) ;; 5225 *) 5226 case $ac_cv_c_inline in 5227 no) ac_val=;; 5228 *) ac_val=$ac_cv_c_inline;; 5229 esac 5230 cat >>confdefs.h <<_ACEOF 5231 #ifndef __cplusplus 5232 #define inline $ac_val 5233 #endif 5234 _ACEOF 5235 ;; 5236 esac 5237 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5239 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5240 if ${ac_cv_c_bigendian+:} false; then : 5241 $as_echo_n "(cached) " >&6 5242 else 5243 ac_cv_c_bigendian=unknown 5244 # See if we're dealing with a universal compiler. 5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5246 /* end confdefs.h. */ 5247 #ifndef __APPLE_CC__ 5248 not a universal capable compiler 5249 #endif 5250 typedef int dummy; 5251 5252 _ACEOF 5253 if ac_fn_c_try_compile "$LINENO"; then : 5254 5255 # Check for potential -arch flags. It is not universal unless 5256 # there are at least two -arch flags with different values. 5257 ac_arch= 5258 ac_prev= 5259 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5260 if test -n "$ac_prev"; then 5261 case $ac_word in 5262 i?86 | x86_64 | ppc | ppc64) 5263 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5264 ac_arch=$ac_word 5265 else 5266 ac_cv_c_bigendian=universal 5267 break 5268 fi 5269 ;; 5270 esac 5271 ac_prev= 5272 elif test "x$ac_word" = "x-arch"; then 5273 ac_prev=arch 5274 fi 5275 done 5276 fi 5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5278 if test $ac_cv_c_bigendian = unknown; then 5279 # See if sys/param.h defines the BYTE_ORDER macro. 5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281 /* end confdefs.h. */ 5282 #include <sys/types.h> 5283 #include <sys/param.h> 5284 5285 int 5286 main () 5287 { 5288 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5289 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5290 && LITTLE_ENDIAN) 5291 bogus endian macros 5292 #endif 5293 5294 ; 5295 return 0; 5296 } 5297 _ACEOF 5298 if ac_fn_c_try_compile "$LINENO"; then : 5299 # It does; now see whether it defined to BIG_ENDIAN or not. 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301 /* end confdefs.h. */ 5302 #include <sys/types.h> 5303 #include <sys/param.h> 5304 5305 int 5306 main () 5307 { 5308 #if BYTE_ORDER != BIG_ENDIAN 5309 not big endian 5310 #endif 5311 5312 ; 5313 return 0; 5314 } 5315 _ACEOF 5316 if ac_fn_c_try_compile "$LINENO"; then : 5317 ac_cv_c_bigendian=yes 5318 else 5319 ac_cv_c_bigendian=no 5320 fi 5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5322 fi 5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5324 fi 5325 if test $ac_cv_c_bigendian = unknown; then 5326 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328 /* end confdefs.h. */ 5329 #include <limits.h> 5330 5331 int 5332 main () 5333 { 5334 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5335 bogus endian macros 5336 #endif 5337 5338 ; 5339 return 0; 5340 } 5341 _ACEOF 5342 if ac_fn_c_try_compile "$LINENO"; then : 5343 # It does; now see whether it defined to _BIG_ENDIAN or not. 5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345 /* end confdefs.h. */ 5346 #include <limits.h> 5347 5348 int 5349 main () 5350 { 5351 #ifndef _BIG_ENDIAN 5352 not big endian 5353 #endif 5354 5355 ; 5356 return 0; 5357 } 5358 _ACEOF 5359 if ac_fn_c_try_compile "$LINENO"; then : 5360 ac_cv_c_bigendian=yes 5361 else 5362 ac_cv_c_bigendian=no 5363 fi 5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5365 fi 5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5367 fi 5368 if test $ac_cv_c_bigendian = unknown; then 5369 # Compile a test program. 5370 if test "$cross_compiling" = yes; then : 5371 # Try to guess by grepping values from an object file. 5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5373 /* end confdefs.h. */ 5374 short int ascii_mm[] = 5375 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5376 short int ascii_ii[] = 5377 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5378 int use_ascii (int i) { 5379 return ascii_mm[i] + ascii_ii[i]; 5380 } 5381 short int ebcdic_ii[] = 5382 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5383 short int ebcdic_mm[] = 5384 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5385 int use_ebcdic (int i) { 5386 return ebcdic_mm[i] + ebcdic_ii[i]; 5387 } 5388 extern int foo; 5389 5390 int 5391 main () 5392 { 5393 return use_ascii (foo) == use_ebcdic (foo); 5394 ; 5395 return 0; 5396 } 5397 _ACEOF 5398 if ac_fn_c_try_compile "$LINENO"; then : 5399 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5400 ac_cv_c_bigendian=yes 5401 fi 5402 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5403 if test "$ac_cv_c_bigendian" = unknown; then 5404 ac_cv_c_bigendian=no 5405 else 5406 # finding both strings is unlikely to happen, but who knows? 5407 ac_cv_c_bigendian=unknown 5408 fi 5409 fi 5410 fi 5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5412 else 5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5414 /* end confdefs.h. */ 5415 $ac_includes_default 5416 int 5417 main () 5418 { 5419 5420 /* Are we little or big endian? From Harbison&Steele. */ 5421 union 5422 { 5423 long int l; 5424 char c[sizeof (long int)]; 5425 } u; 5426 u.l = 1; 5427 return u.c[sizeof (long int) - 1] == 1; 5428 5429 ; 5430 return 0; 5431 } 5432 _ACEOF 5433 if ac_fn_c_try_run "$LINENO"; then : 5434 ac_cv_c_bigendian=no 5435 else 5436 ac_cv_c_bigendian=yes 5437 fi 5438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5439 conftest.$ac_objext conftest.beam conftest.$ac_ext 5440 fi 5441 5442 fi 5443 fi 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5445 $as_echo "$ac_cv_c_bigendian" >&6; } 5446 case $ac_cv_c_bigendian in #( 5447 yes) 5448 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5449 ;; #( 5450 no) 5451 ;; #( 5452 universal) 5453 5454 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5455 5456 ;; #( 5457 *) 5458 as_fn_error $? "unknown endianness 5459 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5460 esac 5461 5462 5463 5464 5465 ac_config_headers="$ac_config_headers config.h:config.in" 5466 5467 5468 5469 # Find a good install program. We prefer a C program (faster), 5470 # so one script is as good as another. But avoid the broken or 5471 # incompatible versions: 5472 # SysV /etc/install, /usr/sbin/install 5473 # SunOS /usr/etc/install 5474 # IRIX /sbin/install 5475 # AIX /bin/install 5476 # AmigaOS /C/install, which installs bootblocks on floppy discs 5477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 5479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5480 # OS/2's system install, which has a completely different semantic 5481 # ./install, which can be erroneously created by make from ./install.sh. 5482 # Reject install programs that cannot install multiple files. 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5484 $as_echo_n "checking for a BSD-compatible install... " >&6; } 5485 if test -z "$INSTALL"; then 5486 if ${ac_cv_path_install+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488 else 5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5490 for as_dir in $PATH 5491 do 5492 IFS=$as_save_IFS 5493 test -z "$as_dir" && as_dir=. 5494 # Account for people who put trailing slashes in PATH elements. 5495 case $as_dir/ in #(( 5496 ./ | .// | /[cC]/* | \ 5497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5499 /usr/ucb/* ) ;; 5500 *) 5501 # OSF1 and SCO ODT 3.0 have their own names for install. 5502 # Don't use installbsd from OSF since it installs stuff as root 5503 # by default. 5504 for ac_prog in ginstall scoinst install; do 5505 for ac_exec_ext in '' $ac_executable_extensions; do 5506 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5507 if test $ac_prog = install && 5508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5509 # AIX install. It has an incompatible calling convention. 5510 : 5511 elif test $ac_prog = install && 5512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5513 # program-specific install script used by HP pwplus--don't use. 5514 : 5515 else 5516 rm -rf conftest.one conftest.two conftest.dir 5517 echo one > conftest.one 5518 echo two > conftest.two 5519 mkdir conftest.dir 5520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5521 test -s conftest.one && test -s conftest.two && 5522 test -s conftest.dir/conftest.one && 5523 test -s conftest.dir/conftest.two 5524 then 5525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5526 break 3 5527 fi 5528 fi 5529 fi 5530 done 5531 done 5532 ;; 5533 esac 5534 5535 done 5536 IFS=$as_save_IFS 5537 5538 rm -rf conftest.one conftest.two conftest.dir 5539 5540 fi 5541 if test "${ac_cv_path_install+set}" = set; then 5542 INSTALL=$ac_cv_path_install 5543 else 5544 # As a last resort, use the slow shell script. Don't cache a 5545 # value for INSTALL within a source directory, because that will 5546 # break other packages using the cache if that directory is 5547 # removed, or if the value is a relative name. 5548 INSTALL=$ac_install_sh 5549 fi 5550 fi 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5552 $as_echo "$INSTALL" >&6; } 5553 5554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5555 # It thinks the first close brace ends the variable substitution. 5556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5557 5558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5559 5560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5561 5562 5563 # Don't build the shared library for build. 5564 if [ -n "${with_build_subdir}" ]; then 5565 enable_shared=no 5566 fi 5567 5568 frag= 5569 case "${host}" in 5570 rs6000-ibm-aix3.1 | rs6000-ibm-aix) 5571 frag=mh-aix ;; 5572 *-*-cxux7*) frag=mh-cxux7 ;; 5573 *-*-freebsd2.1.*) frag=mh-fbsd21 ;; 5574 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;; 5575 i370-*-opened*) frag=mh-openedition ;; 5576 i[34567]86-*-windows*) frag=mh-windows ;; 5577 esac 5578 5579 if [ -n "${frag}" ]; then 5580 frag=${libiberty_topdir}/libiberty/config/$frag 5581 fi 5582 5583 5584 5585 5586 5587 case "${host}" in 5588 # PIC is the default on some targets or must not be used. 5589 *-*-darwin*) 5590 # For darwin, common symbols are not allowed in MH_DYLIB files 5591 case "${CFLAGS}" in 5592 # If we are using a compiler supporting mdynamic-no-pic 5593 # and the option has been tested as safe to add, then cancel 5594 # it here, since the code generated is incompatible with shared 5595 # libs. 5596 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;; 5597 *) PICFLAG=-fno-common ;; 5598 esac 5599 ;; 5600 alpha*-dec-osf5*) 5601 # PIC is the default. 5602 ;; 5603 hppa*64*-*-hpux*) 5604 # PIC is the default for 64-bit PA HP-UX. 5605 ;; 5606 i[34567]86-*-cygwin* | x86_64-*-cygwin*) 5607 ;; 5608 i[34567]86-*-mingw* | x86_64-*-mingw*) 5609 ;; 5610 i[34567]86-*-interix[3-9]*) 5611 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5612 # Instead, we relocate shared libraries at runtime. 5613 ;; 5614 i[34567]86-*-nto-qnx*) 5615 # QNX uses GNU C++, but need to define -shared option too, otherwise 5616 # it will coredump. 5617 PICFLAG='-fPIC -shared' 5618 ;; 5619 i[34567]86-pc-msdosdjgpp*) 5620 # DJGPP does not support shared libraries at all. 5621 ;; 5622 ia64*-*-hpux*) 5623 # On IA64 HP-UX, PIC is the default but the pic flag 5624 # sets the default TLS model and affects inlining. 5625 PICFLAG=-fPIC 5626 ;; 5627 loongarch*-*-*) 5628 PICFLAG=-fpic 5629 ;; 5630 mips-sgi-irix6*) 5631 # PIC is the default. 5632 ;; 5633 rs6000-ibm-aix* | powerpc-ibm-aix*) 5634 # All AIX code is PIC. 5635 ;; 5636 5637 # Some targets support both -fPIC and -fpic, but prefer the latter. 5638 # FIXME: Why? 5639 i[34567]86-*-* | x86_64-*-*) 5640 PICFLAG=-fpic 5641 ;; 5642 # FIXME: Override -fPIC default in libgcc only? 5643 sh-*-linux* | sh[2346lbe]*-*-linux*) 5644 PICFLAG=-fpic 5645 ;; 5646 sh*-*-netbsd*) 5647 PICFLAG=-fpic 5648 ;; 5649 # Default to -fPIC unless specified otherwise. 5650 *) 5651 PICFLAG=-fPIC 5652 ;; 5653 esac 5654 5655 # If the user explicitly uses -fpic/-fPIC, keep that. 5656 case "${CFLAGS}" in 5657 *-fpic*) 5658 PICFLAG=-fpic 5659 ;; 5660 *-fPIC*) 5661 PICFLAG=-fPIC 5662 ;; 5663 esac 5664 5665 5666 # If they didn't specify --enable-shared, don't generate shared libs. 5667 case "${enable_shared}" in 5668 yes) shared=yes ;; 5669 no) shared=no ;; 5670 "") shared=no ;; 5671 *) shared=yes ;; 5672 esac 5673 5674 # ...unless --enable-host-{shared,pie} was passed from top-level config: 5675 if [ "${enable_host_shared}" = "yes" ] || [ "${enable_host_pie}" = "yes" ]; then 5676 shared=yes 5677 fi 5678 5679 if [ "${shared}" != "yes" ]; then 5680 PICFLAG= 5681 fi 5682 5683 5684 NOASANFLAG= 5685 case " ${CFLAGS} " in 5686 *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;; 5687 *\ -fsanitize=hwaddress\ *) NOASANFLAG=-fno-sanitize=hwaddress ;; 5688 esac 5689 5690 5691 # Check whether --enable-cet was given. 5692 if test "${enable_cet+set}" = set; then : 5693 enableval=$enable_cet; 5694 case "$enableval" in 5695 yes|no|auto) ;; 5696 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 5697 esac 5698 5699 else 5700 enable_cet=auto 5701 fi 5702 5703 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 5705 $as_echo_n "checking for CET support... " >&6; } 5706 5707 case "$host" in 5708 i[34567]86-*-linux* | x86_64-*-linux*) 5709 may_have_cet=yes 5710 cet_save_CFLAGS="$CFLAGS" 5711 CFLAGS="$CFLAGS -fcf-protection" 5712 case "$enable_cet" in 5713 auto) 5714 # Check if target supports multi-byte NOPs 5715 # and if compiler and assembler support CET. 5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5717 /* end confdefs.h. */ 5718 5719 int 5720 main () 5721 { 5722 5723 #if !defined(__SSE2__) 5724 #error target does not support multi-byte NOPs 5725 #else 5726 asm ("setssbsy"); 5727 #endif 5728 5729 ; 5730 return 0; 5731 } 5732 _ACEOF 5733 if ac_fn_c_try_compile "$LINENO"; then : 5734 enable_cet=yes 5735 else 5736 enable_cet=no 5737 fi 5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5739 ;; 5740 yes) 5741 # Check if compiler and assembler support CET. 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743 /* end confdefs.h. */ 5744 5745 int 5746 main () 5747 { 5748 asm ("setssbsy"); 5749 ; 5750 return 0; 5751 } 5752 _ACEOF 5753 if ac_fn_c_try_compile "$LINENO"; then : 5754 support_cet=yes 5755 else 5756 support_cet=no 5757 fi 5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5759 if test $support_cet = "no"; then 5760 if test x$enable_bootstrap != xno \ 5761 && test -z "${with_build_subdir}" \ 5762 && (test ! -f ../stage_current \ 5763 || test `cat ../stage_current` != "stage1"); then 5764 # Require CET support only for the final GCC build. 5765 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5 5766 else 5767 # Don't enable CET without CET support for non-bootstrap 5768 # build, in stage1 nor for build support. 5769 enable_cet=no 5770 fi 5771 fi 5772 ;; 5773 esac 5774 CFLAGS="$cet_save_CFLAGS" 5775 ;; 5776 *) 5777 may_have_cet=no 5778 enable_cet=no 5779 ;; 5780 esac 5781 5782 cet_save_CFLAGS="$CFLAGS" 5783 CFLAGS="$CFLAGS -fcf-protection=none" 5784 cet_save_LDFLAGS="$LDFLAGS" 5785 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk" 5786 if test x$may_have_cet = xyes; then 5787 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work. 5788 if test x$gcc_no_link = xyes; then 5789 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 5790 fi 5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5792 /* end confdefs.h. */ 5793 5794 int 5795 main () 5796 { 5797 return 0; 5798 ; 5799 return 0; 5800 } 5801 _ACEOF 5802 if ac_fn_c_try_link "$LINENO"; then : 5803 may_have_cet=yes 5804 else 5805 may_have_cet=no 5806 fi 5807 rm -f core conftest.err conftest.$ac_objext \ 5808 conftest$ac_exeext conftest.$ac_ext 5809 fi 5810 5811 if test x$may_have_cet = xyes; then 5812 if test x$cross_compiling = xno; then 5813 if test "$cross_compiling" = yes; then : 5814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5816 as_fn_error $? "cannot run test program while cross compiling 5817 See \`config.log' for more details" "$LINENO" 5; } 5818 else 5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5820 /* end confdefs.h. */ 5821 5822 int 5823 main () 5824 { 5825 asm ("endbr32"); 5826 return 0; 5827 } 5828 5829 _ACEOF 5830 if ac_fn_c_try_run "$LINENO"; then : 5831 have_multi_byte_nop=yes 5832 else 5833 have_multi_byte_nop=no 5834 fi 5835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5836 conftest.$ac_objext conftest.beam conftest.$ac_ext 5837 fi 5838 5839 have_cet=no 5840 if test x$have_multi_byte_nop = xyes; then 5841 if test "$cross_compiling" = yes; then : 5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5844 as_fn_error $? "cannot run test program while cross compiling 5845 See \`config.log' for more details" "$LINENO" 5; } 5846 else 5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848 /* end confdefs.h. */ 5849 5850 static void 5851 foo (void) 5852 { 5853 } 5854 5855 static void 5856 __attribute__ ((noinline, noclone)) 5857 xxx (void (*f) (void)) 5858 { 5859 f (); 5860 } 5861 5862 static void 5863 __attribute__ ((noinline, noclone)) 5864 bar (void) 5865 { 5866 xxx (foo); 5867 } 5868 5869 int 5870 main () 5871 { 5872 bar (); 5873 return 0; 5874 } 5875 5876 _ACEOF 5877 if ac_fn_c_try_run "$LINENO"; then : 5878 have_cet=no 5879 else 5880 have_cet=yes 5881 fi 5882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5883 conftest.$ac_objext conftest.beam conftest.$ac_ext 5884 fi 5885 5886 fi 5887 if test x$enable_cet = xno -a x$have_cet = xyes; then 5888 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5 5889 fi 5890 fi 5891 else 5892 # Enable CET in cross compiler if possible so that it will run on both 5893 # CET and non-CET hosts. 5894 have_cet=yes 5895 fi 5896 if test x$enable_cet = xyes; then 5897 CET_HOST_FLAGS="-fcf-protection" 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5899 $as_echo "yes" >&6; } 5900 else 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5902 $as_echo "no" >&6; } 5903 fi 5904 CFLAGS="$cet_save_CFLAGS" 5905 LDFLAGS="$cet_save_LDFLAGS" 5906 5907 5908 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 5910 $as_echo_n "checking target system type... " >&6; } 5911 if ${ac_cv_target+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913 else 5914 if test "x$target_alias" = x; then 5915 ac_cv_target=$ac_cv_host 5916 else 5917 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 5918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 5919 fi 5920 5921 fi 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 5923 $as_echo "$ac_cv_target" >&6; } 5924 case $ac_cv_target in 5925 *-*-*) ;; 5926 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 5927 esac 5928 target=$ac_cv_target 5929 ac_save_IFS=$IFS; IFS='-' 5930 set x $ac_cv_target 5931 shift 5932 target_cpu=$1 5933 target_vendor=$2 5934 shift; shift 5935 # Remember, the first character of IFS is used to create $*, 5936 # except with old shells: 5937 target_os=$* 5938 IFS=$ac_save_IFS 5939 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 5940 5941 5942 # The aliases save the names the user supplied, while $host etc. 5943 # will get canonicalized. 5944 test -n "$target_alias" && 5945 test "$program_prefix$program_suffix$program_transform_name" = \ 5946 NONENONEs,x,x, && 5947 program_prefix=${target_alias}- 5948 5949 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS='' 5950 5951 5952 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH 5953 # with a different meaning. 5954 case ${target_os} in 5955 solaris2*) 5956 ac_save_CFLAGS="$CFLAGS" 5957 CFLAGS="$CFLAGS -Wa,-nH" 5958 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5 5960 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; } 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962 /* end confdefs.h. */ 5963 5964 int 5965 main () 5966 { 5967 return 0; 5968 ; 5969 return 0; 5970 } 5971 _ACEOF 5972 if ac_fn_c_try_compile "$LINENO"; then : 5973 ac_hwcap_flags=yes 5974 else 5975 ac_hwcap_flags=no 5976 fi 5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5978 if test "$ac_hwcap_flags" = "yes"; then 5979 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS" 5980 fi 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5 5982 $as_echo "$ac_hwcap_flags" >&6; } 5983 5984 CFLAGS="$ac_save_CFLAGS" 5985 ;; 5986 esac 5987 5988 5989 5990 5991 echo "# Warning: this fragment is automatically generated" > temp-frag 5992 5993 if [ -n "${frag}" ] && [ -f "${frag}" ]; then 5994 echo "Appending ${frag} to xhost-mkfrag" 5995 echo "# Following fragment copied from ${frag}" >> temp-frag 5996 cat ${frag} >> temp-frag 5997 fi 5998 5999 # record if we want to build shared libs. 6000 if [ "${shared}" = "yes" ]; then 6001 echo enable_shared = yes >> temp-frag 6002 else 6003 echo enable_shared = no >> temp-frag 6004 fi 6005 6006 frag=xhost-mkfrag 6007 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag 6008 6009 host_makefile_frag=${frag} 6010 6011 6012 # It's OK to check for header files. Although the compiler may not be 6013 # able to link anything, it had better be able to at least compile 6014 # something. 6015 for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h spawn.h libgen.h 6016 do : 6017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6018 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" 6019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6020 cat >>confdefs.h <<_ACEOF 6021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6022 _ACEOF 6023 6024 fi 6025 done 6026 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 6028 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 6029 if ${ac_cv_header_sys_wait_h+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031 else 6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6033 /* end confdefs.h. */ 6034 #include <sys/types.h> 6035 #include <sys/wait.h> 6036 #ifndef WEXITSTATUS 6037 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 6038 #endif 6039 #ifndef WIFEXITED 6040 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 6041 #endif 6042 6043 int 6044 main () 6045 { 6046 int s; 6047 wait (&s); 6048 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 6049 ; 6050 return 0; 6051 } 6052 _ACEOF 6053 if ac_fn_c_try_compile "$LINENO"; then : 6054 ac_cv_header_sys_wait_h=yes 6055 else 6056 ac_cv_header_sys_wait_h=no 6057 fi 6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6059 fi 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 6061 $as_echo "$ac_cv_header_sys_wait_h" >&6; } 6062 if test $ac_cv_header_sys_wait_h = yes; then 6063 6064 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 6065 6066 fi 6067 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 6069 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 6070 if ${ac_cv_header_time+:} false; then : 6071 $as_echo_n "(cached) " >&6 6072 else 6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6074 /* end confdefs.h. */ 6075 #include <sys/types.h> 6076 #include <sys/time.h> 6077 #include <time.h> 6078 6079 int 6080 main () 6081 { 6082 if ((struct tm *) 0) 6083 return 0; 6084 ; 6085 return 0; 6086 } 6087 _ACEOF 6088 if ac_fn_c_try_compile "$LINENO"; then : 6089 ac_cv_header_time=yes 6090 else 6091 ac_cv_header_time=no 6092 fi 6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6094 fi 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 6096 $as_echo "$ac_cv_header_time" >&6; } 6097 if test $ac_cv_header_time = yes; then 6098 6099 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 6100 6101 fi 6102 6103 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5 6105 $as_echo_n "checking whether errno must be declared... " >&6; } 6106 if ${libiberty_cv_declare_errno+:} false; then : 6107 $as_echo_n "(cached) " >&6 6108 else 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110 /* end confdefs.h. */ 6111 #include <errno.h> 6112 int 6113 main () 6114 { 6115 int x = errno; 6116 ; 6117 return 0; 6118 } 6119 _ACEOF 6120 if ac_fn_c_try_compile "$LINENO"; then : 6121 libiberty_cv_declare_errno=no 6122 else 6123 libiberty_cv_declare_errno=yes 6124 fi 6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6126 fi 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5 6128 $as_echo "$libiberty_cv_declare_errno" >&6; } 6129 if test $libiberty_cv_declare_errno = yes 6130 then 6131 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h 6132 6133 fi 6134 6135 6136 # Determine sizes of some types. 6137 # The cast to long int works around a bug in the HP C Compiler 6138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6140 # This bug is HP SR number 8606223364. 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6142 $as_echo_n "checking size of int... " >&6; } 6143 if ${ac_cv_sizeof_int+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145 else 6146 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6147 6148 else 6149 if test "$ac_cv_type_int" = yes; then 6150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6152 as_fn_error 77 "cannot compute sizeof (int) 6153 See \`config.log' for more details" "$LINENO" 5; } 6154 else 6155 ac_cv_sizeof_int=0 6156 fi 6157 fi 6158 6159 fi 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6161 $as_echo "$ac_cv_sizeof_int" >&6; } 6162 6163 6164 6165 cat >>confdefs.h <<_ACEOF 6166 #define SIZEOF_INT $ac_cv_sizeof_int 6167 _ACEOF 6168 6169 6170 # The cast to long int works around a bug in the HP C Compiler 6171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6173 # This bug is HP SR number 8606223364. 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6175 $as_echo_n "checking size of long... " >&6; } 6176 if ${ac_cv_sizeof_long+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178 else 6179 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6180 6181 else 6182 if test "$ac_cv_type_long" = yes; then 6183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6185 as_fn_error 77 "cannot compute sizeof (long) 6186 See \`config.log' for more details" "$LINENO" 5; } 6187 else 6188 ac_cv_sizeof_long=0 6189 fi 6190 fi 6191 6192 fi 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6194 $as_echo "$ac_cv_sizeof_long" >&6; } 6195 6196 6197 6198 cat >>confdefs.h <<_ACEOF 6199 #define SIZEOF_LONG $ac_cv_sizeof_long 6200 _ACEOF 6201 6202 6203 # The cast to long int works around a bug in the HP C Compiler 6204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6206 # This bug is HP SR number 8606223364. 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 6208 $as_echo_n "checking size of size_t... " >&6; } 6209 if ${ac_cv_sizeof_size_t+:} false; then : 6210 $as_echo_n "(cached) " >&6 6211 else 6212 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 6213 6214 else 6215 if test "$ac_cv_type_size_t" = yes; then 6216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6218 as_fn_error 77 "cannot compute sizeof (size_t) 6219 See \`config.log' for more details" "$LINENO" 5; } 6220 else 6221 ac_cv_sizeof_size_t=0 6222 fi 6223 fi 6224 6225 fi 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 6227 $as_echo "$ac_cv_sizeof_size_t" >&6; } 6228 6229 6230 6231 cat >>confdefs.h <<_ACEOF 6232 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 6233 _ACEOF 6234 6235 6236 6237 # Check for presense of long long 6238 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 6239 if test "x$ac_cv_type_long_long" = xyes; then : 6240 6241 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 6242 # The cast to long int works around a bug in the HP C Compiler 6243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6245 # This bug is HP SR number 8606223364. 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 6247 $as_echo_n "checking size of long long... " >&6; } 6248 if ${ac_cv_sizeof_long_long+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250 else 6251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 6252 6253 else 6254 if test "$ac_cv_type_long_long" = yes; then 6255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6257 as_fn_error 77 "cannot compute sizeof (long long) 6258 See \`config.log' for more details" "$LINENO" 5; } 6259 else 6260 ac_cv_sizeof_long_long=0 6261 fi 6262 fi 6263 6264 fi 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 6266 $as_echo "$ac_cv_sizeof_long_long" >&6; } 6267 6268 6269 6270 cat >>confdefs.h <<_ACEOF 6271 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6272 _ACEOF 6273 6274 6275 fi 6276 6277 6278 # Look for a 64-bit type. 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5 6280 $as_echo_n "checking for a 64-bit type... " >&6; } 6281 if ${liberty_cv_uint64+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283 else 6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6285 /* end confdefs.h. */ 6286 #ifdef HAVE_STDINT_H 6287 #include <stdint.h> 6288 #endif 6289 int 6290 main () 6291 { 6292 extern uint64_t foo; 6293 ; 6294 return 0; 6295 } 6296 _ACEOF 6297 if ac_fn_c_try_compile "$LINENO"; then : 6298 liberty_cv_uint64=uint64_t 6299 else 6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6301 /* end confdefs.h. */ 6302 #ifdef HAVE_LIMITS_H 6303 #include <limits.h> 6304 #endif 6305 #ifndef CHAR_BIT 6306 #define CHAR_BIT 8 6307 #endif 6308 int 6309 main () 6310 { 6311 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1]; 6312 ; 6313 return 0; 6314 } 6315 _ACEOF 6316 if ac_fn_c_try_compile "$LINENO"; then : 6317 liberty_cv_uint64="unsigned long" 6318 else 6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6320 /* end confdefs.h. */ 6321 #ifdef HAVE_LIMITS_H 6322 #include <limits.h> 6323 #endif 6324 #ifndef CHAR_BIT 6325 #define CHAR_BIT 8 6326 #endif 6327 int 6328 main () 6329 { 6330 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1]; 6331 ; 6332 return 0; 6333 } 6334 _ACEOF 6335 if ac_fn_c_try_compile "$LINENO"; then : 6336 liberty_cv_uint64="unsigned long long" 6337 else 6338 liberty_cv_uint64=none 6339 fi 6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6341 fi 6342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6343 fi 6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6345 fi 6346 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5 6348 $as_echo "$liberty_cv_uint64" >&6; } 6349 if test "$liberty_cv_uint64" != none; then 6350 6351 cat >>confdefs.h <<_ACEOF 6352 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64 6353 _ACEOF 6354 6355 fi 6356 6357 6358 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 6359 if test "x$ac_cv_type_intptr_t" = xyes; then : 6360 6361 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 6362 6363 else 6364 for ac_type in 'int' 'long int' 'long long int'; do 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366 /* end confdefs.h. */ 6367 $ac_includes_default 6368 int 6369 main () 6370 { 6371 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6372 test_array [0] = 0; 6373 return test_array [0]; 6374 6375 ; 6376 return 0; 6377 } 6378 _ACEOF 6379 if ac_fn_c_try_compile "$LINENO"; then : 6380 6381 cat >>confdefs.h <<_ACEOF 6382 #define intptr_t $ac_type 6383 _ACEOF 6384 6385 ac_type= 6386 fi 6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6388 test -z "$ac_type" && break 6389 done 6390 fi 6391 6392 6393 6394 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 6395 if test "x$ac_cv_type_uintptr_t" = xyes; then : 6396 6397 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 6398 6399 else 6400 for ac_type in 'unsigned int' 'unsigned long int' \ 6401 'unsigned long long int'; do 6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403 /* end confdefs.h. */ 6404 $ac_includes_default 6405 int 6406 main () 6407 { 6408 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6409 test_array [0] = 0; 6410 return test_array [0]; 6411 6412 ; 6413 return 0; 6414 } 6415 _ACEOF 6416 if ac_fn_c_try_compile "$LINENO"; then : 6417 6418 cat >>confdefs.h <<_ACEOF 6419 #define uintptr_t $ac_type 6420 _ACEOF 6421 6422 ac_type= 6423 fi 6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6425 test -z "$ac_type" && break 6426 done 6427 fi 6428 6429 6430 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 6431 if test "x$ac_cv_type_ssize_t" = xyes; then : 6432 6433 else 6434 6435 cat >>confdefs.h <<_ACEOF 6436 #define ssize_t int 6437 _ACEOF 6438 6439 fi 6440 6441 6442 # Given the above check, we always have uintptr_t or a fallback 6443 # definition. So define HAVE_UINTPTR_T in case any imported code 6444 # relies on it. 6445 6446 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 6447 6448 6449 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6450 if test "x$ac_cv_type_pid_t" = xyes; then : 6451 6452 else 6453 6454 cat >>confdefs.h <<_ACEOF 6455 #define pid_t int 6456 _ACEOF 6457 6458 fi 6459 6460 6461 # This is the list of functions which libiberty will provide if they 6462 # are not available on the host. 6463 6464 funcs="asprintf" 6465 funcs="$funcs atexit" 6466 funcs="$funcs basename" 6467 funcs="$funcs bcmp" 6468 funcs="$funcs bcopy" 6469 funcs="$funcs bsearch" 6470 funcs="$funcs bzero" 6471 funcs="$funcs calloc" 6472 funcs="$funcs clock" 6473 funcs="$funcs ffs" 6474 funcs="$funcs getcwd" 6475 funcs="$funcs getpagesize" 6476 funcs="$funcs gettimeofday" 6477 funcs="$funcs index" 6478 funcs="$funcs insque" 6479 funcs="$funcs memchr" 6480 funcs="$funcs memrchr" 6481 funcs="$funcs memcmp" 6482 funcs="$funcs memcpy" 6483 funcs="$funcs memmem" 6484 funcs="$funcs memmove" 6485 funcs="$funcs mempcpy" 6486 funcs="$funcs memset" 6487 funcs="$funcs mkstemps" 6488 funcs="$funcs putenv" 6489 funcs="$funcs random" 6490 funcs="$funcs rename" 6491 funcs="$funcs rindex" 6492 funcs="$funcs setenv" 6493 funcs="$funcs snprintf" 6494 funcs="$funcs sigsetmask" 6495 funcs="$funcs stpcpy" 6496 funcs="$funcs stpncpy" 6497 funcs="$funcs strcasecmp" 6498 funcs="$funcs strchr" 6499 funcs="$funcs strdup" 6500 funcs="$funcs strncasecmp" 6501 funcs="$funcs strndup" 6502 funcs="$funcs strnlen" 6503 funcs="$funcs strrchr" 6504 funcs="$funcs strstr" 6505 funcs="$funcs strtod" 6506 funcs="$funcs strtol" 6507 funcs="$funcs strtoul" 6508 funcs="$funcs strtoll" 6509 funcs="$funcs strtoull" 6510 funcs="$funcs strverscmp" 6511 funcs="$funcs tmpnam" 6512 funcs="$funcs vasprintf" 6513 funcs="$funcs vfprintf" 6514 funcs="$funcs vprintf" 6515 funcs="$funcs vsnprintf" 6516 funcs="$funcs vsprintf" 6517 funcs="$funcs waitpid" 6518 funcs="$funcs setproctitle" 6519 6520 # Also in the old function.def file: alloca, vfork, getopt. 6521 6522 vars="sys_errlist sys_nerr sys_siglist" 6523 6524 checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \ 6525 getsysinfo gettimeofday on_exit pipe2 posix_spawn posix_spawnp psignal \ 6526 pstat_getdynamic pstat_getstatic \ 6527 realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \ 6528 sysmp table times wait3 wait4" 6529 6530 #Darwin has sbrk, but it is deprecated and that produces build-time warnings 6531 #so do not check for it. 6532 case "${host}" in 6533 *-*-darwin*) ;; 6534 *) checkfuncs="$checkfuncs sbrk" 6535 esac 6536 6537 # These are neither executed nor required, but they help keep 6538 # autoheader happy without adding a bunch of text to acconfig.h. 6539 if test "x" = "y"; then 6540 for ac_func in asprintf atexit \ 6541 basename bcmp bcopy bsearch bzero \ 6542 calloc canonicalize_file_name clock \ 6543 dup3 \ 6544 ffs __fsetlocking \ 6545 getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \ 6546 index insque \ 6547 memchr memrchr memcmp memcpy memmem memmove memset mkstemps \ 6548 on_exit \ 6549 pipe2 posix_spawn posix_spawnp psignal \ 6550 pstat_getdynamic pstat_getstatic putenv \ 6551 random realpath rename rindex \ 6552 sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \ 6553 stpcpy stpncpy strcasecmp strchr strdup \ 6554 strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \ 6555 strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \ 6556 table times tmpnam \ 6557 vasprintf vfprintf vprintf vsprintf \ 6558 wait3 wait4 waitpid 6559 do : 6560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6562 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6563 cat >>confdefs.h <<_ACEOF 6564 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6565 _ACEOF 6566 6567 fi 6568 done 6569 6570 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` 6571 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" 6572 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 6573 ac_have_decl=1 6574 else 6575 ac_have_decl=0 6576 fi 6577 6578 cat >>confdefs.h <<_ACEOF 6579 #define HAVE_DECL_BASENAME $ac_have_decl 6580 _ACEOF 6581 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 6582 if test "x$ac_cv_have_decl_ffs" = xyes; then : 6583 ac_have_decl=1 6584 else 6585 ac_have_decl=0 6586 fi 6587 6588 cat >>confdefs.h <<_ACEOF 6589 #define HAVE_DECL_FFS $ac_have_decl 6590 _ACEOF 6591 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 6592 if test "x$ac_cv_have_decl_asprintf" = xyes; then : 6593 ac_have_decl=1 6594 else 6595 ac_have_decl=0 6596 fi 6597 6598 cat >>confdefs.h <<_ACEOF 6599 #define HAVE_DECL_ASPRINTF $ac_have_decl 6600 _ACEOF 6601 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 6602 if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 6603 ac_have_decl=1 6604 else 6605 ac_have_decl=0 6606 fi 6607 6608 cat >>confdefs.h <<_ACEOF 6609 #define HAVE_DECL_VASPRINTF $ac_have_decl 6610 _ACEOF 6611 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 6612 if test "x$ac_cv_have_decl_snprintf" = xyes; then : 6613 ac_have_decl=1 6614 else 6615 ac_have_decl=0 6616 fi 6617 6618 cat >>confdefs.h <<_ACEOF 6619 #define HAVE_DECL_SNPRINTF $ac_have_decl 6620 _ACEOF 6621 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 6622 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 6623 ac_have_decl=1 6624 else 6625 ac_have_decl=0 6626 fi 6627 6628 cat >>confdefs.h <<_ACEOF 6629 #define HAVE_DECL_VSNPRINTF $ac_have_decl 6630 _ACEOF 6631 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" 6632 if test "x$ac_cv_have_decl_strtol" = xyes; then : 6633 ac_have_decl=1 6634 else 6635 ac_have_decl=0 6636 fi 6637 6638 cat >>confdefs.h <<_ACEOF 6639 #define HAVE_DECL_STRTOL $ac_have_decl 6640 _ACEOF 6641 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" 6642 if test "x$ac_cv_have_decl_strtoul" = xyes; then : 6643 ac_have_decl=1 6644 else 6645 ac_have_decl=0 6646 fi 6647 6648 cat >>confdefs.h <<_ACEOF 6649 #define HAVE_DECL_STRTOUL $ac_have_decl 6650 _ACEOF 6651 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" 6652 if test "x$ac_cv_have_decl_strtoll" = xyes; then : 6653 ac_have_decl=1 6654 else 6655 ac_have_decl=0 6656 fi 6657 6658 cat >>confdefs.h <<_ACEOF 6659 #define HAVE_DECL_STRTOLL $ac_have_decl 6660 _ACEOF 6661 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" 6662 if test "x$ac_cv_have_decl_strtoull" = xyes; then : 6663 ac_have_decl=1 6664 else 6665 ac_have_decl=0 6666 fi 6667 6668 cat >>confdefs.h <<_ACEOF 6669 #define HAVE_DECL_STRTOULL $ac_have_decl 6670 _ACEOF 6671 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 6672 if test "x$ac_cv_have_decl_strnlen" = xyes; then : 6673 ac_have_decl=1 6674 else 6675 ac_have_decl=0 6676 fi 6677 6678 cat >>confdefs.h <<_ACEOF 6679 #define HAVE_DECL_STRNLEN $ac_have_decl 6680 _ACEOF 6681 6682 6683 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h 6684 6685 6686 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h 6687 6688 6689 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h 6690 6691 fi 6692 6693 # For each of these functions, if the host does not provide the 6694 # function we want to put FN.o in LIBOBJS, and if the host does 6695 # provide the function, we want to define HAVE_FN in config.h. 6696 6697 setobjs= 6698 CHECK= 6699 if test -n "${with_target_subdir}"; then 6700 6701 # We are being configured as a target library. AC_REPLACE_FUNCS 6702 # may not work correctly, because the compiler may not be able to 6703 # link executables. Note that we may still be being configured 6704 # native. 6705 6706 # If we are being configured for newlib, we know which functions 6707 # newlib provide and which ones we will be expected to provide. 6708 6709 if test "x${with_newlib}" = "xyes"; then 6710 case " $LIBOBJS " in 6711 *" asprintf.$ac_objext "* ) ;; 6712 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 6713 ;; 6714 esac 6715 6716 case " $LIBOBJS " in 6717 *" basename.$ac_objext "* ) ;; 6718 *) LIBOBJS="$LIBOBJS basename.$ac_objext" 6719 ;; 6720 esac 6721 6722 case " $LIBOBJS " in 6723 *" insque.$ac_objext "* ) ;; 6724 *) LIBOBJS="$LIBOBJS insque.$ac_objext" 6725 ;; 6726 esac 6727 6728 case " $LIBOBJS " in 6729 *" random.$ac_objext "* ) ;; 6730 *) LIBOBJS="$LIBOBJS random.$ac_objext" 6731 ;; 6732 esac 6733 6734 case " $LIBOBJS " in 6735 *" strdup.$ac_objext "* ) ;; 6736 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 6737 ;; 6738 esac 6739 6740 case " $LIBOBJS " in 6741 *" vasprintf.$ac_objext "* ) ;; 6742 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 6743 ;; 6744 esac 6745 6746 6747 for f in $funcs; do 6748 case "$f" in 6749 asprintf | basename | insque | random | strdup | vasprintf) 6750 ;; 6751 *) 6752 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6753 cat >>confdefs.h <<_ACEOF 6754 #define $n 1 6755 _ACEOF 6756 6757 ;; 6758 esac 6759 done 6760 6761 # newlib doesnt provide any of the variables in $vars, so we 6762 # dont have to check them here. 6763 6764 # Of the functions in $checkfuncs, newlib only has strerror. 6765 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 6766 6767 6768 setobjs=yes 6769 6770 fi 6771 6772 # If we are being configured for Mingw, we know which functions 6773 # Mingw provides and which ones we will be expected to provide. 6774 6775 case "${host}" in 6776 *-*-mingw*) 6777 case " $LIBOBJS " in 6778 *" asprintf.$ac_objext "* ) ;; 6779 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 6780 ;; 6781 esac 6782 6783 case " $LIBOBJS " in 6784 *" basename.$ac_objext "* ) ;; 6785 *) LIBOBJS="$LIBOBJS basename.$ac_objext" 6786 ;; 6787 esac 6788 6789 case " $LIBOBJS " in 6790 *" bcmp.$ac_objext "* ) ;; 6791 *) LIBOBJS="$LIBOBJS bcmp.$ac_objext" 6792 ;; 6793 esac 6794 6795 case " $LIBOBJS " in 6796 *" bcopy.$ac_objext "* ) ;; 6797 *) LIBOBJS="$LIBOBJS bcopy.$ac_objext" 6798 ;; 6799 esac 6800 6801 case " $LIBOBJS " in 6802 *" bzero.$ac_objext "* ) ;; 6803 *) LIBOBJS="$LIBOBJS bzero.$ac_objext" 6804 ;; 6805 esac 6806 6807 case " $LIBOBJS " in 6808 *" clock.$ac_objext "* ) ;; 6809 *) LIBOBJS="$LIBOBJS clock.$ac_objext" 6810 ;; 6811 esac 6812 6813 case " $LIBOBJS " in 6814 *" ffs.$ac_objext "* ) ;; 6815 *) LIBOBJS="$LIBOBJS ffs.$ac_objext" 6816 ;; 6817 esac 6818 6819 case " $LIBOBJS " in 6820 *" getpagesize.$ac_objext "* ) ;; 6821 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" 6822 ;; 6823 esac 6824 6825 case " $LIBOBJS " in 6826 *" index.$ac_objext "* ) ;; 6827 *) LIBOBJS="$LIBOBJS index.$ac_objext" 6828 ;; 6829 esac 6830 6831 case " $LIBOBJS " in 6832 *" insque.$ac_objext "* ) ;; 6833 *) LIBOBJS="$LIBOBJS insque.$ac_objext" 6834 ;; 6835 esac 6836 6837 case " $LIBOBJS " in 6838 *" mempcpy.$ac_objext "* ) ;; 6839 *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext" 6840 ;; 6841 esac 6842 6843 case " $LIBOBJS " in 6844 *" mkstemps.$ac_objext "* ) ;; 6845 *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext" 6846 ;; 6847 esac 6848 6849 case " $LIBOBJS " in 6850 *" random.$ac_objext "* ) ;; 6851 *) LIBOBJS="$LIBOBJS random.$ac_objext" 6852 ;; 6853 esac 6854 6855 case " $LIBOBJS " in 6856 *" rindex.$ac_objext "* ) ;; 6857 *) LIBOBJS="$LIBOBJS rindex.$ac_objext" 6858 ;; 6859 esac 6860 6861 case " $LIBOBJS " in 6862 *" sigsetmask.$ac_objext "* ) ;; 6863 *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext" 6864 ;; 6865 esac 6866 6867 case " $LIBOBJS " in 6868 *" stpcpy.$ac_objext "* ) ;; 6869 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext" 6870 ;; 6871 esac 6872 6873 case " $LIBOBJS " in 6874 *" stpncpy.$ac_objext "* ) ;; 6875 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" 6876 ;; 6877 esac 6878 6879 case " $LIBOBJS " in 6880 *" strndup.$ac_objext "* ) ;; 6881 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 6882 ;; 6883 esac 6884 6885 case " $LIBOBJS " in 6886 *" strnlen.$ac_objext "* ) ;; 6887 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 6888 ;; 6889 esac 6890 6891 case " $LIBOBJS " in 6892 *" strverscmp.$ac_objext "* ) ;; 6893 *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" 6894 ;; 6895 esac 6896 6897 case " $LIBOBJS " in 6898 *" vasprintf.$ac_objext "* ) ;; 6899 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 6900 ;; 6901 esac 6902 6903 case " $LIBOBJS " in 6904 *" waitpid.$ac_objext "* ) ;; 6905 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" 6906 ;; 6907 esac 6908 6909 6910 for f in $funcs; do 6911 case "$f" in 6912 asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid) 6913 ;; 6914 *) 6915 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6916 cat >>confdefs.h <<_ACEOF 6917 #define $n 1 6918 _ACEOF 6919 6920 ;; 6921 esac 6922 done 6923 6924 # Mingw doesnt provide any of the variables in $vars, so we 6925 # dont have to check them here. 6926 6927 # Of the functions in $checkfuncs, Mingw only has strerror. 6928 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 6929 6930 6931 setobjs=yes 6932 ;; 6933 6934 *-*-msdosdjgpp) 6935 case " $LIBOBJS " in 6936 *" vasprintf.$ac_objext "* ) ;; 6937 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 6938 ;; 6939 esac 6940 6941 case " $LIBOBJS " in 6942 *" vsnprintf.$ac_objext "* ) ;; 6943 *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext" 6944 ;; 6945 esac 6946 6947 case " $LIBOBJS " in 6948 *" snprintf.$ac_objext "* ) ;; 6949 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 6950 ;; 6951 esac 6952 6953 case " $LIBOBJS " in 6954 *" asprintf.$ac_objext "* ) ;; 6955 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 6956 ;; 6957 esac 6958 6959 6960 for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \ 6961 getcwd getpagesize getrusage gettimeofday \ 6962 index insque memchr memrchr memcmp memcpy memmove memset psignal \ 6963 putenv random rename rindex sbrk setenv stpcpy strcasecmp \ 6964 strchr strdup strerror strncasecmp strrchr strstr strtod \ 6965 strtol strtoul sysconf times tmpnam vfprintf vprintf \ 6966 vsprintf waitpid 6967 do 6968 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6969 cat >>confdefs.h <<_ACEOF 6970 #define $n 1 6971 _ACEOF 6972 6973 done 6974 6975 6976 setobjs=yes 6977 ;; 6978 6979 esac 6980 6981 else 6982 6983 # Not a target library, so we set things up to run the test suite. 6984 CHECK=really-check 6985 6986 fi 6987 6988 6989 6990 6991 case "${host}" in 6992 *-*-cygwin* | *-*-mingw*) 6993 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h 6994 6995 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h 6996 6997 ;; 6998 esac 6999 7000 if test -z "${setobjs}"; then 7001 case "${host}" in 7002 7003 *-*-vxworks*) 7004 # Handle VxWorks configuration specially, since on VxWorks the 7005 # libraries are actually on the target board, not in the file 7006 # system. 7007 case " $LIBOBJS " in 7008 *" basename.$ac_objext "* ) ;; 7009 *) LIBOBJS="$LIBOBJS basename.$ac_objext" 7010 ;; 7011 esac 7012 7013 case " $LIBOBJS " in 7014 *" getpagesize.$ac_objext "* ) ;; 7015 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" 7016 ;; 7017 esac 7018 7019 case " $LIBOBJS " in 7020 *" insque.$ac_objext "* ) ;; 7021 *) LIBOBJS="$LIBOBJS insque.$ac_objext" 7022 ;; 7023 esac 7024 7025 case " $LIBOBJS " in 7026 *" random.$ac_objext "* ) ;; 7027 *) LIBOBJS="$LIBOBJS random.$ac_objext" 7028 ;; 7029 esac 7030 7031 case " $LIBOBJS " in 7032 *" strcasecmp.$ac_objext "* ) ;; 7033 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 7034 ;; 7035 esac 7036 7037 case " $LIBOBJS " in 7038 *" strncasecmp.$ac_objext "* ) ;; 7039 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 7040 ;; 7041 esac 7042 7043 case " $LIBOBJS " in 7044 *" strdup.$ac_objext "* ) ;; 7045 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 7046 ;; 7047 esac 7048 7049 case " $LIBOBJS " in 7050 *" vfork.$ac_objext "* ) ;; 7051 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" 7052 ;; 7053 esac 7054 7055 case " $LIBOBJS " in 7056 *" waitpid.$ac_objext "* ) ;; 7057 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" 7058 ;; 7059 esac 7060 7061 case " $LIBOBJS " in 7062 *" vasprintf.$ac_objext "* ) ;; 7063 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 7064 ;; 7065 esac 7066 7067 for f in $funcs; do 7068 case "$f" in 7069 basename | getpagesize | insque | random | strcasecmp) 7070 ;; 7071 strncasecmp | strdup | vfork | waitpid | vasprintf) 7072 ;; 7073 *) 7074 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7075 cat >>confdefs.h <<_ACEOF 7076 #define $n 1 7077 _ACEOF 7078 7079 ;; 7080 esac 7081 done 7082 7083 # VxWorks doesn't provide any of the variables in $vars, so we 7084 # don't have to check them here. 7085 7086 # Of the functions in $checkfuncs, VxWorks only has strerror. 7087 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 7088 7089 7090 setobjs=yes 7091 ;; 7092 7093 esac 7094 fi 7095 7096 if test -z "${setobjs}"; then 7097 7098 case "${host}" in 7099 7100 *-*-android*) 7101 # On android, getpagesize is defined in unistd.h as a static inline 7102 # function, which AC_CHECK_FUNCS does not handle properly. 7103 ac_cv_func_getpagesize=yes 7104 ;; 7105 7106 hppa*-*-hpux*) 7107 # Replace system snprintf and vsnprintf with libiberty implementations. 7108 case " $LIBOBJS " in 7109 *" snprintf.$ac_objext "* ) ;; 7110 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7111 ;; 7112 esac 7113 7114 case " $LIBOBJS " in 7115 *" vsnprintf.$ac_objext "* ) ;; 7116 *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext" 7117 ;; 7118 esac 7119 7120 ;; 7121 7122 *-*-mingw32*) 7123 # Under mingw32, sys_nerr and sys_errlist exist, but they are 7124 # macros, so the test below won't find them. 7125 libiberty_cv_var_sys_nerr=yes 7126 libiberty_cv_var_sys_errlist=yes 7127 ;; 7128 7129 *-*-msdosdjgpp*) 7130 # vfork and fork are stubs. 7131 ac_cv_func_vfork_works=no 7132 ;; 7133 7134 *-*-uwin*) 7135 # Under some versions of uwin, vfork is notoriously buggy and the test 7136 # can hang configure; on other versions, vfork exists just as a stub. 7137 # FIXME: This should be removed once vfork in uwin's runtime is fixed. 7138 ac_cv_func_vfork_works=no 7139 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are 7140 # macros (actually, these are imported from a DLL, but the end effect 7141 # is the same), so the test below won't find them. 7142 libiberty_cv_var_sys_nerr=yes 7143 libiberty_cv_var_sys_errlist=yes 7144 ;; 7145 7146 *-*-*vms*) 7147 # Under VMS, vfork works very different than on Unix. The standard test 7148 # won't work, and it isn't easily adaptable. It makes more sense to 7149 # just force it. 7150 ac_cv_func_vfork_works=yes 7151 ;; 7152 7153 esac 7154 7155 # We haven't set the list of objects yet. Use the standard autoconf 7156 # tests. This will only work if the compiler works. 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 7158 $as_echo_n "checking for library containing strerror... " >&6; } 7159 if ${ac_cv_search_strerror+:} false; then : 7160 $as_echo_n "(cached) " >&6 7161 else 7162 ac_func_search_save_LIBS=$LIBS 7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7164 /* end confdefs.h. */ 7165 7166 /* Override any GCC internal prototype to avoid an error. 7167 Use char because int might match the return type of a GCC 7168 builtin and then its argument prototype would still apply. */ 7169 #ifdef __cplusplus 7170 extern "C" 7171 #endif 7172 char strerror (); 7173 int 7174 main () 7175 { 7176 return strerror (); 7177 ; 7178 return 0; 7179 } 7180 _ACEOF 7181 for ac_lib in '' cposix; do 7182 if test -z "$ac_lib"; then 7183 ac_res="none required" 7184 else 7185 ac_res=-l$ac_lib 7186 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7187 fi 7188 if test x$gcc_no_link = xyes; then 7189 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 7190 fi 7191 if ac_fn_c_try_link "$LINENO"; then : 7192 ac_cv_search_strerror=$ac_res 7193 fi 7194 rm -f core conftest.err conftest.$ac_objext \ 7195 conftest$ac_exeext 7196 if ${ac_cv_search_strerror+:} false; then : 7197 break 7198 fi 7199 done 7200 if ${ac_cv_search_strerror+:} false; then : 7201 7202 else 7203 ac_cv_search_strerror=no 7204 fi 7205 rm conftest.$ac_ext 7206 LIBS=$ac_func_search_save_LIBS 7207 fi 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 7209 $as_echo "$ac_cv_search_strerror" >&6; } 7210 ac_res=$ac_cv_search_strerror 7211 if test "$ac_res" != no; then : 7212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7213 7214 fi 7215 7216 for ac_func in $funcs 7217 do : 7218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7221 cat >>confdefs.h <<_ACEOF 7222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7223 _ACEOF 7224 7225 else 7226 case " $LIBOBJS " in 7227 *" $ac_func.$ac_objext "* ) ;; 7228 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 7229 ;; 7230 esac 7231 7232 fi 7233 done 7234 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5 7236 $as_echo_n "checking whether alloca needs Cray hooks... " >&6; } 7237 if ${ac_cv_os_cray+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239 else 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241 /* end confdefs.h. */ 7242 #if defined(CRAY) && ! defined(CRAY2) 7243 webecray 7244 #else 7245 wenotbecray 7246 #endif 7247 7248 _ACEOF 7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7250 $EGREP "webecray" >/dev/null 2>&1; then : 7251 ac_cv_os_cray=yes 7252 else 7253 ac_cv_os_cray=no 7254 fi 7255 rm -f conftest* 7256 7257 fi 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 7259 $as_echo "$ac_cv_os_cray" >&6; } 7260 if test $ac_cv_os_cray = yes; then 7261 for ac_func in _getb67 GETB67 getb67; do 7262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7263 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7264 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7265 7266 cat >>confdefs.h <<_ACEOF 7267 #define CRAY_STACKSEG_END $ac_func 7268 _ACEOF 7269 break 7270 fi 7271 7272 done 7273 fi 7274 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 7276 $as_echo_n "checking stack direction for C alloca... " >&6; } 7277 if ${ac_cv_c_stack_direction+:} false; then : 7278 $as_echo_n "(cached) " >&6 7279 else 7280 if test "$cross_compiling" = yes; then : 7281 ac_cv_c_stack_direction=0 7282 else 7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7284 /* end confdefs.h. */ 7285 #include <stdlib.h> 7286 7287 int 7288 find_stack_direction (void) 7289 { 7290 static char *addr = 0; 7291 auto char dummy; 7292 if (addr == 0) 7293 { 7294 addr = &dummy; 7295 return find_stack_direction (); 7296 } 7297 else 7298 return (&dummy > addr) ? 1 : -1; 7299 } 7300 7301 int 7302 main (void) 7303 { 7304 exit (find_stack_direction() < 0); 7305 } 7306 _ACEOF 7307 if ac_fn_c_try_run "$LINENO"; then : 7308 ac_cv_c_stack_direction=1 7309 else 7310 ac_cv_c_stack_direction=-1 7311 fi 7312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7313 conftest.$ac_objext conftest.beam conftest.$ac_ext 7314 fi 7315 7316 fi 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7318 $as_echo "$ac_cv_c_stack_direction" >&6; } 7319 7320 cat >>confdefs.h <<_ACEOF 7321 #define STACK_DIRECTION $ac_cv_c_stack_direction 7322 _ACEOF 7323 7324 7325 for ac_header in vfork.h 7326 do : 7327 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h" 7328 if test "x$ac_cv_header_vfork_h" = xyes; then : 7329 cat >>confdefs.h <<_ACEOF 7330 #define HAVE_VFORK_H 1 7331 _ACEOF 7332 7333 fi 7334 done 7335 7336 for ac_func in fork vfork 7337 do : 7338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7339 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7340 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7341 cat >>confdefs.h <<_ACEOF 7342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7343 _ACEOF 7344 7345 fi 7346 done 7347 7348 if test "x$ac_cv_func_fork" = xyes; then 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 7350 $as_echo_n "checking for working fork... " >&6; } 7351 if ${ac_cv_func_fork_works+:} false; then : 7352 $as_echo_n "(cached) " >&6 7353 else 7354 if test "$cross_compiling" = yes; then : 7355 ac_cv_func_fork_works=cross 7356 else 7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7358 /* end confdefs.h. */ 7359 $ac_includes_default 7360 int 7361 main () 7362 { 7363 7364 /* By Ruediger Kuhlmann. */ 7365 return fork () < 0; 7366 7367 ; 7368 return 0; 7369 } 7370 _ACEOF 7371 if ac_fn_c_try_run "$LINENO"; then : 7372 ac_cv_func_fork_works=yes 7373 else 7374 ac_cv_func_fork_works=no 7375 fi 7376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7377 conftest.$ac_objext conftest.beam conftest.$ac_ext 7378 fi 7379 7380 fi 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 7382 $as_echo "$ac_cv_func_fork_works" >&6; } 7383 7384 else 7385 ac_cv_func_fork_works=$ac_cv_func_fork 7386 fi 7387 if test "x$ac_cv_func_fork_works" = xcross; then 7388 case $host in 7389 *-*-amigaos* | *-*-msdosdjgpp*) 7390 # Override, as these systems have only a dummy fork() stub 7391 ac_cv_func_fork_works=no 7392 ;; 7393 *) 7394 ac_cv_func_fork_works=yes 7395 ;; 7396 esac 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 7398 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 7399 fi 7400 ac_cv_func_vfork_works=$ac_cv_func_vfork 7401 if test "x$ac_cv_func_vfork" = xyes; then 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 7403 $as_echo_n "checking for working vfork... " >&6; } 7404 if ${ac_cv_func_vfork_works+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406 else 7407 if test "$cross_compiling" = yes; then : 7408 ac_cv_func_vfork_works=cross 7409 else 7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7411 /* end confdefs.h. */ 7412 /* Thanks to Paul Eggert for this test. */ 7413 $ac_includes_default 7414 #include <sys/wait.h> 7415 #ifdef HAVE_VFORK_H 7416 # include <vfork.h> 7417 #endif 7418 /* On some sparc systems, changes by the child to local and incoming 7419 argument registers are propagated back to the parent. The compiler 7420 is told about this with #include <vfork.h>, but some compilers 7421 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 7422 static variable whose address is put into a register that is 7423 clobbered by the vfork. */ 7424 static void 7425 #ifdef __cplusplus 7426 sparc_address_test (int arg) 7427 # else 7428 sparc_address_test (arg) int arg; 7429 #endif 7430 { 7431 static pid_t child; 7432 if (!child) { 7433 child = vfork (); 7434 if (child < 0) { 7435 perror ("vfork"); 7436 _exit(2); 7437 } 7438 if (!child) { 7439 arg = getpid(); 7440 write(-1, "", 0); 7441 _exit (arg); 7442 } 7443 } 7444 } 7445 7446 int 7447 main () 7448 { 7449 pid_t parent = getpid (); 7450 pid_t child; 7451 7452 sparc_address_test (0); 7453 7454 child = vfork (); 7455 7456 if (child == 0) { 7457 /* Here is another test for sparc vfork register problems. This 7458 test uses lots of local variables, at least as many local 7459 variables as main has allocated so far including compiler 7460 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 7461 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 7462 reuse the register of parent for one of the local variables, 7463 since it will think that parent can't possibly be used any more 7464 in this routine. Assigning to the local variable will thus 7465 munge parent in the parent process. */ 7466 pid_t 7467 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 7468 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 7469 /* Convince the compiler that p..p7 are live; otherwise, it might 7470 use the same hardware register for all 8 local variables. */ 7471 if (p != p1 || p != p2 || p != p3 || p != p4 7472 || p != p5 || p != p6 || p != p7) 7473 _exit(1); 7474 7475 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 7476 from child file descriptors. If the child closes a descriptor 7477 before it execs or exits, this munges the parent's descriptor 7478 as well. Test for this by closing stdout in the child. */ 7479 _exit(close(fileno(stdout)) != 0); 7480 } else { 7481 int status; 7482 struct stat st; 7483 7484 while (wait(&status) != child) 7485 ; 7486 return ( 7487 /* Was there some problem with vforking? */ 7488 child < 0 7489 7490 /* Did the child fail? (This shouldn't happen.) */ 7491 || status 7492 7493 /* Did the vfork/compiler bug occur? */ 7494 || parent != getpid() 7495 7496 /* Did the file descriptor bug occur? */ 7497 || fstat(fileno(stdout), &st) != 0 7498 ); 7499 } 7500 } 7501 _ACEOF 7502 if ac_fn_c_try_run "$LINENO"; then : 7503 ac_cv_func_vfork_works=yes 7504 else 7505 ac_cv_func_vfork_works=no 7506 fi 7507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7508 conftest.$ac_objext conftest.beam conftest.$ac_ext 7509 fi 7510 7511 fi 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 7513 $as_echo "$ac_cv_func_vfork_works" >&6; } 7514 7515 fi; 7516 if test "x$ac_cv_func_fork_works" = xcross; then 7517 ac_cv_func_vfork_works=$ac_cv_func_vfork 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 7519 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 7520 fi 7521 7522 if test "x$ac_cv_func_vfork_works" = xyes; then 7523 7524 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 7525 7526 else 7527 7528 $as_echo "#define vfork fork" >>confdefs.h 7529 7530 fi 7531 if test "x$ac_cv_func_fork_works" = xyes; then 7532 7533 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 7534 7535 fi 7536 7537 if test $ac_cv_func_vfork_works = no; then 7538 case " $LIBOBJS " in 7539 *" vfork.$ac_objext "* ) ;; 7540 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" 7541 ;; 7542 esac 7543 7544 fi 7545 # We only need _doprnt if we might use it to implement v*printf. 7546 if test $ac_cv_func_vprintf != yes \ 7547 || test $ac_cv_func_vfprintf != yes \ 7548 || test $ac_cv_func_vsprintf != yes; then 7549 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 7550 if test "x$ac_cv_func__doprnt" = xyes; then : 7551 $as_echo "#define HAVE__DOPRNT 1" >>confdefs.h 7552 7553 else 7554 case " $LIBOBJS " in 7555 *" _doprnt.$ac_objext "* ) ;; 7556 *) LIBOBJS="$LIBOBJS _doprnt.$ac_objext" 7557 ;; 7558 esac 7559 7560 fi 7561 7562 7563 else 7564 for ac_func in _doprnt 7565 do : 7566 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 7567 if test "x$ac_cv_func__doprnt" = xyes; then : 7568 cat >>confdefs.h <<_ACEOF 7569 #define HAVE__DOPRNT 1 7570 _ACEOF 7571 7572 fi 7573 done 7574 7575 fi 7576 7577 for v in $vars; do 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5 7579 $as_echo_n "checking for $v... " >&6; } 7580 if eval \${libiberty_cv_var_$v+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582 else 7583 if test x$gcc_no_link = xyes; then 7584 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 7585 fi 7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7587 /* end confdefs.h. */ 7588 extern int $v []; 7589 int 7590 main () 7591 { 7592 if ($v [0]) return 1; 7593 ; 7594 return 0; 7595 } 7596 _ACEOF 7597 if ac_fn_c_try_link "$LINENO"; then : 7598 eval "libiberty_cv_var_$v=yes" 7599 else 7600 eval "libiberty_cv_var_$v=no" 7601 fi 7602 rm -f core conftest.err conftest.$ac_objext \ 7603 conftest$ac_exeext conftest.$ac_ext 7604 fi 7605 7606 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7608 $as_echo "yes" >&6; } 7609 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7610 cat >>confdefs.h <<_ACEOF 7611 #define $n 1 7612 _ACEOF 7613 7614 else 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7616 $as_echo "no" >&6; } 7617 fi 7618 done 7619 7620 # special check for _system_configuration because AIX <4.3.2 do not 7621 # contain the `physmem' member. 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5 7623 $as_echo_n "checking for external symbol _system_configuration... " >&6; } 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625 /* end confdefs.h. */ 7626 #include <sys/systemcfg.h> 7627 int 7628 main () 7629 { 7630 double x = _system_configuration.physmem; 7631 ; 7632 return 0; 7633 } 7634 _ACEOF 7635 if ac_fn_c_try_compile "$LINENO"; then : 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7637 $as_echo "yes" >&6; } 7638 7639 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h 7640 7641 else 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7643 $as_echo "no" >&6; } 7644 fi 7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7646 7647 for ac_func in $checkfuncs 7648 do : 7649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7650 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7651 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7652 cat >>confdefs.h <<_ACEOF 7653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7654 _ACEOF 7655 7656 fi 7657 done 7658 7659 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` 7660 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" " 7661 $ac_includes_default 7662 #ifdef HAVE_LIBGEN_H 7663 # include <libgen.h> 7664 #endif 7665 " 7666 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 7667 ac_have_decl=1 7668 else 7669 ac_have_decl=0 7670 fi 7671 7672 cat >>confdefs.h <<_ACEOF 7673 #define HAVE_DECL_BASENAME $ac_have_decl 7674 _ACEOF 7675 7676 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 7677 if test "x$ac_cv_have_decl_ffs" = xyes; then : 7678 ac_have_decl=1 7679 else 7680 ac_have_decl=0 7681 fi 7682 7683 cat >>confdefs.h <<_ACEOF 7684 #define HAVE_DECL_FFS $ac_have_decl 7685 _ACEOF 7686 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 7687 if test "x$ac_cv_have_decl_asprintf" = xyes; then : 7688 ac_have_decl=1 7689 else 7690 ac_have_decl=0 7691 fi 7692 7693 cat >>confdefs.h <<_ACEOF 7694 #define HAVE_DECL_ASPRINTF $ac_have_decl 7695 _ACEOF 7696 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 7697 if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 7698 ac_have_decl=1 7699 else 7700 ac_have_decl=0 7701 fi 7702 7703 cat >>confdefs.h <<_ACEOF 7704 #define HAVE_DECL_VASPRINTF $ac_have_decl 7705 _ACEOF 7706 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 7707 if test "x$ac_cv_have_decl_snprintf" = xyes; then : 7708 ac_have_decl=1 7709 else 7710 ac_have_decl=0 7711 fi 7712 7713 cat >>confdefs.h <<_ACEOF 7714 #define HAVE_DECL_SNPRINTF $ac_have_decl 7715 _ACEOF 7716 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 7717 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 7718 ac_have_decl=1 7719 else 7720 ac_have_decl=0 7721 fi 7722 7723 cat >>confdefs.h <<_ACEOF 7724 #define HAVE_DECL_VSNPRINTF $ac_have_decl 7725 _ACEOF 7726 7727 ac_fn_c_check_decl "$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default" 7728 if test "x$ac_cv_have_decl_calloc" = xyes; then : 7729 ac_have_decl=1 7730 else 7731 ac_have_decl=0 7732 fi 7733 7734 cat >>confdefs.h <<_ACEOF 7735 #define HAVE_DECL_CALLOC $ac_have_decl 7736 _ACEOF 7737 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 7738 if test "x$ac_cv_have_decl_getenv" = xyes; then : 7739 ac_have_decl=1 7740 else 7741 ac_have_decl=0 7742 fi 7743 7744 cat >>confdefs.h <<_ACEOF 7745 #define HAVE_DECL_GETENV $ac_have_decl 7746 _ACEOF 7747 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default" 7748 if test "x$ac_cv_have_decl_getopt" = xyes; then : 7749 ac_have_decl=1 7750 else 7751 ac_have_decl=0 7752 fi 7753 7754 cat >>confdefs.h <<_ACEOF 7755 #define HAVE_DECL_GETOPT $ac_have_decl 7756 _ACEOF 7757 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default" 7758 if test "x$ac_cv_have_decl_malloc" = xyes; then : 7759 ac_have_decl=1 7760 else 7761 ac_have_decl=0 7762 fi 7763 7764 cat >>confdefs.h <<_ACEOF 7765 #define HAVE_DECL_MALLOC $ac_have_decl 7766 _ACEOF 7767 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default" 7768 if test "x$ac_cv_have_decl_realloc" = xyes; then : 7769 ac_have_decl=1 7770 else 7771 ac_have_decl=0 7772 fi 7773 7774 cat >>confdefs.h <<_ACEOF 7775 #define HAVE_DECL_REALLOC $ac_have_decl 7776 _ACEOF 7777 7778 case "${host}" in 7779 *-*-darwin*) ;; # Darwin's sbrk implementation is deprecated. 7780 *) ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" 7781 if test "x$ac_cv_have_decl_sbrk" = xyes; then : 7782 ac_have_decl=1 7783 else 7784 ac_have_decl=0 7785 fi 7786 7787 cat >>confdefs.h <<_ACEOF 7788 #define HAVE_DECL_SBRK $ac_have_decl 7789 _ACEOF 7790 ;; 7791 esac 7792 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" 7793 if test "x$ac_cv_have_decl_strtol" = xyes; then : 7794 ac_have_decl=1 7795 else 7796 ac_have_decl=0 7797 fi 7798 7799 cat >>confdefs.h <<_ACEOF 7800 #define HAVE_DECL_STRTOL $ac_have_decl 7801 _ACEOF 7802 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" 7803 if test "x$ac_cv_have_decl_strtoul" = xyes; then : 7804 ac_have_decl=1 7805 else 7806 ac_have_decl=0 7807 fi 7808 7809 cat >>confdefs.h <<_ACEOF 7810 #define HAVE_DECL_STRTOUL $ac_have_decl 7811 _ACEOF 7812 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" 7813 if test "x$ac_cv_have_decl_strtoll" = xyes; then : 7814 ac_have_decl=1 7815 else 7816 ac_have_decl=0 7817 fi 7818 7819 cat >>confdefs.h <<_ACEOF 7820 #define HAVE_DECL_STRTOLL $ac_have_decl 7821 _ACEOF 7822 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" 7823 if test "x$ac_cv_have_decl_strtoull" = xyes; then : 7824 ac_have_decl=1 7825 else 7826 ac_have_decl=0 7827 fi 7828 7829 cat >>confdefs.h <<_ACEOF 7830 #define HAVE_DECL_STRTOULL $ac_have_decl 7831 _ACEOF 7832 7833 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" 7834 if test "x$ac_cv_have_decl_strverscmp" = xyes; then : 7835 ac_have_decl=1 7836 else 7837 ac_have_decl=0 7838 fi 7839 7840 cat >>confdefs.h <<_ACEOF 7841 #define HAVE_DECL_STRVERSCMP $ac_have_decl 7842 _ACEOF 7843 7844 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 7845 if test "x$ac_cv_have_decl_strnlen" = xyes; then : 7846 ac_have_decl=1 7847 else 7848 ac_have_decl=0 7849 fi 7850 7851 cat >>confdefs.h <<_ACEOF 7852 #define HAVE_DECL_STRNLEN $ac_have_decl 7853 _ACEOF 7854 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5 7856 $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; } 7857 if ${libiberty_cv_decl_needed_canonicalize_file_name+:} false; then : 7858 $as_echo_n "(cached) " >&6 7859 else 7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7861 /* end confdefs.h. */ 7862 7863 #include "confdefs.h" 7864 #include <stdio.h> 7865 #ifdef HAVE_STRING_H 7866 #include <string.h> 7867 #else 7868 #ifdef HAVE_STRINGS_H 7869 #include <strings.h> 7870 #endif 7871 #endif 7872 #ifdef HAVE_STDLIB_H 7873 #include <stdlib.h> 7874 #endif 7875 #ifdef HAVE_UNISTD_H 7876 #include <unistd.h> 7877 #endif 7878 int 7879 main () 7880 { 7881 char *(*pfn) = (char *(*)) canonicalize_file_name 7882 ; 7883 return 0; 7884 } 7885 _ACEOF 7886 if ac_fn_c_try_compile "$LINENO"; then : 7887 libiberty_cv_decl_needed_canonicalize_file_name=no 7888 else 7889 libiberty_cv_decl_needed_canonicalize_file_name=yes 7890 fi 7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7892 fi 7893 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5 7895 $as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; } 7896 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then 7897 7898 $as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h 7899 7900 fi 7901 7902 fi 7903 7904 # Figure out which version of pexecute to use. 7905 case "${host}" in 7906 *-*-mingw* | *-*-winnt*) pexecute=pex-win32 ;; 7907 *-*-msdosdjgpp*) pexecute=pex-djgpp ;; 7908 *-*-msdos*) pexecute=pex-msdos ;; 7909 *) pexecute=pex-unix ;; 7910 esac 7911 7912 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 HW acceleration support" >&5 7914 $as_echo_n "checking for SHA1 HW acceleration support... " >&6; } 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916 /* end confdefs.h. */ 7917 7918 #include <x86intrin.h> 7919 #include <cpuid.h> 7920 7921 __attribute__((__target__ ("sse4.1,sha"))) 7922 void foo (__m128i *buf, unsigned int e, __m128i msg0, __m128i msg1) 7923 { 7924 __m128i abcd = _mm_loadu_si128 ((const __m128i *) buf); 7925 __m128i e0 = _mm_set_epi32 (e, 0, 0, 0); 7926 abcd = _mm_shuffle_epi32 (abcd, 0x1b); 7927 const __m128i shuf_mask = _mm_set_epi64x (0x0001020304050607ULL, 0x08090a0b0c0d0e0fULL); 7928 abcd = _mm_shuffle_epi8 (abcd, shuf_mask); 7929 e0 = _mm_sha1nexte_epu32 (e0, msg1); 7930 abcd = _mm_sha1rnds4_epu32 (abcd, e0, 0); 7931 msg0 = _mm_sha1msg1_epu32 (msg0, msg1); 7932 msg0 = _mm_sha1msg2_epu32 (msg0, msg1); 7933 msg0 = _mm_xor_si128 (msg0, msg1); 7934 e0 = _mm_add_epi32 (e0, msg0); 7935 e0 = abcd; 7936 _mm_storeu_si128 (buf, abcd); 7937 e = _mm_extract_epi32 (e0, 3); 7938 } 7939 7940 int bar (void) 7941 { 7942 unsigned int eax, ebx, ecx, edx; 7943 (void) __get_cpuid; 7944 (void) __get_cpuid_count; 7945 if (__get_cpuid_count (7, 0, &eax, &ebx, &ecx, &edx) 7946 && (ebx & bit_SHA) != 0 7947 && __get_cpuid (1, &eax, &ebx, &ecx, &edx) 7948 && (ecx & bit_SSE4_1) != 0) 7949 return 1; 7950 return 0; 7951 } 7952 7953 int 7954 main () 7955 { 7956 bar (); 7957 ; 7958 return 0; 7959 } 7960 _ACEOF 7961 if ac_fn_c_try_compile "$LINENO"; then : 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86 SHA1" >&5 7963 $as_echo "x86 SHA1" >&6; } 7964 7965 $as_echo "#define HAVE_X86_SHA1_HW_SUPPORT 1" >>confdefs.h 7966 7967 else 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7969 $as_echo "no" >&6; } 7970 fi 7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7972 7973 7974 7975 7976 for ac_header in $ac_header_list 7977 do : 7978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7979 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" 7980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7981 cat >>confdefs.h <<_ACEOF 7982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7983 _ACEOF 7984 7985 fi 7986 done 7987 7988 7989 7990 7991 7992 7993 7994 if test x$gcc_no_link = xyes; then 7995 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then 7996 ac_cv_func_mmap_fixed_mapped=no 7997 fi 7998 fi 7999 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then 8000 save_ASAN_OPTIONS="$ASAN_OPTIONS" 8001 ASAN_OPTIONS=detect_leaks=0 8002 export ASAN_OPTIONS 8003 8004 for ac_func in getpagesize 8005 do : 8006 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 8007 if test "x$ac_cv_func_getpagesize" = xyes; then : 8008 cat >>confdefs.h <<_ACEOF 8009 #define HAVE_GETPAGESIZE 1 8010 _ACEOF 8011 8012 fi 8013 done 8014 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 8016 $as_echo_n "checking for working mmap... " >&6; } 8017 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019 else 8020 if test "$cross_compiling" = yes; then : 8021 ac_cv_func_mmap_fixed_mapped=no 8022 else 8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8024 /* end confdefs.h. */ 8025 $ac_includes_default 8026 /* malloc might have been renamed as rpl_malloc. */ 8027 #undef malloc 8028 8029 /* Thanks to Mike Haertel and Jim Avera for this test. 8030 Here is a matrix of mmap possibilities: 8031 mmap private not fixed 8032 mmap private fixed at somewhere currently unmapped 8033 mmap private fixed at somewhere already mapped 8034 mmap shared not fixed 8035 mmap shared fixed at somewhere currently unmapped 8036 mmap shared fixed at somewhere already mapped 8037 For private mappings, we should verify that changes cannot be read() 8038 back from the file, nor mmap's back from the file at a different 8039 address. (There have been systems where private was not correctly 8040 implemented like the infamous i386 svr4.0, and systems where the 8041 VM page cache was not coherent with the file system buffer cache 8042 like early versions of FreeBSD and possibly contemporary NetBSD.) 8043 For shared mappings, we should conversely verify that changes get 8044 propagated back to all the places they're supposed to be. 8045 8046 Grep wants private fixed already mapped. 8047 The main things grep needs to know about mmap are: 8048 * does it exist and is it safe to write into the mmap'd area 8049 * how to use it (BSD variants) */ 8050 8051 #include <fcntl.h> 8052 #include <sys/mman.h> 8053 8054 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 8055 char *malloc (); 8056 #endif 8057 8058 /* This mess was copied from the GNU getpagesize.h. */ 8059 #ifndef HAVE_GETPAGESIZE 8060 # ifdef _SC_PAGESIZE 8061 # define getpagesize() sysconf(_SC_PAGESIZE) 8062 # else /* no _SC_PAGESIZE */ 8063 # ifdef HAVE_SYS_PARAM_H 8064 # include <sys/param.h> 8065 # ifdef EXEC_PAGESIZE 8066 # define getpagesize() EXEC_PAGESIZE 8067 # else /* no EXEC_PAGESIZE */ 8068 # ifdef NBPG 8069 # define getpagesize() NBPG * CLSIZE 8070 # ifndef CLSIZE 8071 # define CLSIZE 1 8072 # endif /* no CLSIZE */ 8073 # else /* no NBPG */ 8074 # ifdef NBPC 8075 # define getpagesize() NBPC 8076 # else /* no NBPC */ 8077 # ifdef PAGESIZE 8078 # define getpagesize() PAGESIZE 8079 # endif /* PAGESIZE */ 8080 # endif /* no NBPC */ 8081 # endif /* no NBPG */ 8082 # endif /* no EXEC_PAGESIZE */ 8083 # else /* no HAVE_SYS_PARAM_H */ 8084 # define getpagesize() 8192 /* punt totally */ 8085 # endif /* no HAVE_SYS_PARAM_H */ 8086 # endif /* no _SC_PAGESIZE */ 8087 8088 #endif /* no HAVE_GETPAGESIZE */ 8089 8090 int 8091 main () 8092 { 8093 char *data, *data2, *data3; 8094 const char *cdata2; 8095 int i, pagesize; 8096 int fd, fd2; 8097 8098 pagesize = getpagesize (); 8099 8100 /* First, make a file with some known garbage in it. */ 8101 data = (char *) malloc (pagesize); 8102 if (!data) 8103 return 1; 8104 for (i = 0; i < pagesize; ++i) 8105 *(data + i) = rand (); 8106 umask (0); 8107 fd = creat ("conftest.mmap", 0600); 8108 if (fd < 0) 8109 return 2; 8110 if (write (fd, data, pagesize) != pagesize) 8111 return 3; 8112 close (fd); 8113 8114 /* Next, check that the tail of a page is zero-filled. File must have 8115 non-zero length, otherwise we risk SIGBUS for entire page. */ 8116 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 8117 if (fd2 < 0) 8118 return 4; 8119 cdata2 = ""; 8120 if (write (fd2, cdata2, 1) != 1) 8121 return 5; 8122 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 8123 if (data2 == MAP_FAILED) 8124 return 6; 8125 for (i = 0; i < pagesize; ++i) 8126 if (*(data2 + i)) 8127 return 7; 8128 close (fd2); 8129 if (munmap (data2, pagesize)) 8130 return 8; 8131 8132 /* Next, try to mmap the file at a fixed address which already has 8133 something else allocated at it. If we can, also make sure that 8134 we see the same garbage. */ 8135 fd = open ("conftest.mmap", O_RDWR); 8136 if (fd < 0) 8137 return 9; 8138 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 8139 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 8140 return 10; 8141 for (i = 0; i < pagesize; ++i) 8142 if (*(data + i) != *(data2 + i)) 8143 return 11; 8144 8145 /* Finally, make sure that changes to the mapped area do not 8146 percolate back to the file as seen by read(). (This is a bug on 8147 some variants of i386 svr4.0.) */ 8148 for (i = 0; i < pagesize; ++i) 8149 *(data2 + i) = *(data2 + i) + 1; 8150 data3 = (char *) malloc (pagesize); 8151 if (!data3) 8152 return 12; 8153 if (read (fd, data3, pagesize) != pagesize) 8154 return 13; 8155 for (i = 0; i < pagesize; ++i) 8156 if (*(data + i) != *(data3 + i)) 8157 return 14; 8158 close (fd); 8159 return 0; 8160 } 8161 _ACEOF 8162 if ac_fn_c_try_run "$LINENO"; then : 8163 ac_cv_func_mmap_fixed_mapped=yes 8164 else 8165 ac_cv_func_mmap_fixed_mapped=no 8166 fi 8167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8168 conftest.$ac_objext conftest.beam conftest.$ac_ext 8169 fi 8170 8171 fi 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 8173 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 8174 if test $ac_cv_func_mmap_fixed_mapped = yes; then 8175 8176 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 8177 8178 fi 8179 rm -f conftest.mmap conftest.txt 8180 8181 ASAN_OPTIONS="$save_ASAN_OPTIONS" 8182 8183 fi 8184 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5 8186 $as_echo_n "checking for working strncmp... " >&6; } 8187 if ${ac_cv_func_strncmp_works+:} false; then : 8188 $as_echo_n "(cached) " >&6 8189 else 8190 if test "$cross_compiling" = yes; then : 8191 ac_cv_func_strncmp_works=yes 8192 else 8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8194 /* end confdefs.h. */ 8195 8196 /* Test by Jim Wilson and Kaveh Ghazi. 8197 Check whether strncmp reads past the end of its string parameters. */ 8198 #include <stdlib.h> 8199 #include <string.h> 8200 #include <sys/types.h> 8201 8202 #ifdef HAVE_FCNTL_H 8203 #include <fcntl.h> 8204 #endif 8205 8206 #ifdef HAVE_SYS_MMAN_H 8207 #include <sys/mman.h> 8208 #endif 8209 8210 #ifndef MAP_ANON 8211 #ifdef MAP_ANONYMOUS 8212 #define MAP_ANON MAP_ANONYMOUS 8213 #else 8214 #define MAP_ANON MAP_FILE 8215 #endif 8216 #endif 8217 8218 #ifndef MAP_FILE 8219 #define MAP_FILE 0 8220 #endif 8221 #ifndef O_RDONLY 8222 #define O_RDONLY 0 8223 #endif 8224 8225 #define MAP_LEN 0x10000 8226 8227 int 8228 main (void) 8229 { 8230 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE) 8231 char *p; 8232 int dev_zero; 8233 8234 dev_zero = open ("/dev/zero", O_RDONLY); 8235 if (dev_zero < 0) 8236 exit (1); 8237 8238 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, 8239 MAP_ANON|MAP_PRIVATE, dev_zero, 0); 8240 if (p == (char *)-1) 8241 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, 8242 MAP_ANON|MAP_PRIVATE, -1, 0); 8243 if (p == (char *)-1) 8244 exit (2); 8245 else 8246 { 8247 char *string = "__si_type_info"; 8248 char *q = (char *) p + MAP_LEN - strlen (string) - 2; 8249 char *r = (char *) p + 0xe; 8250 8251 strcpy (q, string); 8252 strcpy (r, string); 8253 strncmp (r, q, 14); 8254 } 8255 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */ 8256 exit (0); 8257 } 8258 8259 _ACEOF 8260 if ac_fn_c_try_run "$LINENO"; then : 8261 ac_cv_func_strncmp_works=yes 8262 else 8263 ac_cv_func_strncmp_works=no 8264 fi 8265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8266 conftest.$ac_objext conftest.beam conftest.$ac_ext 8267 fi 8268 8269 rm -f core core.* *.core 8270 fi 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5 8272 $as_echo "$ac_cv_func_strncmp_works" >&6; } 8273 if test $ac_cv_func_strncmp_works = no ; then 8274 case " $LIBOBJS " in 8275 *" strncmp.$ac_objext "* ) ;; 8276 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" 8277 ;; 8278 esac 8279 8280 fi 8281 8282 8283 # Install a library built with a cross compiler in $(tooldir) rather 8284 # than $(libdir). 8285 if test -z "${with_cross_host}"; then 8286 INSTALL_DEST=libdir 8287 else 8288 INSTALL_DEST=tooldir 8289 fi 8290 8291 8292 8293 L="" 8294 for l in x $LIBOBJS; do 8295 case $l in 8296 x) ;; 8297 *) L="$L ./$l" ;; 8298 esac 8299 done 8300 LIBOBJS="$L" 8301 8302 8303 8304 8305 8306 # We need multilib support, but only if configuring for the target. 8307 ac_config_files="$ac_config_files Makefile" # testsuite/Makefile 8308 8309 ac_config_commands="$ac_config_commands default" 8310 8311 cat >confcache <<\_ACEOF 8312 # This file is a shell script that caches the results of configure 8313 # tests run on this system so they can be shared between configure 8314 # scripts and configure runs, see configure's option --config-cache. 8315 # It is not useful on other systems. If it contains results you don't 8316 # want to keep, you may remove or edit it. 8317 # 8318 # config.status only pays attention to the cache file if you give it 8319 # the --recheck option to rerun configure. 8320 # 8321 # `ac_cv_env_foo' variables (set or unset) will be overridden when 8322 # loading this file, other *unset* `ac_cv_foo' will be assigned the 8323 # following values. 8324 8325 _ACEOF 8326 8327 # The following way of writing the cache mishandles newlines in values, 8328 # but we know of no workaround that is simple, portable, and efficient. 8329 # So, we kill variables containing newlines. 8330 # Ultrix sh set writes to stderr and can't be redirected directly, 8331 # and sets the high bit in the cache file unless we assign to the vars. 8332 ( 8333 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8334 eval ac_val=\$$ac_var 8335 case $ac_val in #( 8336 *${as_nl}*) 8337 case $ac_var in #( 8338 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8339 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8340 esac 8341 case $ac_var in #( 8342 _ | IFS | as_nl) ;; #( 8343 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8344 *) { eval $ac_var=; unset $ac_var;} ;; 8345 esac ;; 8346 esac 8347 done 8348 8349 (set) 2>&1 | 8350 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8351 *${as_nl}ac_space=\ *) 8352 # `set' does not quote correctly, so add quotes: double-quote 8353 # substitution turns \\\\ into \\, and sed turns \\ into \. 8354 sed -n \ 8355 "s/'/'\\\\''/g; 8356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8357 ;; #( 8358 *) 8359 # `set' quotes correctly as required by POSIX, so do not add quotes. 8360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8361 ;; 8362 esac | 8363 sort 8364 ) | 8365 sed ' 8366 /^ac_cv_env_/b end 8367 t clear 8368 :clear 8369 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8370 t end 8371 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8372 :end' >>confcache 8373 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8374 if test -w "$cache_file"; then 8375 if test "x$cache_file" != "x/dev/null"; then 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8377 $as_echo "$as_me: updating cache $cache_file" >&6;} 8378 if test ! -f "$cache_file" || test -h "$cache_file"; then 8379 cat confcache >"$cache_file" 8380 else 8381 case $cache_file in #( 8382 */* | ?:*) 8383 mv -f confcache "$cache_file"$$ && 8384 mv -f "$cache_file"$$ "$cache_file" ;; #( 8385 *) 8386 mv -f confcache "$cache_file" ;; 8387 esac 8388 fi 8389 fi 8390 else 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8392 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8393 fi 8394 fi 8395 rm -f confcache 8396 8397 test "x$prefix" = xNONE && prefix=$ac_default_prefix 8398 # Let make expand exec_prefix. 8399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8400 8401 DEFS=-DHAVE_CONFIG_H 8402 8403 ac_libobjs= 8404 ac_ltlibobjs= 8405 U= 8406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8407 # 1. Remove the extension, and $U if already installed. 8408 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8409 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8410 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8411 # will be set to the directory where LIBOBJS objects are built. 8412 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8413 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8414 done 8415 LIBOBJS=$ac_libobjs 8416 8417 LTLIBOBJS=$ac_ltlibobjs 8418 8419 8420 8421 8422 : "${CONFIG_STATUS=./config.status}" 8423 ac_write_fail=0 8424 ac_clean_files_save=$ac_clean_files 8425 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8427 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8428 as_write_fail=0 8429 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8430 #! $SHELL 8431 # Generated by $as_me. 8432 # Run this file to recreate the current configuration. 8433 # Compiler output produced by configure, useful for debugging 8434 # configure, is in config.log if it exists. 8435 8436 debug=false 8437 ac_cs_recheck=false 8438 ac_cs_silent=false 8439 8440 SHELL=\${CONFIG_SHELL-$SHELL} 8441 export SHELL 8442 _ASEOF 8443 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8444 ## -------------------- ## 8445 ## M4sh Initialization. ## 8446 ## -------------------- ## 8447 8448 # Be more Bourne compatible 8449 DUALCASE=1; export DUALCASE # for MKS sh 8450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8451 emulate sh 8452 NULLCMD=: 8453 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8454 # is contrary to our usage. Disable this feature. 8455 alias -g '${1+"$@"}'='"$@"' 8456 setopt NO_GLOB_SUBST 8457 else 8458 case `(set -o) 2>/dev/null` in #( 8459 *posix*) : 8460 set -o posix ;; #( 8461 *) : 8462 ;; 8463 esac 8464 fi 8465 8466 8467 as_nl=' 8468 ' 8469 export as_nl 8470 # Printing a long string crashes Solaris 7 /usr/bin/printf. 8471 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8474 # Prefer a ksh shell builtin over an external printf program on Solaris, 8475 # but without wasting forks for bash or zsh. 8476 if test -z "$BASH_VERSION$ZSH_VERSION" \ 8477 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8478 as_echo='print -r --' 8479 as_echo_n='print -rn --' 8480 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8481 as_echo='printf %s\n' 8482 as_echo_n='printf %s' 8483 else 8484 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8485 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8486 as_echo_n='/usr/ucb/echo -n' 8487 else 8488 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8489 as_echo_n_body='eval 8490 arg=$1; 8491 case $arg in #( 8492 *"$as_nl"*) 8493 expr "X$arg" : "X\\(.*\\)$as_nl"; 8494 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8495 esac; 8496 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8497 ' 8498 export as_echo_n_body 8499 as_echo_n='sh -c $as_echo_n_body as_echo' 8500 fi 8501 export as_echo_body 8502 as_echo='sh -c $as_echo_body as_echo' 8503 fi 8504 8505 # The user is always right. 8506 if test "${PATH_SEPARATOR+set}" != set; then 8507 PATH_SEPARATOR=: 8508 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8509 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8510 PATH_SEPARATOR=';' 8511 } 8512 fi 8513 8514 8515 # IFS 8516 # We need space, tab and new line, in precisely that order. Quoting is 8517 # there to prevent editors from complaining about space-tab. 8518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 8519 # splitting by setting IFS to empty value.) 8520 IFS=" "" $as_nl" 8521 8522 # Find who we are. Look in the path if we contain no directory separator. 8523 as_myself= 8524 case $0 in #(( 8525 *[\\/]* ) as_myself=$0 ;; 8526 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8527 for as_dir in $PATH 8528 do 8529 IFS=$as_save_IFS 8530 test -z "$as_dir" && as_dir=. 8531 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8532 done 8533 IFS=$as_save_IFS 8534 8535 ;; 8536 esac 8537 # We did not find ourselves, most probably we were run as `sh COMMAND' 8538 # in which case we are not to be found in the path. 8539 if test "x$as_myself" = x; then 8540 as_myself=$0 8541 fi 8542 if test ! -f "$as_myself"; then 8543 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8544 exit 1 8545 fi 8546 8547 # Unset variables that we do not need and which cause bugs (e.g. in 8548 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8549 # suppresses any "Segmentation fault" message there. '((' could 8550 # trigger a bug in pdksh 5.2.14. 8551 for as_var in BASH_ENV ENV MAIL MAILPATH 8552 do eval test x\${$as_var+set} = xset \ 8553 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8554 done 8555 PS1='$ ' 8556 PS2='> ' 8557 PS4='+ ' 8558 8559 # NLS nuisances. 8560 LC_ALL=C 8561 export LC_ALL 8562 LANGUAGE=C 8563 export LANGUAGE 8564 8565 # CDPATH. 8566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8567 8568 8569 # as_fn_error STATUS ERROR [LINENO LOG_FD] 8570 # ---------------------------------------- 8571 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8572 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8573 # script with STATUS, using 1 if that was 0. 8574 as_fn_error () 8575 { 8576 as_status=$1; test $as_status -eq 0 && as_status=1 8577 if test "$4"; then 8578 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8579 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8580 fi 8581 $as_echo "$as_me: error: $2" >&2 8582 as_fn_exit $as_status 8583 } # as_fn_error 8584 8585 8586 # as_fn_set_status STATUS 8587 # ----------------------- 8588 # Set $? to STATUS, without forking. 8589 as_fn_set_status () 8590 { 8591 return $1 8592 } # as_fn_set_status 8593 8594 # as_fn_exit STATUS 8595 # ----------------- 8596 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8597 as_fn_exit () 8598 { 8599 set +e 8600 as_fn_set_status $1 8601 exit $1 8602 } # as_fn_exit 8603 8604 # as_fn_unset VAR 8605 # --------------- 8606 # Portably unset VAR. 8607 as_fn_unset () 8608 { 8609 { eval $1=; unset $1;} 8610 } 8611 as_unset=as_fn_unset 8612 # as_fn_append VAR VALUE 8613 # ---------------------- 8614 # Append the text in VALUE to the end of the definition contained in VAR. Take 8615 # advantage of any shell optimizations that allow amortized linear growth over 8616 # repeated appends, instead of the typical quadratic growth present in naive 8617 # implementations. 8618 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8619 eval 'as_fn_append () 8620 { 8621 eval $1+=\$2 8622 }' 8623 else 8624 as_fn_append () 8625 { 8626 eval $1=\$$1\$2 8627 } 8628 fi # as_fn_append 8629 8630 # as_fn_arith ARG... 8631 # ------------------ 8632 # Perform arithmetic evaluation on the ARGs, and store the result in the 8633 # global $as_val. Take advantage of shells that can avoid forks. The arguments 8634 # must be portable across $(()) and expr. 8635 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8636 eval 'as_fn_arith () 8637 { 8638 as_val=$(( $* )) 8639 }' 8640 else 8641 as_fn_arith () 8642 { 8643 as_val=`expr "$@" || test $? -eq 1` 8644 } 8645 fi # as_fn_arith 8646 8647 8648 if expr a : '\(a\)' >/dev/null 2>&1 && 8649 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8650 as_expr=expr 8651 else 8652 as_expr=false 8653 fi 8654 8655 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8656 as_basename=basename 8657 else 8658 as_basename=false 8659 fi 8660 8661 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8662 as_dirname=dirname 8663 else 8664 as_dirname=false 8665 fi 8666 8667 as_me=`$as_basename -- "$0" || 8668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8669 X"$0" : 'X\(//\)$' \| \ 8670 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8671 $as_echo X/"$0" | 8672 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8673 s//\1/ 8674 q 8675 } 8676 /^X\/\(\/\/\)$/{ 8677 s//\1/ 8678 q 8679 } 8680 /^X\/\(\/\).*/{ 8681 s//\1/ 8682 q 8683 } 8684 s/.*/./; q'` 8685 8686 # Avoid depending upon Character Ranges. 8687 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8688 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8689 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8690 as_cr_digits='0123456789' 8691 as_cr_alnum=$as_cr_Letters$as_cr_digits 8692 8693 ECHO_C= ECHO_N= ECHO_T= 8694 case `echo -n x` in #((((( 8695 -n*) 8696 case `echo 'xy\c'` in 8697 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8698 xy) ECHO_C='\c';; 8699 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8700 ECHO_T=' ';; 8701 esac;; 8702 *) 8703 ECHO_N='-n';; 8704 esac 8705 8706 rm -f conf$$ conf$$.exe conf$$.file 8707 if test -d conf$$.dir; then 8708 rm -f conf$$.dir/conf$$.file 8709 else 8710 rm -f conf$$.dir 8711 mkdir conf$$.dir 2>/dev/null 8712 fi 8713 if (echo >conf$$.file) 2>/dev/null; then 8714 if ln -s conf$$.file conf$$ 2>/dev/null; then 8715 as_ln_s='ln -s' 8716 # ... but there are two gotchas: 8717 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8718 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8719 # In both cases, we have to default to `cp -pR'. 8720 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8721 as_ln_s='cp -pR' 8722 elif ln conf$$.file conf$$ 2>/dev/null; then 8723 as_ln_s=ln 8724 else 8725 as_ln_s='cp -pR' 8726 fi 8727 else 8728 as_ln_s='cp -pR' 8729 fi 8730 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8731 rmdir conf$$.dir 2>/dev/null 8732 8733 8734 # as_fn_mkdir_p 8735 # ------------- 8736 # Create "$as_dir" as a directory, including parents if necessary. 8737 as_fn_mkdir_p () 8738 { 8739 8740 case $as_dir in #( 8741 -*) as_dir=./$as_dir;; 8742 esac 8743 test -d "$as_dir" || eval $as_mkdir_p || { 8744 as_dirs= 8745 while :; do 8746 case $as_dir in #( 8747 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8748 *) as_qdir=$as_dir;; 8749 esac 8750 as_dirs="'$as_qdir' $as_dirs" 8751 as_dir=`$as_dirname -- "$as_dir" || 8752 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8753 X"$as_dir" : 'X\(//\)[^/]' \| \ 8754 X"$as_dir" : 'X\(//\)$' \| \ 8755 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8756 $as_echo X"$as_dir" | 8757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8758 s//\1/ 8759 q 8760 } 8761 /^X\(\/\/\)[^/].*/{ 8762 s//\1/ 8763 q 8764 } 8765 /^X\(\/\/\)$/{ 8766 s//\1/ 8767 q 8768 } 8769 /^X\(\/\).*/{ 8770 s//\1/ 8771 q 8772 } 8773 s/.*/./; q'` 8774 test -d "$as_dir" && break 8775 done 8776 test -z "$as_dirs" || eval "mkdir $as_dirs" 8777 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8778 8779 8780 } # as_fn_mkdir_p 8781 if mkdir -p . 2>/dev/null; then 8782 as_mkdir_p='mkdir -p "$as_dir"' 8783 else 8784 test -d ./-p && rmdir ./-p 8785 as_mkdir_p=false 8786 fi 8787 8788 8789 # as_fn_executable_p FILE 8790 # ----------------------- 8791 # Test if FILE is an executable regular file. 8792 as_fn_executable_p () 8793 { 8794 test -f "$1" && test -x "$1" 8795 } # as_fn_executable_p 8796 as_test_x='test -x' 8797 as_executable_p=as_fn_executable_p 8798 8799 # Sed expression to map a string onto a valid CPP name. 8800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8801 8802 # Sed expression to map a string onto a valid variable name. 8803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8804 8805 8806 exec 6>&1 8807 ## ----------------------------------- ## 8808 ## Main body of $CONFIG_STATUS script. ## 8809 ## ----------------------------------- ## 8810 _ASEOF 8811 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8812 8813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8814 # Save the log message, to keep $0 and so on meaningful, and to 8815 # report actual input values of CONFIG_FILES etc. instead of their 8816 # values after options handling. 8817 ac_log=" 8818 This file was extended by $as_me, which was 8819 generated by GNU Autoconf 2.69. Invocation command line was 8820 8821 CONFIG_FILES = $CONFIG_FILES 8822 CONFIG_HEADERS = $CONFIG_HEADERS 8823 CONFIG_LINKS = $CONFIG_LINKS 8824 CONFIG_COMMANDS = $CONFIG_COMMANDS 8825 $ $0 $@ 8826 8827 on `(hostname || uname -n) 2>/dev/null | sed 1q` 8828 " 8829 8830 _ACEOF 8831 8832 case $ac_config_files in *" 8833 "*) set x $ac_config_files; shift; ac_config_files=$*;; 8834 esac 8835 8836 case $ac_config_headers in *" 8837 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8838 esac 8839 8840 8841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8842 # Files that config.status was made for. 8843 config_files="$ac_config_files" 8844 config_headers="$ac_config_headers" 8845 config_commands="$ac_config_commands" 8846 8847 _ACEOF 8848 8849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8850 ac_cs_usage="\ 8851 \`$as_me' instantiates files and other configuration actions 8852 from templates according to the current configuration. Unless the files 8853 and actions are specified as TAGs, all are instantiated by default. 8854 8855 Usage: $0 [OPTION]... [TAG]... 8856 8857 -h, --help print this help, then exit 8858 -V, --version print version number and configuration settings, then exit 8859 --config print configuration, then exit 8860 -q, --quiet, --silent 8861 do not print progress messages 8862 -d, --debug don't remove temporary files 8863 --recheck update $as_me by reconfiguring in the same conditions 8864 --file=FILE[:TEMPLATE] 8865 instantiate the configuration file FILE 8866 --header=FILE[:TEMPLATE] 8867 instantiate the configuration header FILE 8868 8869 Configuration files: 8870 $config_files 8871 8872 Configuration headers: 8873 $config_headers 8874 8875 Configuration commands: 8876 $config_commands 8877 8878 Report bugs to the package provider." 8879 8880 _ACEOF 8881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8882 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8883 ac_cs_version="\\ 8884 config.status 8885 configured by $0, generated by GNU Autoconf 2.69, 8886 with options \\"\$ac_cs_config\\" 8887 8888 Copyright (C) 2012 Free Software Foundation, Inc. 8889 This config.status script is free software; the Free Software Foundation 8890 gives unlimited permission to copy, distribute and modify it." 8891 8892 ac_pwd='$ac_pwd' 8893 srcdir='$srcdir' 8894 INSTALL='$INSTALL' 8895 test -n "\$AWK" || AWK=awk 8896 _ACEOF 8897 8898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8899 # The default lists apply if the user does not specify any file. 8900 ac_need_defaults=: 8901 while test $# != 0 8902 do 8903 case $1 in 8904 --*=?*) 8905 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8907 ac_shift=: 8908 ;; 8909 --*=) 8910 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8911 ac_optarg= 8912 ac_shift=: 8913 ;; 8914 *) 8915 ac_option=$1 8916 ac_optarg=$2 8917 ac_shift=shift 8918 ;; 8919 esac 8920 8921 case $ac_option in 8922 # Handling of the options. 8923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8924 ac_cs_recheck=: ;; 8925 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8926 $as_echo "$ac_cs_version"; exit ;; 8927 --config | --confi | --conf | --con | --co | --c ) 8928 $as_echo "$ac_cs_config"; exit ;; 8929 --debug | --debu | --deb | --de | --d | -d ) 8930 debug=: ;; 8931 --file | --fil | --fi | --f ) 8932 $ac_shift 8933 case $ac_optarg in 8934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8935 '') as_fn_error $? "missing file argument" ;; 8936 esac 8937 as_fn_append CONFIG_FILES " '$ac_optarg'" 8938 ac_need_defaults=false;; 8939 --header | --heade | --head | --hea ) 8940 $ac_shift 8941 case $ac_optarg in 8942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8943 esac 8944 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8945 ac_need_defaults=false;; 8946 --he | --h) 8947 # Conflict between --help and --header 8948 as_fn_error $? "ambiguous option: \`$1' 8949 Try \`$0 --help' for more information.";; 8950 --help | --hel | -h ) 8951 $as_echo "$ac_cs_usage"; exit ;; 8952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8953 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8954 ac_cs_silent=: ;; 8955 8956 # This is an error. 8957 -*) as_fn_error $? "unrecognized option: \`$1' 8958 Try \`$0 --help' for more information." ;; 8959 8960 *) as_fn_append ac_config_targets " $1" 8961 ac_need_defaults=false ;; 8962 8963 esac 8964 shift 8965 done 8966 8967 ac_configure_extra_args= 8968 8969 if $ac_cs_silent; then 8970 exec 6>/dev/null 8971 ac_configure_extra_args="$ac_configure_extra_args --silent" 8972 fi 8973 8974 _ACEOF 8975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8976 if \$ac_cs_recheck; then 8977 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8978 shift 8979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8980 CONFIG_SHELL='$SHELL' 8981 export CONFIG_SHELL 8982 exec "\$@" 8983 fi 8984 8985 _ACEOF 8986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8987 exec 5>>config.log 8988 { 8989 echo 8990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8991 ## Running $as_me. ## 8992 _ASBOX 8993 $as_echo "$ac_log" 8994 } >&5 8995 8996 _ACEOF 8997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8998 # 8999 # INIT-COMMANDS 9000 # 9001 srcdir=${srcdir} 9002 host=${host} 9003 target=${target} 9004 with_target_subdir=${with_target_subdir} 9005 with_multisubdir=${with_multisubdir} 9006 ac_configure_args="--enable-multilib ${ac_configure_args}" 9007 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 9008 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" 9009 libiberty_topdir=${libiberty_topdir} 9010 9011 9012 _ACEOF 9013 9014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9015 9016 # Handling of arguments. 9017 for ac_config_target in $ac_config_targets 9018 do 9019 case $ac_config_target in 9020 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 9021 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9022 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 9023 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 9024 9025 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9026 esac 9027 done 9028 9029 9030 # If the user did not use the arguments to specify the items to instantiate, 9031 # then the envvar interface is used. Set only those that are not. 9032 # We use the long form for the default assignment because of an extremely 9033 # bizarre bug on SunOS 4.1.3. 9034 if $ac_need_defaults; then 9035 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9036 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9037 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9038 fi 9039 9040 # Have a temporary directory for convenience. Make it in the build tree 9041 # simply because there is no reason against having it here, and in addition, 9042 # creating and moving files from /tmp can sometimes cause problems. 9043 # Hook for its removal unless debugging. 9044 # Note that there is a small window in which the directory will not be cleaned: 9045 # after its creation but before its name has been assigned to `$tmp'. 9046 $debug || 9047 { 9048 tmp= ac_tmp= 9049 trap 'exit_status=$? 9050 : "${ac_tmp:=$tmp}" 9051 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9052 ' 0 9053 trap 'as_fn_exit 1' 1 2 13 15 9054 } 9055 # Create a (secure) tmp directory for tmp files. 9056 9057 { 9058 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9059 test -d "$tmp" 9060 } || 9061 { 9062 tmp=./conf$$-$RANDOM 9063 (umask 077 && mkdir "$tmp") 9064 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9065 ac_tmp=$tmp 9066 9067 # Set up the scripts for CONFIG_FILES section. 9068 # No need to generate them if there are no CONFIG_FILES. 9069 # This happens for instance with `./config.status config.h'. 9070 if test -n "$CONFIG_FILES"; then 9071 9072 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 9073 ac_cs_awk_getline=: 9074 ac_cs_awk_pipe_init= 9075 ac_cs_awk_read_file=' 9076 while ((getline aline < (F[key])) > 0) 9077 print(aline) 9078 close(F[key])' 9079 ac_cs_awk_pipe_fini= 9080 else 9081 ac_cs_awk_getline=false 9082 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 9083 ac_cs_awk_read_file=' 9084 print "|#_!!_#|" 9085 print "cat " F[key] " &&" 9086 '$ac_cs_awk_pipe_init 9087 # The final `:' finishes the AND list. 9088 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 9089 fi 9090 ac_cr=`echo X | tr X '\015'` 9091 # On cygwin, bash can eat \r inside `` if the user requested igncr. 9092 # But we know of no other shell where ac_cr would be empty at this 9093 # point, so we can use a bashism as a fallback. 9094 if test "x$ac_cr" = x; then 9095 eval ac_cr=\$\'\\r\' 9096 fi 9097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9099 ac_cs_awk_cr='\\r' 9100 else 9101 ac_cs_awk_cr=$ac_cr 9102 fi 9103 9104 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9105 _ACEOF 9106 9107 # Create commands to substitute file output variables. 9108 { 9109 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 9110 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 9111 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 9112 echo "_ACAWK" && 9113 echo "_ACEOF" 9114 } >conf$$files.sh && 9115 . ./conf$$files.sh || 9116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9117 rm -f conf$$files.sh 9118 9119 { 9120 echo "cat >conf$$subs.awk <<_ACEOF" && 9121 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9122 echo "_ACEOF" 9123 } >conf$$subs.sh || 9124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9125 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9126 ac_delim='%!_!# ' 9127 for ac_last_try in false false false false false :; do 9128 . ./conf$$subs.sh || 9129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9130 9131 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9132 if test $ac_delim_n = $ac_delim_num; then 9133 break 9134 elif $ac_last_try; then 9135 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9136 else 9137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9138 fi 9139 done 9140 rm -f conf$$subs.sh 9141 9142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9143 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9144 _ACEOF 9145 sed -n ' 9146 h 9147 s/^/S["/; s/!.*/"]=/ 9148 p 9149 g 9150 s/^[^!]*!// 9151 :repl 9152 t repl 9153 s/'"$ac_delim"'$// 9154 t delim 9155 :nl 9156 h 9157 s/\(.\{148\}\)..*/\1/ 9158 t more1 9159 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9160 p 9161 n 9162 b repl 9163 :more1 9164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9165 p 9166 g 9167 s/.\{148\}// 9168 t nl 9169 :delim 9170 h 9171 s/\(.\{148\}\)..*/\1/ 9172 t more2 9173 s/["\\]/\\&/g; s/^/"/; s/$/"/ 9174 p 9175 b 9176 :more2 9177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9178 p 9179 g 9180 s/.\{148\}// 9181 t delim 9182 ' <conf$$subs.awk | sed ' 9183 /^[^""]/{ 9184 N 9185 s/\n// 9186 } 9187 ' >>$CONFIG_STATUS || ac_write_fail=1 9188 rm -f conf$$subs.awk 9189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9190 _ACAWK 9191 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9192 for (key in S) S_is_set[key] = 1 9193 FS = "" 9194 \$ac_cs_awk_pipe_init 9195 } 9196 { 9197 line = $ 0 9198 nfields = split(line, field, "@") 9199 substed = 0 9200 len = length(field[1]) 9201 for (i = 2; i < nfields; i++) { 9202 key = field[i] 9203 keylen = length(key) 9204 if (S_is_set[key]) { 9205 value = S[key] 9206 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9207 len += length(value) + length(field[++i]) 9208 substed = 1 9209 } else 9210 len += 1 + keylen 9211 } 9212 if (nfields == 3 && !substed) { 9213 key = field[2] 9214 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 9215 \$ac_cs_awk_read_file 9216 next 9217 } 9218 } 9219 print line 9220 } 9221 \$ac_cs_awk_pipe_fini 9222 _ACAWK 9223 _ACEOF 9224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9225 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9226 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9227 else 9228 cat 9229 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9230 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9231 _ACEOF 9232 9233 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9234 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9235 # trailing colons and then remove the whole line if VPATH becomes empty 9236 # (actually we leave an empty line to preserve line numbers). 9237 if test "x$srcdir" = x.; then 9238 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9239 h 9240 s/// 9241 s/^/:/ 9242 s/[ ]*$/:/ 9243 s/:\$(srcdir):/:/g 9244 s/:\${srcdir}:/:/g 9245 s/:@srcdir@:/:/g 9246 s/^:*// 9247 s/:*$// 9248 x 9249 s/\(=[ ]*\).*/\1/ 9250 G 9251 s/\n// 9252 s/^[^=]*=[ ]*$// 9253 }' 9254 fi 9255 9256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9257 fi # test -n "$CONFIG_FILES" 9258 9259 # Set up the scripts for CONFIG_HEADERS section. 9260 # No need to generate them if there are no CONFIG_HEADERS. 9261 # This happens for instance with `./config.status Makefile'. 9262 if test -n "$CONFIG_HEADERS"; then 9263 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 9264 BEGIN { 9265 _ACEOF 9266 9267 # Transform confdefs.h into an awk script `defines.awk', embedded as 9268 # here-document in config.status, that substitutes the proper values into 9269 # config.h.in to produce config.h. 9270 9271 # Create a delimiter string that does not exist in confdefs.h, to ease 9272 # handling of long lines. 9273 ac_delim='%!_!# ' 9274 for ac_last_try in false false :; do 9275 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 9276 if test -z "$ac_tt"; then 9277 break 9278 elif $ac_last_try; then 9279 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9280 else 9281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9282 fi 9283 done 9284 9285 # For the awk script, D is an array of macro values keyed by name, 9286 # likewise P contains macro parameters if any. Preserve backslash 9287 # newline sequences. 9288 9289 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9290 sed -n ' 9291 s/.\{148\}/&'"$ac_delim"'/g 9292 t rset 9293 :rset 9294 s/^[ ]*#[ ]*define[ ][ ]*/ / 9295 t def 9296 d 9297 :def 9298 s/\\$// 9299 t bsnl 9300 s/["\\]/\\&/g 9301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9302 D["\1"]=" \3"/p 9303 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9304 d 9305 :bsnl 9306 s/["\\]/\\&/g 9307 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9308 D["\1"]=" \3\\\\\\n"\\/p 9309 t cont 9310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9311 t cont 9312 d 9313 :cont 9314 n 9315 s/.\{148\}/&'"$ac_delim"'/g 9316 t clear 9317 :clear 9318 s/\\$// 9319 t bsnlc 9320 s/["\\]/\\&/g; s/^/"/; s/$/"/p 9321 d 9322 :bsnlc 9323 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9324 b cont 9325 ' <confdefs.h | sed ' 9326 s/'"$ac_delim"'/"\\\ 9327 "/g' >>$CONFIG_STATUS || ac_write_fail=1 9328 9329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9330 for (key in D) D_is_set[key] = 1 9331 FS = "" 9332 } 9333 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9334 line = \$ 0 9335 split(line, arg, " ") 9336 if (arg[1] == "#") { 9337 defundef = arg[2] 9338 mac1 = arg[3] 9339 } else { 9340 defundef = substr(arg[1], 2) 9341 mac1 = arg[2] 9342 } 9343 split(mac1, mac2, "(") #) 9344 macro = mac2[1] 9345 prefix = substr(line, 1, index(line, defundef) - 1) 9346 if (D_is_set[macro]) { 9347 # Preserve the white space surrounding the "#". 9348 print prefix "define", macro P[macro] D[macro] 9349 next 9350 } else { 9351 # Replace #undef with comments. This is necessary, for example, 9352 # in the case of _POSIX_SOURCE, which is predefined and required 9353 # on some systems where configure will not decide to define it. 9354 if (defundef == "undef") { 9355 print "/*", prefix defundef, macro, "*/" 9356 next 9357 } 9358 } 9359 } 9360 { print } 9361 _ACAWK 9362 _ACEOF 9363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9364 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 9365 fi # test -n "$CONFIG_HEADERS" 9366 9367 9368 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 9369 shift 9370 for ac_tag 9371 do 9372 case $ac_tag in 9373 :[FHLC]) ac_mode=$ac_tag; continue;; 9374 esac 9375 case $ac_mode$ac_tag in 9376 :[FHL]*:*);; 9377 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9378 :[FH]-) ac_tag=-:-;; 9379 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9380 esac 9381 ac_save_IFS=$IFS 9382 IFS=: 9383 set x $ac_tag 9384 IFS=$ac_save_IFS 9385 shift 9386 ac_file=$1 9387 shift 9388 9389 case $ac_mode in 9390 :L) ac_source=$1;; 9391 :[FH]) 9392 ac_file_inputs= 9393 for ac_f 9394 do 9395 case $ac_f in 9396 -) ac_f="$ac_tmp/stdin";; 9397 *) # Look for the file first in the build tree, then in the source tree 9398 # (if the path is not absolute). The absolute path cannot be DOS-style, 9399 # because $ac_f cannot contain `:'. 9400 test -f "$ac_f" || 9401 case $ac_f in 9402 [\\/$]*) false;; 9403 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9404 esac || 9405 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9406 esac 9407 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9408 as_fn_append ac_file_inputs " '$ac_f'" 9409 done 9410 9411 # Let's still pretend it is `configure' which instantiates (i.e., don't 9412 # use $as_me), people would be surprised to read: 9413 # /* config.h. Generated by config.status. */ 9414 configure_input='Generated from '` 9415 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9416 `' by configure.' 9417 if test x"$ac_file" != x-; then 9418 configure_input="$ac_file. $configure_input" 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9420 $as_echo "$as_me: creating $ac_file" >&6;} 9421 fi 9422 # Neutralize special characters interpreted by sed in replacement strings. 9423 case $configure_input in #( 9424 *\&* | *\|* | *\\* ) 9425 ac_sed_conf_input=`$as_echo "$configure_input" | 9426 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9427 *) ac_sed_conf_input=$configure_input;; 9428 esac 9429 9430 case $ac_tag in 9431 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9432 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9433 esac 9434 ;; 9435 esac 9436 9437 ac_dir=`$as_dirname -- "$ac_file" || 9438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9439 X"$ac_file" : 'X\(//\)[^/]' \| \ 9440 X"$ac_file" : 'X\(//\)$' \| \ 9441 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9442 $as_echo X"$ac_file" | 9443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9444 s//\1/ 9445 q 9446 } 9447 /^X\(\/\/\)[^/].*/{ 9448 s//\1/ 9449 q 9450 } 9451 /^X\(\/\/\)$/{ 9452 s//\1/ 9453 q 9454 } 9455 /^X\(\/\).*/{ 9456 s//\1/ 9457 q 9458 } 9459 s/.*/./; q'` 9460 as_dir="$ac_dir"; as_fn_mkdir_p 9461 ac_builddir=. 9462 9463 case "$ac_dir" in 9464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9465 *) 9466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9467 # A ".." for each directory in $ac_dir_suffix. 9468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9469 case $ac_top_builddir_sub in 9470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9472 esac ;; 9473 esac 9474 ac_abs_top_builddir=$ac_pwd 9475 ac_abs_builddir=$ac_pwd$ac_dir_suffix 9476 # for backward compatibility: 9477 ac_top_builddir=$ac_top_build_prefix 9478 9479 case $srcdir in 9480 .) # We are building in place. 9481 ac_srcdir=. 9482 ac_top_srcdir=$ac_top_builddir_sub 9483 ac_abs_top_srcdir=$ac_pwd ;; 9484 [\\/]* | ?:[\\/]* ) # Absolute name. 9485 ac_srcdir=$srcdir$ac_dir_suffix; 9486 ac_top_srcdir=$srcdir 9487 ac_abs_top_srcdir=$srcdir ;; 9488 *) # Relative name. 9489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9490 ac_top_srcdir=$ac_top_build_prefix$srcdir 9491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9492 esac 9493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9494 9495 9496 case $ac_mode in 9497 :F) 9498 # 9499 # CONFIG_FILE 9500 # 9501 9502 case $INSTALL in 9503 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9504 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9505 esac 9506 _ACEOF 9507 9508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9509 # If the template does not know about datarootdir, expand it. 9510 # FIXME: This hack should be removed a few years after 2.60. 9511 ac_datarootdir_hack=; ac_datarootdir_seen= 9512 ac_sed_dataroot=' 9513 /datarootdir/ { 9514 p 9515 q 9516 } 9517 /@datadir@/p 9518 /@docdir@/p 9519 /@infodir@/p 9520 /@localedir@/p 9521 /@mandir@/p' 9522 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9523 *datarootdir*) ac_datarootdir_seen=yes;; 9524 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9526 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9527 _ACEOF 9528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9529 ac_datarootdir_hack=' 9530 s&@datadir@&$datadir&g 9531 s&@docdir@&$docdir&g 9532 s&@infodir@&$infodir&g 9533 s&@localedir@&$localedir&g 9534 s&@mandir@&$mandir&g 9535 s&\\\${datarootdir}&$datarootdir&g' ;; 9536 esac 9537 _ACEOF 9538 9539 # Neutralize VPATH when `$srcdir' = `.'. 9540 # Shell code in configure.ac might set extrasub. 9541 # FIXME: do we really want to maintain this feature? 9542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9543 ac_sed_extra="$ac_vpsub 9544 $extrasub 9545 _ACEOF 9546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9547 :t 9548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9549 s|@configure_input@|$ac_sed_conf_input|;t t 9550 s&@top_builddir@&$ac_top_builddir_sub&;t t 9551 s&@top_build_prefix@&$ac_top_build_prefix&;t t 9552 s&@srcdir@&$ac_srcdir&;t t 9553 s&@abs_srcdir@&$ac_abs_srcdir&;t t 9554 s&@top_srcdir@&$ac_top_srcdir&;t t 9555 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9556 s&@builddir@&$ac_builddir&;t t 9557 s&@abs_builddir@&$ac_abs_builddir&;t t 9558 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9559 s&@INSTALL@&$ac_INSTALL&;t t 9560 $ac_datarootdir_hack 9561 " 9562 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 9563 if $ac_cs_awk_getline; then 9564 $AWK -f "$ac_tmp/subs.awk" 9565 else 9566 $AWK -f "$ac_tmp/subs.awk" | $SHELL 9567 fi \ 9568 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9569 9570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9573 "$ac_tmp/out"`; test -z "$ac_out"; } && 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9575 which seems to be undefined. Please make sure it is defined" >&5 9576 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9577 which seems to be undefined. Please make sure it is defined" >&2;} 9578 9579 rm -f "$ac_tmp/stdin" 9580 case $ac_file in 9581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9583 esac \ 9584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9585 ;; 9586 :H) 9587 # 9588 # CONFIG_HEADER 9589 # 9590 if test x"$ac_file" != x-; then 9591 { 9592 $as_echo "/* $configure_input */" \ 9593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9594 } >"$ac_tmp/config.h" \ 9595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9598 $as_echo "$as_me: $ac_file is unchanged" >&6;} 9599 else 9600 rm -f "$ac_file" 9601 mv "$ac_tmp/config.h" "$ac_file" \ 9602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9603 fi 9604 else 9605 $as_echo "/* $configure_input */" \ 9606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9607 || as_fn_error $? "could not create -" "$LINENO" 5 9608 fi 9609 ;; 9610 9611 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 9612 $as_echo "$as_me: executing $ac_file commands" >&6;} 9613 ;; 9614 esac 9615 9616 9617 case $ac_file$ac_mode in 9618 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 9619 if test -n "$CONFIG_FILES"; then 9620 if test -n "${with_target_subdir}"; then 9621 # FIXME: We shouldn't need to set ac_file 9622 ac_file=Makefile 9623 LD="${ORIGINAL_LD_FOR_MULTILIBS}" 9624 . ${libiberty_topdir}/config-ml.in 9625 fi 9626 fi ;; 9627 9628 esac 9629 done # for ac_tag 9630 9631 9632 as_fn_exit 0 9633 _ACEOF 9634 ac_clean_files=$ac_clean_files_save 9635 9636 test $ac_write_fail = 0 || 9637 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9638 9639 9640 # configure is writing to config.log, and then calls config.status. 9641 # config.status does its own redirection, appending to config.log. 9642 # Unfortunately, on DOS this fails, as config.log is still kept open 9643 # by configure, so config.status won't be able to write to it; its 9644 # output is simply discarded. So we exec the FD to /dev/null, 9645 # effectively closing config.log, so it can be properly (re)opened and 9646 # appended to by config.status. When coming back to configure, we 9647 # need to make the FD available again. 9648 if test "$no_create" != yes; then 9649 ac_cs_success=: 9650 ac_config_status_args= 9651 test "$silent" = yes && 9652 ac_config_status_args="$ac_config_status_args --quiet" 9653 exec 5>/dev/null 9654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9655 exec 5>>config.log 9656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9657 # would make configure fail if this is the last instruction. 9658 $ac_cs_success || as_fn_exit 1 9659 fi 9660 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9662 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9663 fi 9664 9665