1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="tree.cc" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='LTLIBOBJS 633LIBOBJS 634CET_HOST_FLAGS 635NO_PIE_FLAG 636NO_PIE_CFLAGS 637enable_default_pie 638PICFLAG 639enable_host_shared 640enable_plugin 641pluginlibs 642ISLINC 643ISLLIBS 644GMPINC 645GMPLIBS 646target_cpu_default 647d_target_objs 648fortran_target_objs 649cxx_target_objs 650c_target_objs 651use_gcc_stdint 652xm_defines 653xm_include_list 654xm_file_list 655tm_d_include_list 656tm_d_file_list 657tm_p_include_list 658tm_p_file_list 659tm_defines 660tm_include_list 661tm_file_list 662common_out_object_file 663common_out_file 664out_object_file 665out_file 666objc_boehm_gc 667md_file 668local_prefix 669lang_tree_files 670lang_specs_files 671lang_opt_files 672install 673out_host_hook_obj 674host_xm_defines 675host_xm_include_list 676host_xm_file_list 677host_exeext 678gcc_gxx_libcxx_include_dir_add_sysroot 679gcc_gxx_libcxx_include_dir 680gcc_gxx_include_dir_add_sysroot 681gcc_gxx_include_dir 682gcc_config_arguments 683float_h_file 684extra_programs 685extra_objs 686extra_headers_list 687user_headers_inc_next_post 688user_headers_inc_next_pre 689extra_gcc_objs 690TM_MULTILIB_EXCEPTIONS_CONFIG 691TM_MULTILIB_CONFIG 692TM_ENDIAN_CONFIG 693tmake_file 694xmake_file 695cpp_install_dir 696selftest_languages 697check_languages 698build_file_translate 699build_xm_defines 700build_xm_include_list 701build_xm_file_list 702build_install_headers_dir 703build_exeext 704all_selected_languages 705all_languages 706all_lang_makefrags 707all_lang_configurefrags 708all_gtfiles 709all_compilers 710srcdir 711subdirs 712dollar 713gcc_tooldir 714enable_lto 715DO_LINK_SERIALIZATION 716DO_LINK_MUTEX 717CSCOPE 718ETAGS 719CTAGS 720MAINT 721zlibinc 722zlibdir 723HOST_LIBS 724enable_default_ssp 725thin_archive_support 726ld_soname_option 727ld_version_script_option 728libgcc_visibility 729ORIGINAL_DSYMUTIL_FOR_TARGET 730gcc_cv_dsymutil 731gcc_cv_otool 732gcc_cv_readelf 733gcc_cv_objdump 734ORIGINAL_NM_FOR_TARGET 735gcc_cv_nm 736ORIGINAL_LD_GOLD_FOR_TARGET 737ORIGINAL_LD_BFD_FOR_TARGET 738ORIGINAL_LD_FOR_TARGET 739ORIGINAL_PLUGIN_LD_FOR_TARGET 740gcc_cv_ld 741ORIGINAL_AS_FOR_TARGET 742gcc_cv_as 743enable_fast_install 744objdir 745OTOOL64 746OTOOL 747LIPO 748NMEDIT 749DSYMUTIL 750STRIP 751OBJDUMP 752ac_ct_DUMPBIN 753DUMPBIN 754LD 755FGREP 756SED 757LIBTOOL 758collect2 759STMP_FIXINC 760BUILD_LDFLAGS 761BUILD_CXXFLAGS 762BUILD_CFLAGS 763CXX_FOR_BUILD 764CC_FOR_BUILD 765inhibit_libc 766BUILD_SYSTEM_HEADER_DIR 767SYSTEM_HEADER_DIR 768ALL 769CROSS 770CATOBJEXT 771GENCAT 772INSTOBJEXT 773DATADIRNAME 774CATALOGS 775POSUB 776GMSGFMT 777XGETTEXT 778INCINTL 779LIBINTL_DEP 780LIBINTL 781USE_NLS 782get_gcc_base_ver 783HAVE_AUTO_BUILD 784extra_opt_files 785extra_modes_file 786NATIVE_SYSTEM_HEADER_DIR 787objext 788manext 789LIBICONV_DEP 790LTLIBICONV 791LIBICONV 792ZSTD_LDFLAGS 793ZSTD_CPPFLAGS 794ZSTD_LIB 795ZSTD_INCLUDE 796DL_LIB 797LDEXP_LIB 798NETLIBS 799EXTRA_GCC_LIBS 800GNAT_LIBEXC 801COLLECT2_LIBS 802CXXDEPMODE 803DEPDIR 804am__leading_dot 805doc_build_sys 806AR 807NM 808BISON 809FLEX 810GENERATED_MANPAGES 811BUILD_INFO 812MAKEINFO 813have_mktemp_command 814make_compare_target 815INSTALL_DATA 816INSTALL_PROGRAM 817INSTALL 818ranlib_flags 819RANLIB 820LN 821LN_S 822AWK 823SET_MAKE 824omp_device_property_deps 825omp_device_properties 826accel_dir_suffix 827real_target_noncanonical 828enable_as_accelerator 829gnat_install_lib 830REPORT_BUGS_TEXI 831REPORT_BUGS_TO 832PKGVERSION 833CONFIGURE_SPECS 834enable_gcov 835enable_shared 836enable_fixed_point 837enable_decimal_float 838with_float 839with_cpu 840enable_multiarch 841enable_multilib 842coverage_flags 843valgrind_command 844valgrind_path_defines 845valgrind_path 846TREECHECKING 847nocommon_flag 848noexception_flags 849warn_cxxflags 850warn_cflags 851c_strict_warn 852strict_warn 853c_loose_warn 854loose_warn 855aliasing_flags 856CPP 857EGREP 858GREP 859CXXCPP 860PICFLAG_FOR_TARGET 861GDCFLAGS 862GDC 863GNATMAKE 864GNATBIND 865ac_ct_CXX 866CXXFLAGS 867CXX 868OBJEXT 869EXEEXT 870ac_ct_CC 871CPPFLAGS 872LDFLAGS 873CFLAGS 874CC 875GENINSRC 876CROSS_SYSTEM_HEADER_DIR 877TARGET_SYSTEM_ROOT_DEFINE 878TARGET_SYSTEM_ROOT 879SYSROOT_CFLAGS_FOR_TARGET 880target_subdir 881host_subdir 882build_subdir 883build_libsubdir 884target_noncanonical 885host_noncanonical 886target_os 887target_vendor 888target_cpu 889target 890host_os 891host_vendor 892host_cpu 893host 894build_os 895build_vendor 896build_cpu 897build 898target_alias 899host_alias 900build_alias 901LIBS 902ECHO_T 903ECHO_N 904ECHO_C 905DEFS 906mandir 907localedir 908libdir 909psdir 910pdfdir 911dvidir 912htmldir 913infodir 914docdir 915oldincludedir 916includedir 917localstatedir 918sharedstatedir 919sysconfdir 920datadir 921datarootdir 922libexecdir 923sbindir 924bindir 925program_transform_name 926prefix 927exec_prefix 928PACKAGE_URL 929PACKAGE_BUGREPORT 930PACKAGE_STRING 931PACKAGE_VERSION 932PACKAGE_TARNAME 933PACKAGE_NAME 934PATH_SEPARATOR 935SHELL' 936ac_subst_files='option_includes 937language_hooks' 938ac_user_opts=' 939enable_option_checking 940with_build_libsubdir 941with_local_prefix 942with_native_system_header_dir 943with_build_sysroot 944with_sysroot 945with_gxx_include_dir 946with_gxx_libcxx_include_dir 947with_cpp_install_dir 948enable_generated_files_in_srcdir 949with_gnu_ld 950with_ld 951with_demangler_in_ld 952with_dsymutil 953with_gnu_as 954with_as 955enable_largefile 956enable_build_format_warnings 957enable_werror_always 958enable_checking 959enable_coverage 960enable_gather_detailed_mem_stats 961enable_valgrind_annotations 962enable_multilib 963enable_multiarch 964with_stack_clash_protection_guard_size 965enable___cxa_atexit 966enable_decimal_float 967enable_fixed_point 968enable_threads 969enable_tls 970enable_vtable_verify 971enable_analyzer 972enable_objc_gc 973with_dwarf2 974enable_shared 975enable_gcov 976with_specs 977with_pkgversion 978with_bugurl 979with_documentation_root_url 980with_changes_root_url 981enable_languages 982with_multilib_list 983with_multilib_generator 984with_zstd 985with_zstd_include 986with_zstd_lib 987enable_rpath 988with_libiconv_prefix 989with_libiconv_type 990enable_sjlj_exceptions 991with_gcc_major_version_only 992enable_secureplt 993enable_mingw_wildcard 994enable_large_address_aware 995enable_leading_mingw64_underscores 996enable_cld 997enable_frame_pointer 998enable_win32_registry 999enable_static 1000with_pic 1001enable_fast_install 1002enable_libtool_lock 1003enable_ld 1004enable_gold 1005with_plugin_ld 1006enable_gnu_indirect_function 1007enable_initfini_array 1008enable_comdat 1009enable_newlib_nano_formatted_io 1010enable_standard_branch_protection 1011enable_fix_cortex_a53_835769 1012enable_fix_cortex_a53_843419 1013with_glibc_version 1014enable_gnu_unique_object 1015enable_linker_build_id 1016enable_libssp 1017enable_default_ssp 1018with_long_double_128 1019with_long_double_format 1020with_gc 1021with_system_zlib 1022enable_maintainer_mode 1023enable_link_mutex 1024enable_link_serialization 1025enable_version_specific_runtime_libs 1026enable_plugin 1027enable_host_shared 1028enable_libquadmath_support 1029with_linker_hash_style 1030with_diagnostics_color 1031with_diagnostics_urls 1032enable_default_pie 1033enable_cet 1034enable_s390_excess_float_precision 1035' 1036 ac_precious_vars='build_alias 1037host_alias 1038target_alias 1039CC 1040CFLAGS 1041LDFLAGS 1042LIBS 1043CPPFLAGS 1044CXX 1045CXXFLAGS 1046CCC 1047CXXCPP 1048CPP 1049GMPLIBS 1050GMPINC 1051ISLLIBS 1052ISLINC' 1053 1054 1055# Initialize some variables set by options. 1056ac_init_help= 1057ac_init_version=false 1058ac_unrecognized_opts= 1059ac_unrecognized_sep= 1060# The variables have the same names as the options, with 1061# dashes changed to underlines. 1062cache_file=/dev/null 1063exec_prefix=NONE 1064no_create= 1065no_recursion= 1066prefix=NONE 1067program_prefix=NONE 1068program_suffix=NONE 1069program_transform_name=s,x,x, 1070silent= 1071site= 1072srcdir= 1073verbose= 1074x_includes=NONE 1075x_libraries=NONE 1076 1077# Installation directory options. 1078# These are left unexpanded so users can "make install exec_prefix=/foo" 1079# and all the variables that are supposed to be based on exec_prefix 1080# by default will actually change. 1081# Use braces instead of parens because sh, perl, etc. also accept them. 1082# (The list follows the same order as the GNU Coding Standards.) 1083bindir='${exec_prefix}/bin' 1084sbindir='${exec_prefix}/sbin' 1085libexecdir='${exec_prefix}/libexec' 1086datarootdir='${prefix}/share' 1087datadir='${datarootdir}' 1088sysconfdir='${prefix}/etc' 1089sharedstatedir='${prefix}/com' 1090localstatedir='${prefix}/var' 1091includedir='${prefix}/include' 1092oldincludedir='/usr/include' 1093docdir='${datarootdir}/doc/${PACKAGE}' 1094infodir='${datarootdir}/info' 1095htmldir='${docdir}' 1096dvidir='${docdir}' 1097pdfdir='${docdir}' 1098psdir='${docdir}' 1099libdir='${exec_prefix}/lib' 1100localedir='${datarootdir}/locale' 1101mandir='${datarootdir}/man' 1102 1103ac_prev= 1104ac_dashdash= 1105for ac_option 1106do 1107 # If the previous option needs an argument, assign it. 1108 if test -n "$ac_prev"; then 1109 eval $ac_prev=\$ac_option 1110 ac_prev= 1111 continue 1112 fi 1113 1114 case $ac_option in 1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1116 *=) ac_optarg= ;; 1117 *) ac_optarg=yes ;; 1118 esac 1119 1120 # Accept the important Cygnus configure options, so we can diagnose typos. 1121 1122 case $ac_dashdash$ac_option in 1123 --) 1124 ac_dashdash=yes ;; 1125 1126 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1127 ac_prev=bindir ;; 1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1129 bindir=$ac_optarg ;; 1130 1131 -build | --build | --buil | --bui | --bu) 1132 ac_prev=build_alias ;; 1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1134 build_alias=$ac_optarg ;; 1135 1136 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1138 ac_prev=cache_file ;; 1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1141 cache_file=$ac_optarg ;; 1142 1143 --config-cache | -C) 1144 cache_file=config.cache ;; 1145 1146 -datadir | --datadir | --datadi | --datad) 1147 ac_prev=datadir ;; 1148 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1149 datadir=$ac_optarg ;; 1150 1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1152 | --dataroo | --dataro | --datar) 1153 ac_prev=datarootdir ;; 1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1156 datarootdir=$ac_optarg ;; 1157 1158 -disable-* | --disable-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid feature name: $ac_useropt" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"enable_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval enable_$ac_useropt=no ;; 1173 1174 -docdir | --docdir | --docdi | --doc | --do) 1175 ac_prev=docdir ;; 1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1177 docdir=$ac_optarg ;; 1178 1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1180 ac_prev=dvidir ;; 1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1182 dvidir=$ac_optarg ;; 1183 1184 -enable-* | --enable-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid feature name: $ac_useropt" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"enable_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval enable_$ac_useropt=\$ac_optarg ;; 1199 1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1202 | --exec | --exe | --ex) 1203 ac_prev=exec_prefix ;; 1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1206 | --exec=* | --exe=* | --ex=*) 1207 exec_prefix=$ac_optarg ;; 1208 1209 -gas | --gas | --ga | --g) 1210 # Obsolete; use --with-gas. 1211 with_gas=yes ;; 1212 1213 -help | --help | --hel | --he | -h) 1214 ac_init_help=long ;; 1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1216 ac_init_help=recursive ;; 1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1218 ac_init_help=short ;; 1219 1220 -host | --host | --hos | --ho) 1221 ac_prev=host_alias ;; 1222 -host=* | --host=* | --hos=* | --ho=*) 1223 host_alias=$ac_optarg ;; 1224 1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1226 ac_prev=htmldir ;; 1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1228 | --ht=*) 1229 htmldir=$ac_optarg ;; 1230 1231 -includedir | --includedir | --includedi | --included | --include \ 1232 | --includ | --inclu | --incl | --inc) 1233 ac_prev=includedir ;; 1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1235 | --includ=* | --inclu=* | --incl=* | --inc=*) 1236 includedir=$ac_optarg ;; 1237 1238 -infodir | --infodir | --infodi | --infod | --info | --inf) 1239 ac_prev=infodir ;; 1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1241 infodir=$ac_optarg ;; 1242 1243 -libdir | --libdir | --libdi | --libd) 1244 ac_prev=libdir ;; 1245 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1246 libdir=$ac_optarg ;; 1247 1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1249 | --libexe | --libex | --libe) 1250 ac_prev=libexecdir ;; 1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1252 | --libexe=* | --libex=* | --libe=*) 1253 libexecdir=$ac_optarg ;; 1254 1255 -localedir | --localedir | --localedi | --localed | --locale) 1256 ac_prev=localedir ;; 1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1258 localedir=$ac_optarg ;; 1259 1260 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1261 | --localstate | --localstat | --localsta | --localst | --locals) 1262 ac_prev=localstatedir ;; 1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1265 localstatedir=$ac_optarg ;; 1266 1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1268 ac_prev=mandir ;; 1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1270 mandir=$ac_optarg ;; 1271 1272 -nfp | --nfp | --nf) 1273 # Obsolete; use --without-fp. 1274 with_fp=no ;; 1275 1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1277 | --no-cr | --no-c | -n) 1278 no_create=yes ;; 1279 1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1282 no_recursion=yes ;; 1283 1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1286 | --oldin | --oldi | --old | --ol | --o) 1287 ac_prev=oldincludedir ;; 1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1291 oldincludedir=$ac_optarg ;; 1292 1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1294 ac_prev=prefix ;; 1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1296 prefix=$ac_optarg ;; 1297 1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1299 | --program-pre | --program-pr | --program-p) 1300 ac_prev=program_prefix ;; 1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1303 program_prefix=$ac_optarg ;; 1304 1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1306 | --program-suf | --program-su | --program-s) 1307 ac_prev=program_suffix ;; 1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1310 program_suffix=$ac_optarg ;; 1311 1312 -program-transform-name | --program-transform-name \ 1313 | --program-transform-nam | --program-transform-na \ 1314 | --program-transform-n | --program-transform- \ 1315 | --program-transform | --program-transfor \ 1316 | --program-transfo | --program-transf \ 1317 | --program-trans | --program-tran \ 1318 | --progr-tra | --program-tr | --program-t) 1319 ac_prev=program_transform_name ;; 1320 -program-transform-name=* | --program-transform-name=* \ 1321 | --program-transform-nam=* | --program-transform-na=* \ 1322 | --program-transform-n=* | --program-transform-=* \ 1323 | --program-transform=* | --program-transfor=* \ 1324 | --program-transfo=* | --program-transf=* \ 1325 | --program-trans=* | --program-tran=* \ 1326 | --progr-tra=* | --program-tr=* | --program-t=*) 1327 program_transform_name=$ac_optarg ;; 1328 1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1330 ac_prev=pdfdir ;; 1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1332 pdfdir=$ac_optarg ;; 1333 1334 -psdir | --psdir | --psdi | --psd | --ps) 1335 ac_prev=psdir ;; 1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1337 psdir=$ac_optarg ;; 1338 1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1340 | -silent | --silent | --silen | --sile | --sil) 1341 silent=yes ;; 1342 1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1344 ac_prev=sbindir ;; 1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1346 | --sbi=* | --sb=*) 1347 sbindir=$ac_optarg ;; 1348 1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1351 | --sharedst | --shareds | --shared | --share | --shar \ 1352 | --sha | --sh) 1353 ac_prev=sharedstatedir ;; 1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1357 | --sha=* | --sh=*) 1358 sharedstatedir=$ac_optarg ;; 1359 1360 -site | --site | --sit) 1361 ac_prev=site ;; 1362 -site=* | --site=* | --sit=*) 1363 site=$ac_optarg ;; 1364 1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1366 ac_prev=srcdir ;; 1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1368 srcdir=$ac_optarg ;; 1369 1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1371 | --syscon | --sysco | --sysc | --sys | --sy) 1372 ac_prev=sysconfdir ;; 1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1375 sysconfdir=$ac_optarg ;; 1376 1377 -target | --target | --targe | --targ | --tar | --ta | --t) 1378 ac_prev=target_alias ;; 1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1380 target_alias=$ac_optarg ;; 1381 1382 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1383 verbose=yes ;; 1384 1385 -version | --version | --versio | --versi | --vers | -V) 1386 ac_init_version=: ;; 1387 1388 -with-* | --with-*) 1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1390 # Reject names that are not valid shell variable names. 1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1392 as_fn_error $? "invalid package name: $ac_useropt" 1393 ac_useropt_orig=$ac_useropt 1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1395 case $ac_user_opts in 1396 *" 1397"with_$ac_useropt" 1398"*) ;; 1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1400 ac_unrecognized_sep=', ';; 1401 esac 1402 eval with_$ac_useropt=\$ac_optarg ;; 1403 1404 -without-* | --without-*) 1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1406 # Reject names that are not valid shell variable names. 1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1408 as_fn_error $? "invalid package name: $ac_useropt" 1409 ac_useropt_orig=$ac_useropt 1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1411 case $ac_user_opts in 1412 *" 1413"with_$ac_useropt" 1414"*) ;; 1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1416 ac_unrecognized_sep=', ';; 1417 esac 1418 eval with_$ac_useropt=no ;; 1419 1420 --x) 1421 # Obsolete; use --with-x. 1422 with_x=yes ;; 1423 1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1425 | --x-incl | --x-inc | --x-in | --x-i) 1426 ac_prev=x_includes ;; 1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1429 x_includes=$ac_optarg ;; 1430 1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1433 ac_prev=x_libraries ;; 1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1436 x_libraries=$ac_optarg ;; 1437 1438 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1439Try \`$0 --help' for more information" 1440 ;; 1441 1442 *=*) 1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1444 # Reject names that are not valid shell variable names. 1445 case $ac_envvar in #( 1446 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1448 esac 1449 eval $ac_envvar=\$ac_optarg 1450 export $ac_envvar ;; 1451 1452 *) 1453 # FIXME: should be removed in autoconf 3.0. 1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1458 ;; 1459 1460 esac 1461done 1462 1463if test -n "$ac_prev"; then 1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1465 as_fn_error $? "missing argument to $ac_option" 1466fi 1467 1468if test -n "$ac_unrecognized_opts"; then 1469 case $enable_option_checking in 1470 no) ;; 1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1473 esac 1474fi 1475 1476# Check all directory arguments for consistency. 1477for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1478 datadir sysconfdir sharedstatedir localstatedir includedir \ 1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1480 libdir localedir mandir 1481do 1482 eval ac_val=\$$ac_var 1483 # Remove trailing slashes. 1484 case $ac_val in 1485 */ ) 1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1487 eval $ac_var=\$ac_val;; 1488 esac 1489 # Be sure to have absolute directory names. 1490 case $ac_val in 1491 [\\/$]* | ?:[\\/]* ) continue;; 1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1493 esac 1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1495done 1496 1497# There might be people who depend on the old broken behavior: `$host' 1498# used to hold the argument of --host etc. 1499# FIXME: To remove some day. 1500build=$build_alias 1501host=$host_alias 1502target=$target_alias 1503 1504# FIXME: To remove some day. 1505if test "x$host_alias" != x; then 1506 if test "x$build_alias" = x; then 1507 cross_compiling=maybe 1508 elif test "x$build_alias" != "x$host_alias"; then 1509 cross_compiling=yes 1510 fi 1511fi 1512 1513ac_tool_prefix= 1514test -n "$host_alias" && ac_tool_prefix=$host_alias- 1515 1516test "$silent" = yes && exec 6>/dev/null 1517 1518 1519ac_pwd=`pwd` && test -n "$ac_pwd" && 1520ac_ls_di=`ls -di .` && 1521ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1522 as_fn_error $? "working directory cannot be determined" 1523test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1524 as_fn_error $? "pwd does not report name of working directory" 1525 1526 1527# Find the source files, if location was not specified. 1528if test -z "$srcdir"; then 1529 ac_srcdir_defaulted=yes 1530 # Try the directory containing this script, then the parent directory. 1531 ac_confdir=`$as_dirname -- "$as_myself" || 1532$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1533 X"$as_myself" : 'X\(//\)[^/]' \| \ 1534 X"$as_myself" : 'X\(//\)$' \| \ 1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1536$as_echo X"$as_myself" | 1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1538 s//\1/ 1539 q 1540 } 1541 /^X\(\/\/\)[^/].*/{ 1542 s//\1/ 1543 q 1544 } 1545 /^X\(\/\/\)$/{ 1546 s//\1/ 1547 q 1548 } 1549 /^X\(\/\).*/{ 1550 s//\1/ 1551 q 1552 } 1553 s/.*/./; q'` 1554 srcdir=$ac_confdir 1555 if test ! -r "$srcdir/$ac_unique_file"; then 1556 srcdir=.. 1557 fi 1558else 1559 ac_srcdir_defaulted=no 1560fi 1561if test ! -r "$srcdir/$ac_unique_file"; then 1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1564fi 1565ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1566ac_abs_confdir=`( 1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1568 pwd)` 1569# When building in place, set srcdir=. 1570if test "$ac_abs_confdir" = "$ac_pwd"; then 1571 srcdir=. 1572fi 1573# Remove unnecessary trailing slashes from srcdir. 1574# Double slashes in file names in object file debugging info 1575# mess up M-x gdb in Emacs. 1576case $srcdir in 1577*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1578esac 1579for ac_var in $ac_precious_vars; do 1580 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1581 eval ac_env_${ac_var}_value=\$${ac_var} 1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1583 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1584done 1585 1586# 1587# Report the --help message. 1588# 1589if test "$ac_init_help" = "long"; then 1590 # Omit some internal or obsolete options to make the list less imposing. 1591 # This message is too long to be a string in the A/UX 3.1 sh. 1592 cat <<_ACEOF 1593\`configure' configures this package to adapt to many kinds of systems. 1594 1595Usage: $0 [OPTION]... [VAR=VALUE]... 1596 1597To assign environment variables (e.g., CC, CFLAGS...), specify them as 1598VAR=VALUE. See below for descriptions of some of the useful variables. 1599 1600Defaults for the options are specified in brackets. 1601 1602Configuration: 1603 -h, --help display this help and exit 1604 --help=short display options specific to this package 1605 --help=recursive display the short help of all the included packages 1606 -V, --version display version information and exit 1607 -q, --quiet, --silent do not print \`checking ...' messages 1608 --cache-file=FILE cache test results in FILE [disabled] 1609 -C, --config-cache alias for \`--cache-file=config.cache' 1610 -n, --no-create do not create output files 1611 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1612 1613Installation directories: 1614 --prefix=PREFIX install architecture-independent files in PREFIX 1615 [$ac_default_prefix] 1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1617 [PREFIX] 1618 1619By default, \`make install' will install all the files in 1620\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1621an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1622for instance \`--prefix=\$HOME'. 1623 1624For better control, use the options below. 1625 1626Fine tuning of the installation directories: 1627 --bindir=DIR user executables [EPREFIX/bin] 1628 --sbindir=DIR system admin executables [EPREFIX/sbin] 1629 --libexecdir=DIR program executables [EPREFIX/libexec] 1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1633 --libdir=DIR object code libraries [EPREFIX/lib] 1634 --includedir=DIR C header files [PREFIX/include] 1635 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1638 --infodir=DIR info documentation [DATAROOTDIR/info] 1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1640 --mandir=DIR man documentation [DATAROOTDIR/man] 1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1642 --htmldir=DIR html documentation [DOCDIR] 1643 --dvidir=DIR dvi documentation [DOCDIR] 1644 --pdfdir=DIR pdf documentation [DOCDIR] 1645 --psdir=DIR ps documentation [DOCDIR] 1646_ACEOF 1647 1648 cat <<\_ACEOF 1649 1650Program names: 1651 --program-prefix=PREFIX prepend PREFIX to installed program names 1652 --program-suffix=SUFFIX append SUFFIX to installed program names 1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1654 1655System types: 1656 --build=BUILD configure for building on BUILD [guessed] 1657 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1658 --target=TARGET configure for building compilers for TARGET [HOST] 1659_ACEOF 1660fi 1661 1662if test -n "$ac_init_help"; then 1663 1664 cat <<\_ACEOF 1665 1666Optional Features: 1667 --disable-option-checking ignore unrecognized --enable/--with options 1668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1670 --enable-generated-files-in-srcdir 1671 put copies of generated files in source dir intended 1672 for creating source tarballs for users without 1673 texinfo bison or flex 1674 --disable-largefile omit support for large files 1675 --disable-build-format-warnings 1676 don't use -Wformat while building GCC 1677 --enable-werror-always enable -Werror despite compiler version 1678 --enable-checking[=LIST] 1679 enable expensive run-time checks. With LIST, enable 1680 only specific categories of checks. Categories are: 1681 yes,no,all,none,release. Flags are: 1682 assert,df,extra,fold,gc,gcac,gimple,misc, 1683 rtlflag,rtl,runtime,tree,valgrind,types 1684 --enable-coverage[=LEVEL] 1685 enable compiler's code coverage collection. Use to 1686 measure compiler performance and locate unused parts 1687 of the compiler. With LEVEL, specify optimization. 1688 Values are opt, noopt, default is noopt 1689 --enable-gather-detailed-mem-stats 1690 enable detailed memory allocation stats gathering 1691 --enable-valgrind-annotations 1692 enable valgrind runtime interaction 1693 --enable-multilib enable library support for multiple ABIs 1694 --enable-multiarch enable support for multiarch paths 1695 --enable-__cxa_atexit enable __cxa_atexit for C++ 1696 --enable-decimal-float={no,yes,bid,dpd} 1697 enable decimal float extension to C. Selecting 'bid' 1698 or 'dpd' choses which decimal floating point format 1699 to use 1700 --enable-fixed-point enable fixed-point arithmetic extension to C 1701 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread 1702 package 1703 --enable-tls enable or disable generation of tls code overriding 1704 the assembler check for tls support 1705 --enable-vtable-verify enable vtable verification feature 1706 --disable-analyzer disable -fanalyzer static analyzer 1707 --enable-objc-gc enable the use of Boehm's garbage collector with the 1708 GNU Objective-C runtime 1709 --disable-shared don't provide a shared libgcc 1710 --disable-gcov don't provide libgcov and related host tools 1711 --enable-languages=LIST specify which front-ends to build 1712 --disable-rpath do not hardcode runtime library paths 1713 --enable-sjlj-exceptions 1714 arrange to use setjmp/longjmp exception handling 1715 --enable-secureplt enable -msecure-plt by default for PowerPC 1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line. 1717 Default to platform configuration 1718 --enable-large-address-aware 1719 Link mingw executables with --large-address-aware 1720 --enable-leading-mingw64-underscores 1721 enable leading underscores on 64 bit mingw targets 1722 --enable-cld enable -mcld by default for 32bit x86 1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86 1724 --disable-win32-registry 1725 disable lookup of installation paths in the Registry 1726 on Windows hosts 1727 --enable-win32-registry enable registry lookup (default) 1728 --enable-win32-registry=KEY 1729 use KEY instead of GCC version as the last portion 1730 of the registry key 1731 --enable-shared[=PKGS] build shared libraries [default=yes] 1732 --enable-static[=PKGS] build static libraries [default=yes] 1733 --enable-fast-install[=PKGS] 1734 optimize for fast installation [default=yes] 1735 --disable-libtool-lock avoid locking (might break parallel builds) 1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}] 1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1738 --enable-gnu-indirect-function 1739 enable the use of the @gnu_indirect_function to 1740 glibc systems 1741 --enable-initfini-array use .init_array/.fini_array sections 1742 --enable-comdat enable COMDAT group support 1743 --enable-newlib-nano-formatted-io 1744 Use nano version formatted IO 1745 1746 --enable-standard-branch-protection 1747 enable Branch Target Identification Mechanism and 1748 Return Address Signing by default for AArch64 1749 --disable-standard-branch-protection 1750 disable Branch Target Identification Mechanism and 1751 Return Address Signing by default for AArch64 1752 1753 1754 --enable-fix-cortex-a53-835769 1755 enable workaround for AArch64 Cortex-A53 erratum 1756 835769 by default 1757 --disable-fix-cortex-a53-835769 1758 disable workaround for AArch64 Cortex-A53 erratum 1759 835769 by default 1760 1761 1762 --enable-fix-cortex-a53-843419 1763 enable workaround for AArch64 Cortex-A53 erratum 1764 843419 by default 1765 --disable-fix-cortex-a53-843419 1766 disable workaround for AArch64 Cortex-A53 erratum 1767 843419 by default 1768 1769 --enable-gnu-unique-object 1770 enable the use of the @gnu_unique_object ELF 1771 extension on glibc systems 1772 --enable-linker-build-id 1773 compiler will always pass --build-id to linker 1774 --enable-libssp enable linking against libssp 1775 --enable-default-ssp enable Stack Smashing Protection as default 1776 --enable-maintainer-mode 1777 enable make rules and dependencies not useful (and 1778 sometimes confusing) to the casual installer 1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid 1780 thrashing on the build machine 1781 --enable-link-serialization 1782 avoid linking multiple GCC front-ends at once using 1783 make dependencies to avoid thrashing on the build 1784 machine 1785 --enable-version-specific-runtime-libs 1786 specify that runtime libraries should be installed 1787 in a compiler-specific directory 1788 --enable-plugin enable plugin support 1789 --enable-host-shared build host code as shared libraries 1790 --disable-libquadmath-support 1791 disable libquadmath support for Fortran 1792 --enable-default-pie enable Position Independent Executable as default 1793 --enable-cet enable Intel CET in host libraries [default=auto] 1794 --enable-s390-excess-float-precision 1795 on s390 targets, evaluate float with double 1796 precision when in standards-conforming mode 1797 1798Optional Packages: 1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1801 --with-build-libsubdir=DIR Directory where to find libraries for build system 1802 --with-local-prefix=DIR specifies directory to put local include 1803 --with-native-system-header-dir=dir 1804 use dir as the directory to look for standard 1805 system header files in. Defaults to /usr/include. 1806 --with-build-sysroot=sysroot 1807 use sysroot as the system root during the build 1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR 1809 --with-gxx-include-dir=DIR 1810 specifies directory to put g++ header files 1811 --with-gxx-libcxx-include-dir=DIR 1812 specifies directory to find libc++ header files 1813 --with-cpp-install-dir=DIR 1814 install the user visible C preprocessor in DIR 1815 (relative to PREFIX) as well as PREFIX/bin 1816 --with-gnu-ld arrange to work with GNU ld 1817 --with-ld arrange to use the specified ld (full pathname) 1818 --with-demangler-in-ld try to use demangler in GNU ld 1819 --with-dsymutil arrange to use the specified dsymutil (full 1820 pathname) 1821 --with-gnu-as arrange to work with GNU as 1822 --with-as arrange to use the specified as (full pathname) 1823 --with-stack-clash-protection-guard-size=size 1824 Set the default stack clash protection guard size 1825 for specific targets as a power of two in bytes. 1826 --with-dwarf2 force the default debug format to be DWARF 2 1827 --with-specs=SPECS add SPECS to driver command-line processing 1828 --with-pkgversion=PKG Use PKG in the version string in place of "GCC" 1829 --with-bugurl=URL Direct users to URL to report a bug 1830 --with-documentation-root-url=URL 1831 Root for documentation URLs 1832 --with-changes-root-url=URL 1833 Root for GCC changes URLs 1834 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V, 1835 SH and x86-64 only) 1836 --with-multilib-generator 1837 Multi-libs configuration string (RISC-V only) 1838 --with-zstd=PATH specify prefix directory for installed zstd library. 1839 Equivalent to --with-zstd-include=PATH/include plus 1840 --with-zstd-lib=PATH/lib 1841 --with-zstd-include=PATH 1842 specify directory for installed zstd include files 1843 --with-zstd-lib=PATH specify directory for the installed zstd library 1844 --with-gnu-ld assume the C compiler uses GNU ld default=no 1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1846 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1847 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1848 --with-gcc-major-version-only 1849 use only GCC major number in filesystem paths 1850 --with-pic try to use only PIC/non-PIC objects [default=use 1851 both] 1852 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1853 --with-plugin-ld=[ARG] specify the plugin linker 1854 --with-glibc-version=M.N 1855 assume GCC used with glibc version M.N or later 1856 --with-long-double-128 use 128-bit long double by default 1857 --with-long-double-format={ieee,ibm} 1858 Specify whether PowerPC long double uses IEEE or IBM format 1859 1860 --with-gc={page,zone} this option is not supported anymore. It used to 1861 choose the garbage collection mechanism to use with 1862 the compiler 1863 --with-system-zlib use installed libz 1864 --with-linker-hash-style={sysv,gnu,both} 1865 specify the linker hash style 1866 --with-diagnostics-color={never,auto,auto-if-env,always} 1867 specify the default of -fdiagnostics-color option 1868 auto-if-env stands for -fdiagnostics-color=auto if 1869 GCC_COLOR environment variable is present and 1870 -fdiagnostics-color=never otherwise 1871 --with-diagnostics-urls={never,auto,auto-if-env,always} 1872 specify the default of -fdiagnostics-urls option 1873 auto-if-env stands for -fdiagnostics-urls=auto if 1874 GCC_URLS or TERM_URLS environment variable is 1875 present and -fdiagnostics-urls=never otherwise 1876 1877Some influential environment variables: 1878 CC C compiler command 1879 CFLAGS C compiler flags 1880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1881 nonstandard directory <lib dir> 1882 LIBS libraries to pass to the linker, e.g. -l<library> 1883 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1884 you have headers in a nonstandard directory <include dir> 1885 CXX C++ compiler command 1886 CXXFLAGS C++ compiler flags 1887 CXXCPP C++ preprocessor 1888 CPP C preprocessor 1889 GMPLIBS How to link GMP 1890 GMPINC How to find GMP include files 1891 ISLLIBS How to link isl 1892 ISLINC How to find isl include files 1893 1894Use these variables to override the choices made by `configure' or to help 1895it to find libraries and programs with nonstandard names/locations. 1896 1897Report bugs to the package provider. 1898_ACEOF 1899ac_status=$? 1900fi 1901 1902if test "$ac_init_help" = "recursive"; then 1903 # If there are subdirs, report their specific --help. 1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1905 test -d "$ac_dir" || 1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1907 continue 1908 ac_builddir=. 1909 1910case "$ac_dir" in 1911.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1912*) 1913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1914 # A ".." for each directory in $ac_dir_suffix. 1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1916 case $ac_top_builddir_sub in 1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1919 esac ;; 1920esac 1921ac_abs_top_builddir=$ac_pwd 1922ac_abs_builddir=$ac_pwd$ac_dir_suffix 1923# for backward compatibility: 1924ac_top_builddir=$ac_top_build_prefix 1925 1926case $srcdir in 1927 .) # We are building in place. 1928 ac_srcdir=. 1929 ac_top_srcdir=$ac_top_builddir_sub 1930 ac_abs_top_srcdir=$ac_pwd ;; 1931 [\\/]* | ?:[\\/]* ) # Absolute name. 1932 ac_srcdir=$srcdir$ac_dir_suffix; 1933 ac_top_srcdir=$srcdir 1934 ac_abs_top_srcdir=$srcdir ;; 1935 *) # Relative name. 1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1937 ac_top_srcdir=$ac_top_build_prefix$srcdir 1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1939esac 1940ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1941 1942 cd "$ac_dir" || { ac_status=$?; continue; } 1943 # Check for guested configure. 1944 if test -f "$ac_srcdir/configure.gnu"; then 1945 echo && 1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1947 elif test -f "$ac_srcdir/configure"; then 1948 echo && 1949 $SHELL "$ac_srcdir/configure" --help=recursive 1950 else 1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1952 fi || ac_status=$? 1953 cd "$ac_pwd" || { ac_status=$?; break; } 1954 done 1955fi 1956 1957test -n "$ac_init_help" && exit $ac_status 1958if $ac_init_version; then 1959 cat <<\_ACEOF 1960configure 1961generated by GNU Autoconf 2.69 1962 1963Copyright (C) 2012 Free Software Foundation, Inc. 1964This configure script is free software; the Free Software Foundation 1965gives unlimited permission to copy, distribute and modify it. 1966_ACEOF 1967 exit 1968fi 1969 1970## ------------------------ ## 1971## Autoconf initialization. ## 1972## ------------------------ ## 1973 1974# ac_fn_c_try_compile LINENO 1975# -------------------------- 1976# Try to compile conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_c_try_compile () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 rm -f conftest.$ac_objext 1981 if { { ac_try="$ac_compile" 1982case "(($ac_try" in 1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1984 *) ac_try_echo=$ac_try;; 1985esac 1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1987$as_echo "$ac_try_echo"; } >&5 1988 (eval "$ac_compile") 2>conftest.err 1989 ac_status=$? 1990 if test -s conftest.err; then 1991 grep -v '^ *+' conftest.err >conftest.er1 1992 cat conftest.er1 >&5 1993 mv -f conftest.er1 conftest.err 1994 fi 1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1996 test $ac_status = 0; } && { 1997 test -z "$ac_c_werror_flag" || 1998 test ! -s conftest.err 1999 } && test -s conftest.$ac_objext; then : 2000 ac_retval=0 2001else 2002 $as_echo "$as_me: failed program was:" >&5 2003sed 's/^/| /' conftest.$ac_ext >&5 2004 2005 ac_retval=1 2006fi 2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2008 as_fn_set_status $ac_retval 2009 2010} # ac_fn_c_try_compile 2011 2012# ac_fn_cxx_try_compile LINENO 2013# ---------------------------- 2014# Try to compile conftest.$ac_ext, and return whether this succeeded. 2015ac_fn_cxx_try_compile () 2016{ 2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2018 rm -f conftest.$ac_objext 2019 if { { ac_try="$ac_compile" 2020case "(($ac_try" in 2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2022 *) ac_try_echo=$ac_try;; 2023esac 2024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2025$as_echo "$ac_try_echo"; } >&5 2026 (eval "$ac_compile") 2>conftest.err 2027 ac_status=$? 2028 if test -s conftest.err; then 2029 grep -v '^ *+' conftest.err >conftest.er1 2030 cat conftest.er1 >&5 2031 mv -f conftest.er1 conftest.err 2032 fi 2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2034 test $ac_status = 0; } && { 2035 test -z "$ac_cxx_werror_flag" || 2036 test ! -s conftest.err 2037 } && test -s conftest.$ac_objext; then : 2038 ac_retval=0 2039else 2040 $as_echo "$as_me: failed program was:" >&5 2041sed 's/^/| /' conftest.$ac_ext >&5 2042 2043 ac_retval=1 2044fi 2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2046 as_fn_set_status $ac_retval 2047 2048} # ac_fn_cxx_try_compile 2049 2050# ac_fn_cxx_try_cpp LINENO 2051# ------------------------ 2052# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2053ac_fn_cxx_try_cpp () 2054{ 2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2056 if { { ac_try="$ac_cpp conftest.$ac_ext" 2057case "(($ac_try" in 2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2059 *) ac_try_echo=$ac_try;; 2060esac 2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2062$as_echo "$ac_try_echo"; } >&5 2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2064 ac_status=$? 2065 if test -s conftest.err; then 2066 grep -v '^ *+' conftest.err >conftest.er1 2067 cat conftest.er1 >&5 2068 mv -f conftest.er1 conftest.err 2069 fi 2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2071 test $ac_status = 0; } > conftest.i && { 2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2073 test ! -s conftest.err 2074 }; then : 2075 ac_retval=0 2076else 2077 $as_echo "$as_me: failed program was:" >&5 2078sed 's/^/| /' conftest.$ac_ext >&5 2079 2080 ac_retval=1 2081fi 2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2083 as_fn_set_status $ac_retval 2084 2085} # ac_fn_cxx_try_cpp 2086 2087# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2088# --------------------------------------------------------- 2089# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2090# the include files in INCLUDES and setting the cache variable VAR 2091# accordingly. 2092ac_fn_cxx_check_header_mongrel () 2093{ 2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2095 if eval \${$3+:} false; then : 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2097$as_echo_n "checking for $2... " >&6; } 2098if eval \${$3+:} false; then : 2099 $as_echo_n "(cached) " >&6 2100fi 2101eval ac_res=\$$3 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2103$as_echo "$ac_res" >&6; } 2104else 2105 # Is the header compilable? 2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2107$as_echo_n "checking $2 usability... " >&6; } 2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110$4 2111#include <$2> 2112_ACEOF 2113if ac_fn_cxx_try_compile "$LINENO"; then : 2114 ac_header_compiler=yes 2115else 2116 ac_header_compiler=no 2117fi 2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2120$as_echo "$ac_header_compiler" >&6; } 2121 2122# Is the header present? 2123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2124$as_echo_n "checking $2 presence... " >&6; } 2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127#include <$2> 2128_ACEOF 2129if ac_fn_cxx_try_cpp "$LINENO"; then : 2130 ac_header_preproc=yes 2131else 2132 ac_header_preproc=no 2133fi 2134rm -f conftest.err conftest.i conftest.$ac_ext 2135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2136$as_echo "$ac_header_preproc" >&6; } 2137 2138# So? What about this header? 2139case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2140 yes:no: ) 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2142$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2145 ;; 2146 no:yes:* ) 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2148$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2150$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2152$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2154$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2156$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2157 ;; 2158esac 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2160$as_echo_n "checking for $2... " >&6; } 2161if eval \${$3+:} false; then : 2162 $as_echo_n "(cached) " >&6 2163else 2164 eval "$3=\$ac_header_compiler" 2165fi 2166eval ac_res=\$$3 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2168$as_echo "$ac_res" >&6; } 2169fi 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2171 2172} # ac_fn_cxx_check_header_mongrel 2173 2174# ac_fn_cxx_try_run LINENO 2175# ------------------------ 2176# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2177# that executables *can* be run. 2178ac_fn_cxx_try_run () 2179{ 2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2181 if { { ac_try="$ac_link" 2182case "(($ac_try" in 2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2184 *) ac_try_echo=$ac_try;; 2185esac 2186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2187$as_echo "$ac_try_echo"; } >&5 2188 (eval "$ac_link") 2>&5 2189 ac_status=$? 2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2192 { { case "(($ac_try" in 2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2194 *) ac_try_echo=$ac_try;; 2195esac 2196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2197$as_echo "$ac_try_echo"; } >&5 2198 (eval "$ac_try") 2>&5 2199 ac_status=$? 2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2201 test $ac_status = 0; }; }; then : 2202 ac_retval=0 2203else 2204 $as_echo "$as_me: program exited with status $ac_status" >&5 2205 $as_echo "$as_me: failed program was:" >&5 2206sed 's/^/| /' conftest.$ac_ext >&5 2207 2208 ac_retval=$ac_status 2209fi 2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2212 as_fn_set_status $ac_retval 2213 2214} # ac_fn_cxx_try_run 2215 2216# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2217# --------------------------------------------------------- 2218# Tests whether HEADER exists and can be compiled using the include files in 2219# INCLUDES, setting the cache variable VAR accordingly. 2220ac_fn_cxx_check_header_compile () 2221{ 2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2224$as_echo_n "checking for $2... " >&6; } 2225if eval \${$3+:} false; then : 2226 $as_echo_n "(cached) " >&6 2227else 2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2229/* end confdefs.h. */ 2230$4 2231#include <$2> 2232_ACEOF 2233if ac_fn_cxx_try_compile "$LINENO"; then : 2234 eval "$3=yes" 2235else 2236 eval "$3=no" 2237fi 2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2239fi 2240eval ac_res=\$$3 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2242$as_echo "$ac_res" >&6; } 2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2244 2245} # ac_fn_cxx_check_header_compile 2246 2247# ac_fn_c_try_cpp LINENO 2248# ---------------------- 2249# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2250ac_fn_c_try_cpp () 2251{ 2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2253 if { { ac_try="$ac_cpp conftest.$ac_ext" 2254case "(($ac_try" in 2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2256 *) ac_try_echo=$ac_try;; 2257esac 2258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2259$as_echo "$ac_try_echo"; } >&5 2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2261 ac_status=$? 2262 if test -s conftest.err; then 2263 grep -v '^ *+' conftest.err >conftest.er1 2264 cat conftest.er1 >&5 2265 mv -f conftest.er1 conftest.err 2266 fi 2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2268 test $ac_status = 0; } > conftest.i && { 2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2270 test ! -s conftest.err 2271 }; then : 2272 ac_retval=0 2273else 2274 $as_echo "$as_me: failed program was:" >&5 2275sed 's/^/| /' conftest.$ac_ext >&5 2276 2277 ac_retval=1 2278fi 2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2280 as_fn_set_status $ac_retval 2281 2282} # ac_fn_c_try_cpp 2283 2284# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2285# ---------------------------------------------- 2286# Tries to find the compile-time value of EXPR in a program that includes 2287# INCLUDES, setting VAR accordingly. Returns whether the value could be 2288# computed 2289ac_fn_cxx_compute_int () 2290{ 2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2292 if test "$cross_compiling" = yes; then 2293 # Depending upon the size, compute the lo and hi bounds. 2294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$4 2297int 2298main () 2299{ 2300static int test_array [1 - 2 * !(($2) >= 0)]; 2301test_array [0] = 0; 2302return test_array [0]; 2303 2304 ; 2305 return 0; 2306} 2307_ACEOF 2308if ac_fn_cxx_try_compile "$LINENO"; then : 2309 ac_lo=0 ac_mid=0 2310 while :; do 2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2312/* end confdefs.h. */ 2313$4 2314int 2315main () 2316{ 2317static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2318test_array [0] = 0; 2319return test_array [0]; 2320 2321 ; 2322 return 0; 2323} 2324_ACEOF 2325if ac_fn_cxx_try_compile "$LINENO"; then : 2326 ac_hi=$ac_mid; break 2327else 2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2329 if test $ac_lo -le $ac_mid; then 2330 ac_lo= ac_hi= 2331 break 2332 fi 2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2334fi 2335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2336 done 2337else 2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2339/* end confdefs.h. */ 2340$4 2341int 2342main () 2343{ 2344static int test_array [1 - 2 * !(($2) < 0)]; 2345test_array [0] = 0; 2346return test_array [0]; 2347 2348 ; 2349 return 0; 2350} 2351_ACEOF 2352if ac_fn_cxx_try_compile "$LINENO"; then : 2353 ac_hi=-1 ac_mid=-1 2354 while :; do 2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2356/* end confdefs.h. */ 2357$4 2358int 2359main () 2360{ 2361static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2362test_array [0] = 0; 2363return test_array [0]; 2364 2365 ; 2366 return 0; 2367} 2368_ACEOF 2369if ac_fn_cxx_try_compile "$LINENO"; then : 2370 ac_lo=$ac_mid; break 2371else 2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2373 if test $ac_mid -le $ac_hi; then 2374 ac_lo= ac_hi= 2375 break 2376 fi 2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2378fi 2379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2380 done 2381else 2382 ac_lo= ac_hi= 2383fi 2384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2385fi 2386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2387# Binary search between lo and hi bounds. 2388while test "x$ac_lo" != "x$ac_hi"; do 2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2391/* end confdefs.h. */ 2392$4 2393int 2394main () 2395{ 2396static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2397test_array [0] = 0; 2398return test_array [0]; 2399 2400 ; 2401 return 0; 2402} 2403_ACEOF 2404if ac_fn_cxx_try_compile "$LINENO"; then : 2405 ac_hi=$ac_mid 2406else 2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2408fi 2409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2410done 2411case $ac_lo in #(( 2412?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2413'') ac_retval=1 ;; 2414esac 2415 else 2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2417/* end confdefs.h. */ 2418$4 2419static long int longval () { return $2; } 2420static unsigned long int ulongval () { return $2; } 2421#include <stdio.h> 2422#include <stdlib.h> 2423int 2424main () 2425{ 2426 2427 FILE *f = fopen ("conftest.val", "w"); 2428 if (! f) 2429 return 1; 2430 if (($2) < 0) 2431 { 2432 long int i = longval (); 2433 if (i != ($2)) 2434 return 1; 2435 fprintf (f, "%ld", i); 2436 } 2437 else 2438 { 2439 unsigned long int i = ulongval (); 2440 if (i != ($2)) 2441 return 1; 2442 fprintf (f, "%lu", i); 2443 } 2444 /* Do not output a trailing newline, as this causes \r\n confusion 2445 on some platforms. */ 2446 return ferror (f) || fclose (f) != 0; 2447 2448 ; 2449 return 0; 2450} 2451_ACEOF 2452if ac_fn_cxx_try_run "$LINENO"; then : 2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2454else 2455 ac_retval=1 2456fi 2457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2458 conftest.$ac_objext conftest.beam conftest.$ac_ext 2459rm -f conftest.val 2460 2461 fi 2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2463 as_fn_set_status $ac_retval 2464 2465} # ac_fn_cxx_compute_int 2466 2467# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2468# --------------------------------------------- 2469# Tests whether TYPE exists after having included INCLUDES, setting cache 2470# variable VAR accordingly. 2471ac_fn_cxx_check_type () 2472{ 2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2475$as_echo_n "checking for $2... " >&6; } 2476if eval \${$3+:} false; then : 2477 $as_echo_n "(cached) " >&6 2478else 2479 eval "$3=no" 2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2481/* end confdefs.h. */ 2482$4 2483int 2484main () 2485{ 2486if (sizeof ($2)) 2487 return 0; 2488 ; 2489 return 0; 2490} 2491_ACEOF 2492if ac_fn_cxx_try_compile "$LINENO"; then : 2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2494/* end confdefs.h. */ 2495$4 2496int 2497main () 2498{ 2499if (sizeof (($2))) 2500 return 0; 2501 ; 2502 return 0; 2503} 2504_ACEOF 2505if ac_fn_cxx_try_compile "$LINENO"; then : 2506 2507else 2508 eval "$3=yes" 2509fi 2510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2511fi 2512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2513fi 2514eval ac_res=\$$3 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2516$as_echo "$ac_res" >&6; } 2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2518 2519} # ac_fn_cxx_check_type 2520 2521# ac_fn_c_find_intX_t LINENO BITS VAR 2522# ----------------------------------- 2523# Finds a signed integer type with width BITS, setting cache variable VAR 2524# accordingly. 2525ac_fn_c_find_intX_t () 2526{ 2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2529$as_echo_n "checking for int$2_t... " >&6; } 2530if eval \${$3+:} false; then : 2531 $as_echo_n "(cached) " >&6 2532else 2533 eval "$3=no" 2534 # Order is important - never check a type that is potentially smaller 2535 # than half of the expected target width. 2536 for ac_type in int$2_t 'int' 'long int' \ 2537 'long long int' 'short int' 'signed char'; do 2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2539/* end confdefs.h. */ 2540$ac_includes_default 2541 enum { N = $2 / 2 - 1 }; 2542int 2543main () 2544{ 2545static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2546test_array [0] = 0; 2547return test_array [0]; 2548 2549 ; 2550 return 0; 2551} 2552_ACEOF 2553if ac_fn_cxx_try_compile "$LINENO"; then : 2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2555/* end confdefs.h. */ 2556$ac_includes_default 2557 enum { N = $2 / 2 - 1 }; 2558int 2559main () 2560{ 2561static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2563test_array [0] = 0; 2564return test_array [0]; 2565 2566 ; 2567 return 0; 2568} 2569_ACEOF 2570if ac_fn_cxx_try_compile "$LINENO"; then : 2571 2572else 2573 case $ac_type in #( 2574 int$2_t) : 2575 eval "$3=yes" ;; #( 2576 *) : 2577 eval "$3=\$ac_type" ;; 2578esac 2579fi 2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2581fi 2582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2583 if eval test \"x\$"$3"\" = x"no"; then : 2584 2585else 2586 break 2587fi 2588 done 2589fi 2590eval ac_res=\$$3 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2592$as_echo "$ac_res" >&6; } 2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2594 2595} # ac_fn_c_find_intX_t 2596 2597# ac_fn_cxx_try_link LINENO 2598# ------------------------- 2599# Try to link conftest.$ac_ext, and return whether this succeeded. 2600ac_fn_cxx_try_link () 2601{ 2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2603 rm -f conftest.$ac_objext conftest$ac_exeext 2604 if { { ac_try="$ac_link" 2605case "(($ac_try" in 2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2607 *) ac_try_echo=$ac_try;; 2608esac 2609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2610$as_echo "$ac_try_echo"; } >&5 2611 (eval "$ac_link") 2>conftest.err 2612 ac_status=$? 2613 if test -s conftest.err; then 2614 grep -v '^ *+' conftest.err >conftest.er1 2615 cat conftest.er1 >&5 2616 mv -f conftest.er1 conftest.err 2617 fi 2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2619 test $ac_status = 0; } && { 2620 test -z "$ac_cxx_werror_flag" || 2621 test ! -s conftest.err 2622 } && test -s conftest$ac_exeext && { 2623 test "$cross_compiling" = yes || 2624 test -x conftest$ac_exeext 2625 }; then : 2626 ac_retval=0 2627else 2628 $as_echo "$as_me: failed program was:" >&5 2629sed 's/^/| /' conftest.$ac_ext >&5 2630 2631 ac_retval=1 2632fi 2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2635 # interfere with the next link command; also delete a directory that is 2636 # left behind by Apple's compiler. We do this before executing the actions. 2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2639 as_fn_set_status $ac_retval 2640 2641} # ac_fn_cxx_try_link 2642 2643# ac_fn_c_find_uintX_t LINENO BITS VAR 2644# ------------------------------------ 2645# Finds an unsigned integer type with width BITS, setting cache variable VAR 2646# accordingly. 2647ac_fn_c_find_uintX_t () 2648{ 2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2651$as_echo_n "checking for uint$2_t... " >&6; } 2652if eval \${$3+:} false; then : 2653 $as_echo_n "(cached) " >&6 2654else 2655 eval "$3=no" 2656 # Order is important - never check a type that is potentially smaller 2657 # than half of the expected target width. 2658 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2661/* end confdefs.h. */ 2662$ac_includes_default 2663int 2664main () 2665{ 2666static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2667test_array [0] = 0; 2668return test_array [0]; 2669 2670 ; 2671 return 0; 2672} 2673_ACEOF 2674if ac_fn_cxx_try_compile "$LINENO"; then : 2675 case $ac_type in #( 2676 uint$2_t) : 2677 eval "$3=yes" ;; #( 2678 *) : 2679 eval "$3=\$ac_type" ;; 2680esac 2681fi 2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2683 if eval test \"x\$"$3"\" = x"no"; then : 2684 2685else 2686 break 2687fi 2688 done 2689fi 2690eval ac_res=\$$3 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2692$as_echo "$ac_res" >&6; } 2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2694 2695} # ac_fn_c_find_uintX_t 2696 2697# ac_fn_cxx_check_header_preproc LINENO HEADER VAR 2698# ------------------------------------------------ 2699# Tests whether HEADER is present, setting the cache variable VAR accordingly. 2700ac_fn_cxx_check_header_preproc () 2701{ 2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2704$as_echo_n "checking for $2... " >&6; } 2705if eval \${$3+:} false; then : 2706 $as_echo_n "(cached) " >&6 2707else 2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2709/* end confdefs.h. */ 2710#include <$2> 2711_ACEOF 2712if ac_fn_cxx_try_cpp "$LINENO"; then : 2713 eval "$3=yes" 2714else 2715 eval "$3=no" 2716fi 2717rm -f conftest.err conftest.i conftest.$ac_ext 2718fi 2719eval ac_res=\$$3 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2721$as_echo "$ac_res" >&6; } 2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2723 2724} # ac_fn_cxx_check_header_preproc 2725 2726# ac_fn_cxx_check_func LINENO FUNC VAR 2727# ------------------------------------ 2728# Tests whether FUNC exists, setting the cache variable VAR accordingly 2729ac_fn_cxx_check_func () 2730{ 2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2733$as_echo_n "checking for $2... " >&6; } 2734if eval \${$3+:} false; then : 2735 $as_echo_n "(cached) " >&6 2736else 2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2738/* end confdefs.h. */ 2739/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2741#define $2 innocuous_$2 2742 2743/* System header to define __stub macros and hopefully few prototypes, 2744 which can conflict with char $2 (); below. 2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2746 <limits.h> exists even on freestanding compilers. */ 2747 2748#ifdef __STDC__ 2749# include <limits.h> 2750#else 2751# include <assert.h> 2752#endif 2753 2754#undef $2 2755 2756/* Override any GCC internal prototype to avoid an error. 2757 Use char because int might match the return type of a GCC 2758 builtin and then its argument prototype would still apply. */ 2759#ifdef __cplusplus 2760extern "C" 2761#endif 2762char $2 (); 2763/* The GNU C library defines this for functions which it implements 2764 to always fail with ENOSYS. Some functions are actually named 2765 something starting with __ and the normal name is an alias. */ 2766#if defined __stub_$2 || defined __stub___$2 2767choke me 2768#endif 2769 2770int 2771main () 2772{ 2773return $2 (); 2774 ; 2775 return 0; 2776} 2777_ACEOF 2778if ac_fn_cxx_try_link "$LINENO"; then : 2779 eval "$3=yes" 2780else 2781 eval "$3=no" 2782fi 2783rm -f core conftest.err conftest.$ac_objext \ 2784 conftest$ac_exeext conftest.$ac_ext 2785fi 2786eval ac_res=\$$3 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2788$as_echo "$ac_res" >&6; } 2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2790 2791} # ac_fn_cxx_check_func 2792 2793# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 2794# ----------------------------------------------- 2795# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2796# accordingly. 2797ac_fn_cxx_check_decl () 2798{ 2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2800 as_decl_name=`echo $2|sed 's/ *(.*//'` 2801 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2803$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2804if eval \${$3+:} false; then : 2805 $as_echo_n "(cached) " >&6 2806else 2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2808/* end confdefs.h. */ 2809$4 2810int 2811main () 2812{ 2813#ifndef $as_decl_name 2814#ifdef __cplusplus 2815 (void) $as_decl_use; 2816#else 2817 (void) $as_decl_name; 2818#endif 2819#endif 2820 2821 ; 2822 return 0; 2823} 2824_ACEOF 2825if ac_fn_cxx_try_compile "$LINENO"; then : 2826 eval "$3=yes" 2827else 2828 eval "$3=no" 2829fi 2830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2831fi 2832eval ac_res=\$$3 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2834$as_echo "$ac_res" >&6; } 2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2836 2837} # ac_fn_cxx_check_decl 2838 2839# ac_fn_c_try_link LINENO 2840# ----------------------- 2841# Try to link conftest.$ac_ext, and return whether this succeeded. 2842ac_fn_c_try_link () 2843{ 2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2845 rm -f conftest.$ac_objext conftest$ac_exeext 2846 if { { ac_try="$ac_link" 2847case "(($ac_try" in 2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2849 *) ac_try_echo=$ac_try;; 2850esac 2851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2852$as_echo "$ac_try_echo"; } >&5 2853 (eval "$ac_link") 2>conftest.err 2854 ac_status=$? 2855 if test -s conftest.err; then 2856 grep -v '^ *+' conftest.err >conftest.er1 2857 cat conftest.er1 >&5 2858 mv -f conftest.er1 conftest.err 2859 fi 2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2861 test $ac_status = 0; } && { 2862 test -z "$ac_c_werror_flag" || 2863 test ! -s conftest.err 2864 } && test -s conftest$ac_exeext && { 2865 test "$cross_compiling" = yes || 2866 test -x conftest$ac_exeext 2867 }; then : 2868 ac_retval=0 2869else 2870 $as_echo "$as_me: failed program was:" >&5 2871sed 's/^/| /' conftest.$ac_ext >&5 2872 2873 ac_retval=1 2874fi 2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2877 # interfere with the next link command; also delete a directory that is 2878 # left behind by Apple's compiler. We do this before executing the actions. 2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2881 as_fn_set_status $ac_retval 2882 2883} # ac_fn_c_try_link 2884 2885# ac_fn_c_check_header_preproc LINENO HEADER VAR 2886# ---------------------------------------------- 2887# Tests whether HEADER is present, setting the cache variable VAR accordingly. 2888ac_fn_c_check_header_preproc () 2889{ 2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2892$as_echo_n "checking for $2... " >&6; } 2893if eval \${$3+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2897/* end confdefs.h. */ 2898#include <$2> 2899_ACEOF 2900if ac_fn_c_try_cpp "$LINENO"; then : 2901 eval "$3=yes" 2902else 2903 eval "$3=no" 2904fi 2905rm -f conftest.err conftest.i conftest.$ac_ext 2906fi 2907eval ac_res=\$$3 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2909$as_echo "$ac_res" >&6; } 2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2911 2912} # ac_fn_c_check_header_preproc 2913 2914# ac_fn_c_check_func LINENO FUNC VAR 2915# ---------------------------------- 2916# Tests whether FUNC exists, setting the cache variable VAR accordingly 2917ac_fn_c_check_func () 2918{ 2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2921$as_echo_n "checking for $2... " >&6; } 2922if eval \${$3+:} false; then : 2923 $as_echo_n "(cached) " >&6 2924else 2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2926/* end confdefs.h. */ 2927/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2929#define $2 innocuous_$2 2930 2931/* System header to define __stub macros and hopefully few prototypes, 2932 which can conflict with char $2 (); below. 2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2934 <limits.h> exists even on freestanding compilers. */ 2935 2936#ifdef __STDC__ 2937# include <limits.h> 2938#else 2939# include <assert.h> 2940#endif 2941 2942#undef $2 2943 2944/* Override any GCC internal prototype to avoid an error. 2945 Use char because int might match the return type of a GCC 2946 builtin and then its argument prototype would still apply. */ 2947#ifdef __cplusplus 2948extern "C" 2949#endif 2950char $2 (); 2951/* The GNU C library defines this for functions which it implements 2952 to always fail with ENOSYS. Some functions are actually named 2953 something starting with __ and the normal name is an alias. */ 2954#if defined __stub_$2 || defined __stub___$2 2955choke me 2956#endif 2957 2958int 2959main () 2960{ 2961return $2 (); 2962 ; 2963 return 0; 2964} 2965_ACEOF 2966if ac_fn_c_try_link "$LINENO"; then : 2967 eval "$3=yes" 2968else 2969 eval "$3=no" 2970fi 2971rm -f core conftest.err conftest.$ac_objext \ 2972 conftest$ac_exeext conftest.$ac_ext 2973fi 2974eval ac_res=\$$3 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2976$as_echo "$ac_res" >&6; } 2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2978 2979} # ac_fn_c_check_func 2980cat >config.log <<_ACEOF 2981This file contains any messages produced by compilers while 2982running configure, to aid debugging if configure makes a mistake. 2983 2984It was created by $as_me, which was 2985generated by GNU Autoconf 2.69. Invocation command line was 2986 2987 $ $0 $@ 2988 2989_ACEOF 2990exec 5>>config.log 2991{ 2992cat <<_ASUNAME 2993## --------- ## 2994## Platform. ## 2995## --------- ## 2996 2997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2998uname -m = `(uname -m) 2>/dev/null || echo unknown` 2999uname -r = `(uname -r) 2>/dev/null || echo unknown` 3000uname -s = `(uname -s) 2>/dev/null || echo unknown` 3001uname -v = `(uname -v) 2>/dev/null || echo unknown` 3002 3003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3004/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3005 3006/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3007/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3009/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3010/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3011/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3012/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3013 3014_ASUNAME 3015 3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3017for as_dir in $PATH 3018do 3019 IFS=$as_save_IFS 3020 test -z "$as_dir" && as_dir=. 3021 $as_echo "PATH: $as_dir" 3022 done 3023IFS=$as_save_IFS 3024 3025} >&5 3026 3027cat >&5 <<_ACEOF 3028 3029 3030## ----------- ## 3031## Core tests. ## 3032## ----------- ## 3033 3034_ACEOF 3035 3036 3037# Keep a trace of the command line. 3038# Strip out --no-create and --no-recursion so they do not pile up. 3039# Strip out --silent because we don't want to record it for future runs. 3040# Also quote any args containing shell meta-characters. 3041# Make two passes to allow for proper duplicate-argument suppression. 3042ac_configure_args= 3043ac_configure_args0= 3044ac_configure_args1= 3045ac_must_keep_next=false 3046for ac_pass in 1 2 3047do 3048 for ac_arg 3049 do 3050 case $ac_arg in 3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3053 | -silent | --silent | --silen | --sile | --sil) 3054 continue ;; 3055 *\'*) 3056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3057 esac 3058 case $ac_pass in 3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3060 2) 3061 as_fn_append ac_configure_args1 " '$ac_arg'" 3062 if test $ac_must_keep_next = true; then 3063 ac_must_keep_next=false # Got value, back to normal. 3064 else 3065 case $ac_arg in 3066 *=* | --config-cache | -C | -disable-* | --disable-* \ 3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3069 | -with-* | --with-* | -without-* | --without-* | --x) 3070 case "$ac_configure_args0 " in 3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3072 esac 3073 ;; 3074 -* ) ac_must_keep_next=true ;; 3075 esac 3076 fi 3077 as_fn_append ac_configure_args " '$ac_arg'" 3078 ;; 3079 esac 3080 done 3081done 3082{ ac_configure_args0=; unset ac_configure_args0;} 3083{ ac_configure_args1=; unset ac_configure_args1;} 3084 3085# When interrupted or exit'd, cleanup temporary files, and complete 3086# config.log. We remove comments because anyway the quotes in there 3087# would cause problems or look ugly. 3088# WARNING: Use '\'' to represent an apostrophe within the trap. 3089# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3090trap 'exit_status=$? 3091 # Save into config.log some information that might help in debugging. 3092 { 3093 echo 3094 3095 $as_echo "## ---------------- ## 3096## Cache variables. ## 3097## ---------------- ##" 3098 echo 3099 # The following way of writing the cache mishandles newlines in values, 3100( 3101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3102 eval ac_val=\$$ac_var 3103 case $ac_val in #( 3104 *${as_nl}*) 3105 case $ac_var in #( 3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3108 esac 3109 case $ac_var in #( 3110 _ | IFS | as_nl) ;; #( 3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3112 *) { eval $ac_var=; unset $ac_var;} ;; 3113 esac ;; 3114 esac 3115 done 3116 (set) 2>&1 | 3117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3118 *${as_nl}ac_space=\ *) 3119 sed -n \ 3120 "s/'\''/'\''\\\\'\'''\''/g; 3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3122 ;; #( 3123 *) 3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3125 ;; 3126 esac | 3127 sort 3128) 3129 echo 3130 3131 $as_echo "## ----------------- ## 3132## Output variables. ## 3133## ----------------- ##" 3134 echo 3135 for ac_var in $ac_subst_vars 3136 do 3137 eval ac_val=\$$ac_var 3138 case $ac_val in 3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3140 esac 3141 $as_echo "$ac_var='\''$ac_val'\''" 3142 done | sort 3143 echo 3144 3145 if test -n "$ac_subst_files"; then 3146 $as_echo "## ------------------- ## 3147## File substitutions. ## 3148## ------------------- ##" 3149 echo 3150 for ac_var in $ac_subst_files 3151 do 3152 eval ac_val=\$$ac_var 3153 case $ac_val in 3154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3155 esac 3156 $as_echo "$ac_var='\''$ac_val'\''" 3157 done | sort 3158 echo 3159 fi 3160 3161 if test -s confdefs.h; then 3162 $as_echo "## ----------- ## 3163## confdefs.h. ## 3164## ----------- ##" 3165 echo 3166 cat confdefs.h 3167 echo 3168 fi 3169 test "$ac_signal" != 0 && 3170 $as_echo "$as_me: caught signal $ac_signal" 3171 $as_echo "$as_me: exit $exit_status" 3172 } >&5 3173 rm -f core *.core core.conftest.* && 3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3175 exit $exit_status 3176' 0 3177for ac_signal in 1 2 13 15; do 3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3179done 3180ac_signal=0 3181 3182# confdefs.h avoids OS command line length limits that DEFS can exceed. 3183rm -f -r conftest* confdefs.h 3184 3185$as_echo "/* confdefs.h */" > confdefs.h 3186 3187# Predefined preprocessor variables. 3188 3189cat >>confdefs.h <<_ACEOF 3190#define PACKAGE_NAME "$PACKAGE_NAME" 3191_ACEOF 3192 3193cat >>confdefs.h <<_ACEOF 3194#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3195_ACEOF 3196 3197cat >>confdefs.h <<_ACEOF 3198#define PACKAGE_VERSION "$PACKAGE_VERSION" 3199_ACEOF 3200 3201cat >>confdefs.h <<_ACEOF 3202#define PACKAGE_STRING "$PACKAGE_STRING" 3203_ACEOF 3204 3205cat >>confdefs.h <<_ACEOF 3206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3207_ACEOF 3208 3209cat >>confdefs.h <<_ACEOF 3210#define PACKAGE_URL "$PACKAGE_URL" 3211_ACEOF 3212 3213 3214# Let the site file select an alternate cache file if it wants to. 3215# Prefer an explicitly selected file to automatically selected ones. 3216ac_site_file1=NONE 3217ac_site_file2=NONE 3218if test -n "$CONFIG_SITE"; then 3219 # We do not want a PATH search for config.site. 3220 case $CONFIG_SITE in #(( 3221 -*) ac_site_file1=./$CONFIG_SITE;; 3222 */*) ac_site_file1=$CONFIG_SITE;; 3223 *) ac_site_file1=./$CONFIG_SITE;; 3224 esac 3225elif test "x$prefix" != xNONE; then 3226 ac_site_file1=$prefix/share/config.site 3227 ac_site_file2=$prefix/etc/config.site 3228else 3229 ac_site_file1=$ac_default_prefix/share/config.site 3230 ac_site_file2=$ac_default_prefix/etc/config.site 3231fi 3232for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3233do 3234 test "x$ac_site_file" = xNONE && continue 3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3237$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3238 sed 's/^/| /' "$ac_site_file" >&5 3239 . "$ac_site_file" \ 3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3242as_fn_error $? "failed to load site script $ac_site_file 3243See \`config.log' for more details" "$LINENO" 5; } 3244 fi 3245done 3246 3247if test -r "$cache_file"; then 3248 # Some versions of bash will fail to source /dev/null (special files 3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3252$as_echo "$as_me: loading cache $cache_file" >&6;} 3253 case $cache_file in 3254 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3255 *) . "./$cache_file";; 3256 esac 3257 fi 3258else 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3260$as_echo "$as_me: creating cache $cache_file" >&6;} 3261 >$cache_file 3262fi 3263 3264# Check that the precious variables saved in the cache have kept the same 3265# value. 3266ac_cache_corrupted=false 3267for ac_var in $ac_precious_vars; do 3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3269 eval ac_new_set=\$ac_env_${ac_var}_set 3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3271 eval ac_new_val=\$ac_env_${ac_var}_value 3272 case $ac_old_set,$ac_new_set in 3273 set,) 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3275$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3276 ac_cache_corrupted=: ;; 3277 ,set) 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3279$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3280 ac_cache_corrupted=: ;; 3281 ,);; 3282 *) 3283 if test "x$ac_old_val" != "x$ac_new_val"; then 3284 # differences in whitespace do not lead to failure. 3285 ac_old_val_w=`echo x $ac_old_val` 3286 ac_new_val_w=`echo x $ac_new_val` 3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3289$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3290 ac_cache_corrupted=: 3291 else 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3293$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3294 eval $ac_var=\$ac_old_val 3295 fi 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3297$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3299$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3300 fi;; 3301 esac 3302 # Pass precious variables to config.status. 3303 if test "$ac_new_set" = set; then 3304 case $ac_new_val in 3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3306 *) ac_arg=$ac_var=$ac_new_val ;; 3307 esac 3308 case " $ac_configure_args " in 3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3311 esac 3312 fi 3313done 3314if $ac_cache_corrupted; then 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3318$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3320fi 3321## -------------------- ## 3322## Main body of script. ## 3323## -------------------- ## 3324 3325ac_ext=c 3326ac_cpp='$CPP $CPPFLAGS' 3327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3329ac_compiler_gnu=$ac_cv_c_compiler_gnu 3330 3331 3332 3333 3334 3335 3336ac_config_headers="$ac_config_headers auto-host.h:config.in" 3337 3338 3339gcc_version=`cat $srcdir/BASE-VER` 3340 3341# Determine the host, build, and target systems 3342ac_aux_dir= 3343for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3344 if test -f "$ac_dir/install-sh"; then 3345 ac_aux_dir=$ac_dir 3346 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c" 3347 break 3348 elif test -f "$ac_dir/install.sh"; then 3349 ac_aux_dir=$ac_dir 3350 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c" 3351 break 3352 elif test -f "$ac_dir/shtool"; then 3353 ac_aux_dir=$ac_dir 3354 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c" 3355 break 3356 fi 3357done 3358if test -z "$ac_aux_dir"; then 3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3360fi 3361 3362# These three variables are undocumented and unsupported, 3363# and are intended to be withdrawn in a future Autoconf release. 3364# They can cause serious problems if a builder's source tree is in a directory 3365# whose full name contains unusual characters. 3366ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3367ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3368ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3369 3370 3371# Make sure we can run config.sub. 3372$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3374 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3376$as_echo_n "checking build system type... " >&6; } 3377if ${ac_cv_build+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379else 3380 ac_build_alias=$build_alias 3381test "x$ac_build_alias" = x && 3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3383test "x$ac_build_alias" = x && 3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3385ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3387 3388fi 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3390$as_echo "$ac_cv_build" >&6; } 3391case $ac_cv_build in 3392*-*-*) ;; 3393*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3394esac 3395build=$ac_cv_build 3396ac_save_IFS=$IFS; IFS='-' 3397set x $ac_cv_build 3398shift 3399build_cpu=$1 3400build_vendor=$2 3401shift; shift 3402# Remember, the first character of IFS is used to create $*, 3403# except with old shells: 3404build_os=$* 3405IFS=$ac_save_IFS 3406case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3407 3408 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3410$as_echo_n "checking host system type... " >&6; } 3411if ${ac_cv_host+:} false; then : 3412 $as_echo_n "(cached) " >&6 3413else 3414 if test "x$host_alias" = x; then 3415 ac_cv_host=$ac_cv_build 3416else 3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3419fi 3420 3421fi 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3423$as_echo "$ac_cv_host" >&6; } 3424case $ac_cv_host in 3425*-*-*) ;; 3426*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3427esac 3428host=$ac_cv_host 3429ac_save_IFS=$IFS; IFS='-' 3430set x $ac_cv_host 3431shift 3432host_cpu=$1 3433host_vendor=$2 3434shift; shift 3435# Remember, the first character of IFS is used to create $*, 3436# except with old shells: 3437host_os=$* 3438IFS=$ac_save_IFS 3439case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3440 3441 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3443$as_echo_n "checking target system type... " >&6; } 3444if ${ac_cv_target+:} false; then : 3445 $as_echo_n "(cached) " >&6 3446else 3447 if test "x$target_alias" = x; then 3448 ac_cv_target=$ac_cv_host 3449else 3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3452fi 3453 3454fi 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3456$as_echo "$ac_cv_target" >&6; } 3457case $ac_cv_target in 3458*-*-*) ;; 3459*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3460esac 3461target=$ac_cv_target 3462ac_save_IFS=$IFS; IFS='-' 3463set x $ac_cv_target 3464shift 3465target_cpu=$1 3466target_vendor=$2 3467shift; shift 3468# Remember, the first character of IFS is used to create $*, 3469# except with old shells: 3470target_os=$* 3471IFS=$ac_save_IFS 3472case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3473 3474 3475# The aliases save the names the user supplied, while $host etc. 3476# will get canonicalized. 3477test -n "$target_alias" && 3478 test "$program_prefix$program_suffix$program_transform_name" = \ 3479 NONENONEs,x,x, && 3480 program_prefix=${target_alias}- 3481 3482# Determine the noncanonical host name, for Ada. 3483 case ${build_alias} in 3484 "") build_noncanonical=${build} ;; 3485 *) build_noncanonical=${build_alias} ;; 3486esac 3487 3488 case ${host_alias} in 3489 "") host_noncanonical=${build_noncanonical} ;; 3490 *) host_noncanonical=${host_alias} ;; 3491esac 3492 3493 3494 3495 3496# Determine the noncanonical target name, for directory use. 3497 case ${target_alias} in 3498 "") target_noncanonical=${host_noncanonical} ;; 3499 *) target_noncanonical=${target_alias} ;; 3500esac 3501 3502 3503 3504 3505# Used for constructing correct paths for offload compilers. 3506real_target_noncanonical=${target_noncanonical} 3507accel_dir_suffix= 3508 3509# Determine the target- and build-specific subdirectories 3510 3511# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 3512# have matching libraries, they should use host libraries: Makefile.tpl 3513# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 3514# However, they still use the build modules, because the corresponding 3515# host modules (e.g. bison) are only built for the host when bootstrap 3516# finishes. So: 3517# - build_subdir is where we find build modules, and never changes. 3518# - build_libsubdir is where we find build libraries, and can be overridden. 3519 3520# Prefix 'build-' so this never conflicts with target_subdir. 3521build_subdir="build-${build_noncanonical}" 3522 3523# Check whether --with-build-libsubdir was given. 3524if test "${with_build_libsubdir+set}" = set; then : 3525 withval=$with_build_libsubdir; build_libsubdir="$withval" 3526else 3527 build_libsubdir="$build_subdir" 3528fi 3529 3530# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 3531if ( test $srcdir = . && test -d gcc ) \ 3532 || test -d $srcdir/../host-${host_noncanonical}; then 3533 host_subdir="host-${host_noncanonical}" 3534else 3535 host_subdir=. 3536fi 3537# No prefix. 3538target_subdir=${target_noncanonical} 3539 3540 3541# Set program_transform_name 3542test "$program_prefix" != NONE && 3543 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3544# Use a double $ so make ignores it. 3545test "$program_suffix" != NONE && 3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3547# Double any \ or $. 3548# By default was `s,x,x', remove it if useless. 3549ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3550program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3551 3552 3553# Check for bogus environment variables. 3554# Test if LIBRARY_PATH contains the notation for the current directory 3555# since this would lead to problems installing/building glibc. 3556# LIBRARY_PATH contains the current directory if one of the following 3557# is true: 3558# - one of the terminals (":" and ";") is the first or last sign 3559# - two terminals occur directly after each other 3560# - the path contains an element with a dot in it 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5 3562$as_echo_n "checking LIBRARY_PATH variable... " >&6; } 3563case ${LIBRARY_PATH} in 3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 3565 library_path_setting="contains current directory" 3566 ;; 3567 *) 3568 library_path_setting="ok" 3569 ;; 3570esac 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5 3572$as_echo "$library_path_setting" >&6; } 3573if test "$library_path_setting" != "ok"; then 3574as_fn_error $? " 3575*** LIBRARY_PATH shouldn't contain the current directory when 3576*** building gcc. Please change the environment variable 3577*** and run configure again." "$LINENO" 5 3578fi 3579 3580# Test if GCC_EXEC_PREFIX contains the notation for the current directory 3581# since this would lead to problems installing/building glibc. 3582# GCC_EXEC_PREFIX contains the current directory if one of the following 3583# is true: 3584# - one of the terminals (":" and ";") is the first or last sign 3585# - two terminals occur directly after each other 3586# - the path contains an element with a dot in it 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5 3588$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; } 3589case ${GCC_EXEC_PREFIX} in 3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 3591 gcc_exec_prefix_setting="contains current directory" 3592 ;; 3593 *) 3594 gcc_exec_prefix_setting="ok" 3595 ;; 3596esac 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5 3598$as_echo "$gcc_exec_prefix_setting" >&6; } 3599if test "$gcc_exec_prefix_setting" != "ok"; then 3600as_fn_error $? " 3601*** GCC_EXEC_PREFIX shouldn't contain the current directory when 3602*** building gcc. Please change the environment variable 3603*** and run configure again." "$LINENO" 5 3604fi 3605 3606# ----------- 3607# Directories 3608# ----------- 3609 3610# Specify the local prefix 3611local_prefix= 3612 3613# Check whether --with-local-prefix was given. 3614if test "${with_local_prefix+set}" = set; then : 3615 withval=$with_local_prefix; case "${withval}" in 3616yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;; 3617no) ;; 3618*) local_prefix=$with_local_prefix ;; 3619esac 3620fi 3621 3622 3623# Default local prefix if it is empty 3624if test x$local_prefix = x; then 3625 local_prefix=/usr/local 3626fi 3627 3628 3629# Check whether --with-native-system-header-dir was given. 3630if test "${with_native_system_header_dir+set}" = set; then : 3631 withval=$with_native_system_header_dir; 3632 case ${with_native_system_header_dir} in 3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;; 3634 /* | [A-Za-z]:[\\/]*) ;; 3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;; 3636 esac 3637 configured_native_system_header_dir="${withval}" 3638 3639else 3640 configured_native_system_header_dir= 3641fi 3642 3643 3644 3645# Check whether --with-build-sysroot was given. 3646if test "${with_build_sysroot+set}" = set; then : 3647 withval=$with_build_sysroot; if test x"$withval" != x ; then 3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" 3649 fi 3650else 3651 SYSROOT_CFLAGS_FOR_TARGET= 3652fi 3653 3654 3655 3656if test "x$prefix" = xNONE; then 3657 test_prefix=/usr/local 3658else 3659 test_prefix=$prefix 3660fi 3661if test "x$exec_prefix" = xNONE; then 3662 test_exec_prefix=$test_prefix 3663else 3664 test_exec_prefix=$exec_prefix 3665fi 3666 3667 3668# Check whether --with-sysroot was given. 3669if test "${with_sysroot+set}" = set; then : 3670 withval=$with_sysroot; 3671 case ${with_sysroot} in 3672 /) ;; 3673 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;; 3674 esac 3675 case ${with_sysroot} in 3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;; 3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 3678 esac 3679 3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' 3681 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' 3682 3683 case ${TARGET_SYSTEM_ROOT} in 3684 "${test_prefix}"|"${test_prefix}/"*|\ 3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ 3686 '${prefix}'|'${prefix}/'*|\ 3687 '${exec_prefix}'|'${exec_prefix}/'*) 3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" 3689 TARGET_SYSTEM_ROOT_DEFINE="$t" 3690 ;; 3691 esac 3692 3693else 3694 3695 TARGET_SYSTEM_ROOT= 3696 TARGET_SYSTEM_ROOT_DEFINE= 3697 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include' 3698 3699fi 3700 3701 3702 3703 3704 3705# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only 3706# passed in by the toplevel make and thus we'd get different behavior 3707# depending on where we built the sources. 3708gcc_gxx_include_dir= 3709# Specify the g++ header file directory 3710 3711# Check whether --with-gxx-include-dir was given. 3712if test "${with_gxx_include_dir+set}" = set; then : 3713 withval=$with_gxx_include_dir; case "${withval}" in 3714yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;; 3715no) ;; 3716*) gcc_gxx_include_dir=$with_gxx_include_dir ;; 3717esac 3718fi 3719 3720 3721# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate 3722# the former in the latter and, upon success, compute gcc_gxx_include_dir as 3723# relative to the sysroot. 3724gcc_gxx_include_dir_add_sysroot=0 3725 3726# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO. 3727if test x${gcc_gxx_include_dir} = x; then 3728 if test x${enable_version_specific_runtime_libs} = xyes; then 3729 gcc_gxx_include_dir='${libsubdir}/include/c++' 3730 else 3731 libstdcxx_incdir='include/c++/$(version)' 3732 if test x$host != x$target; then 3733 libstdcxx_incdir="$target_alias/$libstdcxx_incdir" 3734 fi 3735 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir" 3736 fi 3737elif test "${with_sysroot+set}" = set; then 3738 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'` 3739 if test "${gcc_gxx_without_sysroot}"; then 3740 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}" 3741 gcc_gxx_include_dir_add_sysroot=1 3742 fi 3743fi 3744 3745# Configuration for an alternate set of C++ headers. 3746gcc_gxx_libcxx_include_dir= 3747# Specify the alternate g++ header file directory 3748 3749# Check whether --with-gxx-libcxx-include-dir was given. 3750if test "${with_gxx_libcxx_include_dir+set}" = set; then : 3751 withval=$with_gxx_libcxx_include_dir; case "${withval}" in 3752yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;; 3753no) ;; 3754*) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;; 3755esac 3756fi 3757 3758 3759# If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we 3760# check to see if the latter starts with the former and, upon success, compute 3761# gcc_gxx_libcxx_include_dir as relative to the sysroot. 3762gcc_gxx_libcxx_include_dir_add_sysroot=0 3763 3764if test x${gcc_gxx_libcxx_include_dir} != x; then 3765 3766$as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h 3767 3768else 3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h 3770 3771fi 3772# ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO. 3773if test x${gcc_gxx_libcxx_include_dir} = x; then 3774 if test x${enable_version_specific_runtime_libs} = xyes; then 3775 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1' 3776 else 3777 libcxx_incdir='libc++_include/c++/$(version)/v1' 3778 if test x$host != x$target; then 3779 libcxx_incdir="$target_alias/$libcxx_incdir" 3780 fi 3781 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir" 3782 fi 3783elif test "${with_sysroot+set}" = set; then 3784 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'` 3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then 3786 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}" 3787 gcc_gxx_libcxx_include_dir_add_sysroot=1 3788 fi 3789fi 3790 3791 3792# Check whether --with-cpp_install_dir was given. 3793if test "${with_cpp_install_dir+set}" = set; then : 3794 withval=$with_cpp_install_dir; if test x$withval = xyes; then 3795 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5 3796elif test x$withval != xno; then 3797 cpp_install_dir=$withval 3798fi 3799fi 3800 3801 3802# We would like to our source tree to be readonly. However when releases or 3803# pre-releases are generated, the flex/bison generated files as well as the 3804# various formats of manuals need to be included along with the rest of the 3805# sources. Therefore we have --enable-generated-files-in-srcdir to do 3806# just that. 3807 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5 3809$as_echo_n "checking whether to place generated files in the source directory... " >&6; } 3810 # Check whether --enable-generated-files-in-srcdir was given. 3811if test "${enable_generated_files_in_srcdir+set}" = set; then : 3812 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval 3813else 3814 generated_files_in_srcdir=no 3815fi 3816 3817 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5 3819$as_echo "$generated_files_in_srcdir" >&6; } 3820 3821if test "$generated_files_in_srcdir" = "yes"; then 3822 GENINSRC='' 3823else 3824 GENINSRC='#' 3825fi 3826 3827 3828# ------------------- 3829# Find default linker 3830# ------------------- 3831 3832# With GNU ld 3833 3834# Check whether --with-gnu-ld was given. 3835if test "${with_gnu_ld+set}" = set; then : 3836 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld" 3837else 3838 gnu_ld_flag=no 3839fi 3840 3841 3842case $target in 3843 *darwin*) 3844 ld64_flag=yes # Darwin can only use a ld64-compatible linker. 3845 dsymutil_flag=yes # Darwin uses dsymutil to link debug. 3846 ;; 3847 *) 3848 ld64_flag=no 3849 dsymutil_flag=no 3850 ;; 3851esac 3852 3853# With pre-defined ld 3854 3855# Check whether --with-ld was given. 3856if test "${with_ld+set}" = set; then : 3857 withval=$with_ld; DEFAULT_LINKER="$with_ld" 3858fi 3859 3860if test x"${DEFAULT_LINKER+set}" = x"set"; then 3861 if test ! -x "$DEFAULT_LINKER"; then 3862 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5 3863 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 3864 gnu_ld_flag=yes 3865 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then 3866 ld64_flag=yes 3867 fi 3868 3869cat >>confdefs.h <<_ACEOF 3870#define DEFAULT_LINKER "$DEFAULT_LINKER" 3871_ACEOF 3872 3873fi 3874 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5 3876$as_echo_n "checking whether a default linker was specified... " >&6; } 3877if test x"${DEFAULT_LINKER+set}" = x"set"; then 3878 if test x"$gnu_ld_flag" = x"no"; then 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5 3880$as_echo "yes ($DEFAULT_LINKER)" >&6; } 3881 else 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5 3883$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; } 3884 fi 3885else 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3887$as_echo "no" >&6; } 3888fi 3889 3890# With demangler in GNU ld 3891 3892# Check whether --with-demangler-in-ld was given. 3893if test "${with_demangler_in_ld+set}" = set; then : 3894 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld" 3895else 3896 demangler_in_ld=yes 3897fi 3898 3899 3900# Allow the user to specify a dsymutil executable (used on Darwin only, so far) 3901 3902# Check whether --with-dsymutil was given. 3903if test "${with_dsymutil+set}" = set; then : 3904 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil" 3905fi 3906 3907 3908dsymutil_vers= 3909if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then 3910 if test ! -x "$DEFAULT_DSYMUTIL"; then 3911 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5 3912 else 3913 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then 3914 dsymutil_flag=yes 3915 fi 3916 fi 3917 3918cat >>confdefs.h <<_ACEOF 3919#define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL" 3920_ACEOF 3921 3922fi 3923 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5 3925$as_echo_n "checking whether a default dsymutil was specified... " >&6; } 3926if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5 3928$as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; } 3929else 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3931$as_echo "no" >&6; } 3932fi 3933 3934# ---------------------- 3935# Find default assembler 3936# ---------------------- 3937 3938# With GNU as 3939 3940# Check whether --with-gnu-as was given. 3941if test "${with_gnu_as+set}" = set; then : 3942 withval=$with_gnu_as; gas_flag="$with_gnu_as" 3943else 3944 gas_flag=no 3945fi 3946 3947 3948 3949# Check whether --with-as was given. 3950if test "${with_as+set}" = set; then : 3951 withval=$with_as; DEFAULT_ASSEMBLER="$with_as" 3952fi 3953 3954if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 3955 if test ! -x "$DEFAULT_ASSEMBLER"; then 3956 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5 3957 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 3958 gas_flag=yes 3959 fi 3960 3961cat >>confdefs.h <<_ACEOF 3962#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" 3963_ACEOF 3964 3965fi 3966 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5 3968$as_echo_n "checking whether a default assembler was specified... " >&6; } 3969if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 3970 if test x"$gas_flag" = x"no"; then 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5 3972$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; } 3973 else 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5 3975$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; } 3976 fi 3977else 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3979$as_echo "no" >&6; } 3980fi 3981 3982# --------------- 3983# Find C compiler 3984# --------------- 3985 3986# If a non-executable a.out is present (e.g. created by GNU as above even if 3987# invoked with -v only), the IRIX 6 native ld just overwrites the existing 3988# file, even when creating an executable, so an execution test fails. 3989# Remove possible default executable files to avoid this. 3990# 3991# FIXME: This really belongs into AC_PROG_CC and can be removed once 3992# Autoconf includes it. 3993rm -f a.out a.exe b.out 3994 3995# Find the native compiler 3996ac_ext=c 3997ac_cpp='$CPP $CPPFLAGS' 3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4000ac_compiler_gnu=$ac_cv_c_compiler_gnu 4001if test -n "$ac_tool_prefix"; then 4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4003set dummy ${ac_tool_prefix}gcc; ac_word=$2 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4005$as_echo_n "checking for $ac_word... " >&6; } 4006if ${ac_cv_prog_CC+:} false; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 if test -n "$CC"; then 4010 ac_cv_prog_CC="$CC" # Let the user override the test. 4011else 4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4013for as_dir in $PATH 4014do 4015 IFS=$as_save_IFS 4016 test -z "$as_dir" && as_dir=. 4017 for ac_exec_ext in '' $ac_executable_extensions; do 4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4019 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4021 break 2 4022 fi 4023done 4024 done 4025IFS=$as_save_IFS 4026 4027fi 4028fi 4029CC=$ac_cv_prog_CC 4030if test -n "$CC"; then 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4032$as_echo "$CC" >&6; } 4033else 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4035$as_echo "no" >&6; } 4036fi 4037 4038 4039fi 4040if test -z "$ac_cv_prog_CC"; then 4041 ac_ct_CC=$CC 4042 # Extract the first word of "gcc", so it can be a program name with args. 4043set dummy gcc; ac_word=$2 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4045$as_echo_n "checking for $ac_word... " >&6; } 4046if ${ac_cv_prog_ac_ct_CC+:} false; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 if test -n "$ac_ct_CC"; then 4050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4051else 4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4053for as_dir in $PATH 4054do 4055 IFS=$as_save_IFS 4056 test -z "$as_dir" && as_dir=. 4057 for ac_exec_ext in '' $ac_executable_extensions; do 4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4059 ac_cv_prog_ac_ct_CC="gcc" 4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4061 break 2 4062 fi 4063done 4064 done 4065IFS=$as_save_IFS 4066 4067fi 4068fi 4069ac_ct_CC=$ac_cv_prog_ac_ct_CC 4070if test -n "$ac_ct_CC"; then 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4072$as_echo "$ac_ct_CC" >&6; } 4073else 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4075$as_echo "no" >&6; } 4076fi 4077 4078 if test "x$ac_ct_CC" = x; then 4079 CC="" 4080 else 4081 case $cross_compiling:$ac_tool_warned in 4082yes:) 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4085ac_tool_warned=yes ;; 4086esac 4087 CC=$ac_ct_CC 4088 fi 4089else 4090 CC="$ac_cv_prog_CC" 4091fi 4092 4093if test -z "$CC"; then 4094 if test -n "$ac_tool_prefix"; then 4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4096set dummy ${ac_tool_prefix}cc; ac_word=$2 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4098$as_echo_n "checking for $ac_word... " >&6; } 4099if ${ac_cv_prog_CC+:} false; then : 4100 $as_echo_n "(cached) " >&6 4101else 4102 if test -n "$CC"; then 4103 ac_cv_prog_CC="$CC" # Let the user override the test. 4104else 4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4106for as_dir in $PATH 4107do 4108 IFS=$as_save_IFS 4109 test -z "$as_dir" && as_dir=. 4110 for ac_exec_ext in '' $ac_executable_extensions; do 4111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4112 ac_cv_prog_CC="${ac_tool_prefix}cc" 4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4114 break 2 4115 fi 4116done 4117 done 4118IFS=$as_save_IFS 4119 4120fi 4121fi 4122CC=$ac_cv_prog_CC 4123if test -n "$CC"; then 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4125$as_echo "$CC" >&6; } 4126else 4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4128$as_echo "no" >&6; } 4129fi 4130 4131 4132 fi 4133fi 4134if test -z "$CC"; then 4135 # Extract the first word of "cc", so it can be a program name with args. 4136set dummy cc; ac_word=$2 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4138$as_echo_n "checking for $ac_word... " >&6; } 4139if ${ac_cv_prog_CC+:} false; then : 4140 $as_echo_n "(cached) " >&6 4141else 4142 if test -n "$CC"; then 4143 ac_cv_prog_CC="$CC" # Let the user override the test. 4144else 4145 ac_prog_rejected=no 4146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147for as_dir in $PATH 4148do 4149 IFS=$as_save_IFS 4150 test -z "$as_dir" && as_dir=. 4151 for ac_exec_ext in '' $ac_executable_extensions; do 4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4154 ac_prog_rejected=yes 4155 continue 4156 fi 4157 ac_cv_prog_CC="cc" 4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4159 break 2 4160 fi 4161done 4162 done 4163IFS=$as_save_IFS 4164 4165if test $ac_prog_rejected = yes; then 4166 # We found a bogon in the path, so make sure we never use it. 4167 set dummy $ac_cv_prog_CC 4168 shift 4169 if test $# != 0; then 4170 # We chose a different compiler from the bogus one. 4171 # However, it has the same basename, so the bogon will be chosen 4172 # first if we set CC to just the basename; use the full file name. 4173 shift 4174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4175 fi 4176fi 4177fi 4178fi 4179CC=$ac_cv_prog_CC 4180if test -n "$CC"; then 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4182$as_echo "$CC" >&6; } 4183else 4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4185$as_echo "no" >&6; } 4186fi 4187 4188 4189fi 4190if test -z "$CC"; then 4191 if test -n "$ac_tool_prefix"; then 4192 for ac_prog in cl.exe 4193 do 4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4195set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4197$as_echo_n "checking for $ac_word... " >&6; } 4198if ${ac_cv_prog_CC+:} false; then : 4199 $as_echo_n "(cached) " >&6 4200else 4201 if test -n "$CC"; then 4202 ac_cv_prog_CC="$CC" # Let the user override the test. 4203else 4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4205for as_dir in $PATH 4206do 4207 IFS=$as_save_IFS 4208 test -z "$as_dir" && as_dir=. 4209 for ac_exec_ext in '' $ac_executable_extensions; do 4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4213 break 2 4214 fi 4215done 4216 done 4217IFS=$as_save_IFS 4218 4219fi 4220fi 4221CC=$ac_cv_prog_CC 4222if test -n "$CC"; then 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4224$as_echo "$CC" >&6; } 4225else 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4227$as_echo "no" >&6; } 4228fi 4229 4230 4231 test -n "$CC" && break 4232 done 4233fi 4234if test -z "$CC"; then 4235 ac_ct_CC=$CC 4236 for ac_prog in cl.exe 4237do 4238 # Extract the first word of "$ac_prog", so it can be a program name with args. 4239set dummy $ac_prog; ac_word=$2 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4241$as_echo_n "checking for $ac_word... " >&6; } 4242if ${ac_cv_prog_ac_ct_CC+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244else 4245 if test -n "$ac_ct_CC"; then 4246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4247else 4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4249for as_dir in $PATH 4250do 4251 IFS=$as_save_IFS 4252 test -z "$as_dir" && as_dir=. 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4255 ac_cv_prog_ac_ct_CC="$ac_prog" 4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4257 break 2 4258 fi 4259done 4260 done 4261IFS=$as_save_IFS 4262 4263fi 4264fi 4265ac_ct_CC=$ac_cv_prog_ac_ct_CC 4266if test -n "$ac_ct_CC"; then 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4268$as_echo "$ac_ct_CC" >&6; } 4269else 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4271$as_echo "no" >&6; } 4272fi 4273 4274 4275 test -n "$ac_ct_CC" && break 4276done 4277 4278 if test "x$ac_ct_CC" = x; then 4279 CC="" 4280 else 4281 case $cross_compiling:$ac_tool_warned in 4282yes:) 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4285ac_tool_warned=yes ;; 4286esac 4287 CC=$ac_ct_CC 4288 fi 4289fi 4290 4291fi 4292 4293 4294test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4296as_fn_error $? "no acceptable C compiler found in \$PATH 4297See \`config.log' for more details" "$LINENO" 5; } 4298 4299# Provide some information about the compiler. 4300$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4301set X $ac_compile 4302ac_compiler=$2 4303for ac_option in --version -v -V -qversion; do 4304 { { ac_try="$ac_compiler $ac_option >&5" 4305case "(($ac_try" in 4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4307 *) ac_try_echo=$ac_try;; 4308esac 4309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4310$as_echo "$ac_try_echo"; } >&5 4311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4312 ac_status=$? 4313 if test -s conftest.err; then 4314 sed '10a\ 4315... rest of stderr output deleted ... 4316 10q' conftest.err >conftest.er1 4317 cat conftest.er1 >&5 4318 fi 4319 rm -f conftest.er1 conftest.err 4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4321 test $ac_status = 0; } 4322done 4323 4324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4325/* end confdefs.h. */ 4326 4327int 4328main () 4329{ 4330 4331 ; 4332 return 0; 4333} 4334_ACEOF 4335ac_clean_files_save=$ac_clean_files 4336ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4337# Try to create an executable without -o first, disregard a.out. 4338# It will help us diagnose broken compilers, and finding out an intuition 4339# of exeext. 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4341$as_echo_n "checking whether the C compiler works... " >&6; } 4342ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4343 4344# The possible output files: 4345ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4346 4347ac_rmfiles= 4348for ac_file in $ac_files 4349do 4350 case $ac_file in 4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4353 esac 4354done 4355rm -f $ac_rmfiles 4356 4357if { { ac_try="$ac_link_default" 4358case "(($ac_try" in 4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4360 *) ac_try_echo=$ac_try;; 4361esac 4362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4363$as_echo "$ac_try_echo"; } >&5 4364 (eval "$ac_link_default") 2>&5 4365 ac_status=$? 4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4367 test $ac_status = 0; }; then : 4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4369# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4370# in a Makefile. We should not override ac_cv_exeext if it was cached, 4371# so that the user can short-circuit this test for compilers unknown to 4372# Autoconf. 4373for ac_file in $ac_files '' 4374do 4375 test -f "$ac_file" || continue 4376 case $ac_file in 4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4378 ;; 4379 [ab].out ) 4380 # We found the default executable, but exeext='' is most 4381 # certainly right. 4382 break;; 4383 *.* ) 4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4385 then :; else 4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4387 fi 4388 # We set ac_cv_exeext here because the later test for it is not 4389 # safe: cross compilers may not add the suffix if given an `-o' 4390 # argument, so we may need to know it at that point already. 4391 # Even if this section looks crufty: it has the advantage of 4392 # actually working. 4393 break;; 4394 * ) 4395 break;; 4396 esac 4397done 4398test "$ac_cv_exeext" = no && ac_cv_exeext= 4399 4400else 4401 ac_file='' 4402fi 4403if test -z "$ac_file"; then : 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4405$as_echo "no" >&6; } 4406$as_echo "$as_me: failed program was:" >&5 4407sed 's/^/| /' conftest.$ac_ext >&5 4408 4409{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4411as_fn_error 77 "C compiler cannot create executables 4412See \`config.log' for more details" "$LINENO" 5; } 4413else 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4415$as_echo "yes" >&6; } 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4418$as_echo_n "checking for C compiler default output file name... " >&6; } 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4420$as_echo "$ac_file" >&6; } 4421ac_exeext=$ac_cv_exeext 4422 4423rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4424ac_clean_files=$ac_clean_files_save 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4426$as_echo_n "checking for suffix of executables... " >&6; } 4427if { { ac_try="$ac_link" 4428case "(($ac_try" in 4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4430 *) ac_try_echo=$ac_try;; 4431esac 4432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4433$as_echo "$ac_try_echo"; } >&5 4434 (eval "$ac_link") 2>&5 4435 ac_status=$? 4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4437 test $ac_status = 0; }; then : 4438 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4439# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4440# work properly (i.e., refer to `conftest.exe'), while it won't with 4441# `rm'. 4442for ac_file in conftest.exe conftest conftest.*; do 4443 test -f "$ac_file" || continue 4444 case $ac_file in 4445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4447 break;; 4448 * ) break;; 4449 esac 4450done 4451else 4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4454as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4455See \`config.log' for more details" "$LINENO" 5; } 4456fi 4457rm -f conftest conftest$ac_cv_exeext 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4459$as_echo "$ac_cv_exeext" >&6; } 4460 4461rm -f conftest.$ac_ext 4462EXEEXT=$ac_cv_exeext 4463ac_exeext=$EXEEXT 4464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4465/* end confdefs.h. */ 4466#include <stdio.h> 4467int 4468main () 4469{ 4470FILE *f = fopen ("conftest.out", "w"); 4471 return ferror (f) || fclose (f) != 0; 4472 4473 ; 4474 return 0; 4475} 4476_ACEOF 4477ac_clean_files="$ac_clean_files conftest.out" 4478# Check that the compiler produces executables we can run. If not, either 4479# the compiler is broken, or we cross compile. 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4481$as_echo_n "checking whether we are cross compiling... " >&6; } 4482if test "$cross_compiling" != yes; then 4483 { { ac_try="$ac_link" 4484case "(($ac_try" in 4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4486 *) ac_try_echo=$ac_try;; 4487esac 4488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4489$as_echo "$ac_try_echo"; } >&5 4490 (eval "$ac_link") 2>&5 4491 ac_status=$? 4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4493 test $ac_status = 0; } 4494 if { ac_try='./conftest$ac_cv_exeext' 4495 { { case "(($ac_try" in 4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4497 *) ac_try_echo=$ac_try;; 4498esac 4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4500$as_echo "$ac_try_echo"; } >&5 4501 (eval "$ac_try") 2>&5 4502 ac_status=$? 4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4504 test $ac_status = 0; }; }; then 4505 cross_compiling=no 4506 else 4507 if test "$cross_compiling" = maybe; then 4508 cross_compiling=yes 4509 else 4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4512as_fn_error $? "cannot run C compiled programs. 4513If you meant to cross compile, use \`--host'. 4514See \`config.log' for more details" "$LINENO" 5; } 4515 fi 4516 fi 4517fi 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4519$as_echo "$cross_compiling" >&6; } 4520 4521rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4522ac_clean_files=$ac_clean_files_save 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4524$as_echo_n "checking for suffix of object files... " >&6; } 4525if ${ac_cv_objext+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4529/* end confdefs.h. */ 4530 4531int 4532main () 4533{ 4534 4535 ; 4536 return 0; 4537} 4538_ACEOF 4539rm -f conftest.o conftest.obj 4540if { { ac_try="$ac_compile" 4541case "(($ac_try" in 4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4543 *) ac_try_echo=$ac_try;; 4544esac 4545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4546$as_echo "$ac_try_echo"; } >&5 4547 (eval "$ac_compile") 2>&5 4548 ac_status=$? 4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4550 test $ac_status = 0; }; then : 4551 for ac_file in conftest.o conftest.obj conftest.*; do 4552 test -f "$ac_file" || continue; 4553 case $ac_file in 4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4556 break;; 4557 esac 4558done 4559else 4560 $as_echo "$as_me: failed program was:" >&5 4561sed 's/^/| /' conftest.$ac_ext >&5 4562 4563{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4565as_fn_error $? "cannot compute suffix of object files: cannot compile 4566See \`config.log' for more details" "$LINENO" 5; } 4567fi 4568rm -f conftest.$ac_cv_objext conftest.$ac_ext 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4571$as_echo "$ac_cv_objext" >&6; } 4572OBJEXT=$ac_cv_objext 4573ac_objext=$OBJEXT 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4575$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4576if ${ac_cv_c_compiler_gnu+:} false; then : 4577 $as_echo_n "(cached) " >&6 4578else 4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4580/* end confdefs.h. */ 4581 4582int 4583main () 4584{ 4585#ifndef __GNUC__ 4586 choke me 4587#endif 4588 4589 ; 4590 return 0; 4591} 4592_ACEOF 4593if ac_fn_c_try_compile "$LINENO"; then : 4594 ac_compiler_gnu=yes 4595else 4596 ac_compiler_gnu=no 4597fi 4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4599ac_cv_c_compiler_gnu=$ac_compiler_gnu 4600 4601fi 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4603$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4604if test $ac_compiler_gnu = yes; then 4605 GCC=yes 4606else 4607 GCC= 4608fi 4609ac_test_CFLAGS=${CFLAGS+set} 4610ac_save_CFLAGS=$CFLAGS 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4612$as_echo_n "checking whether $CC accepts -g... " >&6; } 4613if ${ac_cv_prog_cc_g+:} false; then : 4614 $as_echo_n "(cached) " >&6 4615else 4616 ac_save_c_werror_flag=$ac_c_werror_flag 4617 ac_c_werror_flag=yes 4618 ac_cv_prog_cc_g=no 4619 CFLAGS="-g" 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621/* end confdefs.h. */ 4622 4623int 4624main () 4625{ 4626 4627 ; 4628 return 0; 4629} 4630_ACEOF 4631if ac_fn_c_try_compile "$LINENO"; then : 4632 ac_cv_prog_cc_g=yes 4633else 4634 CFLAGS="" 4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4636/* end confdefs.h. */ 4637 4638int 4639main () 4640{ 4641 4642 ; 4643 return 0; 4644} 4645_ACEOF 4646if ac_fn_c_try_compile "$LINENO"; then : 4647 4648else 4649 ac_c_werror_flag=$ac_save_c_werror_flag 4650 CFLAGS="-g" 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652/* end confdefs.h. */ 4653 4654int 4655main () 4656{ 4657 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662if ac_fn_c_try_compile "$LINENO"; then : 4663 ac_cv_prog_cc_g=yes 4664fi 4665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4666fi 4667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4668fi 4669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4670 ac_c_werror_flag=$ac_save_c_werror_flag 4671fi 4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4673$as_echo "$ac_cv_prog_cc_g" >&6; } 4674if test "$ac_test_CFLAGS" = set; then 4675 CFLAGS=$ac_save_CFLAGS 4676elif test $ac_cv_prog_cc_g = yes; then 4677 if test "$GCC" = yes; then 4678 CFLAGS="-g -O2" 4679 else 4680 CFLAGS="-g" 4681 fi 4682else 4683 if test "$GCC" = yes; then 4684 CFLAGS="-O2" 4685 else 4686 CFLAGS= 4687 fi 4688fi 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4690$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4691if ${ac_cv_prog_cc_c89+:} false; then : 4692 $as_echo_n "(cached) " >&6 4693else 4694 ac_cv_prog_cc_c89=no 4695ac_save_CC=$CC 4696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4697/* end confdefs.h. */ 4698#include <stdarg.h> 4699#include <stdio.h> 4700struct stat; 4701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4702struct buf { int x; }; 4703FILE * (*rcsopen) (struct buf *, struct stat *, int); 4704static char *e (p, i) 4705 char **p; 4706 int i; 4707{ 4708 return p[i]; 4709} 4710static char *f (char * (*g) (char **, int), char **p, ...) 4711{ 4712 char *s; 4713 va_list v; 4714 va_start (v,p); 4715 s = g (p, va_arg (v,int)); 4716 va_end (v); 4717 return s; 4718} 4719 4720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4721 function prototypes and stuff, but not '\xHH' hex character constants. 4722 These don't provoke an error unfortunately, instead are silently treated 4723 as 'x'. The following induces an error, until -std is added to get 4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4725 array size at least. It's necessary to write '\x00'==0 to get something 4726 that's true only with -std. */ 4727int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4728 4729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4730 inside strings and character constants. */ 4731#define FOO(x) 'x' 4732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4733 4734int test (int i, double x); 4735struct s1 {int (*f) (int a);}; 4736struct s2 {int (*f) (double a);}; 4737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4738int argc; 4739char **argv; 4740int 4741main () 4742{ 4743return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4744 ; 4745 return 0; 4746} 4747_ACEOF 4748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4750do 4751 CC="$ac_save_CC $ac_arg" 4752 if ac_fn_c_try_compile "$LINENO"; then : 4753 ac_cv_prog_cc_c89=$ac_arg 4754fi 4755rm -f core conftest.err conftest.$ac_objext 4756 test "x$ac_cv_prog_cc_c89" != "xno" && break 4757done 4758rm -f conftest.$ac_ext 4759CC=$ac_save_CC 4760 4761fi 4762# AC_CACHE_VAL 4763case "x$ac_cv_prog_cc_c89" in 4764 x) 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4766$as_echo "none needed" >&6; } ;; 4767 xno) 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4769$as_echo "unsupported" >&6; } ;; 4770 *) 4771 CC="$CC $ac_cv_prog_cc_c89" 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4773$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4774esac 4775if test "x$ac_cv_prog_cc_c89" != xno; then : 4776 4777fi 4778 4779ac_ext=c 4780ac_cpp='$CPP $CPPFLAGS' 4781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4783ac_compiler_gnu=$ac_cv_c_compiler_gnu 4784 4785ac_ext=cpp 4786ac_cpp='$CXXCPP $CPPFLAGS' 4787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4790if test -z "$CXX"; then 4791 if test -n "$CCC"; then 4792 CXX=$CCC 4793 else 4794 if test -n "$ac_tool_prefix"; then 4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4796 do 4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800$as_echo_n "checking for $ac_word... " >&6; } 4801if ${ac_cv_prog_CXX+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 if test -n "$CXX"; then 4805 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4806else 4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4808for as_dir in $PATH 4809do 4810 IFS=$as_save_IFS 4811 test -z "$as_dir" && as_dir=. 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4816 break 2 4817 fi 4818done 4819 done 4820IFS=$as_save_IFS 4821 4822fi 4823fi 4824CXX=$ac_cv_prog_CXX 4825if test -n "$CXX"; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4827$as_echo "$CXX" >&6; } 4828else 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4830$as_echo "no" >&6; } 4831fi 4832 4833 4834 test -n "$CXX" && break 4835 done 4836fi 4837if test -z "$CXX"; then 4838 ac_ct_CXX=$CXX 4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4840do 4841 # Extract the first word of "$ac_prog", so it can be a program name with args. 4842set dummy $ac_prog; ac_word=$2 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4844$as_echo_n "checking for $ac_word... " >&6; } 4845if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 if test -n "$ac_ct_CXX"; then 4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4850else 4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4852for as_dir in $PATH 4853do 4854 IFS=$as_save_IFS 4855 test -z "$as_dir" && as_dir=. 4856 for ac_exec_ext in '' $ac_executable_extensions; do 4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4858 ac_cv_prog_ac_ct_CXX="$ac_prog" 4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4860 break 2 4861 fi 4862done 4863 done 4864IFS=$as_save_IFS 4865 4866fi 4867fi 4868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4869if test -n "$ac_ct_CXX"; then 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4871$as_echo "$ac_ct_CXX" >&6; } 4872else 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4874$as_echo "no" >&6; } 4875fi 4876 4877 4878 test -n "$ac_ct_CXX" && break 4879done 4880 4881 if test "x$ac_ct_CXX" = x; then 4882 CXX="g++" 4883 else 4884 case $cross_compiling:$ac_tool_warned in 4885yes:) 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4888ac_tool_warned=yes ;; 4889esac 4890 CXX=$ac_ct_CXX 4891 fi 4892fi 4893 4894 fi 4895fi 4896# Provide some information about the compiler. 4897$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4898set X $ac_compile 4899ac_compiler=$2 4900for ac_option in --version -v -V -qversion; do 4901 { { ac_try="$ac_compiler $ac_option >&5" 4902case "(($ac_try" in 4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4904 *) ac_try_echo=$ac_try;; 4905esac 4906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4907$as_echo "$ac_try_echo"; } >&5 4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4909 ac_status=$? 4910 if test -s conftest.err; then 4911 sed '10a\ 4912... rest of stderr output deleted ... 4913 10q' conftest.err >conftest.er1 4914 cat conftest.er1 >&5 4915 fi 4916 rm -f conftest.er1 conftest.err 4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4918 test $ac_status = 0; } 4919done 4920 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4922$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4923if ${ac_cv_cxx_compiler_gnu+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928 4929int 4930main () 4931{ 4932#ifndef __GNUC__ 4933 choke me 4934#endif 4935 4936 ; 4937 return 0; 4938} 4939_ACEOF 4940if ac_fn_cxx_try_compile "$LINENO"; then : 4941 ac_compiler_gnu=yes 4942else 4943 ac_compiler_gnu=no 4944fi 4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4946ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4947 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4950$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4951if test $ac_compiler_gnu = yes; then 4952 GXX=yes 4953else 4954 GXX= 4955fi 4956ac_test_CXXFLAGS=${CXXFLAGS+set} 4957ac_save_CXXFLAGS=$CXXFLAGS 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4959$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4960if ${ac_cv_prog_cxx_g+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4964 ac_cxx_werror_flag=yes 4965 ac_cv_prog_cxx_g=no 4966 CXXFLAGS="-g" 4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4968/* end confdefs.h. */ 4969 4970int 4971main () 4972{ 4973 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978if ac_fn_cxx_try_compile "$LINENO"; then : 4979 ac_cv_prog_cxx_g=yes 4980else 4981 CXXFLAGS="" 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984 4985int 4986main () 4987{ 4988 4989 ; 4990 return 0; 4991} 4992_ACEOF 4993if ac_fn_cxx_try_compile "$LINENO"; then : 4994 4995else 4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4997 CXXFLAGS="-g" 4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4999/* end confdefs.h. */ 5000 5001int 5002main () 5003{ 5004 5005 ; 5006 return 0; 5007} 5008_ACEOF 5009if ac_fn_cxx_try_compile "$LINENO"; then : 5010 ac_cv_prog_cxx_g=yes 5011fi 5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5013fi 5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015fi 5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5018fi 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5020$as_echo "$ac_cv_prog_cxx_g" >&6; } 5021if test "$ac_test_CXXFLAGS" = set; then 5022 CXXFLAGS=$ac_save_CXXFLAGS 5023elif test $ac_cv_prog_cxx_g = yes; then 5024 if test "$GXX" = yes; then 5025 CXXFLAGS="-g -O2" 5026 else 5027 CXXFLAGS="-g" 5028 fi 5029else 5030 if test "$GXX" = yes; then 5031 CXXFLAGS="-O2" 5032 else 5033 CXXFLAGS= 5034 fi 5035fi 5036ac_ext=c 5037ac_cpp='$CPP $CPPFLAGS' 5038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5040ac_compiler_gnu=$ac_cv_c_compiler_gnu 5041 5042 5043 5044 5045if test -n "$ac_tool_prefix"; then 5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 5047set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5049$as_echo_n "checking for $ac_word... " >&6; } 5050if ${ac_cv_prog_GNATBIND+:} false; then : 5051 $as_echo_n "(cached) " >&6 5052else 5053 if test -n "$GNATBIND"; then 5054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 5055else 5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5057for as_dir in $PATH 5058do 5059 IFS=$as_save_IFS 5060 test -z "$as_dir" && as_dir=. 5061 for ac_exec_ext in '' $ac_executable_extensions; do 5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5063 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5065 break 2 5066 fi 5067done 5068 done 5069IFS=$as_save_IFS 5070 5071fi 5072fi 5073GNATBIND=$ac_cv_prog_GNATBIND 5074if test -n "$GNATBIND"; then 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 5076$as_echo "$GNATBIND" >&6; } 5077else 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5079$as_echo "no" >&6; } 5080fi 5081 5082 5083fi 5084if test -z "$ac_cv_prog_GNATBIND"; then 5085 ac_ct_GNATBIND=$GNATBIND 5086 # Extract the first word of "gnatbind", so it can be a program name with args. 5087set dummy gnatbind; ac_word=$2 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5089$as_echo_n "checking for $ac_word... " >&6; } 5090if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 if test -n "$ac_ct_GNATBIND"; then 5094 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. 5095else 5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5097for as_dir in $PATH 5098do 5099 IFS=$as_save_IFS 5100 test -z "$as_dir" && as_dir=. 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5103 ac_cv_prog_ac_ct_GNATBIND="gnatbind" 5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5105 break 2 5106 fi 5107done 5108 done 5109IFS=$as_save_IFS 5110 5111fi 5112fi 5113ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND 5114if test -n "$ac_ct_GNATBIND"; then 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 5116$as_echo "$ac_ct_GNATBIND" >&6; } 5117else 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5119$as_echo "no" >&6; } 5120fi 5121 5122 if test "x$ac_ct_GNATBIND" = x; then 5123 GNATBIND="no" 5124 else 5125 case $cross_compiling:$ac_tool_warned in 5126yes:) 5127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5129ac_tool_warned=yes ;; 5130esac 5131 GNATBIND=$ac_ct_GNATBIND 5132 fi 5133else 5134 GNATBIND="$ac_cv_prog_GNATBIND" 5135fi 5136 5137if test -n "$ac_tool_prefix"; then 5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. 5139set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5141$as_echo_n "checking for $ac_word... " >&6; } 5142if ${ac_cv_prog_GNATMAKE+:} false; then : 5143 $as_echo_n "(cached) " >&6 5144else 5145 if test -n "$GNATMAKE"; then 5146 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. 5147else 5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5149for as_dir in $PATH 5150do 5151 IFS=$as_save_IFS 5152 test -z "$as_dir" && as_dir=. 5153 for ac_exec_ext in '' $ac_executable_extensions; do 5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5155 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" 5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5157 break 2 5158 fi 5159done 5160 done 5161IFS=$as_save_IFS 5162 5163fi 5164fi 5165GNATMAKE=$ac_cv_prog_GNATMAKE 5166if test -n "$GNATMAKE"; then 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 5168$as_echo "$GNATMAKE" >&6; } 5169else 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5171$as_echo "no" >&6; } 5172fi 5173 5174 5175fi 5176if test -z "$ac_cv_prog_GNATMAKE"; then 5177 ac_ct_GNATMAKE=$GNATMAKE 5178 # Extract the first word of "gnatmake", so it can be a program name with args. 5179set dummy gnatmake; ac_word=$2 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5181$as_echo_n "checking for $ac_word... " >&6; } 5182if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 if test -n "$ac_ct_GNATMAKE"; then 5186 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. 5187else 5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5189for as_dir in $PATH 5190do 5191 IFS=$as_save_IFS 5192 test -z "$as_dir" && as_dir=. 5193 for ac_exec_ext in '' $ac_executable_extensions; do 5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5195 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" 5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5197 break 2 5198 fi 5199done 5200 done 5201IFS=$as_save_IFS 5202 5203fi 5204fi 5205ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE 5206if test -n "$ac_ct_GNATMAKE"; then 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 5208$as_echo "$ac_ct_GNATMAKE" >&6; } 5209else 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5211$as_echo "no" >&6; } 5212fi 5213 5214 if test "x$ac_ct_GNATMAKE" = x; then 5215 GNATMAKE="no" 5216 else 5217 case $cross_compiling:$ac_tool_warned in 5218yes:) 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5221ac_tool_warned=yes ;; 5222esac 5223 GNATMAKE=$ac_ct_GNATMAKE 5224 fi 5225else 5226 GNATMAKE="$ac_cv_prog_GNATMAKE" 5227fi 5228 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 5230$as_echo_n "checking whether compiler driver understands Ada... " >&6; } 5231if ${acx_cv_cc_gcc_supports_ada+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 cat >conftest.adb <<EOF 5235procedure conftest is begin null; end conftest; 5236EOF 5237acx_cv_cc_gcc_supports_ada=no 5238# There is a bug in old released versions of GCC which causes the 5239# driver to exit successfully when the appropriate language module 5240# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 5241# Therefore we must check for the error message as well as an 5242# unsuccessful exit. 5243# Other compilers, like HP Tru64 UNIX cc, exit successfully when 5244# given a .adb file, but produce no object file. So we must check 5245# if an object file was really produced to guard against this. 5246errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure` 5247if test x"$errors" = x && test -f conftest.$ac_objext; then 5248 acx_cv_cc_gcc_supports_ada=yes 5249fi 5250rm -f conftest.* 5251fi 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 5253$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } 5254 5255if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 5256 have_gnat=yes 5257else 5258 have_gnat=no 5259fi 5260 5261 5262 5263if test -n "$ac_tool_prefix"; then 5264 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. 5265set dummy ${ac_tool_prefix}gdc; ac_word=$2 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5267$as_echo_n "checking for $ac_word... " >&6; } 5268if ${ac_cv_prog_GDC+:} false; then : 5269 $as_echo_n "(cached) " >&6 5270else 5271 if test -n "$GDC"; then 5272 ac_cv_prog_GDC="$GDC" # Let the user override the test. 5273else 5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5275for as_dir in $PATH 5276do 5277 IFS=$as_save_IFS 5278 test -z "$as_dir" && as_dir=. 5279 for ac_exec_ext in '' $ac_executable_extensions; do 5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5281 ac_cv_prog_GDC="${ac_tool_prefix}gdc" 5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5283 break 2 5284 fi 5285done 5286 done 5287IFS=$as_save_IFS 5288 5289fi 5290fi 5291GDC=$ac_cv_prog_GDC 5292if test -n "$GDC"; then 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 5294$as_echo "$GDC" >&6; } 5295else 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5297$as_echo "no" >&6; } 5298fi 5299 5300 5301fi 5302if test -z "$ac_cv_prog_GDC"; then 5303 ac_ct_GDC=$GDC 5304 # Extract the first word of "gdc", so it can be a program name with args. 5305set dummy gdc; ac_word=$2 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5307$as_echo_n "checking for $ac_word... " >&6; } 5308if ${ac_cv_prog_ac_ct_GDC+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 if test -n "$ac_ct_GDC"; then 5312 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. 5313else 5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5315for as_dir in $PATH 5316do 5317 IFS=$as_save_IFS 5318 test -z "$as_dir" && as_dir=. 5319 for ac_exec_ext in '' $ac_executable_extensions; do 5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5321 ac_cv_prog_ac_ct_GDC="gdc" 5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5323 break 2 5324 fi 5325done 5326 done 5327IFS=$as_save_IFS 5328 5329fi 5330fi 5331ac_ct_GDC=$ac_cv_prog_ac_ct_GDC 5332if test -n "$ac_ct_GDC"; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 5334$as_echo "$ac_ct_GDC" >&6; } 5335else 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5337$as_echo "no" >&6; } 5338fi 5339 5340 if test "x$ac_ct_GDC" = x; then 5341 GDC="no" 5342 else 5343 case $cross_compiling:$ac_tool_warned in 5344yes:) 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5347ac_tool_warned=yes ;; 5348esac 5349 GDC=$ac_ct_GDC 5350 fi 5351else 5352 GDC="$ac_cv_prog_GDC" 5353fi 5354 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 5356$as_echo_n "checking whether the D compiler works... " >&6; } 5357if ${acx_cv_d_compiler_works+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 cat >conftest.d <<EOF 5361module conftest; int main() { return 0; } 5362EOF 5363acx_cv_d_compiler_works=no 5364if test "x$GDC" != xno; then 5365 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure` 5366 if test x"$errors" = x && test -f conftest.$ac_objext; then 5367 acx_cv_d_compiler_works=yes 5368 fi 5369 rm -f conftest.* 5370fi 5371fi 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 5373$as_echo "$acx_cv_d_compiler_works" >&6; } 5374if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then 5375 have_gdc=yes 5376else 5377 have_gdc=no 5378fi 5379 5380 5381# Do configure tests with the C++ compiler, since that's what we build with. 5382ac_ext=cpp 5383ac_cpp='$CXXCPP $CPPFLAGS' 5384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5387 5388 5389# Remove the -O2: for historical reasons, unless bootstrapping we prefer 5390# optimizations to be activated explicitly by the toplevel. 5391case "$CC" in 5392 */prev-gcc/xgcc*) ;; 5393 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` 5394 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;; 5395esac 5396 5397 5398 5399 5400# Determine PICFLAG for target gnatlib. 5401 5402 5403 5404 5405case "${target}" in 5406 # PIC is the default on some targets or must not be used. 5407 *-*-darwin*) 5408 # For darwin, common symbols are not allowed in MH_DYLIB files 5409 case "${CFLAGS}" in 5410 # If we are using a compiler supporting mdynamic-no-pic 5411 # and the option has been tested as safe to add, then cancel 5412 # it here, since the code generated is incompatible with shared 5413 # libs. 5414 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;; 5415 *) PICFLAG_FOR_TARGET=-fno-common ;; 5416 esac 5417 ;; 5418 alpha*-dec-osf5*) 5419 # PIC is the default. 5420 ;; 5421 hppa*64*-*-hpux*) 5422 # PIC is the default for 64-bit PA HP-UX. 5423 ;; 5424 i[34567]86-*-cygwin* | x86_64-*-cygwin*) 5425 ;; 5426 i[34567]86-*-mingw* | x86_64-*-mingw*) 5427 ;; 5428 i[34567]86-*-interix[3-9]*) 5429 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5430 # Instead, we relocate shared libraries at runtime. 5431 ;; 5432 i[34567]86-*-nto-qnx*) 5433 # QNX uses GNU C++, but need to define -shared option too, otherwise 5434 # it will coredump. 5435 PICFLAG_FOR_TARGET='-fPIC -shared' 5436 ;; 5437 i[34567]86-pc-msdosdjgpp*) 5438 # DJGPP does not support shared libraries at all. 5439 ;; 5440 ia64*-*-hpux*) 5441 # On IA64 HP-UX, PIC is the default but the pic flag 5442 # sets the default TLS model and affects inlining. 5443 PICFLAG_FOR_TARGET=-fPIC 5444 ;; 5445 loongarch*-*-*) 5446 PICFLAG_FOR_TARGET=-fpic 5447 ;; 5448 mips-sgi-irix6*) 5449 # PIC is the default. 5450 ;; 5451 rs6000-ibm-aix* | powerpc-ibm-aix*) 5452 # All AIX code is PIC. 5453 ;; 5454 5455 # Some targets support both -fPIC and -fpic, but prefer the latter. 5456 # FIXME: Why? 5457 i[34567]86-*-* | x86_64-*-*) 5458 PICFLAG_FOR_TARGET=-fpic 5459 ;; 5460 # FIXME: Override -fPIC default in libgcc only? 5461 sh-*-linux* | sh[2346lbe]*-*-linux*) 5462 PICFLAG_FOR_TARGET=-fpic 5463 ;; 5464 # FIXME: Simplify to sh*-*-netbsd*? 5465 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ 5466 sh64-*-netbsd* | sh64l*-*-netbsd*) 5467 PICFLAG_FOR_TARGET=-fpic 5468 ;; 5469 # Default to -fPIC unless specified otherwise. 5470 *) 5471 PICFLAG_FOR_TARGET=-fPIC 5472 ;; 5473esac 5474 5475# If the user explicitly uses -fpic/-fPIC, keep that. 5476case "${CFLAGS_FOR_TARGET}" in 5477 *-fpic*) 5478 PICFLAG_FOR_TARGET=-fpic 5479 ;; 5480 *-fPIC*) 5481 PICFLAG_FOR_TARGET=-fPIC 5482 ;; 5483esac 5484 5485 5486 5487# ------------------------- 5488# Check C compiler features 5489# ------------------------- 5490 5491 5492ac_ext=cpp 5493ac_cpp='$CXXCPP $CPPFLAGS' 5494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5498$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5499if test -z "$CXXCPP"; then 5500 if ${ac_cv_prog_CXXCPP+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 # Double quotes because CXXCPP needs to be expanded 5504 for CXXCPP in "$CXX -E" "/lib/cpp" 5505 do 5506 ac_preproc_ok=false 5507for ac_cxx_preproc_warn_flag in '' yes 5508do 5509 # Use a header file that comes with gcc, so configuring glibc 5510 # with a fresh cross-compiler works. 5511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5512 # <limits.h> exists even on freestanding compilers. 5513 # On the NeXT, cc -E runs the code through the compiler's parser, 5514 # not just through cpp. "Syntax error" is here to catch this case. 5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5516/* end confdefs.h. */ 5517#ifdef __STDC__ 5518# include <limits.h> 5519#else 5520# include <assert.h> 5521#endif 5522 Syntax error 5523_ACEOF 5524if ac_fn_cxx_try_cpp "$LINENO"; then : 5525 5526else 5527 # Broken: fails on valid input. 5528continue 5529fi 5530rm -f conftest.err conftest.i conftest.$ac_ext 5531 5532 # OK, works on sane cases. Now check whether nonexistent headers 5533 # can be detected and how. 5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5535/* end confdefs.h. */ 5536#include <ac_nonexistent.h> 5537_ACEOF 5538if ac_fn_cxx_try_cpp "$LINENO"; then : 5539 # Broken: success on invalid input. 5540continue 5541else 5542 # Passes both tests. 5543ac_preproc_ok=: 5544break 5545fi 5546rm -f conftest.err conftest.i conftest.$ac_ext 5547 5548done 5549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5550rm -f conftest.i conftest.err conftest.$ac_ext 5551if $ac_preproc_ok; then : 5552 break 5553fi 5554 5555 done 5556 ac_cv_prog_CXXCPP=$CXXCPP 5557 5558fi 5559 CXXCPP=$ac_cv_prog_CXXCPP 5560else 5561 ac_cv_prog_CXXCPP=$CXXCPP 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5564$as_echo "$CXXCPP" >&6; } 5565ac_preproc_ok=false 5566for ac_cxx_preproc_warn_flag in '' yes 5567do 5568 # Use a header file that comes with gcc, so configuring glibc 5569 # with a fresh cross-compiler works. 5570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5571 # <limits.h> exists even on freestanding compilers. 5572 # On the NeXT, cc -E runs the code through the compiler's parser, 5573 # not just through cpp. "Syntax error" is here to catch this case. 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576#ifdef __STDC__ 5577# include <limits.h> 5578#else 5579# include <assert.h> 5580#endif 5581 Syntax error 5582_ACEOF 5583if ac_fn_cxx_try_cpp "$LINENO"; then : 5584 5585else 5586 # Broken: fails on valid input. 5587continue 5588fi 5589rm -f conftest.err conftest.i conftest.$ac_ext 5590 5591 # OK, works on sane cases. Now check whether nonexistent headers 5592 # can be detected and how. 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595#include <ac_nonexistent.h> 5596_ACEOF 5597if ac_fn_cxx_try_cpp "$LINENO"; then : 5598 # Broken: success on invalid input. 5599continue 5600else 5601 # Passes both tests. 5602ac_preproc_ok=: 5603break 5604fi 5605rm -f conftest.err conftest.i conftest.$ac_ext 5606 5607done 5608# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5609rm -f conftest.i conftest.err conftest.$ac_ext 5610if $ac_preproc_ok; then : 5611 5612else 5613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5615as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5616See \`config.log' for more details" "$LINENO" 5; } 5617fi 5618 5619ac_ext=cpp 5620ac_cpp='$CXXCPP $CPPFLAGS' 5621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5624 5625 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5627$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5628if ${ac_cv_path_GREP+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 if test -z "$GREP"; then 5632 ac_path_GREP_found=false 5633 # Loop through the user's path and test for each of PROGNAME-LIST 5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5636do 5637 IFS=$as_save_IFS 5638 test -z "$as_dir" && as_dir=. 5639 for ac_prog in grep ggrep; do 5640 for ac_exec_ext in '' $ac_executable_extensions; do 5641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5642 as_fn_executable_p "$ac_path_GREP" || continue 5643# Check for GNU ac_path_GREP and select it if it is found. 5644 # Check for GNU $ac_path_GREP 5645case `"$ac_path_GREP" --version 2>&1` in 5646*GNU*) 5647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5648*) 5649 ac_count=0 5650 $as_echo_n 0123456789 >"conftest.in" 5651 while : 5652 do 5653 cat "conftest.in" "conftest.in" >"conftest.tmp" 5654 mv "conftest.tmp" "conftest.in" 5655 cp "conftest.in" "conftest.nl" 5656 $as_echo 'GREP' >> "conftest.nl" 5657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5659 as_fn_arith $ac_count + 1 && ac_count=$as_val 5660 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5661 # Best one so far, save it but keep looking for a better one 5662 ac_cv_path_GREP="$ac_path_GREP" 5663 ac_path_GREP_max=$ac_count 5664 fi 5665 # 10*(2^10) chars as input seems more than enough 5666 test $ac_count -gt 10 && break 5667 done 5668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5669esac 5670 5671 $ac_path_GREP_found && break 3 5672 done 5673 done 5674 done 5675IFS=$as_save_IFS 5676 if test -z "$ac_cv_path_GREP"; then 5677 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5678 fi 5679else 5680 ac_cv_path_GREP=$GREP 5681fi 5682 5683fi 5684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5685$as_echo "$ac_cv_path_GREP" >&6; } 5686 GREP="$ac_cv_path_GREP" 5687 5688 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5690$as_echo_n "checking for egrep... " >&6; } 5691if ${ac_cv_path_EGREP+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5695 then ac_cv_path_EGREP="$GREP -E" 5696 else 5697 if test -z "$EGREP"; then 5698 ac_path_EGREP_found=false 5699 # Loop through the user's path and test for each of PROGNAME-LIST 5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5701for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5702do 5703 IFS=$as_save_IFS 5704 test -z "$as_dir" && as_dir=. 5705 for ac_prog in egrep; do 5706 for ac_exec_ext in '' $ac_executable_extensions; do 5707 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5708 as_fn_executable_p "$ac_path_EGREP" || continue 5709# Check for GNU ac_path_EGREP and select it if it is found. 5710 # Check for GNU $ac_path_EGREP 5711case `"$ac_path_EGREP" --version 2>&1` in 5712*GNU*) 5713 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5714*) 5715 ac_count=0 5716 $as_echo_n 0123456789 >"conftest.in" 5717 while : 5718 do 5719 cat "conftest.in" "conftest.in" >"conftest.tmp" 5720 mv "conftest.tmp" "conftest.in" 5721 cp "conftest.in" "conftest.nl" 5722 $as_echo 'EGREP' >> "conftest.nl" 5723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5725 as_fn_arith $ac_count + 1 && ac_count=$as_val 5726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5727 # Best one so far, save it but keep looking for a better one 5728 ac_cv_path_EGREP="$ac_path_EGREP" 5729 ac_path_EGREP_max=$ac_count 5730 fi 5731 # 10*(2^10) chars as input seems more than enough 5732 test $ac_count -gt 10 && break 5733 done 5734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5735esac 5736 5737 $ac_path_EGREP_found && break 3 5738 done 5739 done 5740 done 5741IFS=$as_save_IFS 5742 if test -z "$ac_cv_path_EGREP"; then 5743 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5744 fi 5745else 5746 ac_cv_path_EGREP=$EGREP 5747fi 5748 5749 fi 5750fi 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5752$as_echo "$ac_cv_path_EGREP" >&6; } 5753 EGREP="$ac_cv_path_EGREP" 5754 5755 5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5757$as_echo_n "checking for ANSI C header files... " >&6; } 5758if ${ac_cv_header_stdc+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760else 5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762/* end confdefs.h. */ 5763#include <stdlib.h> 5764#include <stdarg.h> 5765#include <string.h> 5766#include <float.h> 5767 5768int 5769main () 5770{ 5771 5772 ; 5773 return 0; 5774} 5775_ACEOF 5776if ac_fn_cxx_try_compile "$LINENO"; then : 5777 ac_cv_header_stdc=yes 5778else 5779 ac_cv_header_stdc=no 5780fi 5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5782 5783if test $ac_cv_header_stdc = yes; then 5784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5786/* end confdefs.h. */ 5787#include <string.h> 5788 5789_ACEOF 5790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5791 $EGREP "memchr" >/dev/null 2>&1; then : 5792 5793else 5794 ac_cv_header_stdc=no 5795fi 5796rm -f conftest* 5797 5798fi 5799 5800if test $ac_cv_header_stdc = yes; then 5801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803/* end confdefs.h. */ 5804#include <stdlib.h> 5805 5806_ACEOF 5807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5808 $EGREP "free" >/dev/null 2>&1; then : 5809 5810else 5811 ac_cv_header_stdc=no 5812fi 5813rm -f conftest* 5814 5815fi 5816 5817if test $ac_cv_header_stdc = yes; then 5818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5819 if test "$cross_compiling" = yes; then : 5820 : 5821else 5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5823/* end confdefs.h. */ 5824#include <ctype.h> 5825#include <stdlib.h> 5826#if ((' ' & 0x0FF) == 0x020) 5827# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5828# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5829#else 5830# define ISLOWER(c) \ 5831 (('a' <= (c) && (c) <= 'i') \ 5832 || ('j' <= (c) && (c) <= 'r') \ 5833 || ('s' <= (c) && (c) <= 'z')) 5834# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5835#endif 5836 5837#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5838int 5839main () 5840{ 5841 int i; 5842 for (i = 0; i < 256; i++) 5843 if (XOR (islower (i), ISLOWER (i)) 5844 || toupper (i) != TOUPPER (i)) 5845 return 2; 5846 return 0; 5847} 5848_ACEOF 5849if ac_fn_cxx_try_run "$LINENO"; then : 5850 5851else 5852 ac_cv_header_stdc=no 5853fi 5854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5855 conftest.$ac_objext conftest.beam conftest.$ac_ext 5856fi 5857 5858fi 5859fi 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5861$as_echo "$ac_cv_header_stdc" >&6; } 5862if test $ac_cv_header_stdc = yes; then 5863 5864$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5865 5866fi 5867 5868# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5869for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5870 inttypes.h stdint.h unistd.h 5871do : 5872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5873ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5874" 5875if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5876 cat >>confdefs.h <<_ACEOF 5877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5878_ACEOF 5879 5880fi 5881 5882done 5883 5884 5885 5886 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5887if test "x$ac_cv_header_minix_config_h" = xyes; then : 5888 MINIX=yes 5889else 5890 MINIX= 5891fi 5892 5893 5894 if test "$MINIX" = yes; then 5895 5896$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5897 5898 5899$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5900 5901 5902$as_echo "#define _MINIX 1" >>confdefs.h 5903 5904 fi 5905 5906 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5908$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5909if ${ac_cv_safe_to_define___extensions__+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913/* end confdefs.h. */ 5914 5915# define __EXTENSIONS__ 1 5916 $ac_includes_default 5917int 5918main () 5919{ 5920 5921 ; 5922 return 0; 5923} 5924_ACEOF 5925if ac_fn_cxx_try_compile "$LINENO"; then : 5926 ac_cv_safe_to_define___extensions__=yes 5927else 5928 ac_cv_safe_to_define___extensions__=no 5929fi 5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5931fi 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5933$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5934 test $ac_cv_safe_to_define___extensions__ = yes && 5935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5936 5937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5938 5939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5940 5941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5942 5943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5944 5945 5946 5947ac_ext=c 5948ac_cpp='$CPP $CPPFLAGS' 5949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5951ac_compiler_gnu=$ac_cv_c_compiler_gnu 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5953$as_echo_n "checking how to run the C preprocessor... " >&6; } 5954# On Suns, sometimes $CPP names a directory. 5955if test -n "$CPP" && test -d "$CPP"; then 5956 CPP= 5957fi 5958if test -z "$CPP"; then 5959 if ${ac_cv_prog_CPP+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961else 5962 # Double quotes because CPP needs to be expanded 5963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5964 do 5965 ac_preproc_ok=false 5966for ac_c_preproc_warn_flag in '' yes 5967do 5968 # Use a header file that comes with gcc, so configuring glibc 5969 # with a fresh cross-compiler works. 5970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5971 # <limits.h> exists even on freestanding compilers. 5972 # On the NeXT, cc -E runs the code through the compiler's parser, 5973 # not just through cpp. "Syntax error" is here to catch this case. 5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5975/* end confdefs.h. */ 5976#ifdef __STDC__ 5977# include <limits.h> 5978#else 5979# include <assert.h> 5980#endif 5981 Syntax error 5982_ACEOF 5983if ac_fn_c_try_cpp "$LINENO"; then : 5984 5985else 5986 # Broken: fails on valid input. 5987continue 5988fi 5989rm -f conftest.err conftest.i conftest.$ac_ext 5990 5991 # OK, works on sane cases. Now check whether nonexistent headers 5992 # can be detected and how. 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995#include <ac_nonexistent.h> 5996_ACEOF 5997if ac_fn_c_try_cpp "$LINENO"; then : 5998 # Broken: success on invalid input. 5999continue 6000else 6001 # Passes both tests. 6002ac_preproc_ok=: 6003break 6004fi 6005rm -f conftest.err conftest.i conftest.$ac_ext 6006 6007done 6008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6009rm -f conftest.i conftest.err conftest.$ac_ext 6010if $ac_preproc_ok; then : 6011 break 6012fi 6013 6014 done 6015 ac_cv_prog_CPP=$CPP 6016 6017fi 6018 CPP=$ac_cv_prog_CPP 6019else 6020 ac_cv_prog_CPP=$CPP 6021fi 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6023$as_echo "$CPP" >&6; } 6024ac_preproc_ok=false 6025for ac_c_preproc_warn_flag in '' yes 6026do 6027 # Use a header file that comes with gcc, so configuring glibc 6028 # with a fresh cross-compiler works. 6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6030 # <limits.h> exists even on freestanding compilers. 6031 # On the NeXT, cc -E runs the code through the compiler's parser, 6032 # not just through cpp. "Syntax error" is here to catch this case. 6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6034/* end confdefs.h. */ 6035#ifdef __STDC__ 6036# include <limits.h> 6037#else 6038# include <assert.h> 6039#endif 6040 Syntax error 6041_ACEOF 6042if ac_fn_c_try_cpp "$LINENO"; then : 6043 6044else 6045 # Broken: fails on valid input. 6046continue 6047fi 6048rm -f conftest.err conftest.i conftest.$ac_ext 6049 6050 # OK, works on sane cases. Now check whether nonexistent headers 6051 # can be detected and how. 6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053/* end confdefs.h. */ 6054#include <ac_nonexistent.h> 6055_ACEOF 6056if ac_fn_c_try_cpp "$LINENO"; then : 6057 # Broken: success on invalid input. 6058continue 6059else 6060 # Passes both tests. 6061ac_preproc_ok=: 6062break 6063fi 6064rm -f conftest.err conftest.i conftest.$ac_ext 6065 6066done 6067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6068rm -f conftest.i conftest.err conftest.$ac_ext 6069if $ac_preproc_ok; then : 6070 6071else 6072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6074as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6075See \`config.log' for more details" "$LINENO" 5; } 6076fi 6077 6078ac_ext=cpp 6079ac_cpp='$CXXCPP $CPPFLAGS' 6080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6083 6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6085$as_echo_n "checking for inline... " >&6; } 6086if ${ac_cv_c_inline+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 ac_cv_c_inline=no 6090for ac_kw in inline __inline__ __inline; do 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093#ifndef __cplusplus 6094typedef int foo_t; 6095static $ac_kw foo_t static_foo () {return 0; } 6096$ac_kw foo_t foo () {return 0; } 6097#endif 6098 6099_ACEOF 6100if ac_fn_cxx_try_compile "$LINENO"; then : 6101 ac_cv_c_inline=$ac_kw 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104 test "$ac_cv_c_inline" != no && break 6105done 6106 6107fi 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6109$as_echo "$ac_cv_c_inline" >&6; } 6110 6111case $ac_cv_c_inline in 6112 inline | yes) ;; 6113 *) 6114 case $ac_cv_c_inline in 6115 no) ac_val=;; 6116 *) ac_val=$ac_cv_c_inline;; 6117 esac 6118 cat >>confdefs.h <<_ACEOF 6119#ifndef __cplusplus 6120#define inline $ac_val 6121#endif 6122_ACEOF 6123 ;; 6124esac 6125 6126 6127# Check whether --enable-largefile was given. 6128if test "${enable_largefile+set}" = set; then : 6129 enableval=$enable_largefile; 6130fi 6131 6132if test "$enable_largefile" != no; then 6133 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6135$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6136if ${ac_cv_sys_largefile_CC+:} false; then : 6137 $as_echo_n "(cached) " >&6 6138else 6139 ac_cv_sys_largefile_CC=no 6140 if test "$GCC" != yes; then 6141 ac_save_CC=$CC 6142 while :; do 6143 # IRIX 6.2 and later do not support large files by default, 6144 # so use the C compiler's -n32 option if that helps. 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6146/* end confdefs.h. */ 6147#include <sys/types.h> 6148 /* Check that off_t can represent 2**63 - 1 correctly. 6149 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6150 since some C++ compilers masquerading as C compilers 6151 incorrectly reject 9223372036854775807. */ 6152#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6154 && LARGE_OFF_T % 2147483647 == 1) 6155 ? 1 : -1]; 6156int 6157main () 6158{ 6159 6160 ; 6161 return 0; 6162} 6163_ACEOF 6164 if ac_fn_cxx_try_compile "$LINENO"; then : 6165 break 6166fi 6167rm -f core conftest.err conftest.$ac_objext 6168 CC="$CC -n32" 6169 if ac_fn_cxx_try_compile "$LINENO"; then : 6170 ac_cv_sys_largefile_CC=' -n32'; break 6171fi 6172rm -f core conftest.err conftest.$ac_objext 6173 break 6174 done 6175 CC=$ac_save_CC 6176 rm -f conftest.$ac_ext 6177 fi 6178fi 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6180$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6181 if test "$ac_cv_sys_largefile_CC" != no; then 6182 CC=$CC$ac_cv_sys_largefile_CC 6183 fi 6184 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6186$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6187if ${ac_cv_sys_file_offset_bits+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 while :; do 6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6192/* end confdefs.h. */ 6193#include <sys/types.h> 6194 /* Check that off_t can represent 2**63 - 1 correctly. 6195 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6196 since some C++ compilers masquerading as C compilers 6197 incorrectly reject 9223372036854775807. */ 6198#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6200 && LARGE_OFF_T % 2147483647 == 1) 6201 ? 1 : -1]; 6202int 6203main () 6204{ 6205 6206 ; 6207 return 0; 6208} 6209_ACEOF 6210if ac_fn_cxx_try_compile "$LINENO"; then : 6211 ac_cv_sys_file_offset_bits=no; break 6212fi 6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216#define _FILE_OFFSET_BITS 64 6217#include <sys/types.h> 6218 /* Check that off_t can represent 2**63 - 1 correctly. 6219 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6220 since some C++ compilers masquerading as C compilers 6221 incorrectly reject 9223372036854775807. */ 6222#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6224 && LARGE_OFF_T % 2147483647 == 1) 6225 ? 1 : -1]; 6226int 6227main () 6228{ 6229 6230 ; 6231 return 0; 6232} 6233_ACEOF 6234if ac_fn_cxx_try_compile "$LINENO"; then : 6235 ac_cv_sys_file_offset_bits=64; break 6236fi 6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6238 ac_cv_sys_file_offset_bits=unknown 6239 break 6240done 6241fi 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6243$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6244case $ac_cv_sys_file_offset_bits in #( 6245 no | unknown) ;; 6246 *) 6247cat >>confdefs.h <<_ACEOF 6248#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6249_ACEOF 6250;; 6251esac 6252rm -rf conftest* 6253 if test $ac_cv_sys_file_offset_bits = unknown; then 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6255$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6256if ${ac_cv_sys_large_files+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 while :; do 6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6261/* end confdefs.h. */ 6262#include <sys/types.h> 6263 /* Check that off_t can represent 2**63 - 1 correctly. 6264 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6265 since some C++ compilers masquerading as C compilers 6266 incorrectly reject 9223372036854775807. */ 6267#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6269 && LARGE_OFF_T % 2147483647 == 1) 6270 ? 1 : -1]; 6271int 6272main () 6273{ 6274 6275 ; 6276 return 0; 6277} 6278_ACEOF 6279if ac_fn_cxx_try_compile "$LINENO"; then : 6280 ac_cv_sys_large_files=no; break 6281fi 6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285#define _LARGE_FILES 1 6286#include <sys/types.h> 6287 /* Check that off_t can represent 2**63 - 1 correctly. 6288 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6289 since some C++ compilers masquerading as C compilers 6290 incorrectly reject 9223372036854775807. */ 6291#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6293 && LARGE_OFF_T % 2147483647 == 1) 6294 ? 1 : -1]; 6295int 6296main () 6297{ 6298 6299 ; 6300 return 0; 6301} 6302_ACEOF 6303if ac_fn_cxx_try_compile "$LINENO"; then : 6304 ac_cv_sys_large_files=1; break 6305fi 6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6307 ac_cv_sys_large_files=unknown 6308 break 6309done 6310fi 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6312$as_echo "$ac_cv_sys_large_files" >&6; } 6313case $ac_cv_sys_large_files in #( 6314 no | unknown) ;; 6315 *) 6316cat >>confdefs.h <<_ACEOF 6317#define _LARGE_FILES $ac_cv_sys_large_files 6318_ACEOF 6319;; 6320esac 6321rm -rf conftest* 6322 fi 6323 6324 6325fi 6326 6327# The cast to long int works around a bug in the HP C Compiler 6328# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6329# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6330# This bug is HP SR number 8606223364. 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5 6332$as_echo_n "checking size of ino_t... " >&6; } 6333if ${ac_cv_sizeof_ino_t+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then : 6337 6338else 6339 if test "$ac_cv_type_ino_t" = yes; then 6340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6342as_fn_error 77 "cannot compute sizeof (ino_t) 6343See \`config.log' for more details" "$LINENO" 5; } 6344 else 6345 ac_cv_sizeof_ino_t=0 6346 fi 6347fi 6348 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5 6351$as_echo "$ac_cv_sizeof_ino_t" >&6; } 6352 6353 6354 6355cat >>confdefs.h <<_ACEOF 6356#define SIZEOF_INO_T $ac_cv_sizeof_ino_t 6357_ACEOF 6358 6359 6360# The cast to long int works around a bug in the HP C Compiler 6361# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6362# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6363# This bug is HP SR number 8606223364. 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5 6365$as_echo_n "checking size of dev_t... " >&6; } 6366if ${ac_cv_sizeof_dev_t+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then : 6370 6371else 6372 if test "$ac_cv_type_dev_t" = yes; then 6373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6375as_fn_error 77 "cannot compute sizeof (dev_t) 6376See \`config.log' for more details" "$LINENO" 5; } 6377 else 6378 ac_cv_sizeof_dev_t=0 6379 fi 6380fi 6381 6382fi 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5 6384$as_echo "$ac_cv_sizeof_dev_t" >&6; } 6385 6386 6387 6388cat >>confdefs.h <<_ACEOF 6389#define SIZEOF_DEV_T $ac_cv_sizeof_dev_t 6390_ACEOF 6391 6392 6393 6394# Select the right stat being able to handle 64bit inodes, if needed. 6395if test "$enable_largefile" != no; then 6396 case "$host, $build" in 6397 *-*-aix*,*|*,*-*-aix*) 6398 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then 6399 6400$as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h 6401 6402 fi;; 6403 esac 6404fi 6405 6406 6407# sizeof(char) is 1 by definition. 6408# The cast to long int works around a bug in the HP C Compiler 6409# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6410# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6411# This bug is HP SR number 8606223364. 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6413$as_echo_n "checking size of void *... " >&6; } 6414if ${ac_cv_sizeof_void_p+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 6418 6419else 6420 if test "$ac_cv_type_void_p" = yes; then 6421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6423as_fn_error 77 "cannot compute sizeof (void *) 6424See \`config.log' for more details" "$LINENO" 5; } 6425 else 6426 ac_cv_sizeof_void_p=0 6427 fi 6428fi 6429 6430fi 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6432$as_echo "$ac_cv_sizeof_void_p" >&6; } 6433 6434 6435 6436cat >>confdefs.h <<_ACEOF 6437#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 6438_ACEOF 6439 6440 6441# The cast to long int works around a bug in the HP C Compiler 6442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6444# This bug is HP SR number 8606223364. 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 6446$as_echo_n "checking size of short... " >&6; } 6447if ${ac_cv_sizeof_short+:} false; then : 6448 $as_echo_n "(cached) " >&6 6449else 6450 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 6451 6452else 6453 if test "$ac_cv_type_short" = yes; then 6454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6456as_fn_error 77 "cannot compute sizeof (short) 6457See \`config.log' for more details" "$LINENO" 5; } 6458 else 6459 ac_cv_sizeof_short=0 6460 fi 6461fi 6462 6463fi 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 6465$as_echo "$ac_cv_sizeof_short" >&6; } 6466 6467 6468 6469cat >>confdefs.h <<_ACEOF 6470#define SIZEOF_SHORT $ac_cv_sizeof_short 6471_ACEOF 6472 6473 6474# The cast to long int works around a bug in the HP C Compiler 6475# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6476# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6477# This bug is HP SR number 8606223364. 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6479$as_echo_n "checking size of int... " >&6; } 6480if ${ac_cv_sizeof_int+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6484 6485else 6486 if test "$ac_cv_type_int" = yes; then 6487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6489as_fn_error 77 "cannot compute sizeof (int) 6490See \`config.log' for more details" "$LINENO" 5; } 6491 else 6492 ac_cv_sizeof_int=0 6493 fi 6494fi 6495 6496fi 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6498$as_echo "$ac_cv_sizeof_int" >&6; } 6499 6500 6501 6502cat >>confdefs.h <<_ACEOF 6503#define SIZEOF_INT $ac_cv_sizeof_int 6504_ACEOF 6505 6506 6507# The cast to long int works around a bug in the HP C Compiler 6508# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6509# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6510# This bug is HP SR number 8606223364. 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6512$as_echo_n "checking size of long... " >&6; } 6513if ${ac_cv_sizeof_long+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6517 6518else 6519 if test "$ac_cv_type_long" = yes; then 6520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6522as_fn_error 77 "cannot compute sizeof (long) 6523See \`config.log' for more details" "$LINENO" 5; } 6524 else 6525 ac_cv_sizeof_long=0 6526 fi 6527fi 6528 6529fi 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6531$as_echo "$ac_cv_sizeof_long" >&6; } 6532 6533 6534 6535cat >>confdefs.h <<_ACEOF 6536#define SIZEOF_LONG $ac_cv_sizeof_long 6537_ACEOF 6538 6539 6540ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 6541if test "x$ac_cv_type_long_long" = xyes; then : 6542 6543cat >>confdefs.h <<_ACEOF 6544#define HAVE_LONG_LONG 1 6545_ACEOF 6546 6547# The cast to long int works around a bug in the HP C Compiler 6548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6550# This bug is HP SR number 8606223364. 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 6552$as_echo_n "checking size of long long... " >&6; } 6553if ${ac_cv_sizeof_long_long+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 6557 6558else 6559 if test "$ac_cv_type_long_long" = yes; then 6560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6562as_fn_error 77 "cannot compute sizeof (long long) 6563See \`config.log' for more details" "$LINENO" 5; } 6564 else 6565 ac_cv_sizeof_long_long=0 6566 fi 6567fi 6568 6569fi 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 6571$as_echo "$ac_cv_sizeof_long_long" >&6; } 6572 6573 6574 6575cat >>confdefs.h <<_ACEOF 6576#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6577_ACEOF 6578 6579 6580fi 6581 6582ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 6583case $ac_cv_c_int8_t in #( 6584 no|yes) ;; #( 6585 *) 6586 6587cat >>confdefs.h <<_ACEOF 6588#define int8_t $ac_cv_c_int8_t 6589_ACEOF 6590;; 6591esac 6592 6593ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 6594case $ac_cv_c_int16_t in #( 6595 no|yes) ;; #( 6596 *) 6597 6598cat >>confdefs.h <<_ACEOF 6599#define int16_t $ac_cv_c_int16_t 6600_ACEOF 6601;; 6602esac 6603 6604ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 6605case $ac_cv_c_int32_t in #( 6606 no|yes) ;; #( 6607 *) 6608 6609cat >>confdefs.h <<_ACEOF 6610#define int32_t $ac_cv_c_int32_t 6611_ACEOF 6612;; 6613esac 6614 6615ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 6616case $ac_cv_c_int64_t in #( 6617 no|yes) ;; #( 6618 *) 6619 6620cat >>confdefs.h <<_ACEOF 6621#define int64_t $ac_cv_c_int64_t 6622_ACEOF 6623;; 6624esac 6625 6626 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 6628$as_echo_n "checking for unsigned long long int... " >&6; } 6629if ${ac_cv_type_unsigned_long_long_int+:} false; then : 6630 $as_echo_n "(cached) " >&6 6631else 6632 ac_cv_type_unsigned_long_long_int=yes 6633 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6635/* end confdefs.h. */ 6636 6637 /* For now, do not test the preprocessor; as of 2007 there are too many 6638 implementations with broken preprocessors. Perhaps this can 6639 be revisited in 2012. In the meantime, code should not expect 6640 #if to work with literals wider than 32 bits. */ 6641 /* Test literals. */ 6642 long long int ll = 9223372036854775807ll; 6643 long long int nll = -9223372036854775807LL; 6644 unsigned long long int ull = 18446744073709551615ULL; 6645 /* Test constant expressions. */ 6646 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 6647 ? 1 : -1)]; 6648 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 6649 ? 1 : -1)]; 6650 int i = 63; 6651int 6652main () 6653{ 6654/* Test availability of runtime routines for shift and division. */ 6655 long long int llmax = 9223372036854775807ll; 6656 unsigned long long int ullmax = 18446744073709551615ull; 6657 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 6658 | (llmax / ll) | (llmax % ll) 6659 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 6660 | (ullmax / ull) | (ullmax % ull)); 6661 ; 6662 return 0; 6663} 6664 6665_ACEOF 6666if ac_fn_cxx_try_link "$LINENO"; then : 6667 6668else 6669 ac_cv_type_unsigned_long_long_int=no 6670fi 6671rm -f core conftest.err conftest.$ac_objext \ 6672 conftest$ac_exeext conftest.$ac_ext 6673 fi 6674fi 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 6676$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 6677 if test $ac_cv_type_unsigned_long_long_int = yes; then 6678 6679$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 6680 6681 fi 6682 6683 6684 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 6686$as_echo_n "checking for long long int... " >&6; } 6687if ${ac_cv_type_long_long_int+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 ac_cv_type_long_long_int=yes 6691 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6692 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 6693 if test $ac_cv_type_long_long_int = yes; then 6694 if test "$cross_compiling" = yes; then : 6695 : 6696else 6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6698/* end confdefs.h. */ 6699#include <limits.h> 6700 #ifndef LLONG_MAX 6701 # define HALF \ 6702 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 6703 # define LLONG_MAX (HALF - 1 + HALF) 6704 #endif 6705int 6706main () 6707{ 6708long long int n = 1; 6709 int i; 6710 for (i = 0; ; i++) 6711 { 6712 long long int m = n << i; 6713 if (m >> i != n) 6714 return 1; 6715 if (LLONG_MAX / 2 < m) 6716 break; 6717 } 6718 return 0; 6719 ; 6720 return 0; 6721} 6722_ACEOF 6723if ac_fn_cxx_try_run "$LINENO"; then : 6724 6725else 6726 ac_cv_type_long_long_int=no 6727fi 6728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6729 conftest.$ac_objext conftest.beam conftest.$ac_ext 6730fi 6731 6732 fi 6733 fi 6734fi 6735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 6736$as_echo "$ac_cv_type_long_long_int" >&6; } 6737 if test $ac_cv_type_long_long_int = yes; then 6738 6739$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 6740 6741 fi 6742 6743 6744 6745 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 6746if test "x$ac_cv_type_intmax_t" = xyes; then : 6747 6748$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 6749 6750else 6751 test $ac_cv_type_long_long_int = yes \ 6752 && ac_type='long long int' \ 6753 || ac_type='long int' 6754 6755cat >>confdefs.h <<_ACEOF 6756#define intmax_t $ac_type 6757_ACEOF 6758 6759fi 6760 6761 6762 6763 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 6764if test "x$ac_cv_type_intptr_t" = xyes; then : 6765 6766$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 6767 6768else 6769 for ac_type in 'int' 'long int' 'long long int'; do 6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6771/* end confdefs.h. */ 6772$ac_includes_default 6773int 6774main () 6775{ 6776static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6777test_array [0] = 0; 6778return test_array [0]; 6779 6780 ; 6781 return 0; 6782} 6783_ACEOF 6784if ac_fn_cxx_try_compile "$LINENO"; then : 6785 6786cat >>confdefs.h <<_ACEOF 6787#define intptr_t $ac_type 6788_ACEOF 6789 6790 ac_type= 6791fi 6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6793 test -z "$ac_type" && break 6794 done 6795fi 6796 6797 6798ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 6799case $ac_cv_c_uint8_t in #( 6800 no|yes) ;; #( 6801 *) 6802 6803$as_echo "#define _UINT8_T 1" >>confdefs.h 6804 6805 6806cat >>confdefs.h <<_ACEOF 6807#define uint8_t $ac_cv_c_uint8_t 6808_ACEOF 6809;; 6810 esac 6811 6812ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 6813case $ac_cv_c_uint16_t in #( 6814 no|yes) ;; #( 6815 *) 6816 6817 6818cat >>confdefs.h <<_ACEOF 6819#define uint16_t $ac_cv_c_uint16_t 6820_ACEOF 6821;; 6822 esac 6823 6824ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 6825case $ac_cv_c_uint32_t in #( 6826 no|yes) ;; #( 6827 *) 6828 6829$as_echo "#define _UINT32_T 1" >>confdefs.h 6830 6831 6832cat >>confdefs.h <<_ACEOF 6833#define uint32_t $ac_cv_c_uint32_t 6834_ACEOF 6835;; 6836 esac 6837 6838ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 6839case $ac_cv_c_uint64_t in #( 6840 no|yes) ;; #( 6841 *) 6842 6843$as_echo "#define _UINT64_T 1" >>confdefs.h 6844 6845 6846cat >>confdefs.h <<_ACEOF 6847#define uint64_t $ac_cv_c_uint64_t 6848_ACEOF 6849;; 6850 esac 6851 6852 6853 6854 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 6855if test "x$ac_cv_type_uintmax_t" = xyes; then : 6856 6857$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 6858 6859else 6860 test $ac_cv_type_unsigned_long_long_int = yes \ 6861 && ac_type='unsigned long long int' \ 6862 || ac_type='unsigned long int' 6863 6864cat >>confdefs.h <<_ACEOF 6865#define uintmax_t $ac_type 6866_ACEOF 6867 6868fi 6869 6870 6871 6872 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 6873if test "x$ac_cv_type_uintptr_t" = xyes; then : 6874 6875$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 6876 6877else 6878 for ac_type in 'unsigned int' 'unsigned long int' \ 6879 'unsigned long long int'; do 6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6881/* end confdefs.h. */ 6882$ac_includes_default 6883int 6884main () 6885{ 6886static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6887test_array [0] = 0; 6888return test_array [0]; 6889 6890 ; 6891 return 0; 6892} 6893_ACEOF 6894if ac_fn_cxx_try_compile "$LINENO"; then : 6895 6896cat >>confdefs.h <<_ACEOF 6897#define uintptr_t $ac_type 6898_ACEOF 6899 6900 ac_type= 6901fi 6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6903 test -z "$ac_type" && break 6904 done 6905fi 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then 6921 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5 6922fi 6923 6924# check what underlying integer type int64_t uses 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5 6926$as_echo_n "checking for int64_t underlying type... " >&6; } 6927if ${ac_cv_int64_t_type+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 6931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933 6934#ifdef HAVE_STDINT_H 6935#include <stdint.h> 6936#endif 6937template <typename T> struct X { }; 6938template <> 6939struct X<long> { typedef long t; }; 6940 6941int 6942main () 6943{ 6944X<int64_t>::t x; 6945 ; 6946 return 0; 6947} 6948_ACEOF 6949if ac_fn_cxx_try_compile "$LINENO"; then : 6950 ac_cv_int64_t_type=long 6951else 6952 ac_cv_int64_t_type="long long" 6953fi 6954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6955fi 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5 6957$as_echo "$ac_cv_int64_t_type" >&6; } 6958if test "$ac_cv_int64_t_type" = "long"; then 6959 6960$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h 6961 6962else 6963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6964/* end confdefs.h. */ 6965 6966#ifdef HAVE_STDINT_H 6967#include <stdint.h> 6968#endif 6969template <typename T> struct X { }; 6970template <> 6971struct X<long long> { typedef long long t; }; 6972 6973int 6974main () 6975{ 6976X<int64_t>::t x; 6977 ; 6978 return 0; 6979} 6980_ACEOF 6981if ac_fn_cxx_try_compile "$LINENO"; then : 6982 6983else 6984 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5 6985fi 6986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6987fi 6988 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5 6990$as_echo_n "checking for std::swap in <utility>... " >&6; } 6991if ${ac_cv_std_swap_in_utility+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 6995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997 6998#include <utility> 6999 7000int 7001main () 7002{ 7003int a, b; std::swap(a,b); 7004 ; 7005 return 0; 7006} 7007_ACEOF 7008if ac_fn_cxx_try_compile "$LINENO"; then : 7009 ac_cv_std_swap_in_utility=yes 7010else 7011 ac_cv_std_swap_in_utility=no 7012fi 7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7014fi 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5 7016$as_echo "$ac_cv_std_swap_in_utility" >&6; } 7017if test $ac_cv_std_swap_in_utility = yes; then 7018 7019$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h 7020 7021fi 7022 7023# Check whether compiler is affected by placement new aliasing bug (PR 29286). 7024# If the host compiler is affected by the bug, and we build with optimization 7025# enabled (which happens e.g. when cross-compiling), the pool allocator may 7026# get miscompiled. Use -fno-strict-aliasing to work around this problem. 7027# Since there is no reliable feature check for the presence of this bug, 7028# we simply use a GCC version number check. (This should never trigger for 7029# stages 2 or 3 of a native bootstrap.) 7030aliasing_flags= 7031if test "$GCC" = yes; then 7032 saved_CXXFLAGS="$CXXFLAGS" 7033 7034 # The following test compilation will succeed if and only if $CXX accepts 7035 # -fno-strict-aliasing *and* is older than GCC 4.3. 7036 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5 7038$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; } 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041 7042#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) 7043#error compiler not affected by placement new aliasing bug 7044#endif 7045 7046_ACEOF 7047if ac_fn_cxx_try_compile "$LINENO"; then : 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7049$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing' 7050else 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7052$as_echo "no" >&6; } 7053fi 7054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7055 7056 CXXFLAGS="$saved_CXXFLAGS" 7057fi 7058 7059 7060 7061 7062# --------------------- 7063# Warnings and checking 7064# --------------------- 7065 7066# Check $CC warning features (if it's GCC). 7067# We want to use -pedantic, but we don't want warnings about 7068# * 'long long' 7069# * variadic macros 7070# * overlong strings 7071# * C++11 narrowing conversions in { } 7072# So, we only use -pedantic if we can disable those warnings. 7073 7074# In stage 1, disable -Wformat warnings from old GCCs about new % codes 7075# Check whether --enable-build-format-warnings was given. 7076if test "${enable_build_format_warnings+set}" = set; then : 7077 enableval=$enable_build_format_warnings; 7078else 7079 enable_build_format_warnings=yes 7080fi 7081 7082if test $enable_build_format_warnings = no; then : 7083 wf_opt=-Wno-format 7084else 7085 wf_opt= 7086fi 7087ac_ext=cpp 7088ac_cpp='$CXXCPP $CPPFLAGS' 7089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7092 7093loose_warn= 7094save_CXXFLAGS="$CXXFLAGS" 7095for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do 7096 # Do the check with the no- prefix removed since gcc silently 7097 # accepts any -Wno-* option on purpose 7098 case $real_option in 7099 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7100 *) option=$real_option ;; 7101 esac 7102 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7103 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 7105$as_echo_n "checking whether $CXX supports $option... " >&6; } 7106if eval \${$as_acx_Woption+:} false; then : 7107 $as_echo_n "(cached) " >&6 7108else 7109 CXXFLAGS="$option" 7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7111/* end confdefs.h. */ 7112 7113int 7114main () 7115{ 7116 7117 ; 7118 return 0; 7119} 7120_ACEOF 7121if ac_fn_cxx_try_compile "$LINENO"; then : 7122 eval "$as_acx_Woption=yes" 7123else 7124 eval "$as_acx_Woption=no" 7125fi 7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7127 7128fi 7129eval ac_res=\$$as_acx_Woption 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7131$as_echo "$ac_res" >&6; } 7132 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7133 loose_warn="$loose_warn${loose_warn:+ }$real_option" 7134fi 7135 done 7136CXXFLAGS="$save_CXXFLAGS" 7137ac_ext=cpp 7138ac_cpp='$CXXCPP $CPPFLAGS' 7139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7142 7143 7144 7145ac_ext=c 7146ac_cpp='$CPP $CPPFLAGS' 7147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7149ac_compiler_gnu=$ac_cv_c_compiler_gnu 7150 7151c_loose_warn= 7152save_CFLAGS="$CFLAGS" 7153for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do 7154 # Do the check with the no- prefix removed since gcc silently 7155 # accepts any -Wno-* option on purpose 7156 case $real_option in 7157 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7158 *) option=$real_option ;; 7159 esac 7160 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7161 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7163$as_echo_n "checking whether $CC supports $option... " >&6; } 7164if eval \${$as_acx_Woption+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 CFLAGS="$option" 7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169/* end confdefs.h. */ 7170 7171int 7172main () 7173{ 7174 7175 ; 7176 return 0; 7177} 7178_ACEOF 7179if ac_fn_c_try_compile "$LINENO"; then : 7180 eval "$as_acx_Woption=yes" 7181else 7182 eval "$as_acx_Woption=no" 7183fi 7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7185 7186fi 7187eval ac_res=\$$as_acx_Woption 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7189$as_echo "$ac_res" >&6; } 7190 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7191 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option" 7192fi 7193 done 7194CFLAGS="$save_CFLAGS" 7195ac_ext=cpp 7196ac_cpp='$CXXCPP $CPPFLAGS' 7197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7200 7201 7202ac_ext=cpp 7203ac_cpp='$CXXCPP $CPPFLAGS' 7204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7207 7208strict_warn= 7209save_CXXFLAGS="$CXXFLAGS" 7210for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do 7211 # Do the check with the no- prefix removed since gcc silently 7212 # accepts any -Wno-* option on purpose 7213 case $real_option in 7214 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7215 *) option=$real_option ;; 7216 esac 7217 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7218 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 7220$as_echo_n "checking whether $CXX supports $option... " >&6; } 7221if eval \${$as_acx_Woption+:} false; then : 7222 $as_echo_n "(cached) " >&6 7223else 7224 CXXFLAGS="$option" 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7226/* end confdefs.h. */ 7227 7228int 7229main () 7230{ 7231 7232 ; 7233 return 0; 7234} 7235_ACEOF 7236if ac_fn_cxx_try_compile "$LINENO"; then : 7237 eval "$as_acx_Woption=yes" 7238else 7239 eval "$as_acx_Woption=no" 7240fi 7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7242 7243fi 7244eval ac_res=\$$as_acx_Woption 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7246$as_echo "$ac_res" >&6; } 7247 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7248 strict_warn="$strict_warn${strict_warn:+ }$real_option" 7249fi 7250 done 7251CXXFLAGS="$save_CXXFLAGS" 7252ac_ext=cpp 7253ac_cpp='$CXXCPP $CPPFLAGS' 7254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7257 7258 7259ac_ext=c 7260ac_cpp='$CPP $CPPFLAGS' 7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7263ac_compiler_gnu=$ac_cv_c_compiler_gnu 7264 7265c_strict_warn= 7266save_CFLAGS="$CFLAGS" 7267for real_option in -Wold-style-definition -Wc++-compat; do 7268 # Do the check with the no- prefix removed since gcc silently 7269 # accepts any -Wno-* option on purpose 7270 case $real_option in 7271 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7272 *) option=$real_option ;; 7273 esac 7274 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7275 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7277$as_echo_n "checking whether $CC supports $option... " >&6; } 7278if eval \${$as_acx_Woption+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 CFLAGS="$option" 7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7283/* end confdefs.h. */ 7284 7285int 7286main () 7287{ 7288 7289 ; 7290 return 0; 7291} 7292_ACEOF 7293if ac_fn_c_try_compile "$LINENO"; then : 7294 eval "$as_acx_Woption=yes" 7295else 7296 eval "$as_acx_Woption=no" 7297fi 7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7299 7300fi 7301eval ac_res=\$$as_acx_Woption 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7303$as_echo "$ac_res" >&6; } 7304 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7305 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option" 7306fi 7307 done 7308CFLAGS="$save_CFLAGS" 7309ac_ext=cpp 7310ac_cpp='$CXXCPP $CPPFLAGS' 7311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7314 7315 7316ac_ext=cpp 7317ac_cpp='$CXXCPP $CPPFLAGS' 7318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7321 7322# Do the check with the no- prefix removed from the warning options 7323# since gcc silently accepts any -Wno-* option on purpose 7324if test "$GXX" = yes; then : 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5 7326$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; } 7327if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 save_CXXFLAGS="$CXXFLAGS" 7331CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" 7332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334 7335int 7336main () 7337{ 7338 7339 ; 7340 return 0; 7341} 7342_ACEOF 7343if ac_fn_cxx_try_compile "$LINENO"; then : 7344 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes 7345else 7346 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7349CXXFLAGS="$save_CXXFLAGS" 7350fi 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5 7352$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; } 7353if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then : 7354 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" 7355fi 7356 7357fi 7358ac_ext=cpp 7359ac_cpp='$CXXCPP $CPPFLAGS' 7360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7363 7364 7365ac_ext=cpp 7366ac_cpp='$CXXCPP $CPPFLAGS' 7367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7370 7371# Check whether --enable-werror-always was given. 7372if test "${enable_werror_always+set}" = set; then : 7373 enableval=$enable_werror_always; 7374else 7375 enable_werror_always=no 7376fi 7377 7378if test $enable_werror_always = yes; then : 7379 strict_warn="$strict_warn${strict_warn:+ }-Werror" 7380fi 7381 7382ac_ext=cpp 7383ac_cpp='$CXXCPP $CPPFLAGS' 7384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7387 7388 7389 7390# The above macros do nothing if the compiler is not GCC. However, the 7391# Makefile has more goo to add other flags, so these variables are used 7392# to enable warnings only for GCC. 7393warn_cflags= 7394warn_cxxflags= 7395if test "x$GCC" = "xyes"; then 7396 warn_cflags='$(GCC_WARN_CFLAGS)' 7397 warn_cxxflags='$(GCC_WARN_CXXFLAGS)' 7398fi 7399 7400 7401 7402# Disable exceptions and RTTI if building with g++ 7403ac_ext=c 7404ac_cpp='$CPP $CPPFLAGS' 7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7407ac_compiler_gnu=$ac_cv_c_compiler_gnu 7408 7409noexception_flags= 7410save_CFLAGS="$CFLAGS" 7411for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do 7412 # Do the check with the no- prefix removed since gcc silently 7413 # accepts any -Wno-* option on purpose 7414 case $real_option in 7415 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7416 *) option=$real_option ;; 7417 esac 7418 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7419 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7421$as_echo_n "checking whether $CC supports $option... " >&6; } 7422if eval \${$as_acx_Woption+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 CFLAGS="$option" 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7427/* end confdefs.h. */ 7428 7429int 7430main () 7431{ 7432 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437if ac_fn_c_try_compile "$LINENO"; then : 7438 eval "$as_acx_Woption=yes" 7439else 7440 eval "$as_acx_Woption=no" 7441fi 7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7443 7444fi 7445eval ac_res=\$$as_acx_Woption 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7447$as_echo "$ac_res" >&6; } 7448 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7449 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option" 7450fi 7451 done 7452CFLAGS="$save_CFLAGS" 7453ac_ext=cpp 7454ac_cpp='$CXXCPP $CPPFLAGS' 7455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7458 7459 7460 7461# Enable expensive internal checks 7462is_release= 7463if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then 7464 is_release=yes 7465fi 7466 7467# Check whether --enable-checking was given. 7468if test "${enable_checking+set}" = set; then : 7469 enableval=$enable_checking; ac_checking_flags="${enableval}" 7470else 7471 7472# Determine the default checks. 7473if test x$is_release = x ; then 7474 ac_checking_flags=yes,extra 7475else 7476 ac_checking_flags=release 7477fi 7478fi 7479 7480IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 7481for check in release $ac_checking_flags 7482do 7483 case $check in 7484 # these set all the flags to specific states 7485 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ; 7486 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ; 7487 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ; 7488 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 7489 ac_tree_checking=1 ; ac_valgrind_checking= ; 7490 ac_types_checking=1 ;; 7491 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ; 7492 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ; 7493 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ; 7494 ac_rtlflag_checking= ; ac_runtime_checking= ; 7495 ac_tree_checking= ; ac_valgrind_checking= ; 7496 ac_types_checking= ;; 7497 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ; 7498 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ; 7499 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ; 7500 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 7501 ac_tree_checking=1 ; ac_valgrind_checking= ; 7502 ac_types_checking=1 ;; 7503 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ; 7504 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ; 7505 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ; 7506 ac_rtlflag_checking= ; ac_runtime_checking=1 ; 7507 ac_tree_checking= ; ac_valgrind_checking= ; 7508 ac_types_checking= ;; 7509 # these enable particular checks 7510 assert) ac_assert_checking=1 ;; 7511 df) ac_df_checking=1 ;; 7512 extra) ac_extra_checking=1 ;; 7513 fold) ac_fold_checking=1 ;; 7514 gc) ac_gc_checking=1 ;; 7515 gcac) ac_gc_always_collect=1 ;; 7516 gimple) ac_gimple_checking=1 ;; 7517 misc) ac_checking=1 ;; 7518 rtl) ac_rtl_checking=1 ;; 7519 rtlflag) ac_rtlflag_checking=1 ;; 7520 runtime) ac_runtime_checking=1 ;; 7521 tree) ac_tree_checking=1 ;; 7522 types) ac_types_checking=1 ;; 7523 valgrind) ac_valgrind_checking=1 ;; 7524 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;; 7525 esac 7526done 7527IFS="$ac_save_IFS" 7528 7529nocommon_flag="" 7530if test x$ac_checking != x ; then 7531 7532$as_echo "#define CHECKING_P 1" >>confdefs.h 7533 7534 nocommon_flag=-fno-common 7535else 7536 $as_echo "#define CHECKING_P 0" >>confdefs.h 7537 7538fi 7539 7540if test x$ac_extra_checking != x ; then 7541 7542$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h 7543 7544else 7545 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h 7546 7547fi 7548if test x$ac_df_checking != x ; then 7549 7550$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h 7551 7552fi 7553if test x$ac_assert_checking != x ; then 7554 7555$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h 7556 7557fi 7558if test x$ac_gimple_checking != x ; then 7559 7560$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h 7561 7562fi 7563 7564if test x$ac_runtime_checking != x ; then 7565 7566$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h 7567 7568fi 7569if test x$ac_tree_checking != x ; then 7570 7571$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h 7572 7573 TREECHECKING=yes 7574fi 7575if test x$ac_types_checking != x ; then 7576 7577$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h 7578 7579fi 7580 7581if test x$ac_rtl_checking != x ; then 7582 7583$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h 7584 7585fi 7586if test x$ac_rtlflag_checking != x ; then 7587 7588$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h 7589 7590fi 7591if test x$ac_gc_checking != x ; then 7592 7593$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h 7594 7595fi 7596if test x$ac_gc_always_collect != x ; then 7597 7598$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h 7599 7600fi 7601if test x$ac_fold_checking != x ; then 7602 7603$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h 7604 7605fi 7606valgrind_path_defines= 7607valgrind_command= 7608 7609ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default" 7610if test "x$ac_cv_header_valgrind_h" = xyes; then : 7611 have_valgrind_h=yes 7612else 7613 have_valgrind_h=no 7614fi 7615 7616 7617 7618# It is certainly possible that there's valgrind but no valgrind.h. 7619# GCC relies on making annotations so we must have both. 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5 7621$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; } 7622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7623/* end confdefs.h. */ 7624#include <valgrind/memcheck.h> 7625#ifndef VALGRIND_DISCARD 7626#error VALGRIND_DISCARD not defined 7627#endif 7628_ACEOF 7629if ac_fn_cxx_try_cpp "$LINENO"; then : 7630 gcc_cv_header_valgrind_memcheck_h=yes 7631else 7632 gcc_cv_header_valgrind_memcheck_h=no 7633fi 7634rm -f conftest.err conftest.i conftest.$ac_ext 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5 7636$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; } 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5 7638$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; } 7639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641#include <memcheck.h> 7642#ifndef VALGRIND_DISCARD 7643#error VALGRIND_DISCARD not defined 7644#endif 7645_ACEOF 7646if ac_fn_cxx_try_cpp "$LINENO"; then : 7647 gcc_cv_header_memcheck_h=yes 7648else 7649 gcc_cv_header_memcheck_h=no 7650fi 7651rm -f conftest.err conftest.i conftest.$ac_ext 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5 7653$as_echo "$gcc_cv_header_memcheck_h" >&6; } 7654if test $gcc_cv_header_valgrind_memcheck_h = yes; then 7655 7656$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h 7657 7658fi 7659if test $gcc_cv_header_memcheck_h = yes; then 7660 7661$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h 7662 7663fi 7664 7665if test x$ac_valgrind_checking != x ; then 7666 7667# Prepare PATH_SEPARATOR. 7668# The user is always right. 7669if test "${PATH_SEPARATOR+set}" != set; then 7670 echo "#! /bin/sh" >conf$$.sh 7671 echo "exit 0" >>conf$$.sh 7672 chmod +x conf$$.sh 7673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7674 PATH_SEPARATOR=';' 7675 else 7676 PATH_SEPARATOR=: 7677 fi 7678 rm -f conf$$.sh 7679fi 7680 7681# Find out how to test for executable files. Don't use a zero-byte file, 7682# as systems may use methods other than mode bits to determine executability. 7683cat >conf$$.file <<_ASEOF 7684#! /bin/sh 7685exit 0 7686_ASEOF 7687chmod +x conf$$.file 7688if test -x conf$$.file >/dev/null 2>&1; then 7689 ac_executable_p="test -x" 7690else 7691 ac_executable_p="test -f" 7692fi 7693rm -f conf$$.file 7694 7695# Extract the first word of "valgrind", so it can be a program name with args. 7696set dummy valgrind; ac_word=$2 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7698$as_echo_n "checking for $ac_word... " >&6; } 7699if ${ac_cv_path_valgrind_path+:} false; then : 7700 $as_echo_n "(cached) " >&6 7701else 7702 case "$valgrind_path" in 7703 [\\/]* | ?:[\\/]*) 7704 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path. 7705 ;; 7706 *) 7707 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7708 for ac_dir in $PATH; do 7709 IFS="$ac_save_IFS" 7710 test -z "$ac_dir" && ac_dir=. 7711 for ac_exec_ext in '' $ac_executable_extensions; do 7712 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7713 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then 7714 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext" 7715 break 2 7716 fi 7717 fi 7718 done 7719 done 7720 IFS="$ac_save_IFS" 7721 ;; 7722esac 7723fi 7724valgrind_path="$ac_cv_path_valgrind_path" 7725if test -n "$valgrind_path"; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5 7727$as_echo "$valgrind_path" >&6; } 7728else 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7730$as_echo "no" >&6; } 7731fi 7732 7733 if test "x$valgrind_path" = "x" \ 7734 || (test $have_valgrind_h = no \ 7735 && test $gcc_cv_header_memcheck_h = no \ 7736 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7737 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7738 fi 7739 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"' 7740 valgrind_command="$valgrind_path -q" 7741 7742$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h 7743 7744fi 7745 7746 7747 7748# Enable code coverage collection 7749# Check whether --enable-coverage was given. 7750if test "${enable_coverage+set}" = set; then : 7751 enableval=$enable_coverage; case "${enableval}" in 7752 yes|noopt) 7753 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions" 7754 ;; 7755 opt) 7756 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions" 7757 ;; 7758 no) 7759 # a.k.a. --disable-coverage 7760 coverage_flags="" 7761 ;; 7762 *) 7763 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5 7764 ;; 7765esac 7766else 7767 coverage_flags="" 7768fi 7769 7770 7771 7772# Check whether --enable-gather-detailed-mem-stats was given. 7773if test "${enable_gather_detailed_mem_stats+set}" = set; then : 7774 enableval=$enable_gather_detailed_mem_stats; 7775else 7776 enable_gather_detailed_mem_stats=no 7777fi 7778 7779gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi` 7780 7781cat >>confdefs.h <<_ACEOF 7782#define GATHER_STATISTICS $gather_stats 7783_ACEOF 7784 7785 7786# Check whether --enable-valgrind-annotations was given. 7787if test "${enable_valgrind_annotations+set}" = set; then : 7788 enableval=$enable_valgrind_annotations; 7789else 7790 enable_valgrind_annotations=no 7791fi 7792 7793if test x$enable_valgrind_annotations != xno \ 7794 || test x$ac_valgrind_checking != x; then 7795 if (test $have_valgrind_h = no \ 7796 && test $gcc_cv_header_memcheck_h = no \ 7797 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7798 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7799 fi 7800 7801$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h 7802 7803fi 7804 7805# ------------------------------- 7806# Miscenalleous configure options 7807# ------------------------------- 7808 7809# Determine whether or not multilibs are enabled. 7810# Check whether --enable-multilib was given. 7811if test "${enable_multilib+set}" = set; then : 7812 enableval=$enable_multilib; 7813else 7814 enable_multilib=yes 7815fi 7816 7817 7818 7819# Determine whether or not multiarch is enabled. 7820# Check whether --enable-multiarch was given. 7821if test "${enable_multiarch+set}" = set; then : 7822 enableval=$enable_multiarch; case "${enableval}" in 7823yes|no|auto) enable_multiarch=$enableval;; 7824*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;; 7825esac 7826else 7827 enable_multiarch=auto 7828fi 7829 7830if test x${enable_multiarch} = xauto; then 7831 if test x${with_native_system_header_dir} != x; then 7832 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)" 7833 enable_multiarch=no 7834 fi 7835 if test x$host != x$target && test "x$with_sysroot" = x; then 7836 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)" 7837 enable_multiarch=no 7838 fi 7839fi 7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5 7841$as_echo_n "checking for multiarch configuration... " >&6; } 7842 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5 7844$as_echo "$enable_multiarch$ma_msg_suffix" >&6; } 7845 7846# needed for setting the multiarch name for soft-float/hard-float ABIs 7847 7848 7849 7850# default stack clash protection guard size as power of twos in bytes. 7851# Please keep these in sync with params.def. 7852stk_clash_min=12 7853stk_clash_max=30 7854 7855# Keep the default value when the option is not used to 0, this allows us to 7856# distinguish between the cases where the user specifially set a value via 7857# configure and when the normal default value is used. 7858 7859# Check whether --with-stack-clash-protection-guard-size was given. 7860if test "${with_stack_clash_protection_guard_size+set}" = set; then : 7861 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size" 7862else 7863 DEFAULT_STK_CLASH_GUARD_SIZE=0 7864fi 7865 7866if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \ 7867 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \ 7868 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then 7869 as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5 7870fi 7871 7872 7873cat >>confdefs.h <<_ACEOF 7874#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE 7875_ACEOF 7876 7877 7878# Enable __cxa_atexit for C++. 7879# Check whether --enable-__cxa_atexit was given. 7880if test "${enable___cxa_atexit+set}" = set; then : 7881 enableval=$enable___cxa_atexit; 7882fi 7883 7884 7885# Enable C extension for decimal float if target supports it. 7886 7887# Check whether --enable-decimal-float was given. 7888if test "${enable_decimal_float+set}" = set; then : 7889 enableval=$enable_decimal_float; 7890 case $enable_decimal_float in 7891 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;; 7892 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float. 7893Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; 7894 esac 7895 7896else 7897 7898 case $target in 7899 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ 7900 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ 7901 i?86*-*-mingw* | x86_64*-*-mingw* | \ 7902 i?86*-*-cygwin* | x86_64*-*-cygwin*) 7903 enable_decimal_float=yes 7904 ;; 7905 *) 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5 7907$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;} 7908 enable_decimal_float=no 7909 ;; 7910 esac 7911 7912fi 7913 7914 7915# x86's use BID format instead of DPD 7916case x$enable_decimal_float in 7917 xyes) 7918 case $target in 7919 i?86*-*-* | x86_64*-*-*) 7920 enable_decimal_float=bid 7921 ;; 7922 *) 7923 enable_decimal_float=dpd 7924 ;; 7925 esac 7926 default_decimal_float=$enable_decimal_float 7927 ;; 7928 xno) 7929 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper 7930 # dependency on libdecnumber. 7931 default_decimal_float=dpd 7932 ;; 7933esac 7934 7935 7936 7937 7938dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi` 7939 7940cat >>confdefs.h <<_ACEOF 7941#define ENABLE_DECIMAL_FLOAT $dfp 7942_ACEOF 7943 7944 7945# Use default_decimal_float for dependency. 7946enable_decimal_float=$default_decimal_float 7947 7948bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi` 7949 7950cat >>confdefs.h <<_ACEOF 7951#define ENABLE_DECIMAL_BID_FORMAT $bid 7952_ACEOF 7953 7954 7955# Enable C extension for fixed-point arithmetic. 7956# Check whether --enable-fixed-point was given. 7957if test "${enable_fixed_point+set}" = set; then : 7958 enableval=$enable_fixed_point; 7959else 7960 7961 case $target in 7962 arm*) 7963 enable_fixed_point=yes 7964 ;; 7965 7966 mips*-*-*) 7967 enable_fixed_point=yes 7968 ;; 7969 loongarch*-*-*) 7970 enable_fixed_point=yes 7971 ;; 7972 *) 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5 7974$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;} 7975 enable_fixed_point=no 7976 ;; 7977 esac 7978 7979fi 7980 7981 7982 7983fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi` 7984 7985cat >>confdefs.h <<_ACEOF 7986#define ENABLE_FIXED_POINT $fixedpoint 7987_ACEOF 7988 7989 7990# Enable threads 7991# Pass with no value to take the default 7992# Pass with a value to specify a thread package 7993# Check whether --enable-threads was given. 7994if test "${enable_threads+set}" = set; then : 7995 enableval=$enable_threads; 7996else 7997 enable_threads='' 7998fi 7999 8000 8001# Check whether --enable-tls was given. 8002if test "${enable_tls+set}" = set; then : 8003 enableval=$enable_tls; 8004 case $enable_tls in 8005 yes | no) ;; 8006 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls. 8007Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 8008 esac 8009 8010else 8011 enable_tls='' 8012fi 8013 8014 8015# Check whether --enable-vtable-verify was given. 8016if test "${enable_vtable_verify+set}" = set; then : 8017 enableval=$enable_vtable_verify; 8018else 8019 enable_vtable_verify=no 8020fi 8021 8022vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi` 8023 8024cat >>confdefs.h <<_ACEOF 8025#define ENABLE_VTABLE_VERIFY $vtable_verify 8026_ACEOF 8027 8028 8029# Check whether --enable-analyzer was given. 8030if test "${enable_analyzer+set}" = set; then : 8031 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then 8032 analyzer=0 8033else 8034 analyzer=1 8035fi 8036else 8037 analyzer=1 8038fi 8039 8040 8041cat >>confdefs.h <<_ACEOF 8042#define ENABLE_ANALYZER $analyzer 8043_ACEOF 8044 8045 8046# Check whether --enable-objc-gc was given. 8047if test "${enable_objc_gc+set}" = set; then : 8048 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then 8049 objc_boehm_gc='' 8050else 8051 objc_boehm_gc=1 8052fi 8053else 8054 objc_boehm_gc='' 8055fi 8056 8057 8058 8059# Check whether --with-dwarf2 was given. 8060if test "${with_dwarf2+set}" = set; then : 8061 withval=$with_dwarf2; dwarf2="$with_dwarf2" 8062else 8063 dwarf2=no 8064fi 8065 8066 8067# Check whether --enable-shared was given. 8068if test "${enable_shared+set}" = set; then : 8069 enableval=$enable_shared; 8070 case $enable_shared in 8071 yes | no) ;; 8072 *) 8073 enable_shared=no 8074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 8075 for pkg in $enableval; do 8076 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then 8077 enable_shared=yes 8078 fi 8079 done 8080 IFS="$ac_save_ifs" 8081 ;; 8082 esac 8083 8084else 8085 enable_shared=yes 8086fi 8087 8088 8089 8090# Check whether --enable-gcov was given. 8091if test "${enable_gcov+set}" = set; then : 8092 enableval=$enable_gcov; 8093else 8094 case $target in 8095 bpf-*-*) 8096 enable_gcov=no 8097 ;; 8098 *) 8099 enable_gcov=yes 8100 ;; 8101 esac 8102fi 8103 8104 8105 8106 8107 8108# Check whether --with-specs was given. 8109if test "${with_specs+set}" = set; then : 8110 withval=$with_specs; CONFIGURE_SPECS=$withval 8111else 8112 CONFIGURE_SPECS= 8113 8114fi 8115 8116 8117 8118 8119 8120# Check whether --with-pkgversion was given. 8121if test "${with_pkgversion+set}" = set; then : 8122 withval=$with_pkgversion; case "$withval" in 8123 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; 8124 no) PKGVERSION= ;; 8125 *) PKGVERSION="($withval) " ;; 8126 esac 8127else 8128 PKGVERSION="(GCC) " 8129 8130fi 8131 8132 8133 8134 8135 8136# Check whether --with-bugurl was given. 8137if test "${with_bugurl+set}" = set; then : 8138 withval=$with_bugurl; case "$withval" in 8139 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 8140 no) BUGURL= 8141 ;; 8142 *) BUGURL="$withval" 8143 ;; 8144 esac 8145else 8146 BUGURL="https://gcc.gnu.org/bugs/" 8147 8148fi 8149 8150 case ${BUGURL} in 8151 "") 8152 REPORT_BUGS_TO= 8153 REPORT_BUGS_TEXI= 8154 ;; 8155 *) 8156 REPORT_BUGS_TO="<$BUGURL>" 8157 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 8158 ;; 8159 esac; 8160 8161 8162 8163 8164# Allow overriding the default URL for documentation 8165 8166# Check whether --with-documentation-root-url was given. 8167if test "${with_documentation_root_url+set}" = set; then : 8168 withval=$with_documentation_root_url; case "$withval" in 8169 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;; 8170 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;; 8171 */) DOCUMENTATION_ROOT_URL="$withval" ;; 8172 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;; 8173 esac 8174else 8175 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/" 8176 8177fi 8178 8179 8180cat >>confdefs.h <<_ACEOF 8181#define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL" 8182_ACEOF 8183 8184 8185# Allow overriding the default URL for GCC changes 8186 8187# Check whether --with-changes-root-url was given. 8188if test "${with_changes_root_url+set}" = set; then : 8189 withval=$with_changes_root_url; case "$withval" in 8190 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;; 8191 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;; 8192 */) CHANGES_ROOT_URL="$withval" ;; 8193 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;; 8194 esac 8195else 8196 CHANGES_ROOT_URL="https://gcc.gnu.org/" 8197 8198fi 8199 8200 8201cat >>confdefs.h <<_ACEOF 8202#define CHANGES_ROOT_URL "$CHANGES_ROOT_URL" 8203_ACEOF 8204 8205 8206# Sanity check enable_languages in case someone does not run the toplevel 8207# configure # script. 8208# Check whether --enable-languages was given. 8209if test "${enable_languages+set}" = set; then : 8210 enableval=$enable_languages; case ,${enable_languages}, in 8211 ,,|,yes,) 8212 # go safe -- we cannot be much sure without the toplevel 8213 # configure's 8214 # analysis of which target libs are present and usable 8215 enable_languages=c 8216 ;; 8217 *,all,*) 8218 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5 8219 ;; 8220 *,c,*) 8221 ;; 8222 *) 8223 enable_languages=c,${enable_languages} 8224 ;; 8225esac 8226else 8227 enable_languages=c 8228fi 8229 8230 8231# If top-level libada has been disabled, then wire in install-gnatlib 8232# invocation with `make install', so that one can build and install 8233# the library manually with `make -C gcc all gnatlib gnattools install'. 8234if test x"$enable_libada" = xno; then 8235 gnat_install_lib=gnat-install-lib 8236else 8237 gnat_install_lib= 8238fi 8239 8240 8241if test x"$enable_as_accelerator_for" != x; then 8242 8243$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h 8244 8245 enable_as_accelerator=yes 8246 case "${target}" in 8247 *-intelmicemul-*) 8248 # In this case we expect offload compiler to be built as native, so we 8249 # need to rename the driver to avoid clashes with host's drivers. 8250 program_transform_name="s&^&${target}-&" ;; 8251 esac 8252 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#" 8253 program_transform_name=`echo $program_transform_name | sed $sedscript` 8254 accel_dir_suffix=/accel/${target_noncanonical} 8255 real_target_noncanonical=${enable_as_accelerator_for} 8256fi 8257 8258 8259 8260 8261for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do 8262 tgt=`echo $tgt | sed 's/=.*//'` 8263 8264 enable_offloading=1 8265 case "$tgt" in 8266 *-intelmic-* | *-intelmicemul-*) 8267 omp_device_property=omp-device-properties-i386 8268 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device" 8269 ;; 8270 amdgcn*) 8271 omp_device_property=omp-device-properties-gcn 8272 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device" 8273 ;; 8274 nvptx*) 8275 omp_device_property=omp-device-properties-nvptx 8276 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device" 8277 ;; 8278 *) 8279 as_fn_error $? "unknown offload target specified" "$LINENO" 5 8280 ;; 8281 esac 8282 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}" 8283 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}" 8284 8285 if test x"$offload_targets" = x; then 8286 offload_targets=$tgt 8287 else 8288 offload_targets="$offload_targets,$tgt" 8289 fi 8290done 8291 8292 8293 8294 8295cat >>confdefs.h <<_ACEOF 8296#define OFFLOAD_TARGETS "$offload_targets" 8297_ACEOF 8298 8299if test x"$enable_offloading" != x; then 8300 8301$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h 8302 8303else 8304 8305$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h 8306 8307fi 8308 8309if test "x$enable_offload_defaulted" = xyes; then 8310 8311$as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h 8312 8313fi 8314 8315 8316# Check whether --with-multilib-list was given. 8317if test "${with_multilib_list+set}" = set; then : 8318 withval=$with_multilib_list; : 8319else 8320 with_multilib_list=default 8321fi 8322 8323 8324 8325# Check whether --with-multilib-generator was given. 8326if test "${with_multilib_generator+set}" = set; then : 8327 withval=$with_multilib_generator; : 8328else 8329 with_multilib_generator=default 8330fi 8331 8332 8333# ------------------------- 8334# Checks for other programs 8335# ------------------------- 8336 8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8338$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8339set x ${MAKE-make} 8340ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8341if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 8342 $as_echo_n "(cached) " >&6 8343else 8344 cat >conftest.make <<\_ACEOF 8345SHELL = /bin/sh 8346all: 8347 @echo '@@@%%%=$(MAKE)=@@@%%%' 8348_ACEOF 8349# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8350case `${MAKE-make} -f conftest.make 2>/dev/null` in 8351 *@@@%%%=?*=@@@%%%*) 8352 eval ac_cv_prog_make_${ac_make}_set=yes;; 8353 *) 8354 eval ac_cv_prog_make_${ac_make}_set=no;; 8355esac 8356rm -f conftest.make 8357fi 8358if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8360$as_echo "yes" >&6; } 8361 SET_MAKE= 8362else 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8364$as_echo "no" >&6; } 8365 SET_MAKE="MAKE=${MAKE-make}" 8366fi 8367 8368 8369# Find some useful tools 8370for ac_prog in gawk mawk nawk awk 8371do 8372 # Extract the first word of "$ac_prog", so it can be a program name with args. 8373set dummy $ac_prog; ac_word=$2 8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8375$as_echo_n "checking for $ac_word... " >&6; } 8376if ${ac_cv_prog_AWK+:} false; then : 8377 $as_echo_n "(cached) " >&6 8378else 8379 if test -n "$AWK"; then 8380 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8381else 8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8383for as_dir in $PATH 8384do 8385 IFS=$as_save_IFS 8386 test -z "$as_dir" && as_dir=. 8387 for ac_exec_ext in '' $ac_executable_extensions; do 8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8389 ac_cv_prog_AWK="$ac_prog" 8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8391 break 2 8392 fi 8393done 8394 done 8395IFS=$as_save_IFS 8396 8397fi 8398fi 8399AWK=$ac_cv_prog_AWK 8400if test -n "$AWK"; then 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8402$as_echo "$AWK" >&6; } 8403else 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8405$as_echo "no" >&6; } 8406fi 8407 8408 8409 test -n "$AWK" && break 8410done 8411 8412# We need awk to create options.cc and options.h. 8413# Bail out if it's missing. 8414case ${AWK} in 8415 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;; 8416esac 8417 8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8419$as_echo_n "checking whether ln -s works... " >&6; } 8420if ${gcc_cv_prog_LN_S+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 rm -f conftestdata_t 8424echo >conftestdata_f 8425if ln -s conftestdata_f conftestdata_t 2>/dev/null 8426then 8427 gcc_cv_prog_LN_S="ln -s" 8428else 8429 if ln conftestdata_f conftestdata_t 2>/dev/null 8430 then 8431 gcc_cv_prog_LN_S=ln 8432 else 8433 if cp -p conftestdata_f conftestdata_t 2>/dev/null 8434 then 8435 gcc_cv_prog_LN_S="cp -p" 8436 else 8437 gcc_cv_prog_LN_S=cp 8438 fi 8439 fi 8440fi 8441rm -f conftestdata_f conftestdata_t 8442 8443fi 8444LN_S="$gcc_cv_prog_LN_S" 8445if test "$gcc_cv_prog_LN_S" = "ln -s"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8447$as_echo "yes" >&6; } 8448else 8449 if test "$gcc_cv_prog_LN_S" = "ln"; then 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5 8451$as_echo "no, using ln" >&6; } 8452 else 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5 8454$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; } 8455 fi 8456fi 8457 8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 8459$as_echo_n "checking whether ln works... " >&6; } 8460if ${acx_cv_prog_LN+:} false; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 rm -f conftestdata_t 8464echo >conftestdata_f 8465if ln conftestdata_f conftestdata_t 2>/dev/null 8466then 8467 acx_cv_prog_LN=ln 8468else 8469 acx_cv_prog_LN=no 8470fi 8471rm -f conftestdata_f conftestdata_t 8472 8473fi 8474if test $acx_cv_prog_LN = no; then 8475 LN="$LN_S" 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 8477$as_echo "no, using $LN" >&6; } 8478else 8479 LN="$acx_cv_prog_LN" 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8481$as_echo "yes" >&6; } 8482fi 8483 8484if test -n "$ac_tool_prefix"; then 8485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8486set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8488$as_echo_n "checking for $ac_word... " >&6; } 8489if ${ac_cv_prog_RANLIB+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 if test -n "$RANLIB"; then 8493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8494else 8495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8496for as_dir in $PATH 8497do 8498 IFS=$as_save_IFS 8499 test -z "$as_dir" && as_dir=. 8500 for ac_exec_ext in '' $ac_executable_extensions; do 8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8504 break 2 8505 fi 8506done 8507 done 8508IFS=$as_save_IFS 8509 8510fi 8511fi 8512RANLIB=$ac_cv_prog_RANLIB 8513if test -n "$RANLIB"; then 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8515$as_echo "$RANLIB" >&6; } 8516else 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8518$as_echo "no" >&6; } 8519fi 8520 8521 8522fi 8523if test -z "$ac_cv_prog_RANLIB"; then 8524 ac_ct_RANLIB=$RANLIB 8525 # Extract the first word of "ranlib", so it can be a program name with args. 8526set dummy ranlib; ac_word=$2 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8528$as_echo_n "checking for $ac_word... " >&6; } 8529if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8530 $as_echo_n "(cached) " >&6 8531else 8532 if test -n "$ac_ct_RANLIB"; then 8533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8534else 8535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8536for as_dir in $PATH 8537do 8538 IFS=$as_save_IFS 8539 test -z "$as_dir" && as_dir=. 8540 for ac_exec_ext in '' $ac_executable_extensions; do 8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8542 ac_cv_prog_ac_ct_RANLIB="ranlib" 8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8544 break 2 8545 fi 8546done 8547 done 8548IFS=$as_save_IFS 8549 8550fi 8551fi 8552ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8553if test -n "$ac_ct_RANLIB"; then 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8555$as_echo "$ac_ct_RANLIB" >&6; } 8556else 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8558$as_echo "no" >&6; } 8559fi 8560 8561 if test "x$ac_ct_RANLIB" = x; then 8562 RANLIB=":" 8563 else 8564 case $cross_compiling:$ac_tool_warned in 8565yes:) 8566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8568ac_tool_warned=yes ;; 8569esac 8570 RANLIB=$ac_ct_RANLIB 8571 fi 8572else 8573 RANLIB="$ac_cv_prog_RANLIB" 8574fi 8575 8576ranlib_flags="" 8577 8578 8579# Find a good install program. We prefer a C program (faster), 8580# so one script is as good as another. But avoid the broken or 8581# incompatible versions: 8582# SysV /etc/install, /usr/sbin/install 8583# SunOS /usr/etc/install 8584# IRIX /sbin/install 8585# AIX /bin/install 8586# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8587# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8588# ./install, which can be erroneously created by make from ./install.sh. 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5 8590$as_echo_n "checking for a BSD compatible install... " >&6; } 8591if test -z "$INSTALL"; then 8592if ${ac_cv_path_install+:} false; then : 8593 $as_echo_n "(cached) " >&6 8594else 8595 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 8596 for ac_dir in $PATH; do 8597 # Account for people who put trailing slashes in PATH elements. 8598 case "$ac_dir/" in 8599 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 8600 *) 8601 # OSF1 and SCO ODT 3.0 have their own names for install. 8602 for ac_prog in ginstall scoinst install; do 8603 if test -f $ac_dir/$ac_prog; then 8604 if test $ac_prog = install && 8605 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 8606 # AIX install. It has an incompatible calling convention. 8607 # OSF/1 installbsd also uses dspmsg, but is usable. 8608 : 8609 else 8610 ac_cv_path_install="$ac_dir/$ac_prog -c" 8611 break 2 8612 fi 8613 fi 8614 done 8615 ;; 8616 esac 8617 done 8618 IFS="$ac_save_IFS" 8619 8620fi 8621 if test "${ac_cv_path_install+set}" = set; then 8622 INSTALL="$ac_cv_path_install" 8623 else 8624 # As a last resort, use the slow shell script. We don't cache a 8625 # path for INSTALL within a source directory, because that will 8626 # break other packages using the cache if that directory is 8627 # removed, or if the path is relative. 8628 INSTALL="$ac_install_sh" 8629 fi 8630fi 8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8632$as_echo "$INSTALL" >&6; } 8633 8634# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8635# It thinks the first close brace ends the variable substitution. 8636test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8637 8638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8639 8640 8641# See if cmp has --ignore-initial. 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5 8643$as_echo_n "checking for cmp's capabilities... " >&6; } 8644if ${gcc_cv_prog_cmp_skip+:} false; then : 8645 $as_echo_n "(cached) " >&6 8646else 8647 echo abfoo >t1 8648 echo cdfoo >t2 8649 gcc_cv_prog_cmp_skip=slowcompare 8650 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 8651 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 8652 : 8653 else 8654 gcc_cv_prog_cmp_skip=gnucompare 8655 fi 8656 fi 8657 if test $gcc_cv_prog_cmp_skip = slowcompare ; then 8658 if cmp t1 t2 2 2 > /dev/null 2>&1; then 8659 if cmp t1 t2 1 1 > /dev/null 2>&1; then 8660 : 8661 else 8662 gcc_cv_prog_cmp_skip=fastcompare 8663 fi 8664 fi 8665 fi 8666 rm t1 t2 8667 8668fi 8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 8670$as_echo "$gcc_cv_prog_cmp_skip" >&6; } 8671make_compare_target=$gcc_cv_prog_cmp_skip 8672 8673 8674 8675# See if we have the mktemp command. 8676# Extract the first word of "mktemp", so it can be a program name with args. 8677set dummy mktemp; ac_word=$2 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8679$as_echo_n "checking for $ac_word... " >&6; } 8680if ${ac_cv_prog_have_mktemp_command+:} false; then : 8681 $as_echo_n "(cached) " >&6 8682else 8683 if test -n "$have_mktemp_command"; then 8684 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test. 8685else 8686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8687for as_dir in $PATH 8688do 8689 IFS=$as_save_IFS 8690 test -z "$as_dir" && as_dir=. 8691 for ac_exec_ext in '' $ac_executable_extensions; do 8692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8693 ac_cv_prog_have_mktemp_command="yes" 8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8695 break 2 8696 fi 8697done 8698 done 8699IFS=$as_save_IFS 8700 8701 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no" 8702fi 8703fi 8704have_mktemp_command=$ac_cv_prog_have_mktemp_command 8705if test -n "$have_mktemp_command"; then 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5 8707$as_echo "$have_mktemp_command" >&6; } 8708else 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8710$as_echo "no" >&6; } 8711fi 8712 8713 8714 8715# See if makeinfo has been installed and is modern enough 8716# that we can use it. 8717 8718 # Extract the first word of "makeinfo", so it can be a program name with args. 8719set dummy makeinfo; ac_word=$2 8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8721$as_echo_n "checking for $ac_word... " >&6; } 8722if ${ac_cv_prog_MAKEINFO+:} false; then : 8723 $as_echo_n "(cached) " >&6 8724else 8725 if test -n "$MAKEINFO"; then 8726 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 8727else 8728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8729for as_dir in $PATH 8730do 8731 IFS=$as_save_IFS 8732 test -z "$as_dir" && as_dir=. 8733 for ac_exec_ext in '' $ac_executable_extensions; do 8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8735 ac_cv_prog_MAKEINFO="makeinfo" 8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8737 break 2 8738 fi 8739done 8740 done 8741IFS=$as_save_IFS 8742 8743fi 8744fi 8745MAKEINFO=$ac_cv_prog_MAKEINFO 8746if test -n "$MAKEINFO"; then 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 8748$as_echo "$MAKEINFO" >&6; } 8749else 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8751$as_echo "no" >&6; } 8752fi 8753 8754 8755 if test -n "$MAKEINFO"; then 8756 # Found it, now check the version. 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 8758$as_echo_n "checking for modern makeinfo... " >&6; } 8759if ${gcc_cv_prog_makeinfo_modern+:} false; then : 8760 $as_echo_n "(cached) " >&6 8761else 8762 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 8763 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 8764 8765 case $ac_prog_version in 8766 '') gcc_cv_prog_makeinfo_modern=no;; 8767 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 8768 *) gcc_cv_prog_makeinfo_modern=no;; 8769 esac 8770 8771fi 8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 8773$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 8774 else 8775 gcc_cv_prog_makeinfo_modern=no 8776 fi 8777 if test $gcc_cv_prog_makeinfo_modern = no; then 8778 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 8779 fi 8780 8781if test $gcc_cv_prog_makeinfo_modern = no; then 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8783*** Makeinfo is missing or too old. 8784*** Info documentation will not be built." >&5 8785$as_echo "$as_me: WARNING: 8786*** Makeinfo is missing or too old. 8787*** Info documentation will not be built." >&2;} 8788 BUILD_INFO= 8789else 8790 BUILD_INFO=info 8791fi 8792 8793 8794# Is pod2man recent enough to regenerate manpages? 8795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5 8796$as_echo_n "checking for recent Pod::Man... " >&6; } 8797if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8799$as_echo "yes" >&6; } 8800 GENERATED_MANPAGES=generated-manpages 8801else 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8803$as_echo "no" >&6; } 8804 GENERATED_MANPAGES= 8805fi 8806 8807 8808MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing" 8809 8810# How about lex? 8811for ac_prog in flex 8812do 8813 # Extract the first word of "$ac_prog", so it can be a program name with args. 8814set dummy $ac_prog; ac_word=$2 8815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8816$as_echo_n "checking for $ac_word... " >&6; } 8817if ${ac_cv_prog_FLEX+:} false; then : 8818 $as_echo_n "(cached) " >&6 8819else 8820 if test -n "$FLEX"; then 8821 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 8822else 8823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8824for as_dir in $PATH 8825do 8826 IFS=$as_save_IFS 8827 test -z "$as_dir" && as_dir=. 8828 for ac_exec_ext in '' $ac_executable_extensions; do 8829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8830 ac_cv_prog_FLEX="$ac_prog" 8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8832 break 2 8833 fi 8834done 8835 done 8836IFS=$as_save_IFS 8837 8838fi 8839fi 8840FLEX=$ac_cv_prog_FLEX 8841if test -n "$FLEX"; then 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 8843$as_echo "$FLEX" >&6; } 8844else 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8846$as_echo "no" >&6; } 8847fi 8848 8849 8850 test -n "$FLEX" && break 8851done 8852test -n "$FLEX" || FLEX="$MISSING flex" 8853 8854 8855# Bison? 8856for ac_prog in bison 8857do 8858 # Extract the first word of "$ac_prog", so it can be a program name with args. 8859set dummy $ac_prog; ac_word=$2 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8861$as_echo_n "checking for $ac_word... " >&6; } 8862if ${ac_cv_prog_BISON+:} false; then : 8863 $as_echo_n "(cached) " >&6 8864else 8865 if test -n "$BISON"; then 8866 ac_cv_prog_BISON="$BISON" # Let the user override the test. 8867else 8868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8869for as_dir in $PATH 8870do 8871 IFS=$as_save_IFS 8872 test -z "$as_dir" && as_dir=. 8873 for ac_exec_ext in '' $ac_executable_extensions; do 8874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8875 ac_cv_prog_BISON="$ac_prog" 8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8877 break 2 8878 fi 8879done 8880 done 8881IFS=$as_save_IFS 8882 8883fi 8884fi 8885BISON=$ac_cv_prog_BISON 8886if test -n "$BISON"; then 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 8888$as_echo "$BISON" >&6; } 8889else 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8891$as_echo "no" >&6; } 8892fi 8893 8894 8895 test -n "$BISON" && break 8896done 8897test -n "$BISON" || BISON="$MISSING bison" 8898 8899 8900# Binutils are not build modules, unlike bison/flex/makeinfo. So we 8901# check for build == host before using them. 8902 8903# NM 8904if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \ 8905 && test -d ../binutils ; then 8906 NM='${objdir}/../binutils/nm-new' 8907else 8908 # Extract the first word of "nm", so it can be a program name with args. 8909set dummy nm; ac_word=$2 8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8911$as_echo_n "checking for $ac_word... " >&6; } 8912if ${ac_cv_prog_NM+:} false; then : 8913 $as_echo_n "(cached) " >&6 8914else 8915 if test -n "$NM"; then 8916 ac_cv_prog_NM="$NM" # Let the user override the test. 8917else 8918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8919for as_dir in $PATH 8920do 8921 IFS=$as_save_IFS 8922 test -z "$as_dir" && as_dir=. 8923 for ac_exec_ext in '' $ac_executable_extensions; do 8924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8925 ac_cv_prog_NM="nm" 8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8927 break 2 8928 fi 8929done 8930 done 8931IFS=$as_save_IFS 8932 8933 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm" 8934fi 8935fi 8936NM=$ac_cv_prog_NM 8937if test -n "$NM"; then 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8939$as_echo "$NM" >&6; } 8940else 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8942$as_echo "no" >&6; } 8943fi 8944 8945 8946fi 8947 8948# AR 8949if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \ 8950 && test -d ../binutils ; then 8951 AR='${objdir}/../binutils/ar' 8952else 8953 # Extract the first word of "ar", so it can be a program name with args. 8954set dummy ar; ac_word=$2 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8956$as_echo_n "checking for $ac_word... " >&6; } 8957if ${ac_cv_prog_AR+:} false; then : 8958 $as_echo_n "(cached) " >&6 8959else 8960 if test -n "$AR"; then 8961 ac_cv_prog_AR="$AR" # Let the user override the test. 8962else 8963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8964for as_dir in $PATH 8965do 8966 IFS=$as_save_IFS 8967 test -z "$as_dir" && as_dir=. 8968 for ac_exec_ext in '' $ac_executable_extensions; do 8969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8970 ac_cv_prog_AR="ar" 8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8972 break 2 8973 fi 8974done 8975 done 8976IFS=$as_save_IFS 8977 8978 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar" 8979fi 8980fi 8981AR=$ac_cv_prog_AR 8982if test -n "$AR"; then 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8984$as_echo "$AR" >&6; } 8985else 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8987$as_echo "no" >&6; } 8988fi 8989 8990 8991fi 8992 8993# The jit documentation looks better if built with sphinx, but can be 8994# built with texinfo if sphinx is not available. 8995# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly. 8996# Extract the first word of "sphinx-build", so it can be a program name with args. 8997set dummy sphinx-build; ac_word=$2 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8999$as_echo_n "checking for $ac_word... " >&6; } 9000if ${ac_cv_prog_doc_build_sys+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 if test -n "$doc_build_sys"; then 9004 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test. 9005else 9006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9007for as_dir in $PATH 9008do 9009 IFS=$as_save_IFS 9010 test -z "$as_dir" && as_dir=. 9011 for ac_exec_ext in '' $ac_executable_extensions; do 9012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9013 ac_cv_prog_doc_build_sys="sphinx" 9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9015 break 2 9016 fi 9017done 9018 done 9019IFS=$as_save_IFS 9020 9021 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo" 9022fi 9023fi 9024doc_build_sys=$ac_cv_prog_doc_build_sys 9025if test -n "$doc_build_sys"; then 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5 9027$as_echo "$doc_build_sys" >&6; } 9028else 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9030$as_echo "no" >&6; } 9031fi 9032 9033 9034 9035# -------------------- 9036# Checks for C headers 9037# -------------------- 9038 9039# Need to reject headers which give warnings, so that the -Werror bootstrap 9040# works later. *sigh* This needs to come before all header checks. 9041 9042ac_c_preproc_warn_flag=yes 9043 9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9045$as_echo_n "checking for ANSI C header files... " >&6; } 9046if ${ac_cv_header_stdc+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048else 9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9050/* end confdefs.h. */ 9051#include <stdlib.h> 9052#include <stdarg.h> 9053#include <string.h> 9054#include <float.h> 9055 9056int 9057main () 9058{ 9059 9060 ; 9061 return 0; 9062} 9063_ACEOF 9064if ac_fn_cxx_try_compile "$LINENO"; then : 9065 ac_cv_header_stdc=yes 9066else 9067 ac_cv_header_stdc=no 9068fi 9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9070 9071if test $ac_cv_header_stdc = yes; then 9072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9074/* end confdefs.h. */ 9075#include <string.h> 9076 9077_ACEOF 9078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9079 $EGREP "memchr" >/dev/null 2>&1; then : 9080 9081else 9082 ac_cv_header_stdc=no 9083fi 9084rm -f conftest* 9085 9086fi 9087 9088if test $ac_cv_header_stdc = yes; then 9089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9091/* end confdefs.h. */ 9092#include <stdlib.h> 9093 9094_ACEOF 9095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9096 $EGREP "free" >/dev/null 2>&1; then : 9097 9098else 9099 ac_cv_header_stdc=no 9100fi 9101rm -f conftest* 9102 9103fi 9104 9105if test $ac_cv_header_stdc = yes; then 9106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9107 if test "$cross_compiling" = yes; then : 9108 : 9109else 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111/* end confdefs.h. */ 9112#include <ctype.h> 9113#include <stdlib.h> 9114#if ((' ' & 0x0FF) == 0x020) 9115# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9116# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9117#else 9118# define ISLOWER(c) \ 9119 (('a' <= (c) && (c) <= 'i') \ 9120 || ('j' <= (c) && (c) <= 'r') \ 9121 || ('s' <= (c) && (c) <= 'z')) 9122# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9123#endif 9124 9125#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9126int 9127main () 9128{ 9129 int i; 9130 for (i = 0; i < 256; i++) 9131 if (XOR (islower (i), ISLOWER (i)) 9132 || toupper (i) != TOUPPER (i)) 9133 return 2; 9134 return 0; 9135} 9136_ACEOF 9137if ac_fn_cxx_try_run "$LINENO"; then : 9138 9139else 9140 ac_cv_header_stdc=no 9141fi 9142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9143 conftest.$ac_objext conftest.beam conftest.$ac_ext 9144fi 9145 9146fi 9147fi 9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9149$as_echo "$ac_cv_header_stdc" >&6; } 9150if test $ac_cv_header_stdc = yes; then 9151 9152$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9153 9154fi 9155 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9157$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9158if ${ac_cv_header_time+:} false; then : 9159 $as_echo_n "(cached) " >&6 9160else 9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9162/* end confdefs.h. */ 9163#include <sys/types.h> 9164#include <sys/time.h> 9165#include <time.h> 9166 9167int 9168main () 9169{ 9170if ((struct tm *) 0) 9171return 0; 9172 ; 9173 return 0; 9174} 9175_ACEOF 9176if ac_fn_cxx_try_compile "$LINENO"; then : 9177 ac_cv_header_time=yes 9178else 9179 ac_cv_header_time=no 9180fi 9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9182fi 9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9184$as_echo "$ac_cv_header_time" >&6; } 9185if test $ac_cv_header_time = yes; then 9186 9187$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9188 9189fi 9190 9191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 9192$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 9193if ${gcc_cv_header_string+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198#include <string.h> 9199#include <strings.h> 9200int 9201main () 9202{ 9203 9204 ; 9205 return 0; 9206} 9207_ACEOF 9208if ac_fn_cxx_try_compile "$LINENO"; then : 9209 gcc_cv_header_string=yes 9210else 9211 gcc_cv_header_string=no 9212fi 9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9214fi 9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 9216$as_echo "$gcc_cv_header_string" >&6; } 9217if test $gcc_cv_header_string = yes; then 9218 9219$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 9220 9221fi 9222 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 9224$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 9225if ${ac_cv_header_sys_wait_h+:} false; then : 9226 $as_echo_n "(cached) " >&6 9227else 9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9229/* end confdefs.h. */ 9230#include <sys/types.h> 9231#include <sys/wait.h> 9232#ifndef WEXITSTATUS 9233# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 9234#endif 9235#ifndef WIFEXITED 9236# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 9237#endif 9238 9239int 9240main () 9241{ 9242 int s; 9243 wait (&s); 9244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 9245 ; 9246 return 0; 9247} 9248_ACEOF 9249if ac_fn_cxx_try_compile "$LINENO"; then : 9250 ac_cv_header_sys_wait_h=yes 9251else 9252 ac_cv_header_sys_wait_h=no 9253fi 9254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9255fi 9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 9257$as_echo "$ac_cv_header_sys_wait_h" >&6; } 9258if test $ac_cv_header_sys_wait_h = yes; then 9259 9260$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 9261 9262fi 9263 9264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 9265$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } 9266if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : 9267 $as_echo_n "(cached) " >&6 9268else 9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271#include <sys/types.h> 9272#include <termios.h> 9273#ifdef TIOCGWINSZ 9274 yes 9275#endif 9276 9277_ACEOF 9278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9279 $EGREP "yes" >/dev/null 2>&1; then : 9280 ac_cv_sys_tiocgwinsz_in_termios_h=yes 9281else 9282 ac_cv_sys_tiocgwinsz_in_termios_h=no 9283fi 9284rm -f conftest* 9285 9286fi 9287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 9288$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } 9289 9290if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 9292$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } 9293if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298#include <sys/types.h> 9299#include <sys/ioctl.h> 9300#ifdef TIOCGWINSZ 9301 yes 9302#endif 9303 9304_ACEOF 9305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9306 $EGREP "yes" >/dev/null 2>&1; then : 9307 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 9308else 9309 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 9310fi 9311rm -f conftest* 9312 9313fi 9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 9315$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } 9316 9317 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 9318 9319$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h 9320 9321 fi 9322fi 9323 9324for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \ 9325 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \ 9326 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \ 9327 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h 9328do : 9329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9330ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" 9331if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9332 cat >>confdefs.h <<_ACEOF 9333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9334_ACEOF 9335 9336fi 9337done 9338 9339 9340# Check for thread headers. 9341ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h" 9342if test "x$ac_cv_header_thread_h" = xyes; then : 9343 have_thread_h=yes 9344else 9345 have_thread_h= 9346fi 9347 9348ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h" 9349if test "x$ac_cv_header_pthread_h" = xyes; then : 9350 have_pthread_h=yes 9351else 9352 have_pthread_h= 9353fi 9354 9355 9356# These tests can't be done till we know if we have limits.h. 9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5 9358$as_echo_n "checking for CHAR_BIT... " >&6; } 9359if ${gcc_cv_decl_char_bit+:} false; then : 9360 $as_echo_n "(cached) " >&6 9361else 9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9363/* end confdefs.h. */ 9364#ifdef HAVE_LIMITS_H 9365#include <limits.h> 9366#endif 9367#ifdef CHAR_BIT 9368found 9369#endif 9370_ACEOF 9371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9372 $EGREP "found" >/dev/null 2>&1; then : 9373 gcc_cv_decl_char_bit=yes 9374else 9375 gcc_cv_decl_char_bit=no 9376fi 9377rm -f conftest* 9378 9379 9380fi 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5 9382$as_echo "$gcc_cv_decl_char_bit" >&6; } 9383if test $gcc_cv_decl_char_bit = no; then 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5 9385$as_echo_n "checking number of bits in a byte... " >&6; } 9386if ${gcc_cv_c_nbby+:} false; then : 9387 $as_echo_n "(cached) " >&6 9388else 9389 i=8 9390 gcc_cv_c_nbby= 9391 while test $i -lt 65; do 9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9393/* end confdefs.h. */ 9394 9395int 9396main () 9397{ 9398switch(0) { 9399 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i): 9400 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)): 9401 ; } 9402 ; 9403 return 0; 9404} 9405_ACEOF 9406if ac_fn_cxx_try_compile "$LINENO"; then : 9407 gcc_cv_c_nbby=$i; break 9408fi 9409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9410 i=`expr $i + 1` 9411 done 9412 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed 9413 9414fi 9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5 9416$as_echo "$gcc_cv_c_nbby" >&6; } 9417if test $gcc_cv_c_nbby = failed; then 9418 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5 9419else 9420 9421cat >>confdefs.h <<_ACEOF 9422#define CHAR_BIT $gcc_cv_c_nbby 9423_ACEOF 9424 9425fi 9426fi 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9428$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9429if ${ac_cv_c_bigendian+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431else 9432 ac_cv_c_bigendian=unknown 9433 # See if we're dealing with a universal compiler. 9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9435/* end confdefs.h. */ 9436#ifndef __APPLE_CC__ 9437 not a universal capable compiler 9438 #endif 9439 typedef int dummy; 9440 9441_ACEOF 9442if ac_fn_cxx_try_compile "$LINENO"; then : 9443 9444 # Check for potential -arch flags. It is not universal unless 9445 # there are at least two -arch flags with different values. 9446 ac_arch= 9447 ac_prev= 9448 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9449 if test -n "$ac_prev"; then 9450 case $ac_word in 9451 i?86 | x86_64 | ppc | ppc64) 9452 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9453 ac_arch=$ac_word 9454 else 9455 ac_cv_c_bigendian=universal 9456 break 9457 fi 9458 ;; 9459 esac 9460 ac_prev= 9461 elif test "x$ac_word" = "x-arch"; then 9462 ac_prev=arch 9463 fi 9464 done 9465fi 9466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9467 if test $ac_cv_c_bigendian = unknown; then 9468 # See if sys/param.h defines the BYTE_ORDER macro. 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471#include <sys/types.h> 9472 #include <sys/param.h> 9473 9474int 9475main () 9476{ 9477#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9478 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9479 && LITTLE_ENDIAN) 9480 bogus endian macros 9481 #endif 9482 9483 ; 9484 return 0; 9485} 9486_ACEOF 9487if ac_fn_cxx_try_compile "$LINENO"; then : 9488 # It does; now see whether it defined to BIG_ENDIAN or not. 9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9490/* end confdefs.h. */ 9491#include <sys/types.h> 9492 #include <sys/param.h> 9493 9494int 9495main () 9496{ 9497#if BYTE_ORDER != BIG_ENDIAN 9498 not big endian 9499 #endif 9500 9501 ; 9502 return 0; 9503} 9504_ACEOF 9505if ac_fn_cxx_try_compile "$LINENO"; then : 9506 ac_cv_c_bigendian=yes 9507else 9508 ac_cv_c_bigendian=no 9509fi 9510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9511fi 9512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9513 fi 9514 if test $ac_cv_c_bigendian = unknown; then 9515 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517/* end confdefs.h. */ 9518#include <limits.h> 9519 9520int 9521main () 9522{ 9523#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9524 bogus endian macros 9525 #endif 9526 9527 ; 9528 return 0; 9529} 9530_ACEOF 9531if ac_fn_cxx_try_compile "$LINENO"; then : 9532 # It does; now see whether it defined to _BIG_ENDIAN or not. 9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9534/* end confdefs.h. */ 9535#include <limits.h> 9536 9537int 9538main () 9539{ 9540#ifndef _BIG_ENDIAN 9541 not big endian 9542 #endif 9543 9544 ; 9545 return 0; 9546} 9547_ACEOF 9548if ac_fn_cxx_try_compile "$LINENO"; then : 9549 ac_cv_c_bigendian=yes 9550else 9551 ac_cv_c_bigendian=no 9552fi 9553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9554fi 9555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9556 fi 9557 if test $ac_cv_c_bigendian = unknown; then 9558 # Compile a test program. 9559 if test "$cross_compiling" = yes; then : 9560 # Try to guess by grepping values from an object file. 9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9562/* end confdefs.h. */ 9563short int ascii_mm[] = 9564 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9565 short int ascii_ii[] = 9566 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9567 int use_ascii (int i) { 9568 return ascii_mm[i] + ascii_ii[i]; 9569 } 9570 short int ebcdic_ii[] = 9571 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9572 short int ebcdic_mm[] = 9573 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9574 int use_ebcdic (int i) { 9575 return ebcdic_mm[i] + ebcdic_ii[i]; 9576 } 9577 extern int foo; 9578 9579int 9580main () 9581{ 9582return use_ascii (foo) == use_ebcdic (foo); 9583 ; 9584 return 0; 9585} 9586_ACEOF 9587if ac_fn_cxx_try_compile "$LINENO"; then : 9588 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9589 ac_cv_c_bigendian=yes 9590 fi 9591 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9592 if test "$ac_cv_c_bigendian" = unknown; then 9593 ac_cv_c_bigendian=no 9594 else 9595 # finding both strings is unlikely to happen, but who knows? 9596 ac_cv_c_bigendian=unknown 9597 fi 9598 fi 9599fi 9600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9601else 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604$ac_includes_default 9605int 9606main () 9607{ 9608 9609 /* Are we little or big endian? From Harbison&Steele. */ 9610 union 9611 { 9612 long int l; 9613 char c[sizeof (long int)]; 9614 } u; 9615 u.l = 1; 9616 return u.c[sizeof (long int) - 1] == 1; 9617 9618 ; 9619 return 0; 9620} 9621_ACEOF 9622if ac_fn_cxx_try_run "$LINENO"; then : 9623 ac_cv_c_bigendian=no 9624else 9625 ac_cv_c_bigendian=yes 9626fi 9627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9628 conftest.$ac_objext conftest.beam conftest.$ac_ext 9629fi 9630 9631 fi 9632fi 9633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9634$as_echo "$ac_cv_c_bigendian" >&6; } 9635 case $ac_cv_c_bigendian in #( 9636 yes) 9637 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9638;; #( 9639 no) 9640 ;; #( 9641 universal) 9642 9643$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9644 9645 ;; #( 9646 *) 9647 as_fn_error $? "unknown endianness 9648 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9649 esac 9650 9651 9652# ---------------------- 9653# Checks for C++ headers 9654# ---------------------- 9655 9656ac_ext=cpp 9657ac_cpp='$CXXCPP $CPPFLAGS' 9658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 9662$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 9663if test -z "$CXXCPP"; then 9664 if ${ac_cv_prog_CXXCPP+:} false; then : 9665 $as_echo_n "(cached) " >&6 9666else 9667 # Double quotes because CXXCPP needs to be expanded 9668 for CXXCPP in "$CXX -E" "/lib/cpp" 9669 do 9670 ac_preproc_ok=false 9671for ac_cxx_preproc_warn_flag in '' yes 9672do 9673 # Use a header file that comes with gcc, so configuring glibc 9674 # with a fresh cross-compiler works. 9675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9676 # <limits.h> exists even on freestanding compilers. 9677 # On the NeXT, cc -E runs the code through the compiler's parser, 9678 # not just through cpp. "Syntax error" is here to catch this case. 9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9680/* end confdefs.h. */ 9681#ifdef __STDC__ 9682# include <limits.h> 9683#else 9684# include <assert.h> 9685#endif 9686 Syntax error 9687_ACEOF 9688if ac_fn_cxx_try_cpp "$LINENO"; then : 9689 9690else 9691 # Broken: fails on valid input. 9692continue 9693fi 9694rm -f conftest.err conftest.i conftest.$ac_ext 9695 9696 # OK, works on sane cases. Now check whether nonexistent headers 9697 # can be detected and how. 9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9699/* end confdefs.h. */ 9700#include <ac_nonexistent.h> 9701_ACEOF 9702if ac_fn_cxx_try_cpp "$LINENO"; then : 9703 # Broken: success on invalid input. 9704continue 9705else 9706 # Passes both tests. 9707ac_preproc_ok=: 9708break 9709fi 9710rm -f conftest.err conftest.i conftest.$ac_ext 9711 9712done 9713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9714rm -f conftest.i conftest.err conftest.$ac_ext 9715if $ac_preproc_ok; then : 9716 break 9717fi 9718 9719 done 9720 ac_cv_prog_CXXCPP=$CXXCPP 9721 9722fi 9723 CXXCPP=$ac_cv_prog_CXXCPP 9724else 9725 ac_cv_prog_CXXCPP=$CXXCPP 9726fi 9727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 9728$as_echo "$CXXCPP" >&6; } 9729ac_preproc_ok=false 9730for ac_cxx_preproc_warn_flag in '' yes 9731do 9732 # Use a header file that comes with gcc, so configuring glibc 9733 # with a fresh cross-compiler works. 9734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9735 # <limits.h> exists even on freestanding compilers. 9736 # On the NeXT, cc -E runs the code through the compiler's parser, 9737 # not just through cpp. "Syntax error" is here to catch this case. 9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739/* end confdefs.h. */ 9740#ifdef __STDC__ 9741# include <limits.h> 9742#else 9743# include <assert.h> 9744#endif 9745 Syntax error 9746_ACEOF 9747if ac_fn_cxx_try_cpp "$LINENO"; then : 9748 9749else 9750 # Broken: fails on valid input. 9751continue 9752fi 9753rm -f conftest.err conftest.i conftest.$ac_ext 9754 9755 # OK, works on sane cases. Now check whether nonexistent headers 9756 # can be detected and how. 9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9758/* end confdefs.h. */ 9759#include <ac_nonexistent.h> 9760_ACEOF 9761if ac_fn_cxx_try_cpp "$LINENO"; then : 9762 # Broken: success on invalid input. 9763continue 9764else 9765 # Passes both tests. 9766ac_preproc_ok=: 9767break 9768fi 9769rm -f conftest.err conftest.i conftest.$ac_ext 9770 9771done 9772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9773rm -f conftest.i conftest.err conftest.$ac_ext 9774if $ac_preproc_ok; then : 9775 9776else 9777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check 9780See \`config.log' for more details" >&5 9781$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check 9782See \`config.log' for more details" >&2;}; } 9783fi 9784 9785ac_ext=cpp 9786ac_cpp='$CXXCPP $CPPFLAGS' 9787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9790 9791 9792for ac_header in unordered_map 9793do : 9794 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map" 9795if test "x$ac_cv_header_unordered_map" = xyes; then : 9796 cat >>confdefs.h <<_ACEOF 9797#define HAVE_UNORDERED_MAP 1 9798_ACEOF 9799 9800fi 9801done 9802 9803for ac_header in tr1/unordered_map 9804do : 9805 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" 9806if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : 9807 cat >>confdefs.h <<_ACEOF 9808#define HAVE_TR1_UNORDERED_MAP 1 9809_ACEOF 9810 9811fi 9812done 9813 9814for ac_header in ext/hash_map 9815do : 9816 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" 9817if test "x$ac_cv_header_ext_hash_map" = xyes; then : 9818 cat >>confdefs.h <<_ACEOF 9819#define HAVE_EXT_HASH_MAP 1 9820_ACEOF 9821 9822fi 9823done 9824 9825 9826# -------- 9827# Dependency checking. 9828# -------- 9829 9830rm -rf .tst 2>/dev/null 9831mkdir .tst 2>/dev/null 9832if test -d .tst; then 9833 am__leading_dot=. 9834else 9835 am__leading_dot=_ 9836fi 9837rmdir .tst 2>/dev/null 9838 9839DEPDIR="${am__leading_dot}deps" 9840 9841ac_config_commands="$ac_config_commands depdir" 9842 9843 9844ac_config_commands="$ac_config_commands gccdepdir" 9845 9846 9847depcc="$CXX" am_compiler_list= 9848 9849am_depcomp=$ac_aux_dir/depcomp 9850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 9851$as_echo_n "checking dependency style of $depcc... " >&6; } 9852if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 9853 $as_echo_n "(cached) " >&6 9854else 9855 if test -f "$am_depcomp"; then 9856 # We make a subdir and do the tests there. Otherwise we can end up 9857 # making bogus files that we don't know about and never remove. For 9858 # instance it was reported that on HP-UX the gcc test will end up 9859 # making a dummy file named `D' -- because `-MD' means `put the output 9860 # in D'. 9861 mkdir conftest.dir 9862 # Copy depcomp to subdir because otherwise we won't find it if we're 9863 # using a relative directory. 9864 cp "$am_depcomp" conftest.dir 9865 cd conftest.dir 9866 # We will build objects and dependencies in a subdirectory because 9867 # it helps to detect inapplicable dependency modes. For instance 9868 # both Tru64's cc and ICC support -MD to output dependencies as a 9869 # side effect of compilation, but ICC will put the dependencies in 9870 # the current directory while Tru64 will put them in the object 9871 # directory. 9872 mkdir sub 9873 9874 am_cv_CXX_dependencies_compiler_type=none 9875 if test "$am_compiler_list" = ""; then 9876 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 9877 fi 9878 for depmode in $am_compiler_list; do 9879 if test $depmode = none; then break; fi 9880 9881 $as_echo "$as_me:$LINENO: trying $depmode" >&5 9882 # Setup a source with many dependencies, because some compilers 9883 # like to wrap large dependency lists on column 80 (with \), and 9884 # we should not choose a depcomp mode which is confused by this. 9885 # 9886 # We need to recreate these files for each test, as the compiler may 9887 # overwrite some of them when testing with obscure command lines. 9888 # This happens at least with the AIX C compiler. 9889 : > sub/conftest.c 9890 for i in 1 2 3 4 5 6; do 9891 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 9893 # Solaris 8's {/usr,}/bin/sh. 9894 touch sub/conftst$i.h 9895 done 9896 echo "include sub/conftest.Po" > confmf 9897 9898 # We check with `-c' and `-o' for the sake of the "dashmstdout" 9899 # mode. It turns out that the SunPro C++ compiler does not properly 9900 # handle `-M -o', and we need to detect this. 9901 depcmd="depmode=$depmode \ 9902 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 9903 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9904 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" 9905 echo "| $depcmd" | sed -e 's/ */ /g' >&5 9906 if env $depcmd > conftest.err 2>&1 && 9907 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && 9908 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && 9909 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then 9910 # icc doesn't choke on unknown options, it will just issue warnings 9911 # or remarks (even with -Werror). So we grep stderr for any message 9912 # that says an option was ignored or not supported. 9913 # When given -MP, icc 7.0 and 7.1 complain thusly: 9914 # icc: Command line warning: ignoring option '-M'; no argument required 9915 # The diagnosis changed in icc 8.0: 9916 # icc: Command line remark: option '-MP' not supported 9917 if (grep 'ignoring option' conftest.err || 9918 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9919 am_cv_CXX_dependencies_compiler_type=$depmode 9920 $as_echo "$as_me:$LINENO: success" >&5 9921 break 9922 fi 9923 fi 9924 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 9925 sed -e 's/^/| /' < conftest.err >&5 9926 done 9927 9928 cd .. 9929 rm -rf conftest.dir 9930else 9931 am_cv_CXX_dependencies_compiler_type=none 9932fi 9933 9934fi 9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 9936$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 9937if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone 9938then as_fn_error $? "no usable dependency style found" "$LINENO" 5 9939else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 9940 9941fi 9942 9943 9944# -------- 9945# UNSORTED 9946# -------- 9947 9948 9949# These libraries may be used by collect2. 9950# We may need a special search path to get them linked. 9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5 9952$as_echo_n "checking for collect2 libraries... " >&6; } 9953if ${gcc_cv_collect2_libs+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 save_LIBS="$LIBS" 9957for libs in '' -lld -lmld \ 9958 '-L/usr/lib/cmplrs/cc2.11 -lmld' \ 9959 '-L/usr/lib/cmplrs/cc3.11 -lmld' 9960do 9961 LIBS="$libs" 9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963/* end confdefs.h. */ 9964 9965/* Override any GCC internal prototype to avoid an error. 9966 Use char because int might match the return type of a GCC 9967 builtin and then its argument prototype would still apply. */ 9968#ifdef __cplusplus 9969extern "C" 9970#endif 9971char ldopen (); 9972int 9973main () 9974{ 9975return ldopen (); 9976 ; 9977 return 0; 9978} 9979_ACEOF 9980if ac_fn_cxx_try_link "$LINENO"; then : 9981 gcc_cv_collect2_libs="$libs"; break 9982fi 9983rm -f core conftest.err conftest.$ac_objext \ 9984 conftest$ac_exeext conftest.$ac_ext 9985done 9986LIBS="$save_LIBS" 9987test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required' 9988fi 9989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5 9990$as_echo "$gcc_cv_collect2_libs" >&6; } 9991case $gcc_cv_collect2_libs in 9992 "none required") ;; 9993 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;; 9994esac 9995 9996 9997# When building Ada code on Alpha, we need exc_resume which is usually in 9998# -lexc. So test for it. 9999save_LIBS="$LIBS" 10000LIBS= 10001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5 10002$as_echo_n "checking for library containing exc_resume... " >&6; } 10003if ${ac_cv_search_exc_resume+:} false; then : 10004 $as_echo_n "(cached) " >&6 10005else 10006 ac_func_search_save_LIBS=$LIBS 10007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10008/* end confdefs.h. */ 10009 10010/* Override any GCC internal prototype to avoid an error. 10011 Use char because int might match the return type of a GCC 10012 builtin and then its argument prototype would still apply. */ 10013#ifdef __cplusplus 10014extern "C" 10015#endif 10016char exc_resume (); 10017int 10018main () 10019{ 10020return exc_resume (); 10021 ; 10022 return 0; 10023} 10024_ACEOF 10025for ac_lib in '' exc; do 10026 if test -z "$ac_lib"; then 10027 ac_res="none required" 10028 else 10029 ac_res=-l$ac_lib 10030 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10031 fi 10032 if ac_fn_cxx_try_link "$LINENO"; then : 10033 ac_cv_search_exc_resume=$ac_res 10034fi 10035rm -f core conftest.err conftest.$ac_objext \ 10036 conftest$ac_exeext 10037 if ${ac_cv_search_exc_resume+:} false; then : 10038 break 10039fi 10040done 10041if ${ac_cv_search_exc_resume+:} false; then : 10042 10043else 10044 ac_cv_search_exc_resume=no 10045fi 10046rm conftest.$ac_ext 10047LIBS=$ac_func_search_save_LIBS 10048fi 10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5 10050$as_echo "$ac_cv_search_exc_resume" >&6; } 10051ac_res=$ac_cv_search_exc_resume 10052if test "$ac_res" != no; then : 10053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10054 10055fi 10056 10057GNAT_LIBEXC="$LIBS" 10058LIBS="$save_LIBS" 10059 10060 10061# To support -mcpu=native on Solaris/SPARC, we need libkstat. 10062save_LIBS="$LIBS" 10063LIBS= 10064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5 10065$as_echo_n "checking for library containing kstat_open... " >&6; } 10066if ${ac_cv_search_kstat_open+:} false; then : 10067 $as_echo_n "(cached) " >&6 10068else 10069 ac_func_search_save_LIBS=$LIBS 10070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071/* end confdefs.h. */ 10072 10073/* Override any GCC internal prototype to avoid an error. 10074 Use char because int might match the return type of a GCC 10075 builtin and then its argument prototype would still apply. */ 10076#ifdef __cplusplus 10077extern "C" 10078#endif 10079char kstat_open (); 10080int 10081main () 10082{ 10083return kstat_open (); 10084 ; 10085 return 0; 10086} 10087_ACEOF 10088for ac_lib in '' kstat; do 10089 if test -z "$ac_lib"; then 10090 ac_res="none required" 10091 else 10092 ac_res=-l$ac_lib 10093 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10094 fi 10095 if ac_fn_cxx_try_link "$LINENO"; then : 10096 ac_cv_search_kstat_open=$ac_res 10097fi 10098rm -f core conftest.err conftest.$ac_objext \ 10099 conftest$ac_exeext 10100 if ${ac_cv_search_kstat_open+:} false; then : 10101 break 10102fi 10103done 10104if ${ac_cv_search_kstat_open+:} false; then : 10105 10106else 10107 ac_cv_search_kstat_open=no 10108fi 10109rm conftest.$ac_ext 10110LIBS=$ac_func_search_save_LIBS 10111fi 10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5 10113$as_echo "$ac_cv_search_kstat_open" >&6; } 10114ac_res=$ac_cv_search_kstat_open 10115if test "$ac_res" != no; then : 10116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10117 10118fi 10119 10120EXTRA_GCC_LIBS="$LIBS" 10121LIBS="$save_LIBS" 10122 10123 10124# Solaris needs libsocket and libnsl for socket functions before 11.4. 10125# C++ needs those for libcody. 10126save_LIBS="$LIBS" 10127LIBS= 10128 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 10130$as_echo_n "checking for library containing gethostbyname... " >&6; } 10131if ${ac_cv_search_gethostbyname+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 ac_func_search_save_LIBS=$LIBS 10135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10136/* end confdefs.h. */ 10137 10138/* Override any GCC internal prototype to avoid an error. 10139 Use char because int might match the return type of a GCC 10140 builtin and then its argument prototype would still apply. */ 10141#ifdef __cplusplus 10142extern "C" 10143#endif 10144char gethostbyname (); 10145int 10146main () 10147{ 10148return gethostbyname (); 10149 ; 10150 return 0; 10151} 10152_ACEOF 10153for ac_lib in '' nsl; do 10154 if test -z "$ac_lib"; then 10155 ac_res="none required" 10156 else 10157 ac_res=-l$ac_lib 10158 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10159 fi 10160 if ac_fn_cxx_try_link "$LINENO"; then : 10161 ac_cv_search_gethostbyname=$ac_res 10162fi 10163rm -f core conftest.err conftest.$ac_objext \ 10164 conftest$ac_exeext 10165 if ${ac_cv_search_gethostbyname+:} false; then : 10166 break 10167fi 10168done 10169if ${ac_cv_search_gethostbyname+:} false; then : 10170 10171else 10172 ac_cv_search_gethostbyname=no 10173fi 10174rm conftest.$ac_ext 10175LIBS=$ac_func_search_save_LIBS 10176fi 10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 10178$as_echo "$ac_cv_search_gethostbyname" >&6; } 10179ac_res=$ac_cv_search_gethostbyname 10180if test "$ac_res" != no; then : 10181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10182 10183fi 10184 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 10186$as_echo_n "checking for library containing socket... " >&6; } 10187if ${ac_cv_search_socket+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 ac_func_search_save_LIBS=$LIBS 10191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10192/* end confdefs.h. */ 10193 10194/* Override any GCC internal prototype to avoid an error. 10195 Use char because int might match the return type of a GCC 10196 builtin and then its argument prototype would still apply. */ 10197#ifdef __cplusplus 10198extern "C" 10199#endif 10200char socket (); 10201int 10202main () 10203{ 10204return socket (); 10205 ; 10206 return 0; 10207} 10208_ACEOF 10209for ac_lib in '' socket; do 10210 if test -z "$ac_lib"; then 10211 ac_res="none required" 10212 else 10213 ac_res=-l$ac_lib 10214 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10215 fi 10216 if ac_fn_cxx_try_link "$LINENO"; then : 10217 ac_cv_search_socket=$ac_res 10218fi 10219rm -f core conftest.err conftest.$ac_objext \ 10220 conftest$ac_exeext 10221 if ${ac_cv_search_socket+:} false; then : 10222 break 10223fi 10224done 10225if ${ac_cv_search_socket+:} false; then : 10226 10227else 10228 ac_cv_search_socket=no 10229fi 10230rm conftest.$ac_ext 10231LIBS=$ac_func_search_save_LIBS 10232fi 10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 10234$as_echo "$ac_cv_search_socket" >&6; } 10235ac_res=$ac_cv_search_socket 10236if test "$ac_res" != no; then : 10237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10238 10239else 10240 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10242$as_echo_n "checking for socket in -lsocket... " >&6; } 10243if ${ac_cv_lib_socket_socket+:} false; then : 10244 $as_echo_n "(cached) " >&6 10245else 10246 ac_check_lib_save_LIBS=$LIBS 10247LIBS="-lsocket -lnsl $LIBS" 10248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10249/* end confdefs.h. */ 10250 10251/* Override any GCC internal prototype to avoid an error. 10252 Use char because int might match the return type of a GCC 10253 builtin and then its argument prototype would still apply. */ 10254#ifdef __cplusplus 10255extern "C" 10256#endif 10257char socket (); 10258int 10259main () 10260{ 10261return socket (); 10262 ; 10263 return 0; 10264} 10265_ACEOF 10266if ac_fn_cxx_try_link "$LINENO"; then : 10267 ac_cv_lib_socket_socket=yes 10268else 10269 ac_cv_lib_socket_socket=no 10270fi 10271rm -f core conftest.err conftest.$ac_objext \ 10272 conftest$ac_exeext conftest.$ac_ext 10273LIBS=$ac_check_lib_save_LIBS 10274fi 10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10276$as_echo "$ac_cv_lib_socket_socket" >&6; } 10277if test "x$ac_cv_lib_socket_socket" = xyes; then : 10278 LIBS="-lsocket -lnsl $LIBS" 10279fi 10280 10281fi 10282 10283 10284NETLIBS="$LIBS" 10285LIBS="$save_LIBS" 10286 10287 10288# Some systems put ldexp and frexp in libm instead of libc; assume 10289# they're both in the same place. jcf-dump needs them. 10290save_LIBS="$LIBS" 10291LIBS= 10292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5 10293$as_echo_n "checking for library containing ldexp... " >&6; } 10294if ${ac_cv_search_ldexp+:} false; then : 10295 $as_echo_n "(cached) " >&6 10296else 10297 ac_func_search_save_LIBS=$LIBS 10298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10299/* end confdefs.h. */ 10300 10301/* Override any GCC internal prototype to avoid an error. 10302 Use char because int might match the return type of a GCC 10303 builtin and then its argument prototype would still apply. */ 10304#ifdef __cplusplus 10305extern "C" 10306#endif 10307char ldexp (); 10308int 10309main () 10310{ 10311return ldexp (); 10312 ; 10313 return 0; 10314} 10315_ACEOF 10316for ac_lib in '' m; do 10317 if test -z "$ac_lib"; then 10318 ac_res="none required" 10319 else 10320 ac_res=-l$ac_lib 10321 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10322 fi 10323 if ac_fn_cxx_try_link "$LINENO"; then : 10324 ac_cv_search_ldexp=$ac_res 10325fi 10326rm -f core conftest.err conftest.$ac_objext \ 10327 conftest$ac_exeext 10328 if ${ac_cv_search_ldexp+:} false; then : 10329 break 10330fi 10331done 10332if ${ac_cv_search_ldexp+:} false; then : 10333 10334else 10335 ac_cv_search_ldexp=no 10336fi 10337rm conftest.$ac_ext 10338LIBS=$ac_func_search_save_LIBS 10339fi 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5 10341$as_echo "$ac_cv_search_ldexp" >&6; } 10342ac_res=$ac_cv_search_ldexp 10343if test "$ac_res" != no; then : 10344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10345 10346fi 10347 10348LDEXP_LIB="$LIBS" 10349LIBS="$save_LIBS" 10350 10351 10352# Some systems need dlopen 10353save_LIBS="$LIBS" 10354LIBS= 10355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 10356$as_echo_n "checking for library containing dlopen... " >&6; } 10357if ${ac_cv_search_dlopen+:} false; then : 10358 $as_echo_n "(cached) " >&6 10359else 10360 ac_func_search_save_LIBS=$LIBS 10361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10362/* end confdefs.h. */ 10363 10364/* Override any GCC internal prototype to avoid an error. 10365 Use char because int might match the return type of a GCC 10366 builtin and then its argument prototype would still apply. */ 10367#ifdef __cplusplus 10368extern "C" 10369#endif 10370char dlopen (); 10371int 10372main () 10373{ 10374return dlopen (); 10375 ; 10376 return 0; 10377} 10378_ACEOF 10379for ac_lib in '' dl; do 10380 if test -z "$ac_lib"; then 10381 ac_res="none required" 10382 else 10383 ac_res=-l$ac_lib 10384 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10385 fi 10386 if ac_fn_cxx_try_link "$LINENO"; then : 10387 ac_cv_search_dlopen=$ac_res 10388fi 10389rm -f core conftest.err conftest.$ac_objext \ 10390 conftest$ac_exeext 10391 if ${ac_cv_search_dlopen+:} false; then : 10392 break 10393fi 10394done 10395if ${ac_cv_search_dlopen+:} false; then : 10396 10397else 10398 ac_cv_search_dlopen=no 10399fi 10400rm conftest.$ac_ext 10401LIBS=$ac_func_search_save_LIBS 10402fi 10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 10404$as_echo "$ac_cv_search_dlopen" >&6; } 10405ac_res=$ac_cv_search_dlopen 10406if test "$ac_res" != no; then : 10407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10408 10409fi 10410 10411DL_LIB="$LIBS" 10412LIBS="$save_LIBS" 10413 10414 10415# Use <inttypes.h> only if it exists, 10416# doesn't clash with <sys/types.h>, declares intmax_t and defines 10417# PRId64 10418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 10419$as_echo_n "checking for inttypes.h... " >&6; } 10420if ${gcc_cv_header_inttypes_h+:} false; then : 10421 $as_echo_n "(cached) " >&6 10422else 10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10424/* end confdefs.h. */ 10425#define __STDC_FORMAT_MACROS 10426#include <sys/types.h> 10427#include <inttypes.h> 10428int 10429main () 10430{ 10431intmax_t i = -1; 10432#ifndef PRId64 10433choke me 10434#endif 10435 ; 10436 return 0; 10437} 10438_ACEOF 10439if ac_fn_cxx_try_compile "$LINENO"; then : 10440 gcc_cv_header_inttypes_h=yes 10441else 10442 gcc_cv_header_inttypes_h=no 10443fi 10444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10445fi 10446 10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5 10448$as_echo "$gcc_cv_header_inttypes_h" >&6; } 10449if test $gcc_cv_header_inttypes_h = yes; then 10450 10451$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h 10452 10453fi 10454 10455# Look for the ZSTD package. 10456ZSTD_INCLUDE= 10457ZSTD_LIB= 10458 10459 10460ZSTD_CPPFLAGS= 10461ZSTD_LDFLAGS= 10462 10463 10464 10465# Check whether --with-zstd was given. 10466if test "${with_zstd+set}" = set; then : 10467 withval=$with_zstd; 10468fi 10469 10470 10471# Check whether --with-zstd-include was given. 10472if test "${with_zstd_include+set}" = set; then : 10473 withval=$with_zstd_include; 10474fi 10475 10476 10477# Check whether --with-zstd-lib was given. 10478if test "${with_zstd_lib+set}" = set; then : 10479 withval=$with_zstd_lib; 10480fi 10481 10482case "x$with_zstd" in 10483 x) ;; 10484 xno) 10485 ZSTD_INCLUDE= 10486 ZSTD_LIB= 10487 ;; 10488 *) ZSTD_INCLUDE=$with_zstd/include 10489 ZSTD_LIB=$with_zstd/lib 10490 ;; 10491esac 10492 10493if test "x$with_zstd" != xno; then 10494if test "x$with_zstd_include" != x; then 10495 ZSTD_INCLUDE=$with_zstd_include 10496fi 10497if test "x$with_zstd_lib" != x; then 10498 ZSTD_LIB=$with_zstd_lib 10499fi 10500if test "x$ZSTD_INCLUDE" != x \ 10501 && test "x$ZSTD_INCLUDE" != xno; then 10502 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE 10503fi 10504if test "x$ZSTD_LIB" != x \ 10505 && test "x$ZSTD_LIB" != xno; then 10506 ZSTD_LDFLAGS=-L$ZSTD_LIB 10507fi 10508 10509CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS" 10510LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS" 10511 10512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5 10513$as_echo_n "checking for zstd.h... " >&6; } 10514if ${gcc_cv_header_zstd_h+:} false; then : 10515 $as_echo_n "(cached) " >&6 10516else 10517 # We require version 1.3.0 or later. This is the first version that has 10518# ZSTD_getFrameContentSize. 10519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10520/* end confdefs.h. */ 10521#include <zstd.h> 10522#if ZSTD_VERSION_NUMBER < 10300 10523#error "need zstd 1.3.0 or better" 10524#endif 10525int 10526main () 10527{ 10528 10529 ; 10530 return 0; 10531} 10532_ACEOF 10533if ac_fn_cxx_try_compile "$LINENO"; then : 10534 gcc_cv_header_zstd_h=yes 10535else 10536 gcc_cv_header_zstd_h=no 10537fi 10538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10539fi 10540 10541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5 10542$as_echo "$gcc_cv_header_zstd_h" >&6; } 10543if test $gcc_cv_header_zstd_h = yes; then 10544 10545$as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h 10546 10547elif test "x$with_zstd" != x; then 10548 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5 10549fi 10550 10551# LTO can use zstd compression algorithm 10552save_LIBS="$LIBS" 10553LIBS= 10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5 10555$as_echo_n "checking for library containing ZSTD_compress... " >&6; } 10556if ${ac_cv_search_ZSTD_compress+:} false; then : 10557 $as_echo_n "(cached) " >&6 10558else 10559 ac_func_search_save_LIBS=$LIBS 10560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10561/* end confdefs.h. */ 10562 10563/* Override any GCC internal prototype to avoid an error. 10564 Use char because int might match the return type of a GCC 10565 builtin and then its argument prototype would still apply. */ 10566#ifdef __cplusplus 10567extern "C" 10568#endif 10569char ZSTD_compress (); 10570int 10571main () 10572{ 10573return ZSTD_compress (); 10574 ; 10575 return 0; 10576} 10577_ACEOF 10578for ac_lib in '' zstd; do 10579 if test -z "$ac_lib"; then 10580 ac_res="none required" 10581 else 10582 ac_res=-l$ac_lib 10583 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10584 fi 10585 if ac_fn_cxx_try_link "$LINENO"; then : 10586 ac_cv_search_ZSTD_compress=$ac_res 10587fi 10588rm -f core conftest.err conftest.$ac_objext \ 10589 conftest$ac_exeext 10590 if ${ac_cv_search_ZSTD_compress+:} false; then : 10591 break 10592fi 10593done 10594if ${ac_cv_search_ZSTD_compress+:} false; then : 10595 10596else 10597 ac_cv_search_ZSTD_compress=no 10598fi 10599rm conftest.$ac_ext 10600LIBS=$ac_func_search_save_LIBS 10601fi 10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5 10603$as_echo "$ac_cv_search_ZSTD_compress" >&6; } 10604ac_res=$ac_cv_search_ZSTD_compress 10605if test "$ac_res" != no; then : 10606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10607 10608fi 10609 10610ZSTD_LIB="$LIBS" 10611LIBS="$save_LIBS" 10612 10613fi 10614 10615 10616 10617for ac_func in times clock kill getrlimit setrlimit atoq \ 10618 popen sysconf strsignal getrusage nl_langinfo \ 10619 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \ 10620 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo mallinfo2 fstatat 10621do : 10622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10623ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10624if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10625 cat >>confdefs.h <<_ACEOF 10626#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10627_ACEOF 10628 10629fi 10630done 10631 10632 10633if test x$ac_cv_func_mbstowcs = xyes; then 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5 10635$as_echo_n "checking whether mbstowcs works... " >&6; } 10636if ${gcc_cv_func_mbstowcs_works+:} false; then : 10637 $as_echo_n "(cached) " >&6 10638else 10639 if test "$cross_compiling" = yes; then : 10640 gcc_cv_func_mbstowcs_works=yes 10641else 10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10643/* end confdefs.h. */ 10644#include <stdlib.h> 10645int main() 10646{ 10647 mbstowcs(0, "", 0); 10648 return 0; 10649} 10650_ACEOF 10651if ac_fn_cxx_try_run "$LINENO"; then : 10652 gcc_cv_func_mbstowcs_works=yes 10653else 10654 gcc_cv_func_mbstowcs_works=no 10655fi 10656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10657 conftest.$ac_objext conftest.beam conftest.$ac_ext 10658fi 10659 10660fi 10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5 10662$as_echo "$gcc_cv_func_mbstowcs_works" >&6; } 10663 if test x$gcc_cv_func_mbstowcs_works = xyes; then 10664 10665$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h 10666 10667 fi 10668fi 10669 10670ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 10671if test "x$ac_cv_type_ssize_t" = xyes; then : 10672 10673else 10674 10675cat >>confdefs.h <<_ACEOF 10676#define ssize_t int 10677_ACEOF 10678 10679fi 10680 10681ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default" 10682if test "x$ac_cv_type_caddr_t" = xyes; then : 10683 10684else 10685 10686cat >>confdefs.h <<_ACEOF 10687#define caddr_t char * 10688_ACEOF 10689 10690fi 10691 10692ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h 10693" 10694if test "x$ac_cv_type_sighander_t" = xyes; then : 10695 10696$as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h 10697 10698fi 10699 10700 10701 10702ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" 10703if test "x$ac_cv_header_sys_mman_h" = xyes; then : 10704 gcc_header_sys_mman_h=yes 10705else 10706 gcc_header_sys_mman_h=no 10707fi 10708 10709ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 10710if test "x$ac_cv_func_mmap" = xyes; then : 10711 gcc_func_mmap=yes 10712else 10713 gcc_func_mmap=no 10714fi 10715 10716if test "$gcc_header_sys_mman_h" != yes \ 10717 || test "$gcc_func_mmap" != yes; then 10718 gcc_cv_func_mmap_file=no 10719 gcc_cv_func_mmap_dev_zero=no 10720 gcc_cv_func_mmap_anon=no 10721else 10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5 10723$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; } 10724if ${gcc_cv_func_mmap_file+:} false; then : 10725 $as_echo_n "(cached) " >&6 10726else 10727 # Add a system to this blacklist if 10728 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 10729 # memory area containing the same data that you'd get if you applied 10730 # read() to the same fd. The only system known to have a problem here 10731 # is VMS, where text files have record structure. 10732 case "$host_os" in 10733 *vms* | ultrix*) 10734 gcc_cv_func_mmap_file=no ;; 10735 *) 10736 gcc_cv_func_mmap_file=yes;; 10737 esac 10738fi 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5 10740$as_echo "$gcc_cv_func_mmap_file" >&6; } 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5 10742$as_echo_n "checking whether mmap from /dev/zero works... " >&6; } 10743if ${gcc_cv_func_mmap_dev_zero+:} false; then : 10744 $as_echo_n "(cached) " >&6 10745else 10746 # Add a system to this blacklist if it has mmap() but /dev/zero 10747 # does not exist, or if mmapping /dev/zero does not give anonymous 10748 # zeroed pages with both the following properties: 10749 # 1. If you map N consecutive pages in with one call, and then 10750 # unmap any subset of those pages, the pages that were not 10751 # explicitly unmapped remain accessible. 10752 # 2. If you map two adjacent blocks of memory and then unmap them 10753 # both at once, they must both go away. 10754 # Systems known to be in this category are Windows (all variants), 10755 # VMS, and Darwin. 10756 case "$host_os" in 10757 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) 10758 gcc_cv_func_mmap_dev_zero=no ;; 10759 *) 10760 gcc_cv_func_mmap_dev_zero=yes;; 10761 esac 10762fi 10763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5 10764$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; } 10765 10766 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5 10768$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; } 10769if ${gcc_cv_decl_map_anon+:} false; then : 10770 $as_echo_n "(cached) " >&6 10771else 10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10773/* end confdefs.h. */ 10774#include <sys/types.h> 10775#include <sys/mman.h> 10776#include <unistd.h> 10777 10778#ifndef MAP_ANONYMOUS 10779#define MAP_ANONYMOUS MAP_ANON 10780#endif 10781 10782int 10783main () 10784{ 10785int n = MAP_ANONYMOUS; 10786 ; 10787 return 0; 10788} 10789_ACEOF 10790if ac_fn_cxx_try_compile "$LINENO"; then : 10791 gcc_cv_decl_map_anon=yes 10792else 10793 gcc_cv_decl_map_anon=no 10794fi 10795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10796fi 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5 10798$as_echo "$gcc_cv_decl_map_anon" >&6; } 10799 10800 if test $gcc_cv_decl_map_anon = no; then 10801 gcc_cv_func_mmap_anon=no 10802 else 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5 10804$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; } 10805if ${gcc_cv_func_mmap_anon+:} false; then : 10806 $as_echo_n "(cached) " >&6 10807else 10808 # Add a system to this blacklist if it has mmap() and MAP_ANON or 10809 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 10810 # doesn't give anonymous zeroed pages with the same properties listed 10811 # above for use of /dev/zero. 10812 # Systems known to be in this category are Windows, VMS, and SCO Unix. 10813 case "$host_os" in 10814 *vms* | cygwin* | pe | mingw* | sco* | udk* ) 10815 gcc_cv_func_mmap_anon=no ;; 10816 *) 10817 gcc_cv_func_mmap_anon=yes;; 10818 esac 10819fi 10820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5 10821$as_echo "$gcc_cv_func_mmap_anon" >&6; } 10822 fi 10823fi 10824 10825if test $gcc_cv_func_mmap_file = yes; then 10826 10827$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h 10828 10829fi 10830if test $gcc_cv_func_mmap_dev_zero = yes; then 10831 10832$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h 10833 10834fi 10835if test $gcc_cv_func_mmap_anon = yes; then 10836 10837$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h 10838 10839fi 10840 10841 10842case "${host}" in 10843*-*-*vms*) 10844 # Under VMS, vfork works very differently than on Unix. The standard test 10845 # won't work, and it isn't easily adaptable. It makes more sense to 10846 # just force it. 10847 ac_cv_func_vfork_works=yes 10848 ;; 10849esac 10850ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10851if test "x$ac_cv_type_pid_t" = xyes; then : 10852 10853else 10854 10855cat >>confdefs.h <<_ACEOF 10856#define pid_t int 10857_ACEOF 10858 10859fi 10860 10861for ac_header in vfork.h 10862do : 10863 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h" 10864if test "x$ac_cv_header_vfork_h" = xyes; then : 10865 cat >>confdefs.h <<_ACEOF 10866#define HAVE_VFORK_H 1 10867_ACEOF 10868 10869fi 10870done 10871 10872for ac_func in fork vfork 10873do : 10874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10875ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10876if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10877 cat >>confdefs.h <<_ACEOF 10878#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10879_ACEOF 10880 10881fi 10882done 10883 10884if test "x$ac_cv_func_fork" = xyes; then 10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 10886$as_echo_n "checking for working fork... " >&6; } 10887if ${ac_cv_func_fork_works+:} false; then : 10888 $as_echo_n "(cached) " >&6 10889else 10890 if test "$cross_compiling" = yes; then : 10891 ac_cv_func_fork_works=cross 10892else 10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10894/* end confdefs.h. */ 10895$ac_includes_default 10896int 10897main () 10898{ 10899 10900 /* By Ruediger Kuhlmann. */ 10901 return fork () < 0; 10902 10903 ; 10904 return 0; 10905} 10906_ACEOF 10907if ac_fn_cxx_try_run "$LINENO"; then : 10908 ac_cv_func_fork_works=yes 10909else 10910 ac_cv_func_fork_works=no 10911fi 10912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10913 conftest.$ac_objext conftest.beam conftest.$ac_ext 10914fi 10915 10916fi 10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 10918$as_echo "$ac_cv_func_fork_works" >&6; } 10919 10920else 10921 ac_cv_func_fork_works=$ac_cv_func_fork 10922fi 10923if test "x$ac_cv_func_fork_works" = xcross; then 10924 case $host in 10925 *-*-amigaos* | *-*-msdosdjgpp*) 10926 # Override, as these systems have only a dummy fork() stub 10927 ac_cv_func_fork_works=no 10928 ;; 10929 *) 10930 ac_cv_func_fork_works=yes 10931 ;; 10932 esac 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 10934$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 10935fi 10936ac_cv_func_vfork_works=$ac_cv_func_vfork 10937if test "x$ac_cv_func_vfork" = xyes; then 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 10939$as_echo_n "checking for working vfork... " >&6; } 10940if ${ac_cv_func_vfork_works+:} false; then : 10941 $as_echo_n "(cached) " >&6 10942else 10943 if test "$cross_compiling" = yes; then : 10944 ac_cv_func_vfork_works=cross 10945else 10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947/* end confdefs.h. */ 10948/* Thanks to Paul Eggert for this test. */ 10949$ac_includes_default 10950#include <sys/wait.h> 10951#ifdef HAVE_VFORK_H 10952# include <vfork.h> 10953#endif 10954/* On some sparc systems, changes by the child to local and incoming 10955 argument registers are propagated back to the parent. The compiler 10956 is told about this with #include <vfork.h>, but some compilers 10957 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 10958 static variable whose address is put into a register that is 10959 clobbered by the vfork. */ 10960static void 10961#ifdef __cplusplus 10962sparc_address_test (int arg) 10963# else 10964sparc_address_test (arg) int arg; 10965#endif 10966{ 10967 static pid_t child; 10968 if (!child) { 10969 child = vfork (); 10970 if (child < 0) { 10971 perror ("vfork"); 10972 _exit(2); 10973 } 10974 if (!child) { 10975 arg = getpid(); 10976 write(-1, "", 0); 10977 _exit (arg); 10978 } 10979 } 10980} 10981 10982int 10983main () 10984{ 10985 pid_t parent = getpid (); 10986 pid_t child; 10987 10988 sparc_address_test (0); 10989 10990 child = vfork (); 10991 10992 if (child == 0) { 10993 /* Here is another test for sparc vfork register problems. This 10994 test uses lots of local variables, at least as many local 10995 variables as main has allocated so far including compiler 10996 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 10997 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 10998 reuse the register of parent for one of the local variables, 10999 since it will think that parent can't possibly be used any more 11000 in this routine. Assigning to the local variable will thus 11001 munge parent in the parent process. */ 11002 pid_t 11003 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 11004 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 11005 /* Convince the compiler that p..p7 are live; otherwise, it might 11006 use the same hardware register for all 8 local variables. */ 11007 if (p != p1 || p != p2 || p != p3 || p != p4 11008 || p != p5 || p != p6 || p != p7) 11009 _exit(1); 11010 11011 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 11012 from child file descriptors. If the child closes a descriptor 11013 before it execs or exits, this munges the parent's descriptor 11014 as well. Test for this by closing stdout in the child. */ 11015 _exit(close(fileno(stdout)) != 0); 11016 } else { 11017 int status; 11018 struct stat st; 11019 11020 while (wait(&status) != child) 11021 ; 11022 return ( 11023 /* Was there some problem with vforking? */ 11024 child < 0 11025 11026 /* Did the child fail? (This shouldn't happen.) */ 11027 || status 11028 11029 /* Did the vfork/compiler bug occur? */ 11030 || parent != getpid() 11031 11032 /* Did the file descriptor bug occur? */ 11033 || fstat(fileno(stdout), &st) != 0 11034 ); 11035 } 11036} 11037_ACEOF 11038if ac_fn_cxx_try_run "$LINENO"; then : 11039 ac_cv_func_vfork_works=yes 11040else 11041 ac_cv_func_vfork_works=no 11042fi 11043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11044 conftest.$ac_objext conftest.beam conftest.$ac_ext 11045fi 11046 11047fi 11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 11049$as_echo "$ac_cv_func_vfork_works" >&6; } 11050 11051fi; 11052if test "x$ac_cv_func_fork_works" = xcross; then 11053 ac_cv_func_vfork_works=$ac_cv_func_vfork 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 11055$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 11056fi 11057 11058if test "x$ac_cv_func_vfork_works" = xyes; then 11059 11060$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 11061 11062else 11063 11064$as_echo "#define vfork fork" >>confdefs.h 11065 11066fi 11067if test "x$ac_cv_func_fork_works" = xyes; then 11068 11069$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 11070 11071fi 11072 11073 11074 11075 if test "X$prefix" = "XNONE"; then 11076 acl_final_prefix="$ac_default_prefix" 11077 else 11078 acl_final_prefix="$prefix" 11079 fi 11080 if test "X$exec_prefix" = "XNONE"; then 11081 acl_final_exec_prefix='${prefix}' 11082 else 11083 acl_final_exec_prefix="$exec_prefix" 11084 fi 11085 acl_save_prefix="$prefix" 11086 prefix="$acl_final_prefix" 11087 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 11088 prefix="$acl_save_prefix" 11089 11090 11091# Check whether --with-gnu-ld was given. 11092if test "${with_gnu_ld+set}" = set; then : 11093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11094else 11095 with_gnu_ld=no 11096fi 11097 11098# Prepare PATH_SEPARATOR. 11099# The user is always right. 11100if test "${PATH_SEPARATOR+set}" != set; then 11101 echo "#! /bin/sh" >conf$$.sh 11102 echo "exit 0" >>conf$$.sh 11103 chmod +x conf$$.sh 11104 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11105 PATH_SEPARATOR=';' 11106 else 11107 PATH_SEPARATOR=: 11108 fi 11109 rm -f conf$$.sh 11110fi 11111ac_prog=ld 11112if test "$GCC" = yes; then 11113 # Check if gcc -print-prog-name=ld gives a path. 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 11115$as_echo_n "checking for ld used by GCC... " >&6; } 11116 case $host in 11117 *-*-mingw*) 11118 # gcc leaves a trailing carriage return which upsets mingw 11119 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11120 *) 11121 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11122 esac 11123 case $ac_prog in 11124 # Accept absolute paths. 11125 [\\/]* | [A-Za-z]:[\\/]*) 11126 re_direlt='/[^/][^/]*/\.\./' 11127 # Canonicalize the path of ld 11128 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 11129 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11130 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 11131 done 11132 test -z "$LD" && LD="$ac_prog" 11133 ;; 11134 "") 11135 # If it fails, then pretend we aren't using GCC. 11136 ac_prog=ld 11137 ;; 11138 *) 11139 # If it is relative, then search for the first ld in PATH. 11140 with_gnu_ld=unknown 11141 ;; 11142 esac 11143elif test "$with_gnu_ld" = yes; then 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11145$as_echo_n "checking for GNU ld... " >&6; } 11146else 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11148$as_echo_n "checking for non-GNU ld... " >&6; } 11149fi 11150if ${acl_cv_path_LD+:} false; then : 11151 $as_echo_n "(cached) " >&6 11152else 11153 if test -z "$LD"; then 11154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 11155 for ac_dir in $PATH; do 11156 test -z "$ac_dir" && ac_dir=. 11157 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11158 acl_cv_path_LD="$ac_dir/$ac_prog" 11159 # Check to see if the program is GNU ld. I'd rather use --version, 11160 # but apparently some GNU ld's only accept -v. 11161 # Break only if it was the GNU/non-GNU ld that we prefer. 11162 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 11163 test "$with_gnu_ld" != no && break 11164 else 11165 test "$with_gnu_ld" != yes && break 11166 fi 11167 fi 11168 done 11169 IFS="$ac_save_ifs" 11170else 11171 acl_cv_path_LD="$LD" # Let the user override the test with a path. 11172fi 11173fi 11174 11175LD="$acl_cv_path_LD" 11176if test -n "$LD"; then 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11178$as_echo "$LD" >&6; } 11179else 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11181$as_echo "no" >&6; } 11182fi 11183test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11185$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11186if ${acl_cv_prog_gnu_ld+:} false; then : 11187 $as_echo_n "(cached) " >&6 11188else 11189 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11190if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 11191 acl_cv_prog_gnu_ld=yes 11192else 11193 acl_cv_prog_gnu_ld=no 11194fi 11195fi 11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 11197$as_echo "$acl_cv_prog_gnu_ld" >&6; } 11198with_gnu_ld=$acl_cv_prog_gnu_ld 11199 11200 11201 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 11203$as_echo_n "checking for shared library run path origin... " >&6; } 11204if ${acl_cv_rpath+:} false; then : 11205 $as_echo_n "(cached) " >&6 11206else 11207 11208 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 11209 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 11210 . ./conftest.sh 11211 rm -f ./conftest.sh 11212 acl_cv_rpath=done 11213 11214fi 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 11216$as_echo "$acl_cv_rpath" >&6; } 11217 wl="$acl_cv_wl" 11218 libext="$acl_cv_libext" 11219 shlibext="$acl_cv_shlibext" 11220 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 11221 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 11222 hardcode_direct="$acl_cv_hardcode_direct" 11223 hardcode_minus_L="$acl_cv_hardcode_minus_L" 11224 # Check whether --enable-rpath was given. 11225if test "${enable_rpath+set}" = set; then : 11226 enableval=$enable_rpath; : 11227else 11228 enable_rpath=yes 11229fi 11230 11231 11232 11233 11234 11235 11236 11237 11238 use_additional=yes 11239 11240 acl_save_prefix="$prefix" 11241 prefix="$acl_final_prefix" 11242 acl_save_exec_prefix="$exec_prefix" 11243 exec_prefix="$acl_final_exec_prefix" 11244 11245 eval additional_includedir=\"$includedir\" 11246 eval additional_libdir=\"$libdir\" 11247 11248 exec_prefix="$acl_save_exec_prefix" 11249 prefix="$acl_save_prefix" 11250 11251 11252# Check whether --with-libiconv-prefix was given. 11253if test "${with_libiconv_prefix+set}" = set; then : 11254 withval=$with_libiconv_prefix; 11255 if test "X$withval" = "Xno"; then 11256 use_additional=no 11257 else 11258 if test "X$withval" = "X"; then 11259 11260 acl_save_prefix="$prefix" 11261 prefix="$acl_final_prefix" 11262 acl_save_exec_prefix="$exec_prefix" 11263 exec_prefix="$acl_final_exec_prefix" 11264 11265 eval additional_includedir=\"$includedir\" 11266 eval additional_libdir=\"$libdir\" 11267 11268 exec_prefix="$acl_save_exec_prefix" 11269 prefix="$acl_save_prefix" 11270 11271 else 11272 additional_includedir="$withval/include" 11273 additional_libdir="$withval/lib" 11274 fi 11275 fi 11276 11277fi 11278 11279 11280# Check whether --with-libiconv-type was given. 11281if test "${with_libiconv_type+set}" = set; then : 11282 withval=$with_libiconv_type; with_libiconv_type=$withval 11283else 11284 with_libiconv_type=auto 11285fi 11286 11287 lib_type=`eval echo \$with_libiconv_type` 11288 11289 LIBICONV= 11290 LTLIBICONV= 11291 INCICONV= 11292 rpathdirs= 11293 ltrpathdirs= 11294 names_already_handled= 11295 names_next_round='iconv ' 11296 while test -n "$names_next_round"; do 11297 names_this_round="$names_next_round" 11298 names_next_round= 11299 for name in $names_this_round; do 11300 already_handled= 11301 for n in $names_already_handled; do 11302 if test "$n" = "$name"; then 11303 already_handled=yes 11304 break 11305 fi 11306 done 11307 if test -z "$already_handled"; then 11308 names_already_handled="$names_already_handled $name" 11309 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 11310 eval value=\"\$HAVE_LIB$uppername\" 11311 if test -n "$value"; then 11312 if test "$value" = yes; then 11313 eval value=\"\$LIB$uppername\" 11314 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 11315 eval value=\"\$LTLIB$uppername\" 11316 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 11317 else 11318 : 11319 fi 11320 else 11321 found_dir= 11322 found_la= 11323 found_so= 11324 found_a= 11325 if test $use_additional = yes; then 11326 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 11327 found_dir="$additional_libdir" 11328 found_so="$additional_libdir/lib$name.$shlibext" 11329 if test -f "$additional_libdir/lib$name.la"; then 11330 found_la="$additional_libdir/lib$name.la" 11331 fi 11332 elif test x$lib_type != xshared; then 11333 if test -f "$additional_libdir/lib$name.$libext"; then 11334 found_dir="$additional_libdir" 11335 found_a="$additional_libdir/lib$name.$libext" 11336 if test -f "$additional_libdir/lib$name.la"; then 11337 found_la="$additional_libdir/lib$name.la" 11338 fi 11339 fi 11340 fi 11341 fi 11342 if test "X$found_dir" = "X"; then 11343 for x in $LDFLAGS $LTLIBICONV; do 11344 11345 acl_save_prefix="$prefix" 11346 prefix="$acl_final_prefix" 11347 acl_save_exec_prefix="$exec_prefix" 11348 exec_prefix="$acl_final_exec_prefix" 11349 eval x=\"$x\" 11350 exec_prefix="$acl_save_exec_prefix" 11351 prefix="$acl_save_prefix" 11352 11353 case "$x" in 11354 -L*) 11355 dir=`echo "X$x" | sed -e 's/^X-L//'` 11356 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 11357 found_dir="$dir" 11358 found_so="$dir/lib$name.$shlibext" 11359 if test -f "$dir/lib$name.la"; then 11360 found_la="$dir/lib$name.la" 11361 fi 11362 elif test x$lib_type != xshared; then 11363 if test -f "$dir/lib$name.$libext"; then 11364 found_dir="$dir" 11365 found_a="$dir/lib$name.$libext" 11366 if test -f "$dir/lib$name.la"; then 11367 found_la="$dir/lib$name.la" 11368 fi 11369 fi 11370 fi 11371 ;; 11372 esac 11373 if test "X$found_dir" != "X"; then 11374 break 11375 fi 11376 done 11377 fi 11378 if test "X$found_dir" != "X"; then 11379 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11380 if test "X$found_so" != "X"; then 11381 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 11382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11383 else 11384 haveit= 11385 for x in $ltrpathdirs; do 11386 if test "X$x" = "X$found_dir"; then 11387 haveit=yes 11388 break 11389 fi 11390 done 11391 if test -z "$haveit"; then 11392 ltrpathdirs="$ltrpathdirs $found_dir" 11393 fi 11394 if test "$hardcode_direct" = yes; then 11395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11396 else 11397 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 11398 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11399 haveit= 11400 for x in $rpathdirs; do 11401 if test "X$x" = "X$found_dir"; then 11402 haveit=yes 11403 break 11404 fi 11405 done 11406 if test -z "$haveit"; then 11407 rpathdirs="$rpathdirs $found_dir" 11408 fi 11409 else 11410 haveit= 11411 for x in $LDFLAGS $LIBICONV; do 11412 11413 acl_save_prefix="$prefix" 11414 prefix="$acl_final_prefix" 11415 acl_save_exec_prefix="$exec_prefix" 11416 exec_prefix="$acl_final_exec_prefix" 11417 eval x=\"$x\" 11418 exec_prefix="$acl_save_exec_prefix" 11419 prefix="$acl_save_prefix" 11420 11421 if test "X$x" = "X-L$found_dir"; then 11422 haveit=yes 11423 break 11424 fi 11425 done 11426 if test -z "$haveit"; then 11427 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11428 fi 11429 if test "$hardcode_minus_L" != no; then 11430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11431 else 11432 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11433 fi 11434 fi 11435 fi 11436 fi 11437 else 11438 if test "X$found_a" != "X"; then 11439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11440 else 11441 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11442 fi 11443 fi 11444 additional_includedir= 11445 case "$found_dir" in 11446 */lib | */lib/) 11447 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 11448 additional_includedir="$basedir/include" 11449 ;; 11450 esac 11451 if test "X$additional_includedir" != "X"; then 11452 if test "X$additional_includedir" != "X/usr/include"; then 11453 haveit= 11454 if test "X$additional_includedir" = "X/usr/local/include"; then 11455 if test -n "$GCC"; then 11456 case $host_os in 11457 linux*) haveit=yes;; 11458 esac 11459 fi 11460 fi 11461 if test -z "$haveit"; then 11462 for x in $CPPFLAGS $INCICONV; do 11463 11464 acl_save_prefix="$prefix" 11465 prefix="$acl_final_prefix" 11466 acl_save_exec_prefix="$exec_prefix" 11467 exec_prefix="$acl_final_exec_prefix" 11468 eval x=\"$x\" 11469 exec_prefix="$acl_save_exec_prefix" 11470 prefix="$acl_save_prefix" 11471 11472 if test "X$x" = "X-I$additional_includedir"; then 11473 haveit=yes 11474 break 11475 fi 11476 done 11477 if test -z "$haveit"; then 11478 if test -d "$additional_includedir"; then 11479 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11480 fi 11481 fi 11482 fi 11483 fi 11484 fi 11485 if test -n "$found_la"; then 11486 save_libdir="$libdir" 11487 case "$found_la" in 11488 */* | *\\*) . "$found_la" ;; 11489 *) . "./$found_la" ;; 11490 esac 11491 libdir="$save_libdir" 11492 for dep in $dependency_libs; do 11493 case "$dep" in 11494 -L*) 11495 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11496 if test "X$additional_libdir" != "X/usr/lib"; then 11497 haveit= 11498 if test "X$additional_libdir" = "X/usr/local/lib"; then 11499 if test -n "$GCC"; then 11500 case $host_os in 11501 linux*) haveit=yes;; 11502 esac 11503 fi 11504 fi 11505 if test -z "$haveit"; then 11506 haveit= 11507 for x in $LDFLAGS $LIBICONV; do 11508 11509 acl_save_prefix="$prefix" 11510 prefix="$acl_final_prefix" 11511 acl_save_exec_prefix="$exec_prefix" 11512 exec_prefix="$acl_final_exec_prefix" 11513 eval x=\"$x\" 11514 exec_prefix="$acl_save_exec_prefix" 11515 prefix="$acl_save_prefix" 11516 11517 if test "X$x" = "X-L$additional_libdir"; then 11518 haveit=yes 11519 break 11520 fi 11521 done 11522 if test -z "$haveit"; then 11523 if test -d "$additional_libdir"; then 11524 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 11525 fi 11526 fi 11527 haveit= 11528 for x in $LDFLAGS $LTLIBICONV; do 11529 11530 acl_save_prefix="$prefix" 11531 prefix="$acl_final_prefix" 11532 acl_save_exec_prefix="$exec_prefix" 11533 exec_prefix="$acl_final_exec_prefix" 11534 eval x=\"$x\" 11535 exec_prefix="$acl_save_exec_prefix" 11536 prefix="$acl_save_prefix" 11537 11538 if test "X$x" = "X-L$additional_libdir"; then 11539 haveit=yes 11540 break 11541 fi 11542 done 11543 if test -z "$haveit"; then 11544 if test -d "$additional_libdir"; then 11545 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 11546 fi 11547 fi 11548 fi 11549 fi 11550 ;; 11551 -R*) 11552 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11553 if test "$enable_rpath" != no; then 11554 haveit= 11555 for x in $rpathdirs; do 11556 if test "X$x" = "X$dir"; then 11557 haveit=yes 11558 break 11559 fi 11560 done 11561 if test -z "$haveit"; then 11562 rpathdirs="$rpathdirs $dir" 11563 fi 11564 haveit= 11565 for x in $ltrpathdirs; do 11566 if test "X$x" = "X$dir"; then 11567 haveit=yes 11568 break 11569 fi 11570 done 11571 if test -z "$haveit"; then 11572 ltrpathdirs="$ltrpathdirs $dir" 11573 fi 11574 fi 11575 ;; 11576 -l*) 11577 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11578 ;; 11579 *.la) 11580 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11581 ;; 11582 *) 11583 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 11584 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 11585 ;; 11586 esac 11587 done 11588 fi 11589 else 11590 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 11591 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 11593 else 11594 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 11595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 11596 fi 11597 fi 11598 fi 11599 fi 11600 done 11601 done 11602 if test "X$rpathdirs" != "X"; then 11603 if test -n "$hardcode_libdir_separator"; then 11604 alldirs= 11605 for found_dir in $rpathdirs; do 11606 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11607 done 11608 acl_save_libdir="$libdir" 11609 libdir="$alldirs" 11610 eval flag=\"$hardcode_libdir_flag_spec\" 11611 libdir="$acl_save_libdir" 11612 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11613 else 11614 for found_dir in $rpathdirs; do 11615 acl_save_libdir="$libdir" 11616 libdir="$found_dir" 11617 eval flag=\"$hardcode_libdir_flag_spec\" 11618 libdir="$acl_save_libdir" 11619 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11620 done 11621 fi 11622 fi 11623 if test "X$ltrpathdirs" != "X"; then 11624 for found_dir in $ltrpathdirs; do 11625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 11626 done 11627 fi 11628 11629 11630 11631 11632 11633 11634 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 11636$as_echo_n "checking for iconv... " >&6; } 11637if ${am_cv_func_iconv+:} false; then : 11638 $as_echo_n "(cached) " >&6 11639else 11640 11641 am_cv_func_iconv="no, consider installing GNU libiconv" 11642 am_cv_lib_iconv=no 11643 am_save_CPPFLAGS="$CPPFLAGS" 11644 CPPFLAGS="$CPPFLAGS $INCICONV" 11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647#include <stdlib.h> 11648#include <iconv.h> 11649int 11650main () 11651{ 11652iconv_t cd = iconv_open("",""); 11653 iconv(cd,NULL,NULL,NULL,NULL); 11654 iconv_close(cd); 11655 ; 11656 return 0; 11657} 11658_ACEOF 11659if ac_fn_cxx_try_link "$LINENO"; then : 11660 am_cv_func_iconv=yes 11661fi 11662rm -f core conftest.err conftest.$ac_objext \ 11663 conftest$ac_exeext conftest.$ac_ext 11664 CPPFLAGS="$am_save_CPPFLAGS" 11665 11666 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then 11667 for _libs in .libs _libs; do 11668 am_save_CPPFLAGS="$CPPFLAGS" 11669 am_save_LIBS="$LIBS" 11670 CPPFLAGS="$CPPFLAGS -I../libiconv/include" 11671 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" 11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11673/* end confdefs.h. */ 11674#include <stdlib.h> 11675#include <iconv.h> 11676int 11677main () 11678{ 11679iconv_t cd = iconv_open("",""); 11680 iconv(cd,NULL,NULL,NULL,NULL); 11681 iconv_close(cd); 11682 ; 11683 return 0; 11684} 11685_ACEOF 11686if ac_fn_cxx_try_link "$LINENO"; then : 11687 INCICONV="-I../libiconv/include" 11688 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a 11689 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la 11690 am_cv_lib_iconv=yes 11691 am_cv_func_iconv=yes 11692fi 11693rm -f core conftest.err conftest.$ac_objext \ 11694 conftest$ac_exeext conftest.$ac_ext 11695 CPPFLAGS="$am_save_CPPFLAGS" 11696 LIBS="$am_save_LIBS" 11697 if test "$am_cv_func_iconv" = "yes"; then 11698 break 11699 fi 11700 done 11701 fi 11702 11703 if test "$am_cv_func_iconv" != yes; then 11704 am_save_CPPFLAGS="$CPPFLAGS" 11705 am_save_LIBS="$LIBS" 11706 CPPFLAGS="$CPPFLAGS $INCICONV" 11707 LIBS="$LIBS $LIBICONV" 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710#include <stdlib.h> 11711#include <iconv.h> 11712int 11713main () 11714{ 11715iconv_t cd = iconv_open("",""); 11716 iconv(cd,NULL,NULL,NULL,NULL); 11717 iconv_close(cd); 11718 ; 11719 return 0; 11720} 11721_ACEOF 11722if ac_fn_cxx_try_link "$LINENO"; then : 11723 am_cv_lib_iconv=yes 11724 am_cv_func_iconv=yes 11725fi 11726rm -f core conftest.err conftest.$ac_objext \ 11727 conftest$ac_exeext conftest.$ac_ext 11728 CPPFLAGS="$am_save_CPPFLAGS" 11729 LIBS="$am_save_LIBS" 11730 fi 11731 11732fi 11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 11734$as_echo "$am_cv_func_iconv" >&6; } 11735 if test "$am_cv_func_iconv" = yes; then 11736 11737$as_echo "#define HAVE_ICONV 1" >>confdefs.h 11738 11739 fi 11740 if test "$am_cv_lib_iconv" = yes; then 11741 11742 for element in $INCICONV; do 11743 haveit= 11744 for x in $CPPFLAGS; do 11745 11746 acl_save_prefix="$prefix" 11747 prefix="$acl_final_prefix" 11748 acl_save_exec_prefix="$exec_prefix" 11749 exec_prefix="$acl_final_exec_prefix" 11750 eval x=\"$x\" 11751 exec_prefix="$acl_save_exec_prefix" 11752 prefix="$acl_save_prefix" 11753 11754 if test "X$x" = "X$element"; then 11755 haveit=yes 11756 break 11757 fi 11758 done 11759 if test -z "$haveit"; then 11760 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11761 fi 11762 done 11763 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 11765$as_echo_n "checking how to link with libiconv... " >&6; } 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 11767$as_echo "$LIBICONV" >&6; } 11768 else 11769 LIBICONV= 11770 LTLIBICONV= 11771 fi 11772 11773 11774 11775 if test "$am_cv_func_iconv" = yes; then 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 11777$as_echo_n "checking for iconv declaration... " >&6; } 11778 if ${am_cv_proto_iconv+:} false; then : 11779 $as_echo_n "(cached) " >&6 11780else 11781 11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11783/* end confdefs.h. */ 11784 11785#include <stdlib.h> 11786#include <iconv.h> 11787extern 11788#ifdef __cplusplus 11789"C" 11790#endif 11791#if defined(__STDC__) || defined(__cplusplus) 11792size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 11793#else 11794size_t iconv(); 11795#endif 11796 11797int 11798main () 11799{ 11800 11801 ; 11802 return 0; 11803} 11804_ACEOF 11805if ac_fn_cxx_try_compile "$LINENO"; then : 11806 am_cv_proto_iconv_arg1="" 11807else 11808 am_cv_proto_iconv_arg1="const" 11809fi 11810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11811 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 11812fi 11813 11814 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 11816 }$am_cv_proto_iconv" >&5 11817$as_echo "${ac_t:- 11818 }$am_cv_proto_iconv" >&6; } 11819 11820cat >>confdefs.h <<_ACEOF 11821#define ICONV_CONST $am_cv_proto_iconv_arg1 11822_ACEOF 11823 11824 fi 11825 11826 11827# Until we have in-tree GNU iconv: 11828LIBICONV_DEP= 11829if test -f "$LTLIBICONV"; then 11830 LIBICONV_DEP=$LTLIBICONV 11831fi 11832 11833 11834 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 11836$as_echo_n "checking for LC_MESSAGES... " >&6; } 11837if ${am_cv_val_LC_MESSAGES+:} false; then : 11838 $as_echo_n "(cached) " >&6 11839else 11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11841/* end confdefs.h. */ 11842#include <locale.h> 11843int 11844main () 11845{ 11846return LC_MESSAGES 11847 ; 11848 return 0; 11849} 11850_ACEOF 11851if ac_fn_cxx_try_link "$LINENO"; then : 11852 am_cv_val_LC_MESSAGES=yes 11853else 11854 am_cv_val_LC_MESSAGES=no 11855fi 11856rm -f core conftest.err conftest.$ac_objext \ 11857 conftest$ac_exeext conftest.$ac_ext 11858fi 11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 11860$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 11861 if test $am_cv_val_LC_MESSAGES = yes; then 11862 11863$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 11864 11865 fi 11866 11867 11868 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 11870$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 11871if ${am_cv_langinfo_codeset+:} false; then : 11872 $as_echo_n "(cached) " >&6 11873else 11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11875/* end confdefs.h. */ 11876#include <langinfo.h> 11877int 11878main () 11879{ 11880char* cs = nl_langinfo(CODESET); 11881 ; 11882 return 0; 11883} 11884_ACEOF 11885if ac_fn_cxx_try_link "$LINENO"; then : 11886 am_cv_langinfo_codeset=yes 11887else 11888 am_cv_langinfo_codeset=no 11889fi 11890rm -f core conftest.err conftest.$ac_objext \ 11891 conftest$ac_exeext conftest.$ac_ext 11892 11893fi 11894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 11895$as_echo "$am_cv_langinfo_codeset" >&6; } 11896 if test $am_cv_langinfo_codeset = yes; then 11897 11898$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 11899 11900 fi 11901 11902 11903# We will need to find libiberty.h and ansidecl.h 11904saved_CFLAGS="$CFLAGS" 11905CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" 11906saved_CXXFLAGS="$CXXFLAGS" 11907CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" 11908 11909# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the 11910# normal autoconf function for these. But force definition of 11911# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre 11912# basename handling in libiberty.h. 11913as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh` 11914ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" " 11915#undef HAVE_DECL_BASENAME 11916#define HAVE_DECL_BASENAME 1 11917#include \"ansidecl.h\" 11918#include \"system.h\" 11919" 11920if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11921 ac_have_decl=1 11922else 11923 ac_have_decl=0 11924fi 11925 11926cat >>confdefs.h <<_ACEOF 11927#define HAVE_DECL_BASENAME $ac_have_decl 11928_ACEOF 11929as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh` 11930ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" " 11931#undef HAVE_DECL_BASENAME 11932#define HAVE_DECL_BASENAME 1 11933#include \"ansidecl.h\" 11934#include \"system.h\" 11935" 11936if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11937 ac_have_decl=1 11938else 11939 ac_have_decl=0 11940fi 11941 11942cat >>confdefs.h <<_ACEOF 11943#define HAVE_DECL_STRSTR $ac_have_decl 11944_ACEOF 11945 11946 11947for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \ 11948 madvise stpcpy strnlen strsignal strverscmp \ 11949 strtol strtoul strtoll strtoull setenv unsetenv \ 11950 errno snprintf vsnprintf vasprintf malloc realloc calloc \ 11951 free getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked 11952do 11953 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11955$as_echo_n "checking whether $ac_func is declared... " >&6; } 11956if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11957 $as_echo_n "(cached) " >&6 11958else 11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11960/* end confdefs.h. */ 11961#undef $ac_tr_decl 11962#define $ac_tr_decl 1 11963 11964#include "ansidecl.h" 11965#include "system.h" 11966 11967int 11968main () 11969{ 11970#ifndef $ac_func 11971char *(*pfn) = (char *(*)) $ac_func ; 11972#endif 11973 ; 11974 return 0; 11975} 11976_ACEOF 11977if ac_fn_cxx_try_compile "$LINENO"; then : 11978 eval "gcc_cv_have_decl_$ac_func=yes" 11979else 11980 eval "gcc_cv_have_decl_$ac_func=no" 11981fi 11982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11983fi 11984 11985if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11987$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11988#define $ac_tr_decl 1 11989_ACEOF 11990 11991else 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11993$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11994#define $ac_tr_decl 0 11995_ACEOF 11996 11997fi 11998 11999done 12000 12001 12002for ac_func in getrlimit setrlimit getrusage 12003do 12004 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12006$as_echo_n "checking whether $ac_func is declared... " >&6; } 12007if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12008 $as_echo_n "(cached) " >&6 12009else 12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12011/* end confdefs.h. */ 12012#undef $ac_tr_decl 12013#define $ac_tr_decl 1 12014 12015#include "ansidecl.h" 12016#include "system.h" 12017#ifdef HAVE_SYS_RESOURCE_H 12018#include <sys/resource.h> 12019#endif 12020 12021 12022int 12023main () 12024{ 12025#ifndef $ac_func 12026char *(*pfn) = (char *(*)) $ac_func ; 12027#endif 12028 ; 12029 return 0; 12030} 12031_ACEOF 12032if ac_fn_cxx_try_compile "$LINENO"; then : 12033 eval "gcc_cv_have_decl_$ac_func=yes" 12034else 12035 eval "gcc_cv_have_decl_$ac_func=no" 12036fi 12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12038fi 12039 12040if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12042$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12043#define $ac_tr_decl 1 12044_ACEOF 12045 12046else 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12048$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12049#define $ac_tr_decl 0 12050_ACEOF 12051 12052fi 12053 12054done 12055 12056 12057for ac_func in mallinfo mallinfo2 12058do 12059 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12061$as_echo_n "checking whether $ac_func is declared... " >&6; } 12062if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12063 $as_echo_n "(cached) " >&6 12064else 12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12066/* end confdefs.h. */ 12067#undef $ac_tr_decl 12068#define $ac_tr_decl 1 12069 12070#include "ansidecl.h" 12071#include "system.h" 12072#ifdef HAVE_MALLOC_H 12073#include <malloc.h> 12074#endif 12075 12076 12077int 12078main () 12079{ 12080#ifndef $ac_func 12081char *(*pfn) = (char *(*)) $ac_func ; 12082#endif 12083 ; 12084 return 0; 12085} 12086_ACEOF 12087if ac_fn_cxx_try_compile "$LINENO"; then : 12088 eval "gcc_cv_have_decl_$ac_func=yes" 12089else 12090 eval "gcc_cv_have_decl_$ac_func=no" 12091fi 12092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12093fi 12094 12095if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12097$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12098#define $ac_tr_decl 1 12099_ACEOF 12100 12101else 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12103$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12104#define $ac_tr_decl 0 12105_ACEOF 12106 12107fi 12108 12109done 12110 12111 12112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12113/* end confdefs.h. */ 12114 12115#include "ansidecl.h" 12116#include "system.h" 12117#ifdef HAVE_SYS_RESOURCE_H 12118#include <sys/resource.h> 12119#endif 12120 12121int 12122main () 12123{ 12124rlim_t l = 0; 12125 ; 12126 return 0; 12127} 12128_ACEOF 12129if ac_fn_cxx_try_compile "$LINENO"; then : 12130 12131else 12132 12133$as_echo "#define rlim_t long" >>confdefs.h 12134 12135fi 12136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12137 12138# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible 12139# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname 12140# in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs 12141# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME. 12142for ac_func in ldgetname 12143do 12144 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12146$as_echo_n "checking whether $ac_func is declared... " >&6; } 12147if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12148 $as_echo_n "(cached) " >&6 12149else 12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12151/* end confdefs.h. */ 12152#undef $ac_tr_decl 12153#define $ac_tr_decl 1 12154 12155#include "ansidecl.h" 12156#include "system.h" 12157#ifdef HAVE_LDFCN_H 12158#undef FREAD 12159#undef FWRITE 12160#include <ldfcn.h> 12161#endif 12162 12163 12164int 12165main () 12166{ 12167#ifndef $ac_func 12168char *(*pfn) = (char *(*)) $ac_func ; 12169#endif 12170 ; 12171 return 0; 12172} 12173_ACEOF 12174if ac_fn_cxx_try_compile "$LINENO"; then : 12175 eval "gcc_cv_have_decl_$ac_func=yes" 12176else 12177 eval "gcc_cv_have_decl_$ac_func=no" 12178fi 12179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12180fi 12181 12182if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12184$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12185#define $ac_tr_decl 1 12186_ACEOF 12187 12188else 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12190$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12191#define $ac_tr_decl 0 12192_ACEOF 12193 12194fi 12195 12196done 12197 12198 12199for ac_func in times 12200do 12201 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12203$as_echo_n "checking whether $ac_func is declared... " >&6; } 12204if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12208/* end confdefs.h. */ 12209#undef $ac_tr_decl 12210#define $ac_tr_decl 1 12211 12212#include "ansidecl.h" 12213#include "system.h" 12214#ifdef HAVE_SYS_TIMES_H 12215#include <sys/times.h> 12216#endif 12217 12218 12219int 12220main () 12221{ 12222#ifndef $ac_func 12223char *(*pfn) = (char *(*)) $ac_func ; 12224#endif 12225 ; 12226 return 0; 12227} 12228_ACEOF 12229if ac_fn_cxx_try_compile "$LINENO"; then : 12230 eval "gcc_cv_have_decl_$ac_func=yes" 12231else 12232 eval "gcc_cv_have_decl_$ac_func=no" 12233fi 12234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12235fi 12236 12237if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12239$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12240#define $ac_tr_decl 1 12241_ACEOF 12242 12243else 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12245$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12246#define $ac_tr_decl 0 12247_ACEOF 12248 12249fi 12250 12251done 12252 12253 12254for ac_func in sigaltstack 12255do 12256 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12258$as_echo_n "checking whether $ac_func is declared... " >&6; } 12259if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12260 $as_echo_n "(cached) " >&6 12261else 12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12263/* end confdefs.h. */ 12264#undef $ac_tr_decl 12265#define $ac_tr_decl 1 12266 12267#include "ansidecl.h" 12268#include "system.h" 12269#include <signal.h> 12270 12271 12272int 12273main () 12274{ 12275#ifndef $ac_func 12276char *(*pfn) = (char *(*)) $ac_func ; 12277#endif 12278 ; 12279 return 0; 12280} 12281_ACEOF 12282if ac_fn_cxx_try_compile "$LINENO"; then : 12283 eval "gcc_cv_have_decl_$ac_func=yes" 12284else 12285 eval "gcc_cv_have_decl_$ac_func=no" 12286fi 12287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12288fi 12289 12290if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12292$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12293#define $ac_tr_decl 1 12294_ACEOF 12295 12296else 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12298$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12299#define $ac_tr_decl 0 12300_ACEOF 12301 12302fi 12303 12304done 12305 12306 12307# More time-related stuff. 12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5 12309$as_echo_n "checking for struct tms... " >&6; } 12310if ${ac_cv_struct_tms+:} false; then : 12311 $as_echo_n "(cached) " >&6 12312else 12313 12314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12315/* end confdefs.h. */ 12316 12317#include "ansidecl.h" 12318#include "system.h" 12319#ifdef HAVE_SYS_TIMES_H 12320#include <sys/times.h> 12321#endif 12322 12323int 12324main () 12325{ 12326struct tms tms; 12327 ; 12328 return 0; 12329} 12330_ACEOF 12331if ac_fn_cxx_try_compile "$LINENO"; then : 12332 ac_cv_struct_tms=yes 12333else 12334 ac_cv_struct_tms=no 12335fi 12336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12337fi 12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5 12339$as_echo "$ac_cv_struct_tms" >&6; } 12340if test $ac_cv_struct_tms = yes; then 12341 12342$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h 12343 12344fi 12345 12346# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE. 12347# revisit after autoconf 2.50. 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 12349$as_echo_n "checking for clock_t... " >&6; } 12350if ${gcc_cv_type_clock_t+:} false; then : 12351 $as_echo_n "(cached) " >&6 12352else 12353 12354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12355/* end confdefs.h. */ 12356 12357#include "ansidecl.h" 12358#include "system.h" 12359 12360int 12361main () 12362{ 12363clock_t x; 12364 ; 12365 return 0; 12366} 12367_ACEOF 12368if ac_fn_cxx_try_compile "$LINENO"; then : 12369 gcc_cv_type_clock_t=yes 12370else 12371 gcc_cv_type_clock_t=no 12372fi 12373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12374fi 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5 12376$as_echo "$gcc_cv_type_clock_t" >&6; } 12377if test $gcc_cv_type_clock_t = yes; then 12378 12379$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h 12380 12381fi 12382 12383# Check if F_SETLKW is supported by fcntl. 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5 12385$as_echo_n "checking for F_SETLKW... " >&6; } 12386if ${ac_cv_f_setlkw+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 12390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12391/* end confdefs.h. */ 12392 12393#include <fcntl.h> 12394int 12395main () 12396{ 12397 12398struct flock fl; 12399fl.l_whence = 0; 12400fl.l_start = 0; 12401fl.l_len = 0; 12402fl.l_pid = 0; 12403return fcntl (1, F_SETLKW, &fl); 12404 ; 12405 return 0; 12406} 12407_ACEOF 12408if ac_fn_cxx_try_compile "$LINENO"; then : 12409 ac_cv_f_setlkw=yes 12410else 12411 ac_cv_f_setlkw=no 12412fi 12413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12414fi 12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5 12416$as_echo "$ac_cv_f_setlkw" >&6; } 12417if test $ac_cv_f_setlkw = yes; then 12418 12419$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h 12420 12421fi 12422 12423# Check if O_CLOEXEC is defined by fcntl 12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 12425$as_echo_n "checking for O_CLOEXEC... " >&6; } 12426if ${ac_cv_o_cloexec+:} false; then : 12427 $as_echo_n "(cached) " >&6 12428else 12429 12430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12431/* end confdefs.h. */ 12432 12433#include <fcntl.h> 12434int 12435main () 12436{ 12437 12438return open ("/dev/null", O_RDONLY | O_CLOEXEC); 12439 ; 12440 return 0; 12441} 12442_ACEOF 12443if ac_fn_cxx_try_compile "$LINENO"; then : 12444 ac_cv_o_cloexec=yes 12445else 12446 ac_cv_o_cloexec=no 12447fi 12448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12449fi 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5 12451$as_echo "$ac_cv_o_cloexec" >&6; } 12452if test $ac_cv_o_cloexec = yes; then 12453 12454$as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h 12455 12456fi 12457 12458# C++ Modules would like some networking features to provide the mapping 12459# server. You can still use modules without them though. 12460# The following network-related checks could probably do with some 12461# Windows and other non-linux defenses and checking. 12462 12463# Local socket connectivity wants AF_UNIX networking 12464# Check for AF_UNIX networking 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5 12466$as_echo_n "checking for AF_UNIX... " >&6; } 12467if ${ac_cv_af_unix+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 12471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12472/* end confdefs.h. */ 12473 12474#include <sys/types.h> 12475#include <sys/socket.h> 12476#include <sys/un.h> 12477#include <netinet/in.h> 12478int 12479main () 12480{ 12481 12482sockaddr_un un; 12483un.sun_family = AF_UNSPEC; 12484int fd = socket (AF_UNIX, SOCK_STREAM, 0); 12485connect (fd, (sockaddr *)&un, sizeof (un)); 12486 ; 12487 return 0; 12488} 12489_ACEOF 12490if ac_fn_cxx_try_compile "$LINENO"; then : 12491 ac_cv_af_unix=yes 12492else 12493 ac_cv_af_unix=no 12494fi 12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12496fi 12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5 12498$as_echo "$ac_cv_af_unix" >&6; } 12499if test $ac_cv_af_unix = yes; then 12500 12501$as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h 12502 12503fi 12504 12505# Remote socket connectivity wants AF_INET6 networking 12506# Check for AF_INET6 networking 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5 12508$as_echo_n "checking for AF_INET6... " >&6; } 12509if ${ac_cv_af_inet6+:} false; then : 12510 $as_echo_n "(cached) " >&6 12511else 12512 12513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12514/* end confdefs.h. */ 12515 12516#include <sys/types.h> 12517#include <sys/socket.h> 12518#include <netinet/in.h> 12519#include <netdb.h> 12520int 12521main () 12522{ 12523 12524sockaddr_in6 in6; 12525in6.sin6_family = AF_UNSPEC; 12526struct addrinfo *addrs = 0; 12527struct addrinfo hints; 12528hints.ai_flags = 0; 12529hints.ai_family = AF_INET6; 12530hints.ai_socktype = SOCK_STREAM; 12531hints.ai_protocol = 0; 12532hints.ai_canonname = 0; 12533hints.ai_addr = 0; 12534hints.ai_next = 0; 12535int e = getaddrinfo ("localhost", 0, &hints, &addrs); 12536const char *str = gai_strerror (e); 12537freeaddrinfo (addrs); 12538int fd = socket (AF_INET6, SOCK_STREAM, 0); 12539connect (fd, (sockaddr *)&in6, sizeof (in6)); 12540 ; 12541 return 0; 12542} 12543_ACEOF 12544if ac_fn_cxx_try_compile "$LINENO"; then : 12545 ac_cv_af_inet6=yes 12546else 12547 ac_cv_af_inet6=no 12548fi 12549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12550fi 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5 12552$as_echo "$ac_cv_af_inet6" >&6; } 12553if test $ac_cv_af_inet6 = yes; then 12554 12555$as_echo "#define HAVE_AF_INET6 1" >>confdefs.h 12556 12557fi 12558 12559# Check if _LK_LOCK is supported by _locking 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5 12561$as_echo_n "checking for _LK_LOCK... " >&6; } 12562if ${ac_cv_lk_lock+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 12566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12567/* end confdefs.h. */ 12568 12569#include <io.h> 12570#include <sys/locking.h> 12571int 12572main () 12573{ 12574 12575 int fd; 12576 return _locking (fd, _LK_LOCK, 0); 12577 ; 12578 return 0; 12579} 12580_ACEOF 12581if ac_fn_cxx_try_compile "$LINENO"; then : 12582 ac_cv_lk_lock=yes 12583else 12584 ac_cv_lk_lock=no 12585fi 12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5 12589$as_echo "$ac_cv_lk_lock" >&6; } 12590if test $ac_cv_lk_lock = yes; then 12591 12592$as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h 12593 12594fi 12595 12596# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. 12597CFLAGS="$saved_CFLAGS" 12598CXXFLAGS="$saved_CXXFLAGS" 12599 12600# mkdir takes a single argument on some systems. 12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5 12602$as_echo_n "checking if mkdir takes one argument... " >&6; } 12603if ${gcc_cv_mkdir_takes_one_arg+:} false; then : 12604 $as_echo_n "(cached) " >&6 12605else 12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12607/* end confdefs.h. */ 12608 12609#include <sys/types.h> 12610#ifdef HAVE_SYS_STAT_H 12611# include <sys/stat.h> 12612#endif 12613#ifdef HAVE_UNISTD_H 12614# include <unistd.h> 12615#endif 12616#ifdef HAVE_DIRECT_H 12617# include <direct.h> 12618#endif 12619int 12620main () 12621{ 12622mkdir ("foo", 0); 12623 ; 12624 return 0; 12625} 12626_ACEOF 12627if ac_fn_cxx_try_compile "$LINENO"; then : 12628 gcc_cv_mkdir_takes_one_arg=no 12629else 12630 gcc_cv_mkdir_takes_one_arg=yes 12631fi 12632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12633fi 12634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5 12635$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; } 12636if test $gcc_cv_mkdir_takes_one_arg = yes ; then 12637 12638$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h 12639 12640fi 12641 12642 12643# File extensions 12644manext='.1' 12645objext='.o' 12646 12647 12648 12649# With Setjmp/Longjmp based exception handling. 12650# Check whether --enable-sjlj-exceptions was given. 12651if test "${enable_sjlj_exceptions+set}" = set; then : 12652 enableval=$enable_sjlj_exceptions; case $target in 12653 *-*-hpux10*) 12654 if test $enableval != yes; then 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5 12656$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;} 12657 enableval=yes 12658 fi 12659 ;; 12660esac 12661force_sjlj_exceptions=yes 12662else 12663 case $target in 12664 *-*-hpux10*) 12665 force_sjlj_exceptions=yes 12666 enableval=yes 12667 ;; 12668 lm32*-*-*) 12669 force_sjlj_exceptions=yes 12670 enableval=yes 12671 ;; 12672 *) 12673 force_sjlj_exceptions=no 12674 ;; 12675esac 12676fi 12677 12678if test $force_sjlj_exceptions = yes; then 12679 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi` 12680 12681cat >>confdefs.h <<_ACEOF 12682#define CONFIG_SJLJ_EXCEPTIONS $sjlj 12683_ACEOF 12684 12685fi 12686 12687# -------------------------------------------------------- 12688# Build, host, and target specific configuration fragments 12689# -------------------------------------------------------- 12690 12691# Collect build-machine-specific information. 12692. ${srcdir}/config.build || exit 1 12693 12694# Collect host-machine-specific information. 12695. ${srcdir}/config.host || exit 1 12696 12697target_gtfiles= 12698 12699# Collect target-machine-specific information. 12700. ${srcdir}/config.gcc || exit 1 12701 12702extra_objs="${host_extra_objs} ${extra_objs}" 12703extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}" 12704 12705# Default the target-machine variables that were not explicitly set. 12706if test x"$tm_file" = x 12707then tm_file=$cpu_type/$cpu_type.h; fi 12708 12709if test x"$extra_headers" = x 12710then extra_headers=; fi 12711 12712if test x$md_file = x 12713then md_file=$cpu_type/$cpu_type.md; fi 12714 12715if test x$out_file = x 12716then out_file=$cpu_type/$cpu_type.cc; fi 12717 12718if test x"$tmake_file" = x 12719then tmake_file=$cpu_type/t-$cpu_type 12720fi 12721 12722# Support --enable-initfini-array. 12723if test x$enable_initfini_array != xno; then 12724 tm_file="${tm_file} initfini-array.h" 12725fi 12726 12727if test x"$dwarf2" = xyes 12728then tm_file="$tm_file tm-dwarf2.h" 12729fi 12730 12731# Say what files are being used for the output code and MD file. 12732echo "Using \`$srcdir/config/$out_file' for machine-specific logic." 12733echo "Using \`$srcdir/config/$md_file' as machine description file." 12734 12735# If any of the xm_file variables contain nonexistent files, warn 12736# about them and drop them. 12737 12738bx= 12739for x in $build_xm_file; do 12740 if test -f $srcdir/config/$x 12741 then bx="$bx $x" 12742 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12743$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12744 fi 12745done 12746build_xm_file="$bx" 12747 12748hx= 12749for x in $host_xm_file; do 12750 if test -f $srcdir/config/$x 12751 then hx="$hx $x" 12752 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12753$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12754 fi 12755done 12756host_xm_file="$hx" 12757 12758tx= 12759for x in $xm_file; do 12760 if test -f $srcdir/config/$x 12761 then tx="$tx $x" 12762 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12763$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12764 fi 12765done 12766xm_file="$tx" 12767 12768count=a 12769for f in $tm_file; do 12770 count=${count}x 12771done 12772if test $count = ax; then 12773 echo "Using \`$srcdir/config/$tm_file' as target machine macro file." 12774else 12775 echo "Using the following target machine macro files:" 12776 for f in $tm_file; do 12777 echo " $srcdir/config/$f" 12778 done 12779fi 12780 12781if test x$use_long_long_for_widest_fast_int = xyes; then 12782 12783$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h 12784 12785fi 12786 12787gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi` 12788 12789cat >>confdefs.h <<_ACEOF 12790#define HAVE_GNU_LD $gnu_ld_bool 12791_ACEOF 12792 12793 12794gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi` 12795 12796cat >>confdefs.h <<_ACEOF 12797#define HAVE_GNU_AS $gnu_as_bool 12798_ACEOF 12799 12800 12801count=a 12802for f in $host_xm_file; do 12803 count=${count}x 12804done 12805if test $count = a; then 12806 : 12807elif test $count = ax; then 12808 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." 12809else 12810 echo "Using the following host machine macro files:" 12811 for f in $host_xm_file; do 12812 echo " $srcdir/config/$f" 12813 done 12814fi 12815echo "Using ${out_host_hook_obj} for host machine hooks." 12816 12817if test "$host_xm_file" != "$build_xm_file"; then 12818 count=a 12819 for f in $build_xm_file; do 12820 count=${count}x 12821 done 12822 if test $count = a; then 12823 : 12824 elif test $count = ax; then 12825 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." 12826 else 12827 echo "Using the following build machine macro files:" 12828 for f in $build_xm_file; do 12829 echo " $srcdir/config/$f" 12830 done 12831 fi 12832fi 12833 12834if test -n "$configured_native_system_header_dir"; then 12835 native_system_header_dir=$configured_native_system_header_dir 12836fi 12837NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir" 12838 12839 12840case ${host} in 12841 powerpc*-*-darwin*) 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5 12843$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; } 12844if ${gcc_cv_mcontext_underscores+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846else 12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12848/* end confdefs.h. */ 12849 12850#include <sys/cdefs.h> 12851#include <sys/signal.h> 12852#include <ucontext.h> 12853int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; } 12854 12855_ACEOF 12856if ac_fn_cxx_try_compile "$LINENO"; then : 12857 gcc_cv_mcontext_underscores=no 12858else 12859 gcc_cv_mcontext_underscores=yes 12860fi 12861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12862fi 12863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5 12864$as_echo "$gcc_cv_mcontext_underscores" >&6; } 12865 if test $gcc_cv_mcontext_underscores = yes; then 12866 12867$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h 12868 12869 fi 12870 ;; 12871esac 12872 12873# --------- 12874# Threading 12875# --------- 12876 12877# Check if a valid thread package 12878case ${enable_threads} in 12879 "" | no) 12880 # No threads 12881 target_thread_file='single' 12882 ;; 12883 yes) 12884 # default 12885 target_thread_file='single' 12886 ;; 12887 aix | dce | lynx | mipssde | posix | rtems | \ 12888 single | tpf | vxworks | win32) 12889 target_thread_file=${enable_threads} 12890 ;; 12891 *) 12892 echo "${enable_threads} is an unknown thread package" 1>&2 12893 exit 1 12894 ;; 12895esac 12896 12897if test x${thread_file} = x; then 12898 # No thread file set by target-specific clauses in config.gcc, 12899 # so use file chosen by default logic above 12900 thread_file=${target_thread_file} 12901fi 12902 12903# -------- 12904# UNSORTED 12905# -------- 12906 12907use_cxa_atexit=no 12908if test x$enable___cxa_atexit = xyes || \ 12909 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then 12910 if test x$host = x$target; then 12911 case $host in 12912 # mingw32 doesn't have __cxa_atexit but uses atexit registration 12913 # keyed to flag_use_cxa_atexit 12914 *-*-mingw32*) 12915 use_cxa_atexit=yes 12916 ;; 12917 powerpc-ibm-aix*) 12918 use_cxa_atexit=yes 12919 ;; 12920 *) 12921 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit" 12922if test "x$ac_cv_func___cxa_atexit" = xyes; then : 12923 use_cxa_atexit=yes 12924else 12925 echo "__cxa_atexit can't be enabled on this target" 12926fi 12927 12928 ;; 12929 esac 12930 else 12931 # We can't check for __cxa_atexit when building a cross, so assume 12932 # it is available 12933 use_cxa_atexit=yes 12934 fi 12935 if test x$use_cxa_atexit = xyes; then 12936 12937$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h 12938 12939 fi 12940fi 12941 12942# Look for a file containing extra machine modes. 12943if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then 12944 extra_modes_file='$(srcdir)'/config/${extra_modes} 12945 12946 12947cat >>confdefs.h <<_ACEOF 12948#define EXTRA_MODES_FILE "config/$extra_modes" 12949_ACEOF 12950 12951fi 12952 12953# Convert extra_options into a form suitable for Makefile use. 12954extra_opt_files= 12955all_opt_files= 12956for f in $extra_options; do 12957 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f" 12958 all_opt_files="$all_opt_files $srcdir/config/$f" 12959done 12960 12961 12962# auto-host.h is the file containing items generated by autoconf and is 12963# the first file included by config.h. 12964# If host=build, it is correct to have bconfig include auto-host.h 12965# as well. If host!=build, we are in error and need to do more 12966# work to find out the build config parameters. 12967if test x$host = x$build 12968then 12969 build_auto=auto-host.h 12970 HAVE_AUTO_BUILD='# ' 12971else 12972 # We create a subdir, then run autoconf in the subdir. 12973 # To prevent recursion we set host and build for the new 12974 # invocation of configure to the build for this invocation 12975 # of configure. 12976 tempdir=build.$$ 12977 rm -rf $tempdir 12978 mkdir $tempdir 12979 cd $tempdir 12980 case ${srcdir} in 12981 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};; 12982 *) realsrcdir=../${srcdir};; 12983 esac 12984 # Clearing GMPINC is necessary to prevent host headers being 12985 # used by the build compiler. Defining GENERATOR_FILE stops 12986 # system.h from including gmp.h. 12987 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ 12988 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \ 12989 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \ 12990 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \ 12991 ${realsrcdir}/configure \ 12992 --enable-languages=${enable_languages-all} \ 12993 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \ 12994 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \ 12995 --target=$target_alias --host=$build_alias \ 12996 --build=$build_alias || exit # retaining $tempdir 12997 12998 # We just finished tests for the build machine, so rename 12999 # the file auto-build.h in the gcc directory. 13000 mv auto-host.h ../auto-build.h 13001 cd .. 13002 rm -rf $tempdir 13003 build_auto=auto-build.h 13004 HAVE_AUTO_BUILD= 13005fi 13006 13007 13008 13009tm_file="${tm_file} defaults.h" 13010tm_p_file="${tm_p_file} tm-preds.h" 13011host_xm_file="auto-host.h ansidecl.h ${host_xm_file}" 13012build_xm_file="${build_auto} ansidecl.h ${build_xm_file}" 13013# We don't want ansidecl.h in target files, write code there in ISO/GNU C. 13014# put this back in temporarily. 13015xm_file="auto-host.h ansidecl.h ${xm_file}" 13016 13017# -------- 13018# UNSORTED 13019# -------- 13020 13021# Compile in configure arguments. 13022if test -f configargs.h ; then 13023 # Being re-configured. 13024 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'` 13025 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'` 13026 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then 13027 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" 13028 fi 13029else 13030 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS" 13031fi 13032 13033# Double all backslashes and backslash all quotes to turn 13034# gcc_config_arguments into a C string. 13035sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out 13036$gcc_config_arguments 13037EOF 13038gcc_config_arguments_str=`cat conftest.out` 13039rm -f conftest.out 13040 13041cat > configargs.h <<EOF 13042/* Generated automatically. */ 13043static const char configuration_arguments[] = "$gcc_config_arguments_str"; 13044static const char thread_model[] = "$thread_file"; 13045 13046static const struct { 13047 const char *name, *value; 13048} configure_default_options[] = $configure_default_options; 13049EOF 13050 13051gcc_BASEVER=`cat $srcdir/BASE-VER` 13052gcc_DEVPHASE=`cat $srcdir/DEV-PHASE` 13053gcc_DATESTAMP=`cat $srcdir/DATESTAMP` 13054if test -f $srcdir/REVISION ; then 13055 gcc_REVISION=`cat $srcdir/REVISION` 13056else 13057 gcc_REVISION="" 13058fi 13059cat > plugin-version.h <<EOF 13060#include "configargs.h" 13061 13062#define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'` 13063#define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'` 13064#define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'` 13065#define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR) 13066 13067static char basever[] = "$gcc_BASEVER"; 13068static char datestamp[] = "$gcc_DATESTAMP"; 13069static char devphase[] = "$gcc_DEVPHASE"; 13070static char revision[] = "$gcc_REVISION"; 13071 13072/* FIXME plugins: We should make the version information more precise. 13073 One way to do is to add a checksum. */ 13074 13075static struct plugin_gcc_version gcc_version = {basever, datestamp, 13076 devphase, revision, 13077 configuration_arguments}; 13078EOF 13079 13080# Determine what GCC version number to use in filesystem paths. 13081 13082 get_gcc_base_ver="cat" 13083 13084# Check whether --with-gcc-major-version-only was given. 13085if test "${with_gcc_major_version_only+set}" = set; then : 13086 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 13087 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 13088 fi 13089 13090fi 13091 13092 13093 13094 13095# Internationalization 13096# If we haven't got the data from the intl directory, 13097# assume NLS is disabled. 13098USE_NLS=no 13099LIBINTL= 13100LIBINTL_DEP= 13101INCINTL= 13102XGETTEXT= 13103GMSGFMT= 13104POSUB= 13105 13106if test -f ../intl/config.intl; then 13107 . ../intl/config.intl 13108fi 13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13110$as_echo_n "checking whether NLS is requested... " >&6; } 13111if test x"$USE_NLS" != xyes; then 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13113$as_echo "no" >&6; } 13114else 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13116$as_echo "yes" >&6; } 13117 13118$as_echo "#define ENABLE_NLS 1" >>confdefs.h 13119 13120 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 13122$as_echo_n "checking for catalogs to be installed... " >&6; } 13123 # Look for .po and .gmo files in the source directory. 13124 CATALOGS= 13125 XLINGUAS= 13126 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 13127 # If there aren't any .gmo files the shell will give us the 13128 # literal string "../path/to/srcdir/po/*.gmo" which has to be 13129 # weeded out. 13130 case "$cat" in *\**) 13131 continue;; 13132 esac 13133 # The quadruple backslash is collapsed to a double backslash 13134 # by the backticks, then collapsed again by the double quotes, 13135 # leaving us with one backslash in the sed expression (right 13136 # before the dot that mustn't act as a wildcard). 13137 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 13138 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 13139 # The user is allowed to set LINGUAS to a list of languages to 13140 # install catalogs for. If it's empty that means "all of them." 13141 if test "x$LINGUAS" = x; then 13142 CATALOGS="$CATALOGS $cat" 13143 XLINGUAS="$XLINGUAS $lang" 13144 else 13145 case "$LINGUAS" in *$lang*) 13146 CATALOGS="$CATALOGS $cat" 13147 XLINGUAS="$XLINGUAS $lang" 13148 ;; 13149 esac 13150 fi 13151 done 13152 LINGUAS="$XLINGUAS" 13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 13154$as_echo "$LINGUAS" >&6; } 13155 13156 13157 DATADIRNAME=share 13158 13159 INSTOBJEXT=.mo 13160 13161 GENCAT=gencat 13162 13163 CATOBJEXT=.gmo 13164 13165fi 13166 13167# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get 13168# -liconv on the link line twice. 13169case "$LIBINTL" in *$LIBICONV*) 13170 LIBICONV= ;; 13171esac 13172 13173# Check whether --enable-secureplt was given. 13174if test "${enable_secureplt+set}" = set; then : 13175 enableval=$enable_secureplt; 13176fi 13177 13178 13179# Check whether --enable-mingw-wildcard was given. 13180if test "${enable_mingw_wildcard+set}" = set; then : 13181 enableval=$enable_mingw_wildcard; 13182else 13183 enable_mingw_wildcard=platform 13184fi 13185 13186if test x"$enable_mingw_wildcard" != xplatform ; then : 13187 13188cat >>confdefs.h <<_ACEOF 13189#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?) 13190_ACEOF 13191 13192fi 13193 13194# Check whether --enable-large-address-aware was given. 13195if test "${enable_large_address_aware+set}" = set; then : 13196 enableval=$enable_large_address_aware; 13197fi 13198 13199if test x"$enable_large_address_aware" = xyes; then : 13200 13201$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h 13202 13203fi 13204 13205# Check whether --enable-leading-mingw64-underscores was given. 13206if test "${enable_leading_mingw64_underscores+set}" = set; then : 13207 enableval=$enable_leading_mingw64_underscores; 13208fi 13209 13210if test x"$enable_leading_mingw64_underscores" = xyes ; then : 13211 13212$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h 13213 13214fi 13215 13216# Check whether --enable-cld was given. 13217if test "${enable_cld+set}" = set; then : 13218 enableval=$enable_cld; 13219else 13220 enable_cld=no 13221fi 13222 13223 13224# Check whether --enable-frame-pointer was given. 13225if test "${enable_frame_pointer+set}" = set; then : 13226 enableval=$enable_frame_pointer; 13227else 13228 13229case $target_os in 13230linux* | gnu* | darwin[8912]* | cygwin* | mingw*) 13231 # Enable -fomit-frame-pointer by default for these systems with DWARF2. 13232 enable_frame_pointer=no 13233 ;; 13234*) 13235 enable_frame_pointer=yes 13236 ;; 13237esac 13238 13239fi 13240 13241 13242case $target in 13243i[34567]86-*-* | x86_64-*-*) 13244 if test "x$enable_cld" = xyes; then 13245 tm_defines="${tm_defines} USE_IX86_CLD=1" 13246 fi 13247 if test "x$enable_frame_pointer" = xyes; then 13248 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" 13249 fi 13250 ;; 13251esac 13252 13253# Windows32 Registry support for specifying GCC installation paths. 13254# Check whether --enable-win32-registry was given. 13255if test "${enable_win32_registry+set}" = set; then : 13256 enableval=$enable_win32_registry; 13257fi 13258 13259 13260case $host_os in 13261 win32 | pe | cygwin* | mingw32*) 13262 if test "x$enable_win32_registry" != xno; then 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5 13264$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; } 13265if ${ac_cv_search_RegOpenKeyExA+:} false; then : 13266 $as_echo_n "(cached) " >&6 13267else 13268 ac_func_search_save_LIBS=$LIBS 13269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13270/* end confdefs.h. */ 13271 13272/* Override any GCC internal prototype to avoid an error. 13273 Use char because int might match the return type of a GCC 13274 builtin and then its argument prototype would still apply. */ 13275#ifdef __cplusplus 13276extern "C" 13277#endif 13278char RegOpenKeyExA (); 13279int 13280main () 13281{ 13282return RegOpenKeyExA (); 13283 ; 13284 return 0; 13285} 13286_ACEOF 13287for ac_lib in '' advapi32; do 13288 if test -z "$ac_lib"; then 13289 ac_res="none required" 13290 else 13291 ac_res=-l$ac_lib 13292 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13293 fi 13294 if ac_fn_cxx_try_link "$LINENO"; then : 13295 ac_cv_search_RegOpenKeyExA=$ac_res 13296fi 13297rm -f core conftest.err conftest.$ac_objext \ 13298 conftest$ac_exeext 13299 if ${ac_cv_search_RegOpenKeyExA+:} false; then : 13300 break 13301fi 13302done 13303if ${ac_cv_search_RegOpenKeyExA+:} false; then : 13304 13305else 13306 ac_cv_search_RegOpenKeyExA=no 13307fi 13308rm conftest.$ac_ext 13309LIBS=$ac_func_search_save_LIBS 13310fi 13311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5 13312$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; } 13313ac_res=$ac_cv_search_RegOpenKeyExA 13314if test "$ac_res" != no; then : 13315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13316 13317else 13318 enable_win32_registry=no 13319fi 13320 13321 fi 13322 13323 if test "x$enable_win32_registry" != xno; then 13324 13325$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h 13326 13327 13328 if test "x$enable_win32_registry" != xyes \ 13329 && test "x$enable_win32_registry" != x; then 13330 13331cat >>confdefs.h <<_ACEOF 13332#define WIN32_REGISTRY_KEY "$enable_win32_registry" 13333_ACEOF 13334 13335 fi 13336 fi 13337 ;; 13338esac 13339 13340# Get an absolute path to the GCC top-level source directory 13341holddir=`${PWDCMD-pwd}` 13342cd $srcdir 13343topdir=`${PWDCMD-pwd}` 13344cd $holddir 13345 13346# Conditionalize the makefile for this host machine. 13347xmake_file= 13348for f in ${host_xmake_file} 13349do 13350 if test -f ${srcdir}/config/$f 13351 then 13352 xmake_file="${xmake_file} \$(srcdir)/config/$f" 13353 fi 13354done 13355 13356# Conditionalize the makefile for this target machine. 13357tmake_file_= 13358for f in ${tmake_file} 13359do 13360 if test -f ${srcdir}/config/$f 13361 then 13362 tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 13363 fi 13364done 13365tmake_file="${tmake_file_}${omp_device_property_tmake_file}" 13366 13367out_object_file=`basename $out_file .cc`.o 13368common_out_object_file=`basename $common_out_file .cc`.o 13369 13370tm_file_list="options.h" 13371tm_include_list="options.h insn-constants.h" 13372for f in $tm_file; do 13373 case $f in 13374 ./* ) 13375 f=`echo $f | sed 's/^..//'` 13376 tm_file_list="${tm_file_list} $f" 13377 tm_include_list="${tm_include_list} $f" 13378 ;; 13379 defaults.h ) 13380 tm_file_list="${tm_file_list} \$(srcdir)/$f" 13381 tm_include_list="${tm_include_list} $f" 13382 ;; 13383 * ) 13384 tm_file_list="${tm_file_list} \$(srcdir)/config/$f" 13385 tm_include_list="${tm_include_list} config/$f" 13386 ;; 13387 esac 13388done 13389 13390tm_p_file_list= 13391tm_p_include_list= 13392for f in $tm_p_file; do 13393 case $f in 13394 tm-preds.h ) 13395 tm_p_file_list="${tm_p_file_list} $f" 13396 tm_p_include_list="${tm_p_include_list} $f" 13397 ;; 13398 * ) 13399 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f" 13400 tm_p_include_list="${tm_p_include_list} config/$f" 13401 esac 13402done 13403 13404tm_d_file_list= 13405tm_d_include_list= 13406for f in $tm_d_file; do 13407 case $f in 13408 * ) 13409 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f" 13410 tm_d_include_list="${tm_d_include_list} config/$f" 13411 ;; 13412 esac 13413done 13414 13415xm_file_list= 13416xm_include_list= 13417for f in $xm_file; do 13418 case $f in 13419 ansidecl.h ) 13420 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f" 13421 xm_include_list="${xm_include_list} $f" 13422 ;; 13423 auto-host.h ) 13424 xm_file_list="${xm_file_list} $f" 13425 xm_include_list="${xm_include_list} $f" 13426 ;; 13427 * ) 13428 xm_file_list="${xm_file_list} \$(srcdir)/config/$f" 13429 xm_include_list="${xm_include_list} config/$f" 13430 ;; 13431 esac 13432done 13433 13434host_xm_file_list= 13435host_xm_include_list= 13436for f in $host_xm_file; do 13437 case $f in 13438 ansidecl.h ) 13439 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f" 13440 host_xm_include_list="${host_xm_include_list} $f" 13441 ;; 13442 auto-host.h ) 13443 host_xm_file_list="${host_xm_file_list} $f" 13444 host_xm_include_list="${host_xm_include_list} $f" 13445 ;; 13446 * ) 13447 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" 13448 host_xm_include_list="${host_xm_include_list} config/$f" 13449 ;; 13450 esac 13451done 13452 13453build_xm_file_list= 13454for f in $build_xm_file; do 13455 case $f in 13456 ansidecl.h ) 13457 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f" 13458 build_xm_include_list="${build_xm_include_list} $f" 13459 ;; 13460 auto-build.h | auto-host.h ) 13461 build_xm_file_list="${build_xm_file_list} $f" 13462 build_xm_include_list="${build_xm_include_list} $f" 13463 ;; 13464 * ) 13465 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" 13466 build_xm_include_list="${build_xm_include_list} config/$f" 13467 ;; 13468 esac 13469done 13470 13471# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a 13472# cross-compiler which does not use the native headers and libraries. 13473# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR. 13474CROSS= 13475ALL=all.internal 13476SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' 13477BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR 13478 13479if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x || 13480 test x$build != x$host || test "x$with_build_sysroot" != x; then 13481 if test "x$with_build_sysroot" != x; then 13482 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' 13483 else 13484 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 13485 fi 13486 13487 if test x$host != x$target 13488 then 13489 CROSS="-DCROSS_DIRECTORY_STRUCTURE" 13490 ALL=all.cross 13491 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR 13492 elif test "x$TARGET_SYSTEM_ROOT" != x; then 13493 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 13494 fi 13495 13496 if test "x$with_build_sysroot" != "x"; then 13497 target_header_dir="${with_build_sysroot}${native_system_header_dir}" 13498 elif test "x$with_sysroot" = x; then 13499 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include" 13500 elif test "x$with_sysroot" = xyes; then 13501 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}" 13502 else 13503 target_header_dir="${with_sysroot}${native_system_header_dir}" 13504 fi 13505else 13506 target_header_dir=${native_system_header_dir} 13507fi 13508 13509# If this is a cross-compiler that does not 13510# have its own set of headers then define 13511# inhibit_libc 13512 13513# If this is using newlib, without having the headers available now, 13514# then define inhibit_libc in LIBGCC2_CFLAGS. 13515# This prevents libgcc2 from containing any code which requires libc 13516# support. 13517: ${inhibit_libc=false} 13518if { { test x$host != x$target && test "x$with_sysroot" = x ; } || 13519 test x$with_newlib = xyes ; } && 13520 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then 13521 inhibit_libc=true 13522fi 13523 13524 13525# When building gcc with a cross-compiler, we need to adjust things so 13526# that the generator programs are still built with the native compiler. 13527# Also, we cannot run fixincludes. 13528 13529# These are the normal (build=host) settings: 13530CC_FOR_BUILD='$(CC)' 13531CXX_FOR_BUILD='$(CXX)' 13532BUILD_CFLAGS='$(ALL_CFLAGS)' 13533BUILD_CXXFLAGS='$(ALL_CXXFLAGS)' 13534BUILD_LDFLAGS='$(LDFLAGS)' 13535STMP_FIXINC=stmp-fixinc 13536 13537# And these apply if build != host, or we are generating coverage data 13538if test x$build != x$host || test "x$coverage_flags" != x 13539then 13540 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)' 13541 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)' 13542 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)' 13543fi 13544 13545# Expand extra_headers to include complete path. 13546# This substitutes for lots of t-* files. 13547extra_headers_list= 13548# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers. 13549for file in ${extra_headers} ; do 13550 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}" 13551done 13552 13553# If use_gcc_tgmath is set, append ginclude/tgmath.h. 13554if test x"$use_gcc_tgmath" = xyes 13555then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h" 13556fi 13557 13558# Define collect2 in Makefile. 13559case $host_can_use_collect2 in 13560 no) collect2= ;; 13561 *) collect2='collect2$(exeext)' ;; 13562esac 13563 13564 13565# Add a definition of USE_COLLECT2 if system wants one. 13566case $use_collect2 in 13567 no) use_collect2= ;; 13568 "") ;; 13569 *) 13570 host_xm_defines="${host_xm_defines} USE_COLLECT2" 13571 xm_defines="${xm_defines} USE_COLLECT2" 13572 case $host_can_use_collect2 in 13573 no) 13574 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5 13575 ;; 13576 esac 13577 ;; 13578esac 13579 13580 13581cat >>confdefs.h <<_ACEOF 13582#define LTOPLUGINSONAME "${host_lto_plugin_soname}" 13583_ACEOF 13584 13585 13586# --------------------------- 13587# Assembler & linker features 13588# --------------------------- 13589 13590# During stage 2, ld is actually gcc/collect-ld, which is a small script to 13591# discern between when to use prev-ld/ld-new and when to use ld/ld-new. 13592# However when ld-new is first executed from the build tree, libtool will 13593# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers 13594# to the build tree. While doing this we need to use the previous-stage 13595# linker, or we have an infinite loop. The presence of a shell script as 13596# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses 13597# the gcc/collect-ld script. So we need to know how libtool works, or 13598# exec-tool will fail. 13599 13600 13601case `pwd` in 13602 *\ * | *\ *) 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 13604$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 13605esac 13606 13607 13608 13609macro_version='2.2.7a' 13610macro_revision='1.3134' 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624ltmain="$ac_aux_dir/ltmain.sh" 13625 13626# Backslashify metacharacters that are still active within 13627# double-quoted strings. 13628sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13629 13630# Same as above, but do not quote variable references. 13631double_quote_subst='s/\(["`\\]\)/\\\1/g' 13632 13633# Sed substitution to delay expansion of an escaped shell variable in a 13634# double_quote_subst'ed string. 13635delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13636 13637# Sed substitution to delay expansion of an escaped single quote. 13638delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13639 13640# Sed substitution to avoid accidental globbing in evaled expressions 13641no_glob_subst='s/\*/\\\*/g' 13642 13643ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13644ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13645ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13646 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13648$as_echo_n "checking how to print strings... " >&6; } 13649# Test print first, because it will be a builtin if present. 13650if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 13651 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13652 ECHO='print -r --' 13653elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13654 ECHO='printf %s\n' 13655else 13656 # Use this function as a fallback that always works. 13657 func_fallback_echo () 13658 { 13659 eval 'cat <<_LTECHO_EOF 13660$1 13661_LTECHO_EOF' 13662 } 13663 ECHO='func_fallback_echo' 13664fi 13665 13666# func_echo_all arg... 13667# Invoke $ECHO with all args, space-separated. 13668func_echo_all () 13669{ 13670 $ECHO "" 13671} 13672 13673case "$ECHO" in 13674 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13675$as_echo "printf" >&6; } ;; 13676 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13677$as_echo "print -r" >&6; } ;; 13678 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13679$as_echo "cat" >&6; } ;; 13680esac 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13696$as_echo_n "checking for a sed that does not truncate output... " >&6; } 13697if ${ac_cv_path_SED+:} false; then : 13698 $as_echo_n "(cached) " >&6 13699else 13700 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13701 for ac_i in 1 2 3 4 5 6 7; do 13702 ac_script="$ac_script$as_nl$ac_script" 13703 done 13704 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13705 { ac_script=; unset ac_script;} 13706 if test -z "$SED"; then 13707 ac_path_SED_found=false 13708 # Loop through the user's path and test for each of PROGNAME-LIST 13709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13710for as_dir in $PATH 13711do 13712 IFS=$as_save_IFS 13713 test -z "$as_dir" && as_dir=. 13714 for ac_prog in sed gsed; do 13715 for ac_exec_ext in '' $ac_executable_extensions; do 13716 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13717 as_fn_executable_p "$ac_path_SED" || continue 13718# Check for GNU ac_path_SED and select it if it is found. 13719 # Check for GNU $ac_path_SED 13720case `"$ac_path_SED" --version 2>&1` in 13721*GNU*) 13722 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13723*) 13724 ac_count=0 13725 $as_echo_n 0123456789 >"conftest.in" 13726 while : 13727 do 13728 cat "conftest.in" "conftest.in" >"conftest.tmp" 13729 mv "conftest.tmp" "conftest.in" 13730 cp "conftest.in" "conftest.nl" 13731 $as_echo '' >> "conftest.nl" 13732 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13734 as_fn_arith $ac_count + 1 && ac_count=$as_val 13735 if test $ac_count -gt ${ac_path_SED_max-0}; then 13736 # Best one so far, save it but keep looking for a better one 13737 ac_cv_path_SED="$ac_path_SED" 13738 ac_path_SED_max=$ac_count 13739 fi 13740 # 10*(2^10) chars as input seems more than enough 13741 test $ac_count -gt 10 && break 13742 done 13743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13744esac 13745 13746 $ac_path_SED_found && break 3 13747 done 13748 done 13749 done 13750IFS=$as_save_IFS 13751 if test -z "$ac_cv_path_SED"; then 13752 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13753 fi 13754else 13755 ac_cv_path_SED=$SED 13756fi 13757 13758fi 13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13760$as_echo "$ac_cv_path_SED" >&6; } 13761 SED="$ac_cv_path_SED" 13762 rm -f conftest.sed 13763 13764test -z "$SED" && SED=sed 13765Xsed="$SED -e 1s/^X//" 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13778$as_echo_n "checking for fgrep... " >&6; } 13779if ${ac_cv_path_FGREP+:} false; then : 13780 $as_echo_n "(cached) " >&6 13781else 13782 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13783 then ac_cv_path_FGREP="$GREP -F" 13784 else 13785 if test -z "$FGREP"; then 13786 ac_path_FGREP_found=false 13787 # Loop through the user's path and test for each of PROGNAME-LIST 13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13790do 13791 IFS=$as_save_IFS 13792 test -z "$as_dir" && as_dir=. 13793 for ac_prog in fgrep; do 13794 for ac_exec_ext in '' $ac_executable_extensions; do 13795 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13796 as_fn_executable_p "$ac_path_FGREP" || continue 13797# Check for GNU ac_path_FGREP and select it if it is found. 13798 # Check for GNU $ac_path_FGREP 13799case `"$ac_path_FGREP" --version 2>&1` in 13800*GNU*) 13801 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13802*) 13803 ac_count=0 13804 $as_echo_n 0123456789 >"conftest.in" 13805 while : 13806 do 13807 cat "conftest.in" "conftest.in" >"conftest.tmp" 13808 mv "conftest.tmp" "conftest.in" 13809 cp "conftest.in" "conftest.nl" 13810 $as_echo 'FGREP' >> "conftest.nl" 13811 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13813 as_fn_arith $ac_count + 1 && ac_count=$as_val 13814 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13815 # Best one so far, save it but keep looking for a better one 13816 ac_cv_path_FGREP="$ac_path_FGREP" 13817 ac_path_FGREP_max=$ac_count 13818 fi 13819 # 10*(2^10) chars as input seems more than enough 13820 test $ac_count -gt 10 && break 13821 done 13822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13823esac 13824 13825 $ac_path_FGREP_found && break 3 13826 done 13827 done 13828 done 13829IFS=$as_save_IFS 13830 if test -z "$ac_cv_path_FGREP"; then 13831 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13832 fi 13833else 13834 ac_cv_path_FGREP=$FGREP 13835fi 13836 13837 fi 13838fi 13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13840$as_echo "$ac_cv_path_FGREP" >&6; } 13841 FGREP="$ac_cv_path_FGREP" 13842 13843 13844test -z "$GREP" && GREP=grep 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864# Check whether --with-gnu-ld was given. 13865if test "${with_gnu_ld+set}" = set; then : 13866 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13867else 13868 with_gnu_ld=no 13869fi 13870 13871ac_prog=ld 13872if test "$GCC" = yes; then 13873 # Check if gcc -print-prog-name=ld gives a path. 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13875$as_echo_n "checking for ld used by $CC... " >&6; } 13876 case $host in 13877 *-*-mingw*) 13878 # gcc leaves a trailing carriage return which upsets mingw 13879 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13880 *) 13881 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13882 esac 13883 case $ac_prog in 13884 # Accept absolute paths. 13885 [\\/]* | ?:[\\/]*) 13886 re_direlt='/[^/][^/]*/\.\./' 13887 # Canonicalize the pathname of ld 13888 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13889 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13890 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13891 done 13892 test -z "$LD" && LD="$ac_prog" 13893 ;; 13894 "") 13895 # If it fails, then pretend we aren't using GCC. 13896 ac_prog=ld 13897 ;; 13898 *) 13899 # If it is relative, then search for the first ld in PATH. 13900 with_gnu_ld=unknown 13901 ;; 13902 esac 13903elif test "$with_gnu_ld" = yes; then 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13905$as_echo_n "checking for GNU ld... " >&6; } 13906else 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13908$as_echo_n "checking for non-GNU ld... " >&6; } 13909fi 13910if ${lt_cv_path_LD+:} false; then : 13911 $as_echo_n "(cached) " >&6 13912else 13913 if test -z "$LD"; then 13914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13915 for ac_dir in $PATH; do 13916 IFS="$lt_save_ifs" 13917 test -z "$ac_dir" && ac_dir=. 13918 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13919 lt_cv_path_LD="$ac_dir/$ac_prog" 13920 # Check to see if the program is GNU ld. I'd rather use --version, 13921 # but apparently some variants of GNU ld only accept -v. 13922 # Break only if it was the GNU/non-GNU ld that we prefer. 13923 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13924 *GNU* | *'with BFD'*) 13925 test "$with_gnu_ld" != no && break 13926 ;; 13927 *) 13928 test "$with_gnu_ld" != yes && break 13929 ;; 13930 esac 13931 fi 13932 done 13933 IFS="$lt_save_ifs" 13934else 13935 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13936fi 13937fi 13938 13939LD="$lt_cv_path_LD" 13940if test -n "$LD"; then 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13942$as_echo "$LD" >&6; } 13943else 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13945$as_echo "no" >&6; } 13946fi 13947test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13949$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13950if ${lt_cv_prog_gnu_ld+:} false; then : 13951 $as_echo_n "(cached) " >&6 13952else 13953 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13954case `$LD -v 2>&1 </dev/null` in 13955*GNU* | *'with BFD'*) 13956 lt_cv_prog_gnu_ld=yes 13957 ;; 13958*) 13959 lt_cv_prog_gnu_ld=no 13960 ;; 13961esac 13962fi 13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13964$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13965with_gnu_ld=$lt_cv_prog_gnu_ld 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 13976$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 13977if ${lt_cv_path_NM+:} false; then : 13978 $as_echo_n "(cached) " >&6 13979else 13980 if test -n "$NM"; then 13981 # Let the user override the test. 13982 lt_cv_path_NM="$NM" 13983else 13984 lt_nm_to_check="${ac_tool_prefix}nm" 13985 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 13986 lt_nm_to_check="$lt_nm_to_check nm" 13987 fi 13988 for lt_tmp_nm in $lt_nm_to_check; do 13989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13990 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 13991 IFS="$lt_save_ifs" 13992 test -z "$ac_dir" && ac_dir=. 13993 tmp_nm="$ac_dir/$lt_tmp_nm" 13994 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 13995 # Check to see if the nm accepts a BSD-compat flag. 13996 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 13997 # nm: unknown option "B" ignored 13998 # Tru64's nm complains that /dev/null is an invalid object file 13999 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 14000 */dev/null* | *'Invalid file or object type'*) 14001 lt_cv_path_NM="$tmp_nm -B" 14002 break 14003 ;; 14004 *) 14005 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 14006 */dev/null*) 14007 lt_cv_path_NM="$tmp_nm -p" 14008 break 14009 ;; 14010 *) 14011 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 14012 continue # so that we can try to find one that supports BSD flags 14013 ;; 14014 esac 14015 ;; 14016 esac 14017 fi 14018 done 14019 IFS="$lt_save_ifs" 14020 done 14021 : ${lt_cv_path_NM=no} 14022fi 14023fi 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 14025$as_echo "$lt_cv_path_NM" >&6; } 14026if test "$lt_cv_path_NM" != "no"; then 14027 NM="$lt_cv_path_NM" 14028else 14029 # Didn't find any BSD compatible name lister, look for dumpbin. 14030 if test -n "$DUMPBIN"; then : 14031 # Let the user override the test. 14032 else 14033 if test -n "$ac_tool_prefix"; then 14034 for ac_prog in dumpbin "link -dump" 14035 do 14036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14037set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14039$as_echo_n "checking for $ac_word... " >&6; } 14040if ${ac_cv_prog_DUMPBIN+:} false; then : 14041 $as_echo_n "(cached) " >&6 14042else 14043 if test -n "$DUMPBIN"; then 14044 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 14045else 14046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14047for as_dir in $PATH 14048do 14049 IFS=$as_save_IFS 14050 test -z "$as_dir" && as_dir=. 14051 for ac_exec_ext in '' $ac_executable_extensions; do 14052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14053 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 14054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14055 break 2 14056 fi 14057done 14058 done 14059IFS=$as_save_IFS 14060 14061fi 14062fi 14063DUMPBIN=$ac_cv_prog_DUMPBIN 14064if test -n "$DUMPBIN"; then 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 14066$as_echo "$DUMPBIN" >&6; } 14067else 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14069$as_echo "no" >&6; } 14070fi 14071 14072 14073 test -n "$DUMPBIN" && break 14074 done 14075fi 14076if test -z "$DUMPBIN"; then 14077 ac_ct_DUMPBIN=$DUMPBIN 14078 for ac_prog in dumpbin "link -dump" 14079do 14080 # Extract the first word of "$ac_prog", so it can be a program name with args. 14081set dummy $ac_prog; ac_word=$2 14082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14083$as_echo_n "checking for $ac_word... " >&6; } 14084if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 14085 $as_echo_n "(cached) " >&6 14086else 14087 if test -n "$ac_ct_DUMPBIN"; then 14088 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 14089else 14090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14091for as_dir in $PATH 14092do 14093 IFS=$as_save_IFS 14094 test -z "$as_dir" && as_dir=. 14095 for ac_exec_ext in '' $ac_executable_extensions; do 14096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14097 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 14098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14099 break 2 14100 fi 14101done 14102 done 14103IFS=$as_save_IFS 14104 14105fi 14106fi 14107ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 14108if test -n "$ac_ct_DUMPBIN"; then 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 14110$as_echo "$ac_ct_DUMPBIN" >&6; } 14111else 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14113$as_echo "no" >&6; } 14114fi 14115 14116 14117 test -n "$ac_ct_DUMPBIN" && break 14118done 14119 14120 if test "x$ac_ct_DUMPBIN" = x; then 14121 DUMPBIN=":" 14122 else 14123 case $cross_compiling:$ac_tool_warned in 14124yes:) 14125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14127ac_tool_warned=yes ;; 14128esac 14129 DUMPBIN=$ac_ct_DUMPBIN 14130 fi 14131fi 14132 14133 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 14134 *COFF*) 14135 DUMPBIN="$DUMPBIN -symbols" 14136 ;; 14137 *) 14138 DUMPBIN=: 14139 ;; 14140 esac 14141 fi 14142 14143 if test "$DUMPBIN" != ":"; then 14144 NM="$DUMPBIN" 14145 fi 14146fi 14147test -z "$NM" && NM=nm 14148 14149 14150 14151 14152 14153 14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 14155$as_echo_n "checking the name lister ($NM) interface... " >&6; } 14156if ${lt_cv_nm_interface+:} false; then : 14157 $as_echo_n "(cached) " >&6 14158else 14159 lt_cv_nm_interface="BSD nm" 14160 echo "int some_variable = 0;" > conftest.$ac_ext 14161 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 14162 (eval "$ac_compile" 2>conftest.err) 14163 cat conftest.err >&5 14164 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 14165 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 14166 cat conftest.err >&5 14167 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 14168 cat conftest.out >&5 14169 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 14170 lt_cv_nm_interface="MS dumpbin" 14171 fi 14172 rm -f conftest* 14173fi 14174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 14175$as_echo "$lt_cv_nm_interface" >&6; } 14176 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 14178$as_echo_n "checking whether ln -s works... " >&6; } 14179LN_S=$as_ln_s 14180if test "$LN_S" = "ln -s"; then 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14182$as_echo "yes" >&6; } 14183else 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 14185$as_echo "no, using $LN_S" >&6; } 14186fi 14187 14188# find the maximum length of command line arguments 14189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 14190$as_echo_n "checking the maximum length of command line arguments... " >&6; } 14191if ${lt_cv_sys_max_cmd_len+:} false; then : 14192 $as_echo_n "(cached) " >&6 14193else 14194 i=0 14195 teststring="ABCD" 14196 14197 case $build_os in 14198 msdosdjgpp*) 14199 # On DJGPP, this test can blow up pretty badly due to problems in libc 14200 # (any single argument exceeding 2000 bytes causes a buffer overrun 14201 # during glob expansion). Even if it were fixed, the result of this 14202 # check would be larger than it should be. 14203 lt_cv_sys_max_cmd_len=12288; # 12K is about right 14204 ;; 14205 14206 gnu*) 14207 # Under GNU Hurd, this test is not required because there is 14208 # no limit to the length of command line arguments. 14209 # Libtool will interpret -1 as no limit whatsoever 14210 lt_cv_sys_max_cmd_len=-1; 14211 ;; 14212 14213 cygwin* | mingw* | cegcc*) 14214 # On Win9x/ME, this test blows up -- it succeeds, but takes 14215 # about 5 minutes as the teststring grows exponentially. 14216 # Worse, since 9x/ME are not pre-emptively multitasking, 14217 # you end up with a "frozen" computer, even though with patience 14218 # the test eventually succeeds (with a max line length of 256k). 14219 # Instead, let's just punt: use the minimum linelength reported by 14220 # all of the supported platforms: 8192 (on NT/2K/XP). 14221 lt_cv_sys_max_cmd_len=8192; 14222 ;; 14223 14224 mint*) 14225 # On MiNT this can take a long time and run out of memory. 14226 lt_cv_sys_max_cmd_len=8192; 14227 ;; 14228 14229 amigaos*) 14230 # On AmigaOS with pdksh, this test takes hours, literally. 14231 # So we just punt and use a minimum line length of 8192. 14232 lt_cv_sys_max_cmd_len=8192; 14233 ;; 14234 14235 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 14236 # This has been around since 386BSD, at least. Likely further. 14237 if test -x /sbin/sysctl; then 14238 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 14239 elif test -x /usr/sbin/sysctl; then 14240 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 14241 else 14242 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 14243 fi 14244 # And add a safety zone 14245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 14246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 14247 ;; 14248 14249 interix*) 14250 # We know the value 262144 and hardcode it with a safety zone (like BSD) 14251 lt_cv_sys_max_cmd_len=196608 14252 ;; 14253 14254 osf*) 14255 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 14256 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 14257 # nice to cause kernel panics so lets avoid the loop below. 14258 # First set a reasonable default. 14259 lt_cv_sys_max_cmd_len=16384 14260 # 14261 if test -x /sbin/sysconfig; then 14262 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 14263 *1*) lt_cv_sys_max_cmd_len=-1 ;; 14264 esac 14265 fi 14266 ;; 14267 sco3.2v5*) 14268 lt_cv_sys_max_cmd_len=102400 14269 ;; 14270 sysv5* | sco5v6* | sysv4.2uw2*) 14271 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 14272 if test -n "$kargmax"; then 14273 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 14274 else 14275 lt_cv_sys_max_cmd_len=32768 14276 fi 14277 ;; 14278 *) 14279 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 14280 if test -n "$lt_cv_sys_max_cmd_len"; then 14281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 14282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 14283 else 14284 # Make teststring a little bigger before we do anything with it. 14285 # a 1K string should be a reasonable start. 14286 for i in 1 2 3 4 5 6 7 8 ; do 14287 teststring=$teststring$teststring 14288 done 14289 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 14290 # If test is not a shell built-in, we'll probably end up computing a 14291 # maximum length that is only half of the actual maximum length, but 14292 # we can't tell. 14293 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 14294 = "X$teststring$teststring"; } >/dev/null 2>&1 && 14295 test $i != 17 # 1/2 MB should be enough 14296 do 14297 i=`expr $i + 1` 14298 teststring=$teststring$teststring 14299 done 14300 # Only check the string length outside the loop. 14301 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 14302 teststring= 14303 # Add a significant safety factor because C++ compilers can tack on 14304 # massive amounts of additional arguments before passing them to the 14305 # linker. It appears as though 1/2 is a usable value. 14306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 14307 fi 14308 ;; 14309 esac 14310 14311fi 14312 14313if test -n $lt_cv_sys_max_cmd_len ; then 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 14315$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 14316else 14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 14318$as_echo "none" >&6; } 14319fi 14320max_cmd_len=$lt_cv_sys_max_cmd_len 14321 14322 14323 14324 14325 14326 14327: ${CP="cp -f"} 14328: ${MV="mv -f"} 14329: ${RM="rm -f"} 14330 14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 14332$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 14333# Try some XSI features 14334xsi_shell=no 14335( _lt_dummy="a/b/c" 14336 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 14337 = c,a/b,, \ 14338 && eval 'test $(( 1 + 1 )) -eq 2 \ 14339 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 14340 && xsi_shell=yes 14341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 14342$as_echo "$xsi_shell" >&6; } 14343 14344 14345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 14346$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 14347lt_shell_append=no 14348( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 14349 >/dev/null 2>&1 \ 14350 && lt_shell_append=yes 14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 14352$as_echo "$lt_shell_append" >&6; } 14353 14354 14355if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14356 lt_unset=unset 14357else 14358 lt_unset=false 14359fi 14360 14361 14362 14363 14364 14365# test EBCDIC or ASCII 14366case `echo X|tr X '\101'` in 14367 A) # ASCII based system 14368 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 14369 lt_SP2NL='tr \040 \012' 14370 lt_NL2SP='tr \015\012 \040\040' 14371 ;; 14372 *) # EBCDIC based system 14373 lt_SP2NL='tr \100 \n' 14374 lt_NL2SP='tr \r\n \100\100' 14375 ;; 14376esac 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 14387$as_echo_n "checking for $LD option to reload object files... " >&6; } 14388if ${lt_cv_ld_reload_flag+:} false; then : 14389 $as_echo_n "(cached) " >&6 14390else 14391 lt_cv_ld_reload_flag='-r' 14392fi 14393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 14394$as_echo "$lt_cv_ld_reload_flag" >&6; } 14395reload_flag=$lt_cv_ld_reload_flag 14396case $reload_flag in 14397"" | " "*) ;; 14398*) reload_flag=" $reload_flag" ;; 14399esac 14400reload_cmds='$LD$reload_flag -o $output$reload_objs' 14401case $host_os in 14402 darwin*) 14403 if test "$GCC" = yes; then 14404 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 14405 else 14406 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14407 fi 14408 ;; 14409esac 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419if test -n "$ac_tool_prefix"; then 14420 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14421set dummy ${ac_tool_prefix}objdump; ac_word=$2 14422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14423$as_echo_n "checking for $ac_word... " >&6; } 14424if ${ac_cv_prog_OBJDUMP+:} false; then : 14425 $as_echo_n "(cached) " >&6 14426else 14427 if test -n "$OBJDUMP"; then 14428 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14429else 14430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14431for as_dir in $PATH 14432do 14433 IFS=$as_save_IFS 14434 test -z "$as_dir" && as_dir=. 14435 for ac_exec_ext in '' $ac_executable_extensions; do 14436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14437 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14439 break 2 14440 fi 14441done 14442 done 14443IFS=$as_save_IFS 14444 14445fi 14446fi 14447OBJDUMP=$ac_cv_prog_OBJDUMP 14448if test -n "$OBJDUMP"; then 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14450$as_echo "$OBJDUMP" >&6; } 14451else 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14453$as_echo "no" >&6; } 14454fi 14455 14456 14457fi 14458if test -z "$ac_cv_prog_OBJDUMP"; then 14459 ac_ct_OBJDUMP=$OBJDUMP 14460 # Extract the first word of "objdump", so it can be a program name with args. 14461set dummy objdump; ac_word=$2 14462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14463$as_echo_n "checking for $ac_word... " >&6; } 14464if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 14465 $as_echo_n "(cached) " >&6 14466else 14467 if test -n "$ac_ct_OBJDUMP"; then 14468 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14469else 14470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14471for as_dir in $PATH 14472do 14473 IFS=$as_save_IFS 14474 test -z "$as_dir" && as_dir=. 14475 for ac_exec_ext in '' $ac_executable_extensions; do 14476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14477 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14479 break 2 14480 fi 14481done 14482 done 14483IFS=$as_save_IFS 14484 14485fi 14486fi 14487ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 14488if test -n "$ac_ct_OBJDUMP"; then 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 14490$as_echo "$ac_ct_OBJDUMP" >&6; } 14491else 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14493$as_echo "no" >&6; } 14494fi 14495 14496 if test "x$ac_ct_OBJDUMP" = x; then 14497 OBJDUMP="false" 14498 else 14499 case $cross_compiling:$ac_tool_warned in 14500yes:) 14501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14503ac_tool_warned=yes ;; 14504esac 14505 OBJDUMP=$ac_ct_OBJDUMP 14506 fi 14507else 14508 OBJDUMP="$ac_cv_prog_OBJDUMP" 14509fi 14510 14511test -z "$OBJDUMP" && OBJDUMP=objdump 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 14522$as_echo_n "checking how to recognize dependent libraries... " >&6; } 14523if ${lt_cv_deplibs_check_method+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 lt_cv_file_magic_cmd='$MAGIC_CMD' 14527lt_cv_file_magic_test_file= 14528lt_cv_deplibs_check_method='unknown' 14529# Need to set the preceding variable on all platforms that support 14530# interlibrary dependencies. 14531# 'none' -- dependencies not supported. 14532# `unknown' -- same as none, but documents that we really don't know. 14533# 'pass_all' -- all dependencies passed with no checks. 14534# 'test_compile' -- check by making test program. 14535# 'file_magic [[regex]]' -- check by looking for files in library path 14536# which responds to the $file_magic_cmd with a given extended regex. 14537# If you have `file' or equivalent on your system and you're not sure 14538# whether `pass_all' will *always* work, you probably want this one. 14539 14540case $host_os in 14541aix[4-9]*) 14542 lt_cv_deplibs_check_method=pass_all 14543 ;; 14544 14545beos*) 14546 lt_cv_deplibs_check_method=pass_all 14547 ;; 14548 14549bsdi[45]*) 14550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 14551 lt_cv_file_magic_cmd='/usr/bin/file -L' 14552 lt_cv_file_magic_test_file=/shlib/libc.so 14553 ;; 14554 14555cygwin*) 14556 # func_win32_libid is a shell function defined in ltmain.sh 14557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14558 lt_cv_file_magic_cmd='func_win32_libid' 14559 ;; 14560 14561mingw* | pw32*) 14562 # Base MSYS/MinGW do not provide the 'file' command needed by 14563 # func_win32_libid shell function, so use a weaker test based on 'objdump', 14564 # unless we find 'file', for example because we are cross-compiling. 14565 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 14566 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 14567 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14568 lt_cv_file_magic_cmd='func_win32_libid' 14569 else 14570 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 14571 lt_cv_file_magic_cmd='$OBJDUMP -f' 14572 fi 14573 ;; 14574 14575cegcc*) 14576 # use the weaker test based on 'objdump'. See mingw*. 14577 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 14578 lt_cv_file_magic_cmd='$OBJDUMP -f' 14579 ;; 14580 14581darwin* | rhapsody*) 14582 lt_cv_deplibs_check_method=pass_all 14583 ;; 14584 14585freebsd* | dragonfly*) 14586 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14587 case $host_cpu in 14588 i*86 ) 14589 # Not sure whether the presence of OpenBSD here was a mistake. 14590 # Let's accept both of them until this is cleared up. 14591 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 14592 lt_cv_file_magic_cmd=/usr/bin/file 14593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 14594 ;; 14595 esac 14596 else 14597 lt_cv_deplibs_check_method=pass_all 14598 fi 14599 ;; 14600 14601gnu*) 14602 lt_cv_deplibs_check_method=pass_all 14603 ;; 14604 14605haiku*) 14606 lt_cv_deplibs_check_method=pass_all 14607 ;; 14608 14609hpux10.20* | hpux11*) 14610 lt_cv_file_magic_cmd=/usr/bin/file 14611 case $host_cpu in 14612 ia64*) 14613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 14614 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 14615 ;; 14616 hppa*64*) 14617 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 14618 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 14619 ;; 14620 *) 14621 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 14622 lt_cv_file_magic_test_file=/usr/lib/libc.sl 14623 ;; 14624 esac 14625 ;; 14626 14627interix[3-9]*) 14628 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 14629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 14630 ;; 14631 14632irix5* | irix6* | nonstopux*) 14633 case $LD in 14634 *-32|*"-32 ") libmagic=32-bit;; 14635 *-n32|*"-n32 ") libmagic=N32;; 14636 *-64|*"-64 ") libmagic=64-bit;; 14637 *) libmagic=never-match;; 14638 esac 14639 lt_cv_deplibs_check_method=pass_all 14640 ;; 14641 14642# This must be Linux ELF. 14643linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 14644 lt_cv_deplibs_check_method=pass_all 14645 ;; 14646 14647netbsd*) 14648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14650 else 14651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 14652 fi 14653 ;; 14654 14655newos6*) 14656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 14657 lt_cv_file_magic_cmd=/usr/bin/file 14658 lt_cv_file_magic_test_file=/usr/lib/libnls.so 14659 ;; 14660 14661*nto* | *qnx*) 14662 lt_cv_deplibs_check_method=pass_all 14663 ;; 14664 14665openbsd*) 14666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 14668 else 14669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14670 fi 14671 ;; 14672 14673osf3* | osf4* | osf5*) 14674 lt_cv_deplibs_check_method=pass_all 14675 ;; 14676 14677rdos*) 14678 lt_cv_deplibs_check_method=pass_all 14679 ;; 14680 14681solaris*) 14682 lt_cv_deplibs_check_method=pass_all 14683 ;; 14684 14685sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14686 lt_cv_deplibs_check_method=pass_all 14687 ;; 14688 14689sysv4 | sysv4.3*) 14690 case $host_vendor in 14691 motorola) 14692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 14693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 14694 ;; 14695 ncr) 14696 lt_cv_deplibs_check_method=pass_all 14697 ;; 14698 sequent) 14699 lt_cv_file_magic_cmd='/bin/file' 14700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 14701 ;; 14702 sni) 14703 lt_cv_file_magic_cmd='/bin/file' 14704 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 14705 lt_cv_file_magic_test_file=/lib/libc.so 14706 ;; 14707 siemens) 14708 lt_cv_deplibs_check_method=pass_all 14709 ;; 14710 pc) 14711 lt_cv_deplibs_check_method=pass_all 14712 ;; 14713 esac 14714 ;; 14715 14716tpf*) 14717 lt_cv_deplibs_check_method=pass_all 14718 ;; 14719esac 14720 14721fi 14722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 14723$as_echo "$lt_cv_deplibs_check_method" >&6; } 14724file_magic_cmd=$lt_cv_file_magic_cmd 14725deplibs_check_method=$lt_cv_deplibs_check_method 14726test -z "$deplibs_check_method" && deplibs_check_method=unknown 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739if test -n "$ac_tool_prefix"; then 14740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 14741set dummy ${ac_tool_prefix}ar; ac_word=$2 14742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14743$as_echo_n "checking for $ac_word... " >&6; } 14744if ${ac_cv_prog_AR+:} false; then : 14745 $as_echo_n "(cached) " >&6 14746else 14747 if test -n "$AR"; then 14748 ac_cv_prog_AR="$AR" # Let the user override the test. 14749else 14750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14751for as_dir in $PATH 14752do 14753 IFS=$as_save_IFS 14754 test -z "$as_dir" && as_dir=. 14755 for ac_exec_ext in '' $ac_executable_extensions; do 14756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14757 ac_cv_prog_AR="${ac_tool_prefix}ar" 14758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14759 break 2 14760 fi 14761done 14762 done 14763IFS=$as_save_IFS 14764 14765fi 14766fi 14767AR=$ac_cv_prog_AR 14768if test -n "$AR"; then 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 14770$as_echo "$AR" >&6; } 14771else 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14773$as_echo "no" >&6; } 14774fi 14775 14776 14777fi 14778if test -z "$ac_cv_prog_AR"; then 14779 ac_ct_AR=$AR 14780 # Extract the first word of "ar", so it can be a program name with args. 14781set dummy ar; ac_word=$2 14782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14783$as_echo_n "checking for $ac_word... " >&6; } 14784if ${ac_cv_prog_ac_ct_AR+:} false; then : 14785 $as_echo_n "(cached) " >&6 14786else 14787 if test -n "$ac_ct_AR"; then 14788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 14789else 14790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14791for as_dir in $PATH 14792do 14793 IFS=$as_save_IFS 14794 test -z "$as_dir" && as_dir=. 14795 for ac_exec_ext in '' $ac_executable_extensions; do 14796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14797 ac_cv_prog_ac_ct_AR="ar" 14798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14799 break 2 14800 fi 14801done 14802 done 14803IFS=$as_save_IFS 14804 14805fi 14806fi 14807ac_ct_AR=$ac_cv_prog_ac_ct_AR 14808if test -n "$ac_ct_AR"; then 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 14810$as_echo "$ac_ct_AR" >&6; } 14811else 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14813$as_echo "no" >&6; } 14814fi 14815 14816 if test "x$ac_ct_AR" = x; then 14817 AR="false" 14818 else 14819 case $cross_compiling:$ac_tool_warned in 14820yes:) 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14823ac_tool_warned=yes ;; 14824esac 14825 AR=$ac_ct_AR 14826 fi 14827else 14828 AR="$ac_cv_prog_AR" 14829fi 14830 14831test -z "$AR" && AR=ar 14832test -z "$AR_FLAGS" && AR_FLAGS=cru 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844if test -n "$ac_tool_prefix"; then 14845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 14846set dummy ${ac_tool_prefix}strip; ac_word=$2 14847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14848$as_echo_n "checking for $ac_word... " >&6; } 14849if ${ac_cv_prog_STRIP+:} false; then : 14850 $as_echo_n "(cached) " >&6 14851else 14852 if test -n "$STRIP"; then 14853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 14854else 14855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14856for as_dir in $PATH 14857do 14858 IFS=$as_save_IFS 14859 test -z "$as_dir" && as_dir=. 14860 for ac_exec_ext in '' $ac_executable_extensions; do 14861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14862 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14864 break 2 14865 fi 14866done 14867 done 14868IFS=$as_save_IFS 14869 14870fi 14871fi 14872STRIP=$ac_cv_prog_STRIP 14873if test -n "$STRIP"; then 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14875$as_echo "$STRIP" >&6; } 14876else 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14878$as_echo "no" >&6; } 14879fi 14880 14881 14882fi 14883if test -z "$ac_cv_prog_STRIP"; then 14884 ac_ct_STRIP=$STRIP 14885 # Extract the first word of "strip", so it can be a program name with args. 14886set dummy strip; ac_word=$2 14887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14888$as_echo_n "checking for $ac_word... " >&6; } 14889if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14890 $as_echo_n "(cached) " >&6 14891else 14892 if test -n "$ac_ct_STRIP"; then 14893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14894else 14895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14896for as_dir in $PATH 14897do 14898 IFS=$as_save_IFS 14899 test -z "$as_dir" && as_dir=. 14900 for ac_exec_ext in '' $ac_executable_extensions; do 14901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14902 ac_cv_prog_ac_ct_STRIP="strip" 14903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14904 break 2 14905 fi 14906done 14907 done 14908IFS=$as_save_IFS 14909 14910fi 14911fi 14912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14913if test -n "$ac_ct_STRIP"; then 14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14915$as_echo "$ac_ct_STRIP" >&6; } 14916else 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14918$as_echo "no" >&6; } 14919fi 14920 14921 if test "x$ac_ct_STRIP" = x; then 14922 STRIP=":" 14923 else 14924 case $cross_compiling:$ac_tool_warned in 14925yes:) 14926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14928ac_tool_warned=yes ;; 14929esac 14930 STRIP=$ac_ct_STRIP 14931 fi 14932else 14933 STRIP="$ac_cv_prog_STRIP" 14934fi 14935 14936test -z "$STRIP" && STRIP=: 14937 14938 14939 14940 14941 14942 14943if test -n "$ac_tool_prefix"; then 14944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14945set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14947$as_echo_n "checking for $ac_word... " >&6; } 14948if ${ac_cv_prog_RANLIB+:} false; then : 14949 $as_echo_n "(cached) " >&6 14950else 14951 if test -n "$RANLIB"; then 14952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14953else 14954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14955for as_dir in $PATH 14956do 14957 IFS=$as_save_IFS 14958 test -z "$as_dir" && as_dir=. 14959 for ac_exec_ext in '' $ac_executable_extensions; do 14960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14963 break 2 14964 fi 14965done 14966 done 14967IFS=$as_save_IFS 14968 14969fi 14970fi 14971RANLIB=$ac_cv_prog_RANLIB 14972if test -n "$RANLIB"; then 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14974$as_echo "$RANLIB" >&6; } 14975else 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14977$as_echo "no" >&6; } 14978fi 14979 14980 14981fi 14982if test -z "$ac_cv_prog_RANLIB"; then 14983 ac_ct_RANLIB=$RANLIB 14984 # Extract the first word of "ranlib", so it can be a program name with args. 14985set dummy ranlib; ac_word=$2 14986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14987$as_echo_n "checking for $ac_word... " >&6; } 14988if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 14989 $as_echo_n "(cached) " >&6 14990else 14991 if test -n "$ac_ct_RANLIB"; then 14992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 14993else 14994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14995for as_dir in $PATH 14996do 14997 IFS=$as_save_IFS 14998 test -z "$as_dir" && as_dir=. 14999 for ac_exec_ext in '' $ac_executable_extensions; do 15000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15001 ac_cv_prog_ac_ct_RANLIB="ranlib" 15002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15003 break 2 15004 fi 15005done 15006 done 15007IFS=$as_save_IFS 15008 15009fi 15010fi 15011ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 15012if test -n "$ac_ct_RANLIB"; then 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 15014$as_echo "$ac_ct_RANLIB" >&6; } 15015else 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15017$as_echo "no" >&6; } 15018fi 15019 15020 if test "x$ac_ct_RANLIB" = x; then 15021 RANLIB=":" 15022 else 15023 case $cross_compiling:$ac_tool_warned in 15024yes:) 15025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15027ac_tool_warned=yes ;; 15028esac 15029 RANLIB=$ac_ct_RANLIB 15030 fi 15031else 15032 RANLIB="$ac_cv_prog_RANLIB" 15033fi 15034 15035test -z "$RANLIB" && RANLIB=: 15036 15037 15038 15039 15040 15041 15042# Determine commands to create old-style static archives. 15043old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15044old_postinstall_cmds='chmod 644 $oldlib' 15045old_postuninstall_cmds= 15046 15047if test -n "$RANLIB"; then 15048 case $host_os in 15049 openbsd*) 15050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 15051 ;; 15052 *) 15053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 15054 ;; 15055 esac 15056 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 15057fi 15058 15059case $host_os in 15060 darwin*) 15061 lock_old_archive_extraction=yes ;; 15062 *) 15063 lock_old_archive_extraction=no ;; 15064esac 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104# If no C compiler was specified, use CC. 15105LTCC=${LTCC-"$CC"} 15106 15107# If no C compiler flags were specified, use CFLAGS. 15108LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15109 15110# Allow CC to be a program name with arguments. 15111compiler=$CC 15112 15113 15114# Check for command to grab the raw symbol name followed by C symbol from nm. 15115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 15116$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 15117if ${lt_cv_sys_global_symbol_pipe+:} false; then : 15118 $as_echo_n "(cached) " >&6 15119else 15120 15121# These are sane defaults that work on at least a few old systems. 15122# [They come from Ultrix. What could be older than Ultrix?!! ;)] 15123 15124# Character class describing NM global symbol codes. 15125symcode='[BCDEGRST]' 15126 15127# Regexp to match symbols that can be accessed directly from C. 15128sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 15129 15130# Define system-specific variables. 15131case $host_os in 15132aix*) 15133 symcode='[BCDT]' 15134 ;; 15135cygwin* | mingw* | pw32* | cegcc*) 15136 symcode='[ABCDGISTW]' 15137 ;; 15138hpux*) 15139 if test "$host_cpu" = ia64; then 15140 symcode='[ABCDEGRST]' 15141 fi 15142 ;; 15143irix* | nonstopux*) 15144 symcode='[BCDEGRST]' 15145 ;; 15146osf*) 15147 symcode='[BCDEGQRST]' 15148 ;; 15149solaris*) 15150 symcode='[BDRT]' 15151 ;; 15152sco3.2v5*) 15153 symcode='[DT]' 15154 ;; 15155sysv4.2uw2*) 15156 symcode='[DT]' 15157 ;; 15158sysv5* | sco5v6* | unixware* | OpenUNIX*) 15159 symcode='[ABDT]' 15160 ;; 15161sysv4) 15162 symcode='[DFNSTU]' 15163 ;; 15164esac 15165 15166# If we're using GNU nm, then use its standard symbol codes. 15167case `$NM -V 2>&1` in 15168*GNU* | *'with BFD'*) 15169 symcode='[ABCDGIRSTW]' ;; 15170esac 15171 15172# Transform an extracted symbol line into a proper C declaration. 15173# Some systems (esp. on ia64) link data and code symbols differently, 15174# so use this general approach. 15175lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 15176 15177# Transform an extracted symbol line into symbol name and symbol address 15178lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 15179lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 15180 15181# Handle CRLF in mingw tool chain 15182opt_cr= 15183case $build_os in 15184mingw*) 15185 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 15186 ;; 15187esac 15188 15189# Try without a prefix underscore, then with it. 15190for ac_symprfx in "" "_"; do 15191 15192 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 15193 symxfrm="\\1 $ac_symprfx\\2 \\2" 15194 15195 # Write the raw and C identifiers. 15196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15197 # Fake it for dumpbin and say T for any non-static function 15198 # and D for any global variable. 15199 # Also find C++ and __fastcall symbols from MSVC++, 15200 # which start with @ or ?. 15201 lt_cv_sys_global_symbol_pipe="$AWK '"\ 15202" {last_section=section; section=\$ 3};"\ 15203" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 15204" \$ 0!~/External *\|/{next};"\ 15205" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 15206" {if(hide[section]) next};"\ 15207" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 15208" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 15209" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 15210" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 15211" ' prfx=^$ac_symprfx" 15212 else 15213 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 15214 fi 15215 15216 # Check to see that the pipe works correctly. 15217 pipe_works=no 15218 15219 rm -f conftest* 15220 cat > conftest.$ac_ext <<_LT_EOF 15221#ifdef __cplusplus 15222extern "C" { 15223#endif 15224char nm_test_var; 15225void nm_test_func(void); 15226void nm_test_func(void){} 15227#ifdef __cplusplus 15228} 15229#endif 15230int main(){nm_test_var='a';nm_test_func();return(0);} 15231_LT_EOF 15232 15233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15234 (eval $ac_compile) 2>&5 15235 ac_status=$? 15236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15237 test $ac_status = 0; }; then 15238 # Now try to grab the symbols. 15239 nlist=conftest.nm 15240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 15241 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 15242 ac_status=$? 15243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15244 test $ac_status = 0; } && test -s "$nlist"; then 15245 # Try sorting and uniquifying the output. 15246 if sort "$nlist" | uniq > "$nlist"T; then 15247 mv -f "$nlist"T "$nlist" 15248 else 15249 rm -f "$nlist"T 15250 fi 15251 15252 # Make sure that we snagged all the symbols we need. 15253 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 15254 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 15255 cat <<_LT_EOF > conftest.$ac_ext 15256#ifdef __cplusplus 15257extern "C" { 15258#endif 15259 15260_LT_EOF 15261 # Now generate the symbol file. 15262 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 15263 15264 cat <<_LT_EOF >> conftest.$ac_ext 15265 15266/* The mapping between symbol names and symbols. */ 15267const struct { 15268 const char *name; 15269 void *address; 15270} 15271lt__PROGRAM__LTX_preloaded_symbols[] = 15272{ 15273 { "@PROGRAM@", (void *) 0 }, 15274_LT_EOF 15275 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 15276 cat <<\_LT_EOF >> conftest.$ac_ext 15277 {0, (void *) 0} 15278}; 15279 15280/* This works around a problem in FreeBSD linker */ 15281#ifdef FREEBSD_WORKAROUND 15282static const void *lt_preloaded_setup() { 15283 return lt__PROGRAM__LTX_preloaded_symbols; 15284} 15285#endif 15286 15287#ifdef __cplusplus 15288} 15289#endif 15290_LT_EOF 15291 # Now try linking the two files. 15292 mv conftest.$ac_objext conftstm.$ac_objext 15293 lt_save_LIBS="$LIBS" 15294 lt_save_CFLAGS="$CFLAGS" 15295 LIBS="conftstm.$ac_objext" 15296 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 15297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15298 (eval $ac_link) 2>&5 15299 ac_status=$? 15300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15301 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 15302 pipe_works=yes 15303 fi 15304 LIBS="$lt_save_LIBS" 15305 CFLAGS="$lt_save_CFLAGS" 15306 else 15307 echo "cannot find nm_test_func in $nlist" >&5 15308 fi 15309 else 15310 echo "cannot find nm_test_var in $nlist" >&5 15311 fi 15312 else 15313 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 15314 fi 15315 else 15316 echo "$progname: failed program was:" >&5 15317 cat conftest.$ac_ext >&5 15318 fi 15319 rm -rf conftest* conftst* 15320 15321 # Do not use the global_symbol_pipe unless it works. 15322 if test "$pipe_works" = yes; then 15323 break 15324 else 15325 lt_cv_sys_global_symbol_pipe= 15326 fi 15327done 15328 15329fi 15330 15331if test -z "$lt_cv_sys_global_symbol_pipe"; then 15332 lt_cv_sys_global_symbol_to_cdecl= 15333fi 15334if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15336$as_echo "failed" >&6; } 15337else 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15339$as_echo "ok" >&6; } 15340fi 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363# Check whether --enable-libtool-lock was given. 15364if test "${enable_libtool_lock+set}" = set; then : 15365 enableval=$enable_libtool_lock; 15366fi 15367 15368test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 15369 15370# Some flags need to be propagated to the compiler or linker for good 15371# libtool support. 15372case $host in 15373ia64-*-hpux*) 15374 # Find out which ABI we are using. 15375 echo 'int i;' > conftest.$ac_ext 15376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15377 (eval $ac_compile) 2>&5 15378 ac_status=$? 15379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15380 test $ac_status = 0; }; then 15381 case `/usr/bin/file conftest.$ac_objext` in 15382 *ELF-32*) 15383 HPUX_IA64_MODE="32" 15384 ;; 15385 *ELF-64*) 15386 HPUX_IA64_MODE="64" 15387 ;; 15388 esac 15389 fi 15390 rm -rf conftest* 15391 ;; 15392*-*-irix6*) 15393 # Find out which ABI we are using. 15394 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15396 (eval $ac_compile) 2>&5 15397 ac_status=$? 15398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15399 test $ac_status = 0; }; then 15400 if test "$lt_cv_prog_gnu_ld" = yes; then 15401 case `/usr/bin/file conftest.$ac_objext` in 15402 *32-bit*) 15403 LD="${LD-ld} -melf32bsmip" 15404 ;; 15405 *N32*) 15406 LD="${LD-ld} -melf32bmipn32" 15407 ;; 15408 *64-bit*) 15409 LD="${LD-ld} -melf64bmip" 15410 ;; 15411 esac 15412 else 15413 case `/usr/bin/file conftest.$ac_objext` in 15414 *32-bit*) 15415 LD="${LD-ld} -32" 15416 ;; 15417 *N32*) 15418 LD="${LD-ld} -n32" 15419 ;; 15420 *64-bit*) 15421 LD="${LD-ld} -64" 15422 ;; 15423 esac 15424 fi 15425 fi 15426 rm -rf conftest* 15427 ;; 15428 15429x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 15430s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 15431 # Find out which ABI we are using. 15432 echo 'int i;' > conftest.$ac_ext 15433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15434 (eval $ac_compile) 2>&5 15435 ac_status=$? 15436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15437 test $ac_status = 0; }; then 15438 case `/usr/bin/file conftest.o` in 15439 *32-bit*) 15440 case $host in 15441 x86_64-*kfreebsd*-gnu) 15442 LD="${LD-ld} -m elf_i386_fbsd" 15443 ;; 15444 x86_64-*linux*) 15445 case `/usr/bin/file conftest.o` in 15446 *x86-64*) 15447 LD="${LD-ld} -m elf32_x86_64" 15448 ;; 15449 *) 15450 LD="${LD-ld} -m elf_i386" 15451 ;; 15452 esac 15453 ;; 15454 powerpc64le-*linux*) 15455 LD="${LD-ld} -m elf32lppclinux" 15456 ;; 15457 powerpc64-*linux*) 15458 LD="${LD-ld} -m elf32ppclinux" 15459 ;; 15460 s390x-*linux*) 15461 LD="${LD-ld} -m elf_s390" 15462 ;; 15463 sparc64-*linux*) 15464 LD="${LD-ld} -m elf32_sparc" 15465 ;; 15466 esac 15467 ;; 15468 *64-bit*) 15469 case $host in 15470 x86_64-*kfreebsd*-gnu) 15471 LD="${LD-ld} -m elf_x86_64_fbsd" 15472 ;; 15473 x86_64-*linux*) 15474 LD="${LD-ld} -m elf_x86_64" 15475 ;; 15476 powerpcle-*linux*) 15477 LD="${LD-ld} -m elf64lppc" 15478 ;; 15479 powerpc-*linux*) 15480 LD="${LD-ld} -m elf64ppc" 15481 ;; 15482 s390*-*linux*|s390*-*tpf*) 15483 LD="${LD-ld} -m elf64_s390" 15484 ;; 15485 sparc*-*linux*) 15486 LD="${LD-ld} -m elf64_sparc" 15487 ;; 15488 esac 15489 ;; 15490 esac 15491 fi 15492 rm -rf conftest* 15493 ;; 15494 15495*-*-sco3.2v5*) 15496 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 15497 SAVE_CFLAGS="$CFLAGS" 15498 CFLAGS="$CFLAGS -belf" 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 15500$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 15501if ${lt_cv_cc_needs_belf+:} false; then : 15502 $as_echo_n "(cached) " >&6 15503else 15504 ac_ext=c 15505ac_cpp='$CPP $CPPFLAGS' 15506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15508ac_compiler_gnu=$ac_cv_c_compiler_gnu 15509 15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15511/* end confdefs.h. */ 15512 15513int 15514main () 15515{ 15516 15517 ; 15518 return 0; 15519} 15520_ACEOF 15521if ac_fn_c_try_link "$LINENO"; then : 15522 lt_cv_cc_needs_belf=yes 15523else 15524 lt_cv_cc_needs_belf=no 15525fi 15526rm -f core conftest.err conftest.$ac_objext \ 15527 conftest$ac_exeext conftest.$ac_ext 15528 ac_ext=c 15529ac_cpp='$CPP $CPPFLAGS' 15530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15532ac_compiler_gnu=$ac_cv_c_compiler_gnu 15533 15534fi 15535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 15536$as_echo "$lt_cv_cc_needs_belf" >&6; } 15537 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 15538 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 15539 CFLAGS="$SAVE_CFLAGS" 15540 fi 15541 ;; 15542sparc*-*solaris*) 15543 # Find out which ABI we are using. 15544 echo 'int i;' > conftest.$ac_ext 15545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15546 (eval $ac_compile) 2>&5 15547 ac_status=$? 15548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15549 test $ac_status = 0; }; then 15550 case `/usr/bin/file conftest.o` in 15551 *64-bit*) 15552 case $lt_cv_prog_gnu_ld in 15553 yes*) LD="${LD-ld} -m elf64_sparc" ;; 15554 *) 15555 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 15556 LD="${LD-ld} -64" 15557 fi 15558 ;; 15559 esac 15560 ;; 15561 esac 15562 fi 15563 rm -rf conftest* 15564 ;; 15565esac 15566 15567need_locks="$enable_libtool_lock" 15568 15569 15570 case $host_os in 15571 rhapsody* | darwin*) 15572 if test -n "$ac_tool_prefix"; then 15573 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 15574set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 15575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15576$as_echo_n "checking for $ac_word... " >&6; } 15577if ${ac_cv_prog_DSYMUTIL+:} false; then : 15578 $as_echo_n "(cached) " >&6 15579else 15580 if test -n "$DSYMUTIL"; then 15581 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 15582else 15583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15584for as_dir in $PATH 15585do 15586 IFS=$as_save_IFS 15587 test -z "$as_dir" && as_dir=. 15588 for ac_exec_ext in '' $ac_executable_extensions; do 15589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15590 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 15591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15592 break 2 15593 fi 15594done 15595 done 15596IFS=$as_save_IFS 15597 15598fi 15599fi 15600DSYMUTIL=$ac_cv_prog_DSYMUTIL 15601if test -n "$DSYMUTIL"; then 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 15603$as_echo "$DSYMUTIL" >&6; } 15604else 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15606$as_echo "no" >&6; } 15607fi 15608 15609 15610fi 15611if test -z "$ac_cv_prog_DSYMUTIL"; then 15612 ac_ct_DSYMUTIL=$DSYMUTIL 15613 # Extract the first word of "dsymutil", so it can be a program name with args. 15614set dummy dsymutil; ac_word=$2 15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15616$as_echo_n "checking for $ac_word... " >&6; } 15617if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 15618 $as_echo_n "(cached) " >&6 15619else 15620 if test -n "$ac_ct_DSYMUTIL"; then 15621 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 15622else 15623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15624for as_dir in $PATH 15625do 15626 IFS=$as_save_IFS 15627 test -z "$as_dir" && as_dir=. 15628 for ac_exec_ext in '' $ac_executable_extensions; do 15629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15630 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15632 break 2 15633 fi 15634done 15635 done 15636IFS=$as_save_IFS 15637 15638fi 15639fi 15640ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15641if test -n "$ac_ct_DSYMUTIL"; then 15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15643$as_echo "$ac_ct_DSYMUTIL" >&6; } 15644else 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15646$as_echo "no" >&6; } 15647fi 15648 15649 if test "x$ac_ct_DSYMUTIL" = x; then 15650 DSYMUTIL=":" 15651 else 15652 case $cross_compiling:$ac_tool_warned in 15653yes:) 15654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15656ac_tool_warned=yes ;; 15657esac 15658 DSYMUTIL=$ac_ct_DSYMUTIL 15659 fi 15660else 15661 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15662fi 15663 15664 if test -n "$ac_tool_prefix"; then 15665 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 15666set dummy ${ac_tool_prefix}nmedit; ac_word=$2 15667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15668$as_echo_n "checking for $ac_word... " >&6; } 15669if ${ac_cv_prog_NMEDIT+:} false; then : 15670 $as_echo_n "(cached) " >&6 15671else 15672 if test -n "$NMEDIT"; then 15673 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 15674else 15675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15676for as_dir in $PATH 15677do 15678 IFS=$as_save_IFS 15679 test -z "$as_dir" && as_dir=. 15680 for ac_exec_ext in '' $ac_executable_extensions; do 15681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15682 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 15683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15684 break 2 15685 fi 15686done 15687 done 15688IFS=$as_save_IFS 15689 15690fi 15691fi 15692NMEDIT=$ac_cv_prog_NMEDIT 15693if test -n "$NMEDIT"; then 15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 15695$as_echo "$NMEDIT" >&6; } 15696else 15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15698$as_echo "no" >&6; } 15699fi 15700 15701 15702fi 15703if test -z "$ac_cv_prog_NMEDIT"; then 15704 ac_ct_NMEDIT=$NMEDIT 15705 # Extract the first word of "nmedit", so it can be a program name with args. 15706set dummy nmedit; ac_word=$2 15707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15708$as_echo_n "checking for $ac_word... " >&6; } 15709if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 15710 $as_echo_n "(cached) " >&6 15711else 15712 if test -n "$ac_ct_NMEDIT"; then 15713 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 15714else 15715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15716for as_dir in $PATH 15717do 15718 IFS=$as_save_IFS 15719 test -z "$as_dir" && as_dir=. 15720 for ac_exec_ext in '' $ac_executable_extensions; do 15721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15722 ac_cv_prog_ac_ct_NMEDIT="nmedit" 15723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15724 break 2 15725 fi 15726done 15727 done 15728IFS=$as_save_IFS 15729 15730fi 15731fi 15732ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 15733if test -n "$ac_ct_NMEDIT"; then 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 15735$as_echo "$ac_ct_NMEDIT" >&6; } 15736else 15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15738$as_echo "no" >&6; } 15739fi 15740 15741 if test "x$ac_ct_NMEDIT" = x; then 15742 NMEDIT=":" 15743 else 15744 case $cross_compiling:$ac_tool_warned in 15745yes:) 15746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15748ac_tool_warned=yes ;; 15749esac 15750 NMEDIT=$ac_ct_NMEDIT 15751 fi 15752else 15753 NMEDIT="$ac_cv_prog_NMEDIT" 15754fi 15755 15756 if test -n "$ac_tool_prefix"; then 15757 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 15758set dummy ${ac_tool_prefix}lipo; ac_word=$2 15759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15760$as_echo_n "checking for $ac_word... " >&6; } 15761if ${ac_cv_prog_LIPO+:} false; then : 15762 $as_echo_n "(cached) " >&6 15763else 15764 if test -n "$LIPO"; then 15765 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 15766else 15767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15768for as_dir in $PATH 15769do 15770 IFS=$as_save_IFS 15771 test -z "$as_dir" && as_dir=. 15772 for ac_exec_ext in '' $ac_executable_extensions; do 15773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15774 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 15775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15776 break 2 15777 fi 15778done 15779 done 15780IFS=$as_save_IFS 15781 15782fi 15783fi 15784LIPO=$ac_cv_prog_LIPO 15785if test -n "$LIPO"; then 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 15787$as_echo "$LIPO" >&6; } 15788else 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15790$as_echo "no" >&6; } 15791fi 15792 15793 15794fi 15795if test -z "$ac_cv_prog_LIPO"; then 15796 ac_ct_LIPO=$LIPO 15797 # Extract the first word of "lipo", so it can be a program name with args. 15798set dummy lipo; ac_word=$2 15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15800$as_echo_n "checking for $ac_word... " >&6; } 15801if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803else 15804 if test -n "$ac_ct_LIPO"; then 15805 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 15806else 15807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15808for as_dir in $PATH 15809do 15810 IFS=$as_save_IFS 15811 test -z "$as_dir" && as_dir=. 15812 for ac_exec_ext in '' $ac_executable_extensions; do 15813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15814 ac_cv_prog_ac_ct_LIPO="lipo" 15815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15816 break 2 15817 fi 15818done 15819 done 15820IFS=$as_save_IFS 15821 15822fi 15823fi 15824ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 15825if test -n "$ac_ct_LIPO"; then 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 15827$as_echo "$ac_ct_LIPO" >&6; } 15828else 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15830$as_echo "no" >&6; } 15831fi 15832 15833 if test "x$ac_ct_LIPO" = x; then 15834 LIPO=":" 15835 else 15836 case $cross_compiling:$ac_tool_warned in 15837yes:) 15838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15840ac_tool_warned=yes ;; 15841esac 15842 LIPO=$ac_ct_LIPO 15843 fi 15844else 15845 LIPO="$ac_cv_prog_LIPO" 15846fi 15847 15848 if test -n "$ac_tool_prefix"; then 15849 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 15850set dummy ${ac_tool_prefix}otool; ac_word=$2 15851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15852$as_echo_n "checking for $ac_word... " >&6; } 15853if ${ac_cv_prog_OTOOL+:} false; then : 15854 $as_echo_n "(cached) " >&6 15855else 15856 if test -n "$OTOOL"; then 15857 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 15858else 15859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15860for as_dir in $PATH 15861do 15862 IFS=$as_save_IFS 15863 test -z "$as_dir" && as_dir=. 15864 for ac_exec_ext in '' $ac_executable_extensions; do 15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15866 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15868 break 2 15869 fi 15870done 15871 done 15872IFS=$as_save_IFS 15873 15874fi 15875fi 15876OTOOL=$ac_cv_prog_OTOOL 15877if test -n "$OTOOL"; then 15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15879$as_echo "$OTOOL" >&6; } 15880else 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15882$as_echo "no" >&6; } 15883fi 15884 15885 15886fi 15887if test -z "$ac_cv_prog_OTOOL"; then 15888 ac_ct_OTOOL=$OTOOL 15889 # Extract the first word of "otool", so it can be a program name with args. 15890set dummy otool; ac_word=$2 15891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15892$as_echo_n "checking for $ac_word... " >&6; } 15893if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 15894 $as_echo_n "(cached) " >&6 15895else 15896 if test -n "$ac_ct_OTOOL"; then 15897 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15898else 15899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15900for as_dir in $PATH 15901do 15902 IFS=$as_save_IFS 15903 test -z "$as_dir" && as_dir=. 15904 for ac_exec_ext in '' $ac_executable_extensions; do 15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15906 ac_cv_prog_ac_ct_OTOOL="otool" 15907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15908 break 2 15909 fi 15910done 15911 done 15912IFS=$as_save_IFS 15913 15914fi 15915fi 15916ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15917if test -n "$ac_ct_OTOOL"; then 15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15919$as_echo "$ac_ct_OTOOL" >&6; } 15920else 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15922$as_echo "no" >&6; } 15923fi 15924 15925 if test "x$ac_ct_OTOOL" = x; then 15926 OTOOL=":" 15927 else 15928 case $cross_compiling:$ac_tool_warned in 15929yes:) 15930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15932ac_tool_warned=yes ;; 15933esac 15934 OTOOL=$ac_ct_OTOOL 15935 fi 15936else 15937 OTOOL="$ac_cv_prog_OTOOL" 15938fi 15939 15940 if test -n "$ac_tool_prefix"; then 15941 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15942set dummy ${ac_tool_prefix}otool64; ac_word=$2 15943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15944$as_echo_n "checking for $ac_word... " >&6; } 15945if ${ac_cv_prog_OTOOL64+:} false; then : 15946 $as_echo_n "(cached) " >&6 15947else 15948 if test -n "$OTOOL64"; then 15949 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15950else 15951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15952for as_dir in $PATH 15953do 15954 IFS=$as_save_IFS 15955 test -z "$as_dir" && as_dir=. 15956 for ac_exec_ext in '' $ac_executable_extensions; do 15957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15958 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15960 break 2 15961 fi 15962done 15963 done 15964IFS=$as_save_IFS 15965 15966fi 15967fi 15968OTOOL64=$ac_cv_prog_OTOOL64 15969if test -n "$OTOOL64"; then 15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15971$as_echo "$OTOOL64" >&6; } 15972else 15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15974$as_echo "no" >&6; } 15975fi 15976 15977 15978fi 15979if test -z "$ac_cv_prog_OTOOL64"; then 15980 ac_ct_OTOOL64=$OTOOL64 15981 # Extract the first word of "otool64", so it can be a program name with args. 15982set dummy otool64; ac_word=$2 15983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15984$as_echo_n "checking for $ac_word... " >&6; } 15985if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 15986 $as_echo_n "(cached) " >&6 15987else 15988 if test -n "$ac_ct_OTOOL64"; then 15989 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15990else 15991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15992for as_dir in $PATH 15993do 15994 IFS=$as_save_IFS 15995 test -z "$as_dir" && as_dir=. 15996 for ac_exec_ext in '' $ac_executable_extensions; do 15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15998 ac_cv_prog_ac_ct_OTOOL64="otool64" 15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16000 break 2 16001 fi 16002done 16003 done 16004IFS=$as_save_IFS 16005 16006fi 16007fi 16008ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 16009if test -n "$ac_ct_OTOOL64"; then 16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 16011$as_echo "$ac_ct_OTOOL64" >&6; } 16012else 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16014$as_echo "no" >&6; } 16015fi 16016 16017 if test "x$ac_ct_OTOOL64" = x; then 16018 OTOOL64=":" 16019 else 16020 case $cross_compiling:$ac_tool_warned in 16021yes:) 16022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16024ac_tool_warned=yes ;; 16025esac 16026 OTOOL64=$ac_ct_OTOOL64 16027 fi 16028else 16029 OTOOL64="$ac_cv_prog_OTOOL64" 16030fi 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 16059$as_echo_n "checking for -single_module linker flag... " >&6; } 16060if ${lt_cv_apple_cc_single_mod+:} false; then : 16061 $as_echo_n "(cached) " >&6 16062else 16063 lt_cv_apple_cc_single_mod=no 16064 if test -z "${LT_MULTI_MODULE}"; then 16065 # By default we will add the -single_module flag. You can override 16066 # by either setting the environment variable LT_MULTI_MODULE 16067 # non-empty at configure time, or by adding -multi_module to the 16068 # link flags. 16069 rm -rf libconftest.dylib* 16070 echo "int foo(void){return 1;}" > conftest.c 16071 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16072-dynamiclib -Wl,-single_module conftest.c" >&5 16073 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16074 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 16075 _lt_result=$? 16076 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 16077 lt_cv_apple_cc_single_mod=yes 16078 else 16079 cat conftest.err >&5 16080 fi 16081 rm -rf libconftest.dylib* 16082 rm -f conftest.* 16083 fi 16084fi 16085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 16086$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 16088$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 16089if ${lt_cv_ld_exported_symbols_list+:} false; then : 16090 $as_echo_n "(cached) " >&6 16091else 16092 lt_cv_ld_exported_symbols_list=no 16093 save_LDFLAGS=$LDFLAGS 16094 echo "_main" > conftest.sym 16095 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16097/* end confdefs.h. */ 16098 16099int 16100main () 16101{ 16102 16103 ; 16104 return 0; 16105} 16106_ACEOF 16107if ac_fn_c_try_link "$LINENO"; then : 16108 lt_cv_ld_exported_symbols_list=yes 16109else 16110 lt_cv_ld_exported_symbols_list=no 16111fi 16112rm -f core conftest.err conftest.$ac_objext \ 16113 conftest$ac_exeext conftest.$ac_ext 16114 LDFLAGS="$save_LDFLAGS" 16115 16116fi 16117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 16118$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 16120$as_echo_n "checking for -force_load linker flag... " >&6; } 16121if ${lt_cv_ld_force_load+:} false; then : 16122 $as_echo_n "(cached) " >&6 16123else 16124 lt_cv_ld_force_load=no 16125 cat > conftest.c << _LT_EOF 16126int forced_loaded() { return 2;} 16127_LT_EOF 16128 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 16129 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 16130 echo "$AR cru libconftest.a conftest.o" >&5 16131 $AR cru libconftest.a conftest.o 2>&5 16132 cat > conftest.c << _LT_EOF 16133int main() { return 0;} 16134_LT_EOF 16135 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 16136 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 16137 _lt_result=$? 16138 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 16139 lt_cv_ld_force_load=yes 16140 else 16141 cat conftest.err >&5 16142 fi 16143 rm -f conftest.err libconftest.a conftest conftest.c 16144 rm -rf conftest.dSYM 16145 16146fi 16147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 16148$as_echo "$lt_cv_ld_force_load" >&6; } 16149 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 16150 # build without first building modern cctools / linker. 16151 case $host_cpu-$host_os in 16152 *-rhapsody* | *-darwin1.[012]) 16153 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 16154 *-darwin1.*) 16155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 16156 *-darwin*) 16157 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 16158 # deployment target is forced to an earlier version. 16159 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 16160 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 16161 ;; 16162 10.[012][,.]*) 16163 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16164 ;; 16165 *) 16166 ;; 16167 esac 16168 ;; 16169 esac 16170 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 16171 _lt_dar_single_mod='$single_module' 16172 fi 16173 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 16174 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 16175 else 16176 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 16177 fi 16178 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 16179 _lt_dsymutil='~$DSYMUTIL $lib || :' 16180 else 16181 _lt_dsymutil= 16182 fi 16183 ;; 16184 esac 16185 16186 16187for ac_header in dlfcn.h 16188do : 16189 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" 16190if test "x$ac_cv_header_dlfcn_h" = xyes; then : 16191 cat >>confdefs.h <<_ACEOF 16192#define HAVE_DLFCN_H 1 16193_ACEOF 16194 16195fi 16196done 16197 16198 16199 16200 16201 16202# Set options 16203 16204 16205 16206 enable_dlopen=no 16207 16208 16209 enable_win32_dll=no 16210 16211 16212 # Check whether --enable-shared was given. 16213if test "${enable_shared+set}" = set; then : 16214 enableval=$enable_shared; p=${PACKAGE-default} 16215 case $enableval in 16216 yes) enable_shared=yes ;; 16217 no) enable_shared=no ;; 16218 *) 16219 enable_shared=no 16220 # Look at the argument we got. We use all the common list separators. 16221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 16222 for pkg in $enableval; do 16223 IFS="$lt_save_ifs" 16224 if test "X$pkg" = "X$p"; then 16225 enable_shared=yes 16226 fi 16227 done 16228 IFS="$lt_save_ifs" 16229 ;; 16230 esac 16231else 16232 enable_shared=yes 16233fi 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 # Check whether --enable-static was given. 16244if test "${enable_static+set}" = set; then : 16245 enableval=$enable_static; p=${PACKAGE-default} 16246 case $enableval in 16247 yes) enable_static=yes ;; 16248 no) enable_static=no ;; 16249 *) 16250 enable_static=no 16251 # Look at the argument we got. We use all the common list separators. 16252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 16253 for pkg in $enableval; do 16254 IFS="$lt_save_ifs" 16255 if test "X$pkg" = "X$p"; then 16256 enable_static=yes 16257 fi 16258 done 16259 IFS="$lt_save_ifs" 16260 ;; 16261 esac 16262else 16263 enable_static=yes 16264fi 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275# Check whether --with-pic was given. 16276if test "${with_pic+set}" = set; then : 16277 withval=$with_pic; pic_mode="$withval" 16278else 16279 pic_mode=default 16280fi 16281 16282 16283test -z "$pic_mode" && pic_mode=default 16284 16285 16286 16287 16288 16289 16290 16291 # Check whether --enable-fast-install was given. 16292if test "${enable_fast_install+set}" = set; then : 16293 enableval=$enable_fast_install; p=${PACKAGE-default} 16294 case $enableval in 16295 yes) enable_fast_install=yes ;; 16296 no) enable_fast_install=no ;; 16297 *) 16298 enable_fast_install=no 16299 # Look at the argument we got. We use all the common list separators. 16300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 16301 for pkg in $enableval; do 16302 IFS="$lt_save_ifs" 16303 if test "X$pkg" = "X$p"; then 16304 enable_fast_install=yes 16305 fi 16306 done 16307 IFS="$lt_save_ifs" 16308 ;; 16309 esac 16310else 16311 enable_fast_install=yes 16312fi 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324# This can be used to rebuild libtool when needed 16325LIBTOOL_DEPS="$ltmain" 16326 16327# Always use our own libtool. 16328LIBTOOL='$(SHELL) $(top_builddir)/libtool' 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355test -z "$LN_S" && LN_S="ln -s" 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370if test -n "${ZSH_VERSION+set}" ; then 16371 setopt NO_GLOB_SUBST 16372fi 16373 16374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 16375$as_echo_n "checking for objdir... " >&6; } 16376if ${lt_cv_objdir+:} false; then : 16377 $as_echo_n "(cached) " >&6 16378else 16379 rm -f .libs 2>/dev/null 16380mkdir .libs 2>/dev/null 16381if test -d .libs; then 16382 lt_cv_objdir=.libs 16383else 16384 # MS-DOS does not allow filenames that begin with a dot. 16385 lt_cv_objdir=_libs 16386fi 16387rmdir .libs 2>/dev/null 16388fi 16389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 16390$as_echo "$lt_cv_objdir" >&6; } 16391objdir=$lt_cv_objdir 16392 16393 16394 16395 16396 16397cat >>confdefs.h <<_ACEOF 16398#define LT_OBJDIR "$lt_cv_objdir/" 16399_ACEOF 16400 16401 16402 16403 16404case $host_os in 16405aix3*) 16406 # AIX sometimes has problems with the GCC collect2 program. For some 16407 # reason, if we set the COLLECT_NAMES environment variable, the problems 16408 # vanish in a puff of smoke. 16409 if test "X${COLLECT_NAMES+set}" != Xset; then 16410 COLLECT_NAMES= 16411 export COLLECT_NAMES 16412 fi 16413 ;; 16414esac 16415 16416# Global variables: 16417ofile=libtool 16418can_build_shared=yes 16419 16420# All known linkers require a `.a' archive for static linking (except MSVC, 16421# which needs '.lib'). 16422libext=a 16423 16424with_gnu_ld="$lt_cv_prog_gnu_ld" 16425 16426old_CC="$CC" 16427old_CFLAGS="$CFLAGS" 16428 16429# Set sane defaults for various variables 16430test -z "$CC" && CC=cc 16431test -z "$LTCC" && LTCC=$CC 16432test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 16433test -z "$LD" && LD=ld 16434test -z "$ac_objext" && ac_objext=o 16435 16436for cc_temp in $compiler""; do 16437 case $cc_temp in 16438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16440 \-*) ;; 16441 *) break;; 16442 esac 16443done 16444cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16445 16446 16447# Only perform the check for file, if the check method requires it 16448test -z "$MAGIC_CMD" && MAGIC_CMD=file 16449case $deplibs_check_method in 16450file_magic*) 16451 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 16453$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 16454if ${lt_cv_path_MAGIC_CMD+:} false; then : 16455 $as_echo_n "(cached) " >&6 16456else 16457 case $MAGIC_CMD in 16458[\\/*] | ?:[\\/]*) 16459 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 16460 ;; 16461*) 16462 lt_save_MAGIC_CMD="$MAGIC_CMD" 16463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16464 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 16465 for ac_dir in $ac_dummy; do 16466 IFS="$lt_save_ifs" 16467 test -z "$ac_dir" && ac_dir=. 16468 if test -f $ac_dir/${ac_tool_prefix}file; then 16469 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 16470 if test -n "$file_magic_test_file"; then 16471 case $deplibs_check_method in 16472 "file_magic "*) 16473 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 16474 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 16475 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 16476 $EGREP "$file_magic_regex" > /dev/null; then 16477 : 16478 else 16479 cat <<_LT_EOF 1>&2 16480 16481*** Warning: the command libtool uses to detect shared libraries, 16482*** $file_magic_cmd, produces output that libtool cannot recognize. 16483*** The result is that libtool may fail to recognize shared libraries 16484*** as such. This will affect the creation of libtool libraries that 16485*** depend on shared libraries, but programs linked with such libtool 16486*** libraries will work regardless of this problem. Nevertheless, you 16487*** may want to report the problem to your system manager and/or to 16488*** bug-libtool@gnu.org 16489 16490_LT_EOF 16491 fi ;; 16492 esac 16493 fi 16494 break 16495 fi 16496 done 16497 IFS="$lt_save_ifs" 16498 MAGIC_CMD="$lt_save_MAGIC_CMD" 16499 ;; 16500esac 16501fi 16502 16503MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 16504if test -n "$MAGIC_CMD"; then 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 16506$as_echo "$MAGIC_CMD" >&6; } 16507else 16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16509$as_echo "no" >&6; } 16510fi 16511 16512 16513 16514 16515 16516if test -z "$lt_cv_path_MAGIC_CMD"; then 16517 if test -n "$ac_tool_prefix"; then 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 16519$as_echo_n "checking for file... " >&6; } 16520if ${lt_cv_path_MAGIC_CMD+:} false; then : 16521 $as_echo_n "(cached) " >&6 16522else 16523 case $MAGIC_CMD in 16524[\\/*] | ?:[\\/]*) 16525 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 16526 ;; 16527*) 16528 lt_save_MAGIC_CMD="$MAGIC_CMD" 16529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16530 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 16531 for ac_dir in $ac_dummy; do 16532 IFS="$lt_save_ifs" 16533 test -z "$ac_dir" && ac_dir=. 16534 if test -f $ac_dir/file; then 16535 lt_cv_path_MAGIC_CMD="$ac_dir/file" 16536 if test -n "$file_magic_test_file"; then 16537 case $deplibs_check_method in 16538 "file_magic "*) 16539 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 16540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 16541 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 16542 $EGREP "$file_magic_regex" > /dev/null; then 16543 : 16544 else 16545 cat <<_LT_EOF 1>&2 16546 16547*** Warning: the command libtool uses to detect shared libraries, 16548*** $file_magic_cmd, produces output that libtool cannot recognize. 16549*** The result is that libtool may fail to recognize shared libraries 16550*** as such. This will affect the creation of libtool libraries that 16551*** depend on shared libraries, but programs linked with such libtool 16552*** libraries will work regardless of this problem. Nevertheless, you 16553*** may want to report the problem to your system manager and/or to 16554*** bug-libtool@gnu.org 16555 16556_LT_EOF 16557 fi ;; 16558 esac 16559 fi 16560 break 16561 fi 16562 done 16563 IFS="$lt_save_ifs" 16564 MAGIC_CMD="$lt_save_MAGIC_CMD" 16565 ;; 16566esac 16567fi 16568 16569MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 16570if test -n "$MAGIC_CMD"; then 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 16572$as_echo "$MAGIC_CMD" >&6; } 16573else 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16575$as_echo "no" >&6; } 16576fi 16577 16578 16579 else 16580 MAGIC_CMD=: 16581 fi 16582fi 16583 16584 fi 16585 ;; 16586esac 16587 16588# Use C for the default configuration in the libtool script 16589 16590lt_save_CC="$CC" 16591ac_ext=c 16592ac_cpp='$CPP $CPPFLAGS' 16593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16595ac_compiler_gnu=$ac_cv_c_compiler_gnu 16596 16597 16598# Source file extension for C test sources. 16599ac_ext=c 16600 16601# Object file extension for compiled C test sources. 16602objext=o 16603objext=$objext 16604 16605# Code to be used in simple compile tests 16606lt_simple_compile_test_code="int some_variable = 0;" 16607 16608# Code to be used in simple link tests 16609lt_simple_link_test_code='int main(){return(0);}' 16610 16611 16612 16613 16614 16615 16616 16617# If no C compiler was specified, use CC. 16618LTCC=${LTCC-"$CC"} 16619 16620# If no C compiler flags were specified, use CFLAGS. 16621LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16622 16623# Allow CC to be a program name with arguments. 16624compiler=$CC 16625 16626# Save the default compiler, since it gets overwritten when the other 16627# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 16628compiler_DEFAULT=$CC 16629 16630# save warnings/boilerplate of simple test code 16631ac_outfile=conftest.$ac_objext 16632echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16633eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16634_lt_compiler_boilerplate=`cat conftest.err` 16635$RM conftest* 16636 16637ac_outfile=conftest.$ac_objext 16638echo "$lt_simple_link_test_code" >conftest.$ac_ext 16639eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16640_lt_linker_boilerplate=`cat conftest.err` 16641$RM -r conftest* 16642 16643 16644## CAVEAT EMPTOR: 16645## There is no encapsulation within the following macros, do not change 16646## the running order or otherwise move them around unless you know exactly 16647## what you are doing... 16648if test -n "$compiler"; then 16649 16650lt_prog_compiler_no_builtin_flag= 16651 16652if test "$GCC" = yes; then 16653 case $cc_basename in 16654 nvcc*) 16655 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 16656 *) 16657 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 16658 esac 16659 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16661$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16662if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 16663 $as_echo_n "(cached) " >&6 16664else 16665 lt_cv_prog_compiler_rtti_exceptions=no 16666 ac_outfile=conftest.$ac_objext 16667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16668 lt_compiler_flag="-fno-rtti -fno-exceptions" 16669 # Insert the option either (1) after the last *FLAGS variable, or 16670 # (2) before a word containing "conftest.", or (3) at the end. 16671 # Note that $ac_compile itself does not contain backslashes and begins 16672 # with a dollar sign (not a hyphen), so the echo should work correctly. 16673 # The option is referenced via a variable to avoid confusing sed. 16674 lt_compile=`echo "$ac_compile" | $SED \ 16675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16677 -e 's:$: $lt_compiler_flag:'` 16678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16679 (eval "$lt_compile" 2>conftest.err) 16680 ac_status=$? 16681 cat conftest.err >&5 16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16683 if (exit $ac_status) && test -s "$ac_outfile"; then 16684 # The compiler can only warn and ignore the option if not recognized 16685 # So say no if there are warnings other than the usual output. 16686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16689 lt_cv_prog_compiler_rtti_exceptions=yes 16690 fi 16691 fi 16692 $RM conftest* 16693 16694fi 16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16696$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16697 16698if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16699 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 16700else 16701 : 16702fi 16703 16704fi 16705 16706 16707 16708 16709 16710 16711 lt_prog_compiler_wl= 16712lt_prog_compiler_pic= 16713lt_prog_compiler_static= 16714 16715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16716$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16717 16718 if test "$GCC" = yes; then 16719 lt_prog_compiler_wl='-Wl,' 16720 lt_prog_compiler_static='-static' 16721 16722 case $host_os in 16723 aix*) 16724 # All AIX code is PIC. 16725 if test "$host_cpu" = ia64; then 16726 # AIX 5 now supports IA64 processor 16727 lt_prog_compiler_static='-Bstatic' 16728 fi 16729 lt_prog_compiler_pic='-fPIC' 16730 ;; 16731 16732 amigaos*) 16733 case $host_cpu in 16734 powerpc) 16735 # see comment about AmigaOS4 .so support 16736 lt_prog_compiler_pic='-fPIC' 16737 ;; 16738 m68k) 16739 # FIXME: we need at least 68020 code to build shared libraries, but 16740 # adding the `-m68020' flag to GCC prevents building anything better, 16741 # like `-m68040'. 16742 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16743 ;; 16744 esac 16745 ;; 16746 16747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16748 # PIC is the default for these OSes. 16749 ;; 16750 16751 mingw* | cygwin* | pw32* | os2* | cegcc*) 16752 # This hack is so that the source file can tell whether it is being 16753 # built for inclusion in a dll (and should export symbols for example). 16754 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16755 # (--disable-auto-import) libraries 16756 lt_prog_compiler_pic='-DDLL_EXPORT' 16757 ;; 16758 16759 darwin* | rhapsody*) 16760 # PIC is the default on this platform 16761 # Common symbols not allowed in MH_DYLIB files 16762 lt_prog_compiler_pic='-fno-common' 16763 ;; 16764 16765 haiku*) 16766 # PIC is the default for Haiku. 16767 # The "-static" flag exists, but is broken. 16768 lt_prog_compiler_static= 16769 ;; 16770 16771 hpux*) 16772 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16773 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16774 # sets the default TLS model and affects inlining. 16775 case $host_cpu in 16776 hppa*64*) 16777 # +Z the default 16778 ;; 16779 *) 16780 lt_prog_compiler_pic='-fPIC' 16781 ;; 16782 esac 16783 ;; 16784 16785 interix[3-9]*) 16786 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16787 # Instead, we relocate shared libraries at runtime. 16788 ;; 16789 16790 msdosdjgpp*) 16791 # Just because we use GCC doesn't mean we suddenly get shared libraries 16792 # on systems that don't support them. 16793 lt_prog_compiler_can_build_shared=no 16794 enable_shared=no 16795 ;; 16796 16797 *nto* | *qnx*) 16798 # QNX uses GNU C++, but need to define -shared option too, otherwise 16799 # it will coredump. 16800 lt_prog_compiler_pic='-fPIC -shared' 16801 ;; 16802 16803 sysv4*MP*) 16804 if test -d /usr/nec; then 16805 lt_prog_compiler_pic=-Kconform_pic 16806 fi 16807 ;; 16808 16809 *) 16810 lt_prog_compiler_pic='-fPIC' 16811 ;; 16812 esac 16813 16814 case $cc_basename in 16815 nvcc*) # Cuda Compiler Driver 2.2 16816 lt_prog_compiler_wl='-Xlinker ' 16817 lt_prog_compiler_pic='-Xcompiler -fPIC' 16818 ;; 16819 esac 16820 else 16821 # PORTME Check for flag to pass linker flags through the system compiler. 16822 case $host_os in 16823 aix*) 16824 lt_prog_compiler_wl='-Wl,' 16825 if test "$host_cpu" = ia64; then 16826 # AIX 5 now supports IA64 processor 16827 lt_prog_compiler_static='-Bstatic' 16828 else 16829 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16830 fi 16831 ;; 16832 16833 mingw* | cygwin* | pw32* | os2* | cegcc*) 16834 # This hack is so that the source file can tell whether it is being 16835 # built for inclusion in a dll (and should export symbols for example). 16836 lt_prog_compiler_pic='-DDLL_EXPORT' 16837 ;; 16838 16839 hpux9* | hpux10* | hpux11*) 16840 lt_prog_compiler_wl='-Wl,' 16841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16842 # not for PA HP-UX. 16843 case $host_cpu in 16844 hppa*64*|ia64*) 16845 # +Z the default 16846 ;; 16847 *) 16848 lt_prog_compiler_pic='+Z' 16849 ;; 16850 esac 16851 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16852 lt_prog_compiler_static='${wl}-a ${wl}archive' 16853 ;; 16854 16855 irix5* | irix6* | nonstopux*) 16856 lt_prog_compiler_wl='-Wl,' 16857 # PIC (with -KPIC) is the default. 16858 lt_prog_compiler_static='-non_shared' 16859 ;; 16860 16861 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16862 case $cc_basename in 16863 # old Intel for x86_64 which still supported -KPIC. 16864 ecc*) 16865 lt_prog_compiler_wl='-Wl,' 16866 lt_prog_compiler_pic='-KPIC' 16867 lt_prog_compiler_static='-static' 16868 ;; 16869 # icc used to be incompatible with GCC. 16870 # ICC 10 doesn't accept -KPIC any more. 16871 icc* | ifort*) 16872 lt_prog_compiler_wl='-Wl,' 16873 lt_prog_compiler_pic='-fPIC' 16874 lt_prog_compiler_static='-static' 16875 ;; 16876 # Lahey Fortran 8.1. 16877 lf95*) 16878 lt_prog_compiler_wl='-Wl,' 16879 lt_prog_compiler_pic='--shared' 16880 lt_prog_compiler_static='--static' 16881 ;; 16882 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16883 # Portland Group compilers (*not* the Pentium gcc compiler, 16884 # which looks to be a dead project) 16885 lt_prog_compiler_wl='-Wl,' 16886 lt_prog_compiler_pic='-fpic' 16887 lt_prog_compiler_static='-Bstatic' 16888 ;; 16889 ccc*) 16890 lt_prog_compiler_wl='-Wl,' 16891 # All Alpha code is PIC. 16892 lt_prog_compiler_static='-non_shared' 16893 ;; 16894 xl* | bgxl* | bgf* | mpixl*) 16895 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16896 lt_prog_compiler_wl='-Wl,' 16897 lt_prog_compiler_pic='-qpic' 16898 lt_prog_compiler_static='-qstaticlink' 16899 ;; 16900 *) 16901 case `$CC -V 2>&1 | sed 5q` in 16902 *Sun\ F* | *Sun*Fortran*) 16903 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16904 lt_prog_compiler_pic='-KPIC' 16905 lt_prog_compiler_static='-Bstatic' 16906 lt_prog_compiler_wl='' 16907 ;; 16908 *Sun\ C*) 16909 # Sun C 5.9 16910 lt_prog_compiler_pic='-KPIC' 16911 lt_prog_compiler_static='-Bstatic' 16912 lt_prog_compiler_wl='-Wl,' 16913 ;; 16914 esac 16915 ;; 16916 esac 16917 ;; 16918 16919 newsos6) 16920 lt_prog_compiler_pic='-KPIC' 16921 lt_prog_compiler_static='-Bstatic' 16922 ;; 16923 16924 *nto* | *qnx*) 16925 # QNX uses GNU C++, but need to define -shared option too, otherwise 16926 # it will coredump. 16927 lt_prog_compiler_pic='-fPIC -shared' 16928 ;; 16929 16930 osf3* | osf4* | osf5*) 16931 lt_prog_compiler_wl='-Wl,' 16932 # All OSF/1 code is PIC. 16933 lt_prog_compiler_static='-non_shared' 16934 ;; 16935 16936 rdos*) 16937 lt_prog_compiler_static='-non_shared' 16938 ;; 16939 16940 solaris*) 16941 lt_prog_compiler_pic='-KPIC' 16942 lt_prog_compiler_static='-Bstatic' 16943 case $cc_basename in 16944 f77* | f90* | f95*) 16945 lt_prog_compiler_wl='-Qoption ld ';; 16946 *) 16947 lt_prog_compiler_wl='-Wl,';; 16948 esac 16949 ;; 16950 16951 sunos4*) 16952 lt_prog_compiler_wl='-Qoption ld ' 16953 lt_prog_compiler_pic='-PIC' 16954 lt_prog_compiler_static='-Bstatic' 16955 ;; 16956 16957 sysv4 | sysv4.2uw2* | sysv4.3*) 16958 lt_prog_compiler_wl='-Wl,' 16959 lt_prog_compiler_pic='-KPIC' 16960 lt_prog_compiler_static='-Bstatic' 16961 ;; 16962 16963 sysv4*MP*) 16964 if test -d /usr/nec ;then 16965 lt_prog_compiler_pic='-Kconform_pic' 16966 lt_prog_compiler_static='-Bstatic' 16967 fi 16968 ;; 16969 16970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16971 lt_prog_compiler_wl='-Wl,' 16972 lt_prog_compiler_pic='-KPIC' 16973 lt_prog_compiler_static='-Bstatic' 16974 ;; 16975 16976 unicos*) 16977 lt_prog_compiler_wl='-Wl,' 16978 lt_prog_compiler_can_build_shared=no 16979 ;; 16980 16981 uts4*) 16982 lt_prog_compiler_pic='-pic' 16983 lt_prog_compiler_static='-Bstatic' 16984 ;; 16985 16986 *) 16987 lt_prog_compiler_can_build_shared=no 16988 ;; 16989 esac 16990 fi 16991 16992case $host_os in 16993 # For platforms which do not support PIC, -DPIC is meaningless: 16994 *djgpp*) 16995 lt_prog_compiler_pic= 16996 ;; 16997 *) 16998 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16999 ;; 17000esac 17001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 17002$as_echo "$lt_prog_compiler_pic" >&6; } 17003 17004 17005 17006 17007 17008 17009# 17010# Check to make sure the PIC flag actually works. 17011# 17012if test -n "$lt_prog_compiler_pic"; then 17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 17014$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 17015if ${lt_cv_prog_compiler_pic_works+:} false; then : 17016 $as_echo_n "(cached) " >&6 17017else 17018 lt_cv_prog_compiler_pic_works=no 17019 ac_outfile=conftest.$ac_objext 17020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17021 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 17022 # Insert the option either (1) after the last *FLAGS variable, or 17023 # (2) before a word containing "conftest.", or (3) at the end. 17024 # Note that $ac_compile itself does not contain backslashes and begins 17025 # with a dollar sign (not a hyphen), so the echo should work correctly. 17026 # The option is referenced via a variable to avoid confusing sed. 17027 lt_compile=`echo "$ac_compile" | $SED \ 17028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17030 -e 's:$: $lt_compiler_flag:'` 17031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17032 (eval "$lt_compile" 2>conftest.err) 17033 ac_status=$? 17034 cat conftest.err >&5 17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17036 if (exit $ac_status) && test -s "$ac_outfile"; then 17037 # The compiler can only warn and ignore the option if not recognized 17038 # So say no if there are warnings other than the usual output. 17039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17042 lt_cv_prog_compiler_pic_works=yes 17043 fi 17044 fi 17045 $RM conftest* 17046 17047fi 17048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 17049$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 17050 17051if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 17052 case $lt_prog_compiler_pic in 17053 "" | " "*) ;; 17054 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17055 esac 17056else 17057 lt_prog_compiler_pic= 17058 lt_prog_compiler_can_build_shared=no 17059fi 17060 17061fi 17062 17063 17064 17065 17066 17067 17068# 17069# Check to make sure the static flag actually works. 17070# 17071wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 17072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17073$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17074if ${lt_cv_prog_compiler_static_works+:} false; then : 17075 $as_echo_n "(cached) " >&6 17076else 17077 lt_cv_prog_compiler_static_works=no 17078 save_LDFLAGS="$LDFLAGS" 17079 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17080 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17081 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17082 # The linker can only warn and ignore the option if not recognized 17083 # So say no if there are warnings 17084 if test -s conftest.err; then 17085 # Append any errors to the config.log. 17086 cat conftest.err 1>&5 17087 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17089 if diff conftest.exp conftest.er2 >/dev/null; then 17090 lt_cv_prog_compiler_static_works=yes 17091 fi 17092 else 17093 lt_cv_prog_compiler_static_works=yes 17094 fi 17095 fi 17096 $RM -r conftest* 17097 LDFLAGS="$save_LDFLAGS" 17098 17099fi 17100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 17101$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 17102 17103if test x"$lt_cv_prog_compiler_static_works" = xyes; then 17104 : 17105else 17106 lt_prog_compiler_static= 17107fi 17108 17109 17110 17111 17112 17113 17114 17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17116$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17117if ${lt_cv_prog_compiler_c_o+:} false; then : 17118 $as_echo_n "(cached) " >&6 17119else 17120 lt_cv_prog_compiler_c_o=no 17121 $RM -r conftest 2>/dev/null 17122 mkdir conftest 17123 cd conftest 17124 mkdir out 17125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17126 17127 lt_compiler_flag="-o out/conftest2.$ac_objext" 17128 # Insert the option either (1) after the last *FLAGS variable, or 17129 # (2) before a word containing "conftest.", or (3) at the end. 17130 # Note that $ac_compile itself does not contain backslashes and begins 17131 # with a dollar sign (not a hyphen), so the echo should work correctly. 17132 lt_compile=`echo "$ac_compile" | $SED \ 17133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17135 -e 's:$: $lt_compiler_flag:'` 17136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17137 (eval "$lt_compile" 2>out/conftest.err) 17138 ac_status=$? 17139 cat out/conftest.err >&5 17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17141 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17142 then 17143 # The compiler can only warn and ignore the option if not recognized 17144 # So say no if there are warnings 17145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17148 lt_cv_prog_compiler_c_o=yes 17149 fi 17150 fi 17151 chmod u+w . 2>&5 17152 $RM conftest* 17153 # SGI C++ compiler will create directory out/ii_files/ for 17154 # template instantiation 17155 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17156 $RM out/* && rmdir out 17157 cd .. 17158 $RM -r conftest 17159 $RM conftest* 17160 17161fi 17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17163$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17164 17165 17166 17167 17168 17169 17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17171$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17172if ${lt_cv_prog_compiler_c_o+:} false; then : 17173 $as_echo_n "(cached) " >&6 17174else 17175 lt_cv_prog_compiler_c_o=no 17176 $RM -r conftest 2>/dev/null 17177 mkdir conftest 17178 cd conftest 17179 mkdir out 17180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17181 17182 lt_compiler_flag="-o out/conftest2.$ac_objext" 17183 # Insert the option either (1) after the last *FLAGS variable, or 17184 # (2) before a word containing "conftest.", or (3) at the end. 17185 # Note that $ac_compile itself does not contain backslashes and begins 17186 # with a dollar sign (not a hyphen), so the echo should work correctly. 17187 lt_compile=`echo "$ac_compile" | $SED \ 17188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17190 -e 's:$: $lt_compiler_flag:'` 17191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17192 (eval "$lt_compile" 2>out/conftest.err) 17193 ac_status=$? 17194 cat out/conftest.err >&5 17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17196 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17197 then 17198 # The compiler can only warn and ignore the option if not recognized 17199 # So say no if there are warnings 17200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17201 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17202 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17203 lt_cv_prog_compiler_c_o=yes 17204 fi 17205 fi 17206 chmod u+w . 2>&5 17207 $RM conftest* 17208 # SGI C++ compiler will create directory out/ii_files/ for 17209 # template instantiation 17210 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17211 $RM out/* && rmdir out 17212 cd .. 17213 $RM -r conftest 17214 $RM conftest* 17215 17216fi 17217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17218$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17219 17220 17221 17222 17223hard_links="nottested" 17224if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 17225 # do not overwrite the value of need_locks provided by the user 17226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17227$as_echo_n "checking if we can lock with hard links... " >&6; } 17228 hard_links=yes 17229 $RM conftest* 17230 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17231 touch conftest.a 17232 ln conftest.a conftest.b 2>&5 || hard_links=no 17233 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17235$as_echo "$hard_links" >&6; } 17236 if test "$hard_links" = no; then 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17238$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17239 need_locks=warn 17240 fi 17241else 17242 need_locks=no 17243fi 17244 17245 17246 17247 17248 17249 17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17251$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17252 17253 runpath_var= 17254 allow_undefined_flag= 17255 always_export_symbols=no 17256 archive_cmds= 17257 archive_expsym_cmds= 17258 compiler_needs_object=no 17259 enable_shared_with_static_runtimes=no 17260 export_dynamic_flag_spec= 17261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17262 hardcode_automatic=no 17263 hardcode_direct=no 17264 hardcode_direct_absolute=no 17265 hardcode_libdir_flag_spec= 17266 hardcode_libdir_flag_spec_ld= 17267 hardcode_libdir_separator= 17268 hardcode_minus_L=no 17269 hardcode_shlibpath_var=unsupported 17270 inherit_rpath=no 17271 link_all_deplibs=unknown 17272 module_cmds= 17273 module_expsym_cmds= 17274 old_archive_from_new_cmds= 17275 old_archive_from_expsyms_cmds= 17276 thread_safe_flag_spec= 17277 whole_archive_flag_spec= 17278 # include_expsyms should be a list of space-separated symbols to be *always* 17279 # included in the symbol list 17280 include_expsyms= 17281 # exclude_expsyms can be an extended regexp of symbols to exclude 17282 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17283 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17284 # as well as any symbol that contains `d'. 17285 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17286 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17287 # platforms (ab)use it in PIC code, but their linkers get confused if 17288 # the symbol is explicitly referenced. Since portable code cannot 17289 # rely on this symbol name, it's probably fine to never include it in 17290 # preloaded symbol tables. 17291 # Exclude shared library initialization/finalization symbols. 17292 extract_expsyms_cmds= 17293 17294 case $host_os in 17295 cygwin* | mingw* | pw32* | cegcc*) 17296 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17297 # When not using gcc, we currently assume that we are using 17298 # Microsoft Visual C++. 17299 if test "$GCC" != yes; then 17300 with_gnu_ld=no 17301 fi 17302 ;; 17303 interix*) 17304 # we just hope/assume this is gcc and not c89 (= MSVC++) 17305 with_gnu_ld=yes 17306 ;; 17307 openbsd*) 17308 with_gnu_ld=no 17309 ;; 17310 esac 17311 17312 ld_shlibs=yes 17313 17314 # On some targets, GNU ld is compatible enough with the native linker 17315 # that we're better off using the native interface for both. 17316 lt_use_gnu_ld_interface=no 17317 if test "$with_gnu_ld" = yes; then 17318 case $host_os in 17319 aix*) 17320 # The AIX port of GNU ld has always aspired to compatibility 17321 # with the native linker. However, as the warning in the GNU ld 17322 # block says, versions before 2.19.5* couldn't really create working 17323 # shared libraries, regardless of the interface used. 17324 case `$LD -v 2>&1` in 17325 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 17326 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 17327 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 17328 *) 17329 lt_use_gnu_ld_interface=yes 17330 ;; 17331 esac 17332 ;; 17333 *) 17334 lt_use_gnu_ld_interface=yes 17335 ;; 17336 esac 17337 fi 17338 17339 if test "$lt_use_gnu_ld_interface" = yes; then 17340 # If archive_cmds runs LD, not CC, wlarc should be empty 17341 wlarc='${wl}' 17342 17343 # Set some defaults for GNU ld with shared library support. These 17344 # are reset later if shared libraries are not supported. Putting them 17345 # here allows them to be overridden if necessary. 17346 runpath_var=LD_RUN_PATH 17347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17348 export_dynamic_flag_spec='${wl}--export-dynamic' 17349 # ancient GNU ld didn't support --whole-archive et. al. 17350 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 17351 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17352 else 17353 whole_archive_flag_spec= 17354 fi 17355 supports_anon_versioning=no 17356 case `$LD -v 2>&1` in 17357 *GNU\ gold*) supports_anon_versioning=yes ;; 17358 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17359 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17360 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17361 *\ 2.11.*) ;; # other 2.11 versions 17362 *) supports_anon_versioning=yes ;; 17363 esac 17364 17365 # See if GNU ld supports shared libraries. 17366 case $host_os in 17367 aix[3-9]*) 17368 # On AIX/PPC, the GNU linker is very broken 17369 if test "$host_cpu" != ia64; then 17370 ld_shlibs=no 17371 cat <<_LT_EOF 1>&2 17372 17373*** Warning: the GNU linker, at least up to release 2.19, is reported 17374*** to be unable to reliably create shared libraries on AIX. 17375*** Therefore, libtool is disabling shared libraries support. If you 17376*** really care for shared libraries, you may want to install binutils 17377*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 17378*** You will then need to restart the configuration process. 17379 17380_LT_EOF 17381 fi 17382 ;; 17383 17384 amigaos*) 17385 case $host_cpu in 17386 powerpc) 17387 # see comment about AmigaOS4 .so support 17388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17389 archive_expsym_cmds='' 17390 ;; 17391 m68k) 17392 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 17393 hardcode_libdir_flag_spec='-L$libdir' 17394 hardcode_minus_L=yes 17395 ;; 17396 esac 17397 ;; 17398 17399 beos*) 17400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17401 allow_undefined_flag=unsupported 17402 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17403 # support --undefined. This deserves some investigation. FIXME 17404 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17405 else 17406 ld_shlibs=no 17407 fi 17408 ;; 17409 17410 cygwin* | mingw* | pw32* | cegcc*) 17411 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 17412 # as there is no search path for DLLs. 17413 hardcode_libdir_flag_spec='-L$libdir' 17414 export_dynamic_flag_spec='${wl}--export-all-symbols' 17415 allow_undefined_flag=unsupported 17416 always_export_symbols=no 17417 enable_shared_with_static_runtimes=yes 17418 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17419 17420 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 17421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17422 # If the export-symbols file already is a .def file (1st line 17423 # is EXPORTS), use it as is; otherwise, prepend... 17424 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17425 cp $export_symbols $output_objdir/$soname.def; 17426 else 17427 echo EXPORTS > $output_objdir/$soname.def; 17428 cat $export_symbols >> $output_objdir/$soname.def; 17429 fi~ 17430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17431 else 17432 ld_shlibs=no 17433 fi 17434 ;; 17435 17436 haiku*) 17437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17438 link_all_deplibs=yes 17439 ;; 17440 17441 interix[3-9]*) 17442 hardcode_direct=no 17443 hardcode_shlibpath_var=no 17444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 17445 export_dynamic_flag_spec='${wl}-E' 17446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17447 # Instead, shared libraries are loaded at an image base (0x10000000 by 17448 # default) and relocated if they conflict, which is a slow very memory 17449 # consuming and fragmenting process. To avoid this, we pick a random, 17450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17451 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17453 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17454 ;; 17455 17456 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 17457 tmp_diet=no 17458 if test "$host_os" = linux-dietlibc; then 17459 case $cc_basename in 17460 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 17461 esac 17462 fi 17463 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 17464 && test "$tmp_diet" = no 17465 then 17466 tmp_addflag=' $pic_flag' 17467 tmp_sharedflag='-shared' 17468 case $cc_basename,$host_cpu in 17469 pgcc*) # Portland Group C compiler 17470 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 17471 tmp_addflag=' $pic_flag' 17472 ;; 17473 pgf77* | pgf90* | pgf95* | pgfortran*) 17474 # Portland Group f77 and f90 compilers 17475 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 17476 tmp_addflag=' $pic_flag -Mnomain' ;; 17477 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17478 tmp_addflag=' -i_dynamic' ;; 17479 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17480 tmp_addflag=' -i_dynamic -nofor_main' ;; 17481 ifc* | ifort*) # Intel Fortran compiler 17482 tmp_addflag=' -nofor_main' ;; 17483 lf95*) # Lahey Fortran 8.1 17484 whole_archive_flag_spec= 17485 tmp_sharedflag='--shared' ;; 17486 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 17487 tmp_sharedflag='-qmkshrobj' 17488 tmp_addflag= ;; 17489 nvcc*) # Cuda Compiler Driver 2.2 17490 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 17491 compiler_needs_object=yes 17492 ;; 17493 esac 17494 case `$CC -V 2>&1 | sed 5q` in 17495 *Sun\ C*) # Sun C 5.9 17496 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 17497 compiler_needs_object=yes 17498 tmp_sharedflag='-G' ;; 17499 *Sun\ F*) # Sun Fortran 8.3 17500 tmp_sharedflag='-G' ;; 17501 esac 17502 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17503 17504 if test "x$supports_anon_versioning" = xyes; then 17505 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17507 echo "local: *; };" >> $output_objdir/$libname.ver~ 17508 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17509 fi 17510 17511 case $cc_basename in 17512 xlf* | bgf* | bgxlf* | mpixlf*) 17513 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 17514 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 17515 hardcode_libdir_flag_spec= 17516 hardcode_libdir_flag_spec_ld='-rpath $libdir' 17517 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 17518 if test "x$supports_anon_versioning" = xyes; then 17519 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17521 echo "local: *; };" >> $output_objdir/$libname.ver~ 17522 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 17523 fi 17524 ;; 17525 esac 17526 else 17527 ld_shlibs=no 17528 fi 17529 ;; 17530 17531 netbsd*) 17532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17533 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17534 wlarc= 17535 else 17536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17538 fi 17539 ;; 17540 17541 solaris*) 17542 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 17543 ld_shlibs=no 17544 cat <<_LT_EOF 1>&2 17545 17546*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17547*** create shared libraries on Solaris systems. Therefore, libtool 17548*** is disabling shared libraries support. We urge you to upgrade GNU 17549*** binutils to release 2.9.1 or newer. Another option is to modify 17550*** your PATH or compiler configuration so that the native linker is 17551*** used, and then restart. 17552 17553_LT_EOF 17554 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17557 else 17558 ld_shlibs=no 17559 fi 17560 ;; 17561 17562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17563 case `$LD -v 2>&1` in 17564 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17565 ld_shlibs=no 17566 cat <<_LT_EOF 1>&2 17567 17568*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17569*** reliably create shared libraries on SCO systems. Therefore, libtool 17570*** is disabling shared libraries support. We urge you to upgrade GNU 17571*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17572*** your PATH or compiler configuration so that the native linker is 17573*** used, and then restart. 17574 17575_LT_EOF 17576 ;; 17577 *) 17578 # For security reasons, it is highly recommended that you always 17579 # use absolute paths for naming shared libraries, and exclude the 17580 # DT_RUNPATH tag from executables and libraries. But doing so 17581 # requires that you compile everything twice, which is a pain. 17582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17585 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17586 else 17587 ld_shlibs=no 17588 fi 17589 ;; 17590 esac 17591 ;; 17592 17593 sunos4*) 17594 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17595 wlarc= 17596 hardcode_direct=yes 17597 hardcode_shlibpath_var=no 17598 ;; 17599 17600 *) 17601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17604 else 17605 ld_shlibs=no 17606 fi 17607 ;; 17608 esac 17609 17610 if test "$ld_shlibs" = no; then 17611 runpath_var= 17612 hardcode_libdir_flag_spec= 17613 export_dynamic_flag_spec= 17614 whole_archive_flag_spec= 17615 fi 17616 else 17617 # PORTME fill in a description of your system's linker (not GNU ld) 17618 case $host_os in 17619 aix3*) 17620 allow_undefined_flag=unsupported 17621 always_export_symbols=yes 17622 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17623 # Note: this linker hardcodes the directories in LIBPATH if there 17624 # are no directories specified by -L. 17625 hardcode_minus_L=yes 17626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17627 # Neither direct hardcoding nor static linking is supported with a 17628 # broken collect2. 17629 hardcode_direct=unsupported 17630 fi 17631 ;; 17632 17633 aix[4-9]*) 17634 if test "$host_cpu" = ia64; then 17635 # On IA64, the linker does run time linking by default, so we don't 17636 # have to do anything special. 17637 aix_use_runtimelinking=no 17638 exp_sym_flag='-Bexport' 17639 no_entry_flag="" 17640 else 17641 # If we're using GNU nm, then we don't want the "-C" option. 17642 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17643 # Also, AIX nm treats weak defined symbols like other global 17644 # defined symbols, whereas GNU nm marks them as "W". 17645 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17646 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 17647 else 17648 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 17649 fi 17650 aix_use_runtimelinking=no 17651 17652 # Test if we are trying to use run time linking or normal 17653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17654 # need to do runtime linking. 17655 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17656 for ld_flag in $LDFLAGS; do 17657 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17658 aix_use_runtimelinking=yes 17659 break 17660 fi 17661 done 17662 ;; 17663 esac 17664 17665 exp_sym_flag='-bexport' 17666 no_entry_flag='-bnoentry' 17667 fi 17668 17669 # When large executables or shared objects are built, AIX ld can 17670 # have problems creating the table of contents. If linking a library 17671 # or program results in "error TOC overflow" add -mminimal-toc to 17672 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17673 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17674 17675 archive_cmds='' 17676 hardcode_direct=yes 17677 hardcode_direct_absolute=yes 17678 hardcode_libdir_separator=':' 17679 link_all_deplibs=yes 17680 file_list_spec='${wl}-f,' 17681 17682 if test "$GCC" = yes; then 17683 case $host_os in aix4.[012]|aix4.[012].*) 17684 # We only want to do this on AIX 4.2 and lower, the check 17685 # below for broken collect2 doesn't work under 4.3+ 17686 collect2name=`${CC} -print-prog-name=collect2` 17687 if test -f "$collect2name" && 17688 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17689 then 17690 # We have reworked collect2 17691 : 17692 else 17693 # We have old collect2 17694 hardcode_direct=unsupported 17695 # It fails to find uninstalled libraries when the uninstalled 17696 # path is not listed in the libpath. Setting hardcode_minus_L 17697 # to unsupported forces relinking 17698 hardcode_minus_L=yes 17699 hardcode_libdir_flag_spec='-L$libdir' 17700 hardcode_libdir_separator= 17701 fi 17702 ;; 17703 esac 17704 shared_flag='-shared' 17705 if test "$aix_use_runtimelinking" = yes; then 17706 shared_flag="$shared_flag "'${wl}-G' 17707 fi 17708 else 17709 # not using gcc 17710 if test "$host_cpu" = ia64; then 17711 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17712 # chokes on -Wl,-G. The following line is correct: 17713 shared_flag='-G' 17714 else 17715 if test "$aix_use_runtimelinking" = yes; then 17716 shared_flag='${wl}-G' 17717 else 17718 shared_flag='${wl}-bM:SRE' 17719 fi 17720 fi 17721 fi 17722 17723 export_dynamic_flag_spec='${wl}-bexpall' 17724 # It seems that -bexpall does not export symbols beginning with 17725 # underscore (_), so it is better to generate a list of symbols to export. 17726 always_export_symbols=yes 17727 if test "$aix_use_runtimelinking" = yes; then 17728 # Warning - without using the other runtime loading flags (-brtl), 17729 # -berok will link without error, but may produce a broken library. 17730 allow_undefined_flag='-berok' 17731 # Determine the default libpath from the value encoded in an 17732 # empty executable. 17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17734/* end confdefs.h. */ 17735 17736int 17737main () 17738{ 17739 17740 ; 17741 return 0; 17742} 17743_ACEOF 17744if ac_fn_c_try_link "$LINENO"; then : 17745 17746lt_aix_libpath_sed=' 17747 /Import File Strings/,/^$/ { 17748 /^0/ { 17749 s/^0 *\(.*\)$/\1/ 17750 p 17751 } 17752 }' 17753aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17754# Check for a 64-bit object if we didn't find anything. 17755if test -z "$aix_libpath"; then 17756 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17757fi 17758fi 17759rm -f core conftest.err conftest.$ac_objext \ 17760 conftest$ac_exeext conftest.$ac_ext 17761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17762 17763 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 17764 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17765 else 17766 if test "$host_cpu" = ia64; then 17767 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 17768 allow_undefined_flag="-z nodefs" 17769 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 17770 else 17771 # Determine the default libpath from the value encoded in an 17772 # empty executable. 17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17774/* end confdefs.h. */ 17775 17776int 17777main () 17778{ 17779 17780 ; 17781 return 0; 17782} 17783_ACEOF 17784if ac_fn_c_try_link "$LINENO"; then : 17785 17786lt_aix_libpath_sed=' 17787 /Import File Strings/,/^$/ { 17788 /^0/ { 17789 s/^0 *\(.*\)$/\1/ 17790 p 17791 } 17792 }' 17793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17794# Check for a 64-bit object if we didn't find anything. 17795if test -z "$aix_libpath"; then 17796 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17797fi 17798fi 17799rm -f core conftest.err conftest.$ac_objext \ 17800 conftest$ac_exeext conftest.$ac_ext 17801if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17802 17803 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 17804 # Warning - without using the other run time loading flags, 17805 # -berok will link without error, but may produce a broken library. 17806 no_undefined_flag=' ${wl}-bernotok' 17807 allow_undefined_flag=' ${wl}-berok' 17808 if test "$with_gnu_ld" = yes; then 17809 # We only use this code for GNU lds that support --whole-archive. 17810 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 17811 else 17812 # Exported symbols can be pulled into shared objects from archives 17813 whole_archive_flag_spec='$convenience' 17814 fi 17815 archive_cmds_need_lc=yes 17816 # This is similar to how AIX traditionally builds its shared libraries. 17817 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17818 fi 17819 fi 17820 ;; 17821 17822 amigaos*) 17823 case $host_cpu in 17824 powerpc) 17825 # see comment about AmigaOS4 .so support 17826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17827 archive_expsym_cmds='' 17828 ;; 17829 m68k) 17830 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 17831 hardcode_libdir_flag_spec='-L$libdir' 17832 hardcode_minus_L=yes 17833 ;; 17834 esac 17835 ;; 17836 17837 bsdi[45]*) 17838 export_dynamic_flag_spec=-rdynamic 17839 ;; 17840 17841 cygwin* | mingw* | pw32* | cegcc*) 17842 # When not using gcc, we currently assume that we are using 17843 # Microsoft Visual C++. 17844 # hardcode_libdir_flag_spec is actually meaningless, as there is 17845 # no search path for DLLs. 17846 hardcode_libdir_flag_spec=' ' 17847 allow_undefined_flag=unsupported 17848 # Tell ltmain to make .lib files, not .a files. 17849 libext=lib 17850 # Tell ltmain to make .dll files, not .so files. 17851 shrext_cmds=".dll" 17852 # FIXME: Setting linknames here is a bad hack. 17853 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17854 # The linker will automatically build a .lib file if we build a DLL. 17855 old_archive_from_new_cmds='true' 17856 # FIXME: Should let the user specify the lib program. 17857 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17858 fix_srcfile_path='`cygpath -w "$srcfile"`' 17859 enable_shared_with_static_runtimes=yes 17860 ;; 17861 17862 darwin* | rhapsody*) 17863 17864 17865 archive_cmds_need_lc=no 17866 hardcode_direct=no 17867 hardcode_automatic=yes 17868 hardcode_shlibpath_var=unsupported 17869 if test "$lt_cv_ld_force_load" = "yes"; then 17870 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 17871 else 17872 whole_archive_flag_spec='' 17873 fi 17874 link_all_deplibs=yes 17875 allow_undefined_flag="$_lt_dar_allow_undefined" 17876 case $cc_basename in 17877 ifort*) _lt_dar_can_shared=yes ;; 17878 *) _lt_dar_can_shared=$GCC ;; 17879 esac 17880 if test "$_lt_dar_can_shared" = "yes"; then 17881 output_verbose_link_cmd=func_echo_all 17882 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17883 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17884 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 17885 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 17886 17887 else 17888 ld_shlibs=no 17889 fi 17890 17891 ;; 17892 17893 dgux*) 17894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17895 hardcode_libdir_flag_spec='-L$libdir' 17896 hardcode_shlibpath_var=no 17897 ;; 17898 17899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17900 # support. Future versions do this automatically, but an explicit c++rt0.o 17901 # does not break anything, and helps significantly (at the cost of a little 17902 # extra space). 17903 freebsd2.2*) 17904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17905 hardcode_libdir_flag_spec='-R$libdir' 17906 hardcode_direct=yes 17907 hardcode_shlibpath_var=no 17908 ;; 17909 17910 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17911 freebsd2.*) 17912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17913 hardcode_direct=yes 17914 hardcode_minus_L=yes 17915 hardcode_shlibpath_var=no 17916 ;; 17917 17918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17919 freebsd* | dragonfly*) 17920 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17921 hardcode_libdir_flag_spec='-R$libdir' 17922 hardcode_direct=yes 17923 hardcode_shlibpath_var=no 17924 ;; 17925 17926 hpux9*) 17927 if test "$GCC" = yes; then 17928 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17929 else 17930 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17931 fi 17932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17933 hardcode_libdir_separator=: 17934 hardcode_direct=yes 17935 17936 # hardcode_minus_L: Not really in the search PATH, 17937 # but as the default location of the library. 17938 hardcode_minus_L=yes 17939 export_dynamic_flag_spec='${wl}-E' 17940 ;; 17941 17942 hpux10*) 17943 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 17944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17945 else 17946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17947 fi 17948 if test "$with_gnu_ld" = no; then 17949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17950 hardcode_libdir_flag_spec_ld='+b $libdir' 17951 hardcode_libdir_separator=: 17952 hardcode_direct=yes 17953 hardcode_direct_absolute=yes 17954 export_dynamic_flag_spec='${wl}-E' 17955 # hardcode_minus_L: Not really in the search PATH, 17956 # but as the default location of the library. 17957 hardcode_minus_L=yes 17958 fi 17959 ;; 17960 17961 hpux11*) 17962 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 17963 case $host_cpu in 17964 hppa*64*) 17965 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17966 ;; 17967 ia64*) 17968 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17969 ;; 17970 *) 17971 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17972 ;; 17973 esac 17974 else 17975 case $host_cpu in 17976 hppa*64*) 17977 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17978 ;; 17979 ia64*) 17980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17981 ;; 17982 *) 17983 17984 # Older versions of the 11.00 compiler do not understand -b yet 17985 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17987$as_echo_n "checking if $CC understands -b... " >&6; } 17988if ${lt_cv_prog_compiler__b+:} false; then : 17989 $as_echo_n "(cached) " >&6 17990else 17991 lt_cv_prog_compiler__b=no 17992 save_LDFLAGS="$LDFLAGS" 17993 LDFLAGS="$LDFLAGS -b" 17994 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17995 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17996 # The linker can only warn and ignore the option if not recognized 17997 # So say no if there are warnings 17998 if test -s conftest.err; then 17999 # Append any errors to the config.log. 18000 cat conftest.err 1>&5 18001 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18003 if diff conftest.exp conftest.er2 >/dev/null; then 18004 lt_cv_prog_compiler__b=yes 18005 fi 18006 else 18007 lt_cv_prog_compiler__b=yes 18008 fi 18009 fi 18010 $RM -r conftest* 18011 LDFLAGS="$save_LDFLAGS" 18012 18013fi 18014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 18015$as_echo "$lt_cv_prog_compiler__b" >&6; } 18016 18017if test x"$lt_cv_prog_compiler__b" = xyes; then 18018 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18019else 18020 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18021fi 18022 18023 ;; 18024 esac 18025 fi 18026 if test "$with_gnu_ld" = no; then 18027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 18028 hardcode_libdir_separator=: 18029 18030 case $host_cpu in 18031 hppa*64*|ia64*) 18032 hardcode_direct=no 18033 hardcode_shlibpath_var=no 18034 ;; 18035 *) 18036 hardcode_direct=yes 18037 hardcode_direct_absolute=yes 18038 export_dynamic_flag_spec='${wl}-E' 18039 18040 # hardcode_minus_L: Not really in the search PATH, 18041 # but as the default location of the library. 18042 hardcode_minus_L=yes 18043 ;; 18044 esac 18045 fi 18046 ;; 18047 18048 irix5* | irix6* | nonstopux*) 18049 if test "$GCC" = yes; then 18050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18051 # Try to use the -exported_symbol ld option, if it does not 18052 # work, assume that -exports_file does not work either and 18053 # implicitly export all symbols. 18054 save_LDFLAGS="$LDFLAGS" 18055 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18057/* end confdefs.h. */ 18058int foo(void) {} 18059_ACEOF 18060if ac_fn_c_try_link "$LINENO"; then : 18061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 18062 18063fi 18064rm -f core conftest.err conftest.$ac_objext \ 18065 conftest$ac_exeext conftest.$ac_ext 18066 LDFLAGS="$save_LDFLAGS" 18067 else 18068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 18069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 18070 fi 18071 archive_cmds_need_lc='no' 18072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18073 hardcode_libdir_separator=: 18074 inherit_rpath=yes 18075 link_all_deplibs=yes 18076 ;; 18077 18078 netbsd*) 18079 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18081 else 18082 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18083 fi 18084 hardcode_libdir_flag_spec='-R$libdir' 18085 hardcode_direct=yes 18086 hardcode_shlibpath_var=no 18087 ;; 18088 18089 newsos6) 18090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18091 hardcode_direct=yes 18092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18093 hardcode_libdir_separator=: 18094 hardcode_shlibpath_var=no 18095 ;; 18096 18097 *nto* | *qnx*) 18098 ;; 18099 18100 openbsd*) 18101 if test -f /usr/libexec/ld.so; then 18102 hardcode_direct=yes 18103 hardcode_shlibpath_var=no 18104 hardcode_direct_absolute=yes 18105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18107 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18108 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 18109 export_dynamic_flag_spec='${wl}-E' 18110 else 18111 case $host_os in 18112 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18114 hardcode_libdir_flag_spec='-R$libdir' 18115 ;; 18116 *) 18117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 18119 ;; 18120 esac 18121 fi 18122 else 18123 ld_shlibs=no 18124 fi 18125 ;; 18126 18127 os2*) 18128 hardcode_libdir_flag_spec='-L$libdir' 18129 hardcode_minus_L=yes 18130 allow_undefined_flag=unsupported 18131 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 18132 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18133 ;; 18134 18135 osf3*) 18136 if test "$GCC" = yes; then 18137 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 18138 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18139 else 18140 allow_undefined_flag=' -expect_unresolved \*' 18141 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 18142 fi 18143 archive_cmds_need_lc='no' 18144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18145 hardcode_libdir_separator=: 18146 ;; 18147 18148 osf4* | osf5*) # as osf3* with the addition of -msym flag 18149 if test "$GCC" = yes; then 18150 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 18151 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18153 else 18154 allow_undefined_flag=' -expect_unresolved \*' 18155 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 18156 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 18157 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 18158 18159 # Both c and cxx compiler support -rpath directly 18160 hardcode_libdir_flag_spec='-rpath $libdir' 18161 fi 18162 archive_cmds_need_lc='no' 18163 hardcode_libdir_separator=: 18164 ;; 18165 18166 solaris*) 18167 no_undefined_flag=' -z defs' 18168 if test "$GCC" = yes; then 18169 wlarc='${wl}' 18170 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18171 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18172 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 18173 else 18174 case `$CC -V 2>&1` in 18175 *"Compilers 5.0"*) 18176 wlarc='' 18177 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 18180 ;; 18181 *) 18182 wlarc='${wl}' 18183 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 18184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18185 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 18186 ;; 18187 esac 18188 fi 18189 hardcode_libdir_flag_spec='-R$libdir' 18190 hardcode_shlibpath_var=no 18191 case $host_os in 18192 solaris2.[0-5] | solaris2.[0-5].*) ;; 18193 *) 18194 # The compiler driver will combine and reorder linker options, 18195 # but understands `-z linker_flag'. GCC discards it without `$wl', 18196 # but is careful enough not to reorder. 18197 # Supported since Solaris 2.6 (maybe 2.5.1?) 18198 if test "$GCC" = yes; then 18199 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18200 else 18201 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 18202 fi 18203 ;; 18204 esac 18205 link_all_deplibs=yes 18206 ;; 18207 18208 sunos4*) 18209 if test "x$host_vendor" = xsequent; then 18210 # Use $CC to link under sequent, because it throws in some extra .o 18211 # files that make .init and .fini sections work. 18212 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18213 else 18214 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18215 fi 18216 hardcode_libdir_flag_spec='-L$libdir' 18217 hardcode_direct=yes 18218 hardcode_minus_L=yes 18219 hardcode_shlibpath_var=no 18220 ;; 18221 18222 sysv4) 18223 case $host_vendor in 18224 sni) 18225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18226 hardcode_direct=yes # is this really true??? 18227 ;; 18228 siemens) 18229 ## LD is ld it makes a PLAMLIB 18230 ## CC just makes a GrossModule. 18231 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18232 reload_cmds='$CC -r -o $output$reload_objs' 18233 hardcode_direct=no 18234 ;; 18235 motorola) 18236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18237 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 18238 ;; 18239 esac 18240 runpath_var='LD_RUN_PATH' 18241 hardcode_shlibpath_var=no 18242 ;; 18243 18244 sysv4.3*) 18245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18246 hardcode_shlibpath_var=no 18247 export_dynamic_flag_spec='-Bexport' 18248 ;; 18249 18250 sysv4*MP*) 18251 if test -d /usr/nec; then 18252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18253 hardcode_shlibpath_var=no 18254 runpath_var=LD_RUN_PATH 18255 hardcode_runpath_var=yes 18256 ld_shlibs=yes 18257 fi 18258 ;; 18259 18260 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18261 no_undefined_flag='${wl}-z,text' 18262 archive_cmds_need_lc=no 18263 hardcode_shlibpath_var=no 18264 runpath_var='LD_RUN_PATH' 18265 18266 if test "$GCC" = yes; then 18267 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18268 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18269 else 18270 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18271 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18272 fi 18273 ;; 18274 18275 sysv5* | sco3.2v5* | sco5v6*) 18276 # Note: We can NOT use -z defs as we might desire, because we do not 18277 # link with -lc, and that would cause any symbols used from libc to 18278 # always be unresolved, which means just about no library would 18279 # ever link correctly. If we're not using GNU ld we use -z text 18280 # though, which does catch some bad symbols but isn't as heavy-handed 18281 # as -z defs. 18282 no_undefined_flag='${wl}-z,text' 18283 allow_undefined_flag='${wl}-z,nodefs' 18284 archive_cmds_need_lc=no 18285 hardcode_shlibpath_var=no 18286 hardcode_libdir_flag_spec='${wl}-R,$libdir' 18287 hardcode_libdir_separator=':' 18288 link_all_deplibs=yes 18289 export_dynamic_flag_spec='${wl}-Bexport' 18290 runpath_var='LD_RUN_PATH' 18291 18292 if test "$GCC" = yes; then 18293 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18294 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18295 else 18296 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18297 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18298 fi 18299 ;; 18300 18301 uts4*) 18302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18303 hardcode_libdir_flag_spec='-L$libdir' 18304 hardcode_shlibpath_var=no 18305 ;; 18306 18307 *) 18308 ld_shlibs=no 18309 ;; 18310 esac 18311 18312 if test x$host_vendor = xsni; then 18313 case $host in 18314 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18315 export_dynamic_flag_spec='${wl}-Blargedynsym' 18316 ;; 18317 esac 18318 fi 18319 fi 18320 18321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 18322$as_echo "$ld_shlibs" >&6; } 18323test "$ld_shlibs" = no && can_build_shared=no 18324 18325with_gnu_ld=$with_gnu_ld 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341# 18342# Do we need to explicitly link libc? 18343# 18344case "x$archive_cmds_need_lc" in 18345x|xyes) 18346 # Assume -lc should be added 18347 archive_cmds_need_lc=yes 18348 18349 if test "$enable_shared" = yes && test "$GCC" = yes; then 18350 case $archive_cmds in 18351 *'~'*) 18352 # FIXME: we may have to deal with multi-command sequences. 18353 ;; 18354 '$CC '*) 18355 # Test whether the compiler implicitly links with -lc since on some 18356 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18357 # to ld, don't add -lc before -lgcc. 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18359$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18360if ${lt_cv_archive_cmds_need_lc+:} false; then : 18361 $as_echo_n "(cached) " >&6 18362else 18363 $RM conftest* 18364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18365 18366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18367 (eval $ac_compile) 2>&5 18368 ac_status=$? 18369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18370 test $ac_status = 0; } 2>conftest.err; then 18371 soname=conftest 18372 lib=conftest 18373 libobjs=conftest.$ac_objext 18374 deplibs= 18375 wl=$lt_prog_compiler_wl 18376 pic_flag=$lt_prog_compiler_pic 18377 compiler_flags=-v 18378 linker_flags=-v 18379 verstring= 18380 output_objdir=. 18381 libname=conftest 18382 lt_save_allow_undefined_flag=$allow_undefined_flag 18383 allow_undefined_flag= 18384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18385 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18386 ac_status=$? 18387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18388 test $ac_status = 0; } 18389 then 18390 lt_cv_archive_cmds_need_lc=no 18391 else 18392 lt_cv_archive_cmds_need_lc=yes 18393 fi 18394 allow_undefined_flag=$lt_save_allow_undefined_flag 18395 else 18396 cat conftest.err 1>&5 18397 fi 18398 $RM conftest* 18399 18400fi 18401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 18402$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 18403 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 18404 ;; 18405 esac 18406 fi 18407 ;; 18408esac 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18567$as_echo_n "checking dynamic linker characteristics... " >&6; } 18568 18569if test "$GCC" = yes; then 18570 case $host_os in 18571 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 18572 *) lt_awk_arg="/^libraries:/" ;; 18573 esac 18574 case $host_os in 18575 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 18576 *) lt_sed_strip_eq="s,=/,/,g" ;; 18577 esac 18578 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18579 case $lt_search_path_spec in 18580 *\;*) 18581 # if the path contains ";" then we assume it to be the separator 18582 # otherwise default to the standard path separator (i.e. ":") - it is 18583 # assumed that no part of a normal pathname contains ";" but that should 18584 # okay in the real world where ";" in dirpaths is itself problematic. 18585 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18586 ;; 18587 *) 18588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18589 ;; 18590 esac 18591 # Ok, now we have the path, separated by spaces, we can step through it 18592 # and add multilib dir if necessary. 18593 lt_tmp_lt_search_path_spec= 18594 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18595 for lt_sys_path in $lt_search_path_spec; do 18596 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 18597 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 18598 else 18599 test -d "$lt_sys_path" && \ 18600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18601 fi 18602 done 18603 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18604BEGIN {RS=" "; FS="/|\n";} { 18605 lt_foo=""; 18606 lt_count=0; 18607 for (lt_i = NF; lt_i > 0; lt_i--) { 18608 if ($lt_i != "" && $lt_i != ".") { 18609 if ($lt_i == "..") { 18610 lt_count++; 18611 } else { 18612 if (lt_count == 0) { 18613 lt_foo="/" $lt_i lt_foo; 18614 } else { 18615 lt_count--; 18616 } 18617 } 18618 } 18619 } 18620 if (lt_foo != "") { lt_freq[lt_foo]++; } 18621 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18622}'` 18623 # AWK program above erroneously prepends '/' to C:/dos/paths 18624 # for these hosts. 18625 case $host_os in 18626 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18627 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 18628 esac 18629 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18630else 18631 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18632fi 18633library_names_spec= 18634libname_spec='lib$name' 18635soname_spec= 18636shrext_cmds=".so" 18637postinstall_cmds= 18638postuninstall_cmds= 18639finish_cmds= 18640finish_eval= 18641shlibpath_var= 18642shlibpath_overrides_runpath=unknown 18643version_type=none 18644dynamic_linker="$host_os ld.so" 18645sys_lib_dlsearch_path_spec="/lib /usr/lib" 18646need_lib_prefix=unknown 18647hardcode_into_libs=no 18648 18649# when you set need_version to no, make sure it does not cause -set_version 18650# flags to be left without arguments 18651need_version=unknown 18652 18653case $host_os in 18654aix3*) 18655 version_type=linux 18656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18657 shlibpath_var=LIBPATH 18658 18659 # AIX 3 has no versioning support, so we append a major version to the name. 18660 soname_spec='${libname}${release}${shared_ext}$major' 18661 ;; 18662 18663aix[4-9]*) 18664 version_type=linux 18665 need_lib_prefix=no 18666 need_version=no 18667 hardcode_into_libs=yes 18668 if test "$host_cpu" = ia64; then 18669 # AIX 5 supports IA64 18670 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18671 shlibpath_var=LD_LIBRARY_PATH 18672 else 18673 # With GCC up to 2.95.x, collect2 would create an import file 18674 # for dependence libraries. The import file would start with 18675 # the line `#! .'. This would cause the generated library to 18676 # depend on `.', always an invalid library. This was fixed in 18677 # development snapshots of GCC prior to 3.0. 18678 case $host_os in 18679 aix4 | aix4.[01] | aix4.[01].*) 18680 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18681 echo ' yes ' 18682 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 18683 : 18684 else 18685 can_build_shared=no 18686 fi 18687 ;; 18688 esac 18689 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18690 # soname into executable. Probably we can add versioning support to 18691 # collect2, so additional links can be useful in future. 18692 if test "$aix_use_runtimelinking" = yes; then 18693 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18694 # instead of lib<name>.a to let people know that these are not 18695 # typical AIX shared libraries. 18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18697 else 18698 # We preserve .a as extension for shared libraries through AIX4.2 18699 # and later when we are not doing run time linking. 18700 library_names_spec='${libname}${release}.a $libname.a' 18701 soname_spec='${libname}${release}${shared_ext}$major' 18702 fi 18703 shlibpath_var=LIBPATH 18704 fi 18705 ;; 18706 18707amigaos*) 18708 case $host_cpu in 18709 powerpc) 18710 # Since July 2007 AmigaOS4 officially supports .so libraries. 18711 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18713 ;; 18714 m68k) 18715 library_names_spec='$libname.ixlibrary $libname.a' 18716 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18717 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18718 ;; 18719 esac 18720 ;; 18721 18722beos*) 18723 library_names_spec='${libname}${shared_ext}' 18724 dynamic_linker="$host_os ld.so" 18725 shlibpath_var=LIBRARY_PATH 18726 ;; 18727 18728bsdi[45]*) 18729 version_type=linux 18730 need_version=no 18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18732 soname_spec='${libname}${release}${shared_ext}$major' 18733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18734 shlibpath_var=LD_LIBRARY_PATH 18735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18737 # the default ld.so.conf also contains /usr/contrib/lib and 18738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18739 # libtool to hard-code these into programs 18740 ;; 18741 18742cygwin* | mingw* | pw32* | cegcc*) 18743 version_type=windows 18744 shrext_cmds=".dll" 18745 need_version=no 18746 need_lib_prefix=no 18747 18748 case $GCC,$host_os in 18749 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 18750 library_names_spec='$libname.dll.a' 18751 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18752 postinstall_cmds='base_file=`basename \${file}`~ 18753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 18754 dldir=$destdir/`dirname \$dlpath`~ 18755 test -d \$dldir || mkdir -p \$dldir~ 18756 $install_prog $dir/$dlname \$dldir/$dlname~ 18757 chmod a+x \$dldir/$dlname~ 18758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18760 fi' 18761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18762 dlpath=$dir/\$dldll~ 18763 $RM \$dlpath' 18764 shlibpath_overrides_runpath=yes 18765 18766 case $host_os in 18767 cygwin*) 18768 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18770 18771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18772 ;; 18773 mingw* | cegcc*) 18774 # MinGW DLLs use traditional 'lib' prefix 18775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18776 ;; 18777 pw32*) 18778 # pw32 DLLs use 'pw' prefix rather than 'lib' 18779 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18780 ;; 18781 esac 18782 ;; 18783 18784 *) 18785 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18786 ;; 18787 esac 18788 dynamic_linker='Win32 ld.exe' 18789 # FIXME: first we should search . and the directory the executable is in 18790 shlibpath_var=PATH 18791 ;; 18792 18793darwin* | rhapsody*) 18794 dynamic_linker="$host_os dyld" 18795 version_type=darwin 18796 need_lib_prefix=no 18797 need_version=no 18798 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18799 soname_spec='${libname}${release}${major}$shared_ext' 18800 shlibpath_overrides_runpath=yes 18801 shlibpath_var=DYLD_LIBRARY_PATH 18802 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18803 18804 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18806 ;; 18807 18808dgux*) 18809 version_type=linux 18810 need_lib_prefix=no 18811 need_version=no 18812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18813 soname_spec='${libname}${release}${shared_ext}$major' 18814 shlibpath_var=LD_LIBRARY_PATH 18815 ;; 18816 18817freebsd* | dragonfly*) 18818 # DragonFly does not have aout. When/if they implement a new 18819 # versioning mechanism, adjust this. 18820 if test -x /usr/bin/objformat; then 18821 objformat=`/usr/bin/objformat` 18822 else 18823 case $host_os in 18824 freebsd[23].*) objformat=aout ;; 18825 *) objformat=elf ;; 18826 esac 18827 fi 18828 version_type=freebsd-$objformat 18829 case $version_type in 18830 freebsd-elf*) 18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18832 need_version=no 18833 need_lib_prefix=no 18834 ;; 18835 freebsd-*) 18836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18837 need_version=yes 18838 ;; 18839 esac 18840 shlibpath_var=LD_LIBRARY_PATH 18841 case $host_os in 18842 freebsd2.*) 18843 shlibpath_overrides_runpath=yes 18844 ;; 18845 freebsd3.[01]* | freebsdelf3.[01]*) 18846 shlibpath_overrides_runpath=yes 18847 hardcode_into_libs=yes 18848 ;; 18849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18851 shlibpath_overrides_runpath=no 18852 hardcode_into_libs=yes 18853 ;; 18854 *) # from 4.6 on, and DragonFly 18855 shlibpath_overrides_runpath=yes 18856 hardcode_into_libs=yes 18857 ;; 18858 esac 18859 ;; 18860 18861haiku*) 18862 version_type=linux 18863 need_lib_prefix=no 18864 need_version=no 18865 dynamic_linker="$host_os runtime_loader" 18866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18867 soname_spec='${libname}${release}${shared_ext}$major' 18868 shlibpath_var=LIBRARY_PATH 18869 shlibpath_overrides_runpath=yes 18870 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 18871 hardcode_into_libs=yes 18872 ;; 18873 18874hpux9* | hpux10* | hpux11*) 18875 # Give a soname corresponding to the major version so that dld.sl refuses to 18876 # link against other versions. 18877 version_type=sunos 18878 need_lib_prefix=no 18879 need_version=no 18880 case $host_cpu in 18881 ia64*) 18882 shrext_cmds='.so' 18883 hardcode_into_libs=yes 18884 dynamic_linker="$host_os dld.so" 18885 shlibpath_var=LD_LIBRARY_PATH 18886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18888 soname_spec='${libname}${release}${shared_ext}$major' 18889 if test "X$HPUX_IA64_MODE" = X32; then 18890 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18891 else 18892 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18893 fi 18894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18895 ;; 18896 hppa*64*) 18897 shrext_cmds='.sl' 18898 hardcode_into_libs=yes 18899 dynamic_linker="$host_os dld.sl" 18900 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18903 soname_spec='${libname}${release}${shared_ext}$major' 18904 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18906 ;; 18907 *) 18908 shrext_cmds='.sl' 18909 dynamic_linker="$host_os dld.sl" 18910 shlibpath_var=SHLIB_PATH 18911 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18913 soname_spec='${libname}${release}${shared_ext}$major' 18914 ;; 18915 esac 18916 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18917 postinstall_cmds='chmod 555 $lib' 18918 # or fails outright, so override atomically: 18919 install_override_mode=555 18920 ;; 18921 18922interix[3-9]*) 18923 version_type=linux 18924 need_lib_prefix=no 18925 need_version=no 18926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18927 soname_spec='${libname}${release}${shared_ext}$major' 18928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18929 shlibpath_var=LD_LIBRARY_PATH 18930 shlibpath_overrides_runpath=no 18931 hardcode_into_libs=yes 18932 ;; 18933 18934irix5* | irix6* | nonstopux*) 18935 case $host_os in 18936 nonstopux*) version_type=nonstopux ;; 18937 *) 18938 if test "$lt_cv_prog_gnu_ld" = yes; then 18939 version_type=linux 18940 else 18941 version_type=irix 18942 fi ;; 18943 esac 18944 need_lib_prefix=no 18945 need_version=no 18946 soname_spec='${libname}${release}${shared_ext}$major' 18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18948 case $host_os in 18949 irix5* | nonstopux*) 18950 libsuff= shlibsuff= 18951 ;; 18952 *) 18953 case $LD in # libtool.m4 will add one of these switches to LD 18954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18955 libsuff= shlibsuff= libmagic=32-bit;; 18956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18957 libsuff=32 shlibsuff=N32 libmagic=N32;; 18958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18959 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18960 *) libsuff= shlibsuff= libmagic=never-match;; 18961 esac 18962 ;; 18963 esac 18964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18965 shlibpath_overrides_runpath=no 18966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18968 hardcode_into_libs=yes 18969 ;; 18970 18971# No shared lib support for Linux oldld, aout, or coff. 18972linux*oldld* | linux*aout* | linux*coff*) 18973 dynamic_linker=no 18974 ;; 18975 18976# This must be Linux ELF. 18977 18978# uclinux* changes (here and below) have been submitted to the libtool 18979# project, but have not yet been accepted: they are GCC-local changes 18980# for the time being. (See 18981# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 18982linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 18983 version_type=linux 18984 need_lib_prefix=no 18985 need_version=no 18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18987 soname_spec='${libname}${release}${shared_ext}$major' 18988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18989 shlibpath_var=LD_LIBRARY_PATH 18990 shlibpath_overrides_runpath=no 18991 18992 # Some binutils ld are patched to set DT_RUNPATH 18993 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18994 $as_echo_n "(cached) " >&6 18995else 18996 lt_cv_shlibpath_overrides_runpath=no 18997 save_LDFLAGS=$LDFLAGS 18998 save_libdir=$libdir 18999 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 19000 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 19001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19002/* end confdefs.h. */ 19003 19004int 19005main () 19006{ 19007 19008 ; 19009 return 0; 19010} 19011_ACEOF 19012if ac_fn_c_try_link "$LINENO"; then : 19013 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 19014 lt_cv_shlibpath_overrides_runpath=yes 19015fi 19016fi 19017rm -f core conftest.err conftest.$ac_objext \ 19018 conftest$ac_exeext conftest.$ac_ext 19019 LDFLAGS=$save_LDFLAGS 19020 libdir=$save_libdir 19021 19022fi 19023 19024 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 19025 19026 # This implies no fast_install, which is unacceptable. 19027 # Some rework will be needed to allow for fast_install 19028 # before this can be enabled. 19029 hardcode_into_libs=yes 19030 19031 # Append ld.so.conf contents to the search path 19032 if test -f /etc/ld.so.conf; then 19033 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 19034 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19035 fi 19036 19037 # We used to test for /lib/ld.so.1 and disable shared libraries on 19038 # powerpc, because MkLinux only supported shared libraries with the 19039 # GNU dynamic linker. Since this was broken with cross compilers, 19040 # most powerpc-linux boxes support dynamic linking these days and 19041 # people can always --disable-shared, the test was removed, and we 19042 # assume the GNU/Linux dynamic linker is in use. 19043 dynamic_linker='GNU/Linux ld.so' 19044 ;; 19045 19046netbsd*) 19047 version_type=sunos 19048 need_lib_prefix=no 19049 need_version=no 19050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19053 dynamic_linker='NetBSD (a.out) ld.so' 19054 else 19055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19056 soname_spec='${libname}${release}${shared_ext}$major' 19057 dynamic_linker='NetBSD ld.elf_so' 19058 fi 19059 shlibpath_var=LD_LIBRARY_PATH 19060 shlibpath_overrides_runpath=yes 19061 hardcode_into_libs=yes 19062 ;; 19063 19064newsos6) 19065 version_type=linux 19066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19067 shlibpath_var=LD_LIBRARY_PATH 19068 shlibpath_overrides_runpath=yes 19069 ;; 19070 19071*nto* | *qnx*) 19072 version_type=qnx 19073 need_lib_prefix=no 19074 need_version=no 19075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19076 soname_spec='${libname}${release}${shared_ext}$major' 19077 shlibpath_var=LD_LIBRARY_PATH 19078 shlibpath_overrides_runpath=no 19079 hardcode_into_libs=yes 19080 dynamic_linker='ldqnx.so' 19081 ;; 19082 19083openbsd*) 19084 version_type=sunos 19085 sys_lib_dlsearch_path_spec="/usr/lib" 19086 need_lib_prefix=no 19087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19088 case $host_os in 19089 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19090 *) need_version=no ;; 19091 esac 19092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19094 shlibpath_var=LD_LIBRARY_PATH 19095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19096 case $host_os in 19097 openbsd2.[89] | openbsd2.[89].*) 19098 shlibpath_overrides_runpath=no 19099 ;; 19100 *) 19101 shlibpath_overrides_runpath=yes 19102 ;; 19103 esac 19104 else 19105 shlibpath_overrides_runpath=yes 19106 fi 19107 ;; 19108 19109os2*) 19110 libname_spec='$name' 19111 shrext_cmds=".dll" 19112 need_lib_prefix=no 19113 library_names_spec='$libname${shared_ext} $libname.a' 19114 dynamic_linker='OS/2 ld.exe' 19115 shlibpath_var=LIBPATH 19116 ;; 19117 19118osf3* | osf4* | osf5*) 19119 version_type=osf 19120 need_lib_prefix=no 19121 need_version=no 19122 soname_spec='${libname}${release}${shared_ext}$major' 19123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19124 shlibpath_var=LD_LIBRARY_PATH 19125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19127 ;; 19128 19129rdos*) 19130 dynamic_linker=no 19131 ;; 19132 19133solaris*) 19134 version_type=linux 19135 need_lib_prefix=no 19136 need_version=no 19137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19138 soname_spec='${libname}${release}${shared_ext}$major' 19139 shlibpath_var=LD_LIBRARY_PATH 19140 shlibpath_overrides_runpath=yes 19141 hardcode_into_libs=yes 19142 # ldd complains unless libraries are executable 19143 postinstall_cmds='chmod +x $lib' 19144 ;; 19145 19146sunos4*) 19147 version_type=sunos 19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19150 shlibpath_var=LD_LIBRARY_PATH 19151 shlibpath_overrides_runpath=yes 19152 if test "$with_gnu_ld" = yes; then 19153 need_lib_prefix=no 19154 fi 19155 need_version=yes 19156 ;; 19157 19158sysv4 | sysv4.3*) 19159 version_type=linux 19160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19161 soname_spec='${libname}${release}${shared_ext}$major' 19162 shlibpath_var=LD_LIBRARY_PATH 19163 case $host_vendor in 19164 sni) 19165 shlibpath_overrides_runpath=no 19166 need_lib_prefix=no 19167 runpath_var=LD_RUN_PATH 19168 ;; 19169 siemens) 19170 need_lib_prefix=no 19171 ;; 19172 motorola) 19173 need_lib_prefix=no 19174 need_version=no 19175 shlibpath_overrides_runpath=no 19176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19177 ;; 19178 esac 19179 ;; 19180 19181sysv4*MP*) 19182 if test -d /usr/nec ;then 19183 version_type=linux 19184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19185 soname_spec='$libname${shared_ext}.$major' 19186 shlibpath_var=LD_LIBRARY_PATH 19187 fi 19188 ;; 19189 19190sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19191 version_type=freebsd-elf 19192 need_lib_prefix=no 19193 need_version=no 19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19195 soname_spec='${libname}${release}${shared_ext}$major' 19196 shlibpath_var=LD_LIBRARY_PATH 19197 shlibpath_overrides_runpath=yes 19198 hardcode_into_libs=yes 19199 if test "$with_gnu_ld" = yes; then 19200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19201 else 19202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19203 case $host_os in 19204 sco3.2v5*) 19205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19206 ;; 19207 esac 19208 fi 19209 sys_lib_dlsearch_path_spec='/usr/lib' 19210 ;; 19211 19212tpf*) 19213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19214 version_type=linux 19215 need_lib_prefix=no 19216 need_version=no 19217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19218 shlibpath_var=LD_LIBRARY_PATH 19219 shlibpath_overrides_runpath=no 19220 hardcode_into_libs=yes 19221 ;; 19222 19223uts4*) 19224 version_type=linux 19225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19226 soname_spec='${libname}${release}${shared_ext}$major' 19227 shlibpath_var=LD_LIBRARY_PATH 19228 ;; 19229 19230*) 19231 dynamic_linker=no 19232 ;; 19233esac 19234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19235$as_echo "$dynamic_linker" >&6; } 19236test "$dynamic_linker" = no && can_build_shared=no 19237 19238variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19239if test "$GCC" = yes; then 19240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19241fi 19242 19243if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19244 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19245fi 19246if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19247 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19248fi 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19342$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19343hardcode_action= 19344if test -n "$hardcode_libdir_flag_spec" || 19345 test -n "$runpath_var" || 19346 test "X$hardcode_automatic" = "Xyes" ; then 19347 19348 # We can hardcode non-existent directories. 19349 if test "$hardcode_direct" != no && 19350 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19351 # have to relink, otherwise we might link with an installed library 19352 # when we should be linking with a yet-to-be-installed one 19353 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 19354 test "$hardcode_minus_L" != no; then 19355 # Linking always hardcodes the temporary library directory. 19356 hardcode_action=relink 19357 else 19358 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19359 hardcode_action=immediate 19360 fi 19361else 19362 # We cannot hardcode anything, or else we can only hardcode existing 19363 # directories. 19364 hardcode_action=unsupported 19365fi 19366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19367$as_echo "$hardcode_action" >&6; } 19368 19369if test "$hardcode_action" = relink || 19370 test "$inherit_rpath" = yes; then 19371 # Fast installation is not supported 19372 enable_fast_install=no 19373elif test "$shlibpath_overrides_runpath" = yes || 19374 test "$enable_shared" = no; then 19375 # Fast installation is not necessary 19376 enable_fast_install=needless 19377fi 19378 19379 19380 19381 19382 19383 19384 if test "x$enable_dlopen" != xyes; then 19385 enable_dlopen=unknown 19386 enable_dlopen_self=unknown 19387 enable_dlopen_self_static=unknown 19388else 19389 lt_cv_dlopen=no 19390 lt_cv_dlopen_libs= 19391 19392 case $host_os in 19393 beos*) 19394 lt_cv_dlopen="load_add_on" 19395 lt_cv_dlopen_libs= 19396 lt_cv_dlopen_self=yes 19397 ;; 19398 19399 mingw* | pw32* | cegcc*) 19400 lt_cv_dlopen="LoadLibrary" 19401 lt_cv_dlopen_libs= 19402 ;; 19403 19404 cygwin*) 19405 lt_cv_dlopen="dlopen" 19406 lt_cv_dlopen_libs= 19407 ;; 19408 19409 darwin*) 19410 # if libdl is installed we need to link against it 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19412$as_echo_n "checking for dlopen in -ldl... " >&6; } 19413if ${ac_cv_lib_dl_dlopen+:} false; then : 19414 $as_echo_n "(cached) " >&6 19415else 19416 ac_check_lib_save_LIBS=$LIBS 19417LIBS="-ldl $LIBS" 19418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19419/* end confdefs.h. */ 19420 19421/* Override any GCC internal prototype to avoid an error. 19422 Use char because int might match the return type of a GCC 19423 builtin and then its argument prototype would still apply. */ 19424#ifdef __cplusplus 19425extern "C" 19426#endif 19427char dlopen (); 19428int 19429main () 19430{ 19431return dlopen (); 19432 ; 19433 return 0; 19434} 19435_ACEOF 19436if ac_fn_c_try_link "$LINENO"; then : 19437 ac_cv_lib_dl_dlopen=yes 19438else 19439 ac_cv_lib_dl_dlopen=no 19440fi 19441rm -f core conftest.err conftest.$ac_objext \ 19442 conftest$ac_exeext conftest.$ac_ext 19443LIBS=$ac_check_lib_save_LIBS 19444fi 19445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19446$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19447if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19449else 19450 19451 lt_cv_dlopen="dyld" 19452 lt_cv_dlopen_libs= 19453 lt_cv_dlopen_self=yes 19454 19455fi 19456 19457 ;; 19458 19459 *) 19460 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19461if test "x$ac_cv_func_shl_load" = xyes; then : 19462 lt_cv_dlopen="shl_load" 19463else 19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19465$as_echo_n "checking for shl_load in -ldld... " >&6; } 19466if ${ac_cv_lib_dld_shl_load+:} false; then : 19467 $as_echo_n "(cached) " >&6 19468else 19469 ac_check_lib_save_LIBS=$LIBS 19470LIBS="-ldld $LIBS" 19471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19472/* end confdefs.h. */ 19473 19474/* Override any GCC internal prototype to avoid an error. 19475 Use char because int might match the return type of a GCC 19476 builtin and then its argument prototype would still apply. */ 19477#ifdef __cplusplus 19478extern "C" 19479#endif 19480char shl_load (); 19481int 19482main () 19483{ 19484return shl_load (); 19485 ; 19486 return 0; 19487} 19488_ACEOF 19489if ac_fn_c_try_link "$LINENO"; then : 19490 ac_cv_lib_dld_shl_load=yes 19491else 19492 ac_cv_lib_dld_shl_load=no 19493fi 19494rm -f core conftest.err conftest.$ac_objext \ 19495 conftest$ac_exeext conftest.$ac_ext 19496LIBS=$ac_check_lib_save_LIBS 19497fi 19498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19499$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 19500if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 19501 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 19502else 19503 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19504if test "x$ac_cv_func_dlopen" = xyes; then : 19505 lt_cv_dlopen="dlopen" 19506else 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19508$as_echo_n "checking for dlopen in -ldl... " >&6; } 19509if ${ac_cv_lib_dl_dlopen+:} false; then : 19510 $as_echo_n "(cached) " >&6 19511else 19512 ac_check_lib_save_LIBS=$LIBS 19513LIBS="-ldl $LIBS" 19514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19515/* end confdefs.h. */ 19516 19517/* Override any GCC internal prototype to avoid an error. 19518 Use char because int might match the return type of a GCC 19519 builtin and then its argument prototype would still apply. */ 19520#ifdef __cplusplus 19521extern "C" 19522#endif 19523char dlopen (); 19524int 19525main () 19526{ 19527return dlopen (); 19528 ; 19529 return 0; 19530} 19531_ACEOF 19532if ac_fn_c_try_link "$LINENO"; then : 19533 ac_cv_lib_dl_dlopen=yes 19534else 19535 ac_cv_lib_dl_dlopen=no 19536fi 19537rm -f core conftest.err conftest.$ac_objext \ 19538 conftest$ac_exeext conftest.$ac_ext 19539LIBS=$ac_check_lib_save_LIBS 19540fi 19541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19542$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19543if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19545else 19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19547$as_echo_n "checking for dlopen in -lsvld... " >&6; } 19548if ${ac_cv_lib_svld_dlopen+:} false; then : 19549 $as_echo_n "(cached) " >&6 19550else 19551 ac_check_lib_save_LIBS=$LIBS 19552LIBS="-lsvld $LIBS" 19553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19554/* end confdefs.h. */ 19555 19556/* Override any GCC internal prototype to avoid an error. 19557 Use char because int might match the return type of a GCC 19558 builtin and then its argument prototype would still apply. */ 19559#ifdef __cplusplus 19560extern "C" 19561#endif 19562char dlopen (); 19563int 19564main () 19565{ 19566return dlopen (); 19567 ; 19568 return 0; 19569} 19570_ACEOF 19571if ac_fn_c_try_link "$LINENO"; then : 19572 ac_cv_lib_svld_dlopen=yes 19573else 19574 ac_cv_lib_svld_dlopen=no 19575fi 19576rm -f core conftest.err conftest.$ac_objext \ 19577 conftest$ac_exeext conftest.$ac_ext 19578LIBS=$ac_check_lib_save_LIBS 19579fi 19580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19581$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 19582if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 19583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 19584else 19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19586$as_echo_n "checking for dld_link in -ldld... " >&6; } 19587if ${ac_cv_lib_dld_dld_link+:} false; then : 19588 $as_echo_n "(cached) " >&6 19589else 19590 ac_check_lib_save_LIBS=$LIBS 19591LIBS="-ldld $LIBS" 19592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19593/* end confdefs.h. */ 19594 19595/* Override any GCC internal prototype to avoid an error. 19596 Use char because int might match the return type of a GCC 19597 builtin and then its argument prototype would still apply. */ 19598#ifdef __cplusplus 19599extern "C" 19600#endif 19601char dld_link (); 19602int 19603main () 19604{ 19605return dld_link (); 19606 ; 19607 return 0; 19608} 19609_ACEOF 19610if ac_fn_c_try_link "$LINENO"; then : 19611 ac_cv_lib_dld_dld_link=yes 19612else 19613 ac_cv_lib_dld_dld_link=no 19614fi 19615rm -f core conftest.err conftest.$ac_objext \ 19616 conftest$ac_exeext conftest.$ac_ext 19617LIBS=$ac_check_lib_save_LIBS 19618fi 19619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19620$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 19621if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 19622 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 19623fi 19624 19625 19626fi 19627 19628 19629fi 19630 19631 19632fi 19633 19634 19635fi 19636 19637 19638fi 19639 19640 ;; 19641 esac 19642 19643 if test "x$lt_cv_dlopen" != xno; then 19644 enable_dlopen=yes 19645 else 19646 enable_dlopen=no 19647 fi 19648 19649 case $lt_cv_dlopen in 19650 dlopen) 19651 save_CPPFLAGS="$CPPFLAGS" 19652 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19653 19654 save_LDFLAGS="$LDFLAGS" 19655 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19656 19657 save_LIBS="$LIBS" 19658 LIBS="$lt_cv_dlopen_libs $LIBS" 19659 19660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19661$as_echo_n "checking whether a program can dlopen itself... " >&6; } 19662if ${lt_cv_dlopen_self+:} false; then : 19663 $as_echo_n "(cached) " >&6 19664else 19665 if test "$cross_compiling" = yes; then : 19666 lt_cv_dlopen_self=cross 19667else 19668 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19669 lt_status=$lt_dlunknown 19670 cat > conftest.$ac_ext <<_LT_EOF 19671#line 19671 "configure" 19672#include "confdefs.h" 19673 19674#if HAVE_DLFCN_H 19675#include <dlfcn.h> 19676#endif 19677 19678#include <stdio.h> 19679 19680#ifdef RTLD_GLOBAL 19681# define LT_DLGLOBAL RTLD_GLOBAL 19682#else 19683# ifdef DL_GLOBAL 19684# define LT_DLGLOBAL DL_GLOBAL 19685# else 19686# define LT_DLGLOBAL 0 19687# endif 19688#endif 19689 19690/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19691 find out it does not work in some platform. */ 19692#ifndef LT_DLLAZY_OR_NOW 19693# ifdef RTLD_LAZY 19694# define LT_DLLAZY_OR_NOW RTLD_LAZY 19695# else 19696# ifdef DL_LAZY 19697# define LT_DLLAZY_OR_NOW DL_LAZY 19698# else 19699# ifdef RTLD_NOW 19700# define LT_DLLAZY_OR_NOW RTLD_NOW 19701# else 19702# ifdef DL_NOW 19703# define LT_DLLAZY_OR_NOW DL_NOW 19704# else 19705# define LT_DLLAZY_OR_NOW 0 19706# endif 19707# endif 19708# endif 19709# endif 19710#endif 19711 19712/* When -fvisbility=hidden is used, assume the code has been annotated 19713 correspondingly for the symbols needed. */ 19714#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19715void fnord () __attribute__((visibility("default"))); 19716#endif 19717 19718void fnord () { int i=42; } 19719int main () 19720{ 19721 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19722 int status = $lt_dlunknown; 19723 19724 if (self) 19725 { 19726 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19727 else 19728 { 19729 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19730 else puts (dlerror ()); 19731 } 19732 /* dlclose (self); */ 19733 } 19734 else 19735 puts (dlerror ()); 19736 19737 return status; 19738} 19739_LT_EOF 19740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19741 (eval $ac_link) 2>&5 19742 ac_status=$? 19743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19744 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 19745 (./conftest; exit; ) >&5 2>/dev/null 19746 lt_status=$? 19747 case x$lt_status in 19748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19750 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19751 esac 19752 else : 19753 # compilation failed 19754 lt_cv_dlopen_self=no 19755 fi 19756fi 19757rm -fr conftest* 19758 19759 19760fi 19761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19762$as_echo "$lt_cv_dlopen_self" >&6; } 19763 19764 if test "x$lt_cv_dlopen_self" = xyes; then 19765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19767$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 19768if ${lt_cv_dlopen_self_static+:} false; then : 19769 $as_echo_n "(cached) " >&6 19770else 19771 if test "$cross_compiling" = yes; then : 19772 lt_cv_dlopen_self_static=cross 19773else 19774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19775 lt_status=$lt_dlunknown 19776 cat > conftest.$ac_ext <<_LT_EOF 19777#line 19777 "configure" 19778#include "confdefs.h" 19779 19780#if HAVE_DLFCN_H 19781#include <dlfcn.h> 19782#endif 19783 19784#include <stdio.h> 19785 19786#ifdef RTLD_GLOBAL 19787# define LT_DLGLOBAL RTLD_GLOBAL 19788#else 19789# ifdef DL_GLOBAL 19790# define LT_DLGLOBAL DL_GLOBAL 19791# else 19792# define LT_DLGLOBAL 0 19793# endif 19794#endif 19795 19796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19797 find out it does not work in some platform. */ 19798#ifndef LT_DLLAZY_OR_NOW 19799# ifdef RTLD_LAZY 19800# define LT_DLLAZY_OR_NOW RTLD_LAZY 19801# else 19802# ifdef DL_LAZY 19803# define LT_DLLAZY_OR_NOW DL_LAZY 19804# else 19805# ifdef RTLD_NOW 19806# define LT_DLLAZY_OR_NOW RTLD_NOW 19807# else 19808# ifdef DL_NOW 19809# define LT_DLLAZY_OR_NOW DL_NOW 19810# else 19811# define LT_DLLAZY_OR_NOW 0 19812# endif 19813# endif 19814# endif 19815# endif 19816#endif 19817 19818/* When -fvisbility=hidden is used, assume the code has been annotated 19819 correspondingly for the symbols needed. */ 19820#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19821void fnord () __attribute__((visibility("default"))); 19822#endif 19823 19824void fnord () { int i=42; } 19825int main () 19826{ 19827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19828 int status = $lt_dlunknown; 19829 19830 if (self) 19831 { 19832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19833 else 19834 { 19835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19836 else puts (dlerror ()); 19837 } 19838 /* dlclose (self); */ 19839 } 19840 else 19841 puts (dlerror ()); 19842 19843 return status; 19844} 19845_LT_EOF 19846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19847 (eval $ac_link) 2>&5 19848 ac_status=$? 19849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19850 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 19851 (./conftest; exit; ) >&5 2>/dev/null 19852 lt_status=$? 19853 case x$lt_status in 19854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19857 esac 19858 else : 19859 # compilation failed 19860 lt_cv_dlopen_self_static=no 19861 fi 19862fi 19863rm -fr conftest* 19864 19865 19866fi 19867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19868$as_echo "$lt_cv_dlopen_self_static" >&6; } 19869 fi 19870 19871 CPPFLAGS="$save_CPPFLAGS" 19872 LDFLAGS="$save_LDFLAGS" 19873 LIBS="$save_LIBS" 19874 ;; 19875 esac 19876 19877 case $lt_cv_dlopen_self in 19878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19879 *) enable_dlopen_self=unknown ;; 19880 esac 19881 19882 case $lt_cv_dlopen_self_static in 19883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19884 *) enable_dlopen_self_static=unknown ;; 19885 esac 19886fi 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904striplib= 19905old_striplib= 19906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19907$as_echo_n "checking whether stripping libraries is possible... " >&6; } 19908if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19909 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19910 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19912$as_echo "yes" >&6; } 19913else 19914# FIXME - insert some real tests, host_os isn't really good enough 19915 case $host_os in 19916 darwin*) 19917 if test -n "$STRIP" ; then 19918 striplib="$STRIP -x" 19919 old_striplib="$STRIP -S" 19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19921$as_echo "yes" >&6; } 19922 else 19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19924$as_echo "no" >&6; } 19925 fi 19926 ;; 19927 *) 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19929$as_echo "no" >&6; } 19930 ;; 19931 esac 19932fi 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 # Report which library types will actually be built 19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19947$as_echo_n "checking if libtool supports shared libraries... " >&6; } 19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19949$as_echo "$can_build_shared" >&6; } 19950 19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19952$as_echo_n "checking whether to build shared libraries... " >&6; } 19953 test "$can_build_shared" = "no" && enable_shared=no 19954 19955 # On AIX, shared libraries and static libraries use the same namespace, and 19956 # are all built from PIC. 19957 case $host_os in 19958 aix3*) 19959 test "$enable_shared" = yes && enable_static=no 19960 if test -n "$RANLIB"; then 19961 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19962 postinstall_cmds='$RANLIB $lib' 19963 fi 19964 ;; 19965 19966 aix[4-9]*) 19967 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 19968 test "$enable_shared" = yes && enable_static=no 19969 fi 19970 ;; 19971 esac 19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19973$as_echo "$enable_shared" >&6; } 19974 19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19976$as_echo_n "checking whether to build static libraries... " >&6; } 19977 # Make sure either enable_shared or enable_static is yes. 19978 test "$enable_shared" = yes || enable_static=yes 19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19980$as_echo "$enable_static" >&6; } 19981 19982 19983 19984 19985fi 19986ac_ext=cpp 19987ac_cpp='$CXXCPP $CPPFLAGS' 19988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19991 19992CC="$lt_save_CC" 19993 19994 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 19995 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 19996 (test "X$CXX" != "Xg++"))) ; then 19997 ac_ext=cpp 19998ac_cpp='$CXXCPP $CPPFLAGS' 19999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 20003$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 20004if test -z "$CXXCPP"; then 20005 if ${ac_cv_prog_CXXCPP+:} false; then : 20006 $as_echo_n "(cached) " >&6 20007else 20008 # Double quotes because CXXCPP needs to be expanded 20009 for CXXCPP in "$CXX -E" "/lib/cpp" 20010 do 20011 ac_preproc_ok=false 20012for ac_cxx_preproc_warn_flag in '' yes 20013do 20014 # Use a header file that comes with gcc, so configuring glibc 20015 # with a fresh cross-compiler works. 20016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20017 # <limits.h> exists even on freestanding compilers. 20018 # On the NeXT, cc -E runs the code through the compiler's parser, 20019 # not just through cpp. "Syntax error" is here to catch this case. 20020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20021/* end confdefs.h. */ 20022#ifdef __STDC__ 20023# include <limits.h> 20024#else 20025# include <assert.h> 20026#endif 20027 Syntax error 20028_ACEOF 20029if ac_fn_cxx_try_cpp "$LINENO"; then : 20030 20031else 20032 # Broken: fails on valid input. 20033continue 20034fi 20035rm -f conftest.err conftest.i conftest.$ac_ext 20036 20037 # OK, works on sane cases. Now check whether nonexistent headers 20038 # can be detected and how. 20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20040/* end confdefs.h. */ 20041#include <ac_nonexistent.h> 20042_ACEOF 20043if ac_fn_cxx_try_cpp "$LINENO"; then : 20044 # Broken: success on invalid input. 20045continue 20046else 20047 # Passes both tests. 20048ac_preproc_ok=: 20049break 20050fi 20051rm -f conftest.err conftest.i conftest.$ac_ext 20052 20053done 20054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20055rm -f conftest.i conftest.err conftest.$ac_ext 20056if $ac_preproc_ok; then : 20057 break 20058fi 20059 20060 done 20061 ac_cv_prog_CXXCPP=$CXXCPP 20062 20063fi 20064 CXXCPP=$ac_cv_prog_CXXCPP 20065else 20066 ac_cv_prog_CXXCPP=$CXXCPP 20067fi 20068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 20069$as_echo "$CXXCPP" >&6; } 20070ac_preproc_ok=false 20071for ac_cxx_preproc_warn_flag in '' yes 20072do 20073 # Use a header file that comes with gcc, so configuring glibc 20074 # with a fresh cross-compiler works. 20075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20076 # <limits.h> exists even on freestanding compilers. 20077 # On the NeXT, cc -E runs the code through the compiler's parser, 20078 # not just through cpp. "Syntax error" is here to catch this case. 20079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20080/* end confdefs.h. */ 20081#ifdef __STDC__ 20082# include <limits.h> 20083#else 20084# include <assert.h> 20085#endif 20086 Syntax error 20087_ACEOF 20088if ac_fn_cxx_try_cpp "$LINENO"; then : 20089 20090else 20091 # Broken: fails on valid input. 20092continue 20093fi 20094rm -f conftest.err conftest.i conftest.$ac_ext 20095 20096 # OK, works on sane cases. Now check whether nonexistent headers 20097 # can be detected and how. 20098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20099/* end confdefs.h. */ 20100#include <ac_nonexistent.h> 20101_ACEOF 20102if ac_fn_cxx_try_cpp "$LINENO"; then : 20103 # Broken: success on invalid input. 20104continue 20105else 20106 # Passes both tests. 20107ac_preproc_ok=: 20108break 20109fi 20110rm -f conftest.err conftest.i conftest.$ac_ext 20111 20112done 20113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20114rm -f conftest.i conftest.err conftest.$ac_ext 20115if $ac_preproc_ok; then : 20116 20117else 20118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20120as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 20121See \`config.log' for more details" "$LINENO" 5; } 20122fi 20123 20124ac_ext=cpp 20125ac_cpp='$CXXCPP $CPPFLAGS' 20126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20129 20130else 20131 _lt_caught_CXX_error=yes 20132fi 20133 20134ac_ext=cpp 20135ac_cpp='$CXXCPP $CPPFLAGS' 20136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20139 20140archive_cmds_need_lc_CXX=no 20141allow_undefined_flag_CXX= 20142always_export_symbols_CXX=no 20143archive_expsym_cmds_CXX= 20144compiler_needs_object_CXX=no 20145export_dynamic_flag_spec_CXX= 20146hardcode_direct_CXX=no 20147hardcode_direct_absolute_CXX=no 20148hardcode_libdir_flag_spec_CXX= 20149hardcode_libdir_flag_spec_ld_CXX= 20150hardcode_libdir_separator_CXX= 20151hardcode_minus_L_CXX=no 20152hardcode_shlibpath_var_CXX=unsupported 20153hardcode_automatic_CXX=no 20154inherit_rpath_CXX=no 20155module_cmds_CXX= 20156module_expsym_cmds_CXX= 20157link_all_deplibs_CXX=unknown 20158old_archive_cmds_CXX=$old_archive_cmds 20159reload_flag_CXX=$reload_flag 20160reload_cmds_CXX=$reload_cmds 20161no_undefined_flag_CXX= 20162whole_archive_flag_spec_CXX= 20163enable_shared_with_static_runtimes_CXX=no 20164 20165# Source file extension for C++ test sources. 20166ac_ext=cpp 20167 20168# Object file extension for compiled C++ test sources. 20169objext=o 20170objext_CXX=$objext 20171 20172# No sense in running all these tests if we already determined that 20173# the CXX compiler isn't working. Some variables (like enable_shared) 20174# are currently assumed to apply to all compilers on this platform, 20175# and will be corrupted by setting them based on a non-working compiler. 20176if test "$_lt_caught_CXX_error" != yes; then 20177 # Code to be used in simple compile tests 20178 lt_simple_compile_test_code="int some_variable = 0;" 20179 20180 # Code to be used in simple link tests 20181 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 20182 20183 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 20184 20185 20186 20187 20188 20189 20190# If no C compiler was specified, use CC. 20191LTCC=${LTCC-"$CC"} 20192 20193# If no C compiler flags were specified, use CFLAGS. 20194LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20195 20196# Allow CC to be a program name with arguments. 20197compiler=$CC 20198 20199 20200 # save warnings/boilerplate of simple test code 20201 ac_outfile=conftest.$ac_objext 20202echo "$lt_simple_compile_test_code" >conftest.$ac_ext 20203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20204_lt_compiler_boilerplate=`cat conftest.err` 20205$RM conftest* 20206 20207 ac_outfile=conftest.$ac_objext 20208echo "$lt_simple_link_test_code" >conftest.$ac_ext 20209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20210_lt_linker_boilerplate=`cat conftest.err` 20211$RM -r conftest* 20212 20213 20214 # Allow CC to be a program name with arguments. 20215 lt_save_CC=$CC 20216 lt_save_LD=$LD 20217 lt_save_GCC=$GCC 20218 GCC=$GXX 20219 lt_save_with_gnu_ld=$with_gnu_ld 20220 lt_save_path_LD=$lt_cv_path_LD 20221 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 20222 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 20223 else 20224 $as_unset lt_cv_prog_gnu_ld 20225 fi 20226 if test -n "${lt_cv_path_LDCXX+set}"; then 20227 lt_cv_path_LD=$lt_cv_path_LDCXX 20228 else 20229 $as_unset lt_cv_path_LD 20230 fi 20231 test -z "${LDCXX+set}" || LD=$LDCXX 20232 CC=${CXX-"c++"} 20233 compiler=$CC 20234 compiler_CXX=$CC 20235 for cc_temp in $compiler""; do 20236 case $cc_temp in 20237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20239 \-*) ;; 20240 *) break;; 20241 esac 20242done 20243cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20244 20245 20246 if test -n "$compiler"; then 20247 # We don't want -fno-exception when compiling C++ code, so set the 20248 # no_builtin_flag separately 20249 if test "$GXX" = yes; then 20250 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 20251 else 20252 lt_prog_compiler_no_builtin_flag_CXX= 20253 fi 20254 20255 if test "$GXX" = yes; then 20256 # Set up default GNU C++ configuration 20257 20258 20259 20260# Check whether --with-gnu-ld was given. 20261if test "${with_gnu_ld+set}" = set; then : 20262 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 20263else 20264 with_gnu_ld=no 20265fi 20266 20267ac_prog=ld 20268if test "$GCC" = yes; then 20269 # Check if gcc -print-prog-name=ld gives a path. 20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 20271$as_echo_n "checking for ld used by $CC... " >&6; } 20272 case $host in 20273 *-*-mingw*) 20274 # gcc leaves a trailing carriage return which upsets mingw 20275 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20276 *) 20277 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20278 esac 20279 case $ac_prog in 20280 # Accept absolute paths. 20281 [\\/]* | ?:[\\/]*) 20282 re_direlt='/[^/][^/]*/\.\./' 20283 # Canonicalize the pathname of ld 20284 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 20285 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 20286 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 20287 done 20288 test -z "$LD" && LD="$ac_prog" 20289 ;; 20290 "") 20291 # If it fails, then pretend we aren't using GCC. 20292 ac_prog=ld 20293 ;; 20294 *) 20295 # If it is relative, then search for the first ld in PATH. 20296 with_gnu_ld=unknown 20297 ;; 20298 esac 20299elif test "$with_gnu_ld" = yes; then 20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20301$as_echo_n "checking for GNU ld... " >&6; } 20302else 20303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20304$as_echo_n "checking for non-GNU ld... " >&6; } 20305fi 20306if ${lt_cv_path_LD+:} false; then : 20307 $as_echo_n "(cached) " >&6 20308else 20309 if test -z "$LD"; then 20310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 20311 for ac_dir in $PATH; do 20312 IFS="$lt_save_ifs" 20313 test -z "$ac_dir" && ac_dir=. 20314 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20315 lt_cv_path_LD="$ac_dir/$ac_prog" 20316 # Check to see if the program is GNU ld. I'd rather use --version, 20317 # but apparently some variants of GNU ld only accept -v. 20318 # Break only if it was the GNU/non-GNU ld that we prefer. 20319 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20320 *GNU* | *'with BFD'*) 20321 test "$with_gnu_ld" != no && break 20322 ;; 20323 *) 20324 test "$with_gnu_ld" != yes && break 20325 ;; 20326 esac 20327 fi 20328 done 20329 IFS="$lt_save_ifs" 20330else 20331 lt_cv_path_LD="$LD" # Let the user override the test with a path. 20332fi 20333fi 20334 20335LD="$lt_cv_path_LD" 20336if test -n "$LD"; then 20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20338$as_echo "$LD" >&6; } 20339else 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20341$as_echo "no" >&6; } 20342fi 20343test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20345$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20346if ${lt_cv_prog_gnu_ld+:} false; then : 20347 $as_echo_n "(cached) " >&6 20348else 20349 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20350case `$LD -v 2>&1 </dev/null` in 20351*GNU* | *'with BFD'*) 20352 lt_cv_prog_gnu_ld=yes 20353 ;; 20354*) 20355 lt_cv_prog_gnu_ld=no 20356 ;; 20357esac 20358fi 20359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20360$as_echo "$lt_cv_prog_gnu_ld" >&6; } 20361with_gnu_ld=$lt_cv_prog_gnu_ld 20362 20363 20364 20365 20366 20367 20368 20369 # Check if GNU C++ uses GNU ld as the underlying linker, since the 20370 # archiving commands below assume that GNU ld is being used. 20371 if test "$with_gnu_ld" = yes; then 20372 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20373 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20374 20375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20377 20378 # If archive_cmds runs LD, not CC, wlarc should be empty 20379 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 20380 # investigate it a little bit more. (MM) 20381 wlarc='${wl}' 20382 20383 # ancient GNU ld didn't support --whole-archive et. al. 20384 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 20385 $GREP 'no-whole-archive' > /dev/null; then 20386 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 20387 else 20388 whole_archive_flag_spec_CXX= 20389 fi 20390 else 20391 with_gnu_ld=no 20392 wlarc= 20393 20394 # A generic and very simple default shared library creation 20395 # command for GNU C++ for the case where it uses the native 20396 # linker, instead of GNU ld. If possible, this setting should 20397 # overridden to take advantage of the native linker features on 20398 # the platform it is being used on. 20399 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20400 fi 20401 20402 # Commands to make compiler produce verbose output that lists 20403 # what "hidden" libraries, object files and flags are used when 20404 # linking a shared library. 20405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20406 20407 else 20408 GXX=no 20409 with_gnu_ld=no 20410 wlarc= 20411 fi 20412 20413 # PORTME: fill in a description of your system's C++ link characteristics 20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20415$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20416 ld_shlibs_CXX=yes 20417 case $host_os in 20418 aix3*) 20419 # FIXME: insert proper C++ library support 20420 ld_shlibs_CXX=no 20421 ;; 20422 aix[4-9]*) 20423 if test "$host_cpu" = ia64; then 20424 # On IA64, the linker does run time linking by default, so we don't 20425 # have to do anything special. 20426 aix_use_runtimelinking=no 20427 exp_sym_flag='-Bexport' 20428 no_entry_flag="" 20429 else 20430 aix_use_runtimelinking=no 20431 20432 # Test if we are trying to use run time linking or normal 20433 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20434 # need to do runtime linking. 20435 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20436 for ld_flag in $LDFLAGS; do 20437 case $ld_flag in 20438 *-brtl*) 20439 aix_use_runtimelinking=yes 20440 break 20441 ;; 20442 esac 20443 done 20444 ;; 20445 esac 20446 20447 exp_sym_flag='-bexport' 20448 no_entry_flag='-bnoentry' 20449 fi 20450 20451 # When large executables or shared objects are built, AIX ld can 20452 # have problems creating the table of contents. If linking a library 20453 # or program results in "error TOC overflow" add -mminimal-toc to 20454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20456 20457 archive_cmds_CXX='' 20458 hardcode_direct_CXX=yes 20459 hardcode_direct_absolute_CXX=yes 20460 hardcode_libdir_separator_CXX=':' 20461 link_all_deplibs_CXX=yes 20462 file_list_spec_CXX='${wl}-f,' 20463 20464 if test "$GXX" = yes; then 20465 case $host_os in aix4.[012]|aix4.[012].*) 20466 # We only want to do this on AIX 4.2 and lower, the check 20467 # below for broken collect2 doesn't work under 4.3+ 20468 collect2name=`${CC} -print-prog-name=collect2` 20469 if test -f "$collect2name" && 20470 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20471 then 20472 # We have reworked collect2 20473 : 20474 else 20475 # We have old collect2 20476 hardcode_direct_CXX=unsupported 20477 # It fails to find uninstalled libraries when the uninstalled 20478 # path is not listed in the libpath. Setting hardcode_minus_L 20479 # to unsupported forces relinking 20480 hardcode_minus_L_CXX=yes 20481 hardcode_libdir_flag_spec_CXX='-L$libdir' 20482 hardcode_libdir_separator_CXX= 20483 fi 20484 esac 20485 shared_flag='-shared' 20486 if test "$aix_use_runtimelinking" = yes; then 20487 shared_flag="$shared_flag "'${wl}-G' 20488 fi 20489 else 20490 # not using gcc 20491 if test "$host_cpu" = ia64; then 20492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20493 # chokes on -Wl,-G. The following line is correct: 20494 shared_flag='-G' 20495 else 20496 if test "$aix_use_runtimelinking" = yes; then 20497 shared_flag='${wl}-G' 20498 else 20499 shared_flag='${wl}-bM:SRE' 20500 fi 20501 fi 20502 fi 20503 20504 export_dynamic_flag_spec_CXX='${wl}-bexpall' 20505 # It seems that -bexpall does not export symbols beginning with 20506 # underscore (_), so it is better to generate a list of symbols to 20507 # export. 20508 always_export_symbols_CXX=yes 20509 if test "$aix_use_runtimelinking" = yes; then 20510 # Warning - without using the other runtime loading flags (-brtl), 20511 # -berok will link without error, but may produce a broken library. 20512 allow_undefined_flag_CXX='-berok' 20513 # Determine the default libpath from the value encoded in an empty 20514 # executable. 20515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20516/* end confdefs.h. */ 20517 20518int 20519main () 20520{ 20521 20522 ; 20523 return 0; 20524} 20525_ACEOF 20526if ac_fn_cxx_try_link "$LINENO"; then : 20527 20528lt_aix_libpath_sed=' 20529 /Import File Strings/,/^$/ { 20530 /^0/ { 20531 s/^0 *\(.*\)$/\1/ 20532 p 20533 } 20534 }' 20535aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20536# Check for a 64-bit object if we didn't find anything. 20537if test -z "$aix_libpath"; then 20538 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20539fi 20540fi 20541rm -f core conftest.err conftest.$ac_objext \ 20542 conftest$ac_exeext conftest.$ac_ext 20543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 20544 20545 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 20546 20547 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 20548 else 20549 if test "$host_cpu" = ia64; then 20550 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 20551 allow_undefined_flag_CXX="-z nodefs" 20552 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 20553 else 20554 # Determine the default libpath from the value encoded in an 20555 # empty executable. 20556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20557/* end confdefs.h. */ 20558 20559int 20560main () 20561{ 20562 20563 ; 20564 return 0; 20565} 20566_ACEOF 20567if ac_fn_cxx_try_link "$LINENO"; then : 20568 20569lt_aix_libpath_sed=' 20570 /Import File Strings/,/^$/ { 20571 /^0/ { 20572 s/^0 *\(.*\)$/\1/ 20573 p 20574 } 20575 }' 20576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20577# Check for a 64-bit object if we didn't find anything. 20578if test -z "$aix_libpath"; then 20579 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20580fi 20581fi 20582rm -f core conftest.err conftest.$ac_objext \ 20583 conftest$ac_exeext conftest.$ac_ext 20584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 20585 20586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 20587 # Warning - without using the other run time loading flags, 20588 # -berok will link without error, but may produce a broken library. 20589 no_undefined_flag_CXX=' ${wl}-bernotok' 20590 allow_undefined_flag_CXX=' ${wl}-berok' 20591 if test "$with_gnu_ld" = yes; then 20592 # We only use this code for GNU lds that support --whole-archive. 20593 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 20594 else 20595 # Exported symbols can be pulled into shared objects from archives 20596 whole_archive_flag_spec_CXX='$convenience' 20597 fi 20598 archive_cmds_need_lc_CXX=yes 20599 # This is similar to how AIX traditionally builds its shared 20600 # libraries. 20601 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 20602 fi 20603 fi 20604 ;; 20605 20606 beos*) 20607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20608 allow_undefined_flag_CXX=unsupported 20609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 20610 # support --undefined. This deserves some investigation. FIXME 20611 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20612 else 20613 ld_shlibs_CXX=no 20614 fi 20615 ;; 20616 20617 chorus*) 20618 case $cc_basename in 20619 *) 20620 # FIXME: insert proper C++ library support 20621 ld_shlibs_CXX=no 20622 ;; 20623 esac 20624 ;; 20625 20626 cygwin* | mingw* | pw32* | cegcc*) 20627 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 20628 # as there is no search path for DLLs. 20629 hardcode_libdir_flag_spec_CXX='-L$libdir' 20630 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 20631 allow_undefined_flag_CXX=unsupported 20632 always_export_symbols_CXX=no 20633 enable_shared_with_static_runtimes_CXX=yes 20634 20635 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 20636 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 20637 # If the export-symbols file already is a .def file (1st line 20638 # is EXPORTS), use it as is; otherwise, prepend... 20639 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 20640 cp $export_symbols $output_objdir/$soname.def; 20641 else 20642 echo EXPORTS > $output_objdir/$soname.def; 20643 cat $export_symbols >> $output_objdir/$soname.def; 20644 fi~ 20645 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 20646 else 20647 ld_shlibs_CXX=no 20648 fi 20649 ;; 20650 darwin* | rhapsody*) 20651 20652 20653 archive_cmds_need_lc_CXX=no 20654 hardcode_direct_CXX=no 20655 hardcode_automatic_CXX=yes 20656 hardcode_shlibpath_var_CXX=unsupported 20657 if test "$lt_cv_ld_force_load" = "yes"; then 20658 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 20659 else 20660 whole_archive_flag_spec_CXX='' 20661 fi 20662 link_all_deplibs_CXX=yes 20663 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 20664 case $cc_basename in 20665 ifort*) _lt_dar_can_shared=yes ;; 20666 *) _lt_dar_can_shared=$GCC ;; 20667 esac 20668 if test "$_lt_dar_can_shared" = "yes"; then 20669 output_verbose_link_cmd=func_echo_all 20670 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 20671 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 20672 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 20673 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 20674 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 20675 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 20676 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 20677 fi 20678 20679 else 20680 ld_shlibs_CXX=no 20681 fi 20682 20683 ;; 20684 20685 dgux*) 20686 case $cc_basename in 20687 ec++*) 20688 # FIXME: insert proper C++ library support 20689 ld_shlibs_CXX=no 20690 ;; 20691 ghcx*) 20692 # Green Hills C++ Compiler 20693 # FIXME: insert proper C++ library support 20694 ld_shlibs_CXX=no 20695 ;; 20696 *) 20697 # FIXME: insert proper C++ library support 20698 ld_shlibs_CXX=no 20699 ;; 20700 esac 20701 ;; 20702 20703 freebsd2.*) 20704 # C++ shared libraries reported to be fairly broken before 20705 # switch to ELF 20706 ld_shlibs_CXX=no 20707 ;; 20708 20709 freebsd-elf*) 20710 archive_cmds_need_lc_CXX=no 20711 ;; 20712 20713 freebsd* | dragonfly*) 20714 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 20715 # conventions 20716 ld_shlibs_CXX=yes 20717 ;; 20718 20719 gnu*) 20720 ;; 20721 20722 haiku*) 20723 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20724 link_all_deplibs_CXX=yes 20725 ;; 20726 20727 hpux9*) 20728 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 20729 hardcode_libdir_separator_CXX=: 20730 export_dynamic_flag_spec_CXX='${wl}-E' 20731 hardcode_direct_CXX=yes 20732 hardcode_minus_L_CXX=yes # Not in the search PATH, 20733 # but as the default 20734 # location of the library. 20735 20736 case $cc_basename in 20737 CC*) 20738 # FIXME: insert proper C++ library support 20739 ld_shlibs_CXX=no 20740 ;; 20741 aCC*) 20742 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 20743 # Commands to make compiler produce verbose output that lists 20744 # what "hidden" libraries, object files and flags are used when 20745 # linking a shared library. 20746 # 20747 # There doesn't appear to be a way to prevent this compiler from 20748 # explicitly linking system object files so we need to strip them 20749 # from the output so that they don't get included in the library 20750 # dependencies. 20751 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 20752 ;; 20753 *) 20754 if test "$GXX" = yes; then 20755 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 20756 else 20757 # FIXME: insert proper C++ library support 20758 ld_shlibs_CXX=no 20759 fi 20760 ;; 20761 esac 20762 ;; 20763 20764 hpux10*|hpux11*) 20765 if test $with_gnu_ld = no; then 20766 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 20767 hardcode_libdir_separator_CXX=: 20768 20769 case $host_cpu in 20770 hppa*64*|ia64*) 20771 ;; 20772 *) 20773 export_dynamic_flag_spec_CXX='${wl}-E' 20774 ;; 20775 esac 20776 fi 20777 case $host_cpu in 20778 hppa*64*|ia64*) 20779 hardcode_direct_CXX=no 20780 hardcode_shlibpath_var_CXX=no 20781 ;; 20782 *) 20783 hardcode_direct_CXX=yes 20784 hardcode_direct_absolute_CXX=yes 20785 hardcode_minus_L_CXX=yes # Not in the search PATH, 20786 # but as the default 20787 # location of the library. 20788 ;; 20789 esac 20790 20791 case $cc_basename in 20792 CC*) 20793 # FIXME: insert proper C++ library support 20794 ld_shlibs_CXX=no 20795 ;; 20796 aCC*) 20797 case $host_cpu in 20798 hppa*64*) 20799 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20800 ;; 20801 ia64*) 20802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20803 ;; 20804 *) 20805 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20806 ;; 20807 esac 20808 # Commands to make compiler produce verbose output that lists 20809 # what "hidden" libraries, object files and flags are used when 20810 # linking a shared library. 20811 # 20812 # There doesn't appear to be a way to prevent this compiler from 20813 # explicitly linking system object files so we need to strip them 20814 # from the output so that they don't get included in the library 20815 # dependencies. 20816 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 20817 ;; 20818 *) 20819 if test "$GXX" = yes; then 20820 if test $with_gnu_ld = no; then 20821 case $host_cpu in 20822 hppa*64*) 20823 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20824 ;; 20825 ia64*) 20826 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20827 ;; 20828 *) 20829 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20830 ;; 20831 esac 20832 fi 20833 else 20834 # FIXME: insert proper C++ library support 20835 ld_shlibs_CXX=no 20836 fi 20837 ;; 20838 esac 20839 ;; 20840 20841 interix[3-9]*) 20842 hardcode_direct_CXX=no 20843 hardcode_shlibpath_var_CXX=no 20844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20845 export_dynamic_flag_spec_CXX='${wl}-E' 20846 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20847 # Instead, shared libraries are loaded at an image base (0x10000000 by 20848 # default) and relocated if they conflict, which is a slow very memory 20849 # consuming and fragmenting process. To avoid this, we pick a random, 20850 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20851 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20852 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 20853 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 20854 ;; 20855 irix5* | irix6*) 20856 case $cc_basename in 20857 CC*) 20858 # SGI C++ 20859 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 20860 20861 # Archives containing C++ object files must be created using 20862 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 20863 # necessary to make sure instantiated templates are included 20864 # in the archive. 20865 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 20866 ;; 20867 *) 20868 if test "$GXX" = yes; then 20869 if test "$with_gnu_ld" = no; then 20870 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 20871 else 20872 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 20873 fi 20874 fi 20875 link_all_deplibs_CXX=yes 20876 ;; 20877 esac 20878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20879 hardcode_libdir_separator_CXX=: 20880 inherit_rpath_CXX=yes 20881 ;; 20882 20883 linux* | k*bsd*-gnu | kopensolaris*-gnu) 20884 case $cc_basename in 20885 KCC*) 20886 # Kuck and Associates, Inc. (KAI) C++ Compiler 20887 20888 # KCC will only create a shared library if the output file 20889 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20890 # to its proper name (with version) after linking. 20891 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 20892 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 20893 # Commands to make compiler produce verbose output that lists 20894 # what "hidden" libraries, object files and flags are used when 20895 # linking a shared library. 20896 # 20897 # There doesn't appear to be a way to prevent this compiler from 20898 # explicitly linking system object files so we need to strip them 20899 # from the output so that they don't get included in the library 20900 # dependencies. 20901 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 20902 20903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20905 20906 # Archives containing C++ object files must be created using 20907 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 20908 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 20909 ;; 20910 icpc* | ecpc* ) 20911 # Intel C++ 20912 with_gnu_ld=yes 20913 # version 8.0 and above of icpc choke on multiply defined symbols 20914 # if we add $predep_objects and $postdep_objects, however 7.1 and 20915 # earlier do not add the objects themselves. 20916 case `$CC -V 2>&1` in 20917 *"Version 7."*) 20918 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20919 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20920 ;; 20921 *) # Version 8.0 or newer 20922 tmp_idyn= 20923 case $host_cpu in 20924 ia64*) tmp_idyn=' -i_dynamic';; 20925 esac 20926 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20927 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20928 ;; 20929 esac 20930 archive_cmds_need_lc_CXX=no 20931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20933 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 20934 ;; 20935 pgCC* | pgcpp*) 20936 # Portland Group C++ compiler 20937 case `$CC -V` in 20938 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 20939 prelink_cmds_CXX='tpldir=Template.dir~ 20940 rm -rf $tpldir~ 20941 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 20942 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 20943 old_archive_cmds_CXX='tpldir=Template.dir~ 20944 rm -rf $tpldir~ 20945 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 20946 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 20947 $RANLIB $oldlib' 20948 archive_cmds_CXX='tpldir=Template.dir~ 20949 rm -rf $tpldir~ 20950 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20951 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 20952 archive_expsym_cmds_CXX='tpldir=Template.dir~ 20953 rm -rf $tpldir~ 20954 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20955 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 20956 ;; 20957 *) # Version 6 and above use weak symbols 20958 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 20959 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 20960 ;; 20961 esac 20962 20963 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 20964 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20965 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 20966 ;; 20967 cxx*) 20968 # Compaq C++ 20969 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20970 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 20971 20972 runpath_var=LD_RUN_PATH 20973 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20974 hardcode_libdir_separator_CXX=: 20975 20976 # Commands to make compiler produce verbose output that lists 20977 # what "hidden" libraries, object files and flags are used when 20978 # linking a shared library. 20979 # 20980 # There doesn't appear to be a way to prevent this compiler from 20981 # explicitly linking system object files so we need to strip them 20982 # from the output so that they don't get included in the library 20983 # dependencies. 20984 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 20985 ;; 20986 xl* | mpixl* | bgxl*) 20987 # IBM XL 8.0 on PPC, with GNU ld 20988 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20990 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20991 if test "x$supports_anon_versioning" = xyes; then 20992 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 20993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20994 echo "local: *; };" >> $output_objdir/$libname.ver~ 20995 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 20996 fi 20997 ;; 20998 *) 20999 case `$CC -V 2>&1 | sed 5q` in 21000 *Sun\ C*) 21001 # Sun C++ 5.9 21002 no_undefined_flag_CXX=' -zdefs' 21003 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21004 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 21005 hardcode_libdir_flag_spec_CXX='-R$libdir' 21006 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 21007 compiler_needs_object_CXX=yes 21008 21009 # Not sure whether something based on 21010 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 21011 # would be better. 21012 output_verbose_link_cmd='func_echo_all' 21013 21014 # Archives containing C++ object files must be created using 21015 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21016 # necessary to make sure instantiated templates are included 21017 # in the archive. 21018 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21019 ;; 21020 esac 21021 ;; 21022 esac 21023 ;; 21024 21025 lynxos*) 21026 # FIXME: insert proper C++ library support 21027 ld_shlibs_CXX=no 21028 ;; 21029 21030 m88k*) 21031 # FIXME: insert proper C++ library support 21032 ld_shlibs_CXX=no 21033 ;; 21034 21035 mvs*) 21036 case $cc_basename in 21037 cxx*) 21038 # FIXME: insert proper C++ library support 21039 ld_shlibs_CXX=no 21040 ;; 21041 *) 21042 # FIXME: insert proper C++ library support 21043 ld_shlibs_CXX=no 21044 ;; 21045 esac 21046 ;; 21047 21048 netbsd*) 21049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21050 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 21051 wlarc= 21052 hardcode_libdir_flag_spec_CXX='-R$libdir' 21053 hardcode_direct_CXX=yes 21054 hardcode_shlibpath_var_CXX=no 21055 fi 21056 # Workaround some broken pre-1.5 toolchains 21057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 21058 ;; 21059 21060 *nto* | *qnx*) 21061 ld_shlibs_CXX=yes 21062 ;; 21063 21064 openbsd2*) 21065 # C++ shared libraries are fairly broken 21066 ld_shlibs_CXX=no 21067 ;; 21068 21069 openbsd*) 21070 if test -f /usr/libexec/ld.so; then 21071 hardcode_direct_CXX=yes 21072 hardcode_shlibpath_var_CXX=no 21073 hardcode_direct_absolute_CXX=yes 21074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21077 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 21078 export_dynamic_flag_spec_CXX='${wl}-E' 21079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 21080 fi 21081 output_verbose_link_cmd=func_echo_all 21082 else 21083 ld_shlibs_CXX=no 21084 fi 21085 ;; 21086 21087 osf3* | osf4* | osf5*) 21088 case $cc_basename in 21089 KCC*) 21090 # Kuck and Associates, Inc. (KAI) C++ Compiler 21091 21092 # KCC will only create a shared library if the output file 21093 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21094 # to its proper name (with version) after linking. 21095 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 21096 21097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21098 hardcode_libdir_separator_CXX=: 21099 21100 # Archives containing C++ object files must be created using 21101 # the KAI C++ compiler. 21102 case $host in 21103 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 21104 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 21105 esac 21106 ;; 21107 RCC*) 21108 # Rational C++ 2.4.1 21109 # FIXME: insert proper C++ library support 21110 ld_shlibs_CXX=no 21111 ;; 21112 cxx*) 21113 case $host in 21114 osf3*) 21115 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 21116 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 21117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21118 ;; 21119 *) 21120 allow_undefined_flag_CXX=' -expect_unresolved \*' 21121 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 21122 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 21123 echo "-hidden">> $lib.exp~ 21124 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 21125 $RM $lib.exp' 21126 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21127 ;; 21128 esac 21129 21130 hardcode_libdir_separator_CXX=: 21131 21132 # Commands to make compiler produce verbose output that lists 21133 # what "hidden" libraries, object files and flags are used when 21134 # linking a shared library. 21135 # 21136 # There doesn't appear to be a way to prevent this compiler from 21137 # explicitly linking system object files so we need to strip them 21138 # from the output so that they don't get included in the library 21139 # dependencies. 21140 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 21141 ;; 21142 *) 21143 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 21144 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 21145 case $host in 21146 osf3*) 21147 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 21148 ;; 21149 *) 21150 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 21151 ;; 21152 esac 21153 21154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21155 hardcode_libdir_separator_CXX=: 21156 21157 # Commands to make compiler produce verbose output that lists 21158 # what "hidden" libraries, object files and flags are used when 21159 # linking a shared library. 21160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21161 21162 else 21163 # FIXME: insert proper C++ library support 21164 ld_shlibs_CXX=no 21165 fi 21166 ;; 21167 esac 21168 ;; 21169 21170 psos*) 21171 # FIXME: insert proper C++ library support 21172 ld_shlibs_CXX=no 21173 ;; 21174 21175 sunos4*) 21176 case $cc_basename in 21177 CC*) 21178 # Sun C++ 4.x 21179 # FIXME: insert proper C++ library support 21180 ld_shlibs_CXX=no 21181 ;; 21182 lcc*) 21183 # Lucid 21184 # FIXME: insert proper C++ library support 21185 ld_shlibs_CXX=no 21186 ;; 21187 *) 21188 # FIXME: insert proper C++ library support 21189 ld_shlibs_CXX=no 21190 ;; 21191 esac 21192 ;; 21193 21194 solaris*) 21195 case $cc_basename in 21196 CC*) 21197 # Sun C++ 4.2, 5.x and Centerline C++ 21198 archive_cmds_need_lc_CXX=yes 21199 no_undefined_flag_CXX=' -zdefs' 21200 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21201 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21202 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21203 21204 hardcode_libdir_flag_spec_CXX='-R$libdir' 21205 hardcode_shlibpath_var_CXX=no 21206 case $host_os in 21207 solaris2.[0-5] | solaris2.[0-5].*) ;; 21208 *) 21209 # The compiler driver will combine and reorder linker options, 21210 # but understands `-z linker_flag'. 21211 # Supported since Solaris 2.6 (maybe 2.5.1?) 21212 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 21213 ;; 21214 esac 21215 link_all_deplibs_CXX=yes 21216 21217 output_verbose_link_cmd='func_echo_all' 21218 21219 # Archives containing C++ object files must be created using 21220 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21221 # necessary to make sure instantiated templates are included 21222 # in the archive. 21223 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21224 ;; 21225 gcx*) 21226 # Green Hills C++ Compiler 21227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21228 21229 # The C++ compiler must be used to create the archive. 21230 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 21231 ;; 21232 *) 21233 # GNU C++ compiler with Solaris linker 21234 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 21235 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 21236 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 21237 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21238 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21239 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21240 21241 # Commands to make compiler produce verbose output that lists 21242 # what "hidden" libraries, object files and flags are used when 21243 # linking a shared library. 21244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21245 else 21246 # g++ 2.7 appears to require `-G' NOT `-shared' on this 21247 # platform. 21248 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21250 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21251 21252 # Commands to make compiler produce verbose output that lists 21253 # what "hidden" libraries, object files and flags are used when 21254 # linking a shared library. 21255 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21256 fi 21257 21258 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 21259 case $host_os in 21260 solaris2.[0-5] | solaris2.[0-5].*) ;; 21261 *) 21262 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 21263 ;; 21264 esac 21265 fi 21266 ;; 21267 esac 21268 ;; 21269 21270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21271 no_undefined_flag_CXX='${wl}-z,text' 21272 archive_cmds_need_lc_CXX=no 21273 hardcode_shlibpath_var_CXX=no 21274 runpath_var='LD_RUN_PATH' 21275 21276 case $cc_basename in 21277 CC*) 21278 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21279 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21280 ;; 21281 *) 21282 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21283 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21284 ;; 21285 esac 21286 ;; 21287 21288 sysv5* | sco3.2v5* | sco5v6*) 21289 # Note: We can NOT use -z defs as we might desire, because we do not 21290 # link with -lc, and that would cause any symbols used from libc to 21291 # always be unresolved, which means just about no library would 21292 # ever link correctly. If we're not using GNU ld we use -z text 21293 # though, which does catch some bad symbols but isn't as heavy-handed 21294 # as -z defs. 21295 no_undefined_flag_CXX='${wl}-z,text' 21296 allow_undefined_flag_CXX='${wl}-z,nodefs' 21297 archive_cmds_need_lc_CXX=no 21298 hardcode_shlibpath_var_CXX=no 21299 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 21300 hardcode_libdir_separator_CXX=':' 21301 link_all_deplibs_CXX=yes 21302 export_dynamic_flag_spec_CXX='${wl}-Bexport' 21303 runpath_var='LD_RUN_PATH' 21304 21305 case $cc_basename in 21306 CC*) 21307 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21308 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21309 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 21310 '"$old_archive_cmds_CXX" 21311 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 21312 '"$reload_cmds_CXX" 21313 ;; 21314 *) 21315 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21316 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21317 ;; 21318 esac 21319 ;; 21320 21321 tandem*) 21322 case $cc_basename in 21323 NCC*) 21324 # NonStop-UX NCC 3.20 21325 # FIXME: insert proper C++ library support 21326 ld_shlibs_CXX=no 21327 ;; 21328 *) 21329 # FIXME: insert proper C++ library support 21330 ld_shlibs_CXX=no 21331 ;; 21332 esac 21333 ;; 21334 21335 vxworks*) 21336 # FIXME: insert proper C++ library support 21337 ld_shlibs_CXX=no 21338 ;; 21339 21340 *) 21341 # FIXME: insert proper C++ library support 21342 ld_shlibs_CXX=no 21343 ;; 21344 esac 21345 21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21347$as_echo "$ld_shlibs_CXX" >&6; } 21348 test "$ld_shlibs_CXX" = no && can_build_shared=no 21349 21350 GCC_CXX="$GXX" 21351 LD_CXX="$LD" 21352 21353 ## CAVEAT EMPTOR: 21354 ## There is no encapsulation within the following macros, do not change 21355 ## the running order or otherwise move them around unless you know exactly 21356 ## what you are doing... 21357 # Dependencies to place before and after the object being linked: 21358predep_objects_CXX= 21359postdep_objects_CXX= 21360predeps_CXX= 21361postdeps_CXX= 21362compiler_lib_search_path_CXX= 21363 21364cat > conftest.$ac_ext <<_LT_EOF 21365class Foo 21366{ 21367public: 21368 Foo (void) { a = 0; } 21369private: 21370 int a; 21371}; 21372_LT_EOF 21373 21374if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21375 (eval $ac_compile) 2>&5 21376 ac_status=$? 21377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21378 test $ac_status = 0; }; then 21379 # Parse the compiler output and extract the necessary 21380 # objects, libraries and library flags. 21381 21382 # Sentinel used to keep track of whether or not we are before 21383 # the conftest object file. 21384 pre_test_object_deps_done=no 21385 21386 for p in `eval "$output_verbose_link_cmd"`; do 21387 case $p in 21388 21389 -L* | -R* | -l*) 21390 # Some compilers place space between "-{L,R}" and the path. 21391 # Remove the space. 21392 if test $p = "-L" || 21393 test $p = "-R"; then 21394 prev=$p 21395 continue 21396 else 21397 prev= 21398 fi 21399 21400 if test "$pre_test_object_deps_done" = no; then 21401 case $p in 21402 -L* | -R*) 21403 # Internal compiler library paths should come after those 21404 # provided the user. The postdeps already come after the 21405 # user supplied libs so there is no need to process them. 21406 if test -z "$compiler_lib_search_path_CXX"; then 21407 compiler_lib_search_path_CXX="${prev}${p}" 21408 else 21409 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 21410 fi 21411 ;; 21412 # The "-l" case would never come before the object being 21413 # linked, so don't bother handling this case. 21414 esac 21415 else 21416 if test -z "$postdeps_CXX"; then 21417 postdeps_CXX="${prev}${p}" 21418 else 21419 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 21420 fi 21421 fi 21422 ;; 21423 21424 *.$objext) 21425 # This assumes that the test object file only shows up 21426 # once in the compiler output. 21427 if test "$p" = "conftest.$objext"; then 21428 pre_test_object_deps_done=yes 21429 continue 21430 fi 21431 21432 if test "$pre_test_object_deps_done" = no; then 21433 if test -z "$predep_objects_CXX"; then 21434 predep_objects_CXX="$p" 21435 else 21436 predep_objects_CXX="$predep_objects_CXX $p" 21437 fi 21438 else 21439 if test -z "$postdep_objects_CXX"; then 21440 postdep_objects_CXX="$p" 21441 else 21442 postdep_objects_CXX="$postdep_objects_CXX $p" 21443 fi 21444 fi 21445 ;; 21446 21447 *) ;; # Ignore the rest. 21448 21449 esac 21450 done 21451 21452 # Clean up. 21453 rm -f a.out a.exe 21454else 21455 echo "libtool.m4: error: problem compiling CXX test program" 21456fi 21457 21458$RM -f confest.$objext 21459 21460# PORTME: override above test on systems where it is broken 21461case $host_os in 21462interix[3-9]*) 21463 # Interix 3.5 installs completely hosed .la files for C++, so rather than 21464 # hack all around it, let's just trust "g++" to DTRT. 21465 predep_objects_CXX= 21466 postdep_objects_CXX= 21467 postdeps_CXX= 21468 ;; 21469 21470linux*) 21471 case `$CC -V 2>&1 | sed 5q` in 21472 *Sun\ C*) 21473 # Sun C++ 5.9 21474 21475 # The more standards-conforming stlport4 library is 21476 # incompatible with the Cstd library. Avoid specifying 21477 # it if it's in CXXFLAGS. Ignore libCrun as 21478 # -library=stlport4 depends on it. 21479 case " $CXX $CXXFLAGS " in 21480 *" -library=stlport4 "*) 21481 solaris_use_stlport4=yes 21482 ;; 21483 esac 21484 21485 if test "$solaris_use_stlport4" != yes; then 21486 postdeps_CXX='-library=Cstd -library=Crun' 21487 fi 21488 ;; 21489 esac 21490 ;; 21491 21492solaris*) 21493 case $cc_basename in 21494 CC*) 21495 # The more standards-conforming stlport4 library is 21496 # incompatible with the Cstd library. Avoid specifying 21497 # it if it's in CXXFLAGS. Ignore libCrun as 21498 # -library=stlport4 depends on it. 21499 case " $CXX $CXXFLAGS " in 21500 *" -library=stlport4 "*) 21501 solaris_use_stlport4=yes 21502 ;; 21503 esac 21504 21505 # Adding this requires a known-good setup of shared libraries for 21506 # Sun compiler versions before 5.6, else PIC objects from an old 21507 # archive will be linked into the output, leading to subtle bugs. 21508 if test "$solaris_use_stlport4" != yes; then 21509 postdeps_CXX='-library=Cstd -library=Crun' 21510 fi 21511 ;; 21512 esac 21513 ;; 21514esac 21515 21516 21517case " $postdeps_CXX " in 21518*" -lc "*) archive_cmds_need_lc_CXX=no ;; 21519esac 21520 compiler_lib_search_dirs_CXX= 21521if test -n "${compiler_lib_search_path_CXX}"; then 21522 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 21523fi 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 lt_prog_compiler_wl_CXX= 21556lt_prog_compiler_pic_CXX= 21557lt_prog_compiler_static_CXX= 21558 21559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 21560$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 21561 21562 # C++ specific cases for pic, static, wl, etc. 21563 if test "$GXX" = yes; then 21564 lt_prog_compiler_wl_CXX='-Wl,' 21565 lt_prog_compiler_static_CXX='-static' 21566 21567 case $host_os in 21568 aix*) 21569 # All AIX code is PIC. 21570 if test "$host_cpu" = ia64; then 21571 # AIX 5 now supports IA64 processor 21572 lt_prog_compiler_static_CXX='-Bstatic' 21573 fi 21574 lt_prog_compiler_pic_CXX='-fPIC' 21575 ;; 21576 21577 amigaos*) 21578 case $host_cpu in 21579 powerpc) 21580 # see comment about AmigaOS4 .so support 21581 lt_prog_compiler_pic_CXX='-fPIC' 21582 ;; 21583 m68k) 21584 # FIXME: we need at least 68020 code to build shared libraries, but 21585 # adding the `-m68020' flag to GCC prevents building anything better, 21586 # like `-m68040'. 21587 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 21588 ;; 21589 esac 21590 ;; 21591 21592 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 21593 # PIC is the default for these OSes. 21594 ;; 21595 mingw* | cygwin* | os2* | pw32* | cegcc*) 21596 # This hack is so that the source file can tell whether it is being 21597 # built for inclusion in a dll (and should export symbols for example). 21598 # Although the cygwin gcc ignores -fPIC, still need this for old-style 21599 # (--disable-auto-import) libraries 21600 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 21601 ;; 21602 darwin* | rhapsody*) 21603 # PIC is the default on this platform 21604 # Common symbols not allowed in MH_DYLIB files 21605 lt_prog_compiler_pic_CXX='-fno-common' 21606 ;; 21607 *djgpp*) 21608 # DJGPP does not support shared libraries at all 21609 lt_prog_compiler_pic_CXX= 21610 ;; 21611 haiku*) 21612 # PIC is the default for Haiku. 21613 # The "-static" flag exists, but is broken. 21614 lt_prog_compiler_static_CXX= 21615 ;; 21616 interix[3-9]*) 21617 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 21618 # Instead, we relocate shared libraries at runtime. 21619 ;; 21620 sysv4*MP*) 21621 if test -d /usr/nec; then 21622 lt_prog_compiler_pic_CXX=-Kconform_pic 21623 fi 21624 ;; 21625 hpux*) 21626 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 21627 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 21628 # sets the default TLS model and affects inlining. 21629 case $host_cpu in 21630 hppa*64*) 21631 ;; 21632 *) 21633 lt_prog_compiler_pic_CXX='-fPIC' 21634 ;; 21635 esac 21636 ;; 21637 *qnx* | *nto*) 21638 # QNX uses GNU C++, but need to define -shared option too, otherwise 21639 # it will coredump. 21640 lt_prog_compiler_pic_CXX='-fPIC -shared' 21641 ;; 21642 *) 21643 lt_prog_compiler_pic_CXX='-fPIC' 21644 ;; 21645 esac 21646 else 21647 case $host_os in 21648 aix[4-9]*) 21649 # All AIX code is PIC. 21650 if test "$host_cpu" = ia64; then 21651 # AIX 5 now supports IA64 processor 21652 lt_prog_compiler_static_CXX='-Bstatic' 21653 else 21654 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 21655 fi 21656 ;; 21657 chorus*) 21658 case $cc_basename in 21659 cxch68*) 21660 # Green Hills C++ Compiler 21661 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 21662 ;; 21663 esac 21664 ;; 21665 dgux*) 21666 case $cc_basename in 21667 ec++*) 21668 lt_prog_compiler_pic_CXX='-KPIC' 21669 ;; 21670 ghcx*) 21671 # Green Hills C++ Compiler 21672 lt_prog_compiler_pic_CXX='-pic' 21673 ;; 21674 *) 21675 ;; 21676 esac 21677 ;; 21678 freebsd* | dragonfly*) 21679 # FreeBSD uses GNU C++ 21680 ;; 21681 hpux9* | hpux10* | hpux11*) 21682 case $cc_basename in 21683 CC*) 21684 lt_prog_compiler_wl_CXX='-Wl,' 21685 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 21686 if test "$host_cpu" != ia64; then 21687 lt_prog_compiler_pic_CXX='+Z' 21688 fi 21689 ;; 21690 aCC*) 21691 lt_prog_compiler_wl_CXX='-Wl,' 21692 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 21693 case $host_cpu in 21694 hppa*64*|ia64*) 21695 # +Z the default 21696 ;; 21697 *) 21698 lt_prog_compiler_pic_CXX='+Z' 21699 ;; 21700 esac 21701 ;; 21702 *) 21703 ;; 21704 esac 21705 ;; 21706 interix*) 21707 # This is c89, which is MS Visual C++ (no shared libs) 21708 # Anyone wants to do a port? 21709 ;; 21710 irix5* | irix6* | nonstopux*) 21711 case $cc_basename in 21712 CC*) 21713 lt_prog_compiler_wl_CXX='-Wl,' 21714 lt_prog_compiler_static_CXX='-non_shared' 21715 # CC pic flag -KPIC is the default. 21716 ;; 21717 *) 21718 ;; 21719 esac 21720 ;; 21721 linux* | k*bsd*-gnu | kopensolaris*-gnu) 21722 case $cc_basename in 21723 KCC*) 21724 # KAI C++ Compiler 21725 lt_prog_compiler_wl_CXX='--backend -Wl,' 21726 lt_prog_compiler_pic_CXX='-fPIC' 21727 ;; 21728 ecpc* ) 21729 # old Intel C++ for x86_64 which still supported -KPIC. 21730 lt_prog_compiler_wl_CXX='-Wl,' 21731 lt_prog_compiler_pic_CXX='-KPIC' 21732 lt_prog_compiler_static_CXX='-static' 21733 ;; 21734 icpc* ) 21735 # Intel C++, used to be incompatible with GCC. 21736 # ICC 10 doesn't accept -KPIC any more. 21737 lt_prog_compiler_wl_CXX='-Wl,' 21738 lt_prog_compiler_pic_CXX='-fPIC' 21739 lt_prog_compiler_static_CXX='-static' 21740 ;; 21741 pgCC* | pgcpp*) 21742 # Portland Group C++ compiler 21743 lt_prog_compiler_wl_CXX='-Wl,' 21744 lt_prog_compiler_pic_CXX='-fpic' 21745 lt_prog_compiler_static_CXX='-Bstatic' 21746 ;; 21747 cxx*) 21748 # Compaq C++ 21749 # Make sure the PIC flag is empty. It appears that all Alpha 21750 # Linux and Compaq Tru64 Unix objects are PIC. 21751 lt_prog_compiler_pic_CXX= 21752 lt_prog_compiler_static_CXX='-non_shared' 21753 ;; 21754 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 21755 # IBM XL 8.0, 9.0 on PPC and BlueGene 21756 lt_prog_compiler_wl_CXX='-Wl,' 21757 lt_prog_compiler_pic_CXX='-qpic' 21758 lt_prog_compiler_static_CXX='-qstaticlink' 21759 ;; 21760 *) 21761 case `$CC -V 2>&1 | sed 5q` in 21762 *Sun\ C*) 21763 # Sun C++ 5.9 21764 lt_prog_compiler_pic_CXX='-KPIC' 21765 lt_prog_compiler_static_CXX='-Bstatic' 21766 lt_prog_compiler_wl_CXX='-Qoption ld ' 21767 ;; 21768 esac 21769 ;; 21770 esac 21771 ;; 21772 lynxos*) 21773 ;; 21774 m88k*) 21775 ;; 21776 mvs*) 21777 case $cc_basename in 21778 cxx*) 21779 lt_prog_compiler_pic_CXX='-W c,exportall' 21780 ;; 21781 *) 21782 ;; 21783 esac 21784 ;; 21785 netbsd*) 21786 ;; 21787 *qnx* | *nto*) 21788 # QNX uses GNU C++, but need to define -shared option too, otherwise 21789 # it will coredump. 21790 lt_prog_compiler_pic_CXX='-fPIC -shared' 21791 ;; 21792 osf3* | osf4* | osf5*) 21793 case $cc_basename in 21794 KCC*) 21795 lt_prog_compiler_wl_CXX='--backend -Wl,' 21796 ;; 21797 RCC*) 21798 # Rational C++ 2.4.1 21799 lt_prog_compiler_pic_CXX='-pic' 21800 ;; 21801 cxx*) 21802 # Digital/Compaq C++ 21803 lt_prog_compiler_wl_CXX='-Wl,' 21804 # Make sure the PIC flag is empty. It appears that all Alpha 21805 # Linux and Compaq Tru64 Unix objects are PIC. 21806 lt_prog_compiler_pic_CXX= 21807 lt_prog_compiler_static_CXX='-non_shared' 21808 ;; 21809 *) 21810 ;; 21811 esac 21812 ;; 21813 psos*) 21814 ;; 21815 solaris*) 21816 case $cc_basename in 21817 CC*) 21818 # Sun C++ 4.2, 5.x and Centerline C++ 21819 lt_prog_compiler_pic_CXX='-KPIC' 21820 lt_prog_compiler_static_CXX='-Bstatic' 21821 lt_prog_compiler_wl_CXX='-Qoption ld ' 21822 ;; 21823 gcx*) 21824 # Green Hills C++ Compiler 21825 lt_prog_compiler_pic_CXX='-PIC' 21826 ;; 21827 *) 21828 ;; 21829 esac 21830 ;; 21831 sunos4*) 21832 case $cc_basename in 21833 CC*) 21834 # Sun C++ 4.x 21835 lt_prog_compiler_pic_CXX='-pic' 21836 lt_prog_compiler_static_CXX='-Bstatic' 21837 ;; 21838 lcc*) 21839 # Lucid 21840 lt_prog_compiler_pic_CXX='-pic' 21841 ;; 21842 *) 21843 ;; 21844 esac 21845 ;; 21846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21847 case $cc_basename in 21848 CC*) 21849 lt_prog_compiler_wl_CXX='-Wl,' 21850 lt_prog_compiler_pic_CXX='-KPIC' 21851 lt_prog_compiler_static_CXX='-Bstatic' 21852 ;; 21853 esac 21854 ;; 21855 tandem*) 21856 case $cc_basename in 21857 NCC*) 21858 # NonStop-UX NCC 3.20 21859 lt_prog_compiler_pic_CXX='-KPIC' 21860 ;; 21861 *) 21862 ;; 21863 esac 21864 ;; 21865 vxworks*) 21866 ;; 21867 *) 21868 lt_prog_compiler_can_build_shared_CXX=no 21869 ;; 21870 esac 21871 fi 21872 21873case $host_os in 21874 # For platforms which do not support PIC, -DPIC is meaningless: 21875 *djgpp*) 21876 lt_prog_compiler_pic_CXX= 21877 ;; 21878 *) 21879 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 21880 ;; 21881esac 21882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 21883$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 21884 21885 21886 21887# 21888# Check to make sure the PIC flag actually works. 21889# 21890if test -n "$lt_prog_compiler_pic_CXX"; then 21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 21892$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 21893if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 21894 $as_echo_n "(cached) " >&6 21895else 21896 lt_cv_prog_compiler_pic_works_CXX=no 21897 ac_outfile=conftest.$ac_objext 21898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21899 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 21900 # Insert the option either (1) after the last *FLAGS variable, or 21901 # (2) before a word containing "conftest.", or (3) at the end. 21902 # Note that $ac_compile itself does not contain backslashes and begins 21903 # with a dollar sign (not a hyphen), so the echo should work correctly. 21904 # The option is referenced via a variable to avoid confusing sed. 21905 lt_compile=`echo "$ac_compile" | $SED \ 21906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21908 -e 's:$: $lt_compiler_flag:'` 21909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21910 (eval "$lt_compile" 2>conftest.err) 21911 ac_status=$? 21912 cat conftest.err >&5 21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21914 if (exit $ac_status) && test -s "$ac_outfile"; then 21915 # The compiler can only warn and ignore the option if not recognized 21916 # So say no if there are warnings other than the usual output. 21917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 21918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21919 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 21920 lt_cv_prog_compiler_pic_works_CXX=yes 21921 fi 21922 fi 21923 $RM conftest* 21924 21925fi 21926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 21927$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 21928 21929if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 21930 case $lt_prog_compiler_pic_CXX in 21931 "" | " "*) ;; 21932 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 21933 esac 21934else 21935 lt_prog_compiler_pic_CXX= 21936 lt_prog_compiler_can_build_shared_CXX=no 21937fi 21938 21939fi 21940 21941 21942 21943# 21944# Check to make sure the static flag actually works. 21945# 21946wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 21947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21948$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 21949if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 21950 $as_echo_n "(cached) " >&6 21951else 21952 lt_cv_prog_compiler_static_works_CXX=no 21953 save_LDFLAGS="$LDFLAGS" 21954 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21955 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21956 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21957 # The linker can only warn and ignore the option if not recognized 21958 # So say no if there are warnings 21959 if test -s conftest.err; then 21960 # Append any errors to the config.log. 21961 cat conftest.err 1>&5 21962 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 21963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21964 if diff conftest.exp conftest.er2 >/dev/null; then 21965 lt_cv_prog_compiler_static_works_CXX=yes 21966 fi 21967 else 21968 lt_cv_prog_compiler_static_works_CXX=yes 21969 fi 21970 fi 21971 $RM -r conftest* 21972 LDFLAGS="$save_LDFLAGS" 21973 21974fi 21975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 21976$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 21977 21978if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 21979 : 21980else 21981 lt_prog_compiler_static_CXX= 21982fi 21983 21984 21985 21986 21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21988$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21989if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21990 $as_echo_n "(cached) " >&6 21991else 21992 lt_cv_prog_compiler_c_o_CXX=no 21993 $RM -r conftest 2>/dev/null 21994 mkdir conftest 21995 cd conftest 21996 mkdir out 21997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21998 21999 lt_compiler_flag="-o out/conftest2.$ac_objext" 22000 # Insert the option either (1) after the last *FLAGS variable, or 22001 # (2) before a word containing "conftest.", or (3) at the end. 22002 # Note that $ac_compile itself does not contain backslashes and begins 22003 # with a dollar sign (not a hyphen), so the echo should work correctly. 22004 lt_compile=`echo "$ac_compile" | $SED \ 22005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22007 -e 's:$: $lt_compiler_flag:'` 22008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22009 (eval "$lt_compile" 2>out/conftest.err) 22010 ac_status=$? 22011 cat out/conftest.err >&5 22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22013 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22014 then 22015 # The compiler can only warn and ignore the option if not recognized 22016 # So say no if there are warnings 22017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22020 lt_cv_prog_compiler_c_o_CXX=yes 22021 fi 22022 fi 22023 chmod u+w . 2>&5 22024 $RM conftest* 22025 # SGI C++ compiler will create directory out/ii_files/ for 22026 # template instantiation 22027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22028 $RM out/* && rmdir out 22029 cd .. 22030 $RM -r conftest 22031 $RM conftest* 22032 22033fi 22034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22035$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22036 22037 22038 22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22040$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22041if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 22042 $as_echo_n "(cached) " >&6 22043else 22044 lt_cv_prog_compiler_c_o_CXX=no 22045 $RM -r conftest 2>/dev/null 22046 mkdir conftest 22047 cd conftest 22048 mkdir out 22049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22050 22051 lt_compiler_flag="-o out/conftest2.$ac_objext" 22052 # Insert the option either (1) after the last *FLAGS variable, or 22053 # (2) before a word containing "conftest.", or (3) at the end. 22054 # Note that $ac_compile itself does not contain backslashes and begins 22055 # with a dollar sign (not a hyphen), so the echo should work correctly. 22056 lt_compile=`echo "$ac_compile" | $SED \ 22057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22059 -e 's:$: $lt_compiler_flag:'` 22060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22061 (eval "$lt_compile" 2>out/conftest.err) 22062 ac_status=$? 22063 cat out/conftest.err >&5 22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22065 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22066 then 22067 # The compiler can only warn and ignore the option if not recognized 22068 # So say no if there are warnings 22069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22072 lt_cv_prog_compiler_c_o_CXX=yes 22073 fi 22074 fi 22075 chmod u+w . 2>&5 22076 $RM conftest* 22077 # SGI C++ compiler will create directory out/ii_files/ for 22078 # template instantiation 22079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22080 $RM out/* && rmdir out 22081 cd .. 22082 $RM -r conftest 22083 $RM conftest* 22084 22085fi 22086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22087$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22088 22089 22090 22091 22092hard_links="nottested" 22093if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 22094 # do not overwrite the value of need_locks provided by the user 22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 22096$as_echo_n "checking if we can lock with hard links... " >&6; } 22097 hard_links=yes 22098 $RM conftest* 22099 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22100 touch conftest.a 22101 ln conftest.a conftest.b 2>&5 || hard_links=no 22102 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 22104$as_echo "$hard_links" >&6; } 22105 if test "$hard_links" = no; then 22106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 22107$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 22108 need_locks=warn 22109 fi 22110else 22111 need_locks=no 22112fi 22113 22114 22115 22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22117$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 22118 22119 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22120 case $host_os in 22121 aix[4-9]*) 22122 # If we're using GNU nm, then we don't want the "-C" option. 22123 # -C means demangle to AIX nm, but means don't demangle with GNU nm 22124 # Also, AIX nm treats weak defined symbols like other global defined 22125 # symbols, whereas GNU nm marks them as "W". 22126 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 22127 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 22128 else 22129 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 22130 fi 22131 ;; 22132 pw32*) 22133 export_symbols_cmds_CXX="$ltdll_cmds" 22134 ;; 22135 cygwin* | mingw* | cegcc*) 22136 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 22137 ;; 22138 *) 22139 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22140 ;; 22141 esac 22142 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 22143 22144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 22145$as_echo "$ld_shlibs_CXX" >&6; } 22146test "$ld_shlibs_CXX" = no && can_build_shared=no 22147 22148with_gnu_ld_CXX=$with_gnu_ld 22149 22150 22151 22152 22153 22154 22155# 22156# Do we need to explicitly link libc? 22157# 22158case "x$archive_cmds_need_lc_CXX" in 22159x|xyes) 22160 # Assume -lc should be added 22161 archive_cmds_need_lc_CXX=yes 22162 22163 if test "$enable_shared" = yes && test "$GCC" = yes; then 22164 case $archive_cmds_CXX in 22165 *'~'*) 22166 # FIXME: we may have to deal with multi-command sequences. 22167 ;; 22168 '$CC '*) 22169 # Test whether the compiler implicitly links with -lc since on some 22170 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22171 # to ld, don't add -lc before -lgcc. 22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 22173$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 22174if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 22175 $as_echo_n "(cached) " >&6 22176else 22177 $RM conftest* 22178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22179 22180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 22181 (eval $ac_compile) 2>&5 22182 ac_status=$? 22183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22184 test $ac_status = 0; } 2>conftest.err; then 22185 soname=conftest 22186 lib=conftest 22187 libobjs=conftest.$ac_objext 22188 deplibs= 22189 wl=$lt_prog_compiler_wl_CXX 22190 pic_flag=$lt_prog_compiler_pic_CXX 22191 compiler_flags=-v 22192 linker_flags=-v 22193 verstring= 22194 output_objdir=. 22195 libname=conftest 22196 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 22197 allow_undefined_flag_CXX= 22198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 22199 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 22200 ac_status=$? 22201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22202 test $ac_status = 0; } 22203 then 22204 lt_cv_archive_cmds_need_lc_CXX=no 22205 else 22206 lt_cv_archive_cmds_need_lc_CXX=yes 22207 fi 22208 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 22209 else 22210 cat conftest.err 1>&5 22211 fi 22212 $RM conftest* 22213 22214fi 22215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 22216$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 22217 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 22218 ;; 22219 esac 22220 fi 22221 ;; 22222esac 22223 22224 22225 22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 22288$as_echo_n "checking dynamic linker characteristics... " >&6; } 22289 22290library_names_spec= 22291libname_spec='lib$name' 22292soname_spec= 22293shrext_cmds=".so" 22294postinstall_cmds= 22295postuninstall_cmds= 22296finish_cmds= 22297finish_eval= 22298shlibpath_var= 22299shlibpath_overrides_runpath=unknown 22300version_type=none 22301dynamic_linker="$host_os ld.so" 22302sys_lib_dlsearch_path_spec="/lib /usr/lib" 22303need_lib_prefix=unknown 22304hardcode_into_libs=no 22305 22306# when you set need_version to no, make sure it does not cause -set_version 22307# flags to be left without arguments 22308need_version=unknown 22309 22310case $host_os in 22311aix3*) 22312 version_type=linux 22313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 22314 shlibpath_var=LIBPATH 22315 22316 # AIX 3 has no versioning support, so we append a major version to the name. 22317 soname_spec='${libname}${release}${shared_ext}$major' 22318 ;; 22319 22320aix[4-9]*) 22321 version_type=linux 22322 need_lib_prefix=no 22323 need_version=no 22324 hardcode_into_libs=yes 22325 if test "$host_cpu" = ia64; then 22326 # AIX 5 supports IA64 22327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 22328 shlibpath_var=LD_LIBRARY_PATH 22329 else 22330 # With GCC up to 2.95.x, collect2 would create an import file 22331 # for dependence libraries. The import file would start with 22332 # the line `#! .'. This would cause the generated library to 22333 # depend on `.', always an invalid library. This was fixed in 22334 # development snapshots of GCC prior to 3.0. 22335 case $host_os in 22336 aix4 | aix4.[01] | aix4.[01].*) 22337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22338 echo ' yes ' 22339 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 22340 : 22341 else 22342 can_build_shared=no 22343 fi 22344 ;; 22345 esac 22346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 22347 # soname into executable. Probably we can add versioning support to 22348 # collect2, so additional links can be useful in future. 22349 if test "$aix_use_runtimelinking" = yes; then 22350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22351 # instead of lib<name>.a to let people know that these are not 22352 # typical AIX shared libraries. 22353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22354 else 22355 # We preserve .a as extension for shared libraries through AIX4.2 22356 # and later when we are not doing run time linking. 22357 library_names_spec='${libname}${release}.a $libname.a' 22358 soname_spec='${libname}${release}${shared_ext}$major' 22359 fi 22360 shlibpath_var=LIBPATH 22361 fi 22362 ;; 22363 22364amigaos*) 22365 case $host_cpu in 22366 powerpc) 22367 # Since July 2007 AmigaOS4 officially supports .so libraries. 22368 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 22369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22370 ;; 22371 m68k) 22372 library_names_spec='$libname.ixlibrary $libname.a' 22373 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22374 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 22375 ;; 22376 esac 22377 ;; 22378 22379beos*) 22380 library_names_spec='${libname}${shared_ext}' 22381 dynamic_linker="$host_os ld.so" 22382 shlibpath_var=LIBRARY_PATH 22383 ;; 22384 22385bsdi[45]*) 22386 version_type=linux 22387 need_version=no 22388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22389 soname_spec='${libname}${release}${shared_ext}$major' 22390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22391 shlibpath_var=LD_LIBRARY_PATH 22392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22394 # the default ld.so.conf also contains /usr/contrib/lib and 22395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22396 # libtool to hard-code these into programs 22397 ;; 22398 22399cygwin* | mingw* | pw32* | cegcc*) 22400 version_type=windows 22401 shrext_cmds=".dll" 22402 need_version=no 22403 need_lib_prefix=no 22404 22405 case $GCC,$host_os in 22406 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 22407 library_names_spec='$libname.dll.a' 22408 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22409 postinstall_cmds='base_file=`basename \${file}`~ 22410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 22411 dldir=$destdir/`dirname \$dlpath`~ 22412 test -d \$dldir || mkdir -p \$dldir~ 22413 $install_prog $dir/$dlname \$dldir/$dlname~ 22414 chmod a+x \$dldir/$dlname~ 22415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22417 fi' 22418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22419 dlpath=$dir/\$dldll~ 22420 $RM \$dlpath' 22421 shlibpath_overrides_runpath=yes 22422 22423 case $host_os in 22424 cygwin*) 22425 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22427 22428 ;; 22429 mingw* | cegcc*) 22430 # MinGW DLLs use traditional 'lib' prefix 22431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22432 ;; 22433 pw32*) 22434 # pw32 DLLs use 'pw' prefix rather than 'lib' 22435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22436 ;; 22437 esac 22438 ;; 22439 22440 *) 22441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 22442 ;; 22443 esac 22444 dynamic_linker='Win32 ld.exe' 22445 # FIXME: first we should search . and the directory the executable is in 22446 shlibpath_var=PATH 22447 ;; 22448 22449darwin* | rhapsody*) 22450 dynamic_linker="$host_os dyld" 22451 version_type=darwin 22452 need_lib_prefix=no 22453 need_version=no 22454 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 22455 soname_spec='${libname}${release}${major}$shared_ext' 22456 shlibpath_overrides_runpath=yes 22457 shlibpath_var=DYLD_LIBRARY_PATH 22458 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22459 22460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22461 ;; 22462 22463dgux*) 22464 version_type=linux 22465 need_lib_prefix=no 22466 need_version=no 22467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 22468 soname_spec='${libname}${release}${shared_ext}$major' 22469 shlibpath_var=LD_LIBRARY_PATH 22470 ;; 22471 22472freebsd* | dragonfly*) 22473 # DragonFly does not have aout. When/if they implement a new 22474 # versioning mechanism, adjust this. 22475 if test -x /usr/bin/objformat; then 22476 objformat=`/usr/bin/objformat` 22477 else 22478 case $host_os in 22479 freebsd[23].*) objformat=aout ;; 22480 *) objformat=elf ;; 22481 esac 22482 fi 22483 version_type=freebsd-$objformat 22484 case $version_type in 22485 freebsd-elf*) 22486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22487 need_version=no 22488 need_lib_prefix=no 22489 ;; 22490 freebsd-*) 22491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 22492 need_version=yes 22493 ;; 22494 esac 22495 shlibpath_var=LD_LIBRARY_PATH 22496 case $host_os in 22497 freebsd2.*) 22498 shlibpath_overrides_runpath=yes 22499 ;; 22500 freebsd3.[01]* | freebsdelf3.[01]*) 22501 shlibpath_overrides_runpath=yes 22502 hardcode_into_libs=yes 22503 ;; 22504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 22505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 22506 shlibpath_overrides_runpath=no 22507 hardcode_into_libs=yes 22508 ;; 22509 *) # from 4.6 on, and DragonFly 22510 shlibpath_overrides_runpath=yes 22511 hardcode_into_libs=yes 22512 ;; 22513 esac 22514 ;; 22515 22516haiku*) 22517 version_type=linux 22518 need_lib_prefix=no 22519 need_version=no 22520 dynamic_linker="$host_os runtime_loader" 22521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 22522 soname_spec='${libname}${release}${shared_ext}$major' 22523 shlibpath_var=LIBRARY_PATH 22524 shlibpath_overrides_runpath=yes 22525 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 22526 hardcode_into_libs=yes 22527 ;; 22528 22529hpux9* | hpux10* | hpux11*) 22530 # Give a soname corresponding to the major version so that dld.sl refuses to 22531 # link against other versions. 22532 version_type=sunos 22533 need_lib_prefix=no 22534 need_version=no 22535 case $host_cpu in 22536 ia64*) 22537 shrext_cmds='.so' 22538 hardcode_into_libs=yes 22539 dynamic_linker="$host_os dld.so" 22540 shlibpath_var=LD_LIBRARY_PATH 22541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22543 soname_spec='${libname}${release}${shared_ext}$major' 22544 if test "X$HPUX_IA64_MODE" = X32; then 22545 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22546 else 22547 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22548 fi 22549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22550 ;; 22551 hppa*64*) 22552 shrext_cmds='.sl' 22553 hardcode_into_libs=yes 22554 dynamic_linker="$host_os dld.sl" 22555 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22558 soname_spec='${libname}${release}${shared_ext}$major' 22559 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22561 ;; 22562 *) 22563 shrext_cmds='.sl' 22564 dynamic_linker="$host_os dld.sl" 22565 shlibpath_var=SHLIB_PATH 22566 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22568 soname_spec='${libname}${release}${shared_ext}$major' 22569 ;; 22570 esac 22571 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 22572 postinstall_cmds='chmod 555 $lib' 22573 # or fails outright, so override atomically: 22574 install_override_mode=555 22575 ;; 22576 22577interix[3-9]*) 22578 version_type=linux 22579 need_lib_prefix=no 22580 need_version=no 22581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22582 soname_spec='${libname}${release}${shared_ext}$major' 22583 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 22584 shlibpath_var=LD_LIBRARY_PATH 22585 shlibpath_overrides_runpath=no 22586 hardcode_into_libs=yes 22587 ;; 22588 22589irix5* | irix6* | nonstopux*) 22590 case $host_os in 22591 nonstopux*) version_type=nonstopux ;; 22592 *) 22593 if test "$lt_cv_prog_gnu_ld" = yes; then 22594 version_type=linux 22595 else 22596 version_type=irix 22597 fi ;; 22598 esac 22599 need_lib_prefix=no 22600 need_version=no 22601 soname_spec='${libname}${release}${shared_ext}$major' 22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 22603 case $host_os in 22604 irix5* | nonstopux*) 22605 libsuff= shlibsuff= 22606 ;; 22607 *) 22608 case $LD in # libtool.m4 will add one of these switches to LD 22609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22610 libsuff= shlibsuff= libmagic=32-bit;; 22611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22612 libsuff=32 shlibsuff=N32 libmagic=N32;; 22613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22614 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22615 *) libsuff= shlibsuff= libmagic=never-match;; 22616 esac 22617 ;; 22618 esac 22619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22620 shlibpath_overrides_runpath=no 22621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 22622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 22623 hardcode_into_libs=yes 22624 ;; 22625 22626# No shared lib support for Linux oldld, aout, or coff. 22627linux*oldld* | linux*aout* | linux*coff*) 22628 dynamic_linker=no 22629 ;; 22630 22631# This must be Linux ELF. 22632 22633# uclinux* changes (here and below) have been submitted to the libtool 22634# project, but have not yet been accepted: they are GCC-local changes 22635# for the time being. (See 22636# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 22637linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 22638 version_type=linux 22639 need_lib_prefix=no 22640 need_version=no 22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22642 soname_spec='${libname}${release}${shared_ext}$major' 22643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22644 shlibpath_var=LD_LIBRARY_PATH 22645 shlibpath_overrides_runpath=no 22646 22647 # Some binutils ld are patched to set DT_RUNPATH 22648 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 22649 $as_echo_n "(cached) " >&6 22650else 22651 lt_cv_shlibpath_overrides_runpath=no 22652 save_LDFLAGS=$LDFLAGS 22653 save_libdir=$libdir 22654 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 22655 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 22656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22657/* end confdefs.h. */ 22658 22659int 22660main () 22661{ 22662 22663 ; 22664 return 0; 22665} 22666_ACEOF 22667if ac_fn_cxx_try_link "$LINENO"; then : 22668 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 22669 lt_cv_shlibpath_overrides_runpath=yes 22670fi 22671fi 22672rm -f core conftest.err conftest.$ac_objext \ 22673 conftest$ac_exeext conftest.$ac_ext 22674 LDFLAGS=$save_LDFLAGS 22675 libdir=$save_libdir 22676 22677fi 22678 22679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 22680 22681 # This implies no fast_install, which is unacceptable. 22682 # Some rework will be needed to allow for fast_install 22683 # before this can be enabled. 22684 hardcode_into_libs=yes 22685 22686 # Append ld.so.conf contents to the search path 22687 if test -f /etc/ld.so.conf; then 22688 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 22689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22690 fi 22691 22692 # We used to test for /lib/ld.so.1 and disable shared libraries on 22693 # powerpc, because MkLinux only supported shared libraries with the 22694 # GNU dynamic linker. Since this was broken with cross compilers, 22695 # most powerpc-linux boxes support dynamic linking these days and 22696 # people can always --disable-shared, the test was removed, and we 22697 # assume the GNU/Linux dynamic linker is in use. 22698 dynamic_linker='GNU/Linux ld.so' 22699 ;; 22700 22701netbsd*) 22702 version_type=sunos 22703 need_lib_prefix=no 22704 need_version=no 22705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22708 dynamic_linker='NetBSD (a.out) ld.so' 22709 else 22710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22711 soname_spec='${libname}${release}${shared_ext}$major' 22712 dynamic_linker='NetBSD ld.elf_so' 22713 fi 22714 shlibpath_var=LD_LIBRARY_PATH 22715 shlibpath_overrides_runpath=yes 22716 hardcode_into_libs=yes 22717 ;; 22718 22719newsos6) 22720 version_type=linux 22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22722 shlibpath_var=LD_LIBRARY_PATH 22723 shlibpath_overrides_runpath=yes 22724 ;; 22725 22726*nto* | *qnx*) 22727 version_type=qnx 22728 need_lib_prefix=no 22729 need_version=no 22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22731 soname_spec='${libname}${release}${shared_ext}$major' 22732 shlibpath_var=LD_LIBRARY_PATH 22733 shlibpath_overrides_runpath=no 22734 hardcode_into_libs=yes 22735 dynamic_linker='ldqnx.so' 22736 ;; 22737 22738openbsd*) 22739 version_type=sunos 22740 sys_lib_dlsearch_path_spec="/usr/lib" 22741 need_lib_prefix=no 22742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 22743 case $host_os in 22744 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 22745 *) need_version=no ;; 22746 esac 22747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22749 shlibpath_var=LD_LIBRARY_PATH 22750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 22751 case $host_os in 22752 openbsd2.[89] | openbsd2.[89].*) 22753 shlibpath_overrides_runpath=no 22754 ;; 22755 *) 22756 shlibpath_overrides_runpath=yes 22757 ;; 22758 esac 22759 else 22760 shlibpath_overrides_runpath=yes 22761 fi 22762 ;; 22763 22764os2*) 22765 libname_spec='$name' 22766 shrext_cmds=".dll" 22767 need_lib_prefix=no 22768 library_names_spec='$libname${shared_ext} $libname.a' 22769 dynamic_linker='OS/2 ld.exe' 22770 shlibpath_var=LIBPATH 22771 ;; 22772 22773osf3* | osf4* | osf5*) 22774 version_type=osf 22775 need_lib_prefix=no 22776 need_version=no 22777 soname_spec='${libname}${release}${shared_ext}$major' 22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22779 shlibpath_var=LD_LIBRARY_PATH 22780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 22782 ;; 22783 22784rdos*) 22785 dynamic_linker=no 22786 ;; 22787 22788solaris*) 22789 version_type=linux 22790 need_lib_prefix=no 22791 need_version=no 22792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22793 soname_spec='${libname}${release}${shared_ext}$major' 22794 shlibpath_var=LD_LIBRARY_PATH 22795 shlibpath_overrides_runpath=yes 22796 hardcode_into_libs=yes 22797 # ldd complains unless libraries are executable 22798 postinstall_cmds='chmod +x $lib' 22799 ;; 22800 22801sunos4*) 22802 version_type=sunos 22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22805 shlibpath_var=LD_LIBRARY_PATH 22806 shlibpath_overrides_runpath=yes 22807 if test "$with_gnu_ld" = yes; then 22808 need_lib_prefix=no 22809 fi 22810 need_version=yes 22811 ;; 22812 22813sysv4 | sysv4.3*) 22814 version_type=linux 22815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22816 soname_spec='${libname}${release}${shared_ext}$major' 22817 shlibpath_var=LD_LIBRARY_PATH 22818 case $host_vendor in 22819 sni) 22820 shlibpath_overrides_runpath=no 22821 need_lib_prefix=no 22822 runpath_var=LD_RUN_PATH 22823 ;; 22824 siemens) 22825 need_lib_prefix=no 22826 ;; 22827 motorola) 22828 need_lib_prefix=no 22829 need_version=no 22830 shlibpath_overrides_runpath=no 22831 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22832 ;; 22833 esac 22834 ;; 22835 22836sysv4*MP*) 22837 if test -d /usr/nec ;then 22838 version_type=linux 22839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 22840 soname_spec='$libname${shared_ext}.$major' 22841 shlibpath_var=LD_LIBRARY_PATH 22842 fi 22843 ;; 22844 22845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22846 version_type=freebsd-elf 22847 need_lib_prefix=no 22848 need_version=no 22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22850 soname_spec='${libname}${release}${shared_ext}$major' 22851 shlibpath_var=LD_LIBRARY_PATH 22852 shlibpath_overrides_runpath=yes 22853 hardcode_into_libs=yes 22854 if test "$with_gnu_ld" = yes; then 22855 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22856 else 22857 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22858 case $host_os in 22859 sco3.2v5*) 22860 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22861 ;; 22862 esac 22863 fi 22864 sys_lib_dlsearch_path_spec='/usr/lib' 22865 ;; 22866 22867tpf*) 22868 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22869 version_type=linux 22870 need_lib_prefix=no 22871 need_version=no 22872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22873 shlibpath_var=LD_LIBRARY_PATH 22874 shlibpath_overrides_runpath=no 22875 hardcode_into_libs=yes 22876 ;; 22877 22878uts4*) 22879 version_type=linux 22880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22881 soname_spec='${libname}${release}${shared_ext}$major' 22882 shlibpath_var=LD_LIBRARY_PATH 22883 ;; 22884 22885*) 22886 dynamic_linker=no 22887 ;; 22888esac 22889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22890$as_echo "$dynamic_linker" >&6; } 22891test "$dynamic_linker" = no && can_build_shared=no 22892 22893variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22894if test "$GCC" = yes; then 22895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22896fi 22897 22898if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 22899 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 22900fi 22901if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 22902 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 22903fi 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22943$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22944hardcode_action_CXX= 22945if test -n "$hardcode_libdir_flag_spec_CXX" || 22946 test -n "$runpath_var_CXX" || 22947 test "X$hardcode_automatic_CXX" = "Xyes" ; then 22948 22949 # We can hardcode non-existent directories. 22950 if test "$hardcode_direct_CXX" != no && 22951 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22952 # have to relink, otherwise we might link with an installed library 22953 # when we should be linking with a yet-to-be-installed one 22954 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 22955 test "$hardcode_minus_L_CXX" != no; then 22956 # Linking always hardcodes the temporary library directory. 22957 hardcode_action_CXX=relink 22958 else 22959 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22960 hardcode_action_CXX=immediate 22961 fi 22962else 22963 # We cannot hardcode anything, or else we can only hardcode existing 22964 # directories. 22965 hardcode_action_CXX=unsupported 22966fi 22967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 22968$as_echo "$hardcode_action_CXX" >&6; } 22969 22970if test "$hardcode_action_CXX" = relink || 22971 test "$inherit_rpath_CXX" = yes; then 22972 # Fast installation is not supported 22973 enable_fast_install=no 22974elif test "$shlibpath_overrides_runpath" = yes || 22975 test "$enable_shared" = no; then 22976 # Fast installation is not necessary 22977 enable_fast_install=needless 22978fi 22979 22980 22981 22982 22983 22984 22985 22986 fi # test -n "$compiler" 22987 22988 CC=$lt_save_CC 22989 LDCXX=$LD 22990 LD=$lt_save_LD 22991 GCC=$lt_save_GCC 22992 with_gnu_ld=$lt_save_with_gnu_ld 22993 lt_cv_path_LDCXX=$lt_cv_path_LD 22994 lt_cv_path_LD=$lt_save_path_LD 22995 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 22996 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 22997fi # test "$_lt_caught_CXX_error" != yes 22998 22999ac_ext=cpp 23000ac_cpp='$CXXCPP $CPPFLAGS' 23001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020# Only expand once: 23021 23022 23023 23024 23025 23026# Identify the assembler which will work hand-in-glove with the newly 23027# built GCC, so that we can examine its features. This is the assembler 23028# which will be driven by the driver program. 23029# 23030# If build != host, and we aren't building gas in-tree, we identify a 23031# build->target assembler and hope that it will have the same features 23032# as the host->target assembler we'll be using. 23033gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas 23034 23035if ${gcc_cv_as+:} false; then : 23036 23037else 23038 23039if test -x "$DEFAULT_ASSEMBLER"; then 23040 gcc_cv_as="$DEFAULT_ASSEMBLER" 23041elif test -f $gcc_cv_as_gas_srcdir/configure.ac \ 23042 && test -f ../gas/Makefile \ 23043 && test x$build = x$host; then 23044 gcc_cv_as=../gas/as-new$build_exeext 23045elif test -x as$build_exeext; then 23046 # Build using assembler in the current directory. 23047 gcc_cv_as=./as$build_exeext 23048elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then 23049 gcc_cv_as="$AS_FOR_TARGET" 23050else 23051 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args. 23052set dummy $AS_FOR_TARGET; ac_word=$2 23053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23054$as_echo_n "checking for $ac_word... " >&6; } 23055if ${ac_cv_path_gcc_cv_as+:} false; then : 23056 $as_echo_n "(cached) " >&6 23057else 23058 case $gcc_cv_as in 23059 [\\/]* | ?:[\\/]*) 23060 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 23061 ;; 23062 *) 23063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23064for as_dir in $PATH 23065do 23066 IFS=$as_save_IFS 23067 test -z "$as_dir" && as_dir=. 23068 for ac_exec_ext in '' $ac_executable_extensions; do 23069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23070 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 23071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23072 break 2 23073 fi 23074done 23075 done 23076IFS=$as_save_IFS 23077 23078 ;; 23079esac 23080fi 23081gcc_cv_as=$ac_cv_path_gcc_cv_as 23082if test -n "$gcc_cv_as"; then 23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5 23084$as_echo "$gcc_cv_as" >&6; } 23085else 23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23087$as_echo "no" >&6; } 23088fi 23089 23090 23091fi 23092fi 23093 23094ORIGINAL_AS_FOR_TARGET=$gcc_cv_as 23095 23096case "$ORIGINAL_AS_FOR_TARGET" in 23097 ./as | ./as$build_exeext) ;; 23098 *) ac_config_files="$ac_config_files as:exec-tool.in" 23099 ;; 23100esac 23101 23102default_ld= 23103# Check whether --enable-ld was given. 23104if test "${enable_ld+set}" = set; then : 23105 enableval=$enable_ld; case "${enableval}" in 23106 no) 23107 default_ld=ld.gold 23108 ;; 23109 esac 23110fi 23111 23112 23113install_gold_as_default=no 23114# Check whether --enable-gold was given. 23115if test "${enable_gold+set}" = set; then : 23116 enableval=$enable_gold; case "${enableval}" in 23117 default) 23118 install_gold_as_default=yes 23119 ;; 23120 yes) 23121 if test x${default_ld} != x; then 23122 install_gold_as_default=yes 23123 fi 23124 ;; 23125 no) 23126 ;; 23127 *) 23128 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 23129 ;; 23130 esac 23131fi 23132 23133 23134# Identify the linker which will work hand-in-glove with the newly 23135# built GCC, so that we can examine its features. This is the linker 23136# which will be driven by the driver program. 23137# 23138# If build != host, and we aren't building gas in-tree, we identify a 23139# build->target linker and hope that it will have the same features 23140# as the host->target linker we'll be using. 23141gcc_cv_gld_major_version= 23142gcc_cv_gld_minor_version= 23143gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld 23144gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold 23145gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 23146 23147if ${gcc_cv_ld+:} false; then : 23148 23149else 23150 23151if test -x "$DEFAULT_LINKER"; then 23152 gcc_cv_ld="$DEFAULT_LINKER" 23153elif test $install_gold_as_default = yes \ 23154 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \ 23155 && test -f ../gold/Makefile \ 23156 && test x$build = x$host; then 23157 gcc_cv_ld=../gold/ld-new$build_exeext 23158elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \ 23159 && test -f ../ld/Makefile \ 23160 && test x$build = x$host; then 23161 gcc_cv_ld=../ld/ld-new$build_exeext 23162elif test -x collect-ld$build_exeext; then 23163 # Build using linker in the current directory. 23164 gcc_cv_ld=./collect-ld$build_exeext 23165elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then 23166 gcc_cv_ld="$LD_FOR_TARGET" 23167else 23168 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args. 23169set dummy $LD_FOR_TARGET; ac_word=$2 23170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23171$as_echo_n "checking for $ac_word... " >&6; } 23172if ${ac_cv_path_gcc_cv_ld+:} false; then : 23173 $as_echo_n "(cached) " >&6 23174else 23175 case $gcc_cv_ld in 23176 [\\/]* | ?:[\\/]*) 23177 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 23178 ;; 23179 *) 23180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23181for as_dir in $PATH 23182do 23183 IFS=$as_save_IFS 23184 test -z "$as_dir" && as_dir=. 23185 for ac_exec_ext in '' $ac_executable_extensions; do 23186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23187 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 23188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23189 break 2 23190 fi 23191done 23192 done 23193IFS=$as_save_IFS 23194 23195 ;; 23196esac 23197fi 23198gcc_cv_ld=$ac_cv_path_gcc_cv_ld 23199if test -n "$gcc_cv_ld"; then 23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5 23201$as_echo "$gcc_cv_ld" >&6; } 23202else 23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23204$as_echo "no" >&6; } 23205fi 23206 23207 23208fi 23209fi 23210 23211ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld 23212PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"` 23213# if the PLUGIN_LD is set ld-new, just have it as ld 23214# as that is the installed named. 23215if test x$PLUGIN_LD_SUFFIX = xld-new \ 23216 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then 23217 PLUGIN_LD_SUFFIX=ld 23218fi 23219 23220# Check whether --with-plugin-ld was given. 23221if test "${with_plugin_ld+set}" = set; then : 23222 withval=$with_plugin_ld; if test x"$withval" != x; then 23223 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval" 23224 PLUGIN_LD_SUFFIX="$withval" 23225 fi 23226fi 23227 23228 23229 23230cat >>confdefs.h <<_ACEOF 23231#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX" 23232_ACEOF 23233 23234 23235# Check to see if we are using gold instead of ld 23236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5 23237$as_echo_n "checking whether we are using gold... " >&6; } 23238ld_is_gold=no 23239if test x$gcc_cv_ld != x; then 23240 if $gcc_cv_ld --version 2>/dev/null | sed 1q \ 23241 | grep "GNU gold" > /dev/null; then 23242 ld_is_gold=yes 23243 fi 23244fi 23245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5 23246$as_echo "$ld_is_gold" >&6; } 23247 23248# Check to see if we are using mold instead of ld 23249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5 23250$as_echo_n "checking whether we are using mold... " >&6; } 23251ld_is_mold=no 23252if test x$gcc_cv_ld != x; then 23253 if $gcc_cv_ld --version 2>/dev/null | sed 1q \ 23254 | grep "mold" > /dev/null; then 23255 ld_is_mold=yes 23256 fi 23257fi 23258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5 23259$as_echo "$ld_is_mold" >&6; } 23260 23261 23262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5 23263$as_echo_n "checking gold linker with split stack support as non default... " >&6; } 23264# Check to see if default ld is not gold, but gold is 23265# available and has support for split stack. If gcc was configured 23266# with gold then no checking is done. 23267# 23268if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then 23269 23270# For platforms other than powerpc64*, enable as appropriate. 23271 23272 gold_non_default=no 23273 ld_gold=`which ${gcc_cv_ld}.gold` 23274# Make sure this gold has minimal split stack support 23275 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then 23276 ld_vers=`$ld_gold --version | sed 1q` 23277 gold_vers=`echo $ld_vers | sed -n \ 23278 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 23279 case $target in 23280# check that the gold version contains the complete split stack support 23281# on powerpc64 big and little endian 23282 powerpc64*-*-*) 23283 case "$gold_vers" in 23284 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes 23285 ;; 23286 *) gold_non_default=no 23287 ;; 23288 esac 23289 ;; 23290 esac 23291 fi 23292 if test $gold_non_default = yes; then 23293 23294$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h 23295 23296 fi 23297fi 23298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5 23299$as_echo "$gold_non_default" >&6; } 23300 23301ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld 23302 23303case "$ORIGINAL_LD_FOR_TARGET" in 23304 ./collect-ld | ./collect-ld$build_exeext) ;; 23305 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in" 23306 ;; 23307esac 23308 23309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5 23310$as_echo_n "checking what linker to use... " >&6; } 23311if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \ 23312 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then 23313 # Single tree build which includes ld. We want to prefer it 23314 # over whatever linker top-level may have detected, since 23315 # we'll use what we're building after installation anyway. 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5 23317$as_echo "newly built ld" >&6; } 23318 in_tree_ld=yes 23319 in_tree_ld_is_elf=no 23320 if (grep 'EMUL = .*elf' ../ld/Makefile \ 23321 || grep 'EMUL = .*linux' ../ld/Makefile \ 23322 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then 23323 in_tree_ld_is_elf=yes 23324 elif test "$ld_is_gold" = yes; then 23325 in_tree_ld_is_elf=yes 23326 fi 23327 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in 23328 do 23329 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f` 23330 if test x$gcc_cv_gld_version != x; then 23331 break 23332 fi 23333 done 23334 case $gcc_cv_gld_version in 23335 VERSION=[0-9]*) ;; 23336 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;; 23337 esac 23338 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"` 23339 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 23340 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext 23341 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext 23342else 23343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5 23344$as_echo "$gcc_cv_ld" >&6; } 23345 in_tree_ld=no 23346 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext` 23347 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext 23348 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext 23349fi 23350 23351 23352 23353 23354# Figure out what nm we will be using. 23355gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils 23356if ${gcc_cv_nm+:} false; then : 23357 23358else 23359 23360if test -f $gcc_cv_binutils_srcdir/configure.ac \ 23361 && test -f ../binutils/Makefile \ 23362 && test x$build = x$host; then 23363 gcc_cv_nm=../binutils/nm-new$build_exeext 23364elif test -x nm$build_exeext; then 23365 gcc_cv_nm=./nm$build_exeext 23366elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then 23367 gcc_cv_nm="$NM_FOR_TARGET" 23368else 23369 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args. 23370set dummy $NM_FOR_TARGET; ac_word=$2 23371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23372$as_echo_n "checking for $ac_word... " >&6; } 23373if ${ac_cv_path_gcc_cv_nm+:} false; then : 23374 $as_echo_n "(cached) " >&6 23375else 23376 case $gcc_cv_nm in 23377 [\\/]* | ?:[\\/]*) 23378 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 23379 ;; 23380 *) 23381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23382for as_dir in $PATH 23383do 23384 IFS=$as_save_IFS 23385 test -z "$as_dir" && as_dir=. 23386 for ac_exec_ext in '' $ac_executable_extensions; do 23387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23388 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 23389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23390 break 2 23391 fi 23392done 23393 done 23394IFS=$as_save_IFS 23395 23396 ;; 23397esac 23398fi 23399gcc_cv_nm=$ac_cv_path_gcc_cv_nm 23400if test -n "$gcc_cv_nm"; then 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5 23402$as_echo "$gcc_cv_nm" >&6; } 23403else 23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23405$as_echo "no" >&6; } 23406fi 23407 23408 23409fi 23410fi 23411 23412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5 23413$as_echo_n "checking what nm to use... " >&6; } 23414if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then 23415 # Single tree build which includes binutils. 23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5 23417$as_echo "newly built nm" >&6; } 23418 in_tree_nm=yes 23419else 23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5 23421$as_echo "$gcc_cv_nm" >&6; } 23422 in_tree_nm=no 23423fi 23424 23425ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm 23426 23427case "$ORIGINAL_NM_FOR_TARGET" in 23428 ./nm | ./nm$build_exeext) ;; 23429 *) ac_config_files="$ac_config_files nm:exec-tool.in" 23430 ;; 23431esac 23432 23433 23434# Figure out what objdump we will be using. 23435if ${gcc_cv_objdump+:} false; then : 23436 23437else 23438 23439if test -f $gcc_cv_binutils_srcdir/configure.ac \ 23440 && test -f ../binutils/Makefile \ 23441 && test x$build = x$host; then 23442 # Single tree build which includes binutils. 23443 gcc_cv_objdump=../binutils/objdump$build_exeext 23444elif test -x objdump$build_exeext; then 23445 gcc_cv_objdump=./objdump$build_exeext 23446elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then 23447 gcc_cv_objdump="$OBJDUMP_FOR_TARGET" 23448else 23449 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args. 23450set dummy $OBJDUMP_FOR_TARGET; ac_word=$2 23451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23452$as_echo_n "checking for $ac_word... " >&6; } 23453if ${ac_cv_path_gcc_cv_objdump+:} false; then : 23454 $as_echo_n "(cached) " >&6 23455else 23456 case $gcc_cv_objdump in 23457 [\\/]* | ?:[\\/]*) 23458 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 23459 ;; 23460 *) 23461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23462for as_dir in $PATH 23463do 23464 IFS=$as_save_IFS 23465 test -z "$as_dir" && as_dir=. 23466 for ac_exec_ext in '' $ac_executable_extensions; do 23467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23468 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 23469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23470 break 2 23471 fi 23472done 23473 done 23474IFS=$as_save_IFS 23475 23476 ;; 23477esac 23478fi 23479gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 23480if test -n "$gcc_cv_objdump"; then 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5 23482$as_echo "$gcc_cv_objdump" >&6; } 23483else 23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23485$as_echo "no" >&6; } 23486fi 23487 23488 23489fi 23490fi 23491 23492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5 23493$as_echo_n "checking what objdump to use... " >&6; } 23494if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then 23495 # Single tree build which includes binutils. 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5 23497$as_echo "newly built objdump" >&6; } 23498elif test x$gcc_cv_objdump = x; then 23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23500$as_echo "not found" >&6; } 23501else 23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5 23503$as_echo "$gcc_cv_objdump" >&6; } 23504fi 23505 23506# Figure out what readelf we will be using. 23507if ${gcc_cv_readelf+:} false; then : 23508 23509else 23510 23511if test -f $gcc_cv_binutils_srcdir/configure.ac \ 23512 && test -f ../binutils/Makefile \ 23513 && test x$build = x$host; then 23514 # Single tree build which includes binutils. 23515 gcc_cv_readelf=../binutils/readelf$build_exeext 23516elif test -x readelf$build_exeext; then 23517 gcc_cv_readelf=./readelf$build_exeext 23518elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then 23519 gcc_cv_readelf="$READELF_FOR_TARGET" 23520else 23521 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args. 23522set dummy $READELF_FOR_TARGET; ac_word=$2 23523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23524$as_echo_n "checking for $ac_word... " >&6; } 23525if ${ac_cv_path_gcc_cv_readelf+:} false; then : 23526 $as_echo_n "(cached) " >&6 23527else 23528 case $gcc_cv_readelf in 23529 [\\/]* | ?:[\\/]*) 23530 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path. 23531 ;; 23532 *) 23533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23534for as_dir in $PATH 23535do 23536 IFS=$as_save_IFS 23537 test -z "$as_dir" && as_dir=. 23538 for ac_exec_ext in '' $ac_executable_extensions; do 23539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23540 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext" 23541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23542 break 2 23543 fi 23544done 23545 done 23546IFS=$as_save_IFS 23547 23548 ;; 23549esac 23550fi 23551gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf 23552if test -n "$gcc_cv_readelf"; then 23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5 23554$as_echo "$gcc_cv_readelf" >&6; } 23555else 23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23557$as_echo "no" >&6; } 23558fi 23559 23560 23561fi 23562fi 23563 23564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5 23565$as_echo_n "checking what readelf to use... " >&6; } 23566if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then 23567 # Single tree build which includes binutils. 23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5 23569$as_echo "newly built readelf" >&6; } 23570elif test x$gcc_cv_readelf = x; then 23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23572$as_echo "not found" >&6; } 23573else 23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5 23575$as_echo "$gcc_cv_readelf" >&6; } 23576fi 23577 23578# Figure out what otool we will be using. 23579if ${gcc_cv_otool+:} false; then : 23580 23581else 23582 23583if test -x otool$build_exeext; then 23584 gcc_cv_otool=./otool$build_exeext 23585elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then 23586 gcc_cv_otool="$OTOOL_FOR_TARGET" 23587else 23588 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args. 23589set dummy $OTOOL_FOR_TARGET; ac_word=$2 23590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23591$as_echo_n "checking for $ac_word... " >&6; } 23592if ${ac_cv_path_gcc_cv_otool+:} false; then : 23593 $as_echo_n "(cached) " >&6 23594else 23595 case $gcc_cv_otool in 23596 [\\/]* | ?:[\\/]*) 23597 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path. 23598 ;; 23599 *) 23600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23601for as_dir in $PATH 23602do 23603 IFS=$as_save_IFS 23604 test -z "$as_dir" && as_dir=. 23605 for ac_exec_ext in '' $ac_executable_extensions; do 23606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23607 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext" 23608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23609 break 2 23610 fi 23611done 23612 done 23613IFS=$as_save_IFS 23614 23615 ;; 23616esac 23617fi 23618gcc_cv_otool=$ac_cv_path_gcc_cv_otool 23619if test -n "$gcc_cv_otool"; then 23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5 23621$as_echo "$gcc_cv_otool" >&6; } 23622else 23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23624$as_echo "no" >&6; } 23625fi 23626 23627 23628fi 23629fi 23630 23631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5 23632$as_echo_n "checking what otool to use... " >&6; } 23633if test x$gcc_cv_otool = x; then 23634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23635$as_echo "not found" >&6; } 23636else 23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5 23638$as_echo "$gcc_cv_otool" >&6; } 23639fi 23640 23641# Figure out the dsymutil we will use. 23642if ${gcc_cv_dsymutil+:} false; then : 23643 23644else 23645 23646if test -x "$DEFAULT_DSYMUTIL"; then 23647 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL" 23648elif test -x dsymutil$build_exeext; then 23649 gcc_cv_dsymutil=./dsymutil$build_exeext 23650elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then 23651 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET 23652elif ( set dummy $DSYMUTIL; test -x $2 ); then 23653 gcc_cv_dsymutil=$DSYMUTIL 23654else 23655 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args. 23656set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2 23657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23658$as_echo_n "checking for $ac_word... " >&6; } 23659if ${ac_cv_path_gcc_cv_dsymutil+:} false; then : 23660 $as_echo_n "(cached) " >&6 23661else 23662 case $gcc_cv_dsymutil in 23663 [\\/]* | ?:[\\/]*) 23664 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path. 23665 ;; 23666 *) 23667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23668for as_dir in $PATH 23669do 23670 IFS=$as_save_IFS 23671 test -z "$as_dir" && as_dir=. 23672 for ac_exec_ext in '' $ac_executable_extensions; do 23673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23674 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext" 23675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23676 break 2 23677 fi 23678done 23679 done 23680IFS=$as_save_IFS 23681 23682 ;; 23683esac 23684fi 23685gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil 23686if test -n "$gcc_cv_dsymutil"; then 23687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5 23688$as_echo "$gcc_cv_dsymutil" >&6; } 23689else 23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23691$as_echo "no" >&6; } 23692fi 23693 23694 23695fi 23696fi 23697 23698ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil 23699 23700case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in 23701 ./dsymutil | ./dsymutil$build_exeext) ;; 23702 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in" 23703 ;; 23704esac 23705 23706# Figure out what assembler alignment features are present. 23707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5 23708$as_echo_n "checking assembler flags... " >&6; } 23709if ${gcc_cv_as_flags+:} false; then : 23710 $as_echo_n "(cached) " >&6 23711else 23712 case "$target" in 23713 i[34567]86-*-linux*) 23714 gcc_cv_as_flags=--32 23715 ;; 23716 x86_64-*-linux-gnux32) 23717 gcc_cv_as_flags=--x32 23718 ;; 23719 x86_64-*-linux*) 23720 gcc_cv_as_flags=--64 23721 ;; 23722 powerpc*-*-darwin*) 23723 gcc_cv_as_flags="-arch ppc" 23724 ;; 23725 *) 23726 gcc_cv_as_flags=" " 23727 ;; 23728 esac 23729fi 23730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5 23731$as_echo "$gcc_cv_as_flags" >&6; } 23732 23733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5 23734$as_echo_n "checking assembler for .balign and .p2align... " >&6; } 23735if ${gcc_cv_as_balign_and_p2align+:} false; then : 23736 $as_echo_n "(cached) " >&6 23737else 23738 gcc_cv_as_balign_and_p2align=no 23739 if test x$gcc_cv_as != x; then 23740 $as_echo '.balign 4 23741.p2align 2' > conftest.s 23742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23744 (eval $ac_try) 2>&5 23745 ac_status=$? 23746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23747 test $ac_status = 0; }; } 23748 then 23749 gcc_cv_as_balign_and_p2align=yes 23750 else 23751 echo "configure: failed program was" >&5 23752 cat conftest.s >&5 23753 fi 23754 rm -f conftest.o conftest.s 23755 fi 23756fi 23757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5 23758$as_echo "$gcc_cv_as_balign_and_p2align" >&6; } 23759if test $gcc_cv_as_balign_and_p2align = yes; then 23760 23761$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h 23762 23763fi 23764 23765 23766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5 23767$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; } 23768if ${gcc_cv_as_max_skip_p2align+:} false; then : 23769 $as_echo_n "(cached) " >&6 23770else 23771 gcc_cv_as_max_skip_p2align=no 23772 if test x$gcc_cv_as != x; then 23773 $as_echo '.p2align 4,,7' > conftest.s 23774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23776 (eval $ac_try) 2>&5 23777 ac_status=$? 23778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23779 test $ac_status = 0; }; } 23780 then 23781 gcc_cv_as_max_skip_p2align=yes 23782 else 23783 echo "configure: failed program was" >&5 23784 cat conftest.s >&5 23785 fi 23786 rm -f conftest.o conftest.s 23787 fi 23788fi 23789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5 23790$as_echo "$gcc_cv_as_max_skip_p2align" >&6; } 23791if test $gcc_cv_as_max_skip_p2align = yes; then 23792 23793$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h 23794 23795fi 23796 23797 23798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5 23799$as_echo_n "checking assembler for .literal16... " >&6; } 23800if ${gcc_cv_as_literal16+:} false; then : 23801 $as_echo_n "(cached) " >&6 23802else 23803 gcc_cv_as_literal16=no 23804 if test x$gcc_cv_as != x; then 23805 $as_echo '.literal16' > conftest.s 23806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23808 (eval $ac_try) 2>&5 23809 ac_status=$? 23810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23811 test $ac_status = 0; }; } 23812 then 23813 gcc_cv_as_literal16=yes 23814 else 23815 echo "configure: failed program was" >&5 23816 cat conftest.s >&5 23817 fi 23818 rm -f conftest.o conftest.s 23819 fi 23820fi 23821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5 23822$as_echo "$gcc_cv_as_literal16" >&6; } 23823if test $gcc_cv_as_literal16 = yes; then 23824 23825$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h 23826 23827fi 23828 23829 23830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5 23831$as_echo_n "checking assembler for working .subsection -1... " >&6; } 23832if ${gcc_cv_as_subsection_m1+:} false; then : 23833 $as_echo_n "(cached) " >&6 23834else 23835 gcc_cv_as_subsection_m1=no 23836 if test x$gcc_cv_as != x; then 23837 $as_echo 'conftest_label1: .word 0 23838.subsection -1 23839conftest_label2: .word 0 23840.previous' > conftest.s 23841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23843 (eval $ac_try) 2>&5 23844 ac_status=$? 23845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23846 test $ac_status = 0; }; } 23847 then 23848 if test x$gcc_cv_nm != x; then 23849 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 23850 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 23851 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1 23852 then : 23853 else gcc_cv_as_subsection_m1=yes 23854 fi 23855 rm -f conftest.nm1 conftest.nm2 23856 fi 23857 else 23858 echo "configure: failed program was" >&5 23859 cat conftest.s >&5 23860 fi 23861 rm -f conftest.o conftest.s 23862 fi 23863fi 23864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5 23865$as_echo "$gcc_cv_as_subsection_m1" >&6; } 23866if test $gcc_cv_as_subsection_m1 = yes; then 23867 23868$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h 23869 23870fi 23871 23872 23873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5 23874$as_echo_n "checking assembler for .weak... " >&6; } 23875if ${gcc_cv_as_weak+:} false; then : 23876 $as_echo_n "(cached) " >&6 23877else 23878 gcc_cv_as_weak=no 23879 if test x$gcc_cv_as != x; then 23880 $as_echo ' .weak foobar' > conftest.s 23881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23883 (eval $ac_try) 2>&5 23884 ac_status=$? 23885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23886 test $ac_status = 0; }; } 23887 then 23888 gcc_cv_as_weak=yes 23889 else 23890 echo "configure: failed program was" >&5 23891 cat conftest.s >&5 23892 fi 23893 rm -f conftest.o conftest.s 23894 fi 23895fi 23896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5 23897$as_echo "$gcc_cv_as_weak" >&6; } 23898if test $gcc_cv_as_weak = yes; then 23899 23900$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h 23901 23902fi 23903 23904 23905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5 23906$as_echo_n "checking assembler for .weakref... " >&6; } 23907if ${gcc_cv_as_weakref+:} false; then : 23908 $as_echo_n "(cached) " >&6 23909else 23910 gcc_cv_as_weakref=no 23911 if test x$gcc_cv_as != x; then 23912 $as_echo ' .weakref foobar, barfnot' > conftest.s 23913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23915 (eval $ac_try) 2>&5 23916 ac_status=$? 23917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23918 test $ac_status = 0; }; } 23919 then 23920 gcc_cv_as_weakref=yes 23921 else 23922 echo "configure: failed program was" >&5 23923 cat conftest.s >&5 23924 fi 23925 rm -f conftest.o conftest.s 23926 fi 23927fi 23928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5 23929$as_echo "$gcc_cv_as_weakref" >&6; } 23930if test $gcc_cv_as_weakref = yes; then 23931 23932$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h 23933 23934fi 23935 23936 23937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5 23938$as_echo_n "checking assembler for .nsubspa comdat... " >&6; } 23939if ${gcc_cv_as_nsubspa_comdat+:} false; then : 23940 $as_echo_n "(cached) " >&6 23941else 23942 gcc_cv_as_nsubspa_comdat=no 23943 if test x$gcc_cv_as != x; then 23944 $as_echo ' .SPACE $TEXT$ 23945 .NSUBSPA $CODE$,COMDAT' > conftest.s 23946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23948 (eval $ac_try) 2>&5 23949 ac_status=$? 23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23951 test $ac_status = 0; }; } 23952 then 23953 gcc_cv_as_nsubspa_comdat=yes 23954 else 23955 echo "configure: failed program was" >&5 23956 cat conftest.s >&5 23957 fi 23958 rm -f conftest.o conftest.s 23959 fi 23960fi 23961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5 23962$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; } 23963if test $gcc_cv_as_nsubspa_comdat = yes; then 23964 23965$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h 23966 23967fi 23968 23969 23970# .hidden needs to be supported in both the assembler and the linker, 23971# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN. 23972# This is irritatingly difficult to feature test for; we have to check the 23973# date string after the version number. If we've got an in-tree 23974# ld, we don't know its patchlevel version, so we set the baseline at 2.13 23975# to be safe. 23976# The gcc_GAS_CHECK_FEATURE call just sets a cache variable. 23977case "${target}" in 23978 *-*-aix*) 23979 conftest_s=' .globl foobar,hidden' 23980 ;; 23981 *) 23982 conftest_s=' .hidden foobar 23983foobar:' 23984 ;; 23985esac 23986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5 23987$as_echo_n "checking assembler for .hidden... " >&6; } 23988if ${gcc_cv_as_hidden+:} false; then : 23989 $as_echo_n "(cached) " >&6 23990else 23991 gcc_cv_as_hidden=no 23992 if test x$gcc_cv_as != x; then 23993 $as_echo "$conftest_s" > conftest.s 23994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23996 (eval $ac_try) 2>&5 23997 ac_status=$? 23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23999 test $ac_status = 0; }; } 24000 then 24001 gcc_cv_as_hidden=yes 24002 else 24003 echo "configure: failed program was" >&5 24004 cat conftest.s >&5 24005 fi 24006 rm -f conftest.o conftest.s 24007 fi 24008fi 24009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5 24010$as_echo "$gcc_cv_as_hidden" >&6; } 24011 24012 24013case "${target}" in 24014 *-*-darwin*) 24015 # Darwin as has some visibility support, though with a different syntax. 24016 gcc_cv_as_hidden=yes 24017 ;; 24018esac 24019 24020# gnu_indirect_function type is an extension proposed at 24021# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime 24022# selection of function implementation 24023# Check whether --enable-gnu-indirect-function was given. 24024if test "${enable_gnu_indirect_function+set}" = set; then : 24025 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in 24026 yes | no) ;; 24027 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function. 24028Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 24029 esac 24030else 24031 enable_gnu_indirect_function="$default_gnu_indirect_function" 24032fi 24033 24034 24035case "${target}" in 24036 riscv*-*-linux*) 24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5 24038$as_echo_n "checking linker ifunc IRELATIVE support... " >&6; } 24039 cat > conftest.s <<EOF 24040 .text 24041 .type foo_resolver, @function 24042foo_resolver: 24043 ret 24044 .size foo_resolver, .-foo_resolver 24045 24046 .globl foo 24047 .type foo, %gnu_indirect_function 24048 .set foo, foo_resolver 24049 24050 .globl bar 24051 .type bar, @function 24052bar: 24053 call foo 24054 ret 24055 .size bar, .-bar 24056EOF 24057 if test x$gcc_cv_as != x \ 24058 && test x$gcc_cv_ld != x \ 24059 && test x$gcc_cv_readelf != x \ 24060 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 24061 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 24062 && $gcc_cv_readelf --relocs --wide conftest \ 24063 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then 24064 enable_gnu_indirect_function=yes 24065 fi 24066 rm -f conftest conftest.o conftest.s 24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5 24068$as_echo "$enable_gnu_indirect_function" >&6; } 24069 ;; 24070esac 24071 24072gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi` 24073 24074cat >>confdefs.h <<_ACEOF 24075#define HAVE_GNU_INDIRECT_FUNCTION $gif 24076_ACEOF 24077 24078 24079 24080if test $in_tree_ld != yes ; then 24081 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` 24082 if echo "$ld_ver" | grep GNU > /dev/null; then 24083 if test x"$ld_is_gold" = xyes; then 24084 # GNU gold --version looks like this: 24085 # 24086 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11 24087 # 24088 # We extract the binutils version which is more familiar and specific 24089 # than the gold version. 24090 ld_vers=`echo $ld_ver | sed -n \ 24091 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 24092 else 24093 # GNU ld --version looks like this: 24094 # 24095 # GNU ld (GNU Binutils) 2.21.51.20110225 24096 ld_vers=`echo $ld_ver | sed -n \ 24097 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 24098 fi 24099 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'` 24100 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 24101 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 24102 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 24103 else 24104 case "${target}" in 24105 *-*-solaris2*) 24106 # Solaris 2 ld -V output looks like this for a regular version: 24107 # 24108 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699 24109 # 24110 # but test versions add stuff at the end: 24111 # 24112 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10 24113 # 24114 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version 24115 # numbers can be used in ld.so.1 feature checks even if a different 24116 # linker is configured. 24117 ld_ver=`$gcc_cv_ld -V 2>&1` 24118 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then 24119 ld_vers=`echo $ld_ver | sed -n \ 24120 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'` 24121 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 24122 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 24123 fi 24124 ;; 24125 esac 24126 fi 24127fi 24128 24129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5 24130$as_echo_n "checking linker for .hidden support... " >&6; } 24131if ${gcc_cv_ld_hidden+:} false; then : 24132 $as_echo_n "(cached) " >&6 24133else 24134 if test $in_tree_ld = yes ; then 24135 gcc_cv_ld_hidden=no 24136 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \ 24137 && test $in_tree_ld_is_elf = yes; then 24138 gcc_cv_ld_hidden=yes 24139 fi 24140else 24141 gcc_cv_ld_hidden=yes 24142 if test x"$ld_is_gold" = xyes; then 24143 : 24144 elif test x"$ld_is_mold" = xyes; then 24145 : 24146 elif echo "$ld_ver" | grep GNU > /dev/null; then 24147 if test 0"$ld_date" -lt 20020404; then 24148 if test -n "$ld_date"; then 24149 # If there was date string, but was earlier than 2002-04-04, fail 24150 gcc_cv_ld_hidden=no 24151 elif test -z "$ld_vers"; then 24152 # If there was no date string nor ld version number, something is wrong 24153 gcc_cv_ld_hidden=no 24154 else 24155 test -z "$ld_vers_patch" && ld_vers_patch=0 24156 if test "$ld_vers_major" -lt 2; then 24157 gcc_cv_ld_hidden=no 24158 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then 24159 gcc_cv_ld_hidden="no" 24160 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then 24161 gcc_cv_ld_hidden=no 24162 fi 24163 fi 24164 fi 24165 else 24166 case "${target}" in 24167 *-*-aix[789]*) 24168 gcc_cv_ld_hidden=yes 24169 ;; 24170 *-*-darwin*) 24171 # Darwin ld has some visibility support. 24172 gcc_cv_ld_hidden=yes 24173 ;; 24174 hppa64*-*-hpux* | ia64*-*-hpux*) 24175 gcc_cv_ld_hidden=yes 24176 ;; 24177 *-*-solaris2*) 24178 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but 24179 # .symbolic was only added in Solaris 9 12/02. 24180 gcc_cv_ld_hidden=yes 24181 ;; 24182 *) 24183 gcc_cv_ld_hidden=no 24184 ;; 24185 esac 24186 fi 24187fi 24188fi 24189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5 24190$as_echo "$gcc_cv_ld_hidden" >&6; } 24191libgcc_visibility=no 24192 24193 24194if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then 24195 libgcc_visibility=yes 24196 24197$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h 24198 24199fi 24200 24201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5 24202$as_echo_n "checking linker read-only and read-write section mixing... " >&6; } 24203gcc_cv_ld_ro_rw_mix=unknown 24204if test $in_tree_ld = yes ; then 24205 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \ 24206 && test $in_tree_ld_is_elf = yes; then 24207 gcc_cv_ld_ro_rw_mix=read-write 24208 fi 24209elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 24210 echo '.section myfoosect, "a"' > conftest1.s 24211 echo '.section myfoosect, "aw"' > conftest2.s 24212 echo '.byte 1' >> conftest2.s 24213 echo '.section myfoosect, "a"' > conftest3.s 24214 echo '.byte 0' >> conftest3.s 24215 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \ 24216 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \ 24217 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \ 24218 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \ 24219 conftest2.o conftest3.o > /dev/null 2>&1; then 24220 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \ 24221 | sed -e '/myfoosect/!d' -e N` 24222 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then 24223 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then 24224 gcc_cv_ld_ro_rw_mix=read-only 24225 else 24226 gcc_cv_ld_ro_rw_mix=read-write 24227 fi 24228 fi 24229 fi 24230 rm -f conftest.* conftest[123].* 24231fi 24232if test x$gcc_cv_ld_ro_rw_mix = xread-write; then 24233 24234$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h 24235 24236fi 24237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5 24238$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; } 24239 24240# Check whether --enable-initfini-array was given. 24241if test "${enable_initfini_array+set}" = set; then : 24242 enableval=$enable_initfini_array; 24243else 24244 24245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 24246$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } 24247if ${gcc_cv_initfini_array+:} false; then : 24248 $as_echo_n "(cached) " >&6 24249else 24250 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then 24251 case "${target}" in 24252 ia64-*) 24253 if test "$cross_compiling" = yes; then : 24254 gcc_cv_initfini_array=no 24255else 24256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24257/* end confdefs.h. */ 24258 24259#ifndef __ELF__ 24260#error Not an ELF OS 24261#endif 24262/* We turn on .preinit_array/.init_array/.fini_array support for ia64 24263 if it can be used. */ 24264static int x = -1; 24265int main (void) { return x; } 24266int foo (void) { x = 0; } 24267int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; 24268 24269_ACEOF 24270if ac_fn_cxx_try_run "$LINENO"; then : 24271 gcc_cv_initfini_array=yes 24272else 24273 gcc_cv_initfini_array=no 24274fi 24275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24276 conftest.$ac_objext conftest.beam conftest.$ac_ext 24277fi 24278;; 24279 *) 24280 gcc_cv_initfini_array=no 24281 if test $in_tree_ld = yes ; then 24282 if test "$gcc_cv_gld_major_version" -eq 2 \ 24283 -a "$gcc_cv_gld_minor_version" -ge 22 \ 24284 -o "$gcc_cv_gld_major_version" -gt 2 \ 24285 && test $in_tree_ld_is_elf = yes; then 24286 gcc_cv_initfini_array=yes 24287 fi 24288 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 24289 case $target:$gas in 24290 *:yes) 24291 sh_flags='"a"' 24292 sh_type='%progbits' 24293 ;; 24294 i?86-*-solaris2*:no | x86_64-*-solaris2*:no) 24295 sh_flags='"a"' 24296 sh_type='@progbits' 24297 ;; 24298 sparc*-*-solaris2*:no) 24299 sh_flags='#alloc' 24300 sh_type='#progbits' 24301 sh_quote='"' 24302 ;; 24303 esac 24304 case "$target:$gnu_ld" in 24305 *:yes) 24306 cat > conftest.s <<EOF 24307.section .dtors,$sh_flags,$sh_type 24308.balign 4 24309.byte 'A', 'A', 'A', 'A' 24310.section .ctors,$sh_flags,$sh_type 24311.balign 4 24312.byte 'B', 'B', 'B', 'B' 24313.section .fini_array.65530,$sh_flags,$sh_type 24314.balign 4 24315.byte 'C', 'C', 'C', 'C' 24316.section .init_array.65530,$sh_flags,$sh_type 24317.balign 4 24318.byte 'D', 'D', 'D', 'D' 24319.section .dtors.64528,$sh_flags,$sh_type 24320.balign 4 24321.byte 'E', 'E', 'E', 'E' 24322.section .ctors.64528,$sh_flags,$sh_type 24323.balign 4 24324.byte 'F', 'F', 'F', 'F' 24325.section .fini_array.01005,$sh_flags,$sh_type 24326.balign 4 24327.byte 'G', 'G', 'G', 'G' 24328.section .init_array.01005,$sh_flags,$sh_type 24329.balign 4 24330.byte 'H', 'H', 'H', 'H' 24331.text 24332.globl _start 24333_start: 24334EOF 24335 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 24336 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 24337 && $gcc_cv_objdump -s -j .init_array conftest \ 24338 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \ 24339 && $gcc_cv_objdump -s -j .fini_array conftest \ 24340 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then 24341 gcc_cv_initfini_array=yes 24342 fi 24343 ;; 24344 *-*-solaris2*:no) 24345 # When Solaris ld added constructor priority support, it was 24346 # decided to only handle .init_array.N/.fini_array.N since 24347 # there was no need for backwards compatibility with 24348 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate 24349 # sections with correct execution order resp. to 24350 # .init_array/.fini_array, while gld merges them into 24351 # .init_array/.fini_array. 24352 cat > conftest.s <<EOF 24353.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type 24354.align 4 24355.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C' 24356.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type 24357.align 4 24358.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D' 24359.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type 24360.align 4 24361.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G' 24362.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type 24363.align 4 24364.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H' 24365.text 24366.globl _start 24367_start: 24368EOF 24369 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 24370 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 24371 && $gcc_cv_objdump -s -j .init_array conftest \ 24372 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \ 24373 && $gcc_cv_objdump -s -j .fini_array conftest \ 24374 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then 24375 gcc_cv_initfini_array=yes 24376 fi 24377 ;; 24378 esac 24379 rm -f conftest conftest.* 24380 fi 24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24382/* end confdefs.h. */ 24383 24384#ifndef __ELF__ 24385# error Not an ELF OS 24386#endif 24387#include <stdlib.h> 24388#if defined __GLIBC_PREREQ 24389# if __GLIBC_PREREQ (2, 4) 24390# else 24391# error GLIBC 2.4 required 24392# endif 24393#else 24394# if defined __sun__ && defined __svr4__ 24395 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ 24396# else 24397# error The C library not known to support .init_array/.fini_array 24398# endif 24399#endif 24400 24401_ACEOF 24402if ac_fn_cxx_try_cpp "$LINENO"; then : 24403 24404else 24405 gcc_cv_initfini_array=no 24406fi 24407rm -f conftest.err conftest.i conftest.$ac_ext;; 24408 esac 24409 else 24410 case "${target}" in 24411 aarch64*-linux-gnu*) 24412 # AArch64 postdates glibc support for .init_array/.fini_array, 24413 # so we don't need the preprocessor test above. 24414 gcc_cv_initfini_array=yes 24415 ;; 24416 24417 *) 24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5 24419$as_echo_n "checking cross compile... guessing... " >&6; } 24420 gcc_cv_initfini_array=no 24421 ;; 24422 esac 24423 fi 24424fi 24425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5 24426$as_echo "$gcc_cv_initfini_array" >&6; } 24427 enable_initfini_array=$gcc_cv_initfini_array 24428 24429fi 24430 24431 24432cat >>confdefs.h <<_ACEOF 24433#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi` 24434_ACEOF 24435 24436 24437 24438# Check if we have .[us]leb128, and support symbol arithmetic with it. 24439# Older versions of GAS and some non-GNU assemblers, have a bugs handling 24440# these directives, even when they appear to accept them. 24441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5 24442$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; } 24443if ${gcc_cv_as_leb128+:} false; then : 24444 $as_echo_n "(cached) " >&6 24445else 24446 gcc_cv_as_leb128=no 24447 if test x$gcc_cv_as != x; then 24448 $as_echo ' .data 24449 .uleb128 L2 - L1 24450L1: 24451 .uleb128 1280 24452 .sleb128 -1010 24453L2: 24454 .uleb128 0x8000000000000000 24455' > conftest.s 24456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24458 (eval $ac_try) 2>&5 24459 ac_status=$? 24460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24461 test $ac_status = 0; }; } 24462 then 24463 24464if test "x$gcc_cv_objdump" != x; then 24465 if $gcc_cv_objdump -s conftest.o 2>/dev/null \ 24466 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then 24467 gcc_cv_as_leb128=yes 24468 fi 24469elif test "x$gcc_cv_otool" != x; then 24470 if $gcc_cv_otool -d conftest.o 2>/dev/null \ 24471 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then 24472 gcc_cv_as_leb128=yes 24473 fi 24474else 24475 # play safe, assume the assembler is broken. 24476 : 24477fi 24478 24479 else 24480 echo "configure: failed program was" >&5 24481 cat conftest.s >&5 24482 fi 24483 rm -f conftest.o conftest.s 24484 fi 24485fi 24486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5 24487$as_echo "$gcc_cv_as_leb128" >&6; } 24488if test $gcc_cv_as_leb128 = yes; then 24489 24490$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h 24491 24492fi 24493if test $gcc_cv_as_leb128 != yes; then 24494 24495$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h 24496 24497fi 24498 24499# Determine if an .eh_frame section is read-only. 24500gcc_fn_eh_frame_ro () { 24501 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \ 24502 $gcc_cv_objdump -h conftest.o 2>/dev/null | \ 24503 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null 24504} 24505 24506# Check if we have assembler support for unwind directives. 24507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5 24508$as_echo_n "checking assembler for cfi directives... " >&6; } 24509if ${gcc_cv_as_cfi_directive+:} false; then : 24510 $as_echo_n "(cached) " >&6 24511else 24512 gcc_cv_as_cfi_directive=no 24513 if test x$gcc_cv_as != x; then 24514 $as_echo ' .text 24515 .cfi_startproc 24516 .cfi_offset 0, 0 24517 .cfi_same_value 1 24518 .cfi_def_cfa 1, 2 24519 .cfi_escape 1, 2, 3, 4, 5 24520 .cfi_endproc' > conftest.s 24521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24523 (eval $ac_try) 2>&5 24524 ac_status=$? 24525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24526 test $ac_status = 0; }; } 24527 then 24528 case "$target" in 24529 *-*-solaris*) 24530 # If the linker used on Solaris (like Sun ld) isn't capable of merging 24531 # read-only and read-write sections, we need to make sure that the 24532 # assembler used emits read-write .eh_frame sections. 24533 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then 24534 gcc_cv_as_cfi_directive=yes 24535 elif test "x$gcc_cv_objdump" = x; then 24536 # No objdump, err on the side of caution. 24537 gcc_cv_as_cfi_directive=no 24538 else 24539 if test x$gas = xyes; then 24540 as_32_opt="--32" 24541 as_64_opt="--64" 24542 else 24543 as_32_opt="-m32" 24544 as_64_opt="-m64" 24545 fi 24546 case "$target" in 24547 sparc*-*-solaris2.*) 24548 # On Solaris/SPARC, .eh_frame sections should always be read-write. 24549 if gcc_fn_eh_frame_ro $as_32_opt \ 24550 || gcc_fn_eh_frame_ro $as_64_opt; then 24551 gcc_cv_as_cfi_directive=no 24552 else 24553 gcc_cv_as_cfi_directive=yes 24554 fi 24555 ;; 24556 i?86-*-solaris2.* | x86_64-*-solaris2.*) 24557 # On Solaris/x86, make sure that GCC and assembler agree on using 24558 # read-only .eh_frame sections for 64-bit. 24559 if gcc_fn_eh_frame_ro $as_32_opt; then 24560 gcc_cv_as_cfi_directive=no 24561 elif gcc_fn_eh_frame_ro $as_64_opt; then 24562 gcc_cv_as_cfi_directive=yes 24563 else 24564 gcc_cv_as_cfi_directive=no 24565 fi 24566 ;; 24567 esac 24568 fi 24569 ;; 24570 *-*-*) 24571 gcc_cv_as_cfi_directive=yes 24572 ;; 24573esac 24574 else 24575 echo "configure: failed program was" >&5 24576 cat conftest.s >&5 24577 fi 24578 rm -f conftest.o conftest.s 24579 fi 24580fi 24581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5 24582$as_echo "$gcc_cv_as_cfi_directive" >&6; } 24583 24584 24585if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then 24586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5 24587$as_echo_n "checking assembler for working cfi advance... " >&6; } 24588if ${gcc_cv_as_cfi_advance_working+:} false; then : 24589 $as_echo_n "(cached) " >&6 24590else 24591 gcc_cv_as_cfi_advance_working=no 24592 if test x$gcc_cv_as != x; then 24593 $as_echo ' .text 24594 .cfi_startproc 24595 .cfi_adjust_cfa_offset 64 24596 .skip 75040, 0 24597 .cfi_adjust_cfa_offset 128 24598 .cfi_endproc' > conftest.s 24599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24601 (eval $ac_try) 2>&5 24602 ac_status=$? 24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24604 test $ac_status = 0; }; } 24605 then 24606 24607if $gcc_cv_readelf --debug-dump=frames conftest.o 2>/dev/null \ 24608 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then 24609 gcc_cv_as_cfi_advance_working=yes 24610fi 24611 24612 else 24613 echo "configure: failed program was" >&5 24614 cat conftest.s >&5 24615 fi 24616 rm -f conftest.o conftest.s 24617 fi 24618fi 24619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5 24620$as_echo "$gcc_cv_as_cfi_advance_working" >&6; } 24621 24622 24623else 24624 # no objdump, err on the side of caution 24625 gcc_cv_as_cfi_advance_working=no 24626fi 24627 24628 24629cat >>confdefs.h <<_ACEOF 24630#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \ 24631 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi` 24632_ACEOF 24633 24634 24635 24636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5 24637$as_echo_n "checking assembler for cfi personality directive... " >&6; } 24638if ${gcc_cv_as_cfi_personality_directive+:} false; then : 24639 $as_echo_n "(cached) " >&6 24640else 24641 gcc_cv_as_cfi_personality_directive=no 24642 if test x$gcc_cv_as != x; then 24643 $as_echo ' .text 24644 .cfi_startproc 24645 .cfi_personality 0, symbol 24646 .cfi_endproc' > conftest.s 24647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24649 (eval $ac_try) 2>&5 24650 ac_status=$? 24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24652 test $ac_status = 0; }; } 24653 then 24654 gcc_cv_as_cfi_personality_directive=yes 24655 else 24656 echo "configure: failed program was" >&5 24657 cat conftest.s >&5 24658 fi 24659 rm -f conftest.o conftest.s 24660 fi 24661fi 24662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5 24663$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; } 24664 24665 24666 24667cat >>confdefs.h <<_ACEOF 24668#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi` 24669_ACEOF 24670 24671 24672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5 24673$as_echo_n "checking assembler for cfi sections directive... " >&6; } 24674if ${gcc_cv_as_cfi_sections_directive+:} false; then : 24675 $as_echo_n "(cached) " >&6 24676else 24677 gcc_cv_as_cfi_sections_directive=no 24678 if test x$gcc_cv_as != x; then 24679 $as_echo ' .text 24680 .cfi_sections .debug_frame, .eh_frame 24681 .cfi_startproc 24682 .cfi_endproc' > conftest.s 24683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24685 (eval $ac_try) 2>&5 24686 ac_status=$? 24687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24688 test $ac_status = 0; }; } 24689 then 24690 case $target_os in 24691 win32 | pe | cygwin* | mingw32*) 24692 # Need to check that we generated the correct relocation for the 24693 # .debug_frame section. This was fixed for binutils 2.21. 24694 gcc_cv_as_cfi_sections_directive=no 24695 if test "x$gcc_cv_objdump" != x; then 24696 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \ 24697 grep secrel > /dev/null; then 24698 gcc_cv_as_cfi_sections_directive=yes 24699 fi 24700 fi 24701 ;; 24702 *) 24703 gcc_cv_as_cfi_sections_directive=yes 24704 ;; 24705esac 24706 else 24707 echo "configure: failed program was" >&5 24708 cat conftest.s >&5 24709 fi 24710 rm -f conftest.o conftest.s 24711 fi 24712fi 24713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5 24714$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; } 24715 24716 24717 24718 24719cat >>confdefs.h <<_ACEOF 24720#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi` 24721_ACEOF 24722 24723 24724# GAS versions up to and including 2.11.0 may mis-optimize 24725# .eh_frame data. 24726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5 24727$as_echo_n "checking assembler for eh_frame optimization... " >&6; } 24728if ${gcc_cv_as_eh_frame+:} false; then : 24729 $as_echo_n "(cached) " >&6 24730else 24731 gcc_cv_as_eh_frame=no 24732 if test x$gcc_cv_as != x; then 24733 $as_echo ' .text 24734.LFB1: 24735 .4byte 0 24736.L1: 24737 .4byte 0 24738.LFE1: 24739 .section .eh_frame,"aw",@progbits 24740__FRAME_BEGIN__: 24741 .4byte .LECIE1-.LSCIE1 24742.LSCIE1: 24743 .4byte 0x0 24744 .byte 0x1 24745 .ascii "z\0" 24746 .byte 0x1 24747 .byte 0x78 24748 .byte 0x1a 24749 .byte 0x0 24750 .byte 0x4 24751 .4byte 1 24752 .p2align 1 24753.LECIE1: 24754.LSFDE1: 24755 .4byte .LEFDE1-.LASFDE1 24756.LASFDE1: 24757 .4byte .LASFDE1-__FRAME_BEGIN__ 24758 .4byte .LFB1 24759 .4byte .LFE1-.LFB1 24760 .byte 0x4 24761 .4byte .LFE1-.LFB1 24762 .byte 0x4 24763 .4byte .L1-.LFB1 24764.LEFDE1:' > conftest.s 24765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24767 (eval $ac_try) 2>&5 24768 ac_status=$? 24769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24770 test $ac_status = 0; }; } 24771 then 24772 cat > conftest.lit <<EOF 24773 0000 10000000 00000000 017a0001 781a0004 .........z..x... 24774 0010 01000000 12000000 18000000 00000000 ................ 24775 0020 08000000 04080000 0044 .........D 24776EOF 24777cat > conftest.big <<EOF 24778 0000 00000010 00000000 017a0001 781a0004 .........z..x... 24779 0010 00000001 00000012 00000018 00000000 ................ 24780 0020 00000008 04000000 0844 .........D 24781EOF 24782 # If the assembler didn't choke, and we can objdump, 24783 # and we got the correct data, then succeed. 24784 # The text in the here-document typically retains its unix-style line 24785 # endings, while the output of objdump will use host line endings. 24786 # Therefore, use diff -b for the comparisons. 24787 if test x$gcc_cv_objdump != x \ 24788 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ 24789 | tail -3 > conftest.got \ 24790 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \ 24791 || diff -b conftest.big conftest.got > /dev/null 2>&1; } 24792 then 24793 gcc_cv_as_eh_frame=yes 24794 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null' 24795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24796 (eval $ac_try) 2>&5 24797 ac_status=$? 24798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24799 test $ac_status = 0; }; }; then 24800 gcc_cv_as_eh_frame=buggy 24801 else 24802 # Uh oh, what do we do now? 24803 gcc_cv_as_eh_frame=no 24804 fi 24805 else 24806 echo "configure: failed program was" >&5 24807 cat conftest.s >&5 24808 fi 24809 rm -f conftest.o conftest.s 24810 fi 24811fi 24812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5 24813$as_echo "$gcc_cv_as_eh_frame" >&6; } 24814 24815 24816 24817if test $gcc_cv_as_eh_frame = buggy; then 24818 24819$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h 24820 24821fi 24822 24823# Test if the assembler supports the section flag 'e' or #exclude for 24824# specifying an excluded section. 24825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5 24826$as_echo_n "checking assembler for section exclude flag... " >&6; } 24827if ${gcc_cv_as_section_exclude_e+:} false; then : 24828 $as_echo_n "(cached) " >&6 24829else 24830 gcc_cv_as_section_exclude_e=no 24831 if test x$gcc_cv_as != x; then 24832 $as_echo '.section foo1,"e" 24833 .byte 0,0,0,0' > conftest.s 24834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24836 (eval $ac_try) 2>&5 24837 ac_status=$? 24838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24839 test $ac_status = 0; }; } 24840 then 24841 gcc_cv_as_section_exclude_e=yes 24842 else 24843 echo "configure: failed program was" >&5 24844 cat conftest.s >&5 24845 fi 24846 rm -f conftest.o conftest.s 24847 fi 24848fi 24849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5 24850$as_echo "$gcc_cv_as_section_exclude_e" >&6; } 24851 24852 24853if test $gcc_cv_as_section_exclude_e = no; then 24854 case "${target}" in 24855 # Solaris as uses #exclude instead. 24856 *-*-solaris2*) 24857 case "${target}" in 24858 sparc*-*-solaris2*) 24859 conftest_s='.section "foo1", #exclude' 24860 ;; 24861 i?86-*-solaris2* | x86_64-*-solaris2*) 24862 conftest_s='.section foo1, #exclude' 24863 ;; 24864 esac 24865 ;; 24866 esac 24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5 24868$as_echo_n "checking assembler for section exclude flag... " >&6; } 24869if ${gcc_cv_as_section_exclude_hash+:} false; then : 24870 $as_echo_n "(cached) " >&6 24871else 24872 gcc_cv_as_section_exclude_hash=no 24873 if test x$gcc_cv_as != x; then 24874 $as_echo "$conftest_s 24875 .byte 0,0,0,0" > conftest.s 24876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24878 (eval $ac_try) 2>&5 24879 ac_status=$? 24880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24881 test $ac_status = 0; }; } 24882 then 24883 gcc_cv_as_section_exclude_hash=yes 24884 else 24885 echo "configure: failed program was" >&5 24886 cat conftest.s >&5 24887 fi 24888 rm -f conftest.o conftest.s 24889 fi 24890fi 24891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5 24892$as_echo "$gcc_cv_as_section_exclude_hash" >&6; } 24893 24894 24895fi 24896 24897cat >>confdefs.h <<_ACEOF 24898#define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi` 24899_ACEOF 24900 24901 24902# Test if the assembler supports the section flag 'R' for specifying 24903# section with SHF_GNU_RETAIN. 24904case "${target}" in 24905 # Solaris may use GNU assembler with Solairs ld. Even if GNU 24906 # assembler supports the section flag 'R', it doesn't mean that 24907 # Solairs ld supports it. 24908 *-*-solaris2*) 24909 gcc_cv_as_shf_gnu_retain=no 24910 ;; 24911 *) 24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5 24913$as_echo_n "checking assembler for section 'R' flag... " >&6; } 24914if ${gcc_cv_as_shf_gnu_retain+:} false; then : 24915 $as_echo_n "(cached) " >&6 24916else 24917 gcc_cv_as_shf_gnu_retain=no 24918 if test x$gcc_cv_as != x; then 24919 $as_echo '.section .foo,"awR",%progbits 24920.byte 0' > conftest.s 24921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24923 (eval $ac_try) 2>&5 24924 ac_status=$? 24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24926 test $ac_status = 0; }; } 24927 then 24928 gcc_cv_as_shf_gnu_retain=yes 24929 else 24930 echo "configure: failed program was" >&5 24931 cat conftest.s >&5 24932 fi 24933 rm -f conftest.o conftest.s 24934 fi 24935fi 24936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5 24937$as_echo "$gcc_cv_as_shf_gnu_retain" >&6; } 24938 24939 24940 ;; 24941esac 24942 24943cat >>confdefs.h <<_ACEOF 24944#define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi` 24945_ACEOF 24946 24947 24948# Test if the assembler supports the section flag 'o' for specifying 24949# section with link-order. 24950case "${target}" in 24951 # Solaris may use GNU assembler with Solairs ld. Even if GNU 24952 # assembler supports the section flag 'o', it doesn't mean that 24953 # Solairs ld supports it. 24954 *-*-solaris2*) 24955 gcc_cv_as_section_link_order=no 24956 ;; 24957 *) 24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5 24959$as_echo_n "checking assembler for section 'o' flag... " >&6; } 24960if ${gcc_cv_as_section_link_order+:} false; then : 24961 $as_echo_n "(cached) " >&6 24962else 24963 gcc_cv_as_section_link_order=no 24964 if test x$gcc_cv_as != x; then 24965 $as_echo '.section .foo,"a" 24966.byte 0 24967.section __patchable_function_entries,"awo",%progbits,.foo 24968.byte 0' > conftest.s 24969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24971 (eval $ac_try) 2>&5 24972 ac_status=$? 24973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24974 test $ac_status = 0; }; } 24975 then 24976 gcc_cv_as_section_link_order=yes 24977 else 24978 echo "configure: failed program was" >&5 24979 cat conftest.s >&5 24980 fi 24981 rm -f conftest.o conftest.s 24982 fi 24983fi 24984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5 24985$as_echo "$gcc_cv_as_section_link_order" >&6; } 24986 24987 24988 ;; 24989esac 24990 24991cat >>confdefs.h <<_ACEOF 24992#define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi` 24993_ACEOF 24994 24995 24996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 24997$as_echo_n "checking assembler for section merging support... " >&6; } 24998if ${gcc_cv_as_shf_merge+:} false; then : 24999 $as_echo_n "(cached) " >&6 25000else 25001 gcc_cv_as_shf_merge=no 25002 if test x$gcc_cv_as != x; then 25003 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s 25004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 25005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25006 (eval $ac_try) 2>&5 25007 ac_status=$? 25008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25009 test $ac_status = 0; }; } 25010 then 25011 gcc_cv_as_shf_merge=yes 25012 else 25013 echo "configure: failed program was" >&5 25014 cat conftest.s >&5 25015 fi 25016 rm -f conftest.o conftest.s 25017 fi 25018fi 25019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 25020$as_echo "$gcc_cv_as_shf_merge" >&6; } 25021 25022 25023if test $gcc_cv_as_shf_merge = no; then 25024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 25025$as_echo_n "checking assembler for section merging support... " >&6; } 25026if ${gcc_cv_as_shf_merge+:} false; then : 25027 $as_echo_n "(cached) " >&6 25028else 25029 gcc_cv_as_shf_merge=no 25030 if test x$gcc_cv_as != x; then 25031 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s 25032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 25033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25034 (eval $ac_try) 2>&5 25035 ac_status=$? 25036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25037 test $ac_status = 0; }; } 25038 then 25039 gcc_cv_as_shf_merge=yes 25040 else 25041 echo "configure: failed program was" >&5 25042 cat conftest.s >&5 25043 fi 25044 rm -f conftest.o conftest.s 25045 fi 25046fi 25047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 25048$as_echo "$gcc_cv_as_shf_merge" >&6; } 25049 25050 25051fi 25052 25053cat >>confdefs.h <<_ACEOF 25054#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi` 25055_ACEOF 25056 25057 25058gcc_cv_ld_aligned_shf_merge=yes 25059case "$target" in 25060 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for 25061 # alignment > 1. 25062 sparc*-*-solaris2.11*) 25063 if test x"$gnu_ld" = xno \ 25064 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then 25065 gcc_cv_ld_aligned_shf_merge=no 25066 fi 25067 ;; 25068esac 25069 25070cat >>confdefs.h <<_ACEOF 25071#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi` 25072_ACEOF 25073 25074 25075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5 25076$as_echo_n "checking assembler for stabs directive... " >&6; } 25077if ${gcc_cv_as_stabs_directive+:} false; then : 25078 $as_echo_n "(cached) " >&6 25079else 25080 gcc_cv_as_stabs_directive=no 25081 if test x$gcc_cv_as != x; then 25082 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s 25083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25085 (eval $ac_try) 2>&5 25086 ac_status=$? 25087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25088 test $ac_status = 0; }; } 25089 then 25090 gcc_cv_as_stabs_directive=yes 25091 else 25092 echo "configure: failed program was" >&5 25093 cat conftest.s >&5 25094 fi 25095 rm -f conftest.o conftest.s 25096 fi 25097fi 25098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5 25099$as_echo "$gcc_cv_as_stabs_directive" >&6; } 25100if test $gcc_cv_as_stabs_directive = yes; then 25101 25102$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h 25103 25104fi 25105 25106 25107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5 25108$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; } 25109if ${gcc_cv_as_comdat_group+:} false; then : 25110 $as_echo_n "(cached) " >&6 25111else 25112 gcc_cv_as_comdat_group=no 25113 if test x$gcc_cv_as != x; then 25114 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s 25115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 25116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25117 (eval $ac_try) 2>&5 25118 ac_status=$? 25119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25120 test $ac_status = 0; }; } 25121 then 25122 gcc_cv_as_comdat_group=yes 25123 else 25124 echo "configure: failed program was" >&5 25125 cat conftest.s >&5 25126 fi 25127 rm -f conftest.o conftest.s 25128 fi 25129fi 25130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5 25131$as_echo "$gcc_cv_as_comdat_group" >&6; } 25132 25133 25134if test $gcc_cv_as_comdat_group = yes; then 25135 gcc_cv_as_comdat_group_percent=no 25136 gcc_cv_as_comdat_group_group=no 25137else 25138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5 25139$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; } 25140if ${gcc_cv_as_comdat_group_percent+:} false; then : 25141 $as_echo_n "(cached) " >&6 25142else 25143 gcc_cv_as_comdat_group_percent=no 25144 if test x$gcc_cv_as != x; then 25145 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s 25146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 25147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25148 (eval $ac_try) 2>&5 25149 ac_status=$? 25150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25151 test $ac_status = 0; }; } 25152 then 25153 gcc_cv_as_comdat_group_percent=yes 25154 else 25155 echo "configure: failed program was" >&5 25156 cat conftest.s >&5 25157 fi 25158 rm -f conftest.o conftest.s 25159 fi 25160fi 25161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5 25162$as_echo "$gcc_cv_as_comdat_group_percent" >&6; } 25163 25164 25165 if test $gcc_cv_as_comdat_group_percent = yes; then 25166 gcc_cv_as_comdat_group_group=no 25167 else 25168 case "${target}" in 25169 # Sun as uses a completely different syntax. 25170 *-*-solaris2*) 25171 case "${target}" in 25172 sparc*-*-solaris2*) 25173 conftest_s=' 25174 .group foo,".text%foo",#comdat 25175 .section ".text%foo", #alloc,#execinstr,#progbits 25176 .globl foo 25177 foo: 25178 ' 25179 ;; 25180 i?86-*-solaris2* | x86_64-*-solaris2*) 25181 conftest_s=' 25182 .group foo,.text%foo,#comdat 25183 .section .text%foo, "ax", @progbits 25184 .globl foo 25185 foo: 25186 ' 25187 ;; 25188 esac 25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5 25190$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; } 25191if ${gcc_cv_as_comdat_group_group+:} false; then : 25192 $as_echo_n "(cached) " >&6 25193else 25194 gcc_cv_as_comdat_group_group=no 25195 if test x$gcc_cv_as != x; then 25196 $as_echo "$conftest_s" > conftest.s 25197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25199 (eval $ac_try) 2>&5 25200 ac_status=$? 25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25202 test $ac_status = 0; }; } 25203 then 25204 gcc_cv_as_comdat_group_group=yes 25205 else 25206 echo "configure: failed program was" >&5 25207 cat conftest.s >&5 25208 fi 25209 rm -f conftest.o conftest.s 25210 fi 25211fi 25212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5 25213$as_echo "$gcc_cv_as_comdat_group_group" >&6; } 25214 25215 25216 ;; 25217 esac 25218 if test -z "${gcc_cv_as_comdat_group_group+set}"; then 25219 gcc_cv_as_comdat_group_group=no 25220 fi 25221 fi 25222fi 25223if test x"$ld_is_gold" = xyes; then 25224 comdat_group=yes 25225elif test x"$ld_is_mold" = xyes; then 25226 comdat_group=yes 25227elif test $in_tree_ld = yes ; then 25228 comdat_group=no 25229 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \ 25230 && test $in_tree_ld_is_elf = yes; then 25231 comdat_group=yes 25232 fi 25233elif echo "$ld_ver" | grep GNU > /dev/null; then 25234 comdat_group=yes 25235 if test 0"$ld_date" -lt 20050308; then 25236 if test -n "$ld_date"; then 25237 # If there was date string, but was earlier than 2005-03-08, fail 25238 comdat_group=no 25239 elif test "$ld_vers_major" -lt 2; then 25240 comdat_group=no 25241 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 25242 comdat_group=no 25243 fi 25244 fi 25245else 25246 case "${target}" in 25247 *-*-solaris2.1[1-9]*) 25248 comdat_group=no 25249 # Sun ld has COMDAT group support since Solaris 9, but it doesn't 25250 # interoperate with GNU as until Solaris 11 build 130, i.e. ld 25251 # version 1.688. 25252 # 25253 # If using Sun as for COMDAT group as emitted by GCC, one needs at 25254 # least ld version 1.2267. 25255 if test "$ld_vers_major" -gt 1; then 25256 comdat_group=yes 25257 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then 25258 comdat_group=yes 25259 elif test "$ld_vers_minor" -ge 2267; then 25260 comdat_group=yes 25261 fi 25262 ;; 25263 *) 25264 # Assume linkers other than GNU ld don't support COMDAT group. 25265 comdat_group=no 25266 ;; 25267 esac 25268fi 25269# Allow overriding the automatic COMDAT group tests above. 25270# Check whether --enable-comdat was given. 25271if test "${enable_comdat+set}" = set; then : 25272 enableval=$enable_comdat; comdat_group="$enable_comdat" 25273fi 25274 25275if test $comdat_group = no; then 25276 gcc_cv_as_comdat_group=no 25277 gcc_cv_as_comdat_group_percent=no 25278 gcc_cv_as_comdat_group_group=no 25279fi 25280 25281cat >>confdefs.h <<_ACEOF 25282#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \ 25283 || test $gcc_cv_as_comdat_group_percent = yes \ 25284 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi` 25285_ACEOF 25286 25287 25288# Restrict this test to Solaris/x86: other targets define this statically. 25289case "${target}" in 25290 i?86-*-solaris2* | x86_64-*-solaris2*) 25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5 25292$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; } 25293 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then 25294 hidden_linkonce=yes 25295 else 25296 case "${target}" in 25297 # Full support for hidden thunks in linkonce sections only appeared in 25298 # Solaris 11/OpenSolaris. 25299 *-*-solaris2.1[1-9]*) 25300 hidden_linkonce=yes 25301 ;; 25302 *) 25303 hidden_linkonce=no 25304 ;; 25305 esac 25306 fi 25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5 25308$as_echo "$hidden_linkonce" >&6; } 25309 25310cat >>confdefs.h <<_ACEOF 25311#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi` 25312_ACEOF 25313 25314 ;; 25315esac 25316 25317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5 25318$as_echo_n "checking assembler for line table is_stmt support... " >&6; } 25319if ${gcc_cv_as_is_stmt+:} false; then : 25320 $as_echo_n "(cached) " >&6 25321else 25322 gcc_cv_as_is_stmt=no 25323 if test x$gcc_cv_as != x; then 25324 $as_echo ' .text 25325 .file 1 "conf.c" 25326 .loc 1 1 0 is_stmt 1' > conftest.s 25327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25329 (eval $ac_try) 2>&5 25330 ac_status=$? 25331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25332 test $ac_status = 0; }; } 25333 then 25334 gcc_cv_as_is_stmt=yes 25335 else 25336 echo "configure: failed program was" >&5 25337 cat conftest.s >&5 25338 fi 25339 rm -f conftest.o conftest.s 25340 fi 25341fi 25342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5 25343$as_echo "$gcc_cv_as_is_stmt" >&6; } 25344if test $gcc_cv_as_is_stmt = yes; then 25345 25346$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h 25347 25348fi 25349 25350 25351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5 25352$as_echo_n "checking assembler for line table discriminator support... " >&6; } 25353if ${gcc_cv_as_discriminator+:} false; then : 25354 $as_echo_n "(cached) " >&6 25355else 25356 gcc_cv_as_discriminator=no 25357 if test x$gcc_cv_as != x; then 25358 $as_echo ' .text 25359 .file 1 "conf.c" 25360 .loc 1 1 0 discriminator 1' > conftest.s 25361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25363 (eval $ac_try) 2>&5 25364 ac_status=$? 25365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25366 test $ac_status = 0; }; } 25367 then 25368 gcc_cv_as_discriminator=yes 25369 else 25370 echo "configure: failed program was" >&5 25371 cat conftest.s >&5 25372 fi 25373 rm -f conftest.o conftest.s 25374 fi 25375fi 25376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5 25377$as_echo "$gcc_cv_as_discriminator" >&6; } 25378if test $gcc_cv_as_discriminator = yes; then 25379 25380$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h 25381 25382fi 25383 25384 25385# Catch the newlib flag of the same name so we can gate GCC features on it. 25386# Check whether --enable-newlib-nano-formatted-io was given. 25387if test "${enable_newlib_nano_formatted_io+set}" = set; then : 25388 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in 25389 yes|no) 25390 ;; 25391 *) 25392 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5 25393 ;; 25394esac 25395fi 25396 25397 25398# Thread-local storage - the check is heavily parameterized. 25399conftest_s= 25400tls_as_opt= 25401case "$target" in 25402 alpha*-*-*) 25403 conftest_s=' 25404 .section ".tdata","awT",@progbits 25405foo: .long 25 25406 .text 25407 ldq $27,__tls_get_addr($29) !literal!1 25408 lda $16,foo($29) !tlsgd!1 25409 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1 25410 ldq $27,__tls_get_addr($29) !literal!2 25411 lda $16,foo($29) !tlsldm!2 25412 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2 25413 ldq $1,foo($29) !gotdtprel 25414 ldah $2,foo($29) !dtprelhi 25415 lda $3,foo($2) !dtprello 25416 lda $4,foo($29) !dtprel 25417 ldq $1,foo($29) !gottprel 25418 ldah $2,foo($29) !tprelhi 25419 lda $3,foo($2) !tprello 25420 lda $4,foo($29) !tprel' 25421 tls_as_opt=--fatal-warnings 25422 ;; 25423 arc*-*-*) 25424 conftest_s=' 25425 add_s r0,r0, @foo@tpoff' 25426 ;; 25427 cris-*-*|crisv32-*-*) 25428 conftest_s=' 25429 .section ".tdata","awT",@progbits 25430x: .long 25 25431 .text 25432 move.d x:IE,$r10 25433 nop' 25434 tls_as_opt=--fatal-warnings 25435 ;; 25436 frv*-*-*) 25437 conftest_s=' 25438 .section ".tdata","awT",@progbits 25439x: .long 25 25440 .text 25441 call #gettlsoff(x)' 25442 ;; 25443 hppa*-*-linux* | hppa*-*-netbsd*) 25444 conftest_s=' 25445t1: .reg %r20 25446t2: .reg %r21 25447gp: .reg %r19 25448 .section ".tdata","awT",@progbits 25449foo: .long 25 25450 .text 25451 .align 4 25452 addil LT%foo-$tls_gdidx$,gp 25453 ldo RT%foo-$tls_gdidx$(%r1),%arg0 25454 b __tls_get_addr 25455 nop 25456 addil LT%foo-$tls_ldidx$,gp 25457 b __tls_get_addr 25458 ldo RT%foo-$tls_ldidx$(%r1),%arg0 25459 addil LR%foo-$tls_dtpoff$,%ret0 25460 ldo RR%foo-$tls_dtpoff$(%r1),%t1 25461 mfctl %cr27,%t1 25462 addil LT%foo-$tls_ieoff$,gp 25463 ldw RT%foo-$tls_ieoff$(%r1),%t2 25464 add %t1,%t2,%t3 25465 mfctl %cr27,%t1 25466 addil LR%foo-$tls_leoff$,%t1 25467 ldo RR%foo-$tls_leoff$(%r1),%t2' 25468 tls_as_opt=--fatal-warnings 25469 ;; 25470 arm*-*-*) 25471 conftest_s=' 25472 .section ".tdata","awT",%progbits 25473foo: .long 25 25474 .text 25475.word foo(gottpoff) 25476.word foo(tpoff) 25477.word foo(tlsgd) 25478.word foo(tlsldm) 25479.word foo(tlsldo)' 25480 ;; 25481 i[34567]86-*-* | x86_64-*-*) 25482 case "$target" in 25483 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*) 25484 on_solaris=yes 25485 ;; 25486 *) 25487 on_solaris=no 25488 ;; 25489 esac 25490 if test x$on_solaris = xyes && test x$gas_flag = xno; then 25491 conftest_s=' 25492 .section .tdata,"awt",@progbits' 25493 tls_section_flag=t 25494 25495$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h 25496 25497 else 25498 conftest_s=' 25499 .section ".tdata","awT",@progbits' 25500 tls_section_flag=T 25501 tls_as_opt="--fatal-warnings" 25502 fi 25503 case "$target" in 25504 i[34567]86-*-*) 25505 if test x$on_solaris = xyes; then 25506 case $gas_flag in 25507 yes) tls_as_opt="$tls_as_opt --32" ;; 25508 esac 25509 fi 25510 conftest_s="$conftest_s 25511foo: .long 25 25512 .text 25513 movl %gs:0, %eax 25514 leal foo@tlsgd(,%ebx,1), %eax 25515 leal foo@tlsldm(%ebx), %eax 25516 leal foo@dtpoff(%eax), %edx 25517 movl foo@gottpoff(%ebx), %eax 25518 subl foo@gottpoff(%ebx), %eax 25519 addl foo@gotntpoff(%ebx), %eax 25520 movl foo@indntpoff, %eax 25521 movl \$foo@tpoff, %eax 25522 subl \$foo@tpoff, %eax 25523 leal foo@ntpoff(%ecx), %eax" 25524 ;; 25525 x86_64-*-*) 25526 if test x$on_solaris = xyes; then 25527 case $gas_flag in 25528 yes) tls_as_opt="$tls_as_opt --64" ;; 25529 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;; 25530 esac 25531 fi 25532 conftest_s="$conftest_s 25533foo: .long 25 25534 .text 25535 movq %fs:0, %rax 25536 leaq foo@tlsgd(%rip), %rdi 25537 leaq foo@tlsld(%rip), %rdi 25538 leaq foo@dtpoff(%rax), %rdx 25539 movq foo@gottpoff(%rip), %rax 25540 movq \$foo@tpoff, %rax" 25541 ;; 25542 esac 25543 ;; 25544 ia64-*-*) 25545 conftest_s=' 25546 .section ".tdata","awT",@progbits 25547foo: data8 25 25548 .text 25549 addl r16 = @ltoff(@dtpmod(foo#)), gp 25550 addl r17 = @ltoff(@dtprel(foo#)), gp 25551 addl r18 = @ltoff(@tprel(foo#)), gp 25552 addl r19 = @dtprel(foo#), gp 25553 adds r21 = @dtprel(foo#), r13 25554 movl r23 = @dtprel(foo#) 25555 addl r20 = @tprel(foo#), gp 25556 adds r22 = @tprel(foo#), r13 25557 movl r24 = @tprel(foo#)' 25558 tls_as_opt=--fatal-warnings 25559 ;; 25560 loongarch*-*-*) 25561 conftest_s=' 25562 .section .tdata,"awT",@progbits 25563x: .word 2 25564 .text 25565 la.tls.gd $a0,x 25566 bl __tls_get_addr' 25567 tls_first_major=0 25568 tls_first_minor=0 25569 tls_as_opt='--fatal-warnings' 25570 ;; 25571 microblaze*-*-*) 25572 conftest_s=' 25573 .section .tdata,"awT",@progbits 25574x: 25575 .word 2 25576 .text 25577 addik r5,r20,x@TLSGD 25578 addik r5,r20,x@TLSLDM' 25579 tls_as_opt='--fatal-warnings' 25580 ;; 25581 mips*-*-*) 25582 conftest_s=' 25583 .section .tdata,"awT",@progbits 25584x: 25585 .word 2 25586 .text 25587 addiu $4, $28, %tlsgd(x) 25588 addiu $4, $28, %tlsldm(x) 25589 lui $4, %dtprel_hi(x) 25590 addiu $4, $4, %dtprel_lo(x) 25591 lw $4, %gottprel(x)($28) 25592 lui $4, %tprel_hi(x) 25593 addiu $4, $4, %tprel_lo(x)' 25594 tls_as_opt='-32 --fatal-warnings' 25595 ;; 25596 m68k-*-*|m5407-*-*) 25597 conftest_s=' 25598 .section .tdata,"awT",@progbits 25599x: 25600 .word 2 25601 .text 25602foo: 25603 move.l x@TLSGD(%a5),%a0 25604 move.l x@TLSLDM(%a5),%a0 25605 move.l x@TLSLDO(%a5),%a0 25606 move.l x@TLSIE(%a5),%a0 25607 move.l x@TLSLE(%a5),%a0' 25608 tls_as_opt='--fatal-warnings' 25609 ;; 25610 nios2-*-*) 25611 conftest_s=' 25612 .section ".tdata","awT",@progbits' 25613 tls_as_opt="--fatal-warnings" 25614 ;; 25615 aarch64*-*-*) 25616 conftest_s=' 25617 .section ".tdata","awT",%progbits 25618foo: .long 25 25619 .text 25620 adrp x0, :tlsgd:x 25621 add x0, x0, #:tlsgd_lo12:x 25622 bl __tls_get_addr 25623 nop' 25624 tls_as_opt='--fatal-warnings' 25625 ;; 25626 or1k*-*-*) 25627 conftest_s=' 25628 .section ".tdata","awT",@progbits 25629foo: .long 25 25630 .text 25631 l.movhi r3, tpoffha(foo) 25632 l.add r3, r3, r10 25633 l.lwz r4, tpofflo(foo)(r3)' 25634 tls_as_opt=--fatal-warnings 25635 ;; 25636 powerpc-ibm-aix*) 25637 conftest_s=' 25638 .extern __get_tpointer 25639 .toc 25640LC..1: 25641 .tc a[TC],a[TL]@le 25642 .csect .text[PR] 25643.tlstest: 25644 lwz 9,LC..1(2) 25645 bla __get_tpointer 25646 lwzx 3,9,3 25647 .globl a 25648 .csect a[TL],4 25649a: 25650 .space 4' 25651 ;; 25652 powerpc64*-*-*) 25653 conftest_s=' 25654 .section ".tdata","awT",@progbits 25655 .align 3 25656ld0: .space 8 25657ld1: .space 8 25658x1: .space 8 25659x2: .space 8 25660x3: .space 8 25661 .text 25662 addi 3,2,ld0@got@tlsgd 25663 bl .__tls_get_addr 25664 nop 25665 addi 3,2,ld1@toc 25666 bl .__tls_get_addr 25667 nop 25668 addi 3,2,x1@got@tlsld 25669 bl .__tls_get_addr 25670 nop 25671 addi 9,3,x1@dtprel 25672 bl .__tls_get_addr 25673 nop 25674 addis 9,3,x2@dtprel@ha 25675 addi 9,9,x2@dtprel@l 25676 bl .__tls_get_addr 25677 nop 25678 ld 9,x3@got@dtprel(2) 25679 add 9,9,3 25680 bl .__tls_get_addr 25681 nop' 25682 tls_as_opt="-a64 --fatal-warnings" 25683 ;; 25684 powerpc*-*-*) 25685 conftest_s=' 25686 .section ".tdata","awT",@progbits 25687 .align 2 25688ld0: .space 4 25689ld1: .space 4 25690x1: .space 4 25691x2: .space 4 25692x3: .space 4 25693 .text 25694 addi 3,31,ld0@got@tlsgd 25695 bl __tls_get_addr 25696 addi 3,31,x1@got@tlsld 25697 bl __tls_get_addr 25698 addi 9,3,x1@dtprel 25699 addis 9,3,x2@dtprel@ha 25700 addi 9,9,x2@dtprel@l 25701 lwz 9,x3@got@tprel(31) 25702 add 9,9,x@tls 25703 addi 9,2,x1@tprel 25704 addis 9,2,x2@tprel@ha 25705 addi 9,9,x2@tprel@l' 25706 tls_as_opt="-a32 --fatal-warnings" 25707 ;; 25708 riscv*-*-*) 25709 conftest_s=' 25710 .section .tdata,"awT",@progbits 25711x: .word 2 25712 .text 25713 la.tls.gd a0,x 25714 call __tls_get_addr' 25715 tls_as_opt='--fatal-warnings' 25716 ;; 25717 s390-*-*) 25718 conftest_s=' 25719 .section ".tdata","awT",@progbits 25720foo: .long 25 25721 .text 25722 .long foo@TLSGD 25723 .long foo@TLSLDM 25724 .long foo@DTPOFF 25725 .long foo@NTPOFF 25726 .long foo@GOTNTPOFF 25727 .long foo@INDNTPOFF 25728 l %r1,foo@GOTNTPOFF(%r12) 25729 l %r1,0(%r1):tls_load:foo 25730 bas %r14,0(%r1,%r13):tls_gdcall:foo 25731 bas %r14,0(%r1,%r13):tls_ldcall:foo' 25732 tls_as_opt="-m31 --fatal-warnings" 25733 ;; 25734 s390x-*-*) 25735 conftest_s=' 25736 .section ".tdata","awT",@progbits 25737foo: .long 25 25738 .text 25739 .quad foo@TLSGD 25740 .quad foo@TLSLDM 25741 .quad foo@DTPOFF 25742 .quad foo@NTPOFF 25743 .quad foo@GOTNTPOFF 25744 lg %r1,foo@GOTNTPOFF(%r12) 25745 larl %r1,foo@INDNTPOFF 25746 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo 25747 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo' 25748 tls_as_opt="-m64 -Aesame --fatal-warnings" 25749 ;; 25750 sh-*-* | sh[34]-*-* | sh*l*-*-*) 25751 conftest_s=' 25752 .section ".tdata","awT",@progbits 25753foo: .long 25 25754 .text 25755 .long foo@TLSGD 25756 .long foo@TLSLDM 25757 .long foo@DTPOFF 25758 .long foo@GOTTPOFF 25759 .long foo@TPOFF' 25760 tls_as_opt=--fatal-warnings 25761 ;; 25762 sparc*-*-*) 25763 case "$target" in 25764 sparc*-sun-solaris2.*) 25765 on_solaris=yes 25766 ;; 25767 *) 25768 on_solaris=no 25769 ;; 25770 esac 25771 if test x$on_solaris = xyes && test x$gas_flag = xno; then 25772 conftest_s=' 25773 .section ".tdata",#alloc,#write,#tls' 25774 else 25775 conftest_s=' 25776 .section ".tdata","awT",@progbits' 25777 tls_as_opt="-32 --fatal-warnings" 25778 fi 25779 conftest_s="$conftest_s 25780foo: .long 25 25781 .text 25782 sethi %tgd_hi22(foo), %o0 25783 add %o0, %tgd_lo10(foo), %o1 25784 add %l7, %o1, %o0, %tgd_add(foo) 25785 call __tls_get_addr, %tgd_call(foo) 25786 sethi %tldm_hi22(foo), %l1 25787 add %l1, %tldm_lo10(foo), %l2 25788 add %l7, %l2, %o0, %tldm_add(foo) 25789 call __tls_get_addr, %tldm_call(foo) 25790 sethi %tldo_hix22(foo), %l3 25791 xor %l3, %tldo_lox10(foo), %l4 25792 add %o0, %l4, %l5, %tldo_add(foo) 25793 sethi %tie_hi22(foo), %o3 25794 add %o3, %tie_lo10(foo), %o3 25795 ld [%l7 + %o3], %o2, %tie_ld(foo) 25796 add %g7, %o2, %o4, %tie_add(foo) 25797 sethi %tle_hix22(foo), %l1 25798 xor %l1, %tle_lox10(foo), %o5 25799 ld [%g7 + %o5], %o1" 25800 ;; 25801 tilepro*-*-*) 25802 conftest_s=' 25803 .section ".tdata","awT",@progbits 25804foo: .long 25 25805 .text 25806 addli r0, zero, tls_gd(foo) 25807 auli r0, zero, tls_gd_ha16(foo) 25808 addli r0, r0, tls_gd_lo16(foo) 25809 jal __tls_get_addr 25810 addli r0, zero, tls_ie(foo) 25811 auli r0, r0, tls_ie_ha16(foo) 25812 addli r0, r0, tls_ie_lo16(foo)' 25813 tls_as_opt="--fatal-warnings" 25814 ;; 25815 tilegx*-*-*) 25816 conftest_s=' 25817 .section ".tdata","awT",@progbits 25818foo: .long 25 25819 .text 25820 shl16insli r0, zero, hw0_last_tls_gd(foo) 25821 shl16insli r0, zero, hw1_last_tls_gd(foo) 25822 shl16insli r0, r0, hw0_tls_gd(foo) 25823 jal __tls_get_addr 25824 shl16insli r0, zero, hw1_last_tls_ie(foo) 25825 shl16insli r0, r0, hw0_tls_ie(foo)' 25826 tls_as_opt="--fatal-warnings" 25827 ;; 25828 xtensa*-*-*) 25829 conftest_s=' 25830 .section ".tdata","awT",@progbits 25831foo: .long 25 25832 .text 25833 movi a8, foo@TLSFUNC 25834 movi a10, foo@TLSARG 25835 callx8.tls a8, foo@TLSCALL' 25836 ;; 25837esac 25838set_have_as_tls=no 25839if test "x$enable_tls" = xno ; then 25840 : # TLS explicitly disabled. 25841elif test "x$enable_tls" = xyes ; then 25842 set_have_as_tls=yes # TLS explicitly enabled. 25843elif test -z "$conftest_s"; then 25844 : # If we don't have a check, assume no support. 25845else 25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5 25847$as_echo_n "checking assembler for thread-local storage support... " >&6; } 25848if ${gcc_cv_as_tls+:} false; then : 25849 $as_echo_n "(cached) " >&6 25850else 25851 gcc_cv_as_tls=no 25852 if test x$gcc_cv_as != x; then 25853 $as_echo "$conftest_s" > conftest.s 25854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5' 25855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25856 (eval $ac_try) 2>&5 25857 ac_status=$? 25858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25859 test $ac_status = 0; }; } 25860 then 25861 gcc_cv_as_tls=yes 25862 else 25863 echo "configure: failed program was" >&5 25864 cat conftest.s >&5 25865 fi 25866 rm -f conftest.o conftest.s 25867 fi 25868fi 25869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5 25870$as_echo "$gcc_cv_as_tls" >&6; } 25871if test $gcc_cv_as_tls = yes; then 25872 set_have_as_tls=yes 25873fi 25874 25875fi 25876if test $set_have_as_tls = yes ; then 25877 25878$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h 25879 25880fi 25881 25882# Target-specific assembler checks. 25883 25884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5 25885$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; } 25886gcc_cv_ld_static_dynamic=no 25887gcc_cv_ld_static_option='-Bstatic' 25888gcc_cv_ld_dynamic_option='-Bdynamic' 25889if test $in_tree_ld = yes ; then 25890 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then 25891 gcc_cv_ld_static_dynamic=yes 25892 fi 25893elif test x$gcc_cv_ld != x; then 25894 # Check if linker supports -Bstatic/-Bdynamic option 25895 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \ 25896 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then 25897 gcc_cv_ld_static_dynamic=yes 25898 else 25899 case "$target" in 25900 # AIX ld uses -b flags 25901 *-*-aix4.[23]* | *-*-aix[5-9]*) 25902 gcc_cv_ld_static_dynamic=yes 25903 gcc_cv_ld_static_option="-bstatic" 25904 gcc_cv_ld_dynamic_option="-bdynamic" 25905 ;; 25906 # HP-UX ld uses -a flags to select between shared and archive. 25907 *-*-hpux*) 25908 if test x"$gnu_ld" = xno; then 25909 gcc_cv_ld_static_dynamic=yes 25910 gcc_cv_ld_static_option="-aarchive_shared" 25911 gcc_cv_ld_dynamic_option="-adefault" 25912 fi 25913 ;; 25914 # Solaris 2 ld always supports -Bstatic/-Bdynamic. 25915 *-*-solaris2*) 25916 gcc_cv_ld_static_dynamic=yes 25917 ;; 25918 esac 25919 fi 25920fi 25921if test x"$gcc_cv_ld_static_dynamic" = xyes; then 25922 25923$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h 25924 25925 25926cat >>confdefs.h <<_ACEOF 25927#define LD_STATIC_OPTION "$gcc_cv_ld_static_option" 25928_ACEOF 25929 25930 25931cat >>confdefs.h <<_ACEOF 25932#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option" 25933_ACEOF 25934 25935fi 25936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5 25937$as_echo "$gcc_cv_ld_static_dynamic" >&6; } 25938 25939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5 25940$as_echo_n "checking linker --version-script option... " >&6; } 25941gcc_cv_ld_version_script=no 25942ld_version_script_option='' 25943if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then 25944 gcc_cv_ld_version_script=yes 25945 ld_version_script_option='--version-script' 25946elif test x$gcc_cv_ld != x; then 25947 case "$target" in 25948 # Solaris 2 ld always supports -M. It also supports a subset of 25949 # --version-script since Solaris 11.4, but requires 25950 # -z gnu-version-script-compat to activate. 25951 *-*-solaris2*) 25952 gcc_cv_ld_version_script=yes 25953 ld_version_script_option='-M' 25954 ;; 25955 esac 25956fi 25957# Don't AC_DEFINE result, only used in jit/Make-lang.in so far. 25958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5 25959$as_echo "$gcc_cv_ld_version_script" >&6; } 25960 25961 25962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5 25963$as_echo_n "checking linker soname option... " >&6; } 25964gcc_cv_ld_soname=no 25965if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then 25966 gcc_cv_ld_soname=yes 25967 ld_soname_option='-soname' 25968elif test x$gcc_cv_ld != x; then 25969 case "$target" in 25970 *-*-darwin*) 25971 gcc_cv_ld_soname=yes 25972 ld_soname_option='-install_name' 25973 ;; 25974 # Solaris 2 ld always supports -h. It also supports --soname for GNU 25975 # ld compatiblity since some Solaris 10 update. 25976 *-*-solaris2*) 25977 gcc_cv_ld_soname=yes 25978 ld_soname_option='-h' 25979 ;; 25980 esac 25981fi 25982# Don't AC_DEFINE result, only used in jit/Make-lang.in so far. 25983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5 25984$as_echo "$gcc_cv_ld_soname" >&6; } 25985 25986 25987if test x"$demangler_in_ld" = xyes; then 25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5 25989$as_echo_n "checking linker --demangle support... " >&6; } 25990 gcc_cv_ld_demangle=no 25991 if test $in_tree_ld = yes; then 25992 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \ 25993 gcc_cv_ld_demangle=yes 25994 fi 25995 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then 25996 # Check if the GNU linker supports --demangle option 25997 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then 25998 gcc_cv_ld_demangle=yes 25999 fi 26000 fi 26001 if test x"$gcc_cv_ld_demangle" = xyes; then 26002 26003$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h 26004 26005 fi 26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5 26007$as_echo "$gcc_cv_ld_demangle" >&6; } 26008fi 26009 26010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5 26011$as_echo_n "checking linker plugin support... " >&6; } 26012gcc_cv_lto_plugin=0 26013if test -f liblto_plugin.la; then 26014 save_ld_ver="$ld_ver" 26015 save_ld_vers_major="$ld_vers_major" 26016 save_ld_vers_minor="$ld_vers_minor" 26017 save_ld_is_gold="$ld_is_gold" 26018 26019 ld_is_gold=no 26020 26021 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then 26022 ld_ver="GNU ld" 26023 # FIXME: ld_is_gold? 26024 ld_vers_major="$gcc_cv_gld_major_version" 26025 ld_vers_minor="$gcc_cv_gld_minor_version" 26026 else 26027 # Determine plugin linker version. 26028 # FIXME: Partial duplicate from above, generalize. 26029 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q` 26030 if echo "$ld_ver" | grep GNU > /dev/null; then 26031 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then 26032 ld_is_gold=yes 26033 ld_vers=`echo $ld_ver | sed -n \ 26034 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 26035 else 26036 ld_vers=`echo $ld_ver | sed -n \ 26037 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 26038 fi 26039 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 26040 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 26041 fi 26042 fi 26043 26044 # Determine plugin support. 26045 if echo "$ld_ver" | grep GNU > /dev/null; then 26046 # Require GNU ld or gold 2.21+ for plugin support by default. 26047 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then 26048 gcc_cv_lto_plugin=2 26049 elif test "$ld_is_mold" = yes; then 26050 gcc_cv_lto_plugin=2 26051 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20. 26052 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then 26053 gcc_cv_lto_plugin=1 26054 fi 26055 fi 26056 26057 ld_ver="$save_ld_ver" 26058 ld_vers_major="$save_ld_vers_major" 26059 ld_vers_minor="$save_ld_vers_minor" 26060 ld_is_gold="$save_ld_is_gold" 26061fi 26062 26063cat >>confdefs.h <<_ACEOF 26064#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin 26065_ACEOF 26066 26067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5 26068$as_echo "$gcc_cv_lto_plugin" >&6; } 26069 26070# Target OS-specific assembler checks. 26071 26072case "$target_os" in 26073 darwin*) 26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5 26075$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; } 26076if ${gcc_cv_as_mmacosx_version_min+:} false; then : 26077 $as_echo_n "(cached) " >&6 26078else 26079 gcc_cv_as_mmacosx_version_min=no 26080 if test x$gcc_cv_as != x; then 26081 $as_echo '.text' > conftest.s 26082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5' 26083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26084 (eval $ac_try) 2>&5 26085 ac_status=$? 26086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26087 test $ac_status = 0; }; } 26088 then 26089 gcc_cv_as_mmacosx_version_min=yes 26090 else 26091 echo "configure: failed program was" >&5 26092 cat conftest.s >&5 26093 fi 26094 rm -f conftest.o conftest.s 26095 fi 26096fi 26097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5 26098$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; } 26099if test $gcc_cv_as_mmacosx_version_min = yes; then 26100 26101$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h 26102 26103fi 26104 26105 ;; 26106esac 26107 26108# Target CPU-specific assembler checks. 26109 26110case "$target" in 26111 aarch64*-*-*) 26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5 26113$as_echo_n "checking assembler for -mabi option... " >&6; } 26114if ${gcc_cv_as_aarch64_mabi+:} false; then : 26115 $as_echo_n "(cached) " >&6 26116else 26117 gcc_cv_as_aarch64_mabi=no 26118 if test x$gcc_cv_as != x; then 26119 $as_echo '.text' > conftest.s 26120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5' 26121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26122 (eval $ac_try) 2>&5 26123 ac_status=$? 26124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26125 test $ac_status = 0; }; } 26126 then 26127 gcc_cv_as_aarch64_mabi=yes 26128 else 26129 echo "configure: failed program was" >&5 26130 cat conftest.s >&5 26131 fi 26132 rm -f conftest.o conftest.s 26133 fi 26134fi 26135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5 26136$as_echo "$gcc_cv_as_aarch64_mabi" >&6; } 26137 26138 26139 if test x$gcc_cv_as_aarch64_mabi = xyes; then 26140 26141$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h 26142 26143 else 26144 if test x$with_abi = xilp32; then 26145 as_fn_error $? "Assembler does not support -mabi=ilp32.\ 26146 Upgrade the Assembler." "$LINENO" 5 26147 fi 26148 if test x"$with_multilib_list" = xdefault; then 26149 TM_MULTILIB_CONFIG=lp64 26150 else 26151 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'` 26152 for aarch64_multilib in ${aarch64_multilibs}; do 26153 case ${aarch64_multilib} in 26154 ilp32) 26155 as_fn_error $? "Assembler does not support -mabi=ilp32.\ 26156 Upgrade the Assembler." "$LINENO" 5 26157 ;; 26158 *) 26159 ;; 26160 esac 26161 done 26162 fi 26163 fi 26164 # Check if we have binutils support for relocations types needed by -fpic 26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5 26166$as_echo_n "checking assembler for -fpic relocs... " >&6; } 26167if ${gcc_cv_as_aarch64_picreloc+:} false; then : 26168 $as_echo_n "(cached) " >&6 26169else 26170 gcc_cv_as_aarch64_picreloc=no 26171 if test x$gcc_cv_as != x; then 26172 $as_echo ' 26173 .text 26174 ldr x0, [x2, #:gotpage_lo15:globalsym] 26175 ' > conftest.s 26176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26178 (eval $ac_try) 2>&5 26179 ac_status=$? 26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26181 test $ac_status = 0; }; } 26182 then 26183 gcc_cv_as_aarch64_picreloc=yes 26184 else 26185 echo "configure: failed program was" >&5 26186 cat conftest.s >&5 26187 fi 26188 rm -f conftest.o conftest.s 26189 fi 26190fi 26191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5 26192$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; } 26193if test $gcc_cv_as_aarch64_picreloc = yes; then 26194 26195$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h 26196 26197fi 26198 26199 # Enable Branch Target Identification Mechanism and Return Address 26200 # Signing by default. 26201 # Check whether --enable-standard-branch-protection was given. 26202if test "${enable_standard_branch_protection+set}" = set; then : 26203 enableval=$enable_standard_branch_protection; 26204 case $enableval in 26205 yes) 26206 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1" 26207 ;; 26208 no) 26209 ;; 26210 *) 26211 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\ 26212 Valid choices are 'yes' and 'no'." "$LINENO" 5 26213 ;; 26214 esac 26215 26216fi 26217 26218 # Enable default workaround for AArch64 Cortex-A53 erratum 835769. 26219 # Check whether --enable-fix-cortex-a53-835769 was given. 26220if test "${enable_fix_cortex_a53_835769+set}" = set; then : 26221 enableval=$enable_fix_cortex_a53_835769; 26222 case $enableval in 26223 yes) 26224 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1" 26225 ;; 26226 no) 26227 ;; 26228 *) 26229 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\ 26230 Valid choices are 'yes' and 'no'." "$LINENO" 5 26231 ;; 26232 26233 esac 26234 26235fi 26236 26237 # Enable default workaround for AArch64 Cortex-A53 erratum 843419. 26238 # Check whether --enable-fix-cortex-a53-843419 was given. 26239if test "${enable_fix_cortex_a53_843419+set}" = set; then : 26240 enableval=$enable_fix_cortex_a53_843419; 26241 case $enableval in 26242 yes) 26243 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1" 26244 ;; 26245 no) 26246 ;; 26247 *) 26248 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\ 26249 Valid choices are 'yes' and 'no'." "$LINENO" 5 26250 ;; 26251 26252 esac 26253 26254fi 26255 26256 ;; 26257 26258 # All TARGET_ABI_OSF targets. 26259 alpha*-*-linux* | alpha*-*-*bsd*) 26260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5 26261$as_echo_n "checking assembler for explicit relocation support... " >&6; } 26262if ${gcc_cv_as_alpha_explicit_relocs+:} false; then : 26263 $as_echo_n "(cached) " >&6 26264else 26265 gcc_cv_as_alpha_explicit_relocs=no 26266 if test x$gcc_cv_as != x; then 26267 $as_echo ' .set nomacro 26268 .text 26269 extbl $3, $2, $3 !lituse_bytoff!1 26270 ldq $2, a($29) !literal!1 26271 ldq $4, b($29) !literal!2 26272 ldq_u $3, 0($2) !lituse_base!1 26273 ldq $27, f($29) !literal!5 26274 jsr $26, ($27), f !lituse_jsr!5 26275 ldah $29, 0($26) !gpdisp!3 26276 lda $0, c($29) !gprel 26277 ldah $1, d($29) !gprelhigh 26278 lda $1, d($1) !gprellow 26279 lda $29, 0($29) !gpdisp!3' > conftest.s 26280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26282 (eval $ac_try) 2>&5 26283 ac_status=$? 26284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26285 test $ac_status = 0; }; } 26286 then 26287 gcc_cv_as_alpha_explicit_relocs=yes 26288 else 26289 echo "configure: failed program was" >&5 26290 cat conftest.s >&5 26291 fi 26292 rm -f conftest.o conftest.s 26293 fi 26294fi 26295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5 26296$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; } 26297if test $gcc_cv_as_alpha_explicit_relocs = yes; then 26298 26299$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h 26300 26301fi 26302 26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5 26304$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; } 26305if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then : 26306 $as_echo_n "(cached) " >&6 26307else 26308 gcc_cv_as_alpha_jsrdirect_relocs=no 26309 if test x$gcc_cv_as != x; then 26310 $as_echo ' .set nomacro 26311 .text 26312 ldq $27, a($29) !literal!1 26313 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s 26314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26316 (eval $ac_try) 2>&5 26317 ac_status=$? 26318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26319 test $ac_status = 0; }; } 26320 then 26321 gcc_cv_as_alpha_jsrdirect_relocs=yes 26322 else 26323 echo "configure: failed program was" >&5 26324 cat conftest.s >&5 26325 fi 26326 rm -f conftest.o conftest.s 26327 fi 26328fi 26329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5 26330$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; } 26331if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then 26332 26333$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h 26334 26335fi 26336 26337 ;; 26338 26339 avr-*-*) 26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5 26341$as_echo_n "checking assembler for --mlink-relax option... " >&6; } 26342if ${gcc_cv_as_avr_mlink_relax+:} false; then : 26343 $as_echo_n "(cached) " >&6 26344else 26345 gcc_cv_as_avr_mlink_relax=no 26346 if test x$gcc_cv_as != x; then 26347 $as_echo '.text' > conftest.s 26348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5' 26349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26350 (eval $ac_try) 2>&5 26351 ac_status=$? 26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26353 test $ac_status = 0; }; } 26354 then 26355 gcc_cv_as_avr_mlink_relax=yes 26356 else 26357 echo "configure: failed program was" >&5 26358 cat conftest.s >&5 26359 fi 26360 rm -f conftest.o conftest.s 26361 fi 26362fi 26363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5 26364$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; } 26365if test $gcc_cv_as_avr_mlink_relax = yes; then 26366 26367$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h 26368 26369fi 26370 26371 26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5 26373$as_echo_n "checking assembler for -mrmw option... " >&6; } 26374if ${gcc_cv_as_avr_mrmw+:} false; then : 26375 $as_echo_n "(cached) " >&6 26376else 26377 gcc_cv_as_avr_mrmw=no 26378 if test x$gcc_cv_as != x; then 26379 $as_echo '.text' > conftest.s 26380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5' 26381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26382 (eval $ac_try) 2>&5 26383 ac_status=$? 26384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26385 test $ac_status = 0; }; } 26386 then 26387 gcc_cv_as_avr_mrmw=yes 26388 else 26389 echo "configure: failed program was" >&5 26390 cat conftest.s >&5 26391 fi 26392 rm -f conftest.o conftest.s 26393 fi 26394fi 26395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5 26396$as_echo "$gcc_cv_as_avr_mrmw" >&6; } 26397if test $gcc_cv_as_avr_mrmw = yes; then 26398 26399$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h 26400 26401fi 26402 26403 26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5 26405$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; } 26406if ${gcc_cv_as_avr_mgccisr+:} false; then : 26407 $as_echo_n "(cached) " >&6 26408else 26409 gcc_cv_as_avr_mgccisr=no 26410 if test x$gcc_cv_as != x; then 26411 $as_echo '.text 26412 __gcc_isr 1 26413 __gcc_isr 2 26414 __gcc_isr 0,r24 26415 ' > conftest.s 26416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5' 26417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26418 (eval $ac_try) 2>&5 26419 ac_status=$? 26420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26421 test $ac_status = 0; }; } 26422 then 26423 gcc_cv_as_avr_mgccisr=yes 26424 else 26425 echo "configure: failed program was" >&5 26426 cat conftest.s >&5 26427 fi 26428 rm -f conftest.o conftest.s 26429 fi 26430fi 26431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5 26432$as_echo "$gcc_cv_as_avr_mgccisr" >&6; } 26433if test $gcc_cv_as_avr_mgccisr = yes; then 26434 26435$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h 26436 26437fi 26438 26439 26440 # Check how default linker description file implements .rodata for 26441 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to 26442 # RAM so avr-gcc skips __do_copy_data for .rodata objects. 26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5 26444$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; } 26445 cat > conftest.s <<EOF 26446 .section .rodata,"a",@progbits 26447 .global xxvaryy 26448 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy". 26449 xxvaryy: 26450 .word 1 26451EOF 26452 rm -f conftest.nm 26453 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o' 26454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26455 (eval $ac_try) 2>&5 26456 ac_status=$? 26457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26458 test $ac_status = 0; }; } 26459 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf' 26460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26461 (eval $ac_try) 2>&5 26462 ac_status=$? 26463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26464 test $ac_status = 0; }; } 26465 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm' 26466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26467 (eval $ac_try) 2>&5 26468 ac_status=$? 26469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26470 test $ac_status = 0; }; } 26471 if test -s conftest.nm 26472 then 26473 if grep ' R xxvaryy' conftest.nm > /dev/null; then 26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26475$as_echo "yes" >&6; } 26476 26477$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h 26478 26479 else 26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5 26481$as_echo "no: avrxmega3 .rodata located in RAM" >&6; } 26482 echo "$as_me: nm output was" >&5 26483 cat conftest.nm >&5 26484 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`" 26485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5 26486$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;} 26487 fi 26488 else 26489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 26490$as_echo "test failed" >&6; } 26491 echo "$as_me: failed program was" >&5 26492 cat conftest.s >&5 26493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5 26494$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;} 26495 fi 26496 rm -f conftest.s conftest.o conftest.elf conftest.nm 26497 ;; 26498 26499 cris-*-*) 26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5 26501$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; } 26502if ${gcc_cv_as_cris_no_mul_bug+:} false; then : 26503 $as_echo_n "(cached) " >&6 26504else 26505 gcc_cv_as_cris_no_mul_bug=no 26506 if test x$gcc_cv_as != x; then 26507 $as_echo '.text' > conftest.s 26508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5' 26509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26510 (eval $ac_try) 2>&5 26511 ac_status=$? 26512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26513 test $ac_status = 0; }; } 26514 then 26515 gcc_cv_as_cris_no_mul_bug=yes 26516 else 26517 echo "configure: failed program was" >&5 26518 cat conftest.s >&5 26519 fi 26520 rm -f conftest.o conftest.s 26521 fi 26522fi 26523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5 26524$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; } 26525if test $gcc_cv_as_cris_no_mul_bug = yes; then 26526 26527$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h 26528 26529fi 26530 26531 ;; 26532 26533 sparc*-*-*) 26534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5 26535$as_echo_n "checking assembler for -relax option... " >&6; } 26536if ${gcc_cv_as_sparc_relax+:} false; then : 26537 $as_echo_n "(cached) " >&6 26538else 26539 gcc_cv_as_sparc_relax=no 26540 if test x$gcc_cv_as != x; then 26541 $as_echo '.text' > conftest.s 26542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5' 26543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26544 (eval $ac_try) 2>&5 26545 ac_status=$? 26546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26547 test $ac_status = 0; }; } 26548 then 26549 gcc_cv_as_sparc_relax=yes 26550 else 26551 echo "configure: failed program was" >&5 26552 cat conftest.s >&5 26553 fi 26554 rm -f conftest.o conftest.s 26555 fi 26556fi 26557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5 26558$as_echo "$gcc_cv_as_sparc_relax" >&6; } 26559if test $gcc_cv_as_sparc_relax = yes; then 26560 26561$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h 26562 26563fi 26564 26565 26566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5 26567$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; } 26568if ${gcc_cv_as_sparc_gotdata_op+:} false; then : 26569 $as_echo_n "(cached) " >&6 26570else 26571 gcc_cv_as_sparc_gotdata_op=no 26572 if test x$gcc_cv_as != x; then 26573 $as_echo '.text 26574.align 4 26575foo: 26576 nop 26577bar: 26578 sethi %gdop_hix22(foo), %g1 26579 xor %g1, %gdop_lox10(foo), %g1 26580 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s 26581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26583 (eval $ac_try) 2>&5 26584 ac_status=$? 26585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26586 test $ac_status = 0; }; } 26587 then 26588 if test x$gcc_cv_ld != x \ 26589 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 26590 if test x$gcc_cv_objdump != x; then 26591 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \ 26592 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then 26593 gcc_cv_as_sparc_gotdata_op=no 26594 else 26595 gcc_cv_as_sparc_gotdata_op=yes 26596 fi 26597 fi 26598 fi 26599 rm -f conftest 26600 else 26601 echo "configure: failed program was" >&5 26602 cat conftest.s >&5 26603 fi 26604 rm -f conftest.o conftest.s 26605 fi 26606fi 26607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5 26608$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; } 26609if test $gcc_cv_as_sparc_gotdata_op = yes; then 26610 26611$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h 26612 26613fi 26614 26615 26616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5 26617$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; } 26618if ${gcc_cv_as_sparc_ua_pcrel+:} false; then : 26619 $as_echo_n "(cached) " >&6 26620else 26621 gcc_cv_as_sparc_ua_pcrel=no 26622 if test x$gcc_cv_as != x; then 26623 $as_echo '.text 26624foo: 26625 nop 26626.data 26627.align 4 26628.byte 0 26629.uaword %r_disp32(foo)' > conftest.s 26630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26632 (eval $ac_try) 2>&5 26633 ac_status=$? 26634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26635 test $ac_status = 0; }; } 26636 then 26637 if test x$gcc_cv_ld != x \ 26638 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 26639 gcc_cv_as_sparc_ua_pcrel=yes 26640 fi 26641 rm -f conftest 26642 else 26643 echo "configure: failed program was" >&5 26644 cat conftest.s >&5 26645 fi 26646 rm -f conftest.o conftest.s 26647 fi 26648fi 26649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5 26650$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; } 26651if test $gcc_cv_as_sparc_ua_pcrel = yes; then 26652 26653$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h 26654 26655 26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 26657$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; } 26658if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then : 26659 $as_echo_n "(cached) " >&6 26660else 26661 gcc_cv_as_sparc_ua_pcrel_hidden=no 26662 if test x$gcc_cv_as != x; then 26663 $as_echo '.data 26664.align 4 26665.byte 0x31 26666.uaword %r_disp32(foo) 26667.byte 0x32, 0x33, 0x34 26668.global foo 26669.hidden foo 26670foo: 26671.skip 4' > conftest.s 26672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26674 (eval $ac_try) 2>&5 26675 ac_status=$? 26676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26677 test $ac_status = 0; }; } 26678 then 26679 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 26680 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \ 26681 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \ 26682 | grep ' 31000000 07323334' > /dev/null 2>&1; then 26683 if $gcc_cv_objdump -R conftest 2> /dev/null \ 26684 | grep 'DISP32' > /dev/null 2>&1; then 26685 : 26686 else 26687 gcc_cv_as_sparc_ua_pcrel_hidden=yes 26688 fi 26689 fi 26690 rm -f conftest 26691 else 26692 echo "configure: failed program was" >&5 26693 cat conftest.s >&5 26694 fi 26695 rm -f conftest.o conftest.s 26696 fi 26697fi 26698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5 26699$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; } 26700if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then 26701 26702$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h 26703 26704fi 26705 26706 26707fi 26708 # unaligned pcrel relocs 26709 26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5 26711$as_echo_n "checking assembler for offsetable %lo()... " >&6; } 26712if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then : 26713 $as_echo_n "(cached) " >&6 26714else 26715 gcc_cv_as_sparc_offsetable_lo10=no 26716 if test x$gcc_cv_as != x; then 26717 $as_echo '.text 26718 or %g1, %lo(ab) + 12, %g1 26719 or %g1, %lo(ab + 12), %g1' > conftest.s 26720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5' 26721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26722 (eval $ac_try) 2>&5 26723 ac_status=$? 26724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26725 test $ac_status = 0; }; } 26726 then 26727 if test x$gcc_cv_objdump != x \ 26728 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \ 26729 | grep ' 82106000 82106000' > /dev/null 2>&1; then 26730 gcc_cv_as_sparc_offsetable_lo10=yes 26731 fi 26732 else 26733 echo "configure: failed program was" >&5 26734 cat conftest.s >&5 26735 fi 26736 rm -f conftest.o conftest.s 26737 fi 26738fi 26739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5 26740$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; } 26741if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then 26742 26743$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h 26744 26745fi 26746 26747 26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5 26749$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; } 26750if ${gcc_cv_as_sparc_fmaf+:} false; then : 26751 $as_echo_n "(cached) " >&6 26752else 26753 gcc_cv_as_sparc_fmaf=no 26754 if test x$gcc_cv_as != x; then 26755 $as_echo '.text 26756 .register %g2, #scratch 26757 .register %g3, #scratch 26758 .align 4 26759 fmaddd %f0, %f2, %f4, %f6 26760 addxccc %g1, %g2, %g3 26761 fsrl32 %f2, %f4, %f8 26762 fnaddd %f10, %f12, %f14' > conftest.s 26763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5' 26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26765 (eval $ac_try) 2>&5 26766 ac_status=$? 26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26768 test $ac_status = 0; }; } 26769 then 26770 gcc_cv_as_sparc_fmaf=yes 26771 else 26772 echo "configure: failed program was" >&5 26773 cat conftest.s >&5 26774 fi 26775 rm -f conftest.o conftest.s 26776 fi 26777fi 26778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5 26779$as_echo "$gcc_cv_as_sparc_fmaf" >&6; } 26780if test $gcc_cv_as_sparc_fmaf = yes; then 26781 26782$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h 26783 26784fi 26785 26786 26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5 26788$as_echo_n "checking assembler for SPARC4 instructions... " >&6; } 26789if ${gcc_cv_as_sparc_sparc4+:} false; then : 26790 $as_echo_n "(cached) " >&6 26791else 26792 gcc_cv_as_sparc_sparc4=no 26793 if test x$gcc_cv_as != x; then 26794 $as_echo '.text 26795 .register %g2, #scratch 26796 .register %g3, #scratch 26797 .align 4 26798 cxbe %g2, %g3, 1f 267991: cwbneg %g2, %g3, 1f 268001: sha1 26801 md5 26802 aes_kexpand0 %f4, %f6, %f8 26803 des_round %f38, %f40, %f42, %f44 26804 camellia_f %f54, %f56, %f58, %f60 26805 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s 26806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5' 26807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26808 (eval $ac_try) 2>&5 26809 ac_status=$? 26810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26811 test $ac_status = 0; }; } 26812 then 26813 gcc_cv_as_sparc_sparc4=yes 26814 else 26815 echo "configure: failed program was" >&5 26816 cat conftest.s >&5 26817 fi 26818 rm -f conftest.o conftest.s 26819 fi 26820fi 26821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5 26822$as_echo "$gcc_cv_as_sparc_sparc4" >&6; } 26823if test $gcc_cv_as_sparc_sparc4 = yes; then 26824 26825$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h 26826 26827fi 26828 26829 26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5 26831$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; } 26832if ${gcc_cv_as_sparc_sparc5+:} false; then : 26833 $as_echo_n "(cached) " >&6 26834else 26835 gcc_cv_as_sparc_sparc5=no 26836 if test x$gcc_cv_as != x; then 26837 $as_echo '.text 26838 .register %g2, #scratch 26839 .register %g3, #scratch 26840 .align 4 26841 subxc %g1, %g2, %g3 26842 fpadd8 %f0, %f2, %f4' > conftest.s 26843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5' 26844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26845 (eval $ac_try) 2>&5 26846 ac_status=$? 26847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26848 test $ac_status = 0; }; } 26849 then 26850 gcc_cv_as_sparc_sparc5=yes 26851 else 26852 echo "configure: failed program was" >&5 26853 cat conftest.s >&5 26854 fi 26855 rm -f conftest.o conftest.s 26856 fi 26857fi 26858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5 26859$as_echo "$gcc_cv_as_sparc_sparc5" >&6; } 26860if test $gcc_cv_as_sparc_sparc5 = yes; then 26861 26862$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h 26863 26864fi 26865 26866 26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5 26868$as_echo_n "checking assembler for SPARC6 instructions... " >&6; } 26869if ${gcc_cv_as_sparc_sparc6+:} false; then : 26870 $as_echo_n "(cached) " >&6 26871else 26872 gcc_cv_as_sparc_sparc6=no 26873 if test x$gcc_cv_as != x; then 26874 $as_echo '.text 26875 .register %g2, #scratch 26876 .register %g3, #scratch 26877 .align 4 26878 rd %entropy, %g1 26879 fpsll64x %f0, %f2, %f4' > conftest.s 26880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5' 26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26882 (eval $ac_try) 2>&5 26883 ac_status=$? 26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26885 test $ac_status = 0; }; } 26886 then 26887 gcc_cv_as_sparc_sparc6=yes 26888 else 26889 echo "configure: failed program was" >&5 26890 cat conftest.s >&5 26891 fi 26892 rm -f conftest.o conftest.s 26893 fi 26894fi 26895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5 26896$as_echo "$gcc_cv_as_sparc_sparc6" >&6; } 26897if test $gcc_cv_as_sparc_sparc6 = yes; then 26898 26899$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h 26900 26901fi 26902 26903 26904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5 26905$as_echo_n "checking assembler for LEON instructions... " >&6; } 26906if ${gcc_cv_as_sparc_leon+:} false; then : 26907 $as_echo_n "(cached) " >&6 26908else 26909 gcc_cv_as_sparc_leon=no 26910 if test x$gcc_cv_as != x; then 26911 $as_echo '.text 26912 .register %g2, #scratch 26913 .register %g3, #scratch 26914 .align 4 26915 smac %g2, %g3, %g1 26916 umac %g2, %g3, %g1 26917 casa [%g2] 0xb, %g3, %g1' > conftest.s 26918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5' 26919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26920 (eval $ac_try) 2>&5 26921 ac_status=$? 26922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26923 test $ac_status = 0; }; } 26924 then 26925 gcc_cv_as_sparc_leon=yes 26926 else 26927 echo "configure: failed program was" >&5 26928 cat conftest.s >&5 26929 fi 26930 rm -f conftest.o conftest.s 26931 fi 26932fi 26933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5 26934$as_echo "$gcc_cv_as_sparc_leon" >&6; } 26935if test $gcc_cv_as_sparc_leon = yes; then 26936 26937$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h 26938 26939fi 26940 26941 ;; 26942 26943 i[34567]86-*-* | x86_64-*-*) 26944 case $target_os in 26945 cygwin*) 26946 # Full C++ conformance when using a shared libstdc++-v3 requires some 26947 # support from the Cygwin DLL, which in more recent versions exports 26948 # wrappers to aid in interposing and redirecting operators new, delete, 26949 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we 26950 # are configuring for a version of Cygwin that exports the wrappers. 26951 if test x$host = x$target && test x$host_cpu = xi686; then 26952 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj" 26953if test "x$ac_cv_func___wrap__Znaj" = xyes; then : 26954 gcc_ac_cygwin_dll_wrappers=yes 26955else 26956 gcc_ac_cygwin_dll_wrappers=no 26957fi 26958 26959 else 26960 # Can't check presence of libc functions during cross-compile, so 26961 # we just have to assume we're building for an up-to-date target. 26962 gcc_ac_cygwin_dll_wrappers=yes 26963 fi 26964 26965cat >>confdefs.h <<_ACEOF 26966#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi` 26967_ACEOF 26968 26969 esac 26970 case $target_os in 26971 cygwin* | pe | mingw32*) 26972 # Recent binutils allows the three-operand form of ".comm" on PE. This 26973 # definition is used unconditionally to initialise the default state of 26974 # the target option variable that governs usage of the feature. 26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5 26976$as_echo_n "checking assembler for .comm with alignment... " >&6; } 26977if ${gcc_cv_as_comm_has_align+:} false; then : 26978 $as_echo_n "(cached) " >&6 26979else 26980 gcc_cv_as_comm_has_align=no 26981 if test x$gcc_cv_as != x; then 26982 $as_echo '.comm foo,1,32' > conftest.s 26983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26985 (eval $ac_try) 2>&5 26986 ac_status=$? 26987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26988 test $ac_status = 0; }; } 26989 then 26990 gcc_cv_as_comm_has_align=yes 26991 else 26992 echo "configure: failed program was" >&5 26993 cat conftest.s >&5 26994 fi 26995 rm -f conftest.o conftest.s 26996 fi 26997fi 26998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5 26999$as_echo "$gcc_cv_as_comm_has_align" >&6; } 27000 27001 27002 27003cat >>confdefs.h <<_ACEOF 27004#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi` 27005_ACEOF 27006 27007 # Used for DWARF 2 in PE 27008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5 27009$as_echo_n "checking assembler for .secrel32 relocs... " >&6; } 27010if ${gcc_cv_as_ix86_pe_secrel32+:} false; then : 27011 $as_echo_n "(cached) " >&6 27012else 27013 gcc_cv_as_ix86_pe_secrel32=no 27014 if test x$gcc_cv_as != x; then 27015 $as_echo '.text 27016foo: nop 27017.data 27018 .secrel32 foo' > conftest.s 27019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27021 (eval $ac_try) 2>&5 27022 ac_status=$? 27023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27024 test $ac_status = 0; }; } 27025 then 27026 if test x$gcc_cv_ld != x \ 27027 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then 27028 gcc_cv_as_ix86_pe_secrel32=yes 27029 fi 27030 rm -f conftest 27031 else 27032 echo "configure: failed program was" >&5 27033 cat conftest.s >&5 27034 fi 27035 rm -f conftest.o conftest.s 27036 fi 27037fi 27038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5 27039$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; } 27040if test $gcc_cv_as_ix86_pe_secrel32 = yes; then 27041 27042$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h 27043 27044fi 27045 27046 # Test if the assembler supports the extended form of the .section 27047 # directive that specifies section alignment. LTO support uses this, 27048 # but normally only after installation, so we warn but don't fail the 27049 # configure if LTO is enabled but the assembler does not support it. 27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5 27051$as_echo_n "checking assembler for .section with alignment... " >&6; } 27052if ${gcc_cv_as_section_has_align+:} false; then : 27053 $as_echo_n "(cached) " >&6 27054else 27055 gcc_cv_as_section_has_align=no 27056 if test x$gcc_cv_as != x; then 27057 $as_echo '.section lto_test,"dr0"' > conftest.s 27058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5' 27059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27060 (eval $ac_try) 2>&5 27061 ac_status=$? 27062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27063 test $ac_status = 0; }; } 27064 then 27065 gcc_cv_as_section_has_align=yes 27066 else 27067 echo "configure: failed program was" >&5 27068 cat conftest.s >&5 27069 fi 27070 rm -f conftest.o conftest.s 27071 fi 27072fi 27073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5 27074$as_echo "$gcc_cv_as_section_has_align" >&6; } 27075 27076 27077 if test x$gcc_cv_as_section_has_align != xyes; then 27078 case ",$enable_languages," in 27079 *,lto,*) 27080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5 27081$as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;} 27082 ;; 27083 esac 27084 fi 27085 ;; 27086 esac 27087 case $target_os in 27088 darwin2* | darwin19*) 27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5 27090$as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; } 27091if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then : 27092 $as_echo_n "(cached) " >&6 27093else 27094 gcc_cv_as_mllvm_x86_pad_for_align=no 27095 if test x$gcc_cv_as != x; then 27096 $as_echo '.text' > conftest.s 27097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5' 27098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27099 (eval $ac_try) 2>&5 27100 ac_status=$? 27101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27102 test $ac_status = 0; }; } 27103 then 27104 gcc_cv_as_mllvm_x86_pad_for_align=yes 27105 else 27106 echo "configure: failed program was" >&5 27107 cat conftest.s >&5 27108 fi 27109 rm -f conftest.o conftest.s 27110 fi 27111fi 27112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5 27113$as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; } 27114if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then 27115 27116$as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h 27117 27118fi 27119 27120 ;; 27121 esac 27122 27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5 27124$as_echo_n "checking assembler for -xbrace_comment... " >&6; } 27125if ${gcc_cv_as_ix86_xbrace_comment+:} false; then : 27126 $as_echo_n "(cached) " >&6 27127else 27128 gcc_cv_as_ix86_xbrace_comment=no 27129 if test x$gcc_cv_as != x; then 27130 $as_echo '.text' > conftest.s 27131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5' 27132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27133 (eval $ac_try) 2>&5 27134 ac_status=$? 27135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27136 test $ac_status = 0; }; } 27137 then 27138 gcc_cv_as_ix86_xbrace_comment=yes 27139 else 27140 echo "configure: failed program was" >&5 27141 cat conftest.s >&5 27142 fi 27143 rm -f conftest.o conftest.s 27144 fi 27145fi 27146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5 27147$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; } 27148if test $gcc_cv_as_ix86_xbrace_comment = yes; then 27149 27150$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h 27151 27152fi 27153 27154 27155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5 27156$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; } 27157if ${gcc_cv_as_ix86_filds+:} false; then : 27158 $as_echo_n "(cached) " >&6 27159else 27160 gcc_cv_as_ix86_filds=no 27161 if test x$gcc_cv_as != x; then 27162 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s 27163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27165 (eval $ac_try) 2>&5 27166 ac_status=$? 27167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27168 test $ac_status = 0; }; } 27169 then 27170 gcc_cv_as_ix86_filds=yes 27171 else 27172 echo "configure: failed program was" >&5 27173 cat conftest.s >&5 27174 fi 27175 rm -f conftest.o conftest.s 27176 fi 27177fi 27178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5 27179$as_echo "$gcc_cv_as_ix86_filds" >&6; } 27180if test $gcc_cv_as_ix86_filds = yes; then 27181 27182$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h 27183 27184fi 27185 27186 27187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5 27188$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; } 27189if ${gcc_cv_as_ix86_fildq+:} false; then : 27190 $as_echo_n "(cached) " >&6 27191else 27192 gcc_cv_as_ix86_fildq=no 27193 if test x$gcc_cv_as != x; then 27194 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s 27195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27197 (eval $ac_try) 2>&5 27198 ac_status=$? 27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27200 test $ac_status = 0; }; } 27201 then 27202 gcc_cv_as_ix86_fildq=yes 27203 else 27204 echo "configure: failed program was" >&5 27205 cat conftest.s >&5 27206 fi 27207 rm -f conftest.o conftest.s 27208 fi 27209fi 27210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5 27211$as_echo "$gcc_cv_as_ix86_fildq" >&6; } 27212if test $gcc_cv_as_ix86_fildq = yes; then 27213 27214$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h 27215 27216fi 27217 27218 27219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5 27220$as_echo_n "checking assembler for cmov syntax... " >&6; } 27221if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then : 27222 $as_echo_n "(cached) " >&6 27223else 27224 gcc_cv_as_ix86_cmov_sun_syntax=no 27225 if test x$gcc_cv_as != x; then 27226 $as_echo 'cmovl.l %edx, %eax' > conftest.s 27227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27229 (eval $ac_try) 2>&5 27230 ac_status=$? 27231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27232 test $ac_status = 0; }; } 27233 then 27234 gcc_cv_as_ix86_cmov_sun_syntax=yes 27235 else 27236 echo "configure: failed program was" >&5 27237 cat conftest.s >&5 27238 fi 27239 rm -f conftest.o conftest.s 27240 fi 27241fi 27242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5 27243$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; } 27244if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then 27245 27246$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h 27247 27248fi 27249 27250 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5 27252$as_echo_n "checking assembler for ffreep mnemonic... " >&6; } 27253if ${gcc_cv_as_ix86_ffreep+:} false; then : 27254 $as_echo_n "(cached) " >&6 27255else 27256 gcc_cv_as_ix86_ffreep=no 27257 if test x$gcc_cv_as != x; then 27258 $as_echo 'ffreep %st(1)' > conftest.s 27259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27261 (eval $ac_try) 2>&5 27262 ac_status=$? 27263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27264 test $ac_status = 0; }; } 27265 then 27266 gcc_cv_as_ix86_ffreep=yes 27267 else 27268 echo "configure: failed program was" >&5 27269 cat conftest.s >&5 27270 fi 27271 rm -f conftest.o conftest.s 27272 fi 27273fi 27274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5 27275$as_echo "$gcc_cv_as_ix86_ffreep" >&6; } 27276if test $gcc_cv_as_ix86_ffreep = yes; then 27277 27278$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h 27279 27280fi 27281 27282 27283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5 27284$as_echo_n "checking assembler for .quad directive... " >&6; } 27285if ${gcc_cv_as_ix86_quad+:} false; then : 27286 $as_echo_n "(cached) " >&6 27287else 27288 gcc_cv_as_ix86_quad=no 27289 if test x$gcc_cv_as != x; then 27290 $as_echo '.quad 0' > conftest.s 27291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27293 (eval $ac_try) 2>&5 27294 ac_status=$? 27295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27296 test $ac_status = 0; }; } 27297 then 27298 gcc_cv_as_ix86_quad=yes 27299 else 27300 echo "configure: failed program was" >&5 27301 cat conftest.s >&5 27302 fi 27303 rm -f conftest.o conftest.s 27304 fi 27305fi 27306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5 27307$as_echo "$gcc_cv_as_ix86_quad" >&6; } 27308if test $gcc_cv_as_ix86_quad = yes; then 27309 27310$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h 27311 27312fi 27313 27314 27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5 27316$as_echo_n "checking assembler for sahf mnemonic... " >&6; } 27317if ${gcc_cv_as_ix86_sahf+:} false; then : 27318 $as_echo_n "(cached) " >&6 27319else 27320 gcc_cv_as_ix86_sahf=no 27321 if test x$gcc_cv_as != x; then 27322 $as_echo '.code64 27323 sahf' > conftest.s 27324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27326 (eval $ac_try) 2>&5 27327 ac_status=$? 27328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27329 test $ac_status = 0; }; } 27330 then 27331 gcc_cv_as_ix86_sahf=yes 27332 else 27333 echo "configure: failed program was" >&5 27334 cat conftest.s >&5 27335 fi 27336 rm -f conftest.o conftest.s 27337 fi 27338fi 27339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5 27340$as_echo "$gcc_cv_as_ix86_sahf" >&6; } 27341if test $gcc_cv_as_ix86_sahf = yes; then 27342 27343$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h 27344 27345fi 27346 27347 27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5 27349$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; } 27350if ${gcc_cv_as_ix86_interunit_movq+:} false; then : 27351 $as_echo_n "(cached) " >&6 27352else 27353 gcc_cv_as_ix86_interunit_movq=no 27354 if test x$gcc_cv_as != x; then 27355 $as_echo '.code64 27356 movq %mm0, %rax 27357 movq %rax, %xmm0' > conftest.s 27358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27360 (eval $ac_try) 2>&5 27361 ac_status=$? 27362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27363 test $ac_status = 0; }; } 27364 then 27365 gcc_cv_as_ix86_interunit_movq=yes 27366 else 27367 echo "configure: failed program was" >&5 27368 cat conftest.s >&5 27369 fi 27370 rm -f conftest.o conftest.s 27371 fi 27372fi 27373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5 27374$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; } 27375 27376 27377 27378cat >>confdefs.h <<_ACEOF 27379#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi` 27380_ACEOF 27381 27382 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5 27384$as_echo_n "checking assembler for hle prefixes... " >&6; } 27385if ${gcc_cv_as_ix86_hle+:} false; then : 27386 $as_echo_n "(cached) " >&6 27387else 27388 gcc_cv_as_ix86_hle=no 27389 if test x$gcc_cv_as != x; then 27390 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s 27391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27393 (eval $ac_try) 2>&5 27394 ac_status=$? 27395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27396 test $ac_status = 0; }; } 27397 then 27398 gcc_cv_as_ix86_hle=yes 27399 else 27400 echo "configure: failed program was" >&5 27401 cat conftest.s >&5 27402 fi 27403 rm -f conftest.o conftest.s 27404 fi 27405fi 27406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5 27407$as_echo "$gcc_cv_as_ix86_hle" >&6; } 27408if test $gcc_cv_as_ix86_hle = yes; then 27409 27410$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h 27411 27412fi 27413 27414 27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5 27416$as_echo_n "checking assembler for swap suffix... " >&6; } 27417if ${gcc_cv_as_ix86_swap+:} false; then : 27418 $as_echo_n "(cached) " >&6 27419else 27420 gcc_cv_as_ix86_swap=no 27421 if test x$gcc_cv_as != x; then 27422 $as_echo 'movl.s %esp, %ebp' > conftest.s 27423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27425 (eval $ac_try) 2>&5 27426 ac_status=$? 27427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27428 test $ac_status = 0; }; } 27429 then 27430 gcc_cv_as_ix86_swap=yes 27431 else 27432 echo "configure: failed program was" >&5 27433 cat conftest.s >&5 27434 fi 27435 rm -f conftest.o conftest.s 27436 fi 27437fi 27438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5 27439$as_echo "$gcc_cv_as_ix86_swap" >&6; } 27440if test $gcc_cv_as_ix86_swap = yes; then 27441 27442$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h 27443 27444fi 27445 27446 27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5 27448$as_echo_n "checking assembler for different section symbol subtraction... " >&6; } 27449if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then : 27450 $as_echo_n "(cached) " >&6 27451else 27452 gcc_cv_as_ix86_diff_sect_delta=no 27453 if test x$gcc_cv_as != x; then 27454 $as_echo '.section .rodata 27455.L1: 27456 .long .L2-.L1 27457 .long .L3-.L1 27458 .text 27459.L3: nop 27460.L2: nop' > conftest.s 27461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27463 (eval $ac_try) 2>&5 27464 ac_status=$? 27465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27466 test $ac_status = 0; }; } 27467 then 27468 gcc_cv_as_ix86_diff_sect_delta=yes 27469 else 27470 echo "configure: failed program was" >&5 27471 cat conftest.s >&5 27472 fi 27473 rm -f conftest.o conftest.s 27474 fi 27475fi 27476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5 27477$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; } 27478if test $gcc_cv_as_ix86_diff_sect_delta = yes; then 27479 27480$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h 27481 27482fi 27483 27484 27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5 27486$as_echo_n "checking assembler for rep and lock prefix... " >&6; } 27487if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then : 27488 $as_echo_n "(cached) " >&6 27489else 27490 gcc_cv_as_ix86_rep_lock_prefix=no 27491 if test x$gcc_cv_as != x; then 27492 $as_echo 'rep movsl 27493 rep ret 27494 rep nop 27495 rep bsf %ecx, %eax 27496 rep bsr %ecx, %eax 27497 lock addl %edi, (%eax,%esi) 27498 lock orl $0, (%esp)' > conftest.s 27499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27501 (eval $ac_try) 2>&5 27502 ac_status=$? 27503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27504 test $ac_status = 0; }; } 27505 then 27506 gcc_cv_as_ix86_rep_lock_prefix=yes 27507 else 27508 echo "configure: failed program was" >&5 27509 cat conftest.s >&5 27510 fi 27511 rm -f conftest.o conftest.s 27512 fi 27513fi 27514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5 27515$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; } 27516if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then 27517 27518$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h 27519 27520fi 27521 27522 27523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5 27524$as_echo_n "checking assembler for ud2 mnemonic... " >&6; } 27525if ${gcc_cv_as_ix86_ud2+:} false; then : 27526 $as_echo_n "(cached) " >&6 27527else 27528 gcc_cv_as_ix86_ud2=no 27529 if test x$gcc_cv_as != x; then 27530 $as_echo 'ud2' > conftest.s 27531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27533 (eval $ac_try) 2>&5 27534 ac_status=$? 27535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27536 test $ac_status = 0; }; } 27537 then 27538 gcc_cv_as_ix86_ud2=yes 27539 else 27540 echo "configure: failed program was" >&5 27541 cat conftest.s >&5 27542 fi 27543 rm -f conftest.o conftest.s 27544 fi 27545fi 27546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5 27547$as_echo "$gcc_cv_as_ix86_ud2" >&6; } 27548if test $gcc_cv_as_ix86_ud2 = yes; then 27549 27550$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h 27551 27552fi 27553 27554 27555 # Enforce 32-bit output with gas and gld. 27556 if test x$gas = xyes; then 27557 as_ix86_gas_32_opt="--32" 27558 fi 27559 if echo "$ld_ver" | grep GNU > /dev/null; then 27560 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then 27561 ld_ix86_gld_32_opt="-melf_i386_sol2" 27562 else 27563 ld_ix86_gld_32_opt="-melf_i386" 27564 fi 27565 fi 27566 27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5 27568$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; } 27569if ${gcc_cv_as_ix86_tlsgdplt+:} false; then : 27570 $as_echo_n "(cached) " >&6 27571else 27572 gcc_cv_as_ix86_tlsgdplt=no 27573 if test x$gcc_cv_as != x; then 27574 $as_echo 'call tls_gd@tlsgdplt' > conftest.s 27575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27577 (eval $ac_try) 2>&5 27578 ac_status=$? 27579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27580 test $ac_status = 0; }; } 27581 then 27582 if test x$gcc_cv_ld != x \ 27583 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then 27584 gcc_cv_as_ix86_tlsgdplt=yes 27585 fi 27586 rm -f conftest 27587 else 27588 echo "configure: failed program was" >&5 27589 cat conftest.s >&5 27590 fi 27591 rm -f conftest.o conftest.s 27592 fi 27593fi 27594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5 27595$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; } 27596if test $gcc_cv_as_ix86_tlsgdplt = yes; then 27597 27598$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h 27599 27600fi 27601 27602 27603 conftest_s=' 27604 .section .tdata,"aw'$tls_section_flag'",@progbits 27605tls_ld: 27606 .section .text,"ax",@progbits 27607 call tls_ld@tlsldmplt' 27608 27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5 27610$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; } 27611if ${gcc_cv_as_ix86_tlsldmplt+:} false; then : 27612 $as_echo_n "(cached) " >&6 27613else 27614 gcc_cv_as_ix86_tlsldmplt=no 27615 if test x$gcc_cv_as != x; then 27616 $as_echo "$conftest_s" > conftest.s 27617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27619 (eval $ac_try) 2>&5 27620 ac_status=$? 27621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27622 test $ac_status = 0; }; } 27623 then 27624 if test x$gcc_cv_ld != x \ 27625 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then 27626 gcc_cv_as_ix86_tlsldmplt=yes 27627 fi 27628 rm -f conftest 27629 else 27630 echo "configure: failed program was" >&5 27631 cat conftest.s >&5 27632 fi 27633 rm -f conftest.o conftest.s 27634 fi 27635fi 27636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5 27637$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; } 27638 27639 27640 27641cat >>confdefs.h <<_ACEOF 27642#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi` 27643_ACEOF 27644 27645 27646 conftest_s=' 27647 .section .text,"ax",@progbits 27648 .globl _start 27649 .type _start, @function 27650_start: 27651 leal value@tlsldm(%ebx), %eax 27652 call ___tls_get_addr@plt 27653 27654 .section .tdata,"aw'$tls_section_flag'",@progbits 27655 .type value, @object 27656value:' 27657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5 27658$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; } 27659if ${gcc_cv_as_ix86_tlsldm+:} false; then : 27660 $as_echo_n "(cached) " >&6 27661else 27662 gcc_cv_as_ix86_tlsldm=no 27663 if test x$gcc_cv_as != x; then 27664 $as_echo "$conftest_s" > conftest.s 27665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27667 (eval $ac_try) 2>&5 27668 ac_status=$? 27669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27670 test $ac_status = 0; }; } 27671 then 27672 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 27673 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then 27674 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \ 27675 || dis conftest 2>/dev/null | grep nop > /dev/null; then 27676 gcc_cv_as_ix86_tlsldm=yes 27677 fi 27678 fi 27679 rm -f conftest 27680 else 27681 echo "configure: failed program was" >&5 27682 cat conftest.s >&5 27683 fi 27684 rm -f conftest.o conftest.s 27685 fi 27686fi 27687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5 27688$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; } 27689 27690 27691 27692cat >>confdefs.h <<_ACEOF 27693#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi` 27694_ACEOF 27695 27696 27697 conftest_s=' 27698 .data 27699bar: 27700 .byte 1 27701 .text 27702 .global _start 27703_start: 27704 cmpl $0, bar@GOT 27705 jmp *_start@GOT' 27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5 27707$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; } 27708if ${gcc_cv_as_ix86_got32x+:} false; then : 27709 $as_echo_n "(cached) " >&6 27710else 27711 gcc_cv_as_ix86_got32x=no 27712 if test x$gcc_cv_as != x; then 27713 $as_echo "$conftest_s" > conftest.s 27714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27716 (eval $ac_try) 2>&5 27717 ac_status=$? 27718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27719 test $ac_status = 0; }; } 27720 then 27721 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 27722 && test x$gcc_cv_readelf != x \ 27723 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \ 27724 | grep R_386_GOT32X > /dev/null 2>&1 \ 27725 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then 27726 if $gcc_cv_objdump -dw conftest 2>&1 \ 27727 | grep 0xffffff > /dev/null 2>&1; then 27728 gcc_cv_as_ix86_got32x=no 27729 else 27730 gcc_cv_as_ix86_got32x=yes 27731 fi 27732 fi 27733 rm -f conftest 27734 else 27735 echo "configure: failed program was" >&5 27736 cat conftest.s >&5 27737 fi 27738 rm -f conftest.o conftest.s 27739 fi 27740fi 27741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5 27742$as_echo "$gcc_cv_as_ix86_got32x" >&6; } 27743 27744 27745 27746cat >>confdefs.h <<_ACEOF 27747#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi` 27748_ACEOF 27749 27750 27751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5 27752$as_echo_n "checking assembler for GOTOFF in data... " >&6; } 27753if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then : 27754 $as_echo_n "(cached) " >&6 27755else 27756 gcc_cv_as_ix86_gotoff_in_data=no 27757 if test x$gcc_cv_as != x; then 27758 $as_echo ' .text 27759.L0: 27760 nop 27761 .data 27762 .long .L0@GOTOFF' > conftest.s 27763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27765 (eval $ac_try) 2>&5 27766 ac_status=$? 27767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27768 test $ac_status = 0; }; } 27769 then 27770 gcc_cv_as_ix86_gotoff_in_data=yes 27771 else 27772 echo "configure: failed program was" >&5 27773 cat conftest.s >&5 27774 fi 27775 rm -f conftest.o conftest.s 27776 fi 27777fi 27778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5 27779$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; } 27780 27781 27782 27783cat >>confdefs.h <<_ACEOF 27784#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi` 27785_ACEOF 27786 27787 27788 conftest_s=' 27789 .section .text,"ax",@progbits 27790 .globl _start 27791 .type _start, @function 27792_start: 27793 leal ld@tlsldm(%ecx), %eax 27794 call *___tls_get_addr@GOT(%ecx) 27795 leal gd@tlsgd(%ecx), %eax 27796 call *___tls_get_addr@GOT(%ecx) 27797 27798 .section .tdata,"aw'$tls_section_flag'",@progbits 27799 .type ld, @object 27800ld: 27801 .byte 0 27802 .globl gd 27803 .type gd, @object 27804gd: 27805 .byte 0' 27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5 27807$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; } 27808if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then : 27809 $as_echo_n "(cached) " >&6 27810else 27811 gcc_cv_as_ix86_tls_get_addr_via_got=no 27812 if test x$gcc_cv_as != x; then 27813 $as_echo "$conftest_s" > conftest.s 27814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27816 (eval $ac_try) 2>&5 27817 ac_status=$? 27818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27819 test $ac_status = 0; }; } 27820 then 27821 if test x$gcc_cv_ld != x \ 27822 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then 27823 gcc_cv_as_ix86_tls_get_addr_via_got=yes 27824 fi 27825 rm -f conftest 27826 else 27827 echo "configure: failed program was" >&5 27828 cat conftest.s >&5 27829 fi 27830 rm -f conftest.o conftest.s 27831 fi 27832fi 27833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5 27834$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; } 27835 27836 27837 27838cat >>confdefs.h <<_ACEOF 27839#define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi` 27840_ACEOF 27841 27842 ;; 27843 27844 ia64*-*-*) 27845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5 27846$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; } 27847if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then : 27848 $as_echo_n "(cached) " >&6 27849else 27850 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no 27851 if test x$gcc_cv_as != x; then 27852 $as_echo ' .text 27853 addl r15 = @ltoffx(x#), gp 27854 ;; 27855 ld8.mov r16 = [r15], x# 27856' > conftest.s 27857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27859 (eval $ac_try) 2>&5 27860 ac_status=$? 27861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27862 test $ac_status = 0; }; } 27863 then 27864 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes 27865 else 27866 echo "configure: failed program was" >&5 27867 cat conftest.s >&5 27868 fi 27869 rm -f conftest.o conftest.s 27870 fi 27871fi 27872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5 27873$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; } 27874if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then 27875 27876$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h 27877 27878fi 27879 27880 27881 ;; 27882 27883 powerpc*-*-*) 27884 27885 case $target in 27886 *-*-darwin*) 27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5 27888$as_echo_n "checking assembler for .machine directive support... " >&6; } 27889if ${gcc_cv_as_machine_directive+:} false; then : 27890 $as_echo_n "(cached) " >&6 27891else 27892 gcc_cv_as_machine_directive=no 27893 if test x$gcc_cv_as != x; then 27894 $as_echo ' .machine ppc7400' > conftest.s 27895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27897 (eval $ac_try) 2>&5 27898 ac_status=$? 27899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27900 test $ac_status = 0; }; } 27901 then 27902 gcc_cv_as_machine_directive=yes 27903 else 27904 echo "configure: failed program was" >&5 27905 cat conftest.s >&5 27906 fi 27907 rm -f conftest.o conftest.s 27908 fi 27909fi 27910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5 27911$as_echo "$gcc_cv_as_machine_directive" >&6; } 27912 27913 27914 if test x$gcc_cv_as_machine_directive != xyes; then 27915 echo "*** This target requires an assembler supporting \".machine\"" >&2 27916 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2 27917 test x$build = x$target && exit 1 27918 fi 27919 ;; 27920 esac 27921 27922 case $target in 27923 *-*-aix*) conftest_s=' .machine "pwr5" 27924 .csect .text[PR] 27925 mfcr 3,128';; 27926 *-*-darwin*) conftest_s=' .text 27927 mfcr r3,128';; 27928 *) conftest_s=' .machine power4 27929 .text 27930 mfcr 3,128';; 27931 esac 27932 27933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5 27934$as_echo_n "checking assembler for mfcr field support... " >&6; } 27935if ${gcc_cv_as_powerpc_mfcrf+:} false; then : 27936 $as_echo_n "(cached) " >&6 27937else 27938 gcc_cv_as_powerpc_mfcrf=no 27939 if test x$gcc_cv_as != x; then 27940 $as_echo "$conftest_s" > conftest.s 27941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27943 (eval $ac_try) 2>&5 27944 ac_status=$? 27945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27946 test $ac_status = 0; }; } 27947 then 27948 gcc_cv_as_powerpc_mfcrf=yes 27949 else 27950 echo "configure: failed program was" >&5 27951 cat conftest.s >&5 27952 fi 27953 rm -f conftest.o conftest.s 27954 fi 27955fi 27956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5 27957$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; } 27958if test $gcc_cv_as_powerpc_mfcrf = yes; then 27959 27960$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h 27961 27962fi 27963 27964 27965 case $target in 27966 *-*-aix*) conftest_s=' .csect .text[PR] 27967LCF..0: 27968 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';; 27969 *-*-darwin*) 27970 conftest_s=' .text 27971LCF0: 27972 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';; 27973 *) conftest_s=' .text 27974.LCF0: 27975 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';; 27976 esac 27977 27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5 27979$as_echo_n "checking assembler for rel16 relocs... " >&6; } 27980if ${gcc_cv_as_powerpc_rel16+:} false; then : 27981 $as_echo_n "(cached) " >&6 27982else 27983 gcc_cv_as_powerpc_rel16=no 27984 if test x$gcc_cv_as != x; then 27985 $as_echo "$conftest_s" > conftest.s 27986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' 27987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27988 (eval $ac_try) 2>&5 27989 ac_status=$? 27990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27991 test $ac_status = 0; }; } 27992 then 27993 gcc_cv_as_powerpc_rel16=yes 27994 else 27995 echo "configure: failed program was" >&5 27996 cat conftest.s >&5 27997 fi 27998 rm -f conftest.o conftest.s 27999 fi 28000fi 28001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5 28002$as_echo "$gcc_cv_as_powerpc_rel16" >&6; } 28003if test $gcc_cv_as_powerpc_rel16 = yes; then 28004 28005$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h 28006 28007fi 28008 28009 28010 case $target in 28011 *-*-aix*) conftest_s=' .machine "pwr7" 28012 .csect .text[PR] 28013 lxvd2x 1,2,3';; 28014 *) conftest_s=' .machine power7 28015 .text 28016 lxvd2x 1,2,3';; 28017 esac 28018 28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5 28020$as_echo_n "checking assembler for vector-scalar support... " >&6; } 28021if ${gcc_cv_as_powerpc_vsx+:} false; then : 28022 $as_echo_n "(cached) " >&6 28023else 28024 gcc_cv_as_powerpc_vsx=no 28025 if test x$gcc_cv_as != x; then 28026 $as_echo "$conftest_s" > conftest.s 28027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' 28028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28029 (eval $ac_try) 2>&5 28030 ac_status=$? 28031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28032 test $ac_status = 0; }; } 28033 then 28034 gcc_cv_as_powerpc_vsx=yes 28035 else 28036 echo "configure: failed program was" >&5 28037 cat conftest.s >&5 28038 fi 28039 rm -f conftest.o conftest.s 28040 fi 28041fi 28042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5 28043$as_echo "$gcc_cv_as_powerpc_vsx" >&6; } 28044if test $gcc_cv_as_powerpc_vsx = yes; then 28045 28046$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h 28047 28048fi 28049 28050 28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28052$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28053if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then : 28054 $as_echo_n "(cached) " >&6 28055else 28056 gcc_cv_as_powerpc_gnu_attribute=no 28057 if test x$gcc_cv_as != x; then 28058 $as_echo '.gnu_attribute 4,1' > conftest.s 28059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28061 (eval $ac_try) 2>&5 28062 ac_status=$? 28063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28064 test $ac_status = 0; }; } 28065 then 28066 gcc_cv_as_powerpc_gnu_attribute=yes 28067 else 28068 echo "configure: failed program was" >&5 28069 cat conftest.s >&5 28070 fi 28071 rm -f conftest.o conftest.s 28072 fi 28073fi 28074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5 28075$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; } 28076if test $gcc_cv_as_powerpc_gnu_attribute = yes; then 28077 28078$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28079 28080fi 28081 28082 28083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5 28084$as_echo_n "checking assembler for prologue entry point marker support... " >&6; } 28085if ${gcc_cv_as_powerpc_entry_markers+:} false; then : 28086 $as_echo_n "(cached) " >&6 28087else 28088 gcc_cv_as_powerpc_entry_markers=no 28089 if test x$gcc_cv_as != x; then 28090 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s 28091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5' 28092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28093 (eval $ac_try) 2>&5 28094 ac_status=$? 28095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28096 test $ac_status = 0; }; } 28097 then 28098 gcc_cv_as_powerpc_entry_markers=yes 28099 else 28100 echo "configure: failed program was" >&5 28101 cat conftest.s >&5 28102 fi 28103 rm -f conftest.o conftest.s 28104 fi 28105fi 28106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5 28107$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; } 28108if test $gcc_cv_as_powerpc_entry_markers = yes; then 28109 28110$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h 28111 28112fi 28113 28114 28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5 28116$as_echo_n "checking assembler for plt sequence marker support... " >&6; } 28117if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then : 28118 $as_echo_n "(cached) " >&6 28119else 28120 gcc_cv_as_powerpc_pltseq_markers=no 28121 if test x$gcc_cv_as != x; then 28122 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s 28123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5' 28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28125 (eval $ac_try) 2>&5 28126 ac_status=$? 28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28128 test $ac_status = 0; }; } 28129 then 28130 gcc_cv_as_powerpc_pltseq_markers=yes 28131 else 28132 echo "configure: failed program was" >&5 28133 cat conftest.s >&5 28134 fi 28135 rm -f conftest.o conftest.s 28136 fi 28137fi 28138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5 28139$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; } 28140if test $gcc_cv_as_powerpc_pltseq_markers = yes; then 28141 28142$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h 28143 28144fi 28145 28146 28147 case $target in 28148 *-*-aix*) 28149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5 28150$as_echo_n "checking assembler for AIX .ref support... " >&6; } 28151if ${gcc_cv_as_aix_ref+:} false; then : 28152 $as_echo_n "(cached) " >&6 28153else 28154 gcc_cv_as_aix_ref=no 28155 if test x$gcc_cv_as != x; then 28156 $as_echo ' .csect stuff[rw] 28157 stuff: 28158 .long 1 28159 .extern sym 28160 .ref sym 28161 ' > conftest.s 28162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28164 (eval $ac_try) 2>&5 28165 ac_status=$? 28166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28167 test $ac_status = 0; }; } 28168 then 28169 gcc_cv_as_aix_ref=yes 28170 else 28171 echo "configure: failed program was" >&5 28172 cat conftest.s >&5 28173 fi 28174 rm -f conftest.o conftest.s 28175 fi 28176fi 28177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5 28178$as_echo "$gcc_cv_as_aix_ref" >&6; } 28179if test $gcc_cv_as_aix_ref = yes; then 28180 28181$as_echo "#define HAVE_AS_REF 1" >>confdefs.h 28182 28183fi 28184 28185 28186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5 28187$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; } 28188if ${gcc_cv_as_aix_dwloc+:} false; then : 28189 $as_echo_n "(cached) " >&6 28190else 28191 gcc_cv_as_aix_dwloc=no 28192 if test x$gcc_cv_as != x; then 28193 $as_echo ' .dwsect 0xA0000 28194 Lframe..0: 28195 .vbyte 4,Lframe..0 28196 ' > conftest.s 28197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28199 (eval $ac_try) 2>&5 28200 ac_status=$? 28201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28202 test $ac_status = 0; }; } 28203 then 28204 gcc_cv_as_aix_dwloc=yes 28205 else 28206 echo "configure: failed program was" >&5 28207 cat conftest.s >&5 28208 fi 28209 rm -f conftest.o conftest.s 28210 fi 28211fi 28212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5 28213$as_echo "$gcc_cv_as_aix_dwloc" >&6; } 28214if test $gcc_cv_as_aix_dwloc = yes; then 28215 28216$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h 28217 28218fi 28219 28220 ;; 28221 esac 28222 ;; 28223 28224 mips*-*-*) 28225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5 28226$as_echo_n "checking assembler for explicit relocation support... " >&6; } 28227if ${gcc_cv_as_mips_explicit_relocs+:} false; then : 28228 $as_echo_n "(cached) " >&6 28229else 28230 gcc_cv_as_mips_explicit_relocs=no 28231 if test x$gcc_cv_as != x; then 28232 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s 28233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28235 (eval $ac_try) 2>&5 28236 ac_status=$? 28237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28238 test $ac_status = 0; }; } 28239 then 28240 gcc_cv_as_mips_explicit_relocs=yes 28241 else 28242 echo "configure: failed program was" >&5 28243 cat conftest.s >&5 28244 fi 28245 rm -f conftest.o conftest.s 28246 fi 28247fi 28248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5 28249$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; } 28250if test $gcc_cv_as_mips_explicit_relocs = yes; then 28251 if test x$target_cpu_default = x 28252 then target_cpu_default=MASK_EXPLICIT_RELOCS 28253 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS" 28254 fi 28255fi 28256 28257 28258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5 28259$as_echo_n "checking assembler for -mno-shared support... " >&6; } 28260if ${gcc_cv_as_mips_no_shared+:} false; then : 28261 $as_echo_n "(cached) " >&6 28262else 28263 gcc_cv_as_mips_no_shared=no 28264 if test x$gcc_cv_as != x; then 28265 $as_echo 'nop' > conftest.s 28266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5' 28267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28268 (eval $ac_try) 2>&5 28269 ac_status=$? 28270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28271 test $ac_status = 0; }; } 28272 then 28273 gcc_cv_as_mips_no_shared=yes 28274 else 28275 echo "configure: failed program was" >&5 28276 cat conftest.s >&5 28277 fi 28278 rm -f conftest.o conftest.s 28279 fi 28280fi 28281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5 28282$as_echo "$gcc_cv_as_mips_no_shared" >&6; } 28283if test $gcc_cv_as_mips_no_shared = yes; then 28284 28285$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h 28286 28287fi 28288 28289 28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28291$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28292if ${gcc_cv_as_mips_gnu_attribute+:} false; then : 28293 $as_echo_n "(cached) " >&6 28294else 28295 gcc_cv_as_mips_gnu_attribute=no 28296 if test x$gcc_cv_as != x; then 28297 $as_echo '.gnu_attribute 4,1' > conftest.s 28298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28300 (eval $ac_try) 2>&5 28301 ac_status=$? 28302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28303 test $ac_status = 0; }; } 28304 then 28305 gcc_cv_as_mips_gnu_attribute=yes 28306 else 28307 echo "configure: failed program was" >&5 28308 cat conftest.s >&5 28309 fi 28310 rm -f conftest.o conftest.s 28311 fi 28312fi 28313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5 28314$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; } 28315if test $gcc_cv_as_mips_gnu_attribute = yes; then 28316 28317$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28318 28319fi 28320 28321 28322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5 28323$as_echo_n "checking assembler for .module support... " >&6; } 28324if ${gcc_cv_as_mips_dot_module+:} false; then : 28325 $as_echo_n "(cached) " >&6 28326else 28327 gcc_cv_as_mips_dot_module=no 28328 if test x$gcc_cv_as != x; then 28329 $as_echo '.module mips2 28330 .module fp=xx' > conftest.s 28331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5' 28332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28333 (eval $ac_try) 2>&5 28334 ac_status=$? 28335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28336 test $ac_status = 0; }; } 28337 then 28338 gcc_cv_as_mips_dot_module=yes 28339 else 28340 echo "configure: failed program was" >&5 28341 cat conftest.s >&5 28342 fi 28343 rm -f conftest.o conftest.s 28344 fi 28345fi 28346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5 28347$as_echo "$gcc_cv_as_mips_dot_module" >&6; } 28348if test $gcc_cv_as_mips_dot_module = yes; then 28349 28350$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h 28351 28352fi 28353 28354 if test x$gcc_cv_as_mips_dot_module = xno \ 28355 && test x$with_fp_32 != x; then 28356 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5 28357 fi 28358 28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5 28360$as_echo_n "checking assembler for .micromips support... " >&6; } 28361if ${gcc_cv_as_micromips_support+:} false; then : 28362 $as_echo_n "(cached) " >&6 28363else 28364 gcc_cv_as_micromips_support=no 28365 if test x$gcc_cv_as != x; then 28366 $as_echo '.set micromips' > conftest.s 28367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 28368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28369 (eval $ac_try) 2>&5 28370 ac_status=$? 28371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28372 test $ac_status = 0; }; } 28373 then 28374 gcc_cv_as_micromips_support=yes 28375 else 28376 echo "configure: failed program was" >&5 28377 cat conftest.s >&5 28378 fi 28379 rm -f conftest.o conftest.s 28380 fi 28381fi 28382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5 28383$as_echo "$gcc_cv_as_micromips_support" >&6; } 28384if test $gcc_cv_as_micromips_support = yes; then 28385 28386$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h 28387 28388fi 28389 28390 28391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5 28392$as_echo_n "checking assembler for .dtprelword support... " >&6; } 28393if ${gcc_cv_as_mips_dtprelword+:} false; then : 28394 $as_echo_n "(cached) " >&6 28395else 28396 gcc_cv_as_mips_dtprelword=no 28397 if test x$gcc_cv_as != x; then 28398 $as_echo '.section .tdata,"awT",@progbits 28399x: 28400 .word 2 28401 .text 28402 .dtprelword x+0x8000' > conftest.s 28403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28405 (eval $ac_try) 2>&5 28406 ac_status=$? 28407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28408 test $ac_status = 0; }; } 28409 then 28410 gcc_cv_as_mips_dtprelword=yes 28411 else 28412 echo "configure: failed program was" >&5 28413 cat conftest.s >&5 28414 fi 28415 rm -f conftest.o conftest.s 28416 fi 28417fi 28418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5 28419$as_echo "$gcc_cv_as_mips_dtprelword" >&6; } 28420if test $gcc_cv_as_mips_dtprelword = yes; then 28421 28422$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h 28423 28424fi 28425 28426 28427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5 28428$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; } 28429if ${gcc_cv_as_mips_dspr1_mult+:} false; then : 28430 $as_echo_n "(cached) " >&6 28431else 28432 gcc_cv_as_mips_dspr1_mult=no 28433 if test x$gcc_cv_as != x; then 28434 $as_echo ' .set mips32r2 28435 .set nodspr2 28436 .set dsp 28437 madd $ac3,$4,$5 28438 maddu $ac3,$4,$5 28439 msub $ac3,$4,$5 28440 msubu $ac3,$4,$5 28441 mult $ac3,$4,$5 28442 multu $ac3,$4,$5' > conftest.s 28443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28445 (eval $ac_try) 2>&5 28446 ac_status=$? 28447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28448 test $ac_status = 0; }; } 28449 then 28450 gcc_cv_as_mips_dspr1_mult=yes 28451 else 28452 echo "configure: failed program was" >&5 28453 cat conftest.s >&5 28454 fi 28455 rm -f conftest.o conftest.s 28456 fi 28457fi 28458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5 28459$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; } 28460if test $gcc_cv_as_mips_dspr1_mult = yes; then 28461 28462$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h 28463 28464fi 28465 28466 28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5 28468$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; } 28469 gcc_cv_as_ld_jalr_reloc=no 28470 if test $gcc_cv_as_mips_explicit_relocs = yes; then 28471 if test $in_tree_ld = yes ; then 28472 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \ 28473 && test $in_tree_ld_is_elf = yes; then 28474 gcc_cv_as_ld_jalr_reloc=yes 28475 fi 28476 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then 28477 echo ' .ent x' > conftest.s 28478 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s 28479 echo ' lw $25,%call16(y)($28)' >> conftest.s 28480 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s 28481 echo '1: jalr $25' >> conftest.s 28482 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s 28483 echo '1: jalr $25' >> conftest.s 28484 echo ' .end x' >> conftest.s 28485 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \ 28486 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then 28487 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \ 28488 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then 28489 gcc_cv_as_ld_jalr_reloc=yes 28490 fi 28491 fi 28492 rm -f conftest.* 28493 fi 28494 fi 28495 if test $gcc_cv_as_ld_jalr_reloc = yes; then 28496 if test x$target_cpu_default = x; then 28497 target_cpu_default=MASK_RELAX_PIC_CALLS 28498 else 28499 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" 28500 fi 28501 fi 28502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5 28503$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; } 28504 28505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5 28506$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; } 28507if ${gcc_cv_ld_mips_personality_relaxation+:} false; then : 28508 $as_echo_n "(cached) " >&6 28509else 28510 gcc_cv_ld_mips_personality_relaxation=no 28511 if test $in_tree_ld = yes ; then 28512 if test "$gcc_cv_gld_major_version" -eq 2 \ 28513 -a "$gcc_cv_gld_minor_version" -ge 21 \ 28514 -o "$gcc_cv_gld_major_version" -gt 2; then 28515 gcc_cv_ld_mips_personality_relaxation=yes 28516 fi 28517 elif test x$gcc_cv_as != x \ 28518 -a x$gcc_cv_ld != x \ 28519 -a x$gcc_cv_readelf != x ; then 28520 cat > conftest.s <<EOF 28521 .cfi_startproc 28522 .cfi_personality 0x80,indirect_ptr 28523 .ent test 28524test: 28525 nop 28526 .end test 28527 .cfi_endproc 28528 28529 .section .data,"aw",@progbits 28530indirect_ptr: 28531 .dc.a personality 28532EOF 28533 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \ 28534 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then 28535 if $gcc_cv_readelf -d conftest 2>&1 \ 28536 | grep TEXTREL > /dev/null 2>&1; then 28537 : 28538 elif $gcc_cv_readelf --relocs conftest 2>&1 \ 28539 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then 28540 : 28541 else 28542 gcc_cv_ld_mips_personality_relaxation=yes 28543 fi 28544 fi 28545 fi 28546 rm -f conftest.s conftest.o conftest 28547fi 28548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5 28549$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; } 28550 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then 28551 28552$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h 28553 28554 fi 28555 28556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5 28557$as_echo_n "checking assembler for -mnan= support... " >&6; } 28558if ${gcc_cv_as_mips_nan+:} false; then : 28559 $as_echo_n "(cached) " >&6 28560else 28561 gcc_cv_as_mips_nan=no 28562 if test x$gcc_cv_as != x; then 28563 $as_echo '' > conftest.s 28564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5' 28565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28566 (eval $ac_try) 2>&5 28567 ac_status=$? 28568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28569 test $ac_status = 0; }; } 28570 then 28571 gcc_cv_as_mips_nan=yes 28572 else 28573 echo "configure: failed program was" >&5 28574 cat conftest.s >&5 28575 fi 28576 rm -f conftest.o conftest.s 28577 fi 28578fi 28579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5 28580$as_echo "$gcc_cv_as_mips_nan" >&6; } 28581if test $gcc_cv_as_mips_nan = yes; then 28582 28583$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h 28584 28585fi 28586 28587 if test x$gcc_cv_as_mips_nan = xno \ 28588 && test x$with_nan != x; then 28589 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5 28590 fi 28591 ;; 28592 msp430-*-*) 28593 # Earlier GAS versions generically support .gnu_attribute, but the 28594 # msp430 assembler will not do anything with it. 28595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28596$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28597if ${gcc_cv_as_msp430_gnu_attribute+:} false; then : 28598 $as_echo_n "(cached) " >&6 28599else 28600 gcc_cv_as_msp430_gnu_attribute=no 28601 if test x$gcc_cv_as != x; then 28602 $as_echo '.gnu_attribute 4,1' > conftest.s 28603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28605 (eval $ac_try) 2>&5 28606 ac_status=$? 28607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28608 test $ac_status = 0; }; } 28609 then 28610 gcc_cv_as_msp430_gnu_attribute=yes 28611 else 28612 echo "configure: failed program was" >&5 28613 cat conftest.s >&5 28614 fi 28615 rm -f conftest.o conftest.s 28616 fi 28617fi 28618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5 28619$as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; } 28620if test $gcc_cv_as_msp430_gnu_attribute = yes; then 28621 28622$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28623 28624fi 28625 28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5 28627$as_echo_n "checking assembler for .mspabi_attribute support... " >&6; } 28628if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then : 28629 $as_echo_n "(cached) " >&6 28630else 28631 gcc_cv_as_msp430_mspabi_attribute=no 28632 if test x$gcc_cv_as != x; then 28633 $as_echo '.mspabi_attribute 4,2' > conftest.s 28634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28636 (eval $ac_try) 2>&5 28637 ac_status=$? 28638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28639 test $ac_status = 0; }; } 28640 then 28641 gcc_cv_as_msp430_mspabi_attribute=yes 28642 else 28643 echo "configure: failed program was" >&5 28644 cat conftest.s >&5 28645 fi 28646 rm -f conftest.o conftest.s 28647 fi 28648fi 28649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5 28650$as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; } 28651if test $gcc_cv_as_msp430_mspabi_attribute = yes; then 28652 28653$as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h 28654 28655fi 28656 28657 if test x$enable_newlib_nano_formatted_io = xyes; then 28658 28659$as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h 28660 28661 fi 28662 ;; 28663 nios2-*-*) 28664 # Versions 2.33 and earlier lacked support for the %gotoff relocation 28665 # syntax that is documented in the ABI specification. 28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5 28667$as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; } 28668if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then : 28669 $as_echo_n "(cached) " >&6 28670else 28671 gcc_cv_as_nios2_gotoff_relocation=no 28672 if test x$gcc_cv_as != x; then 28673 $as_echo ' .extern foo 28674 .data 28675 .long %gotoff(foo)' > conftest.s 28676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28678 (eval $ac_try) 2>&5 28679 ac_status=$? 28680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28681 test $ac_status = 0; }; } 28682 then 28683 gcc_cv_as_nios2_gotoff_relocation=yes 28684 else 28685 echo "configure: failed program was" >&5 28686 cat conftest.s >&5 28687 fi 28688 rm -f conftest.o conftest.s 28689 fi 28690fi 28691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5 28692$as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; } 28693if test $gcc_cv_as_nios2_gotoff_relocation = yes; then 28694 28695$as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h 28696 28697fi 28698 28699 ;; 28700 riscv*-*-*) 28701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5 28702$as_echo_n "checking assembler for .attribute support... " >&6; } 28703if ${gcc_cv_as_riscv_attribute+:} false; then : 28704 $as_echo_n "(cached) " >&6 28705else 28706 gcc_cv_as_riscv_attribute=no 28707 if test x$gcc_cv_as != x; then 28708 $as_echo '.attribute stack_align,4' > conftest.s 28709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28711 (eval $ac_try) 2>&5 28712 ac_status=$? 28713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28714 test $ac_status = 0; }; } 28715 then 28716 gcc_cv_as_riscv_attribute=yes 28717 else 28718 echo "configure: failed program was" >&5 28719 cat conftest.s >&5 28720 fi 28721 rm -f conftest.o conftest.s 28722 fi 28723fi 28724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5 28725$as_echo "$gcc_cv_as_riscv_attribute" >&6; } 28726if test $gcc_cv_as_riscv_attribute = yes; then 28727 28728$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h 28729 28730fi 28731 28732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5 28733$as_echo_n "checking assembler for -misa-spec= support... " >&6; } 28734if ${gcc_cv_as_riscv_isa_spec+:} false; then : 28735 $as_echo_n "(cached) " >&6 28736else 28737 gcc_cv_as_riscv_isa_spec=no 28738 if test x$gcc_cv_as != x; then 28739 $as_echo '' > conftest.s 28740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5' 28741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28742 (eval $ac_try) 2>&5 28743 ac_status=$? 28744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28745 test $ac_status = 0; }; } 28746 then 28747 gcc_cv_as_riscv_isa_spec=yes 28748 else 28749 echo "configure: failed program was" >&5 28750 cat conftest.s >&5 28751 fi 28752 rm -f conftest.o conftest.s 28753 fi 28754fi 28755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5 28756$as_echo "$gcc_cv_as_riscv_isa_spec" >&6; } 28757if test $gcc_cv_as_riscv_isa_spec = yes; then 28758 28759$as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h 28760 28761fi 28762 28763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5 28764$as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; } 28765if ${gcc_cv_as_riscv_march_zifencei+:} false; then : 28766 $as_echo_n "(cached) " >&6 28767else 28768 gcc_cv_as_riscv_march_zifencei=no 28769 if test x$gcc_cv_as != x; then 28770 $as_echo '' > conftest.s 28771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5' 28772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28773 (eval $ac_try) 2>&5 28774 ac_status=$? 28775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28776 test $ac_status = 0; }; } 28777 then 28778 gcc_cv_as_riscv_march_zifencei=yes 28779 else 28780 echo "configure: failed program was" >&5 28781 cat conftest.s >&5 28782 fi 28783 rm -f conftest.o conftest.s 28784 fi 28785fi 28786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5 28787$as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; } 28788if test $gcc_cv_as_riscv_march_zifencei = yes; then 28789 28790$as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h 28791 28792fi 28793 28794 ;; 28795 loongarch*-*-*) 28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5 28797$as_echo_n "checking assembler for .dtprelword support... " >&6; } 28798if ${gcc_cv_as_loongarch_dtprelword+:} false; then : 28799 $as_echo_n "(cached) " >&6 28800else 28801 gcc_cv_as_loongarch_dtprelword=no 28802 if test x$gcc_cv_as != x; then 28803 $as_echo '' > conftest.s 28804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5' 28805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28806 (eval $ac_try) 2>&5 28807 ac_status=$? 28808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28809 test $ac_status = 0; }; } 28810 then 28811 .section .tdata,"awT",@progbits 28812x: 28813 .word 2 28814 .text 28815 .dtprelword x+0x8000 28816 else 28817 echo "configure: failed program was" >&5 28818 cat conftest.s >&5 28819 fi 28820 rm -f conftest.o conftest.s 28821 fi 28822fi 28823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5 28824$as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; } 28825 28826if test $gcc_cv_as_loongarch_dtprelword != yes; then 28827 28828$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h 28829 28830fi 28831 ;; 28832 s390*-*-*) 28833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28834$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28835if ${gcc_cv_as_s390_gnu_attribute+:} false; then : 28836 $as_echo_n "(cached) " >&6 28837else 28838 gcc_cv_as_s390_gnu_attribute=no 28839 if test x$gcc_cv_as != x; then 28840 $as_echo '.gnu_attribute 8,1' > conftest.s 28841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28843 (eval $ac_try) 2>&5 28844 ac_status=$? 28845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28846 test $ac_status = 0; }; } 28847 then 28848 gcc_cv_as_s390_gnu_attribute=yes 28849 else 28850 echo "configure: failed program was" >&5 28851 cat conftest.s >&5 28852 fi 28853 rm -f conftest.o conftest.s 28854 fi 28855fi 28856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5 28857$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; } 28858if test $gcc_cv_as_s390_gnu_attribute = yes; then 28859 28860$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28861 28862fi 28863 28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5 28865$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; } 28866if ${gcc_cv_as_s390_machine_machinemode+:} false; then : 28867 $as_echo_n "(cached) " >&6 28868else 28869 gcc_cv_as_s390_machine_machinemode=no 28870 if test x$gcc_cv_as != x; then 28871 $as_echo ' .machinemode push 28872 .machinemode pop 28873 .machine push 28874 .machine pop' > conftest.s 28875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28877 (eval $ac_try) 2>&5 28878 ac_status=$? 28879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28880 test $ac_status = 0; }; } 28881 then 28882 gcc_cv_as_s390_machine_machinemode=yes 28883 else 28884 echo "configure: failed program was" >&5 28885 cat conftest.s >&5 28886 fi 28887 rm -f conftest.o conftest.s 28888 fi 28889fi 28890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5 28891$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; } 28892if test $gcc_cv_as_s390_machine_machinemode = yes; then 28893 28894$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h 28895 28896fi 28897 28898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5 28899$as_echo_n "checking assembler for architecture modifiers support... " >&6; } 28900if ${gcc_cv_as_s390_architecture_modifiers+:} false; then : 28901 $as_echo_n "(cached) " >&6 28902else 28903 gcc_cv_as_s390_architecture_modifiers=no 28904 if test x$gcc_cv_as != x; then 28905 $as_echo ' .machine z13+vx ' > conftest.s 28906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28908 (eval $ac_try) 2>&5 28909 ac_status=$? 28910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28911 test $ac_status = 0; }; } 28912 then 28913 gcc_cv_as_s390_architecture_modifiers=yes 28914 else 28915 echo "configure: failed program was" >&5 28916 cat conftest.s >&5 28917 fi 28918 rm -f conftest.o conftest.s 28919 fi 28920fi 28921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5 28922$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; } 28923if test $gcc_cv_as_s390_architecture_modifiers = yes; then 28924 28925$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h 28926 28927fi 28928 28929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5 28930$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; } 28931if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then : 28932 $as_echo_n "(cached) " >&6 28933else 28934 gcc_cv_as_s390_vector_loadstore_alignment_hints=no 28935 if test x$gcc_cv_as != x; then 28936 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s 28937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28939 (eval $ac_try) 2>&5 28940 ac_status=$? 28941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28942 test $ac_status = 0; }; } 28943 then 28944 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes 28945 else 28946 echo "configure: failed program was" >&5 28947 cat conftest.s >&5 28948 fi 28949 rm -f conftest.o conftest.s 28950 fi 28951fi 28952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5 28953$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; } 28954if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then 28955 28956$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h 28957 28958fi 28959 28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5 28961$as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; } 28962if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then : 28963 $as_echo_n "(cached) " >&6 28964else 28965 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no 28966 if test x$gcc_cv_as != x; then 28967 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s 28968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5' 28969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28970 (eval $ac_try) 2>&5 28971 ac_status=$? 28972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28973 test $ac_status = 0; }; } 28974 then 28975 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes 28976 else 28977 echo "configure: failed program was" >&5 28978 cat conftest.s >&5 28979 fi 28980 rm -f conftest.o conftest.s 28981 fi 28982fi 28983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5 28984$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; } 28985if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then 28986 28987$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h 28988 28989fi 28990 28991 28992 ;; 28993esac 28994 28995# Mips, LoongArch and HP-UX need the GNU assembler. 28996# Linux on IA64 might be able to use the Intel assembler. 28997 28998case "$target" in 28999 mips*-*-* | loongarch*-*-* | *-*-hpux* ) 29000 if test x$gas_flag = xyes \ 29001 || test x"$host" != x"$build" \ 29002 || test ! -x "$gcc_cv_as" \ 29003 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then 29004 : 29005 else 29006 echo "*** This configuration requires the GNU assembler" >&2 29007 exit 1 29008 fi 29009 ;; 29010esac 29011 29012# This tests if the assembler supports two registers for global_load functions 29013# (like in LLVM versions <12) or one register (like in LLVM 12). 29014case "$target" in 29015 amdgcn-* | gcn-*) 29016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5 29017$as_echo_n "checking assembler fix for global_load functions... " >&6; } 29018 gcc_cv_as_gcn_global_load_fixed=yes 29019 if test x$gcc_cv_as != x; then 29020 cat > conftest.s <<EOF 29021 global_store_dwordx2 v[1:2], v[4:5], s[14:15] 29022EOF 29023 if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then 29024 gcc_cv_as_gcn_global_load_fixed=no 29025 fi 29026 rm -f conftest.s conftest.o conftest 29027 fi 29028 global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi` 29029 29030cat >>confdefs.h <<_ACEOF 29031#define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed 29032_ACEOF 29033 29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5 29035$as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; } 29036 ;; 29037esac 29038 29039case "$target" in 29040 amdgcn-* | gcn-*) 29041 # Test the LLVM assembler syntax dialect; they have made a number of 29042 # changes between LLVM 12 & 13 without any backward compatibility. 29043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v2/3 syntax" >&5 29044$as_echo_n "checking assembler for assembler amdgcn_target v2/3 syntax... " >&6; } 29045if ${gcc_cv_as_gcn_asm_v3_syntax+:} false; then : 29046 $as_echo_n "(cached) " >&6 29047else 29048 gcc_cv_as_gcn_asm_v3_syntax=no 29049 if test x$gcc_cv_as != x; then 29050 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"' > conftest.s 29051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack -o conftest.o conftest.s >&5' 29052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29053 (eval $ac_try) 2>&5 29054 ac_status=$? 29055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29056 test $ac_status = 0; }; } 29057 then 29058 gcc_cv_as_gcn_asm_v3_syntax=yes 29059 else 29060 echo "configure: failed program was" >&5 29061 cat conftest.s >&5 29062 fi 29063 rm -f conftest.o conftest.s 29064 fi 29065fi 29066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v3_syntax" >&5 29067$as_echo "$gcc_cv_as_gcn_asm_v3_syntax" >&6; } 29068if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then 29069 29070$as_echo "#define HAVE_GCN_ASM_V3_SYNTAX 1" >>confdefs.h 29071 29072fi 29073 29074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v4 syntax" >&5 29075$as_echo_n "checking assembler for assembler amdgcn_target v4 syntax... " >&6; } 29076if ${gcc_cv_as_gcn_asm_v4_syntax+:} false; then : 29077 $as_echo_n "(cached) " >&6 29078else 29079 gcc_cv_as_gcn_asm_v4_syntax=no 29080 if test x$gcc_cv_as != x; then 29081 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"' > conftest.s 29082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack -o conftest.o conftest.s >&5' 29083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29084 (eval $ac_try) 2>&5 29085 ac_status=$? 29086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29087 test $ac_status = 0; }; } 29088 then 29089 gcc_cv_as_gcn_asm_v4_syntax=yes 29090 else 29091 echo "configure: failed program was" >&5 29092 cat conftest.s >&5 29093 fi 29094 rm -f conftest.o conftest.s 29095 fi 29096fi 29097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v4_syntax" >&5 29098$as_echo "$gcc_cv_as_gcn_asm_v4_syntax" >&6; } 29099if test $gcc_cv_as_gcn_asm_v4_syntax = yes; then 29100 29101$as_echo "#define HAVE_GCN_ASM_V4_SYNTAX 1" >>confdefs.h 29102 29103fi 29104 29105 29106 # Some attribute names changed in the move to v4 ... 29107 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then 29108 sramopt="+sram-ecc" 29109 sramattr="+sram-ecc" 29110 xnackattr="+xnack" 29111 elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then 29112 sramopt="+sramecc" 29113 sramattr=":sramecc+" 29114 xnackattr=":xnack+" 29115 else 29116 as_fn_error $? "Unrecognised assembler version" "$LINENO" 5 29117 fi 29118 29119 # Test whether the LLVM assembler accepts -mattr=+xnack without any 29120 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not, 29121 # LLVM 12+ throws a warning for GPUs without support. 29122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for fiji" >&5 29123$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for fiji... " >&6; } 29124if ${gcc_cv_as_gcn_xnack_ecc_fiji+:} false; then : 29125 $as_echo_n "(cached) " >&6 29126else 29127 gcc_cv_as_gcn_xnack_ecc_fiji=no 29128 if test x$gcc_cv_as != x; then 29129 $as_echo '' > conftest.s 29130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5' 29131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29132 (eval $ac_try) 2>&5 29133 ac_status=$? 29134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29135 test $ac_status = 0; }; } 29136 then 29137 grep "." conftest.err >&5 \ 29138 || gcc_cv_as_gcn_xnack_ecc_fiji=yes 29139 else 29140 echo "configure: failed program was" >&5 29141 cat conftest.s >&5 29142 fi 29143 rm -f conftest.o conftest.s 29144 fi 29145fi 29146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_fiji" >&5 29147$as_echo "$gcc_cv_as_gcn_xnack_ecc_fiji" >&6; } 29148if test $gcc_cv_as_gcn_xnack_ecc_fiji = yes; then 29149 29150$as_echo "#define HAVE_GCN_XNACK_FIJI 1" >>confdefs.h 29151 29152fi 29153 29154 rm -f conftest.err 29155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx900" >&5 29156$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx900... " >&6; } 29157if ${gcc_cv_as_gcn_xnack_ecc_gfx900+:} false; then : 29158 $as_echo_n "(cached) " >&6 29159else 29160 gcc_cv_as_gcn_xnack_ecc_gfx900=no 29161 if test x$gcc_cv_as != x; then 29162 $as_echo '' > conftest.s 29163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5' 29164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29165 (eval $ac_try) 2>&5 29166 ac_status=$? 29167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29168 test $ac_status = 0; }; } 29169 then 29170 grep "." conftest.err >&5 \ 29171 || gcc_cv_as_gcn_xnack_ecc_gfx900=yes 29172 else 29173 echo "configure: failed program was" >&5 29174 cat conftest.s >&5 29175 fi 29176 rm -f conftest.o conftest.s 29177 fi 29178fi 29179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx900" >&5 29180$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx900" >&6; } 29181if test $gcc_cv_as_gcn_xnack_ecc_gfx900 = yes; then 29182 29183$as_echo "#define HAVE_GCN_XNACK_GFX900 1" >>confdefs.h 29184 29185fi 29186 29187 rm -f conftest.err 29188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx906" >&5 29189$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx906... " >&6; } 29190if ${gcc_cv_as_gcn_xnack_ecc_gfx906+:} false; then : 29191 $as_echo_n "(cached) " >&6 29192else 29193 gcc_cv_as_gcn_xnack_ecc_gfx906=no 29194 if test x$gcc_cv_as != x; then 29195 $as_echo '' > conftest.s 29196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5' 29197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29198 (eval $ac_try) 2>&5 29199 ac_status=$? 29200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29201 test $ac_status = 0; }; } 29202 then 29203 grep "." conftest.err >&5 \ 29204 || gcc_cv_as_gcn_xnack_ecc_gfx906=yes 29205 else 29206 echo "configure: failed program was" >&5 29207 cat conftest.s >&5 29208 fi 29209 rm -f conftest.o conftest.s 29210 fi 29211fi 29212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx906" >&5 29213$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx906" >&6; } 29214if test $gcc_cv_as_gcn_xnack_ecc_gfx906 = yes; then 29215 29216$as_echo "#define HAVE_GCN_XNACK_GFX906 1" >>confdefs.h 29217 29218fi 29219 29220 rm -f conftest.err 29221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx908" >&5 29222$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx908... " >&6; } 29223if ${gcc_cv_as_gcn_xnack_ecc_gfx908+:} false; then : 29224 $as_echo_n "(cached) " >&6 29225else 29226 gcc_cv_as_gcn_xnack_ecc_gfx908=no 29227 if test x$gcc_cv_as != x; then 29228 $as_echo '' > conftest.s 29229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5' 29230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29231 (eval $ac_try) 2>&5 29232 ac_status=$? 29233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29234 test $ac_status = 0; }; } 29235 then 29236 grep "." conftest.err >&5 \ 29237 || gcc_cv_as_gcn_xnack_ecc_gfx908=yes 29238 else 29239 echo "configure: failed program was" >&5 29240 cat conftest.s >&5 29241 fi 29242 rm -f conftest.o conftest.s 29243 fi 29244fi 29245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx908" >&5 29246$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx908" >&6; } 29247if test $gcc_cv_as_gcn_xnack_ecc_gfx908 = yes; then 29248 29249$as_echo "#define HAVE_GCN_XNACK_GFX908 1" >>confdefs.h 29250 29251fi 29252 29253 rm -f conftest.err 29254 29255 # Test whether the LLVM assembler accepts -mattr=+sramecc without any 29256 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not, 29257 # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning 29258 # for GPUs without support. 29259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for fiji" >&5 29260$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for fiji... " >&6; } 29261if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false; then : 29262 $as_echo_n "(cached) " >&6 29263else 29264 gcc_cv_as_gcn_sram_ecc_fiji=no 29265 if test x$gcc_cv_as != x; then 29266 $as_echo '' > conftest.s 29267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5' 29268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29269 (eval $ac_try) 2>&5 29270 ac_status=$? 29271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29272 test $ac_status = 0; }; } 29273 then 29274 grep "." conftest.err >&5 \ 29275 || gcc_cv_as_gcn_sram_ecc_fiji=yes 29276 else 29277 echo "configure: failed program was" >&5 29278 cat conftest.s >&5 29279 fi 29280 rm -f conftest.o conftest.s 29281 fi 29282fi 29283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5 29284$as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; } 29285if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then 29286 29287$as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h 29288 29289fi 29290 29291 rm -f conftest.err 29292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx900" >&5 29293$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx900... " >&6; } 29294if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false; then : 29295 $as_echo_n "(cached) " >&6 29296else 29297 gcc_cv_as_gcn_sram_ecc_gfx900=no 29298 if test x$gcc_cv_as != x; then 29299 $as_echo '' > conftest.s 29300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5' 29301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29302 (eval $ac_try) 2>&5 29303 ac_status=$? 29304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29305 test $ac_status = 0; }; } 29306 then 29307 grep "." conftest.err >&5 \ 29308 || gcc_cv_as_gcn_sram_ecc_gfx900=yes 29309 else 29310 echo "configure: failed program was" >&5 29311 cat conftest.s >&5 29312 fi 29313 rm -f conftest.o conftest.s 29314 fi 29315fi 29316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5 29317$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; } 29318if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then 29319 29320$as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h 29321 29322fi 29323 29324 rm -f conftest.err 29325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx906" >&5 29326$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx906... " >&6; } 29327if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false; then : 29328 $as_echo_n "(cached) " >&6 29329else 29330 gcc_cv_as_gcn_sram_ecc_gfx906=no 29331 if test x$gcc_cv_as != x; then 29332 $as_echo '' > conftest.s 29333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5' 29334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29335 (eval $ac_try) 2>&5 29336 ac_status=$? 29337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29338 test $ac_status = 0; }; } 29339 then 29340 grep "." conftest.err >&5 \ 29341 || gcc_cv_as_gcn_sram_ecc_gfx906=yes 29342 else 29343 echo "configure: failed program was" >&5 29344 cat conftest.s >&5 29345 fi 29346 rm -f conftest.o conftest.s 29347 fi 29348fi 29349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5 29350$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; } 29351if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then 29352 29353$as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h 29354 29355fi 29356 29357 rm -f conftest.err 29358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx908" >&5 29359$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx908... " >&6; } 29360if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false; then : 29361 $as_echo_n "(cached) " >&6 29362else 29363 gcc_cv_as_gcn_sram_ecc_gfx908=no 29364 if test x$gcc_cv_as != x; then 29365 $as_echo '' > conftest.s 29366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5' 29367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29368 (eval $ac_try) 2>&5 29369 ac_status=$? 29370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29371 test $ac_status = 0; }; } 29372 then 29373 grep "." conftest.err >&5 \ 29374 || gcc_cv_as_gcn_sram_ecc_gfx908=yes 29375 else 29376 echo "configure: failed program was" >&5 29377 cat conftest.s >&5 29378 fi 29379 rm -f conftest.o conftest.s 29380 fi 29381fi 29382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5 29383$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; } 29384if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then 29385 29386$as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h 29387 29388fi 29389 29390 rm -f conftest.err 29391 ;; 29392 arm*) 29393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5 29394$as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; } 29395if ${gcc_cv_as_arm_option_extensions+:} false; then : 29396 $as_echo_n "(cached) " >&6 29397else 29398 gcc_cv_as_arm_option_extensions=no 29399 if test x$gcc_cv_as != x; then 29400 $as_echo '.text 29401 .thumb 29402 .syntax unified 29403 vmov.f32 s0, s1' > conftest.s 29404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5' 29405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29406 (eval $ac_try) 2>&5 29407 ac_status=$? 29408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29409 test $ac_status = 0; }; } 29410 then 29411 gcc_cv_as_arm_option_extensions=yes 29412 else 29413 echo "configure: failed program was" >&5 29414 cat conftest.s >&5 29415 fi 29416 rm -f conftest.o conftest.s 29417 fi 29418fi 29419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5 29420$as_echo "$gcc_cv_as_arm_option_extensions" >&6; } 29421if test $gcc_cv_as_arm_option_extensions = yes; then 29422 29423$as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h 29424 29425fi 29426 29427esac 29428 29429# ??? Not all targets support dwarf2 debug_line, even within a version 29430# of gas. Moreover, we need to emit a valid instruction to trigger any 29431# info to the output file. So, as supported targets are added to gas 2.11, 29432# add some instruction here to (also) show we expect this might work. 29433# ??? Once 2.11 is released, probably need to add first known working 29434# version to the per-target configury. 29435case "$cpu_type" in 29436 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \ 29437 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \ 29438 | tilegx | tilepro | visium | xstormy16 | xtensa) 29439 insn="nop" 29440 ;; 29441 ia64 | s390) 29442 insn="nop 0" 29443 ;; 29444 mmix) 29445 insn="swym 0" 29446 ;; 29447esac 29448if test x"$insn" != x; then 29449 conftest_s="\ 29450 .file 1 \"conftest.s\" 29451 .loc 1 3 0 29452 $insn" 29453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5 29454$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; } 29455if ${gcc_cv_as_dwarf2_debug_line+:} false; then : 29456 $as_echo_n "(cached) " >&6 29457else 29458 gcc_cv_as_dwarf2_debug_line=no 29459 if test x$gcc_cv_as != x; then 29460 $as_echo "$conftest_s" > conftest.s 29461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29463 (eval $ac_try) 2>&5 29464 ac_status=$? 29465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29466 test $ac_status = 0; }; } 29467 then 29468 if test x$gcc_cv_objdump != x \ 29469 && $gcc_cv_objdump -h conftest.o 2> /dev/null \ 29470 | grep debug_line > /dev/null 2>&1; then 29471 gcc_cv_as_dwarf2_debug_line=yes 29472 elif test x$gcc_cv_otool != x \ 29473 && $gcc_cv_otool -l conftest.o 2> /dev/null \ 29474 | grep debug_line > /dev/null 2>&1; then 29475 gcc_cv_as_dwarf2_debug_line=yes 29476 fi 29477 else 29478 echo "configure: failed program was" >&5 29479 cat conftest.s >&5 29480 fi 29481 rm -f conftest.o conftest.s 29482 fi 29483fi 29484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5 29485$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; } 29486 29487 29488 29489# The .debug_line file table must be in the exact order that 29490# we specified the files, since these indices are also used 29491# by DW_AT_decl_file. Approximate this test by testing if 29492# the assembler bitches if the same index is assigned twice. 29493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5 29494$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; } 29495if ${gcc_cv_as_dwarf2_file_buggy+:} false; then : 29496 $as_echo_n "(cached) " >&6 29497else 29498 gcc_cv_as_dwarf2_file_buggy=no 29499 if test x$gcc_cv_as != x; then 29500 $as_echo ' .file 1 "foo.s" 29501 .file 1 "bar.s"' > conftest.s 29502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29504 (eval $ac_try) 2>&5 29505 ac_status=$? 29506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29507 test $ac_status = 0; }; } 29508 then 29509 gcc_cv_as_dwarf2_file_buggy=yes 29510 else 29511 echo "configure: failed program was" >&5 29512 cat conftest.s >&5 29513 fi 29514 rm -f conftest.o conftest.s 29515 fi 29516fi 29517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5 29518$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; } 29519 29520 29521 29522 if test $gcc_cv_as_dwarf2_debug_line = yes \ 29523 && test $gcc_cv_as_dwarf2_file_buggy = no; then 29524 29525$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h 29526 29527 29528 if test $gcc_cv_as_leb128 = yes; then 29529 conftest_s="\ 29530 .file 1 \"conftest.s\" 29531 .loc 1 3 0 view .LVU1 29532 $insn 29533 .data 29534 .uleb128 .LVU1 29535 .uleb128 .LVU1 29536" 29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5 29538$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; } 29539if ${gcc_cv_as_dwarf2_debug_view+:} false; then : 29540 $as_echo_n "(cached) " >&6 29541else 29542 gcc_cv_as_dwarf2_debug_view=no 29543 if test x$gcc_cv_as != x; then 29544 $as_echo "$conftest_s" > conftest.s 29545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29547 (eval $ac_try) 2>&5 29548 ac_status=$? 29549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29550 test $ac_status = 0; }; } 29551 then 29552 gcc_cv_as_dwarf2_debug_view=yes 29553 else 29554 echo "configure: failed program was" >&5 29555 cat conftest.s >&5 29556 fi 29557 rm -f conftest.o conftest.s 29558 fi 29559fi 29560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5 29561$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; } 29562if test $gcc_cv_as_dwarf2_debug_view = yes; then 29563 29564$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h 29565 29566fi 29567 29568 fi 29569 fi 29570 29571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5 29572$as_echo_n "checking assembler for --gdwarf2 option... " >&6; } 29573if ${gcc_cv_as_gdwarf2_flag+:} false; then : 29574 $as_echo_n "(cached) " >&6 29575else 29576 gcc_cv_as_gdwarf2_flag=no 29577 if test x$gcc_cv_as != x; then 29578 $as_echo "$insn" > conftest.s 29579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5' 29580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29581 (eval $ac_try) 2>&5 29582 ac_status=$? 29583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29584 test $ac_status = 0; }; } 29585 then 29586 gcc_cv_as_gdwarf2_flag=yes 29587 else 29588 echo "configure: failed program was" >&5 29589 cat conftest.s >&5 29590 fi 29591 rm -f conftest.o conftest.s 29592 fi 29593fi 29594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5 29595$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; } 29596if test $gcc_cv_as_gdwarf2_flag = yes; then 29597 29598$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h 29599 29600fi 29601 29602 29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5 29604$as_echo_n "checking assembler for --gdwarf-5 option... " >&6; } 29605if ${gcc_cv_as_gdwarf_5_flag+:} false; then : 29606 $as_echo_n "(cached) " >&6 29607else 29608 gcc_cv_as_gdwarf_5_flag=no 29609 if test x$gcc_cv_as != x; then 29610 $as_echo "$insn" > conftest.s 29611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5' 29612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29613 (eval $ac_try) 2>&5 29614 ac_status=$? 29615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29616 test $ac_status = 0; }; } 29617 then 29618 if test x$gcc_cv_objdump != x \ 29619 && $gcc_cv_objdump -Wi conftest.o 2>&1 \ 29620 | grep DW_TAG_compile_unit > /dev/null 2>&1; then 29621 gcc_cv_as_gdwarf_5_flag=yes; 29622 fi 29623 else 29624 echo "configure: failed program was" >&5 29625 cat conftest.s >&5 29626 fi 29627 rm -f conftest.o conftest.s 29628 fi 29629fi 29630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5 29631$as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; } 29632if test $gcc_cv_as_gdwarf_5_flag = yes; then 29633 29634$as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h 29635 29636fi 29637 29638 29639 case $target_os in 29640 win32 | pe | cygwin* | mingw32*) 29641 section_flags=\"dr\" 29642 function_type=".def foo; .scl 2; .type 32; .endef" 29643 function_size="";; 29644 *) 29645 section_flags=\"\",%progbits 29646 function_type=".type foo, %function" 29647 function_size=".size foo, .-foo";; 29648 esac 29649 dwarf4_debug_info_size=0x46 29650 dwarf4_high_pc_form=7 29651 dwarf4_debug_aranges_size=0x2c 29652 dwarf4_line_sz=9 29653 for dwarf4_addr_size in 8 4; do 29654 conftest_s="\ 29655 .file \"a.c\" 29656 .text 29657.Ltext0: 29658 .p2align 4 29659 .globl foo 29660 $function_type 29661foo: 29662.LFB0: 29663.LM1: 29664 $insn 29665.LM2: 29666.LFE0: 29667 $function_size 29668.Letext0: 29669 .section .debug_info,$section_flags 29670.Ldebug_info0: 29671 .4byte $dwarf4_debug_info_size 29672 .2byte 0x4 29673 .4byte .Ldebug_abbrev0 29674 .byte 0x$dwarf4_addr_size 29675 .byte 0x1 29676 .ascii \"GNU C17\\0\" 29677 .byte 0xc 29678 .ascii \"a.c\\0\" 29679 .ascii \"/\\0\" 29680 .${dwarf4_addr_size}byte .Ltext0 29681 .${dwarf4_addr_size}byte .Letext0-.Ltext0 29682 .4byte .Ldebug_line0 29683 .byte 0x2 29684 .ascii \"foo\\0\" 29685 .byte 0x1 29686 .byte 0x2 29687 .byte 0x1 29688 .${dwarf4_addr_size}byte .LFB0 29689 .${dwarf4_addr_size}byte .LFE0-.LFB0 29690 .byte 0x1 29691 .byte 0x9c 29692 .byte 0 29693 .section .debug_abbrev,$section_flags 29694.Ldebug_abbrev0: 29695 .byte 0x1 29696 .byte 0x11 29697 .byte 0x1 29698 .byte 0x25 29699 .byte 0x8 29700 .byte 0x13 29701 .byte 0xb 29702 .byte 0x3 29703 .byte 0x8 29704 .byte 0x1b 29705 .byte 0x8 29706 .byte 0x11 29707 .byte 0x1 29708 .byte 0x12 29709 .byte 0x$dwarf4_high_pc_form 29710 .byte 0x10 29711 .byte 0x17 29712 .byte 0 29713 .byte 0 29714 .byte 0x2 29715 .byte 0x2e 29716 .byte 0 29717 .byte 0x3f 29718 .byte 0x19 29719 .byte 0x3 29720 .byte 0x8 29721 .byte 0x3a 29722 .byte 0xb 29723 .byte 0x3b 29724 .byte 0xb 29725 .byte 0x39 29726 .byte 0xb 29727 .byte 0x11 29728 .byte 0x1 29729 .byte 0x12 29730 .byte 0x$dwarf4_high_pc_form 29731 .byte 0x40 29732 .byte 0x18 29733 .byte 0 29734 .byte 0 29735 .byte 0 29736 .section .debug_aranges,$section_flags 29737 .4byte $dwarf4_debug_aranges_size 29738 .2byte 0x2 29739 .4byte .Ldebug_info0 29740 .byte 0x8 29741 .byte 0 29742 .2byte 0 29743 .2byte 0 29744 .${dwarf4_addr_size}byte .Ltext0 29745 .${dwarf4_addr_size}byte .Letext0-.Ltext0 29746 .${dwarf4_addr_size}byte 0 29747 .${dwarf4_addr_size}byte 0 29748 .section .debug_line,$section_flags 29749.Ldebug_line0: 29750 .4byte .LELT0-.LSLT0 29751.LSLT0: 29752 .2byte 0x4 29753 .4byte .LELTP0-.LASLTP0 29754.LASLTP0: 29755 .byte 0x1 29756 .byte 0x1 29757 .byte 0x1 29758 .byte 0xf6 29759 .byte 0xf2 29760 .byte 0xd 29761 .byte 0 29762 .byte 0x1 29763 .byte 0x1 29764 .byte 0x1 29765 .byte 0x1 29766 .byte 0 29767 .byte 0 29768 .byte 0 29769 .byte 0x1 29770 .byte 0 29771 .byte 0 29772 .byte 0x1 29773 .byte 0 29774 .ascii \"a.c\\0\" 29775 .byte 0 29776 .byte 0 29777 .byte 0 29778 .byte 0 29779.LELTP0: 29780 .byte 0 29781 .byte 0x$dwarf4_line_sz 29782 .byte 0x2 29783 .${dwarf4_addr_size}byte .LM1 29784 .byte 0x18 29785 .byte 0x5 29786 .byte 0x1 29787 .byte 0 29788 .byte 0x$dwarf4_line_sz 29789 .byte 0x2 29790 .${dwarf4_addr_size}byte .LM2 29791 .byte 0x1 29792 .byte 0x5 29793 .byte 0x1 29794 .byte 0 29795 .byte 0x$dwarf4_line_sz 29796 .byte 0x2 29797 .${dwarf4_addr_size}byte .Letext0 29798 .byte 0 29799 .byte 0x1 29800 .byte 0x1 29801.LELT0: 29802 .section .debug_str,$section_flags 29803 .ident \"GCC\" 29804" 29805 dwarf4_success=no 29806 if test $dwarf4_addr_size = 4; then 29807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5 29808$as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; } 29809if ${gcc_cv_as_debug_line_32_flag+:} false; then : 29810 $as_echo_n "(cached) " >&6 29811else 29812 gcc_cv_as_debug_line_32_flag=no 29813 if test x$gcc_cv_as != x; then 29814 $as_echo "$conftest_s" > conftest.s 29815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29817 (eval $ac_try) 2>&5 29818 ac_status=$? 29819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29820 test $ac_status = 0; }; } 29821 then 29822 gcc_cv_as_debug_line_32_flag=yes 29823 else 29824 echo "configure: failed program was" >&5 29825 cat conftest.s >&5 29826 fi 29827 rm -f conftest.o conftest.s 29828 fi 29829fi 29830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5 29831$as_echo "$gcc_cv_as_debug_line_32_flag" >&6; } 29832if test $gcc_cv_as_debug_line_32_flag = yes; then 29833 dwarf4_success=yes 29834fi 29835 29836 else 29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5 29838$as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; } 29839if ${gcc_cv_as_debug_line_64_flag+:} false; then : 29840 $as_echo_n "(cached) " >&6 29841else 29842 gcc_cv_as_debug_line_64_flag=no 29843 if test x$gcc_cv_as != x; then 29844 $as_echo "$conftest_s" > conftest.s 29845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29847 (eval $ac_try) 2>&5 29848 ac_status=$? 29849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29850 test $ac_status = 0; }; } 29851 then 29852 gcc_cv_as_debug_line_64_flag=yes 29853 else 29854 echo "configure: failed program was" >&5 29855 cat conftest.s >&5 29856 fi 29857 rm -f conftest.o conftest.s 29858 fi 29859fi 29860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5 29861$as_echo "$gcc_cv_as_debug_line_64_flag" >&6; } 29862if test $gcc_cv_as_debug_line_64_flag = yes; then 29863 dwarf4_success=yes 29864fi 29865 29866 fi 29867 if test $dwarf4_success = yes; then 29868 dwarf4_success=no 29869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5 29870$as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; } 29871if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then : 29872 $as_echo_n "(cached) " >&6 29873else 29874 gcc_cv_as_dwarf_4_debug_line_flag=no 29875 if test x$gcc_cv_as != x; then 29876 $as_echo "$conftest_s" > conftest.s 29877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5' 29878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29879 (eval $ac_try) 2>&5 29880 ac_status=$? 29881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29882 test $ac_status = 0; }; } 29883 then 29884 gcc_cv_as_dwarf_4_debug_line_flag=yes 29885 else 29886 echo "configure: failed program was" >&5 29887 cat conftest.s >&5 29888 fi 29889 rm -f conftest.o conftest.s 29890 fi 29891fi 29892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5 29893$as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; } 29894if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then 29895 dwarf4_success=yes 29896fi 29897 29898 break 29899 fi 29900 dwarf4_debug_info_size=0x36 29901 dwarf4_high_pc_form=6 29902 dwarf4_debug_aranges_size=0x1c 29903 dwarf4_line_sz=5 29904 done 29905 29906 if test $dwarf4_success = yes; then 29907 conftest_s="\ 29908 .file \"foo.c\" 29909 .text 29910bar: 29911#APP 29912# 82 \"xxx.h\" 1 29913 $insn 29914# 0 \"\" 2 29915#NO_APP 29916 $insn 29917foo: 29918 .file 1 \"foo.c\" 29919 $insn 29920 .file 2 \"foo.h\" 29921 ret 29922" 29923 dwarf4_success=no 29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5 29925$as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; } 29926if ${gcc_cv_as_dwarf_4_app_flag+:} false; then : 29927 $as_echo_n "(cached) " >&6 29928else 29929 gcc_cv_as_dwarf_4_app_flag=no 29930 if test x$gcc_cv_as != x; then 29931 $as_echo "$conftest_s" > conftest.s 29932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5' 29933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29934 (eval $ac_try) 2>&5 29935 ac_status=$? 29936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29937 test $ac_status = 0; }; } 29938 then 29939 gcc_cv_as_dwarf_4_app_flag=yes 29940 else 29941 echo "configure: failed program was" >&5 29942 cat conftest.s >&5 29943 fi 29944 rm -f conftest.o conftest.s 29945 fi 29946fi 29947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5 29948$as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; } 29949if test $gcc_cv_as_dwarf_4_app_flag = yes; then 29950 dwarf4_success=yes 29951fi 29952 29953 fi 29954 29955 if test $dwarf4_success = yes; then 29956 conftest_s="\ 29957 .text 29958 .globl foo 29959 $function_type 29960foo: 29961 $insn 29962 $function_size 29963 .file 1 \"foo.c\" 29964" 29965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5 29966$as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; } 29967if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then : 29968 $as_echo_n "(cached) " >&6 29969else 29970 gcc_cv_as_working_gdwarf_n_flag=no 29971 if test x$gcc_cv_as != x; then 29972 $as_echo "$conftest_s" > conftest.s 29973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5' 29974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29975 (eval $ac_try) 2>&5 29976 ac_status=$? 29977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29978 test $ac_status = 0; }; } 29979 then 29980 if test x$gcc_cv_objdump != x \ 29981 && $gcc_cv_objdump -W conftest.o 2>&1 \ 29982 | grep conftest.s > /dev/null 2>&1; then 29983 gcc_cv_as_working_gdwarf_n_flag=no 29984 else 29985 gcc_cv_as_working_gdwarf_n_flag=yes 29986 fi 29987 else 29988 echo "configure: failed program was" >&5 29989 cat conftest.s >&5 29990 fi 29991 rm -f conftest.o conftest.s 29992 fi 29993fi 29994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5 29995$as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; } 29996 29997 29998 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then 29999 30000$as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h 30001 30002 fi 30003 fi 30004 30005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5 30006$as_echo_n "checking assembler for --gstabs option... " >&6; } 30007if ${gcc_cv_as_gstabs_flag+:} false; then : 30008 $as_echo_n "(cached) " >&6 30009else 30010 gcc_cv_as_gstabs_flag=no 30011 if test x$gcc_cv_as != x; then 30012 $as_echo "$insn" > conftest.s 30013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5' 30014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30015 (eval $ac_try) 2>&5 30016 ac_status=$? 30017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30018 test $ac_status = 0; }; } 30019 then 30020 gcc_cv_as_gstabs_flag=yes 30021 else 30022 echo "configure: failed program was" >&5 30023 cat conftest.s >&5 30024 fi 30025 rm -f conftest.o conftest.s 30026 fi 30027fi 30028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5 30029$as_echo "$gcc_cv_as_gstabs_flag" >&6; } 30030if test $gcc_cv_as_gstabs_flag = yes; then 30031 30032$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h 30033 30034fi 30035 30036 30037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5 30038$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; } 30039if ${gcc_cv_as_debug_prefix_map_flag+:} false; then : 30040 $as_echo_n "(cached) " >&6 30041else 30042 gcc_cv_as_debug_prefix_map_flag=no 30043 if test x$gcc_cv_as != x; then 30044 $as_echo "$insn" > conftest.s 30045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5' 30046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30047 (eval $ac_try) 2>&5 30048 ac_status=$? 30049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30050 test $ac_status = 0; }; } 30051 then 30052 gcc_cv_as_debug_prefix_map_flag=yes 30053 else 30054 echo "configure: failed program was" >&5 30055 cat conftest.s >&5 30056 fi 30057 rm -f conftest.o conftest.s 30058 fi 30059fi 30060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5 30061$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; } 30062if test $gcc_cv_as_debug_prefix_map_flag = yes; then 30063 30064$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h 30065 30066fi 30067 30068fi 30069 30070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5 30071$as_echo_n "checking assembler for compressed debug sections... " >&6; } 30072if ${gcc_cv_as_compress_debug+:} false; then : 30073 $as_echo_n "(cached) " >&6 30074else 30075 gcc_cv_as_compress_debug=no 30076 if test x$gcc_cv_as != x; then 30077 $as_echo '' > conftest.s 30078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 30079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30080 (eval $ac_try) 2>&5 30081 ac_status=$? 30082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30083 test $ac_status = 0; }; } 30084 then 30085 # gas compiled without zlib cannot compress debug sections and warns 30086 # about it, but still exits successfully. So check for this, too. 30087 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null 30088 then 30089 gcc_cv_as_compress_debug=0 30090 # Since binutils 2.26, gas supports --compress-debug-sections=type, 30091 # defaulting to the ELF gABI format. 30092 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1 30093 then 30094 gcc_cv_as_compress_debug=2 30095 gcc_cv_as_compress_debug_option="--compress-debug-sections" 30096 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections" 30097 # Before binutils 2.26, gas only supported --compress-debug-options and 30098 # emitted the traditional GNU format. 30099 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1 30100 then 30101 gcc_cv_as_compress_debug=1 30102 gcc_cv_as_compress_debug_option="--compress-debug-sections" 30103 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections" 30104 else 30105 gcc_cv_as_compress_debug=0 30106 fi 30107 else 30108 echo "configure: failed program was" >&5 30109 cat conftest.s >&5 30110 fi 30111 rm -f conftest.o conftest.s 30112 fi 30113fi 30114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5 30115$as_echo "$gcc_cv_as_compress_debug" >&6; } 30116 30117 30118 30119cat >>confdefs.h <<_ACEOF 30120#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug 30121_ACEOF 30122 30123 30124cat >>confdefs.h <<_ACEOF 30125#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option" 30126_ACEOF 30127 30128 30129cat >>confdefs.h <<_ACEOF 30130#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option" 30131_ACEOF 30132 30133 30134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5 30135$as_echo_n "checking assembler for .lcomm with alignment... " >&6; } 30136if ${gcc_cv_as_lcomm_with_alignment+:} false; then : 30137 $as_echo_n "(cached) " >&6 30138else 30139 gcc_cv_as_lcomm_with_alignment=no 30140 if test x$gcc_cv_as != x; then 30141 $as_echo '.lcomm bar,4,16' > conftest.s 30142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 30143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30144 (eval $ac_try) 2>&5 30145 ac_status=$? 30146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30147 test $ac_status = 0; }; } 30148 then 30149 gcc_cv_as_lcomm_with_alignment=yes 30150 else 30151 echo "configure: failed program was" >&5 30152 cat conftest.s >&5 30153 fi 30154 rm -f conftest.o conftest.s 30155 fi 30156fi 30157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5 30158$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; } 30159if test $gcc_cv_as_lcomm_with_alignment = yes; then 30160 30161$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h 30162 30163fi 30164 30165 30166if test x$with_sysroot = x && test x$host = x$target \ 30167 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \ 30168 && test "$prefix" != "NONE"; then 30169 30170cat >>confdefs.h <<_ACEOF 30171#define PREFIX_INCLUDE_DIR "$prefix/include" 30172_ACEOF 30173 30174fi 30175 30176# Determine the version of glibc, if any, used on the target. 30177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5 30178$as_echo_n "checking for target glibc version... " >&6; } 30179 30180# Check whether --with-glibc-version was given. 30181if test "${with_glibc_version+set}" = set; then : 30182 withval=$with_glibc_version; 30183if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then 30184 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'` 30185 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'` 30186else 30187 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5 30188fi 30189else 30190 30191glibc_version_major=0 30192glibc_version_minor=0 30193if test -f $target_header_dir/features.h \ 30194 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \ 30195 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then 30196 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'` 30197 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'` 30198fi 30199fi 30200 30201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5 30202$as_echo "$glibc_version_major.$glibc_version_minor" >&6; } 30203 30204cat >>confdefs.h <<_ACEOF 30205#define TARGET_GLIBC_MAJOR $glibc_version_major 30206_ACEOF 30207 30208 30209cat >>confdefs.h <<_ACEOF 30210#define TARGET_GLIBC_MINOR $glibc_version_minor 30211_ACEOF 30212 30213 30214# Check whether --enable-gnu-unique-object was given. 30215if test "${enable_gnu_unique_object+set}" = set; then : 30216 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in 30217 yes | no) ;; 30218 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object. 30219Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 30220 esac 30221else 30222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5 30223$as_echo_n "checking assembler for gnu_unique_object... " >&6; } 30224if ${gcc_cv_as_gnu_unique_object+:} false; then : 30225 $as_echo_n "(cached) " >&6 30226else 30227 gcc_cv_as_gnu_unique_object=no 30228 if test x$gcc_cv_as != x; then 30229 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s 30230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 30231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30232 (eval $ac_try) 2>&5 30233 ac_status=$? 30234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30235 test $ac_status = 0; }; } 30236 then 30237 gcc_cv_as_gnu_unique_object=yes 30238 else 30239 echo "configure: failed program was" >&5 30240 cat conftest.s >&5 30241 fi 30242 rm -f conftest.o conftest.s 30243 fi 30244fi 30245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5 30246$as_echo "$gcc_cv_as_gnu_unique_object" >&6; } 30247if test $gcc_cv_as_gnu_unique_object = yes; then 30248 # We need to unquote above to to use the definition from config.gcc. 30249# Also check for ld.so support, i.e. glibc 2.11 or higher. 30250 30251if test $glibc_version_major -gt 2 \ 30252 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then : 30253 enable_gnu_unique_object=yes 30254fi 30255 30256fi 30257 30258fi 30259 30260if test x$enable_gnu_unique_object = xyes; then 30261 30262$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h 30263 30264fi 30265 30266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5 30267$as_echo_n "checking assembler for tolerance to line number 0... " >&6; } 30268if ${gcc_cv_as_line_zero+:} false; then : 30269 $as_echo_n "(cached) " >&6 30270else 30271 gcc_cv_as_line_zero=no 30272 if test "x$gcc_cv_as" != x; then 30273 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s 30274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out' 30275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30276 (eval $ac_try) 2>&5 30277 ac_status=$? 30278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30279 test $ac_status = 0; }; } && 30280 test "x`cat conftest.out`" = x 30281 then 30282 gcc_cv_as_line_zero=yes 30283 else 30284 echo "configure: failed program was" >&5 30285 cat conftest.s >&5 30286 echo "configure: error output was" >&5 30287 cat conftest.out >&5 30288 fi 30289 rm -f conftest.o conftest.s conftest.out 30290 fi 30291fi 30292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5 30293$as_echo "$gcc_cv_as_line_zero" >&6; } 30294if test "x$gcc_cv_as_line_zero" = xyes; then 30295 30296$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h 30297 30298fi 30299 30300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5 30301$as_echo_n "checking support for thin archives... " >&6; } 30302thin_archive_support=no 30303echo 'int main (void) { return 0; }' > conftest.c 30304if ($AR --version | sed 1q | grep "GNU ar" \ 30305 && $CC $CFLAGS -c conftest.c \ 30306 && $AR rcT conftest.a conftest.o \ 30307 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then 30308 thin_archive_support=yes 30309fi 30310rm -f conftest.c conftest.o conftest.a conftest 30311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5 30312$as_echo "$thin_archive_support" >&6; } 30313 30314 30315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5 30316$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; } 30317gcc_cv_ld_eh_frame_hdr=no 30318if test $in_tree_ld = yes ; then 30319 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \ 30320 && test $in_tree_ld_is_elf = yes; then 30321 gcc_cv_ld_eh_frame_hdr=yes 30322 fi 30323elif test x$gcc_cv_ld != x; then 30324 if echo "$ld_ver" | grep GNU > /dev/null; then 30325 # Check if linker supports --eh-frame-hdr option 30326 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then 30327 gcc_cv_ld_eh_frame_hdr=yes 30328 fi 30329 else 30330 case "$target" in 30331 *-*-solaris2*) 30332 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251. 30333 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then 30334 gcc_cv_ld_eh_frame_hdr=yes 30335 fi 30336 ;; 30337 esac 30338 fi 30339fi 30340 30341if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then 30342 30343$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h 30344 30345fi 30346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5 30347$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; } 30348 30349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5 30350$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; } 30351gcc_cv_ld_eh_frame_ciev3=no 30352if test $in_tree_ld = yes ; then 30353 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \ 30354 && test $in_tree_ld_is_elf = yes; then 30355 gcc_cv_ld_eh_frame_ciev3=yes 30356 fi 30357elif test x$gcc_cv_ld != x; then 30358 if echo "$ld_ver" | grep GNU > /dev/null; then 30359 gcc_cv_ld_eh_frame_ciev3=yes 30360 if test 0"$ld_date" -lt 20040513; then 30361 if test -n "$ld_date"; then 30362 # If there was date string, but was earlier than 2004-05-13, fail 30363 gcc_cv_ld_eh_frame_ciev3=no 30364 elif test "$ld_vers_major" -lt 2; then 30365 gcc_cv_ld_eh_frame_ciev3=no 30366 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 30367 gcc_cv_ld_eh_frame_ciev3=no 30368 fi 30369 fi 30370 else 30371 case "$target" in 30372 *-*-solaris2*) 30373 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1. 30374 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then 30375 gcc_cv_ld_eh_frame_ciev3=yes 30376 fi 30377 ;; 30378 esac 30379 fi 30380fi 30381 30382cat >>confdefs.h <<_ACEOF 30383#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi` 30384_ACEOF 30385 30386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5 30387$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; } 30388 30389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5 30390$as_echo_n "checking linker position independent executable support... " >&6; } 30391gcc_cv_ld_pie=no 30392if test $in_tree_ld = yes ; then 30393 case "$target" in 30394 # Full PIE support on Solaris was only introduced in gld 2.26. 30395 *-*-solaris2*) gcc_gld_pie_min_version=26 ;; 30396 *) gcc_gld_pie_min_version=15 ;; 30397 esac 30398 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \ 30399 && test $in_tree_ld_is_elf = yes; then 30400 gcc_cv_ld_pie=yes 30401 fi 30402elif test x$gcc_cv_ld != x; then 30403 # Check if linker supports -pie option 30404 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then 30405 gcc_cv_ld_pie=yes 30406 case "$target" in 30407 *-*-solaris2*) 30408 if echo "$ld_ver" | grep GNU > /dev/null \ 30409 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then 30410 gcc_cv_ld_pie=no 30411 fi 30412 ;; 30413 esac 30414 else 30415 case "$target" in 30416 *-*-solaris2.1[1-9]*) 30417 # Solaris 11.3 added PIE support. 30418 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then 30419 gcc_cv_ld_pie=yes 30420 fi 30421 ;; 30422 esac 30423 fi 30424fi 30425if test x"$gcc_cv_ld_pie" = xyes; then 30426 30427$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h 30428 30429fi 30430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5 30431$as_echo "$gcc_cv_ld_pie" >&6; } 30432 30433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5 30434$as_echo_n "checking linker PIE support with copy reloc... " >&6; } 30435gcc_cv_ld_pie_copyreloc=no 30436if test $gcc_cv_ld_pie = yes ; then 30437 if test $in_tree_ld = yes ; then 30438 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then 30439 gcc_cv_ld_pie_copyreloc=yes 30440 fi 30441 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 30442 # Check if linker supports -pie option with copy reloc 30443 case "$target" in 30444 i?86-*-linux* | x86_64-*-linux*) 30445 cat > conftest1.s <<EOF 30446 .globl a_glob 30447 .data 30448 .type a_glob, @object 30449 .size a_glob, 4 30450a_glob: 30451 .long 2 30452EOF 30453 cat > conftest2.s <<EOF 30454 .text 30455 .globl main 30456 .type main, @function 30457main: 30458 movl %eax, a_glob(%rip) 30459 .size main, .-main 30460 .globl ptr 30461 .section .data.rel,"aw",@progbits 30462 .type ptr, @object 30463ptr: 30464 .quad a_glob 30465EOF 30466 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 30467 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \ 30468 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 30469 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then 30470 gcc_cv_ld_pie_copyreloc=yes 30471 fi 30472 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s 30473 ;; 30474 esac 30475 fi 30476fi 30477 30478cat >>confdefs.h <<_ACEOF 30479#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi` 30480_ACEOF 30481 30482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5 30483$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; } 30484 30485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5 30486$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; } 30487gcc_cv_ld_eh_gc_sections=no 30488if test $in_tree_ld = yes ; then 30489 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \ 30490 && test $in_tree_ld_is_elf = yes; then 30491 gcc_cv_ld_eh_gc_sections=yes 30492 fi 30493elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 30494 cat > conftest.s <<EOF 30495 .section .text 30496.globl _start 30497 .type _start, @function 30498_start: 30499 .long foo 30500 .size _start, .-_start 30501 .section .text.foo,"ax",@progbits 30502 .type foo, @function 30503foo: 30504 .long 0 30505 .size foo, .-foo 30506 .section .gcc_except_table.foo,"a",@progbits 30507.L0: 30508 .long 0 30509 .section .eh_frame,"a",@progbits 30510 .long .L0 30511EOF 30512 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 30513 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 30514 | grep "gc-sections option ignored" > /dev/null; then 30515 gcc_cv_ld_eh_gc_sections=no 30516 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 30517 | grep gcc_except_table > /dev/null; then 30518 gcc_cv_ld_eh_gc_sections=yes 30519 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections. 30520 if test x$gcc_cv_as_comdat_group != xyes; then 30521 gcc_cv_ld_eh_gc_sections=no 30522 cat > conftest.s <<EOF 30523 .section .text 30524.globl _start 30525 .type _start, @function 30526_start: 30527 .long foo 30528 .size _start, .-_start 30529 .section .gnu.linkonce.t.foo,"ax",@progbits 30530 .type foo, @function 30531foo: 30532 .long 0 30533 .size foo, .-foo 30534 .section .gcc_except_table.foo,"a",@progbits 30535.L0: 30536 .long 0 30537 .section .eh_frame,"a",@progbits 30538 .long .L0 30539EOF 30540 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 30541 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 30542 | grep "gc-sections option ignored" > /dev/null; then 30543 gcc_cv_ld_eh_gc_sections=no 30544 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 30545 | grep gcc_except_table > /dev/null; then 30546 gcc_cv_ld_eh_gc_sections=yes 30547 fi 30548 fi 30549 fi 30550 fi 30551 fi 30552 rm -f conftest.s conftest.o conftest 30553fi 30554case "$target" in 30555 hppa*-*-linux*) 30556 # ??? This apparently exposes a binutils bug with PC-relative relocations. 30557 gcc_cv_ld_eh_gc_sections=no 30558 ;; 30559esac 30560if test x$gcc_cv_ld_eh_gc_sections = xyes; then 30561 30562$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h 30563 30564fi 30565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5 30566$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; } 30567 30568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5 30569$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; } 30570gcc_cv_ld_eh_gc_sections_bug=no 30571if test $in_tree_ld = yes ; then 30572 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \ 30573 && test $in_tree_ld_is_elf = yes; then 30574 gcc_cv_ld_eh_gc_sections_bug=yes 30575 fi 30576elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then 30577 gcc_cv_ld_eh_gc_sections_bug=yes 30578 cat > conftest.s <<EOF 30579 .section .text 30580.globl _start 30581 .type _start, @function 30582_start: 30583 .long foo 30584 .size _start, .-_start 30585 .section .text.startup.foo,"ax",@progbits 30586 .type foo, @function 30587foo: 30588 .long 0 30589 .size foo, .-foo 30590 .section .gcc_except_table.foo,"a",@progbits 30591.L0: 30592 .long 0 30593 .section .eh_frame,"a",@progbits 30594 .long .L0 30595EOF 30596 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 30597 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 30598 | grep "gc-sections option ignored" > /dev/null; then 30599 : 30600 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 30601 | grep gcc_except_table > /dev/null; then 30602 gcc_cv_ld_eh_gc_sections_bug=no 30603 fi 30604 fi 30605 rm -f conftest.s conftest.o conftest 30606fi 30607if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then 30608 30609$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h 30610 30611fi 30612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5 30613$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; } 30614 30615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5 30616$as_echo_n "checking linker for compressed debug sections... " >&6; } 30617# gold/gld support compressed debug sections since binutils 2.19/2.21 30618# In binutils 2.26, gld gained support for the ELF gABI format. 30619if test $in_tree_ld = yes ; then 30620 gcc_cv_ld_compress_debug=0 30621 if test $ld_is_mold = yes; then 30622 gcc_cv_ld_compress_debug=3 30623 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30624 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \ 30625 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then 30626 gcc_cv_ld_compress_debug=2 30627 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30628 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \ 30629 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then 30630 gcc_cv_ld_compress_debug=3 30631 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30632 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \ 30633 && test $in_tree_ld_is_elf = yes; then 30634 gcc_cv_ld_compress_debug=1 30635 fi 30636elif echo "$ld_ver" | grep GNU > /dev/null; then 30637 if test $ld_is_mold = yes; then 30638 gcc_cv_ld_compress_debug=3 30639 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30640 elif test "$ld_vers_major" -lt 2 \ 30641 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then 30642 gcc_cv_ld_compress_debug=0 30643 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then 30644 gcc_cv_ld_compress_debug=1 30645 else 30646 gcc_cv_ld_compress_debug=3 30647 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30648 fi 30649 if test $ld_is_gold = yes; then 30650 gcc_cv_ld_compress_debug=2 30651 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30652 fi 30653else 30654 case "${target}" in 30655 *-*-solaris2*) 30656 # Introduced in Solaris 11.2. 30657 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then 30658 gcc_cv_ld_compress_debug=3 30659 gcc_cv_ld_compress_debug_option="-z compress-sections" 30660 else 30661 gcc_cv_ld_compress_debug=0 30662 fi 30663 ;; 30664 *) 30665 # Assume linkers other than GNU ld don't support compessed debug 30666 # sections. 30667 gcc_cv_ld_compress_debug=0 30668 ;; 30669 esac 30670fi 30671 30672cat >>confdefs.h <<_ACEOF 30673#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug 30674_ACEOF 30675 30676 30677cat >>confdefs.h <<_ACEOF 30678#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option" 30679_ACEOF 30680 30681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5 30682$as_echo "$gcc_cv_ld_compress_debug" >&6; } 30683 30684if test x"$ld64_flag" = x"yes"; then 30685 30686 # Set defaults for possibly untestable items. 30687 gcc_cv_ld64_export_dynamic=0 30688 gcc_cv_ld64_platform_version=0 30689 30690 if test "$build" = "$host"; then 30691 darwin_try_test=1 30692 else 30693 darwin_try_test=0 30694 fi 30695 30696 # On Darwin, because of FAT library support, it is often possible to execute 30697 # exes from compatible archs even when the host differs from the build system. 30698 case "$build","$host" in 30699 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*) 30700 darwin_try_test=1;; 30701 *) ;; 30702 esac 30703 30704 # If the configurer specified a minimum ld64 version to be supported, then use 30705 # that to determine feature support. 30706 if test x"${gcc_cv_ld64_version}" != x; then 30707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5 30708$as_echo_n "checking ld64 specified version... " >&6; } 30709 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'` 30710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5 30711$as_echo "$gcc_cv_ld64_major" >&6; } 30712 if test "$gcc_cv_ld64_major" -ge 236; then 30713 gcc_cv_ld64_export_dynamic=1 30714 fi 30715 if test "$gcc_cv_ld64_major" -ge 512; then 30716 gcc_cv_ld64_platform_version=1 30717 fi 30718 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then 30719 # If the version was not specified, try to find it. 30720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5 30721$as_echo_n "checking linker version... " >&6; } 30722 if test x"${gcc_cv_ld64_version}" = x; then 30723 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'` 30724 fi 30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5 30726$as_echo "$gcc_cv_ld64_version" >&6; } 30727 30728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5 30729$as_echo_n "checking linker for -export_dynamic support... " >&6; } 30730 gcc_cv_ld64_export_dynamic=1 30731 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then 30732 gcc_cv_ld64_export_dynamic=0 30733 fi 30734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5 30735$as_echo "$gcc_cv_ld64_export_dynamic" >&6; } 30736 30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5 30738$as_echo_n "checking linker for -platform_version support... " >&6; } 30739 gcc_cv_ld64_platform_version=1 30740 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then 30741 gcc_cv_ld64_platform_version=0 30742 fi 30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5 30744$as_echo "$gcc_cv_ld64_platform_version" >&6; } 30745 fi 30746 30747 if test x"${gcc_cv_ld64_version}" != x; then 30748 30749cat >>confdefs.h <<_ACEOF 30750#define LD64_VERSION "${gcc_cv_ld64_version}" 30751_ACEOF 30752 30753 fi 30754 30755 30756cat >>confdefs.h <<_ACEOF 30757#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic 30758_ACEOF 30759 30760 30761 30762cat >>confdefs.h <<_ACEOF 30763#define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version 30764_ACEOF 30765 30766fi 30767 30768if test x"$dsymutil_flag" = x"yes"; then 30769 30770 # If the user specified a dsymutil path, then we will already have the 30771 # version string, otherwise, pick it up. 30772 if test x"$gcc_cv_dsymutil" = x; then 30773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5 30774$as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;} 30775 dsymutil_vers="tool unspecified" 30776 elif test x"$dsymutil_vers" = x; then 30777 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1` 30778 fi 30779 30780 dsymutil_temp=`echo $dsymutil_vers | sed 1q` 30781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5 30782$as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; } 30783 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then 30784 dsymutil_kind=DWARFUTILS 30785 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'` 30786 elif echo $dsymutil_temp | grep clang- > /dev/null; then 30787 dsymutil_kind=CLANG 30788 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'` 30789 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then 30790 dsymutil_kind=LLVM 30791 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'` 30792 else 30793 dsymutil_kind=UNKNOWN 30794 dsymutil_vers="0.0" 30795 fi 30796 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'` 30797 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'` 30798 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 30799 if test x"${dsymutil_minor}" = x; then 30800 dsymutil_minor=0 30801 fi 30802 if test x"${dsymutil_tiny}" = x; then 30803 dsymutil_tiny=0 30804 fi 30805 30806cat >>confdefs.h <<_ACEOF 30807#define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny} 30808_ACEOF 30809 30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5 30811$as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; } 30812fi 30813 30814case $target_os in 30815 win32 | pe | cygwin* | mingw32*) 30816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5 30817$as_echo_n "checking broken PE linker dwarf5 support... " >&6; } 30818 gcc_cv_ld_broken_pe_dwarf5=yes 30819 if test $in_tree_ld = yes ; then 30820 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 30821 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \ 30822 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 30823 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then 30824 gcc_cv_ld_broken_pe_dwarf5=no 30825 fi 30826 else 30827 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 30828 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then 30829 gcc_cv_ld_broken_pe_dwarf5=no 30830 fi 30831 fi 30832 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then 30833 30834$as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h 30835 30836 fi 30837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5 30838$as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; } 30839 30840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5 30841$as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; } 30842 gcc_cv_ld_disable_dynamicbase=no 30843 if test $in_tree_ld = yes; then 30844 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \ 30845 gcc_cv_ld_disable_dynamicbase=yes 30846 fi 30847 else 30848 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then 30849 gcc_cv_ld_disable_dynamicbase=yes 30850 fi 30851 fi 30852 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then 30853 30854$as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h 30855 30856 fi 30857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5 30858$as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; } 30859 ;; 30860esac 30861 30862# -------- 30863# UNSORTED 30864# -------- 30865 30866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 30867$as_echo_n "checking linker --as-needed support... " >&6; } 30868if ${gcc_cv_ld_as_needed+:} false; then : 30869 $as_echo_n "(cached) " >&6 30870else 30871 gcc_cv_ld_as_needed=no 30872gcc_cv_ld_as_needed_option='--as-needed' 30873gcc_cv_ld_no_as_needed_option='--no-as-needed' 30874if test $in_tree_ld = yes ; then 30875 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \ 30876 && test $in_tree_ld_is_elf = yes; then 30877 gcc_cv_ld_as_needed=yes 30878 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then 30879 gcc_cv_ld_as_needed_option='--push-state --as-needed' 30880 gcc_cv_ld_no_as_needed_option='--pop-state' 30881 fi 30882 fi 30883elif test x$gcc_cv_ld != x; then 30884 # Check if linker supports --as-needed and --no-as-needed options 30885 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then 30886 gcc_cv_ld_as_needed=yes 30887 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \ 30888 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \ 30889 && echo "$ld_ver" | grep GNU > /dev/null \ 30890 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then 30891 # Use these options only when both ld.bfd and ld.gold support 30892 # --push-state/--pop-state, which unfortunately wasn't added 30893 # at the same time. 30894 gcc_cv_ld_as_needed_option='--push-state --as-needed' 30895 gcc_cv_ld_no_as_needed_option='--pop-state' 30896 fi 30897 fi 30898 case "$target:$gnu_ld" in 30899 *-*-solaris2*:no) 30900 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native 30901 # forms. 30902 gcc_cv_ld_as_needed=yes 30903 gcc_cv_ld_as_needed_option="-z ignore" 30904 gcc_cv_ld_no_as_needed_option="-z record" 30905 ;; 30906 esac 30907fi 30908# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses 30909# dl_iterate_phdr, i.e. since Solaris 11. 30910case "$target" in 30911 *-*-solaris2.1[1-9]*) 30912 case "$target" in 30913 i?86-*-* | x86_64-*-*) 30914 if echo "$ld_ver" | grep GNU > /dev/null; then 30915 # Doesn't work with gld on Solaris/x86 due to PR ld/12320. 30916 gcc_cv_ld_as_needed=no 30917 fi 30918 ;; 30919 esac 30920 ;; 30921 *-*-solaris2*) 30922 gcc_cv_ld_as_needed=no 30923 ;; 30924esac 30925 30926fi 30927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5 30928$as_echo "$gcc_cv_ld_as_needed" >&6; } 30929if test x"$gcc_cv_ld_as_needed" = xyes; then 30930 30931$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h 30932 30933 30934cat >>confdefs.h <<_ACEOF 30935#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option" 30936_ACEOF 30937 30938 30939cat >>confdefs.h <<_ACEOF 30940#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option" 30941_ACEOF 30942 30943fi 30944 30945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5 30946$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; } 30947saved_LDFLAGS="$LDFLAGS" 30948for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do 30949 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map" 30950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30951/* end confdefs.h. */ 30952int main(void) {return 0;} 30953_ACEOF 30954if ac_fn_cxx_try_link "$LINENO"; then : 30955 gcc_cv_ld_clearcap=yes; break 30956else 30957 gcc_cv_ld_clearcap=no 30958fi 30959rm -f core conftest.err conftest.$ac_objext \ 30960 conftest$ac_exeext conftest.$ac_ext 30961done 30962LDFLAGS="$saved_LDFLAGS" 30963if test "x$gcc_cv_ld_clearcap" = xyes; then 30964 30965$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h 30966 30967 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map" 30968 30969fi 30970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5 30971$as_echo "$gcc_cv_ld_clearcap" >&6; } 30972 30973case "$target" in 30974 powerpc*-*-*) 30975 case "$target" in 30976 *le-*-linux*) 30977 emul_name="-melf32lppc" 30978 ;; 30979 *) 30980 emul_name="-melf32ppc" 30981 ;; 30982 esac 30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5 30984$as_echo_n "checking linker .gnu.attributes long double support... " >&6; } 30985if ${gcc_cv_ld_ppc_attr+:} false; then : 30986 $as_echo_n "(cached) " >&6 30987else 30988 gcc_cv_ld_ppc_attr=no 30989 if test x"$ld_is_gold" = xyes; then 30990 gcc_cv_ld_ppc_attr=yes 30991 elif test $in_tree_ld = yes ; then 30992 if test "$gcc_cv_gld_major_version" -eq 2 \ 30993 -a "$gcc_cv_gld_minor_version" -ge 28 \ 30994 -o "$gcc_cv_gld_major_version" -gt 2; then 30995 gcc_cv_ld_ppc_attr=yes 30996 fi 30997 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 30998 # check that merging the long double .gnu_attribute doesn't warn 30999 cat > conftest1.s <<EOF 31000 .gnu_attribute 4,1 31001EOF 31002 cat > conftest2.s <<EOF 31003 .gnu_attribute 4,9 31004EOF 31005 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 31006 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 31007 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \ 31008 && test ! -s conftest.err; then 31009 gcc_cv_ld_ppc_attr=yes 31010 fi 31011 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s 31012 fi 31013 31014fi 31015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5 31016$as_echo "$gcc_cv_ld_ppc_attr" >&6; } 31017 if test x$gcc_cv_ld_ppc_attr = xyes; then 31018 31019$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h 31020 31021 fi 31022 ;; 31023esac 31024 31025case "$target:$tm_file" in 31026 powerpc64*-*-freebsd* | powerpc64-*-netbsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*) 31027 case "$target" in 31028 *le-*-linux*) 31029 emul_name="-melf64lppc" 31030 ;; 31031 *-*-linux* | *-*-netbsd*) 31032 emul_name="-melf64ppc" 31033 ;; 31034 *le-*-freebsd*) 31035 emul_name="-melf64lppc_fbsd" 31036 ;; 31037 *-*-freebsd*) 31038 emul_name="-melf64ppc_fbsd" 31039 ;; 31040 esac 31041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5 31042$as_echo_n "checking linker support for omitting dot symbols... " >&6; } 31043if ${gcc_cv_ld_no_dot_syms+:} false; then : 31044 $as_echo_n "(cached) " >&6 31045else 31046 gcc_cv_ld_no_dot_syms=no 31047 if test x"$ld_is_gold" = xyes; then 31048 gcc_cv_ld_no_dot_syms=yes 31049 elif test $in_tree_ld = yes ; then 31050 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then 31051 gcc_cv_ld_no_dot_syms=yes 31052 fi 31053 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 31054 cat > conftest1.s <<EOF 31055 .text 31056 bl .foo 31057EOF 31058 cat > conftest2.s <<EOF 31059 .section ".opd","aw" 31060 .align 3 31061 .globl foo 31062 .type foo,@function 31063foo: 31064 .quad .LEfoo,.TOC.@tocbase,0 31065 .text 31066.LEfoo: 31067 blr 31068 .size foo,.-.LEfoo 31069EOF 31070 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 31071 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 31072 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then 31073 gcc_cv_ld_no_dot_syms=yes 31074 fi 31075 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s 31076 fi 31077 31078fi 31079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5 31080$as_echo "$gcc_cv_ld_no_dot_syms" >&6; } 31081 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then 31082 31083$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h 31084 31085 fi 31086 31087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5 31088$as_echo_n "checking linker large toc support... " >&6; } 31089if ${gcc_cv_ld_large_toc+:} false; then : 31090 $as_echo_n "(cached) " >&6 31091else 31092 gcc_cv_ld_large_toc=no 31093 if test x"$ld_is_gold" = xyes; then 31094 gcc_cv_ld_large_toc=yes 31095 elif test $in_tree_ld = yes ; then 31096 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then 31097 gcc_cv_ld_large_toc=yes 31098 fi 31099 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 31100 cat > conftest.s <<EOF 31101 .section ".tbss","awT",@nobits 31102 .align 3 31103ie0: .space 8 31104 .global _start 31105 .text 31106_start: 31107 addis 9,13,ie0@got@tprel@ha 31108 ld 9,ie0@got@tprel@l(9) 31109EOF 31110 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 31111 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then 31112 gcc_cv_ld_large_toc=yes 31113 fi 31114 rm -f conftest conftest.o conftest.s 31115 fi 31116 31117fi 31118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5 31119$as_echo "$gcc_cv_ld_large_toc" >&6; } 31120 if test x"$gcc_cv_ld_large_toc" = xyes; then 31121 31122$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h 31123 31124 fi 31125 31126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5 31127$as_echo_n "checking linker toc pointer alignment... " >&6; } 31128if ${gcc_cv_ld_toc_align+:} false; then : 31129 $as_echo_n "(cached) " >&6 31130else 31131 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then 31132 cat > conftest.s <<EOF 31133 .global _start 31134 .text 31135_start: 31136 addis 9,2,x@got@ha 31137 .section .data.rel.ro,"aw",@progbits 31138 .p2align 16 31139 .space 32768 31140x: .quad .TOC. 31141EOF 31142 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 31143 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then 31144 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'` 31145 fi 31146 rm -f conftest conftest.o conftest.s 31147 fi 31148 31149fi 31150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5 31151$as_echo "$gcc_cv_ld_toc_align" >&6; } 31152 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then 31153 31154cat >>confdefs.h <<_ACEOF 31155#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align 31156_ACEOF 31157 31158 fi 31159 ;; 31160esac 31161 31162case "$target" in 31163 *-*-aix*) 31164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5 31165$as_echo_n "checking linker large toc support... " >&6; } 31166if ${gcc_cv_ld_large_toc+:} false; then : 31167 $as_echo_n "(cached) " >&6 31168else 31169 gcc_cv_ld_large_toc=no 31170 if test x$gcc_cv_as != x ; then 31171 cat > conftest.s <<EOF 31172 .toc 31173LC..1: 31174 .tc a[TC],a[RW] 31175 .extern a[RW] 31176 .csect .text[PR] 31177.largetoctest: 31178 addis 9,LC..1@u(2) 31179 ld 3,LC..1@l(9) 31180EOF 31181 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then 31182 gcc_cv_ld_large_toc=yes 31183 fi 31184 rm -f conftest conftest.o conftest.s 31185 fi 31186 31187fi 31188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5 31189$as_echo "$gcc_cv_ld_large_toc" >&6; } 31190 if test x"$gcc_cv_ld_large_toc" = xyes; then 31191 31192$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h 31193 31194 fi 31195 ;; 31196esac 31197 31198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5 31199$as_echo_n "checking linker --build-id support... " >&6; } 31200if ${gcc_cv_ld_buildid+:} false; then : 31201 $as_echo_n "(cached) " >&6 31202else 31203 gcc_cv_ld_buildid=no 31204 if test $in_tree_ld = yes ; then 31205 if test "$gcc_cv_gld_major_version" -eq 2 -a \ 31206 "$gcc_cv_gld_minor_version" -ge 18 -o \ 31207 "$gcc_cv_gld_major_version" -gt 2 \ 31208 && test $in_tree_ld_is_elf = yes; then 31209 gcc_cv_ld_buildid=yes 31210 fi 31211 elif test x$gcc_cv_ld != x; then 31212 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then 31213 gcc_cv_ld_buildid=yes 31214 fi 31215 fi 31216fi 31217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5 31218$as_echo "$gcc_cv_ld_buildid" >&6; } 31219if test x"$gcc_cv_ld_buildid" = xyes; then 31220 31221$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h 31222 31223fi 31224 31225# Check whether --enable-linker-build-id was given. 31226if test "${enable_linker_build_id+set}" = set; then : 31227 enableval=$enable_linker_build_id; 31228else 31229 enable_linker_build_id=no 31230fi 31231 31232 31233if test x"$enable_linker_build_id" = xyes; then 31234 if test x"$gcc_cv_ld_buildid" = xyes; then 31235 31236$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h 31237 31238 else 31239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5 31240$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;} 31241 fi 31242fi 31243 31244# In binutils 2.21, GNU ld gained support for new emulations fully 31245# supporting the Solaris 2 ABI. Detect their presence in the linker used. 31246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5 31247$as_echo_n "checking linker *_sol2 emulation support... " >&6; } 31248if ${gcc_cv_ld_sol2_emulation+:} false; then : 31249 $as_echo_n "(cached) " >&6 31250else 31251 gcc_cv_ld_sol2_emulation=no 31252 if test $in_tree_ld = yes ; then 31253 if test "$gcc_cv_gld_major_version" -eq 2 -a \ 31254 "$gcc_cv_gld_minor_version" -ge 21 -o \ 31255 "$gcc_cv_gld_major_version" -gt 2 \ 31256 && test $in_tree_ld_is_elf = yes; then 31257 gcc_cv_ld_sol2_emulation=yes 31258 fi 31259 elif test x$gcc_cv_ld != x; then 31260 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \ 31261 grep _sol2 > /dev/null; then 31262 gcc_cv_ld_sol2_emulation=yes 31263 fi 31264 fi 31265fi 31266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5 31267$as_echo "$gcc_cv_ld_sol2_emulation" >&6; } 31268if test x"$gcc_cv_ld_sol2_emulation" = xyes; then 31269 31270$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h 31271 31272fi 31273 31274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5 31275$as_echo_n "checking linker --sysroot support... " >&6; } 31276if ${gcc_cv_ld_sysroot+:} false; then : 31277 $as_echo_n "(cached) " >&6 31278else 31279 gcc_cv_ld_sysroot=no 31280 if test $in_tree_ld = yes ; then 31281 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then 31282 gcc_cv_ld_sysroot=yes 31283 fi 31284 elif test x$gcc_cv_ld != x; then 31285 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then 31286 gcc_cv_ld_sysroot=yes 31287 fi 31288 fi 31289fi 31290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5 31291$as_echo "$gcc_cv_ld_sysroot" >&6; } 31292if test x"$gcc_cv_ld_sysroot" = xyes; then 31293 31294$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h 31295 31296fi 31297 31298case $target in 31299*-*-solaris2*) 31300 # Check for system-provided CRTs on Solaris 11.x and Solaris 12. 31301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5 31302$as_echo_n "checking system-provided CRTs on Solaris... " >&6; } 31303if ${gcc_cv_solaris_crts+:} false; then : 31304 $as_echo_n "(cached) " >&6 31305else 31306 gcc_cv_solaris_crts=no 31307 if test x$host != x$target; then 31308 if test "x$with_sysroot" = xyes; then 31309 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root" 31310 else 31311 target_sysroot="${with_sysroot}" 31312 fi 31313 fi 31314 target_libdir="$target_sysroot/usr/lib" 31315 # At the time they were added, gcrt1.o became a symlink for backwards 31316 # compatibility on x86, while crt1.o was added on sparc, so check for that. 31317 case $target in 31318 i?86-*-solaris2* | x86_64-*-solaris2*) 31319 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi 31320 ;; 31321 sparc*-*-solaris2*) 31322 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi 31323 ;; 31324 esac 31325fi 31326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5 31327$as_echo "$gcc_cv_solaris_crts" >&6; } 31328 ;; 31329esac 31330if test x$gcc_cv_solaris_crts = xyes; then 31331 31332$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h 31333 31334fi 31335 31336# Check whether --enable-libssp was given. 31337if test "${enable_libssp+set}" = set; then : 31338 enableval=$enable_libssp; case "${enableval}" in 31339 yes|no) 31340 ;; 31341 *) 31342 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5 31343 ;; 31344esac 31345fi 31346 31347 31348# Test for stack protector support in target C library. 31349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5 31350$as_echo_n "checking __stack_chk_fail in target C library... " >&6; } 31351if ${gcc_cv_libc_provides_ssp+:} false; then : 31352 $as_echo_n "(cached) " >&6 31353else 31354 gcc_cv_libc_provides_ssp=no 31355 if test "x$enable_libssp" = "xno"; then 31356 gcc_cv_libc_provides_ssp=yes 31357 elif test "x$enable_libssp" = "xyes"; then 31358 gcc_cv_libc_provides_ssp=no 31359 else 31360 case "$target" in 31361 *-*-musl*) 31362 # All versions of musl provide stack protector 31363 gcc_cv_libc_provides_ssp=yes;; 31364 *-*-linux* | *-*-kfreebsd*-gnu) 31365 # glibc 2.4 and later provides __stack_chk_fail and 31366 # either __stack_chk_guard, or TLS access to stack guard canary. 31367 31368if test $glibc_version_major -gt 2 \ 31369 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 31370 gcc_cv_libc_provides_ssp=yes 31371else 31372 31373 if test -f $target_header_dir/features.h \ 31374 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \ 31375 $target_header_dir/features.h > /dev/null; then 31376 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \ 31377 $target_header_dir/features.h > /dev/null && \ 31378 test -f $target_header_dir/bits/uClibc_config.h && \ 31379 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \ 31380 $target_header_dir/bits/uClibc_config.h > /dev/null; then 31381 gcc_cv_libc_provides_ssp=yes 31382 fi 31383 # all versions of Bionic support stack protector 31384 elif test -f $target_header_dir/sys/cdefs.h \ 31385 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \ 31386 $target_header_dir/sys/cdefs.h > /dev/null; then 31387 gcc_cv_libc_provides_ssp=yes 31388 fi 31389fi 31390 ;; 31391 *-*-gnu*) 31392 # Avoid complicated tests (see 31393 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now 31394 # simply assert that glibc does provide this, which is true for all 31395 # realistically usable GNU/Hurd configurations. 31396 # All supported versions of musl provide it as well 31397 gcc_cv_libc_provides_ssp=yes;; 31398 *-*-darwin* | *-*-freebsd* | *-*-netbsd*) 31399 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail" 31400if test "x$ac_cv_func___stack_chk_fail" = xyes; then : 31401 gcc_cv_libc_provides_ssp=yes 31402else 31403 echo "no __stack_chk_fail on this target" 31404fi 31405 31406 ;; 31407 *) gcc_cv_libc_provides_ssp=no ;; 31408 esac 31409 fi 31410fi 31411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5 31412$as_echo "$gcc_cv_libc_provides_ssp" >&6; } 31413 31414if test x$gcc_cv_libc_provides_ssp = xyes; then 31415 31416$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h 31417 31418fi 31419 31420# Check whether --enable-default-ssp was given. 31421# Check whether --enable-default-ssp was given. 31422if test "${enable_default_ssp+set}" = set; then : 31423 enableval=$enable_default_ssp; 31424if test x$gcc_cv_libc_provides_ssp = xyes; then 31425 case "$target" in 31426 ia64*-*-*) enable_default_ssp=no ;; 31427 *) enable_default_ssp=$enableval ;; 31428 esac 31429else 31430 enable_default_ssp=no 31431fi 31432else 31433 enable_default_ssp=no 31434fi 31435 31436if test x$enable_default_ssp = xyes ; then 31437 31438$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h 31439 31440fi 31441 31442 31443# Test for <sys/sdt.h> on the target. 31444 31445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 31446$as_echo_n "checking sys/sdt.h in the target C library... " >&6; } 31447have_sys_sdt_h=no 31448if test -f $target_header_dir/sys/sdt.h; then 31449 have_sys_sdt_h=yes 31450 31451$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h 31452 31453fi 31454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 31455$as_echo "$have_sys_sdt_h" >&6; } 31456 31457# Check if TFmode long double should be used by default or not. 31458# Some glibc targets used DFmode long double, but with glibc 2.4 31459# and later they can use TFmode. 31460case "$target" in 31461 powerpc*-*-linux* | \ 31462 sparc*-*-linux* | \ 31463 s390*-*-linux* | \ 31464 alpha*-*-linux*) 31465 31466# Check whether --with-long-double-128 was given. 31467if test "${with_long_double_128+set}" = set; then : 31468 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128" 31469else 31470 31471 case "$target" in 31472 s390*-*-linux-musl*) 31473 gcc_cv_target_ldbl128=yes 31474 ;; 31475 powerpc*-*-linux-musl*) 31476 gcc_cv_target_ldbl128=no 31477 ;; 31478 *) 31479 31480if test $glibc_version_major -gt 2 \ 31481 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 31482 gcc_cv_target_ldbl128=yes 31483else 31484 31485 gcc_cv_target_ldbl128=no 31486 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \ 31487 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \ 31488 && gcc_cv_target_ldbl128=yes 31489 31490fi 31491 31492 ;; 31493 esac 31494 31495fi 31496 31497 ;; 31498esac 31499if test x$gcc_cv_target_ldbl128 = xyes; then 31500 31501$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h 31502 31503fi 31504 31505# Check if TFmode long double target should use the IBM extended double or IEEE 31506# 128-bit floating point formats if long doubles are 128-bits long. The long 31507# double type can only be switched on powerpc64 bit Linux systems where VSX is 31508# supported. Other PowerPC systems do not build the IEEE 128-bit emulator in 31509# libgcc. 31510 31511# Check whether --with-long-double-format was given. 31512if test "${with_long_double_format+set}" = set; then : 31513 withval=$with_long_double_format; 31514case "$target:$with_long_double_format" in 31515 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm) 31516 : 31517 ;; 31518 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm) 31519 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems 31520 case "$with_cpu" in 31521 power7 | power8 | power9 | power1*) 31522 : 31523 ;; 31524 *) 31525 as_fn_error $? "Configuration option --with-long-double-format is only \ 31526supported if the default cpu is power7 or newer" "$LINENO" 5 31527 with_long_double_format="" 31528 ;; 31529 esac 31530 ;; 31531 powerpc64*-*-linux*:*) 31532 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5 31533 with_long_double_format="" 31534 ;; 31535 *) 31536 as_fn_error $? "Configure option --with-long-double-format is only supported \ 31537on 64-bit PowerPC VSX Linux systems" "$LINENO" 5 31538 with_long_double_format="" 31539 ;; 31540esac 31541fi 31542 31543 31544# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP 31545# values in the TCB. Currently, only GLIBC 2.23 and later support this. 31546gcc_cv_libc_provides_hwcap_in_tcb=no 31547case "$target" in 31548 powerpc*-*-linux*) 31549 31550if test $glibc_version_major -gt 2 \ 31551 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then : 31552 gcc_cv_libc_provides_hwcap_in_tcb=yes 31553fi 31554 ;; 31555esac 31556if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then 31557 31558$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h 31559 31560fi 31561 31562# Check if the target LIBC handles PT_GNU_STACK. 31563gcc_cv_libc_gnustack=unknown 31564case "$target" in 31565 mips*-*-linux-musl*) 31566 gcc_cv_libc_gnustack=yes 31567 ;; 31568 mips*-*-linux*) 31569 31570if test $glibc_version_major -gt 2 \ 31571 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then : 31572 gcc_cv_libc_gnustack=yes 31573fi 31574 ;; 31575esac 31576if test x$gcc_cv_libc_gnustack = xyes; then 31577 31578$as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h 31579 31580fi 31581 31582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5 31583$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; } 31584gcc_cv_target_dl_iterate_phdr=unknown 31585case "$target" in 31586 *-*-solaris2*) 31587 # <link.h> needs both a dl_iterate_phdr declaration and support for 31588 # compilation with largefile support. 31589 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \ 31590 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then 31591 gcc_cv_target_dl_iterate_phdr=yes 31592 else 31593 gcc_cv_target_dl_iterate_phdr=no 31594 fi 31595 ;; 31596 *-*-dragonfly* | *-*-freebsd*) 31597 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then 31598 gcc_cv_target_dl_iterate_phdr=yes 31599 else 31600 gcc_cv_target_dl_iterate_phdr=no 31601 fi 31602 ;; 31603 *-linux-musl*) 31604 gcc_cv_target_dl_iterate_phdr=yes 31605 ;; 31606esac 31607 31608if test x$gcc_cv_target_dl_iterate_phdr = xyes; then 31609 31610$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h 31611 31612fi 31613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5 31614$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; } 31615 31616# We no longer support different GC mechanisms. Emit an error if 31617# the user configures with --with-gc. 31618 31619# Check whether --with-gc was given. 31620if test "${with_gc+set}" = set; then : 31621 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5 31622fi 31623 31624 31625# Libraries to use on the host. This will normally be set by the top 31626# level Makefile. Here we simply capture the value for our Makefile. 31627if test -z "${HOST_LIBS+set}"; then 31628 HOST_LIBS= 31629fi 31630 31631 31632# Use the system's zlib library. 31633 31634 # Use the system's zlib library. 31635 zlibdir="-L\$(top_builddir)/../zlib" 31636 zlibinc="-I\$(top_srcdir)/../zlib" 31637 31638# Check whether --with-system-zlib was given. 31639if test "${with_system_zlib+set}" = set; then : 31640 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 31641 zlibdir= 31642 zlibinc= 31643 fi 31644 31645fi 31646 31647 31648 31649 31650 31651 31652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 31653$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 31654 # Check whether --enable-maintainer-mode was given. 31655if test "${enable_maintainer_mode+set}" = set; then : 31656 enableval=$enable_maintainer_mode; maintainer_mode=$enableval 31657else 31658 maintainer_mode=no 31659fi 31660 31661 31662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5 31663$as_echo "$maintainer_mode" >&6; } 31664 31665if test "$maintainer_mode" = "yes"; then 31666 MAINT='' 31667else 31668 MAINT='#' 31669fi 31670 31671if test -z "$CTAGS"; then 31672 CTAGS=ctags 31673fi 31674 31675if test -z "$ETAGS"; then 31676 ETAGS=etags 31677fi 31678 31679if test -z "$CSCOPE"; then 31680 CSCOPE=cscope 31681fi 31682 31683 31684 31685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5 31686$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; } 31687 # Check whether --enable-link-mutex was given. 31688if test "${enable_link_mutex+set}" = set; then : 31689 enableval=$enable_link_mutex; do_link_mutex=$enableval 31690else 31691 do_link_mutex=no 31692fi 31693 31694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5 31695$as_echo "$do_link_mutex" >&6; } 31696 31697if test "$do_link_mutex" = "yes"; then 31698 DO_LINK_MUTEX=true 31699else 31700 DO_LINK_MUTEX=false 31701fi 31702 31703 31704 31705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5 31706$as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; } 31707 # Check whether --enable-link-serialization was given. 31708if test "${enable_link_serialization+set}" = set; then : 31709 enableval=$enable_link_serialization; do_link_serialization=$enableval 31710else 31711 do_link_serialization=no 31712fi 31713 31714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5 31715$as_echo "$do_link_serialization" >&6; } 31716 31717case "$do_link_serialization" in 31718 yes) 31719 DO_LINK_SERIALIZATION=1;; 31720 [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) 31721 DO_LINK_SERIALIZATION=$do_link_serialization;; 31722 no) 31723 DO_LINK_SERIALIZATION=;; 31724 *) 31725 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;; 31726esac 31727 31728 31729# -------------- 31730# Language hooks 31731# -------------- 31732 31733# Make empty files to contain the specs and options for each language. 31734# Then add #include lines to for a compiler that has specs and/or options. 31735 31736subdirs= 31737lang_opt_files= 31738lang_specs_files= 31739lang_tree_files= 31740# These (without "all_") are set in each config-lang.in. 31741# `language' must be a single word so is spelled singularly. 31742all_languages= 31743all_compilers= 31744all_outputs='Makefile' 31745# List of language configure and makefile fragments. 31746all_lang_configurefrags= 31747all_lang_makefrags= 31748# Additional files for gengtype 31749all_gtfiles="$target_gtfiles" 31750 31751# These are the languages that are set in --enable-languages, 31752# and are available in the GCC tree. 31753all_selected_languages= 31754 31755# Add the language fragments. 31756# Languages are added via two mechanisms. Some information must be 31757# recorded in makefile variables, these are defined in config-lang.in. 31758# We accumulate them and plug them into the main Makefile. 31759# The other mechanism is a set of hooks for each of the main targets 31760# like `clean', `install', etc. 31761 31762language_hooks="Make-hooks" 31763 31764for lang in ${srcdir}/*/config-lang.in 31765do 31766 test "$lang" = "${srcdir}/*/config-lang.in" && continue 31767 31768 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` 31769 if test "x$lang_alias" = x 31770 then 31771 echo "$lang doesn't set \$language." 1>&2 31772 exit 1 31773 fi 31774 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" 31775 subdirs="$subdirs $subdir" 31776 31777 # $gcc_subdir is where the gcc integration files are to be found 31778 # for a language, both for internal compiler purposes (compiler 31779 # sources implementing front-end to GCC tree converters), and for 31780 # build infrastructure purposes (Make-lang.in, etc.) 31781 # 31782 # This will be <subdir> (relative to $srcdir) if a line like 31783 # gcc_subdir="<subdir>" or gcc_subdir=<subdir> 31784 # is found in <langdir>/config-lang.in, and will remain <langdir> 31785 # otherwise. 31786 # 31787 # Except for the language alias (fetched above), the regular 31788 # "config-lang.in" contents are always retrieved from $gcc_subdir, 31789 # so a <langdir>/config-lang.in setting gcc_subdir typically sets 31790 # only this and the language alias. 31791 31792 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang` 31793 if [ "$gcc_subdir" = "" ]; then 31794 gcc_subdir="$subdir" 31795 fi 31796 31797 case ",$enable_languages," in 31798 *,$lang_alias,*) 31799 all_selected_languages="$all_selected_languages $lang_alias" 31800 if test -f $srcdir/$gcc_subdir/lang-specs.h; then 31801 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h" 31802 fi 31803 ;; 31804 esac 31805 31806 language= 31807 boot_language= 31808 compilers= 31809 outputs= 31810 gtfiles= 31811 subdir_requires= 31812 . ${srcdir}/$gcc_subdir/config-lang.in 31813 if test "x$language" = x 31814 then 31815 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2 31816 exit 1 31817 fi 31818 31819 ok=: 31820 case ",$enable_languages," in 31821 *,$lang_alias,*) ;; 31822 *) 31823 for i in $subdir_requires; do 31824 test -f "${srcdir}/$i/config-lang.in" && continue 31825 ok=false 31826 break 31827 done 31828 ;; 31829 esac 31830 $ok || continue 31831 31832 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in" 31833 if test "x$language" = xc && test -n "$all_lang_makefrags"; then 31834 # Put c/Make-lang.in fragment first to match serialization languages order. 31835 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags" 31836 else 31837 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in" 31838 fi 31839 if test -f $srcdir/$gcc_subdir/lang.opt; then 31840 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt" 31841 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt" 31842 fi 31843 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then 31844 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def" 31845 fi 31846 all_languages="$all_languages $language" 31847 all_compilers="$all_compilers $compilers" 31848 all_outputs="$all_outputs $outputs" 31849 all_gtfiles="$all_gtfiles [$subdir] $gtfiles" 31850 case ",$enable_languages," in 31851 *,lto,*) 31852 31853$as_echo "#define ENABLE_LTO 1" >>confdefs.h 31854 31855 enable_lto=yes 31856 31857 ;; 31858 *) ;; 31859 esac 31860done 31861 31862check_languages= 31863for language in $all_selected_languages 31864do 31865 check_languages="$check_languages check-$language" 31866done 31867 31868selftest_languages= 31869for language in $all_selected_languages 31870do 31871 selftest_languages="$selftest_languages selftest-$language" 31872done 31873 31874# We link each language in with a set of hooks, reached indirectly via 31875# lang.${target}. Only do so for selected languages. 31876 31877rm -f Make-hooks 31878touch Make-hooks 31879target_list="all.cross start.encap rest.encap tags \ 31880 install-common install-man install-info install-dvi install-pdf \ 31881 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \ 31882 mostlyclean clean distclean maintainer-clean install-plugin" 31883 31884for t in $target_list 31885do 31886 x= 31887 for lang in $all_selected_languages 31888 do 31889 x="$x $lang.$t" 31890 done 31891 echo "lang.$t: $x" >> Make-hooks 31892done 31893 31894echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks 31895echo "SERIAL_LIST =" >> Make-hooks 31896echo else >> Make-hooks 31897lang_cnt=0 31898lang_list= 31899prev=c 31900serialization_languages=c 31901for lang in $all_selected_languages 31902do 31903 test $lang = c && continue 31904 if test $lang = lto; then 31905 serialization_languages="$serialization_languages lto1 lto2" 31906 else 31907 serialization_languages="$serialization_languages $lang" 31908 fi 31909done 31910for lang in $serialization_languages 31911do 31912 test $lang = c && continue 31913 lang_cnt=`expr $lang_cnt + 1` 31914 lang_list=" $prev$lang_list" 31915 prev=${lang} 31916done 31917echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks 31918echo endif >> Make-hooks 31919echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks 31920echo "INDEX.c = 0" >> Make-hooks 31921lang_idx=1 31922for lang in $serialization_languages 31923do 31924 test $lang = c && continue 31925 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks 31926 echo "INDEX.$lang = $lang_idx" >> Make-hooks 31927 lang_cnt=`expr $lang_cnt - 1` 31928 lang_idx=`expr $lang_idx + 1` 31929done 31930 31931# -------- 31932# Option include files 31933# -------- 31934 31935${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk 31936option_includes="option-includes.mk" 31937 31938 31939# -------- 31940# UNSORTED 31941# -------- 31942 31943# Create .gdbinit. 31944 31945echo "dir ." > .gdbinit 31946echo "dir ${srcdir}" >> .gdbinit 31947if test x$gdb_needs_out_file_path = xyes 31948then 31949 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit 31950fi 31951if test "x$subdirs" != x; then 31952 for s in $subdirs 31953 do 31954 echo "dir ${srcdir}/$s" >> .gdbinit 31955 done 31956fi 31957echo "source ${srcdir}/gdbinit.in" >> .gdbinit 31958echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit 31959 31960# Put a breakpoint on __asan_report_error to help with debugging buffer 31961# overflow. 31962case "$CFLAGS" in 31963*-fsanitize=address*) 31964 echo "source ${srcdir}/gdbasan.in" >> .gdbinit 31965 ;; 31966esac 31967 31968gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)' 31969 31970 31971 31972# Find a directory in which to install a shared libgcc. 31973 31974# Check whether --enable-version-specific-runtime-libs was given. 31975if test "${enable_version_specific_runtime_libs+set}" = set; then : 31976 enableval=$enable_version_specific_runtime_libs; 31977fi 31978 31979 31980# Substitute configuration variables 31981 31982 31983 31984 31985 31986 31987 31988 31989 31990 31991 31992 31993 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 32023 32024 32025 32026 32027 32028 32029 32030 32031 32032 32033 32034 32035 32036 32037 32038 32039 32040 32041 32042 32043 32044 32045 32046 32047 32048 32049 32050# Echo link setup. 32051if test x${build} = x${host} ; then 32052 if test x${host} = x${target} ; then 32053 echo "Links are now set up to build a native compiler for ${target}." 1>&2 32054 else 32055 echo "Links are now set up to build a cross-compiler" 1>&2 32056 echo " from ${host} to ${target}." 1>&2 32057 fi 32058else 32059 if test x${host} = x${target} ; then 32060 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2 32061 echo " for ${target}." 1>&2 32062 else 32063 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2 32064 echo " from ${host} to ${target}." 1>&2 32065 fi 32066fi 32067 32068 32069 32070 32071 32072 32073if test "x${ISLLIBS}" != "x" ; then 32074 32075$as_echo "#define HAVE_isl 1" >>confdefs.h 32076 32077fi 32078 32079# Check for plugin support 32080 # Check whether --enable-plugin was given. 32081if test "${enable_plugin+set}" = set; then : 32082 enableval=$enable_plugin; enable_plugin=$enableval 32083else 32084 enable_plugin=yes; default_plugin=yes 32085fi 32086 32087 32088 pluginlibs= 32089 plugin_check=yes 32090 32091 case "${host}" in 32092 *-*-mingw*) 32093 # Since plugin support under MinGW is not as straightforward as on 32094 # other platforms (e.g., we have to link import library, etc), we 32095 # only enable it if explicitly requested. 32096 if test x"$default_plugin" = x"yes"; then 32097 enable_plugin=no 32098 elif test x"$enable_plugin" = x"yes"; then 32099 # Use make's target variable to derive import library name. 32100 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a' 32101 plugin_check=no 32102 fi 32103 ;; 32104 *-*-darwin*) 32105 if test x$build = x$host; then 32106 export_sym_check="nm${exeext} -g" 32107 elif test x$host = x$target; then 32108 export_sym_check="$gcc_cv_nm -g" 32109 else 32110 export_sym_check= 32111 fi 32112 ;; 32113 *) 32114 if test x$build = x$host; then 32115 export_sym_check="objdump${exeext} -T" 32116 elif test x$host = x$target; then 32117 export_sym_check="$gcc_cv_objdump -T" 32118 else 32119 export_sym_check= 32120 fi 32121 ;; 32122 esac 32123 32124 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then 32125 32126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5 32127$as_echo_n "checking for exported symbols... " >&6; } 32128 if test "x$export_sym_check" != x; then 32129 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c 32130 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1 32131 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 32132 : # No need to use a flag 32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32134$as_echo "yes" >&6; } 32135 else 32136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32137$as_echo "yes" >&6; } 32138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5 32139$as_echo_n "checking for -rdynamic... " >&6; } 32140 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1 32141 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 32142 plugin_rdynamic=yes 32143 pluginlibs="-rdynamic" 32144 else 32145 plugin_rdynamic=no 32146 enable_plugin=no 32147 fi 32148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5 32149$as_echo "$plugin_rdynamic" >&6; } 32150 fi 32151 else 32152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5 32153$as_echo "unable to check" >&6; } 32154 fi 32155 32156 # Check -ldl 32157 saved_LIBS="$LIBS" 32158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 32159$as_echo_n "checking for library containing dlopen... " >&6; } 32160if ${ac_cv_search_dlopen+:} false; then : 32161 $as_echo_n "(cached) " >&6 32162else 32163 ac_func_search_save_LIBS=$LIBS 32164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32165/* end confdefs.h. */ 32166 32167/* Override any GCC internal prototype to avoid an error. 32168 Use char because int might match the return type of a GCC 32169 builtin and then its argument prototype would still apply. */ 32170#ifdef __cplusplus 32171extern "C" 32172#endif 32173char dlopen (); 32174int 32175main () 32176{ 32177return dlopen (); 32178 ; 32179 return 0; 32180} 32181_ACEOF 32182for ac_lib in '' dl; do 32183 if test -z "$ac_lib"; then 32184 ac_res="none required" 32185 else 32186 ac_res=-l$ac_lib 32187 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32188 fi 32189 if ac_fn_cxx_try_link "$LINENO"; then : 32190 ac_cv_search_dlopen=$ac_res 32191fi 32192rm -f core conftest.err conftest.$ac_objext \ 32193 conftest$ac_exeext 32194 if ${ac_cv_search_dlopen+:} false; then : 32195 break 32196fi 32197done 32198if ${ac_cv_search_dlopen+:} false; then : 32199 32200else 32201 ac_cv_search_dlopen=no 32202fi 32203rm conftest.$ac_ext 32204LIBS=$ac_func_search_save_LIBS 32205fi 32206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 32207$as_echo "$ac_cv_search_dlopen" >&6; } 32208ac_res=$ac_cv_search_dlopen 32209if test "$ac_res" != no; then : 32210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32211 32212fi 32213 32214 if test x"$ac_cv_search_dlopen" = x"-ldl"; then 32215 pluginlibs="$pluginlibs -ldl" 32216 fi 32217 LIBS="$saved_LIBS" 32218 32219 # Check that we can build shared objects with -fPIC -shared 32220 saved_LDFLAGS="$LDFLAGS" 32221 saved_CFLAGS="$CFLAGS" 32222 saved_CXXFLAGS="$CXXFLAGS" 32223 case "${host}" in 32224 *-*-darwin*) 32225 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` 32226 CFLAGS="$CFLAGS -fPIC" 32227 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g` 32228 CXXFLAGS="$CXXFLAGS -fPIC" 32229 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup" 32230 ;; 32231 *) 32232 CFLAGS="$CFLAGS -fPIC" 32233 CXXFLAGS="$CXXFLAGS -fPIC" 32234 LDFLAGS="$LDFLAGS -fPIC -shared" 32235 ;; 32236 esac 32237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5 32238$as_echo_n "checking for -fPIC -shared... " >&6; } 32239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32240/* end confdefs.h. */ 32241extern int X; 32242int 32243main () 32244{ 32245return X == 0; 32246 ; 32247 return 0; 32248} 32249_ACEOF 32250if ac_fn_cxx_try_link "$LINENO"; then : 32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32252$as_echo "yes" >&6; }; have_pic_shared=yes 32253else 32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32255$as_echo "no" >&6; }; have_pic_shared=no 32256fi 32257rm -f core conftest.err conftest.$ac_objext \ 32258 conftest$ac_exeext conftest.$ac_ext 32259 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then 32260 pluginlibs= 32261 enable_plugin=no 32262 fi 32263 LDFLAGS="$saved_LDFLAGS" 32264 CFLAGS="$saved_CFLAGS" 32265 CXXFLAGS="$saved_CXXFLAGS" 32266 32267 # If plugin support had been requested but not available, fail. 32268 if test x"$enable_plugin" = x"no" ; then 32269 if test x"$default_plugin" != x"yes"; then 32270 as_fn_error $? " 32271 Building GCC with plugin support requires a host that supports 32272 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5 32273 fi 32274 fi 32275 fi 32276 32277 32278 32279if test x"$enable_plugin" = x"yes"; then 32280 32281$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h 32282 32283fi 32284 32285 32286# Enable --enable-host-shared 32287# Check whether --enable-host-shared was given. 32288if test "${enable_host_shared+set}" = set; then : 32289 enableval=$enable_host_shared; PICFLAG=-fPIC 32290else 32291 PICFLAG= 32292fi 32293 32294 32295 32296 32297 32298# Check whether --enable-libquadmath-support was given. 32299if test "${enable_libquadmath_support+set}" = set; then : 32300 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 32301else 32302 ENABLE_LIBQUADMATH_SUPPORT=yes 32303fi 32304 32305if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then 32306 32307$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h 32308 32309fi 32310 32311 32312# Specify what hash style to use by default. 32313 32314# Check whether --with-linker-hash-style was given. 32315if test "${with_linker_hash_style+set}" = set; then : 32316 withval=$with_linker_hash_style; case x"$withval" in 32317 xsysv) 32318 LINKER_HASH_STYLE=sysv 32319 ;; 32320 xgnu) 32321 LINKER_HASH_STYLE=gnu 32322 ;; 32323 xboth) 32324 LINKER_HASH_STYLE=both 32325 ;; 32326 *) 32327 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5 32328 ;; 32329 esac 32330else 32331 LINKER_HASH_STYLE='' 32332fi 32333 32334if test x"${LINKER_HASH_STYLE}" != x; then 32335 32336cat >>confdefs.h <<_ACEOF 32337#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE" 32338_ACEOF 32339 32340fi 32341 32342# Specify what should be the default of -fdiagnostics-color option. 32343 32344# Check whether --with-diagnostics-color was given. 32345if test "${with_diagnostics_color+set}" = set; then : 32346 withval=$with_diagnostics_color; case x"$withval" in 32347 xnever) 32348 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO 32349 ;; 32350 xauto) 32351 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO 32352 ;; 32353 xauto-if-env) 32354 DIAGNOSTICS_COLOR_DEFAULT=-1 32355 ;; 32356 xalways) 32357 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES 32358 ;; 32359 *) 32360 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5 32361 ;; 32362 esac 32363else 32364 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO 32365fi 32366 32367 32368cat >>confdefs.h <<_ACEOF 32369#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT 32370_ACEOF 32371 32372 32373# Specify what should be the default of -fdiagnostics-urls option. 32374 32375# Check whether --with-diagnostics-urls was given. 32376if test "${with_diagnostics_urls+set}" = set; then : 32377 withval=$with_diagnostics_urls; case x"$withval" in 32378 xnever) 32379 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO 32380 ;; 32381 xauto) 32382 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO 32383 ;; 32384 xauto-if-env) 32385 DIAGNOSTICS_URLS_DEFAULT=-1 32386 ;; 32387 xalways) 32388 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES 32389 ;; 32390 *) 32391 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5 32392 ;; 32393 esac 32394else 32395 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO 32396fi 32397 32398 32399cat >>confdefs.h <<_ACEOF 32400#define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT 32401_ACEOF 32402 32403 32404# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit 32405# of jit/jit-playback.cc. 32406gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"` 32407echo "gcc_driver_version: ${gcc_driver_version}" 32408cat > gcc-driver-name.h <<EOF 32409#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}" 32410EOF 32411 32412# Check whether --enable-default-pie was given. 32413# Check whether --enable-default-pie was given. 32414if test "${enable_default_pie+set}" = set; then : 32415 enableval=$enable_default_pie; enable_default_pie=$enableval 32416else 32417 enable_default_pie=no 32418fi 32419 32420if test x$enable_default_pie = xyes ; then 32421 32422$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h 32423 32424fi 32425 32426 32427# Check if -fno-PIE works. 32428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5 32429$as_echo_n "checking for -fno-PIE option... " >&6; } 32430if ${gcc_cv_c_no_fpie+:} false; then : 32431 $as_echo_n "(cached) " >&6 32432else 32433 saved_CXXFLAGS="$CXXFLAGS" 32434 CXXFLAGS="$CXXFLAGS -fno-PIE" 32435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32436/* end confdefs.h. */ 32437int main(void) {return 0;} 32438_ACEOF 32439if ac_fn_cxx_try_compile "$LINENO"; then : 32440 gcc_cv_c_no_fpie=yes 32441else 32442 gcc_cv_c_no_fpie=no 32443fi 32444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32445 CXXFLAGS="$saved_CXXFLAGS" 32446fi 32447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5 32448$as_echo "$gcc_cv_c_no_fpie" >&6; } 32449if test "$gcc_cv_c_no_fpie" = "yes"; then 32450 NO_PIE_CFLAGS="-fno-PIE" 32451fi 32452 32453 32454# Check if -no-pie works. 32455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5 32456$as_echo_n "checking for -no-pie option... " >&6; } 32457if ${gcc_cv_no_pie+:} false; then : 32458 $as_echo_n "(cached) " >&6 32459else 32460 saved_LDFLAGS="$LDFLAGS" 32461 LDFLAGS="$LDFLAGS -no-pie" 32462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32463/* end confdefs.h. */ 32464int main(void) {return 0;} 32465_ACEOF 32466if ac_fn_cxx_try_link "$LINENO"; then : 32467 gcc_cv_no_pie=yes 32468else 32469 gcc_cv_no_pie=no 32470fi 32471rm -f core conftest.err conftest.$ac_objext \ 32472 conftest$ac_exeext conftest.$ac_ext 32473 LDFLAGS="$saved_LDFLAGS" 32474fi 32475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5 32476$as_echo "$gcc_cv_no_pie" >&6; } 32477if test "$gcc_cv_no_pie" = "yes"; then 32478 NO_PIE_FLAG="-no-pie" 32479fi 32480 32481 32482# Enable Intel CET on Intel CET enabled host if jit is enabled. 32483 # Check whether --enable-cet was given. 32484if test "${enable_cet+set}" = set; then : 32485 enableval=$enable_cet; 32486 case "$enableval" in 32487 yes|no|auto) ;; 32488 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 32489 esac 32490 32491else 32492 enable_cet=auto 32493fi 32494 32495 32496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 32497$as_echo_n "checking for CET support... " >&6; } 32498 32499case "$host" in 32500 i[34567]86-*-linux* | x86_64-*-linux*) 32501 may_have_cet=yes 32502 cet_save_CFLAGS="$CFLAGS" 32503 CFLAGS="$CFLAGS -fcf-protection" 32504 case "$enable_cet" in 32505 auto) 32506 # Check if target supports multi-byte NOPs 32507 # and if compiler and assembler support CET. 32508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32509/* end confdefs.h. */ 32510 32511int 32512main () 32513{ 32514 32515#if !defined(__SSE2__) 32516#error target does not support multi-byte NOPs 32517#else 32518asm ("setssbsy"); 32519#endif 32520 32521 ; 32522 return 0; 32523} 32524_ACEOF 32525if ac_fn_cxx_try_compile "$LINENO"; then : 32526 enable_cet=yes 32527else 32528 enable_cet=no 32529fi 32530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32531 ;; 32532 yes) 32533 # Check if compiler and assembler support CET. 32534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32535/* end confdefs.h. */ 32536 32537int 32538main () 32539{ 32540asm ("setssbsy"); 32541 ; 32542 return 0; 32543} 32544_ACEOF 32545if ac_fn_cxx_try_compile "$LINENO"; then : 32546 support_cet=yes 32547else 32548 support_cet=no 32549fi 32550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32551 if test $support_cet = "no"; then 32552 if test x$enable_bootstrap != xno \ 32553 && test -z "${with_build_subdir}" \ 32554 && (test ! -f ../stage_current \ 32555 || test `cat ../stage_current` != "stage1"); then 32556 # Require CET support only for the final GCC build. 32557 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5 32558 else 32559 # Don't enable CET without CET support for non-bootstrap 32560 # build, in stage1 nor for build support. 32561 enable_cet=no 32562 fi 32563 fi 32564 ;; 32565 esac 32566 CFLAGS="$cet_save_CFLAGS" 32567 ;; 32568 *) 32569 may_have_cet=no 32570 enable_cet=no 32571 ;; 32572esac 32573 32574cet_save_CFLAGS="$CFLAGS" 32575CFLAGS="$CFLAGS -fcf-protection=none" 32576cet_save_LDFLAGS="$LDFLAGS" 32577LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk" 32578if test x$may_have_cet = xyes; then 32579 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work. 32580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32581/* end confdefs.h. */ 32582 32583int 32584main () 32585{ 32586return 0; 32587 ; 32588 return 0; 32589} 32590_ACEOF 32591if ac_fn_cxx_try_link "$LINENO"; then : 32592 may_have_cet=yes 32593else 32594 may_have_cet=no 32595fi 32596rm -f core conftest.err conftest.$ac_objext \ 32597 conftest$ac_exeext conftest.$ac_ext 32598fi 32599 32600if test x$may_have_cet = xyes; then 32601 if test x$cross_compiling = xno; then 32602 if test "$cross_compiling" = yes; then : 32603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32605as_fn_error $? "cannot run test program while cross compiling 32606See \`config.log' for more details" "$LINENO" 5; } 32607else 32608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32609/* end confdefs.h. */ 32610 32611int 32612main () 32613{ 32614 asm ("endbr32"); 32615 return 0; 32616} 32617 32618_ACEOF 32619if ac_fn_cxx_try_run "$LINENO"; then : 32620 have_multi_byte_nop=yes 32621else 32622 have_multi_byte_nop=no 32623fi 32624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32625 conftest.$ac_objext conftest.beam conftest.$ac_ext 32626fi 32627 32628 have_cet=no 32629 if test x$have_multi_byte_nop = xyes; then 32630 if test "$cross_compiling" = yes; then : 32631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32633as_fn_error $? "cannot run test program while cross compiling 32634See \`config.log' for more details" "$LINENO" 5; } 32635else 32636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32637/* end confdefs.h. */ 32638 32639static void 32640foo (void) 32641{ 32642} 32643 32644static void 32645__attribute__ ((noinline, noclone)) 32646xxx (void (*f) (void)) 32647{ 32648 f (); 32649} 32650 32651static void 32652__attribute__ ((noinline, noclone)) 32653bar (void) 32654{ 32655 xxx (foo); 32656} 32657 32658int 32659main () 32660{ 32661 bar (); 32662 return 0; 32663} 32664 32665_ACEOF 32666if ac_fn_cxx_try_run "$LINENO"; then : 32667 have_cet=no 32668else 32669 have_cet=yes 32670fi 32671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32672 conftest.$ac_objext conftest.beam conftest.$ac_ext 32673fi 32674 32675 fi 32676 if test x$enable_cet = xno -a x$have_cet = xyes; then 32677 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5 32678 fi 32679 fi 32680else 32681 # Enable CET in cross compiler if possible so that it will run on both 32682 # CET and non-CET hosts. 32683 have_cet=yes 32684fi 32685if test x$enable_cet = xyes; then 32686 CET_HOST_FLAGS="-fcf-protection" 32687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32688$as_echo "yes" >&6; } 32689else 32690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32691$as_echo "no" >&6; } 32692fi 32693CFLAGS="$cet_save_CFLAGS" 32694LDFLAGS="$cet_save_LDFLAGS" 32695 32696case x$enable_languages in 32697*jit*) 32698 ;; 32699*) 32700 CET_HOST_FLAGS= 32701 ;; 32702esac 32703 32704 32705# Check linker supports '-z bndplt' 32706ld_bndplt_support=no 32707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5 32708$as_echo_n "checking linker -z bndplt option... " >&6; } 32709if test x"$ld_is_gold" = xno; then 32710 if test $in_tree_ld = yes ; then 32711 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then 32712 ld_bndplt_support=yes 32713 fi 32714 elif test x$gcc_cv_ld != x; then 32715 # Check if linker supports -a bndplt option 32716 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then 32717 ld_bndplt_support=yes 32718 fi 32719 fi 32720fi 32721if test x"$ld_bndplt_support" = xyes; then 32722 32723$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h 32724 32725fi 32726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5 32727$as_echo "$ld_bndplt_support" >&6; } 32728 32729# Check linker supports '--push-state'/'--pop-state' 32730ld_pushpopstate_support=no 32731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5 32732$as_echo_n "checking linker --push-state/--pop-state options... " >&6; } 32733if test x"$ld_is_gold" = xno; then 32734 if test $in_tree_ld = yes ; then 32735 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then 32736 ld_pushpopstate_support=yes 32737 fi 32738 elif test x$gcc_cv_ld != x; then 32739 # Check if linker supports --push-state/--pop-state options 32740 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then 32741 ld_pushpopstate_support=yes 32742 fi 32743 fi 32744fi 32745if test x"$ld_pushpopstate_support" = xyes; then 32746 32747$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h 32748 32749fi 32750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5 32751$as_echo "$ld_pushpopstate_support" >&6; } 32752 32753# On s390, float_t has historically been statically defined as double for no 32754# good reason. To comply with the C standard in the light of this definition, 32755# gcc has evaluated float expressions in double precision when in 32756# standards-compatible mode or when given -fexcess-precision=standard. To enable 32757# a smooth transition towards the new model used by most architectures, where 32758# gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives 32759# float_t from that, this behavior can be configured with 32760# --enable-s390-excess-float-precision. When given as enabled, that flag selects 32761# the old model. When omitted, native builds and cross compiles that have target 32762# libc headers will detect whether libc clamps float_t to double and in that 32763# case maintain the old model. Otherwise, they will default to the new model. 32764# Check whether --enable-s390-excess-float-precision was given. 32765if test "${enable_s390_excess_float_precision+set}" = set; then : 32766 enableval=$enable_s390_excess_float_precision; 32767else 32768 enable_s390_excess_float_precision=auto 32769fi 32770 32771 32772case $target in 32773 s390*-linux*) 32774 if test x"$enable_s390_excess_float_precision" = xauto; then 32775 # Can we autodetect the behavior of the target libc? 32776 if test "$target" = "$host" -a "$host" = "$build"; then 32777 enable_s390_excess_float_precision=autodetect 32778 elif test "x$with_headers" != xno; then 32779 # cross build. are target headers available? 32780 # carefully coerce the build-system compiler to use target headers 32781 saved_CXXFLAGS="$CXXFLAGS" 32782 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'` 32783 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET" 32784 CXXFLAGS="$CROSS_TEST_CXXFLAGS" 32785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32786/* end confdefs.h. */ 32787 32788#include <math.h> 32789 32790_ACEOF 32791if ac_fn_cxx_try_compile "$LINENO"; then : 32792 enable_s390_excess_float_precision=autodetect 32793fi 32794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32795 CXXFLAGS="$saved_CXXFLAGS" 32796 fi 32797 32798 if test x"$enable_s390_excess_float_precision" = xautodetect; then 32799 saved_CXXFLAGS="$CXXFLAGS" 32800 if ! test "$target" = "$host" -a "$host" = "$build"; then 32801 CXXFLAGS="$CROSS_TEST_CXXFLAGS" 32802 unset CROSS_TEST_CXXFLAGS 32803 fi 32804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5 32805$as_echo_n "checking for glibc clamping float_t to double... " >&6; } 32806if ${gcc_cv_float_t_clamped_to_double+:} false; then : 32807 $as_echo_n "(cached) " >&6 32808else 32809 32810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32811/* end confdefs.h. */ 32812 32813#define __FLT_EVAL_METHOD__ 0 32814#include <math.h> 32815int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1]; 32816 32817_ACEOF 32818if ac_fn_cxx_try_compile "$LINENO"; then : 32819 gcc_cv_float_t_clamped_to_double=yes 32820else 32821 gcc_cv_float_t_clamped_to_double=no 32822fi 32823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32824fi 32825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5 32826$as_echo "$gcc_cv_float_t_clamped_to_double" >&6; } 32827 CXXFLAGS="$saved_CXXFLAGS" 32828 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double" 32829 else 32830 # no way to detect behavior of target libc, default to new model 32831 enable_s390_excess_float_precision=no 32832 fi 32833 fi 32834 32835 32836 if test x"$enable_s390_excess_float_precision" = xyes; then 32837 32838$as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h 32839 32840 fi 32841 ;; 32842esac 32843 32844# Configure the subdirectories 32845# AC_CONFIG_SUBDIRS($subdirs) 32846 32847# Create the Makefile 32848# and configure language subdirectories 32849ac_config_files="$ac_config_files $all_outputs" 32850 32851 32852ac_config_commands="$ac_config_commands default" 32853 32854cat >confcache <<\_ACEOF 32855# This file is a shell script that caches the results of configure 32856# tests run on this system so they can be shared between configure 32857# scripts and configure runs, see configure's option --config-cache. 32858# It is not useful on other systems. If it contains results you don't 32859# want to keep, you may remove or edit it. 32860# 32861# config.status only pays attention to the cache file if you give it 32862# the --recheck option to rerun configure. 32863# 32864# `ac_cv_env_foo' variables (set or unset) will be overridden when 32865# loading this file, other *unset* `ac_cv_foo' will be assigned the 32866# following values. 32867 32868_ACEOF 32869 32870# The following way of writing the cache mishandles newlines in values, 32871# but we know of no workaround that is simple, portable, and efficient. 32872# So, we kill variables containing newlines. 32873# Ultrix sh set writes to stderr and can't be redirected directly, 32874# and sets the high bit in the cache file unless we assign to the vars. 32875( 32876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32877 eval ac_val=\$$ac_var 32878 case $ac_val in #( 32879 *${as_nl}*) 32880 case $ac_var in #( 32881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32882$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32883 esac 32884 case $ac_var in #( 32885 _ | IFS | as_nl) ;; #( 32886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32887 *) { eval $ac_var=; unset $ac_var;} ;; 32888 esac ;; 32889 esac 32890 done 32891 32892 (set) 2>&1 | 32893 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32894 *${as_nl}ac_space=\ *) 32895 # `set' does not quote correctly, so add quotes: double-quote 32896 # substitution turns \\\\ into \\, and sed turns \\ into \. 32897 sed -n \ 32898 "s/'/'\\\\''/g; 32899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32900 ;; #( 32901 *) 32902 # `set' quotes correctly as required by POSIX, so do not add quotes. 32903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32904 ;; 32905 esac | 32906 sort 32907) | 32908 sed ' 32909 /^ac_cv_env_/b end 32910 t clear 32911 :clear 32912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 32913 t end 32914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32915 :end' >>confcache 32916if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32917 if test -w "$cache_file"; then 32918 if test "x$cache_file" != "x/dev/null"; then 32919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32920$as_echo "$as_me: updating cache $cache_file" >&6;} 32921 if test ! -f "$cache_file" || test -h "$cache_file"; then 32922 cat confcache >"$cache_file" 32923 else 32924 case $cache_file in #( 32925 */* | ?:*) 32926 mv -f confcache "$cache_file"$$ && 32927 mv -f "$cache_file"$$ "$cache_file" ;; #( 32928 *) 32929 mv -f confcache "$cache_file" ;; 32930 esac 32931 fi 32932 fi 32933 else 32934 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32935$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 32936 fi 32937fi 32938rm -f confcache 32939 32940test "x$prefix" = xNONE && prefix=$ac_default_prefix 32941# Let make expand exec_prefix. 32942test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 32943 32944DEFS=-DHAVE_CONFIG_H 32945 32946ac_libobjs= 32947ac_ltlibobjs= 32948U= 32949for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 32950 # 1. Remove the extension, and $U if already installed. 32951 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 32952 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 32953 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 32954 # will be set to the directory where LIBOBJS objects are built. 32955 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 32956 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 32957done 32958LIBOBJS=$ac_libobjs 32959 32960LTLIBOBJS=$ac_ltlibobjs 32961 32962 32963 32964 32965: "${CONFIG_STATUS=./config.status}" 32966ac_write_fail=0 32967ac_clean_files_save=$ac_clean_files 32968ac_clean_files="$ac_clean_files $CONFIG_STATUS" 32969{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 32970$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 32971as_write_fail=0 32972cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 32973#! $SHELL 32974# Generated by $as_me. 32975# Run this file to recreate the current configuration. 32976# Compiler output produced by configure, useful for debugging 32977# configure, is in config.log if it exists. 32978 32979debug=false 32980ac_cs_recheck=false 32981ac_cs_silent=false 32982 32983SHELL=\${CONFIG_SHELL-$SHELL} 32984export SHELL 32985_ASEOF 32986cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 32987## -------------------- ## 32988## M4sh Initialization. ## 32989## -------------------- ## 32990 32991# Be more Bourne compatible 32992DUALCASE=1; export DUALCASE # for MKS sh 32993if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 32994 emulate sh 32995 NULLCMD=: 32996 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 32997 # is contrary to our usage. Disable this feature. 32998 alias -g '${1+"$@"}'='"$@"' 32999 setopt NO_GLOB_SUBST 33000else 33001 case `(set -o) 2>/dev/null` in #( 33002 *posix*) : 33003 set -o posix ;; #( 33004 *) : 33005 ;; 33006esac 33007fi 33008 33009 33010as_nl=' 33011' 33012export as_nl 33013# Printing a long string crashes Solaris 7 /usr/bin/printf. 33014as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33015as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33016as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33017# Prefer a ksh shell builtin over an external printf program on Solaris, 33018# but without wasting forks for bash or zsh. 33019if test -z "$BASH_VERSION$ZSH_VERSION" \ 33020 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33021 as_echo='print -r --' 33022 as_echo_n='print -rn --' 33023elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33024 as_echo='printf %s\n' 33025 as_echo_n='printf %s' 33026else 33027 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33028 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33029 as_echo_n='/usr/ucb/echo -n' 33030 else 33031 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33032 as_echo_n_body='eval 33033 arg=$1; 33034 case $arg in #( 33035 *"$as_nl"*) 33036 expr "X$arg" : "X\\(.*\\)$as_nl"; 33037 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33038 esac; 33039 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33040 ' 33041 export as_echo_n_body 33042 as_echo_n='sh -c $as_echo_n_body as_echo' 33043 fi 33044 export as_echo_body 33045 as_echo='sh -c $as_echo_body as_echo' 33046fi 33047 33048# The user is always right. 33049if test "${PATH_SEPARATOR+set}" != set; then 33050 PATH_SEPARATOR=: 33051 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33052 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33053 PATH_SEPARATOR=';' 33054 } 33055fi 33056 33057 33058# IFS 33059# We need space, tab and new line, in precisely that order. Quoting is 33060# there to prevent editors from complaining about space-tab. 33061# (If _AS_PATH_WALK were called with IFS unset, it would disable word 33062# splitting by setting IFS to empty value.) 33063IFS=" "" $as_nl" 33064 33065# Find who we are. Look in the path if we contain no directory separator. 33066as_myself= 33067case $0 in #(( 33068 *[\\/]* ) as_myself=$0 ;; 33069 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33070for as_dir in $PATH 33071do 33072 IFS=$as_save_IFS 33073 test -z "$as_dir" && as_dir=. 33074 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33075 done 33076IFS=$as_save_IFS 33077 33078 ;; 33079esac 33080# We did not find ourselves, most probably we were run as `sh COMMAND' 33081# in which case we are not to be found in the path. 33082if test "x$as_myself" = x; then 33083 as_myself=$0 33084fi 33085if test ! -f "$as_myself"; then 33086 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33087 exit 1 33088fi 33089 33090# Unset variables that we do not need and which cause bugs (e.g. in 33091# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33092# suppresses any "Segmentation fault" message there. '((' could 33093# trigger a bug in pdksh 5.2.14. 33094for as_var in BASH_ENV ENV MAIL MAILPATH 33095do eval test x\${$as_var+set} = xset \ 33096 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33097done 33098PS1='$ ' 33099PS2='> ' 33100PS4='+ ' 33101 33102# NLS nuisances. 33103LC_ALL=C 33104export LC_ALL 33105LANGUAGE=C 33106export LANGUAGE 33107 33108# CDPATH. 33109(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33110 33111 33112# as_fn_error STATUS ERROR [LINENO LOG_FD] 33113# ---------------------------------------- 33114# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33115# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33116# script with STATUS, using 1 if that was 0. 33117as_fn_error () 33118{ 33119 as_status=$1; test $as_status -eq 0 && as_status=1 33120 if test "$4"; then 33121 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33122 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33123 fi 33124 $as_echo "$as_me: error: $2" >&2 33125 as_fn_exit $as_status 33126} # as_fn_error 33127 33128 33129# as_fn_set_status STATUS 33130# ----------------------- 33131# Set $? to STATUS, without forking. 33132as_fn_set_status () 33133{ 33134 return $1 33135} # as_fn_set_status 33136 33137# as_fn_exit STATUS 33138# ----------------- 33139# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33140as_fn_exit () 33141{ 33142 set +e 33143 as_fn_set_status $1 33144 exit $1 33145} # as_fn_exit 33146 33147# as_fn_unset VAR 33148# --------------- 33149# Portably unset VAR. 33150as_fn_unset () 33151{ 33152 { eval $1=; unset $1;} 33153} 33154as_unset=as_fn_unset 33155# as_fn_append VAR VALUE 33156# ---------------------- 33157# Append the text in VALUE to the end of the definition contained in VAR. Take 33158# advantage of any shell optimizations that allow amortized linear growth over 33159# repeated appends, instead of the typical quadratic growth present in naive 33160# implementations. 33161if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33162 eval 'as_fn_append () 33163 { 33164 eval $1+=\$2 33165 }' 33166else 33167 as_fn_append () 33168 { 33169 eval $1=\$$1\$2 33170 } 33171fi # as_fn_append 33172 33173# as_fn_arith ARG... 33174# ------------------ 33175# Perform arithmetic evaluation on the ARGs, and store the result in the 33176# global $as_val. Take advantage of shells that can avoid forks. The arguments 33177# must be portable across $(()) and expr. 33178if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33179 eval 'as_fn_arith () 33180 { 33181 as_val=$(( $* )) 33182 }' 33183else 33184 as_fn_arith () 33185 { 33186 as_val=`expr "$@" || test $? -eq 1` 33187 } 33188fi # as_fn_arith 33189 33190 33191if expr a : '\(a\)' >/dev/null 2>&1 && 33192 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33193 as_expr=expr 33194else 33195 as_expr=false 33196fi 33197 33198if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33199 as_basename=basename 33200else 33201 as_basename=false 33202fi 33203 33204if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33205 as_dirname=dirname 33206else 33207 as_dirname=false 33208fi 33209 33210as_me=`$as_basename -- "$0" || 33211$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33212 X"$0" : 'X\(//\)$' \| \ 33213 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33214$as_echo X/"$0" | 33215 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33216 s//\1/ 33217 q 33218 } 33219 /^X\/\(\/\/\)$/{ 33220 s//\1/ 33221 q 33222 } 33223 /^X\/\(\/\).*/{ 33224 s//\1/ 33225 q 33226 } 33227 s/.*/./; q'` 33228 33229# Avoid depending upon Character Ranges. 33230as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33231as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33232as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33233as_cr_digits='0123456789' 33234as_cr_alnum=$as_cr_Letters$as_cr_digits 33235 33236ECHO_C= ECHO_N= ECHO_T= 33237case `echo -n x` in #((((( 33238-n*) 33239 case `echo 'xy\c'` in 33240 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33241 xy) ECHO_C='\c';; 33242 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33243 ECHO_T=' ';; 33244 esac;; 33245*) 33246 ECHO_N='-n';; 33247esac 33248 33249rm -f conf$$ conf$$.exe conf$$.file 33250if test -d conf$$.dir; then 33251 rm -f conf$$.dir/conf$$.file 33252else 33253 rm -f conf$$.dir 33254 mkdir conf$$.dir 2>/dev/null 33255fi 33256if (echo >conf$$.file) 2>/dev/null; then 33257 if ln -s conf$$.file conf$$ 2>/dev/null; then 33258 as_ln_s='ln -s' 33259 # ... but there are two gotchas: 33260 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33261 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33262 # In both cases, we have to default to `cp -pR'. 33263 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33264 as_ln_s='cp -pR' 33265 elif ln conf$$.file conf$$ 2>/dev/null; then 33266 as_ln_s=ln 33267 else 33268 as_ln_s='cp -pR' 33269 fi 33270else 33271 as_ln_s='cp -pR' 33272fi 33273rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33274rmdir conf$$.dir 2>/dev/null 33275 33276 33277# as_fn_mkdir_p 33278# ------------- 33279# Create "$as_dir" as a directory, including parents if necessary. 33280as_fn_mkdir_p () 33281{ 33282 33283 case $as_dir in #( 33284 -*) as_dir=./$as_dir;; 33285 esac 33286 test -d "$as_dir" || eval $as_mkdir_p || { 33287 as_dirs= 33288 while :; do 33289 case $as_dir in #( 33290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33291 *) as_qdir=$as_dir;; 33292 esac 33293 as_dirs="'$as_qdir' $as_dirs" 33294 as_dir=`$as_dirname -- "$as_dir" || 33295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33296 X"$as_dir" : 'X\(//\)[^/]' \| \ 33297 X"$as_dir" : 'X\(//\)$' \| \ 33298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33299$as_echo X"$as_dir" | 33300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33301 s//\1/ 33302 q 33303 } 33304 /^X\(\/\/\)[^/].*/{ 33305 s//\1/ 33306 q 33307 } 33308 /^X\(\/\/\)$/{ 33309 s//\1/ 33310 q 33311 } 33312 /^X\(\/\).*/{ 33313 s//\1/ 33314 q 33315 } 33316 s/.*/./; q'` 33317 test -d "$as_dir" && break 33318 done 33319 test -z "$as_dirs" || eval "mkdir $as_dirs" 33320 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33321 33322 33323} # as_fn_mkdir_p 33324if mkdir -p . 2>/dev/null; then 33325 as_mkdir_p='mkdir -p "$as_dir"' 33326else 33327 test -d ./-p && rmdir ./-p 33328 as_mkdir_p=false 33329fi 33330 33331 33332# as_fn_executable_p FILE 33333# ----------------------- 33334# Test if FILE is an executable regular file. 33335as_fn_executable_p () 33336{ 33337 test -f "$1" && test -x "$1" 33338} # as_fn_executable_p 33339as_test_x='test -x' 33340as_executable_p=as_fn_executable_p 33341 33342# Sed expression to map a string onto a valid CPP name. 33343as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33344 33345# Sed expression to map a string onto a valid variable name. 33346as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33347 33348 33349exec 6>&1 33350## ----------------------------------- ## 33351## Main body of $CONFIG_STATUS script. ## 33352## ----------------------------------- ## 33353_ASEOF 33354test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33355 33356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33357# Save the log message, to keep $0 and so on meaningful, and to 33358# report actual input values of CONFIG_FILES etc. instead of their 33359# values after options handling. 33360ac_log=" 33361This file was extended by $as_me, which was 33362generated by GNU Autoconf 2.69. Invocation command line was 33363 33364 CONFIG_FILES = $CONFIG_FILES 33365 CONFIG_HEADERS = $CONFIG_HEADERS 33366 CONFIG_LINKS = $CONFIG_LINKS 33367 CONFIG_COMMANDS = $CONFIG_COMMANDS 33368 $ $0 $@ 33369 33370on `(hostname || uname -n) 2>/dev/null | sed 1q` 33371" 33372 33373_ACEOF 33374 33375case $ac_config_files in *" 33376"*) set x $ac_config_files; shift; ac_config_files=$*;; 33377esac 33378 33379case $ac_config_headers in *" 33380"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33381esac 33382 33383 33384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33385# Files that config.status was made for. 33386config_files="$ac_config_files" 33387config_headers="$ac_config_headers" 33388config_links="$ac_config_links" 33389config_commands="$ac_config_commands" 33390 33391_ACEOF 33392 33393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33394ac_cs_usage="\ 33395\`$as_me' instantiates files and other configuration actions 33396from templates according to the current configuration. Unless the files 33397and actions are specified as TAGs, all are instantiated by default. 33398 33399Usage: $0 [OPTION]... [TAG]... 33400 33401 -h, --help print this help, then exit 33402 -V, --version print version number and configuration settings, then exit 33403 --config print configuration, then exit 33404 -q, --quiet, --silent 33405 do not print progress messages 33406 -d, --debug don't remove temporary files 33407 --recheck update $as_me by reconfiguring in the same conditions 33408 --file=FILE[:TEMPLATE] 33409 instantiate the configuration file FILE 33410 --header=FILE[:TEMPLATE] 33411 instantiate the configuration header FILE 33412 33413Configuration files: 33414$config_files 33415 33416Configuration headers: 33417$config_headers 33418 33419Configuration links: 33420$config_links 33421 33422Configuration commands: 33423$config_commands 33424 33425Report bugs to the package provider." 33426 33427_ACEOF 33428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33429ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 33430ac_cs_version="\\ 33431config.status 33432configured by $0, generated by GNU Autoconf 2.69, 33433 with options \\"\$ac_cs_config\\" 33434 33435Copyright (C) 2012 Free Software Foundation, Inc. 33436This config.status script is free software; the Free Software Foundation 33437gives unlimited permission to copy, distribute and modify it." 33438 33439ac_pwd='$ac_pwd' 33440srcdir='$srcdir' 33441AWK='$AWK' 33442test -n "\$AWK" || AWK=awk 33443_ACEOF 33444 33445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33446# The default lists apply if the user does not specify any file. 33447ac_need_defaults=: 33448while test $# != 0 33449do 33450 case $1 in 33451 --*=?*) 33452 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33453 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 33454 ac_shift=: 33455 ;; 33456 --*=) 33457 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33458 ac_optarg= 33459 ac_shift=: 33460 ;; 33461 *) 33462 ac_option=$1 33463 ac_optarg=$2 33464 ac_shift=shift 33465 ;; 33466 esac 33467 33468 case $ac_option in 33469 # Handling of the options. 33470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 33471 ac_cs_recheck=: ;; 33472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 33473 $as_echo "$ac_cs_version"; exit ;; 33474 --config | --confi | --conf | --con | --co | --c ) 33475 $as_echo "$ac_cs_config"; exit ;; 33476 --debug | --debu | --deb | --de | --d | -d ) 33477 debug=: ;; 33478 --file | --fil | --fi | --f ) 33479 $ac_shift 33480 case $ac_optarg in 33481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33482 '') as_fn_error $? "missing file argument" ;; 33483 esac 33484 as_fn_append CONFIG_FILES " '$ac_optarg'" 33485 ac_need_defaults=false;; 33486 --header | --heade | --head | --hea ) 33487 $ac_shift 33488 case $ac_optarg in 33489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33490 esac 33491 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 33492 ac_need_defaults=false;; 33493 --he | --h) 33494 # Conflict between --help and --header 33495 as_fn_error $? "ambiguous option: \`$1' 33496Try \`$0 --help' for more information.";; 33497 --help | --hel | -h ) 33498 $as_echo "$ac_cs_usage"; exit ;; 33499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 33500 | -silent | --silent | --silen | --sile | --sil | --si | --s) 33501 ac_cs_silent=: ;; 33502 33503 # This is an error. 33504 -*) as_fn_error $? "unrecognized option: \`$1' 33505Try \`$0 --help' for more information." ;; 33506 33507 *) as_fn_append ac_config_targets " $1" 33508 ac_need_defaults=false ;; 33509 33510 esac 33511 shift 33512done 33513 33514ac_configure_extra_args= 33515 33516if $ac_cs_silent; then 33517 exec 6>/dev/null 33518 ac_configure_extra_args="$ac_configure_extra_args --silent" 33519fi 33520 33521_ACEOF 33522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33523if \$ac_cs_recheck; then 33524 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 33525 shift 33526 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 33527 CONFIG_SHELL='$SHELL' 33528 export CONFIG_SHELL 33529 exec "\$@" 33530fi 33531 33532_ACEOF 33533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33534exec 5>>config.log 33535{ 33536 echo 33537 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 33538## Running $as_me. ## 33539_ASBOX 33540 $as_echo "$ac_log" 33541} >&5 33542 33543_ACEOF 33544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33545# 33546# INIT-COMMANDS 33547# 33548ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 33549subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 33550subdirs='$subdirs' 33551 33552_ACEOF 33553 33554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33555 33556# Handling of arguments. 33557for ac_config_target in $ac_config_targets 33558do 33559 case $ac_config_target in 33560 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;; 33561 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; 33562 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;; 33563 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;; 33564 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;; 33565 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;; 33566 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;; 33567 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;; 33568 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;; 33569 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 33570 33571 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 33572 esac 33573done 33574 33575 33576# If the user did not use the arguments to specify the items to instantiate, 33577# then the envvar interface is used. Set only those that are not. 33578# We use the long form for the default assignment because of an extremely 33579# bizarre bug on SunOS 4.1.3. 33580if $ac_need_defaults; then 33581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 33582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 33583 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 33584 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 33585fi 33586 33587# Have a temporary directory for convenience. Make it in the build tree 33588# simply because there is no reason against having it here, and in addition, 33589# creating and moving files from /tmp can sometimes cause problems. 33590# Hook for its removal unless debugging. 33591# Note that there is a small window in which the directory will not be cleaned: 33592# after its creation but before its name has been assigned to `$tmp'. 33593$debug || 33594{ 33595 tmp= ac_tmp= 33596 trap 'exit_status=$? 33597 : "${ac_tmp:=$tmp}" 33598 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 33599' 0 33600 trap 'as_fn_exit 1' 1 2 13 15 33601} 33602# Create a (secure) tmp directory for tmp files. 33603 33604{ 33605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 33606 test -d "$tmp" 33607} || 33608{ 33609 tmp=./conf$$-$RANDOM 33610 (umask 077 && mkdir "$tmp") 33611} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 33612ac_tmp=$tmp 33613 33614# Set up the scripts for CONFIG_FILES section. 33615# No need to generate them if there are no CONFIG_FILES. 33616# This happens for instance with `./config.status config.h'. 33617if test -n "$CONFIG_FILES"; then 33618 33619if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 33620 ac_cs_awk_getline=: 33621 ac_cs_awk_pipe_init= 33622 ac_cs_awk_read_file=' 33623 while ((getline aline < (F[key])) > 0) 33624 print(aline) 33625 close(F[key])' 33626 ac_cs_awk_pipe_fini= 33627else 33628 ac_cs_awk_getline=false 33629 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 33630 ac_cs_awk_read_file=' 33631 print "|#_!!_#|" 33632 print "cat " F[key] " &&" 33633 '$ac_cs_awk_pipe_init 33634 # The final `:' finishes the AND list. 33635 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 33636fi 33637ac_cr=`echo X | tr X '\015'` 33638# On cygwin, bash can eat \r inside `` if the user requested igncr. 33639# But we know of no other shell where ac_cr would be empty at this 33640# point, so we can use a bashism as a fallback. 33641if test "x$ac_cr" = x; then 33642 eval ac_cr=\$\'\\r\' 33643fi 33644ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 33645if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 33646 ac_cs_awk_cr='\\r' 33647else 33648 ac_cs_awk_cr=$ac_cr 33649fi 33650 33651echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 33652_ACEOF 33653 33654# Create commands to substitute file output variables. 33655{ 33656 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 33657 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 33658 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 33659 echo "_ACAWK" && 33660 echo "_ACEOF" 33661} >conf$$files.sh && 33662. ./conf$$files.sh || 33663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33664rm -f conf$$files.sh 33665 33666{ 33667 echo "cat >conf$$subs.awk <<_ACEOF" && 33668 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 33669 echo "_ACEOF" 33670} >conf$$subs.sh || 33671 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33672ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 33673ac_delim='%!_!# ' 33674for ac_last_try in false false false false false :; do 33675 . ./conf$$subs.sh || 33676 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33677 33678 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 33679 if test $ac_delim_n = $ac_delim_num; then 33680 break 33681 elif $ac_last_try; then 33682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33683 else 33684 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 33685 fi 33686done 33687rm -f conf$$subs.sh 33688 33689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33690cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 33691_ACEOF 33692sed -n ' 33693h 33694s/^/S["/; s/!.*/"]=/ 33695p 33696g 33697s/^[^!]*!// 33698:repl 33699t repl 33700s/'"$ac_delim"'$// 33701t delim 33702:nl 33703h 33704s/\(.\{148\}\)..*/\1/ 33705t more1 33706s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 33707p 33708n 33709b repl 33710:more1 33711s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 33712p 33713g 33714s/.\{148\}// 33715t nl 33716:delim 33717h 33718s/\(.\{148\}\)..*/\1/ 33719t more2 33720s/["\\]/\\&/g; s/^/"/; s/$/"/ 33721p 33722b 33723:more2 33724s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 33725p 33726g 33727s/.\{148\}// 33728t delim 33729' <conf$$subs.awk | sed ' 33730/^[^""]/{ 33731 N 33732 s/\n// 33733} 33734' >>$CONFIG_STATUS || ac_write_fail=1 33735rm -f conf$$subs.awk 33736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33737_ACAWK 33738cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 33739 for (key in S) S_is_set[key] = 1 33740 FS = "" 33741 \$ac_cs_awk_pipe_init 33742} 33743{ 33744 line = $ 0 33745 nfields = split(line, field, "@") 33746 substed = 0 33747 len = length(field[1]) 33748 for (i = 2; i < nfields; i++) { 33749 key = field[i] 33750 keylen = length(key) 33751 if (S_is_set[key]) { 33752 value = S[key] 33753 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 33754 len += length(value) + length(field[++i]) 33755 substed = 1 33756 } else 33757 len += 1 + keylen 33758 } 33759 if (nfields == 3 && !substed) { 33760 key = field[2] 33761 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 33762 \$ac_cs_awk_read_file 33763 next 33764 } 33765 } 33766 print line 33767} 33768\$ac_cs_awk_pipe_fini 33769_ACAWK 33770_ACEOF 33771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33772if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 33773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 33774else 33775 cat 33776fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 33777 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 33778_ACEOF 33779 33780# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 33781# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 33782# trailing colons and then remove the whole line if VPATH becomes empty 33783# (actually we leave an empty line to preserve line numbers). 33784if test "x$srcdir" = x.; then 33785 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 33786h 33787s/// 33788s/^/:/ 33789s/[ ]*$/:/ 33790s/:\$(srcdir):/:/g 33791s/:\${srcdir}:/:/g 33792s/:@srcdir@:/:/g 33793s/^:*// 33794s/:*$// 33795x 33796s/\(=[ ]*\).*/\1/ 33797G 33798s/\n// 33799s/^[^=]*=[ ]*$// 33800}' 33801fi 33802 33803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33804fi # test -n "$CONFIG_FILES" 33805 33806# Set up the scripts for CONFIG_HEADERS section. 33807# No need to generate them if there are no CONFIG_HEADERS. 33808# This happens for instance with `./config.status Makefile'. 33809if test -n "$CONFIG_HEADERS"; then 33810cat >"$ac_tmp/defines.awk" <<\_ACAWK || 33811BEGIN { 33812_ACEOF 33813 33814# Transform confdefs.h into an awk script `defines.awk', embedded as 33815# here-document in config.status, that substitutes the proper values into 33816# config.h.in to produce config.h. 33817 33818# Create a delimiter string that does not exist in confdefs.h, to ease 33819# handling of long lines. 33820ac_delim='%!_!# ' 33821for ac_last_try in false false :; do 33822 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 33823 if test -z "$ac_tt"; then 33824 break 33825 elif $ac_last_try; then 33826 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 33827 else 33828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 33829 fi 33830done 33831 33832# For the awk script, D is an array of macro values keyed by name, 33833# likewise P contains macro parameters if any. Preserve backslash 33834# newline sequences. 33835 33836ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 33837sed -n ' 33838s/.\{148\}/&'"$ac_delim"'/g 33839t rset 33840:rset 33841s/^[ ]*#[ ]*define[ ][ ]*/ / 33842t def 33843d 33844:def 33845s/\\$// 33846t bsnl 33847s/["\\]/\\&/g 33848s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 33849D["\1"]=" \3"/p 33850s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 33851d 33852:bsnl 33853s/["\\]/\\&/g 33854s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 33855D["\1"]=" \3\\\\\\n"\\/p 33856t cont 33857s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 33858t cont 33859d 33860:cont 33861n 33862s/.\{148\}/&'"$ac_delim"'/g 33863t clear 33864:clear 33865s/\\$// 33866t bsnlc 33867s/["\\]/\\&/g; s/^/"/; s/$/"/p 33868d 33869:bsnlc 33870s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 33871b cont 33872' <confdefs.h | sed ' 33873s/'"$ac_delim"'/"\\\ 33874"/g' >>$CONFIG_STATUS || ac_write_fail=1 33875 33876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33877 for (key in D) D_is_set[key] = 1 33878 FS = "" 33879} 33880/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 33881 line = \$ 0 33882 split(line, arg, " ") 33883 if (arg[1] == "#") { 33884 defundef = arg[2] 33885 mac1 = arg[3] 33886 } else { 33887 defundef = substr(arg[1], 2) 33888 mac1 = arg[2] 33889 } 33890 split(mac1, mac2, "(") #) 33891 macro = mac2[1] 33892 prefix = substr(line, 1, index(line, defundef) - 1) 33893 if (D_is_set[macro]) { 33894 # Preserve the white space surrounding the "#". 33895 print prefix "define", macro P[macro] D[macro] 33896 next 33897 } else { 33898 # Replace #undef with comments. This is necessary, for example, 33899 # in the case of _POSIX_SOURCE, which is predefined and required 33900 # on some systems where configure will not decide to define it. 33901 if (defundef == "undef") { 33902 print "/*", prefix defundef, macro, "*/" 33903 next 33904 } 33905 } 33906} 33907{ print } 33908_ACAWK 33909_ACEOF 33910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33911 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 33912fi # test -n "$CONFIG_HEADERS" 33913 33914 33915eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 33916shift 33917for ac_tag 33918do 33919 case $ac_tag in 33920 :[FHLC]) ac_mode=$ac_tag; continue;; 33921 esac 33922 case $ac_mode$ac_tag in 33923 :[FHL]*:*);; 33924 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 33925 :[FH]-) ac_tag=-:-;; 33926 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 33927 esac 33928 ac_save_IFS=$IFS 33929 IFS=: 33930 set x $ac_tag 33931 IFS=$ac_save_IFS 33932 shift 33933 ac_file=$1 33934 shift 33935 33936 case $ac_mode in 33937 :L) ac_source=$1;; 33938 :[FH]) 33939 ac_file_inputs= 33940 for ac_f 33941 do 33942 case $ac_f in 33943 -) ac_f="$ac_tmp/stdin";; 33944 *) # Look for the file first in the build tree, then in the source tree 33945 # (if the path is not absolute). The absolute path cannot be DOS-style, 33946 # because $ac_f cannot contain `:'. 33947 test -f "$ac_f" || 33948 case $ac_f in 33949 [\\/$]*) false;; 33950 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 33951 esac || 33952 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 33953 esac 33954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 33955 as_fn_append ac_file_inputs " '$ac_f'" 33956 done 33957 33958 # Let's still pretend it is `configure' which instantiates (i.e., don't 33959 # use $as_me), people would be surprised to read: 33960 # /* config.h. Generated by config.status. */ 33961 configure_input='Generated from '` 33962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 33963 `' by configure.' 33964 if test x"$ac_file" != x-; then 33965 configure_input="$ac_file. $configure_input" 33966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 33967$as_echo "$as_me: creating $ac_file" >&6;} 33968 fi 33969 # Neutralize special characters interpreted by sed in replacement strings. 33970 case $configure_input in #( 33971 *\&* | *\|* | *\\* ) 33972 ac_sed_conf_input=`$as_echo "$configure_input" | 33973 sed 's/[\\\\&|]/\\\\&/g'`;; #( 33974 *) ac_sed_conf_input=$configure_input;; 33975 esac 33976 33977 case $ac_tag in 33978 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 33979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 33980 esac 33981 ;; 33982 esac 33983 33984 ac_dir=`$as_dirname -- "$ac_file" || 33985$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33986 X"$ac_file" : 'X\(//\)[^/]' \| \ 33987 X"$ac_file" : 'X\(//\)$' \| \ 33988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 33989$as_echo X"$ac_file" | 33990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33991 s//\1/ 33992 q 33993 } 33994 /^X\(\/\/\)[^/].*/{ 33995 s//\1/ 33996 q 33997 } 33998 /^X\(\/\/\)$/{ 33999 s//\1/ 34000 q 34001 } 34002 /^X\(\/\).*/{ 34003 s//\1/ 34004 q 34005 } 34006 s/.*/./; q'` 34007 as_dir="$ac_dir"; as_fn_mkdir_p 34008 ac_builddir=. 34009 34010case "$ac_dir" in 34011.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34012*) 34013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 34014 # A ".." for each directory in $ac_dir_suffix. 34015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34016 case $ac_top_builddir_sub in 34017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34019 esac ;; 34020esac 34021ac_abs_top_builddir=$ac_pwd 34022ac_abs_builddir=$ac_pwd$ac_dir_suffix 34023# for backward compatibility: 34024ac_top_builddir=$ac_top_build_prefix 34025 34026case $srcdir in 34027 .) # We are building in place. 34028 ac_srcdir=. 34029 ac_top_srcdir=$ac_top_builddir_sub 34030 ac_abs_top_srcdir=$ac_pwd ;; 34031 [\\/]* | ?:[\\/]* ) # Absolute name. 34032 ac_srcdir=$srcdir$ac_dir_suffix; 34033 ac_top_srcdir=$srcdir 34034 ac_abs_top_srcdir=$srcdir ;; 34035 *) # Relative name. 34036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34037 ac_top_srcdir=$ac_top_build_prefix$srcdir 34038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34039esac 34040ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34041 34042 34043 case $ac_mode in 34044 :F) 34045 # 34046 # CONFIG_FILE 34047 # 34048 34049_ACEOF 34050 34051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34052# If the template does not know about datarootdir, expand it. 34053# FIXME: This hack should be removed a few years after 2.60. 34054ac_datarootdir_hack=; ac_datarootdir_seen= 34055ac_sed_dataroot=' 34056/datarootdir/ { 34057 p 34058 q 34059} 34060/@datadir@/p 34061/@docdir@/p 34062/@infodir@/p 34063/@localedir@/p 34064/@mandir@/p' 34065case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 34066*datarootdir*) ac_datarootdir_seen=yes;; 34067*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 34068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 34069$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 34070_ACEOF 34071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34072 ac_datarootdir_hack=' 34073 s&@datadir@&$datadir&g 34074 s&@docdir@&$docdir&g 34075 s&@infodir@&$infodir&g 34076 s&@localedir@&$localedir&g 34077 s&@mandir@&$mandir&g 34078 s&\\\${datarootdir}&$datarootdir&g' ;; 34079esac 34080_ACEOF 34081 34082# Neutralize VPATH when `$srcdir' = `.'. 34083# Shell code in configure.ac might set extrasub. 34084# FIXME: do we really want to maintain this feature? 34085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34086ac_sed_extra="$ac_vpsub 34087$extrasub 34088_ACEOF 34089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34090:t 34091/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34092s|@configure_input@|$ac_sed_conf_input|;t t 34093s&@top_builddir@&$ac_top_builddir_sub&;t t 34094s&@top_build_prefix@&$ac_top_build_prefix&;t t 34095s&@srcdir@&$ac_srcdir&;t t 34096s&@abs_srcdir@&$ac_abs_srcdir&;t t 34097s&@top_srcdir@&$ac_top_srcdir&;t t 34098s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 34099s&@builddir@&$ac_builddir&;t t 34100s&@abs_builddir@&$ac_abs_builddir&;t t 34101s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 34102$ac_datarootdir_hack 34103" 34104eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 34105if $ac_cs_awk_getline; then 34106 $AWK -f "$ac_tmp/subs.awk" 34107else 34108 $AWK -f "$ac_tmp/subs.awk" | $SHELL 34109fi \ 34110 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34111 34112test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 34113 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 34114 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 34115 "$ac_tmp/out"`; test -z "$ac_out"; } && 34116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34117which seems to be undefined. Please make sure it is defined" >&5 34118$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34119which seems to be undefined. Please make sure it is defined" >&2;} 34120 34121 rm -f "$ac_tmp/stdin" 34122 case $ac_file in 34123 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 34124 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 34125 esac \ 34126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34127 ;; 34128 :H) 34129 # 34130 # CONFIG_HEADER 34131 # 34132 if test x"$ac_file" != x-; then 34133 { 34134 $as_echo "/* $configure_input */" \ 34135 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 34136 } >"$ac_tmp/config.h" \ 34137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34138 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 34139 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 34140$as_echo "$as_me: $ac_file is unchanged" >&6;} 34141 else 34142 rm -f "$ac_file" 34143 mv "$ac_tmp/config.h" "$ac_file" \ 34144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34145 fi 34146 else 34147 $as_echo "/* $configure_input */" \ 34148 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 34149 || as_fn_error $? "could not create -" "$LINENO" 5 34150 fi 34151 ;; 34152 :L) 34153 # 34154 # CONFIG_LINK 34155 # 34156 34157 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 34158 : 34159 else 34160 # Prefer the file from the source tree if names are identical. 34161 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 34162 ac_source=$srcdir/$ac_source 34163 fi 34164 34165 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 34166$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 34167 34168 if test ! -r "$ac_source"; then 34169 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 34170 fi 34171 rm -f "$ac_file" 34172 34173 # Try a relative symlink, then a hard link, then a copy. 34174 case $ac_source in 34175 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 34176 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 34177 esac 34178 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 34179 ln "$ac_source" "$ac_file" 2>/dev/null || 34180 cp -p "$ac_source" "$ac_file" || 34181 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 34182 fi 34183 ;; 34184 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 34185$as_echo "$as_me: executing $ac_file commands" >&6;} 34186 ;; 34187 esac 34188 34189 34190 case $ac_file$ac_mode in 34191 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; 34192 "gccdepdir":C) 34193 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR 34194 for lang in $subdirs c-family common analyzer rtl-ssa 34195 do 34196 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR 34197 done ;; 34198 "as":F) chmod +x as ;; 34199 "collect-ld":F) chmod +x collect-ld ;; 34200 "nm":F) chmod +x nm ;; 34201 "dsymutil":F) chmod +x dsymutil ;; 34202 "default":C) 34203case ${CONFIG_HEADERS} in 34204 *auto-host.h:config.in*) 34205 echo > cstamp-h ;; 34206esac 34207# Make sure all the subdirs exist. 34208for d in $subdirs doc build common c-family 34209do 34210 test -d $d || mkdir $d 34211done 34212 ;; 34213 34214 esac 34215done # for ac_tag 34216 34217 34218as_fn_exit 0 34219_ACEOF 34220ac_clean_files=$ac_clean_files_save 34221 34222test $ac_write_fail = 0 || 34223 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 34224 34225 34226# configure is writing to config.log, and then calls config.status. 34227# config.status does its own redirection, appending to config.log. 34228# Unfortunately, on DOS this fails, as config.log is still kept open 34229# by configure, so config.status won't be able to write to it; its 34230# output is simply discarded. So we exec the FD to /dev/null, 34231# effectively closing config.log, so it can be properly (re)opened and 34232# appended to by config.status. When coming back to configure, we 34233# need to make the FD available again. 34234if test "$no_create" != yes; then 34235 ac_cs_success=: 34236 ac_config_status_args= 34237 test "$silent" = yes && 34238 ac_config_status_args="$ac_config_status_args --quiet" 34239 exec 5>/dev/null 34240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 34241 exec 5>>config.log 34242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 34243 # would make configure fail if this is the last instruction. 34244 $ac_cs_success || as_fn_exit 1 34245fi 34246if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 34247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 34248$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 34249fi 34250