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 ;; 3753*) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;; 3754esac 3755fi 3756 3757 3758# --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option. 3759# if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option. 3760# if --with-gxx-libcxx-include-dir is unset we enable the stdlib option 3761# based on the platform (to be available on platform versions where it is the 3762# default for the system tools). We also use a default path within the compiler 3763# install tree. 3764# Otherwise, we use the path provided and enable the stdlib option. 3765# If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we 3766# check to see if the latter starts with the former and, upon success, compute 3767# gcc_gxx_libcxx_include_dir as relative to the sysroot. 3768gcc_gxx_libcxx_include_dir_add_sysroot=0 3769gcc_enable_stdlib_opt=0 3770if test x${gcc_gxx_libcxx_include_dir} != x; then 3771 if test x${gcc_gxx_libcxx_include_dir} = xno; then 3772 # set defaults for the dir, but the option is disabled anyway. 3773 gcc_gxx_libcxx_include_dir= 3774 else 3775 gcc_enable_stdlib_opt=1 3776 fi 3777else 3778 case $target in 3779 *-darwin1[1-9]* | *-darwin2*) 3780 # Default this on for Darwin versions which default to libcxx, 3781 # and embed the path in the compiler install so that we get a 3782 # self-contained toolchain. 3783 gcc_enable_stdlib_opt=1 3784 ;; 3785 *) ;; 3786 esac 3787fi 3788 3789cat >>confdefs.h <<_ACEOF 3790#define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt 3791_ACEOF 3792 3793 3794# Sysroot behaviour as for gxx-include-dir 3795if test x${gcc_gxx_libcxx_include_dir} = x; then 3796 # default path,embedded in the compiler tree. 3797 libcxx_incdir='include/c++/v1' 3798 if test x${enable_version_specific_runtime_libs} = xyes; then 3799 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir' 3800 else 3801 if test x$host != x$target; then 3802 libcxx_incdir="$target_alias/$libcxx_incdir" 3803 fi 3804 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir" 3805 fi 3806elif test "${with_sysroot+set}" = set; then 3807 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'` 3808 if test "${gcc_gxx_libcxx_without_sysroot}"; then 3809 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}" 3810 gcc_gxx_libcxx_include_dir_add_sysroot=1 3811 fi 3812fi 3813 3814 3815# Check whether --with-cpp_install_dir was given. 3816if test "${with_cpp_install_dir+set}" = set; then : 3817 withval=$with_cpp_install_dir; if test x$withval = xyes; then 3818 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5 3819elif test x$withval != xno; then 3820 cpp_install_dir=$withval 3821fi 3822fi 3823 3824 3825# We would like to our source tree to be readonly. However when releases or 3826# pre-releases are generated, the flex/bison generated files as well as the 3827# various formats of manuals need to be included along with the rest of the 3828# sources. Therefore we have --enable-generated-files-in-srcdir to do 3829# just that. 3830 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5 3832$as_echo_n "checking whether to place generated files in the source directory... " >&6; } 3833 # Check whether --enable-generated-files-in-srcdir was given. 3834if test "${enable_generated_files_in_srcdir+set}" = set; then : 3835 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval 3836else 3837 generated_files_in_srcdir=no 3838fi 3839 3840 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5 3842$as_echo "$generated_files_in_srcdir" >&6; } 3843 3844if test "$generated_files_in_srcdir" = "yes"; then 3845 GENINSRC='' 3846else 3847 GENINSRC='#' 3848fi 3849 3850 3851# ------------------- 3852# Find default linker 3853# ------------------- 3854 3855# With GNU ld 3856 3857# Check whether --with-gnu-ld was given. 3858if test "${with_gnu_ld+set}" = set; then : 3859 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld" 3860else 3861 gnu_ld_flag=no 3862fi 3863 3864 3865case $target in 3866 *darwin*) 3867 ld64_flag=yes # Darwin can only use a ld64-compatible linker. 3868 dsymutil_flag=yes # Darwin uses dsymutil to link debug. 3869 ;; 3870 *) 3871 ld64_flag=no 3872 dsymutil_flag=no 3873 ;; 3874esac 3875 3876# With pre-defined ld 3877 3878# Check whether --with-ld was given. 3879if test "${with_ld+set}" = set; then : 3880 withval=$with_ld; DEFAULT_LINKER="$with_ld" 3881fi 3882 3883if test x"${DEFAULT_LINKER+set}" = x"set"; then 3884 if test ! -x "$DEFAULT_LINKER"; then 3885 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5 3886 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 3887 gnu_ld_flag=yes 3888 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then 3889 ld64_flag=yes 3890 fi 3891 3892cat >>confdefs.h <<_ACEOF 3893#define DEFAULT_LINKER "$DEFAULT_LINKER" 3894_ACEOF 3895 3896fi 3897 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5 3899$as_echo_n "checking whether a default linker was specified... " >&6; } 3900if test x"${DEFAULT_LINKER+set}" = x"set"; then 3901 if test x"$gnu_ld_flag" = x"no"; then 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5 3903$as_echo "yes ($DEFAULT_LINKER)" >&6; } 3904 else 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5 3906$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; } 3907 fi 3908else 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3910$as_echo "no" >&6; } 3911fi 3912 3913# With demangler in GNU ld 3914 3915# Check whether --with-demangler-in-ld was given. 3916if test "${with_demangler_in_ld+set}" = set; then : 3917 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld" 3918else 3919 demangler_in_ld=yes 3920fi 3921 3922 3923# Allow the user to specify a dsymutil executable (used on Darwin only, so far) 3924 3925# Check whether --with-dsymutil was given. 3926if test "${with_dsymutil+set}" = set; then : 3927 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil" 3928fi 3929 3930 3931dsymutil_vers= 3932if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then 3933 if test ! -x "$DEFAULT_DSYMUTIL"; then 3934 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5 3935 else 3936 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then 3937 dsymutil_flag=yes 3938 fi 3939 fi 3940 3941cat >>confdefs.h <<_ACEOF 3942#define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL" 3943_ACEOF 3944 3945fi 3946 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5 3948$as_echo_n "checking whether a default dsymutil was specified... " >&6; } 3949if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5 3951$as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; } 3952else 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3954$as_echo "no" >&6; } 3955fi 3956 3957# ---------------------- 3958# Find default assembler 3959# ---------------------- 3960 3961# With GNU as 3962 3963# Check whether --with-gnu-as was given. 3964if test "${with_gnu_as+set}" = set; then : 3965 withval=$with_gnu_as; gas_flag="$with_gnu_as" 3966else 3967 gas_flag=no 3968fi 3969 3970 3971 3972# Check whether --with-as was given. 3973if test "${with_as+set}" = set; then : 3974 withval=$with_as; DEFAULT_ASSEMBLER="$with_as" 3975fi 3976 3977if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 3978 if test ! -x "$DEFAULT_ASSEMBLER"; then 3979 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5 3980 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 3981 gas_flag=yes 3982 fi 3983 3984cat >>confdefs.h <<_ACEOF 3985#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" 3986_ACEOF 3987 3988fi 3989 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5 3991$as_echo_n "checking whether a default assembler was specified... " >&6; } 3992if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 3993 if test x"$gas_flag" = x"no"; then 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5 3995$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; } 3996 else 3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5 3998$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; } 3999 fi 4000else 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4002$as_echo "no" >&6; } 4003fi 4004 4005# --------------- 4006# Find C compiler 4007# --------------- 4008 4009# If a non-executable a.out is present (e.g. created by GNU as above even if 4010# invoked with -v only), the IRIX 6 native ld just overwrites the existing 4011# file, even when creating an executable, so an execution test fails. 4012# Remove possible default executable files to avoid this. 4013# 4014# FIXME: This really belongs into AC_PROG_CC and can be removed once 4015# Autoconf includes it. 4016rm -f a.out a.exe b.out 4017 4018# Find the native compiler 4019ac_ext=c 4020ac_cpp='$CPP $CPPFLAGS' 4021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4023ac_compiler_gnu=$ac_cv_c_compiler_gnu 4024if test -n "$ac_tool_prefix"; then 4025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4026set dummy ${ac_tool_prefix}gcc; ac_word=$2 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4028$as_echo_n "checking for $ac_word... " >&6; } 4029if ${ac_cv_prog_CC+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 if test -n "$CC"; then 4033 ac_cv_prog_CC="$CC" # Let the user override the test. 4034else 4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4036for as_dir in $PATH 4037do 4038 IFS=$as_save_IFS 4039 test -z "$as_dir" && as_dir=. 4040 for ac_exec_ext in '' $ac_executable_extensions; do 4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4042 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4044 break 2 4045 fi 4046done 4047 done 4048IFS=$as_save_IFS 4049 4050fi 4051fi 4052CC=$ac_cv_prog_CC 4053if test -n "$CC"; then 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4055$as_echo "$CC" >&6; } 4056else 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4058$as_echo "no" >&6; } 4059fi 4060 4061 4062fi 4063if test -z "$ac_cv_prog_CC"; then 4064 ac_ct_CC=$CC 4065 # Extract the first word of "gcc", so it can be a program name with args. 4066set dummy gcc; ac_word=$2 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4068$as_echo_n "checking for $ac_word... " >&6; } 4069if ${ac_cv_prog_ac_ct_CC+:} false; then : 4070 $as_echo_n "(cached) " >&6 4071else 4072 if test -n "$ac_ct_CC"; then 4073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4074else 4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076for as_dir in $PATH 4077do 4078 IFS=$as_save_IFS 4079 test -z "$as_dir" && as_dir=. 4080 for ac_exec_ext in '' $ac_executable_extensions; do 4081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4082 ac_cv_prog_ac_ct_CC="gcc" 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4084 break 2 4085 fi 4086done 4087 done 4088IFS=$as_save_IFS 4089 4090fi 4091fi 4092ac_ct_CC=$ac_cv_prog_ac_ct_CC 4093if test -n "$ac_ct_CC"; then 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4095$as_echo "$ac_ct_CC" >&6; } 4096else 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4098$as_echo "no" >&6; } 4099fi 4100 4101 if test "x$ac_ct_CC" = x; then 4102 CC="" 4103 else 4104 case $cross_compiling:$ac_tool_warned in 4105yes:) 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4108ac_tool_warned=yes ;; 4109esac 4110 CC=$ac_ct_CC 4111 fi 4112else 4113 CC="$ac_cv_prog_CC" 4114fi 4115 4116if test -z "$CC"; then 4117 if test -n "$ac_tool_prefix"; then 4118 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4119set dummy ${ac_tool_prefix}cc; ac_word=$2 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4121$as_echo_n "checking for $ac_word... " >&6; } 4122if ${ac_cv_prog_CC+:} false; then : 4123 $as_echo_n "(cached) " >&6 4124else 4125 if test -n "$CC"; then 4126 ac_cv_prog_CC="$CC" # Let the user override the test. 4127else 4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4129for as_dir in $PATH 4130do 4131 IFS=$as_save_IFS 4132 test -z "$as_dir" && as_dir=. 4133 for ac_exec_ext in '' $ac_executable_extensions; do 4134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4135 ac_cv_prog_CC="${ac_tool_prefix}cc" 4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4137 break 2 4138 fi 4139done 4140 done 4141IFS=$as_save_IFS 4142 4143fi 4144fi 4145CC=$ac_cv_prog_CC 4146if test -n "$CC"; then 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4148$as_echo "$CC" >&6; } 4149else 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4151$as_echo "no" >&6; } 4152fi 4153 4154 4155 fi 4156fi 4157if test -z "$CC"; then 4158 # Extract the first word of "cc", so it can be a program name with args. 4159set dummy cc; ac_word=$2 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4161$as_echo_n "checking for $ac_word... " >&6; } 4162if ${ac_cv_prog_CC+:} false; then : 4163 $as_echo_n "(cached) " >&6 4164else 4165 if test -n "$CC"; then 4166 ac_cv_prog_CC="$CC" # Let the user override the test. 4167else 4168 ac_prog_rejected=no 4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4170for as_dir in $PATH 4171do 4172 IFS=$as_save_IFS 4173 test -z "$as_dir" && as_dir=. 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4177 ac_prog_rejected=yes 4178 continue 4179 fi 4180 ac_cv_prog_CC="cc" 4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4182 break 2 4183 fi 4184done 4185 done 4186IFS=$as_save_IFS 4187 4188if test $ac_prog_rejected = yes; then 4189 # We found a bogon in the path, so make sure we never use it. 4190 set dummy $ac_cv_prog_CC 4191 shift 4192 if test $# != 0; then 4193 # We chose a different compiler from the bogus one. 4194 # However, it has the same basename, so the bogon will be chosen 4195 # first if we set CC to just the basename; use the full file name. 4196 shift 4197 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4198 fi 4199fi 4200fi 4201fi 4202CC=$ac_cv_prog_CC 4203if test -n "$CC"; then 4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4205$as_echo "$CC" >&6; } 4206else 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208$as_echo "no" >&6; } 4209fi 4210 4211 4212fi 4213if test -z "$CC"; then 4214 if test -n "$ac_tool_prefix"; then 4215 for ac_prog in cl.exe 4216 do 4217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4218set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4220$as_echo_n "checking for $ac_word... " >&6; } 4221if ${ac_cv_prog_CC+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 if test -n "$CC"; then 4225 ac_cv_prog_CC="$CC" # Let the user override the test. 4226else 4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4228for as_dir in $PATH 4229do 4230 IFS=$as_save_IFS 4231 test -z "$as_dir" && as_dir=. 4232 for ac_exec_ext in '' $ac_executable_extensions; do 4233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4234 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4236 break 2 4237 fi 4238done 4239 done 4240IFS=$as_save_IFS 4241 4242fi 4243fi 4244CC=$ac_cv_prog_CC 4245if test -n "$CC"; then 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4247$as_echo "$CC" >&6; } 4248else 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4250$as_echo "no" >&6; } 4251fi 4252 4253 4254 test -n "$CC" && break 4255 done 4256fi 4257if test -z "$CC"; then 4258 ac_ct_CC=$CC 4259 for ac_prog in cl.exe 4260do 4261 # Extract the first word of "$ac_prog", so it can be a program name with args. 4262set dummy $ac_prog; ac_word=$2 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4264$as_echo_n "checking for $ac_word... " >&6; } 4265if ${ac_cv_prog_ac_ct_CC+:} false; then : 4266 $as_echo_n "(cached) " >&6 4267else 4268 if test -n "$ac_ct_CC"; then 4269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4270else 4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4272for as_dir in $PATH 4273do 4274 IFS=$as_save_IFS 4275 test -z "$as_dir" && as_dir=. 4276 for ac_exec_ext in '' $ac_executable_extensions; do 4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4278 ac_cv_prog_ac_ct_CC="$ac_prog" 4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4280 break 2 4281 fi 4282done 4283 done 4284IFS=$as_save_IFS 4285 4286fi 4287fi 4288ac_ct_CC=$ac_cv_prog_ac_ct_CC 4289if test -n "$ac_ct_CC"; then 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4291$as_echo "$ac_ct_CC" >&6; } 4292else 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4294$as_echo "no" >&6; } 4295fi 4296 4297 4298 test -n "$ac_ct_CC" && break 4299done 4300 4301 if test "x$ac_ct_CC" = x; then 4302 CC="" 4303 else 4304 case $cross_compiling:$ac_tool_warned in 4305yes:) 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4308ac_tool_warned=yes ;; 4309esac 4310 CC=$ac_ct_CC 4311 fi 4312fi 4313 4314fi 4315 4316 4317test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4319as_fn_error $? "no acceptable C compiler found in \$PATH 4320See \`config.log' for more details" "$LINENO" 5; } 4321 4322# Provide some information about the compiler. 4323$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4324set X $ac_compile 4325ac_compiler=$2 4326for ac_option in --version -v -V -qversion; do 4327 { { ac_try="$ac_compiler $ac_option >&5" 4328case "(($ac_try" in 4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4330 *) ac_try_echo=$ac_try;; 4331esac 4332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4333$as_echo "$ac_try_echo"; } >&5 4334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4335 ac_status=$? 4336 if test -s conftest.err; then 4337 sed '10a\ 4338... rest of stderr output deleted ... 4339 10q' conftest.err >conftest.er1 4340 cat conftest.er1 >&5 4341 fi 4342 rm -f conftest.er1 conftest.err 4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4344 test $ac_status = 0; } 4345done 4346 4347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4348/* end confdefs.h. */ 4349 4350int 4351main () 4352{ 4353 4354 ; 4355 return 0; 4356} 4357_ACEOF 4358ac_clean_files_save=$ac_clean_files 4359ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4360# Try to create an executable without -o first, disregard a.out. 4361# It will help us diagnose broken compilers, and finding out an intuition 4362# of exeext. 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4364$as_echo_n "checking whether the C compiler works... " >&6; } 4365ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4366 4367# The possible output files: 4368ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4369 4370ac_rmfiles= 4371for ac_file in $ac_files 4372do 4373 case $ac_file in 4374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4375 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4376 esac 4377done 4378rm -f $ac_rmfiles 4379 4380if { { ac_try="$ac_link_default" 4381case "(($ac_try" in 4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4383 *) ac_try_echo=$ac_try;; 4384esac 4385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4386$as_echo "$ac_try_echo"; } >&5 4387 (eval "$ac_link_default") 2>&5 4388 ac_status=$? 4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4390 test $ac_status = 0; }; then : 4391 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4392# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4393# in a Makefile. We should not override ac_cv_exeext if it was cached, 4394# so that the user can short-circuit this test for compilers unknown to 4395# Autoconf. 4396for ac_file in $ac_files '' 4397do 4398 test -f "$ac_file" || continue 4399 case $ac_file in 4400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4401 ;; 4402 [ab].out ) 4403 # We found the default executable, but exeext='' is most 4404 # certainly right. 4405 break;; 4406 *.* ) 4407 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4408 then :; else 4409 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4410 fi 4411 # We set ac_cv_exeext here because the later test for it is not 4412 # safe: cross compilers may not add the suffix if given an `-o' 4413 # argument, so we may need to know it at that point already. 4414 # Even if this section looks crufty: it has the advantage of 4415 # actually working. 4416 break;; 4417 * ) 4418 break;; 4419 esac 4420done 4421test "$ac_cv_exeext" = no && ac_cv_exeext= 4422 4423else 4424 ac_file='' 4425fi 4426if test -z "$ac_file"; then : 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4428$as_echo "no" >&6; } 4429$as_echo "$as_me: failed program was:" >&5 4430sed 's/^/| /' conftest.$ac_ext >&5 4431 4432{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4434as_fn_error 77 "C compiler cannot create executables 4435See \`config.log' for more details" "$LINENO" 5; } 4436else 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4438$as_echo "yes" >&6; } 4439fi 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4441$as_echo_n "checking for C compiler default output file name... " >&6; } 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4443$as_echo "$ac_file" >&6; } 4444ac_exeext=$ac_cv_exeext 4445 4446rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4447ac_clean_files=$ac_clean_files_save 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4449$as_echo_n "checking for suffix of executables... " >&6; } 4450if { { ac_try="$ac_link" 4451case "(($ac_try" in 4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4453 *) ac_try_echo=$ac_try;; 4454esac 4455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4456$as_echo "$ac_try_echo"; } >&5 4457 (eval "$ac_link") 2>&5 4458 ac_status=$? 4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4460 test $ac_status = 0; }; then : 4461 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4462# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4463# work properly (i.e., refer to `conftest.exe'), while it won't with 4464# `rm'. 4465for ac_file in conftest.exe conftest conftest.*; do 4466 test -f "$ac_file" || continue 4467 case $ac_file in 4468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4469 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4470 break;; 4471 * ) break;; 4472 esac 4473done 4474else 4475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4477as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4478See \`config.log' for more details" "$LINENO" 5; } 4479fi 4480rm -f conftest conftest$ac_cv_exeext 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4482$as_echo "$ac_cv_exeext" >&6; } 4483 4484rm -f conftest.$ac_ext 4485EXEEXT=$ac_cv_exeext 4486ac_exeext=$EXEEXT 4487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489#include <stdio.h> 4490int 4491main () 4492{ 4493FILE *f = fopen ("conftest.out", "w"); 4494 return ferror (f) || fclose (f) != 0; 4495 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500ac_clean_files="$ac_clean_files conftest.out" 4501# Check that the compiler produces executables we can run. If not, either 4502# the compiler is broken, or we cross compile. 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4504$as_echo_n "checking whether we are cross compiling... " >&6; } 4505if test "$cross_compiling" != yes; then 4506 { { ac_try="$ac_link" 4507case "(($ac_try" in 4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4509 *) ac_try_echo=$ac_try;; 4510esac 4511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4512$as_echo "$ac_try_echo"; } >&5 4513 (eval "$ac_link") 2>&5 4514 ac_status=$? 4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4516 test $ac_status = 0; } 4517 if { ac_try='./conftest$ac_cv_exeext' 4518 { { case "(($ac_try" in 4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4520 *) ac_try_echo=$ac_try;; 4521esac 4522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4523$as_echo "$ac_try_echo"; } >&5 4524 (eval "$ac_try") 2>&5 4525 ac_status=$? 4526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4527 test $ac_status = 0; }; }; then 4528 cross_compiling=no 4529 else 4530 if test "$cross_compiling" = maybe; then 4531 cross_compiling=yes 4532 else 4533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4535as_fn_error $? "cannot run C compiled programs. 4536If you meant to cross compile, use \`--host'. 4537See \`config.log' for more details" "$LINENO" 5; } 4538 fi 4539 fi 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4542$as_echo "$cross_compiling" >&6; } 4543 4544rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4545ac_clean_files=$ac_clean_files_save 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4547$as_echo_n "checking for suffix of object files... " >&6; } 4548if ${ac_cv_objext+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4552/* end confdefs.h. */ 4553 4554int 4555main () 4556{ 4557 4558 ; 4559 return 0; 4560} 4561_ACEOF 4562rm -f conftest.o conftest.obj 4563if { { ac_try="$ac_compile" 4564case "(($ac_try" in 4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4566 *) ac_try_echo=$ac_try;; 4567esac 4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4569$as_echo "$ac_try_echo"; } >&5 4570 (eval "$ac_compile") 2>&5 4571 ac_status=$? 4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4573 test $ac_status = 0; }; then : 4574 for ac_file in conftest.o conftest.obj conftest.*; do 4575 test -f "$ac_file" || continue; 4576 case $ac_file in 4577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4578 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4579 break;; 4580 esac 4581done 4582else 4583 $as_echo "$as_me: failed program was:" >&5 4584sed 's/^/| /' conftest.$ac_ext >&5 4585 4586{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4588as_fn_error $? "cannot compute suffix of object files: cannot compile 4589See \`config.log' for more details" "$LINENO" 5; } 4590fi 4591rm -f conftest.$ac_cv_objext conftest.$ac_ext 4592fi 4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4594$as_echo "$ac_cv_objext" >&6; } 4595OBJEXT=$ac_cv_objext 4596ac_objext=$OBJEXT 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4598$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4599if ${ac_cv_c_compiler_gnu+:} false; then : 4600 $as_echo_n "(cached) " >&6 4601else 4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4603/* end confdefs.h. */ 4604 4605int 4606main () 4607{ 4608#ifndef __GNUC__ 4609 choke me 4610#endif 4611 4612 ; 4613 return 0; 4614} 4615_ACEOF 4616if ac_fn_c_try_compile "$LINENO"; then : 4617 ac_compiler_gnu=yes 4618else 4619 ac_compiler_gnu=no 4620fi 4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4622ac_cv_c_compiler_gnu=$ac_compiler_gnu 4623 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4626$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4627if test $ac_compiler_gnu = yes; then 4628 GCC=yes 4629else 4630 GCC= 4631fi 4632ac_test_CFLAGS=${CFLAGS+set} 4633ac_save_CFLAGS=$CFLAGS 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4635$as_echo_n "checking whether $CC accepts -g... " >&6; } 4636if ${ac_cv_prog_cc_g+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 ac_save_c_werror_flag=$ac_c_werror_flag 4640 ac_c_werror_flag=yes 4641 ac_cv_prog_cc_g=no 4642 CFLAGS="-g" 4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4644/* end confdefs.h. */ 4645 4646int 4647main () 4648{ 4649 4650 ; 4651 return 0; 4652} 4653_ACEOF 4654if ac_fn_c_try_compile "$LINENO"; then : 4655 ac_cv_prog_cc_g=yes 4656else 4657 CFLAGS="" 4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659/* end confdefs.h. */ 4660 4661int 4662main () 4663{ 4664 4665 ; 4666 return 0; 4667} 4668_ACEOF 4669if ac_fn_c_try_compile "$LINENO"; then : 4670 4671else 4672 ac_c_werror_flag=$ac_save_c_werror_flag 4673 CFLAGS="-g" 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675/* end confdefs.h. */ 4676 4677int 4678main () 4679{ 4680 4681 ; 4682 return 0; 4683} 4684_ACEOF 4685if ac_fn_c_try_compile "$LINENO"; then : 4686 ac_cv_prog_cc_g=yes 4687fi 4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4689fi 4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4691fi 4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4693 ac_c_werror_flag=$ac_save_c_werror_flag 4694fi 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4696$as_echo "$ac_cv_prog_cc_g" >&6; } 4697if test "$ac_test_CFLAGS" = set; then 4698 CFLAGS=$ac_save_CFLAGS 4699elif test $ac_cv_prog_cc_g = yes; then 4700 if test "$GCC" = yes; then 4701 CFLAGS="-g -O2" 4702 else 4703 CFLAGS="-g" 4704 fi 4705else 4706 if test "$GCC" = yes; then 4707 CFLAGS="-O2" 4708 else 4709 CFLAGS= 4710 fi 4711fi 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4713$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4714if ${ac_cv_prog_cc_c89+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 ac_cv_prog_cc_c89=no 4718ac_save_CC=$CC 4719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721#include <stdarg.h> 4722#include <stdio.h> 4723struct stat; 4724/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4725struct buf { int x; }; 4726FILE * (*rcsopen) (struct buf *, struct stat *, int); 4727static char *e (p, i) 4728 char **p; 4729 int i; 4730{ 4731 return p[i]; 4732} 4733static char *f (char * (*g) (char **, int), char **p, ...) 4734{ 4735 char *s; 4736 va_list v; 4737 va_start (v,p); 4738 s = g (p, va_arg (v,int)); 4739 va_end (v); 4740 return s; 4741} 4742 4743/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4744 function prototypes and stuff, but not '\xHH' hex character constants. 4745 These don't provoke an error unfortunately, instead are silently treated 4746 as 'x'. The following induces an error, until -std is added to get 4747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4748 array size at least. It's necessary to write '\x00'==0 to get something 4749 that's true only with -std. */ 4750int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4751 4752/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4753 inside strings and character constants. */ 4754#define FOO(x) 'x' 4755int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4756 4757int test (int i, double x); 4758struct s1 {int (*f) (int a);}; 4759struct s2 {int (*f) (double a);}; 4760int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4761int argc; 4762char **argv; 4763int 4764main () 4765{ 4766return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4767 ; 4768 return 0; 4769} 4770_ACEOF 4771for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4773do 4774 CC="$ac_save_CC $ac_arg" 4775 if ac_fn_c_try_compile "$LINENO"; then : 4776 ac_cv_prog_cc_c89=$ac_arg 4777fi 4778rm -f core conftest.err conftest.$ac_objext 4779 test "x$ac_cv_prog_cc_c89" != "xno" && break 4780done 4781rm -f conftest.$ac_ext 4782CC=$ac_save_CC 4783 4784fi 4785# AC_CACHE_VAL 4786case "x$ac_cv_prog_cc_c89" in 4787 x) 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4789$as_echo "none needed" >&6; } ;; 4790 xno) 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4792$as_echo "unsupported" >&6; } ;; 4793 *) 4794 CC="$CC $ac_cv_prog_cc_c89" 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4796$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4797esac 4798if test "x$ac_cv_prog_cc_c89" != xno; then : 4799 4800fi 4801 4802ac_ext=c 4803ac_cpp='$CPP $CPPFLAGS' 4804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4806ac_compiler_gnu=$ac_cv_c_compiler_gnu 4807 4808ac_ext=cpp 4809ac_cpp='$CXXCPP $CPPFLAGS' 4810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4813if test -z "$CXX"; then 4814 if test -n "$CCC"; then 4815 CXX=$CCC 4816 else 4817 if test -n "$ac_tool_prefix"; then 4818 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4819 do 4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4821set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4823$as_echo_n "checking for $ac_word... " >&6; } 4824if ${ac_cv_prog_CXX+:} false; then : 4825 $as_echo_n "(cached) " >&6 4826else 4827 if test -n "$CXX"; then 4828 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4829else 4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4831for as_dir in $PATH 4832do 4833 IFS=$as_save_IFS 4834 test -z "$as_dir" && as_dir=. 4835 for ac_exec_ext in '' $ac_executable_extensions; do 4836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4837 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4839 break 2 4840 fi 4841done 4842 done 4843IFS=$as_save_IFS 4844 4845fi 4846fi 4847CXX=$ac_cv_prog_CXX 4848if test -n "$CXX"; then 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4850$as_echo "$CXX" >&6; } 4851else 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4853$as_echo "no" >&6; } 4854fi 4855 4856 4857 test -n "$CXX" && break 4858 done 4859fi 4860if test -z "$CXX"; then 4861 ac_ct_CXX=$CXX 4862 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4863do 4864 # Extract the first word of "$ac_prog", so it can be a program name with args. 4865set dummy $ac_prog; ac_word=$2 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4867$as_echo_n "checking for $ac_word... " >&6; } 4868if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 if test -n "$ac_ct_CXX"; then 4872 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4873else 4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875for as_dir in $PATH 4876do 4877 IFS=$as_save_IFS 4878 test -z "$as_dir" && as_dir=. 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4881 ac_cv_prog_ac_ct_CXX="$ac_prog" 4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4883 break 2 4884 fi 4885done 4886 done 4887IFS=$as_save_IFS 4888 4889fi 4890fi 4891ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4892if test -n "$ac_ct_CXX"; then 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4894$as_echo "$ac_ct_CXX" >&6; } 4895else 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4897$as_echo "no" >&6; } 4898fi 4899 4900 4901 test -n "$ac_ct_CXX" && break 4902done 4903 4904 if test "x$ac_ct_CXX" = x; then 4905 CXX="g++" 4906 else 4907 case $cross_compiling:$ac_tool_warned in 4908yes:) 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4911ac_tool_warned=yes ;; 4912esac 4913 CXX=$ac_ct_CXX 4914 fi 4915fi 4916 4917 fi 4918fi 4919# Provide some information about the compiler. 4920$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4921set X $ac_compile 4922ac_compiler=$2 4923for ac_option in --version -v -V -qversion; do 4924 { { ac_try="$ac_compiler $ac_option >&5" 4925case "(($ac_try" in 4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4927 *) ac_try_echo=$ac_try;; 4928esac 4929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4930$as_echo "$ac_try_echo"; } >&5 4931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4932 ac_status=$? 4933 if test -s conftest.err; then 4934 sed '10a\ 4935... rest of stderr output deleted ... 4936 10q' conftest.err >conftest.er1 4937 cat conftest.er1 >&5 4938 fi 4939 rm -f conftest.er1 conftest.err 4940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4941 test $ac_status = 0; } 4942done 4943 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4945$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4946if ${ac_cv_cxx_compiler_gnu+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951 4952int 4953main () 4954{ 4955#ifndef __GNUC__ 4956 choke me 4957#endif 4958 4959 ; 4960 return 0; 4961} 4962_ACEOF 4963if ac_fn_cxx_try_compile "$LINENO"; then : 4964 ac_compiler_gnu=yes 4965else 4966 ac_compiler_gnu=no 4967fi 4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4969ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4970 4971fi 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4973$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4974if test $ac_compiler_gnu = yes; then 4975 GXX=yes 4976else 4977 GXX= 4978fi 4979ac_test_CXXFLAGS=${CXXFLAGS+set} 4980ac_save_CXXFLAGS=$CXXFLAGS 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4982$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4983if ${ac_cv_prog_cxx_g+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4987 ac_cxx_werror_flag=yes 4988 ac_cv_prog_cxx_g=no 4989 CXXFLAGS="-g" 4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4991/* end confdefs.h. */ 4992 4993int 4994main () 4995{ 4996 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001if ac_fn_cxx_try_compile "$LINENO"; then : 5002 ac_cv_prog_cxx_g=yes 5003else 5004 CXXFLAGS="" 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007 5008int 5009main () 5010{ 5011 5012 ; 5013 return 0; 5014} 5015_ACEOF 5016if ac_fn_cxx_try_compile "$LINENO"; then : 5017 5018else 5019 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5020 CXXFLAGS="-g" 5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5022/* end confdefs.h. */ 5023 5024int 5025main () 5026{ 5027 5028 ; 5029 return 0; 5030} 5031_ACEOF 5032if ac_fn_cxx_try_compile "$LINENO"; then : 5033 ac_cv_prog_cxx_g=yes 5034fi 5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5036fi 5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5038fi 5039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5040 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5041fi 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5043$as_echo "$ac_cv_prog_cxx_g" >&6; } 5044if test "$ac_test_CXXFLAGS" = set; then 5045 CXXFLAGS=$ac_save_CXXFLAGS 5046elif test $ac_cv_prog_cxx_g = yes; then 5047 if test "$GXX" = yes; then 5048 CXXFLAGS="-g -O2" 5049 else 5050 CXXFLAGS="-g" 5051 fi 5052else 5053 if test "$GXX" = yes; then 5054 CXXFLAGS="-O2" 5055 else 5056 CXXFLAGS= 5057 fi 5058fi 5059ac_ext=c 5060ac_cpp='$CPP $CPPFLAGS' 5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5063ac_compiler_gnu=$ac_cv_c_compiler_gnu 5064 5065 5066 5067 5068if test -n "$ac_tool_prefix"; then 5069 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 5070set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5072$as_echo_n "checking for $ac_word... " >&6; } 5073if ${ac_cv_prog_GNATBIND+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 if test -n "$GNATBIND"; then 5077 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 5078else 5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5080for as_dir in $PATH 5081do 5082 IFS=$as_save_IFS 5083 test -z "$as_dir" && as_dir=. 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5086 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5088 break 2 5089 fi 5090done 5091 done 5092IFS=$as_save_IFS 5093 5094fi 5095fi 5096GNATBIND=$ac_cv_prog_GNATBIND 5097if test -n "$GNATBIND"; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 5099$as_echo "$GNATBIND" >&6; } 5100else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5102$as_echo "no" >&6; } 5103fi 5104 5105 5106fi 5107if test -z "$ac_cv_prog_GNATBIND"; then 5108 ac_ct_GNATBIND=$GNATBIND 5109 # Extract the first word of "gnatbind", so it can be a program name with args. 5110set dummy gnatbind; ac_word=$2 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5112$as_echo_n "checking for $ac_word... " >&6; } 5113if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : 5114 $as_echo_n "(cached) " >&6 5115else 5116 if test -n "$ac_ct_GNATBIND"; then 5117 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. 5118else 5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5120for as_dir in $PATH 5121do 5122 IFS=$as_save_IFS 5123 test -z "$as_dir" && as_dir=. 5124 for ac_exec_ext in '' $ac_executable_extensions; do 5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5126 ac_cv_prog_ac_ct_GNATBIND="gnatbind" 5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5128 break 2 5129 fi 5130done 5131 done 5132IFS=$as_save_IFS 5133 5134fi 5135fi 5136ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND 5137if test -n "$ac_ct_GNATBIND"; then 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 5139$as_echo "$ac_ct_GNATBIND" >&6; } 5140else 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5142$as_echo "no" >&6; } 5143fi 5144 5145 if test "x$ac_ct_GNATBIND" = x; then 5146 GNATBIND="no" 5147 else 5148 case $cross_compiling:$ac_tool_warned in 5149yes:) 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5152ac_tool_warned=yes ;; 5153esac 5154 GNATBIND=$ac_ct_GNATBIND 5155 fi 5156else 5157 GNATBIND="$ac_cv_prog_GNATBIND" 5158fi 5159 5160if test -n "$ac_tool_prefix"; then 5161 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. 5162set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5164$as_echo_n "checking for $ac_word... " >&6; } 5165if ${ac_cv_prog_GNATMAKE+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167else 5168 if test -n "$GNATMAKE"; then 5169 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. 5170else 5171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5172for as_dir in $PATH 5173do 5174 IFS=$as_save_IFS 5175 test -z "$as_dir" && as_dir=. 5176 for ac_exec_ext in '' $ac_executable_extensions; do 5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5178 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" 5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5180 break 2 5181 fi 5182done 5183 done 5184IFS=$as_save_IFS 5185 5186fi 5187fi 5188GNATMAKE=$ac_cv_prog_GNATMAKE 5189if test -n "$GNATMAKE"; then 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 5191$as_echo "$GNATMAKE" >&6; } 5192else 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5194$as_echo "no" >&6; } 5195fi 5196 5197 5198fi 5199if test -z "$ac_cv_prog_GNATMAKE"; then 5200 ac_ct_GNATMAKE=$GNATMAKE 5201 # Extract the first word of "gnatmake", so it can be a program name with args. 5202set dummy gnatmake; ac_word=$2 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5204$as_echo_n "checking for $ac_word... " >&6; } 5205if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 if test -n "$ac_ct_GNATMAKE"; then 5209 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. 5210else 5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212for as_dir in $PATH 5213do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5218 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" 5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5220 break 2 5221 fi 5222done 5223 done 5224IFS=$as_save_IFS 5225 5226fi 5227fi 5228ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE 5229if test -n "$ac_ct_GNATMAKE"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 5231$as_echo "$ac_ct_GNATMAKE" >&6; } 5232else 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5234$as_echo "no" >&6; } 5235fi 5236 5237 if test "x$ac_ct_GNATMAKE" = x; then 5238 GNATMAKE="no" 5239 else 5240 case $cross_compiling:$ac_tool_warned in 5241yes:) 5242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5244ac_tool_warned=yes ;; 5245esac 5246 GNATMAKE=$ac_ct_GNATMAKE 5247 fi 5248else 5249 GNATMAKE="$ac_cv_prog_GNATMAKE" 5250fi 5251 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 5253$as_echo_n "checking whether compiler driver understands Ada... " >&6; } 5254if ${acx_cv_cc_gcc_supports_ada+:} false; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 cat >conftest.adb <<EOF 5258procedure conftest is begin null; end conftest; 5259EOF 5260acx_cv_cc_gcc_supports_ada=no 5261# There is a bug in old released versions of GCC which causes the 5262# driver to exit successfully when the appropriate language module 5263# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 5264# Therefore we must check for the error message as well as an 5265# unsuccessful exit. 5266# Other compilers, like HP Tru64 UNIX cc, exit successfully when 5267# given a .adb file, but produce no object file. So we must check 5268# if an object file was really produced to guard against this. 5269errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure` 5270if test x"$errors" = x && test -f conftest.$ac_objext; then 5271 acx_cv_cc_gcc_supports_ada=yes 5272fi 5273rm -f conftest.* 5274fi 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 5276$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } 5277 5278if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 5279 have_gnat=yes 5280else 5281 have_gnat=no 5282fi 5283 5284 5285 5286if test -n "$ac_tool_prefix"; then 5287 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. 5288set dummy ${ac_tool_prefix}gdc; ac_word=$2 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5290$as_echo_n "checking for $ac_word... " >&6; } 5291if ${ac_cv_prog_GDC+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 if test -n "$GDC"; then 5295 ac_cv_prog_GDC="$GDC" # Let the user override the test. 5296else 5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5298for as_dir in $PATH 5299do 5300 IFS=$as_save_IFS 5301 test -z "$as_dir" && as_dir=. 5302 for ac_exec_ext in '' $ac_executable_extensions; do 5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5304 ac_cv_prog_GDC="${ac_tool_prefix}gdc" 5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5306 break 2 5307 fi 5308done 5309 done 5310IFS=$as_save_IFS 5311 5312fi 5313fi 5314GDC=$ac_cv_prog_GDC 5315if test -n "$GDC"; then 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 5317$as_echo "$GDC" >&6; } 5318else 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5320$as_echo "no" >&6; } 5321fi 5322 5323 5324fi 5325if test -z "$ac_cv_prog_GDC"; then 5326 ac_ct_GDC=$GDC 5327 # Extract the first word of "gdc", so it can be a program name with args. 5328set dummy gdc; ac_word=$2 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5330$as_echo_n "checking for $ac_word... " >&6; } 5331if ${ac_cv_prog_ac_ct_GDC+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 if test -n "$ac_ct_GDC"; then 5335 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. 5336else 5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5338for as_dir in $PATH 5339do 5340 IFS=$as_save_IFS 5341 test -z "$as_dir" && as_dir=. 5342 for ac_exec_ext in '' $ac_executable_extensions; do 5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5344 ac_cv_prog_ac_ct_GDC="gdc" 5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5346 break 2 5347 fi 5348done 5349 done 5350IFS=$as_save_IFS 5351 5352fi 5353fi 5354ac_ct_GDC=$ac_cv_prog_ac_ct_GDC 5355if test -n "$ac_ct_GDC"; then 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 5357$as_echo "$ac_ct_GDC" >&6; } 5358else 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5360$as_echo "no" >&6; } 5361fi 5362 5363 if test "x$ac_ct_GDC" = x; then 5364 GDC="no" 5365 else 5366 case $cross_compiling:$ac_tool_warned in 5367yes:) 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5370ac_tool_warned=yes ;; 5371esac 5372 GDC=$ac_ct_GDC 5373 fi 5374else 5375 GDC="$ac_cv_prog_GDC" 5376fi 5377 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 5379$as_echo_n "checking whether the D compiler works... " >&6; } 5380if ${acx_cv_d_compiler_works+:} false; then : 5381 $as_echo_n "(cached) " >&6 5382else 5383 cat >conftest.d <<EOF 5384module conftest; int main() { return 0; } 5385EOF 5386acx_cv_d_compiler_works=no 5387if test "x$GDC" != xno; then 5388 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure` 5389 if test x"$errors" = x && test -f conftest.$ac_objext; then 5390 acx_cv_d_compiler_works=yes 5391 fi 5392 rm -f conftest.* 5393fi 5394fi 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 5396$as_echo "$acx_cv_d_compiler_works" >&6; } 5397if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then 5398 have_gdc=yes 5399else 5400 have_gdc=no 5401fi 5402 5403 5404# Do configure tests with the C++ compiler, since that's what we build with. 5405ac_ext=cpp 5406ac_cpp='$CXXCPP $CPPFLAGS' 5407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5410 5411 5412# Remove the -O2: for historical reasons, unless bootstrapping we prefer 5413# optimizations to be activated explicitly by the toplevel. 5414case "$CC" in 5415 */prev-gcc/xgcc*) ;; 5416 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` 5417 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;; 5418esac 5419 5420 5421 5422 5423# Determine PICFLAG for target gnatlib. 5424 5425 5426 5427 5428case "${target}" in 5429 # PIC is the default on some targets or must not be used. 5430 *-*-darwin*) 5431 # For darwin, common symbols are not allowed in MH_DYLIB files 5432 case "${CFLAGS}" in 5433 # If we are using a compiler supporting mdynamic-no-pic 5434 # and the option has been tested as safe to add, then cancel 5435 # it here, since the code generated is incompatible with shared 5436 # libs. 5437 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;; 5438 *) PICFLAG_FOR_TARGET=-fno-common ;; 5439 esac 5440 ;; 5441 alpha*-dec-osf5*) 5442 # PIC is the default. 5443 ;; 5444 hppa*64*-*-hpux*) 5445 # PIC is the default for 64-bit PA HP-UX. 5446 ;; 5447 i[34567]86-*-cygwin* | x86_64-*-cygwin*) 5448 ;; 5449 i[34567]86-*-mingw* | x86_64-*-mingw*) 5450 ;; 5451 i[34567]86-*-interix[3-9]*) 5452 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5453 # Instead, we relocate shared libraries at runtime. 5454 ;; 5455 i[34567]86-*-nto-qnx*) 5456 # QNX uses GNU C++, but need to define -shared option too, otherwise 5457 # it will coredump. 5458 PICFLAG_FOR_TARGET='-fPIC -shared' 5459 ;; 5460 i[34567]86-pc-msdosdjgpp*) 5461 # DJGPP does not support shared libraries at all. 5462 ;; 5463 ia64*-*-hpux*) 5464 # On IA64 HP-UX, PIC is the default but the pic flag 5465 # sets the default TLS model and affects inlining. 5466 PICFLAG_FOR_TARGET=-fPIC 5467 ;; 5468 loongarch*-*-*) 5469 PICFLAG_FOR_TARGET=-fpic 5470 ;; 5471 mips-sgi-irix6*) 5472 # PIC is the default. 5473 ;; 5474 rs6000-ibm-aix* | powerpc-ibm-aix*) 5475 # All AIX code is PIC. 5476 ;; 5477 5478 # Some targets support both -fPIC and -fpic, but prefer the latter. 5479 # FIXME: Why? 5480 i[34567]86-*-* | x86_64-*-*) 5481 PICFLAG_FOR_TARGET=-fpic 5482 ;; 5483 # FIXME: Override -fPIC default in libgcc only? 5484 sh-*-linux* | sh[2346lbe]*-*-linux*) 5485 PICFLAG_FOR_TARGET=-fpic 5486 ;; 5487 # FIXME: Simplify to sh*-*-netbsd*? 5488 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ 5489 sh64-*-netbsd* | sh64l*-*-netbsd*) 5490 PICFLAG_FOR_TARGET=-fpic 5491 ;; 5492 # Default to -fPIC unless specified otherwise. 5493 *) 5494 PICFLAG_FOR_TARGET=-fPIC 5495 ;; 5496esac 5497 5498# If the user explicitly uses -fpic/-fPIC, keep that. 5499case "${CFLAGS_FOR_TARGET}" in 5500 *-fpic*) 5501 PICFLAG_FOR_TARGET=-fpic 5502 ;; 5503 *-fPIC*) 5504 PICFLAG_FOR_TARGET=-fPIC 5505 ;; 5506esac 5507 5508 5509 5510# ------------------------- 5511# Check C compiler features 5512# ------------------------- 5513 5514 5515ac_ext=cpp 5516ac_cpp='$CXXCPP $CPPFLAGS' 5517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5521$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5522if test -z "$CXXCPP"; then 5523 if ${ac_cv_prog_CXXCPP+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 # Double quotes because CXXCPP needs to be expanded 5527 for CXXCPP in "$CXX -E" "/lib/cpp" 5528 do 5529 ac_preproc_ok=false 5530for ac_cxx_preproc_warn_flag in '' yes 5531do 5532 # Use a header file that comes with gcc, so configuring glibc 5533 # with a fresh cross-compiler works. 5534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5535 # <limits.h> exists even on freestanding compilers. 5536 # On the NeXT, cc -E runs the code through the compiler's parser, 5537 # not just through cpp. "Syntax error" is here to catch this case. 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539/* end confdefs.h. */ 5540#ifdef __STDC__ 5541# include <limits.h> 5542#else 5543# include <assert.h> 5544#endif 5545 Syntax error 5546_ACEOF 5547if ac_fn_cxx_try_cpp "$LINENO"; then : 5548 5549else 5550 # Broken: fails on valid input. 5551continue 5552fi 5553rm -f conftest.err conftest.i conftest.$ac_ext 5554 5555 # OK, works on sane cases. Now check whether nonexistent headers 5556 # can be detected and how. 5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5558/* end confdefs.h. */ 5559#include <ac_nonexistent.h> 5560_ACEOF 5561if ac_fn_cxx_try_cpp "$LINENO"; then : 5562 # Broken: success on invalid input. 5563continue 5564else 5565 # Passes both tests. 5566ac_preproc_ok=: 5567break 5568fi 5569rm -f conftest.err conftest.i conftest.$ac_ext 5570 5571done 5572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5573rm -f conftest.i conftest.err conftest.$ac_ext 5574if $ac_preproc_ok; then : 5575 break 5576fi 5577 5578 done 5579 ac_cv_prog_CXXCPP=$CXXCPP 5580 5581fi 5582 CXXCPP=$ac_cv_prog_CXXCPP 5583else 5584 ac_cv_prog_CXXCPP=$CXXCPP 5585fi 5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5587$as_echo "$CXXCPP" >&6; } 5588ac_preproc_ok=false 5589for ac_cxx_preproc_warn_flag in '' yes 5590do 5591 # Use a header file that comes with gcc, so configuring glibc 5592 # with a fresh cross-compiler works. 5593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5594 # <limits.h> exists even on freestanding compilers. 5595 # On the NeXT, cc -E runs the code through the compiler's parser, 5596 # not just through cpp. "Syntax error" is here to catch this case. 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5598/* end confdefs.h. */ 5599#ifdef __STDC__ 5600# include <limits.h> 5601#else 5602# include <assert.h> 5603#endif 5604 Syntax error 5605_ACEOF 5606if ac_fn_cxx_try_cpp "$LINENO"; then : 5607 5608else 5609 # Broken: fails on valid input. 5610continue 5611fi 5612rm -f conftest.err conftest.i conftest.$ac_ext 5613 5614 # OK, works on sane cases. Now check whether nonexistent headers 5615 # can be detected and how. 5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617/* end confdefs.h. */ 5618#include <ac_nonexistent.h> 5619_ACEOF 5620if ac_fn_cxx_try_cpp "$LINENO"; then : 5621 # Broken: success on invalid input. 5622continue 5623else 5624 # Passes both tests. 5625ac_preproc_ok=: 5626break 5627fi 5628rm -f conftest.err conftest.i conftest.$ac_ext 5629 5630done 5631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5632rm -f conftest.i conftest.err conftest.$ac_ext 5633if $ac_preproc_ok; then : 5634 5635else 5636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5638as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5639See \`config.log' for more details" "$LINENO" 5; } 5640fi 5641 5642ac_ext=cpp 5643ac_cpp='$CXXCPP $CPPFLAGS' 5644ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5645ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5646ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5647 5648 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5650$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5651if ${ac_cv_path_GREP+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653else 5654 if test -z "$GREP"; then 5655 ac_path_GREP_found=false 5656 # Loop through the user's path and test for each of PROGNAME-LIST 5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5659do 5660 IFS=$as_save_IFS 5661 test -z "$as_dir" && as_dir=. 5662 for ac_prog in grep ggrep; do 5663 for ac_exec_ext in '' $ac_executable_extensions; do 5664 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5665 as_fn_executable_p "$ac_path_GREP" || continue 5666# Check for GNU ac_path_GREP and select it if it is found. 5667 # Check for GNU $ac_path_GREP 5668case `"$ac_path_GREP" --version 2>&1` in 5669*GNU*) 5670 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5671*) 5672 ac_count=0 5673 $as_echo_n 0123456789 >"conftest.in" 5674 while : 5675 do 5676 cat "conftest.in" "conftest.in" >"conftest.tmp" 5677 mv "conftest.tmp" "conftest.in" 5678 cp "conftest.in" "conftest.nl" 5679 $as_echo 'GREP' >> "conftest.nl" 5680 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5682 as_fn_arith $ac_count + 1 && ac_count=$as_val 5683 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5684 # Best one so far, save it but keep looking for a better one 5685 ac_cv_path_GREP="$ac_path_GREP" 5686 ac_path_GREP_max=$ac_count 5687 fi 5688 # 10*(2^10) chars as input seems more than enough 5689 test $ac_count -gt 10 && break 5690 done 5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5692esac 5693 5694 $ac_path_GREP_found && break 3 5695 done 5696 done 5697 done 5698IFS=$as_save_IFS 5699 if test -z "$ac_cv_path_GREP"; then 5700 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5701 fi 5702else 5703 ac_cv_path_GREP=$GREP 5704fi 5705 5706fi 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5708$as_echo "$ac_cv_path_GREP" >&6; } 5709 GREP="$ac_cv_path_GREP" 5710 5711 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5713$as_echo_n "checking for egrep... " >&6; } 5714if ${ac_cv_path_EGREP+:} false; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5718 then ac_cv_path_EGREP="$GREP -E" 5719 else 5720 if test -z "$EGREP"; then 5721 ac_path_EGREP_found=false 5722 # Loop through the user's path and test for each of PROGNAME-LIST 5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5725do 5726 IFS=$as_save_IFS 5727 test -z "$as_dir" && as_dir=. 5728 for ac_prog in egrep; do 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5731 as_fn_executable_p "$ac_path_EGREP" || continue 5732# Check for GNU ac_path_EGREP and select it if it is found. 5733 # Check for GNU $ac_path_EGREP 5734case `"$ac_path_EGREP" --version 2>&1` in 5735*GNU*) 5736 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5737*) 5738 ac_count=0 5739 $as_echo_n 0123456789 >"conftest.in" 5740 while : 5741 do 5742 cat "conftest.in" "conftest.in" >"conftest.tmp" 5743 mv "conftest.tmp" "conftest.in" 5744 cp "conftest.in" "conftest.nl" 5745 $as_echo 'EGREP' >> "conftest.nl" 5746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5748 as_fn_arith $ac_count + 1 && ac_count=$as_val 5749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5750 # Best one so far, save it but keep looking for a better one 5751 ac_cv_path_EGREP="$ac_path_EGREP" 5752 ac_path_EGREP_max=$ac_count 5753 fi 5754 # 10*(2^10) chars as input seems more than enough 5755 test $ac_count -gt 10 && break 5756 done 5757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5758esac 5759 5760 $ac_path_EGREP_found && break 3 5761 done 5762 done 5763 done 5764IFS=$as_save_IFS 5765 if test -z "$ac_cv_path_EGREP"; then 5766 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5767 fi 5768else 5769 ac_cv_path_EGREP=$EGREP 5770fi 5771 5772 fi 5773fi 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5775$as_echo "$ac_cv_path_EGREP" >&6; } 5776 EGREP="$ac_cv_path_EGREP" 5777 5778 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5780$as_echo_n "checking for ANSI C header files... " >&6; } 5781if ${ac_cv_header_stdc+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5785/* end confdefs.h. */ 5786#include <stdlib.h> 5787#include <stdarg.h> 5788#include <string.h> 5789#include <float.h> 5790 5791int 5792main () 5793{ 5794 5795 ; 5796 return 0; 5797} 5798_ACEOF 5799if ac_fn_cxx_try_compile "$LINENO"; then : 5800 ac_cv_header_stdc=yes 5801else 5802 ac_cv_header_stdc=no 5803fi 5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5805 5806if test $ac_cv_header_stdc = yes; then 5807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810#include <string.h> 5811 5812_ACEOF 5813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5814 $EGREP "memchr" >/dev/null 2>&1; then : 5815 5816else 5817 ac_cv_header_stdc=no 5818fi 5819rm -f conftest* 5820 5821fi 5822 5823if test $ac_cv_header_stdc = yes; then 5824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5826/* end confdefs.h. */ 5827#include <stdlib.h> 5828 5829_ACEOF 5830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5831 $EGREP "free" >/dev/null 2>&1; then : 5832 5833else 5834 ac_cv_header_stdc=no 5835fi 5836rm -f conftest* 5837 5838fi 5839 5840if test $ac_cv_header_stdc = yes; then 5841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5842 if test "$cross_compiling" = yes; then : 5843 : 5844else 5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847#include <ctype.h> 5848#include <stdlib.h> 5849#if ((' ' & 0x0FF) == 0x020) 5850# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5851# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5852#else 5853# define ISLOWER(c) \ 5854 (('a' <= (c) && (c) <= 'i') \ 5855 || ('j' <= (c) && (c) <= 'r') \ 5856 || ('s' <= (c) && (c) <= 'z')) 5857# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5858#endif 5859 5860#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5861int 5862main () 5863{ 5864 int i; 5865 for (i = 0; i < 256; i++) 5866 if (XOR (islower (i), ISLOWER (i)) 5867 || toupper (i) != TOUPPER (i)) 5868 return 2; 5869 return 0; 5870} 5871_ACEOF 5872if ac_fn_cxx_try_run "$LINENO"; then : 5873 5874else 5875 ac_cv_header_stdc=no 5876fi 5877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5878 conftest.$ac_objext conftest.beam conftest.$ac_ext 5879fi 5880 5881fi 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5884$as_echo "$ac_cv_header_stdc" >&6; } 5885if test $ac_cv_header_stdc = yes; then 5886 5887$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5888 5889fi 5890 5891# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5892for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5893 inttypes.h stdint.h unistd.h 5894do : 5895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5896ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5897" 5898if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5899 cat >>confdefs.h <<_ACEOF 5900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5901_ACEOF 5902 5903fi 5904 5905done 5906 5907 5908 5909 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5910if test "x$ac_cv_header_minix_config_h" = xyes; then : 5911 MINIX=yes 5912else 5913 MINIX= 5914fi 5915 5916 5917 if test "$MINIX" = yes; then 5918 5919$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5920 5921 5922$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5923 5924 5925$as_echo "#define _MINIX 1" >>confdefs.h 5926 5927 fi 5928 5929 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5931$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5932if ${ac_cv_safe_to_define___extensions__+:} false; then : 5933 $as_echo_n "(cached) " >&6 5934else 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937 5938# define __EXTENSIONS__ 1 5939 $ac_includes_default 5940int 5941main () 5942{ 5943 5944 ; 5945 return 0; 5946} 5947_ACEOF 5948if ac_fn_cxx_try_compile "$LINENO"; then : 5949 ac_cv_safe_to_define___extensions__=yes 5950else 5951 ac_cv_safe_to_define___extensions__=no 5952fi 5953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5954fi 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5956$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5957 test $ac_cv_safe_to_define___extensions__ = yes && 5958 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5959 5960 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5961 5962 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5963 5964 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5965 5966 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5967 5968 5969 5970ac_ext=c 5971ac_cpp='$CPP $CPPFLAGS' 5972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5974ac_compiler_gnu=$ac_cv_c_compiler_gnu 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5976$as_echo_n "checking how to run the C preprocessor... " >&6; } 5977# On Suns, sometimes $CPP names a directory. 5978if test -n "$CPP" && test -d "$CPP"; then 5979 CPP= 5980fi 5981if test -z "$CPP"; then 5982 if ${ac_cv_prog_CPP+:} false; then : 5983 $as_echo_n "(cached) " >&6 5984else 5985 # Double quotes because CPP needs to be expanded 5986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5987 do 5988 ac_preproc_ok=false 5989for ac_c_preproc_warn_flag in '' yes 5990do 5991 # Use a header file that comes with gcc, so configuring glibc 5992 # with a fresh cross-compiler works. 5993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5994 # <limits.h> exists even on freestanding compilers. 5995 # On the NeXT, cc -E runs the code through the compiler's parser, 5996 # not just through cpp. "Syntax error" is here to catch this case. 5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999#ifdef __STDC__ 6000# include <limits.h> 6001#else 6002# include <assert.h> 6003#endif 6004 Syntax error 6005_ACEOF 6006if ac_fn_c_try_cpp "$LINENO"; then : 6007 6008else 6009 # Broken: fails on valid input. 6010continue 6011fi 6012rm -f conftest.err conftest.i conftest.$ac_ext 6013 6014 # OK, works on sane cases. Now check whether nonexistent headers 6015 # can be detected and how. 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017/* end confdefs.h. */ 6018#include <ac_nonexistent.h> 6019_ACEOF 6020if ac_fn_c_try_cpp "$LINENO"; then : 6021 # Broken: success on invalid input. 6022continue 6023else 6024 # Passes both tests. 6025ac_preproc_ok=: 6026break 6027fi 6028rm -f conftest.err conftest.i conftest.$ac_ext 6029 6030done 6031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6032rm -f conftest.i conftest.err conftest.$ac_ext 6033if $ac_preproc_ok; then : 6034 break 6035fi 6036 6037 done 6038 ac_cv_prog_CPP=$CPP 6039 6040fi 6041 CPP=$ac_cv_prog_CPP 6042else 6043 ac_cv_prog_CPP=$CPP 6044fi 6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6046$as_echo "$CPP" >&6; } 6047ac_preproc_ok=false 6048for ac_c_preproc_warn_flag in '' yes 6049do 6050 # Use a header file that comes with gcc, so configuring glibc 6051 # with a fresh cross-compiler works. 6052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6053 # <limits.h> exists even on freestanding compilers. 6054 # On the NeXT, cc -E runs the code through the compiler's parser, 6055 # not just through cpp. "Syntax error" is here to catch this case. 6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058#ifdef __STDC__ 6059# include <limits.h> 6060#else 6061# include <assert.h> 6062#endif 6063 Syntax error 6064_ACEOF 6065if ac_fn_c_try_cpp "$LINENO"; then : 6066 6067else 6068 # Broken: fails on valid input. 6069continue 6070fi 6071rm -f conftest.err conftest.i conftest.$ac_ext 6072 6073 # OK, works on sane cases. Now check whether nonexistent headers 6074 # can be detected and how. 6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076/* end confdefs.h. */ 6077#include <ac_nonexistent.h> 6078_ACEOF 6079if ac_fn_c_try_cpp "$LINENO"; then : 6080 # Broken: success on invalid input. 6081continue 6082else 6083 # Passes both tests. 6084ac_preproc_ok=: 6085break 6086fi 6087rm -f conftest.err conftest.i conftest.$ac_ext 6088 6089done 6090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6091rm -f conftest.i conftest.err conftest.$ac_ext 6092if $ac_preproc_ok; then : 6093 6094else 6095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6097as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6098See \`config.log' for more details" "$LINENO" 5; } 6099fi 6100 6101ac_ext=cpp 6102ac_cpp='$CXXCPP $CPPFLAGS' 6103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6106 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6108$as_echo_n "checking for inline... " >&6; } 6109if ${ac_cv_c_inline+:} false; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 ac_cv_c_inline=no 6113for ac_kw in inline __inline__ __inline; do 6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6115/* end confdefs.h. */ 6116#ifndef __cplusplus 6117typedef int foo_t; 6118static $ac_kw foo_t static_foo () {return 0; } 6119$ac_kw foo_t foo () {return 0; } 6120#endif 6121 6122_ACEOF 6123if ac_fn_cxx_try_compile "$LINENO"; then : 6124 ac_cv_c_inline=$ac_kw 6125fi 6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6127 test "$ac_cv_c_inline" != no && break 6128done 6129 6130fi 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6132$as_echo "$ac_cv_c_inline" >&6; } 6133 6134case $ac_cv_c_inline in 6135 inline | yes) ;; 6136 *) 6137 case $ac_cv_c_inline in 6138 no) ac_val=;; 6139 *) ac_val=$ac_cv_c_inline;; 6140 esac 6141 cat >>confdefs.h <<_ACEOF 6142#ifndef __cplusplus 6143#define inline $ac_val 6144#endif 6145_ACEOF 6146 ;; 6147esac 6148 6149 6150# Check whether --enable-largefile was given. 6151if test "${enable_largefile+set}" = set; then : 6152 enableval=$enable_largefile; 6153fi 6154 6155if test "$enable_largefile" != no; then 6156 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6158$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6159if ${ac_cv_sys_largefile_CC+:} false; then : 6160 $as_echo_n "(cached) " >&6 6161else 6162 ac_cv_sys_largefile_CC=no 6163 if test "$GCC" != yes; then 6164 ac_save_CC=$CC 6165 while :; do 6166 # IRIX 6.2 and later do not support large files by default, 6167 # so use the C compiler's -n32 option if that helps. 6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6169/* end confdefs.h. */ 6170#include <sys/types.h> 6171 /* Check that off_t can represent 2**63 - 1 correctly. 6172 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6173 since some C++ compilers masquerading as C compilers 6174 incorrectly reject 9223372036854775807. */ 6175#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6177 && LARGE_OFF_T % 2147483647 == 1) 6178 ? 1 : -1]; 6179int 6180main () 6181{ 6182 6183 ; 6184 return 0; 6185} 6186_ACEOF 6187 if ac_fn_cxx_try_compile "$LINENO"; then : 6188 break 6189fi 6190rm -f core conftest.err conftest.$ac_objext 6191 CC="$CC -n32" 6192 if ac_fn_cxx_try_compile "$LINENO"; then : 6193 ac_cv_sys_largefile_CC=' -n32'; break 6194fi 6195rm -f core conftest.err conftest.$ac_objext 6196 break 6197 done 6198 CC=$ac_save_CC 6199 rm -f conftest.$ac_ext 6200 fi 6201fi 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6203$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6204 if test "$ac_cv_sys_largefile_CC" != no; then 6205 CC=$CC$ac_cv_sys_largefile_CC 6206 fi 6207 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6209$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6210if ${ac_cv_sys_file_offset_bits+:} false; then : 6211 $as_echo_n "(cached) " >&6 6212else 6213 while :; do 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216#include <sys/types.h> 6217 /* Check that off_t can represent 2**63 - 1 correctly. 6218 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6219 since some C++ compilers masquerading as C compilers 6220 incorrectly reject 9223372036854775807. */ 6221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6223 && LARGE_OFF_T % 2147483647 == 1) 6224 ? 1 : -1]; 6225int 6226main () 6227{ 6228 6229 ; 6230 return 0; 6231} 6232_ACEOF 6233if ac_fn_cxx_try_compile "$LINENO"; then : 6234 ac_cv_sys_file_offset_bits=no; break 6235fi 6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238/* end confdefs.h. */ 6239#define _FILE_OFFSET_BITS 64 6240#include <sys/types.h> 6241 /* Check that off_t can represent 2**63 - 1 correctly. 6242 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6243 since some C++ compilers masquerading as C compilers 6244 incorrectly reject 9223372036854775807. */ 6245#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6247 && LARGE_OFF_T % 2147483647 == 1) 6248 ? 1 : -1]; 6249int 6250main () 6251{ 6252 6253 ; 6254 return 0; 6255} 6256_ACEOF 6257if ac_fn_cxx_try_compile "$LINENO"; then : 6258 ac_cv_sys_file_offset_bits=64; break 6259fi 6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6261 ac_cv_sys_file_offset_bits=unknown 6262 break 6263done 6264fi 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6266$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6267case $ac_cv_sys_file_offset_bits in #( 6268 no | unknown) ;; 6269 *) 6270cat >>confdefs.h <<_ACEOF 6271#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6272_ACEOF 6273;; 6274esac 6275rm -rf conftest* 6276 if test $ac_cv_sys_file_offset_bits = unknown; then 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6278$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6279if ${ac_cv_sys_large_files+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281else 6282 while :; do 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285#include <sys/types.h> 6286 /* Check that off_t can represent 2**63 - 1 correctly. 6287 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6288 since some C++ compilers masquerading as C compilers 6289 incorrectly reject 9223372036854775807. */ 6290#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6292 && LARGE_OFF_T % 2147483647 == 1) 6293 ? 1 : -1]; 6294int 6295main () 6296{ 6297 6298 ; 6299 return 0; 6300} 6301_ACEOF 6302if ac_fn_cxx_try_compile "$LINENO"; then : 6303 ac_cv_sys_large_files=no; break 6304fi 6305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307/* end confdefs.h. */ 6308#define _LARGE_FILES 1 6309#include <sys/types.h> 6310 /* Check that off_t can represent 2**63 - 1 correctly. 6311 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6312 since some C++ compilers masquerading as C compilers 6313 incorrectly reject 9223372036854775807. */ 6314#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6316 && LARGE_OFF_T % 2147483647 == 1) 6317 ? 1 : -1]; 6318int 6319main () 6320{ 6321 6322 ; 6323 return 0; 6324} 6325_ACEOF 6326if ac_fn_cxx_try_compile "$LINENO"; then : 6327 ac_cv_sys_large_files=1; break 6328fi 6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6330 ac_cv_sys_large_files=unknown 6331 break 6332done 6333fi 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6335$as_echo "$ac_cv_sys_large_files" >&6; } 6336case $ac_cv_sys_large_files in #( 6337 no | unknown) ;; 6338 *) 6339cat >>confdefs.h <<_ACEOF 6340#define _LARGE_FILES $ac_cv_sys_large_files 6341_ACEOF 6342;; 6343esac 6344rm -rf conftest* 6345 fi 6346 6347 6348fi 6349 6350# The cast to long int works around a bug in the HP C Compiler 6351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6353# This bug is HP SR number 8606223364. 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5 6355$as_echo_n "checking size of ino_t... " >&6; } 6356if ${ac_cv_sizeof_ino_t+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then : 6360 6361else 6362 if test "$ac_cv_type_ino_t" = yes; then 6363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6365as_fn_error 77 "cannot compute sizeof (ino_t) 6366See \`config.log' for more details" "$LINENO" 5; } 6367 else 6368 ac_cv_sizeof_ino_t=0 6369 fi 6370fi 6371 6372fi 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5 6374$as_echo "$ac_cv_sizeof_ino_t" >&6; } 6375 6376 6377 6378cat >>confdefs.h <<_ACEOF 6379#define SIZEOF_INO_T $ac_cv_sizeof_ino_t 6380_ACEOF 6381 6382 6383# The cast to long int works around a bug in the HP C Compiler 6384# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6385# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6386# This bug is HP SR number 8606223364. 6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5 6388$as_echo_n "checking size of dev_t... " >&6; } 6389if ${ac_cv_sizeof_dev_t+:} false; then : 6390 $as_echo_n "(cached) " >&6 6391else 6392 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then : 6393 6394else 6395 if test "$ac_cv_type_dev_t" = yes; then 6396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6398as_fn_error 77 "cannot compute sizeof (dev_t) 6399See \`config.log' for more details" "$LINENO" 5; } 6400 else 6401 ac_cv_sizeof_dev_t=0 6402 fi 6403fi 6404 6405fi 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5 6407$as_echo "$ac_cv_sizeof_dev_t" >&6; } 6408 6409 6410 6411cat >>confdefs.h <<_ACEOF 6412#define SIZEOF_DEV_T $ac_cv_sizeof_dev_t 6413_ACEOF 6414 6415 6416 6417# Select the right stat being able to handle 64bit inodes, if needed. 6418if test "$enable_largefile" != no; then 6419 case "$host, $build" in 6420 *-*-aix*,*|*,*-*-aix*) 6421 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then 6422 6423$as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h 6424 6425 fi;; 6426 esac 6427fi 6428 6429 6430# sizeof(char) is 1 by definition. 6431# The cast to long int works around a bug in the HP C Compiler 6432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6434# This bug is HP SR number 8606223364. 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6436$as_echo_n "checking size of void *... " >&6; } 6437if ${ac_cv_sizeof_void_p+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 6441 6442else 6443 if test "$ac_cv_type_void_p" = yes; then 6444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6446as_fn_error 77 "cannot compute sizeof (void *) 6447See \`config.log' for more details" "$LINENO" 5; } 6448 else 6449 ac_cv_sizeof_void_p=0 6450 fi 6451fi 6452 6453fi 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6455$as_echo "$ac_cv_sizeof_void_p" >&6; } 6456 6457 6458 6459cat >>confdefs.h <<_ACEOF 6460#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 6461_ACEOF 6462 6463 6464# The cast to long int works around a bug in the HP C Compiler 6465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6467# This bug is HP SR number 8606223364. 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 6469$as_echo_n "checking size of short... " >&6; } 6470if ${ac_cv_sizeof_short+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472else 6473 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 6474 6475else 6476 if test "$ac_cv_type_short" = yes; then 6477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6479as_fn_error 77 "cannot compute sizeof (short) 6480See \`config.log' for more details" "$LINENO" 5; } 6481 else 6482 ac_cv_sizeof_short=0 6483 fi 6484fi 6485 6486fi 6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 6488$as_echo "$ac_cv_sizeof_short" >&6; } 6489 6490 6491 6492cat >>confdefs.h <<_ACEOF 6493#define SIZEOF_SHORT $ac_cv_sizeof_short 6494_ACEOF 6495 6496 6497# The cast to long int works around a bug in the HP C Compiler 6498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6500# This bug is HP SR number 8606223364. 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6502$as_echo_n "checking size of int... " >&6; } 6503if ${ac_cv_sizeof_int+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6507 6508else 6509 if test "$ac_cv_type_int" = yes; then 6510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6512as_fn_error 77 "cannot compute sizeof (int) 6513See \`config.log' for more details" "$LINENO" 5; } 6514 else 6515 ac_cv_sizeof_int=0 6516 fi 6517fi 6518 6519fi 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6521$as_echo "$ac_cv_sizeof_int" >&6; } 6522 6523 6524 6525cat >>confdefs.h <<_ACEOF 6526#define SIZEOF_INT $ac_cv_sizeof_int 6527_ACEOF 6528 6529 6530# The cast to long int works around a bug in the HP C Compiler 6531# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6532# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6533# This bug is HP SR number 8606223364. 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6535$as_echo_n "checking size of long... " >&6; } 6536if ${ac_cv_sizeof_long+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6540 6541else 6542 if test "$ac_cv_type_long" = yes; then 6543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6545as_fn_error 77 "cannot compute sizeof (long) 6546See \`config.log' for more details" "$LINENO" 5; } 6547 else 6548 ac_cv_sizeof_long=0 6549 fi 6550fi 6551 6552fi 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6554$as_echo "$ac_cv_sizeof_long" >&6; } 6555 6556 6557 6558cat >>confdefs.h <<_ACEOF 6559#define SIZEOF_LONG $ac_cv_sizeof_long 6560_ACEOF 6561 6562 6563ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 6564if test "x$ac_cv_type_long_long" = xyes; then : 6565 6566cat >>confdefs.h <<_ACEOF 6567#define HAVE_LONG_LONG 1 6568_ACEOF 6569 6570# The cast to long int works around a bug in the HP C Compiler 6571# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6572# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6573# This bug is HP SR number 8606223364. 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 6575$as_echo_n "checking size of long long... " >&6; } 6576if ${ac_cv_sizeof_long_long+:} false; then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 6580 6581else 6582 if test "$ac_cv_type_long_long" = yes; then 6583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6585as_fn_error 77 "cannot compute sizeof (long long) 6586See \`config.log' for more details" "$LINENO" 5; } 6587 else 6588 ac_cv_sizeof_long_long=0 6589 fi 6590fi 6591 6592fi 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 6594$as_echo "$ac_cv_sizeof_long_long" >&6; } 6595 6596 6597 6598cat >>confdefs.h <<_ACEOF 6599#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6600_ACEOF 6601 6602 6603fi 6604 6605ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 6606case $ac_cv_c_int8_t in #( 6607 no|yes) ;; #( 6608 *) 6609 6610cat >>confdefs.h <<_ACEOF 6611#define int8_t $ac_cv_c_int8_t 6612_ACEOF 6613;; 6614esac 6615 6616ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 6617case $ac_cv_c_int16_t in #( 6618 no|yes) ;; #( 6619 *) 6620 6621cat >>confdefs.h <<_ACEOF 6622#define int16_t $ac_cv_c_int16_t 6623_ACEOF 6624;; 6625esac 6626 6627ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 6628case $ac_cv_c_int32_t in #( 6629 no|yes) ;; #( 6630 *) 6631 6632cat >>confdefs.h <<_ACEOF 6633#define int32_t $ac_cv_c_int32_t 6634_ACEOF 6635;; 6636esac 6637 6638ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 6639case $ac_cv_c_int64_t in #( 6640 no|yes) ;; #( 6641 *) 6642 6643cat >>confdefs.h <<_ACEOF 6644#define int64_t $ac_cv_c_int64_t 6645_ACEOF 6646;; 6647esac 6648 6649 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 6651$as_echo_n "checking for unsigned long long int... " >&6; } 6652if ${ac_cv_type_unsigned_long_long_int+:} false; then : 6653 $as_echo_n "(cached) " >&6 6654else 6655 ac_cv_type_unsigned_long_long_int=yes 6656 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658/* end confdefs.h. */ 6659 6660 /* For now, do not test the preprocessor; as of 2007 there are too many 6661 implementations with broken preprocessors. Perhaps this can 6662 be revisited in 2012. In the meantime, code should not expect 6663 #if to work with literals wider than 32 bits. */ 6664 /* Test literals. */ 6665 long long int ll = 9223372036854775807ll; 6666 long long int nll = -9223372036854775807LL; 6667 unsigned long long int ull = 18446744073709551615ULL; 6668 /* Test constant expressions. */ 6669 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 6670 ? 1 : -1)]; 6671 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 6672 ? 1 : -1)]; 6673 int i = 63; 6674int 6675main () 6676{ 6677/* Test availability of runtime routines for shift and division. */ 6678 long long int llmax = 9223372036854775807ll; 6679 unsigned long long int ullmax = 18446744073709551615ull; 6680 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 6681 | (llmax / ll) | (llmax % ll) 6682 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 6683 | (ullmax / ull) | (ullmax % ull)); 6684 ; 6685 return 0; 6686} 6687 6688_ACEOF 6689if ac_fn_cxx_try_link "$LINENO"; then : 6690 6691else 6692 ac_cv_type_unsigned_long_long_int=no 6693fi 6694rm -f core conftest.err conftest.$ac_objext \ 6695 conftest$ac_exeext conftest.$ac_ext 6696 fi 6697fi 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 6699$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 6700 if test $ac_cv_type_unsigned_long_long_int = yes; then 6701 6702$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 6703 6704 fi 6705 6706 6707 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 6709$as_echo_n "checking for long long int... " >&6; } 6710if ${ac_cv_type_long_long_int+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 ac_cv_type_long_long_int=yes 6714 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6715 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 6716 if test $ac_cv_type_long_long_int = yes; then 6717 if test "$cross_compiling" = yes; then : 6718 : 6719else 6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6721/* end confdefs.h. */ 6722#include <limits.h> 6723 #ifndef LLONG_MAX 6724 # define HALF \ 6725 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 6726 # define LLONG_MAX (HALF - 1 + HALF) 6727 #endif 6728int 6729main () 6730{ 6731long long int n = 1; 6732 int i; 6733 for (i = 0; ; i++) 6734 { 6735 long long int m = n << i; 6736 if (m >> i != n) 6737 return 1; 6738 if (LLONG_MAX / 2 < m) 6739 break; 6740 } 6741 return 0; 6742 ; 6743 return 0; 6744} 6745_ACEOF 6746if ac_fn_cxx_try_run "$LINENO"; then : 6747 6748else 6749 ac_cv_type_long_long_int=no 6750fi 6751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6752 conftest.$ac_objext conftest.beam conftest.$ac_ext 6753fi 6754 6755 fi 6756 fi 6757fi 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 6759$as_echo "$ac_cv_type_long_long_int" >&6; } 6760 if test $ac_cv_type_long_long_int = yes; then 6761 6762$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 6763 6764 fi 6765 6766 6767 6768 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 6769if test "x$ac_cv_type_intmax_t" = xyes; then : 6770 6771$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 6772 6773else 6774 test $ac_cv_type_long_long_int = yes \ 6775 && ac_type='long long int' \ 6776 || ac_type='long int' 6777 6778cat >>confdefs.h <<_ACEOF 6779#define intmax_t $ac_type 6780_ACEOF 6781 6782fi 6783 6784 6785 6786 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 6787if test "x$ac_cv_type_intptr_t" = xyes; then : 6788 6789$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 6790 6791else 6792 for ac_type in 'int' 'long int' 'long long int'; do 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794/* end confdefs.h. */ 6795$ac_includes_default 6796int 6797main () 6798{ 6799static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6800test_array [0] = 0; 6801return test_array [0]; 6802 6803 ; 6804 return 0; 6805} 6806_ACEOF 6807if ac_fn_cxx_try_compile "$LINENO"; then : 6808 6809cat >>confdefs.h <<_ACEOF 6810#define intptr_t $ac_type 6811_ACEOF 6812 6813 ac_type= 6814fi 6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6816 test -z "$ac_type" && break 6817 done 6818fi 6819 6820 6821ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 6822case $ac_cv_c_uint8_t in #( 6823 no|yes) ;; #( 6824 *) 6825 6826$as_echo "#define _UINT8_T 1" >>confdefs.h 6827 6828 6829cat >>confdefs.h <<_ACEOF 6830#define uint8_t $ac_cv_c_uint8_t 6831_ACEOF 6832;; 6833 esac 6834 6835ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 6836case $ac_cv_c_uint16_t in #( 6837 no|yes) ;; #( 6838 *) 6839 6840 6841cat >>confdefs.h <<_ACEOF 6842#define uint16_t $ac_cv_c_uint16_t 6843_ACEOF 6844;; 6845 esac 6846 6847ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 6848case $ac_cv_c_uint32_t in #( 6849 no|yes) ;; #( 6850 *) 6851 6852$as_echo "#define _UINT32_T 1" >>confdefs.h 6853 6854 6855cat >>confdefs.h <<_ACEOF 6856#define uint32_t $ac_cv_c_uint32_t 6857_ACEOF 6858;; 6859 esac 6860 6861ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 6862case $ac_cv_c_uint64_t in #( 6863 no|yes) ;; #( 6864 *) 6865 6866$as_echo "#define _UINT64_T 1" >>confdefs.h 6867 6868 6869cat >>confdefs.h <<_ACEOF 6870#define uint64_t $ac_cv_c_uint64_t 6871_ACEOF 6872;; 6873 esac 6874 6875 6876 6877 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 6878if test "x$ac_cv_type_uintmax_t" = xyes; then : 6879 6880$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 6881 6882else 6883 test $ac_cv_type_unsigned_long_long_int = yes \ 6884 && ac_type='unsigned long long int' \ 6885 || ac_type='unsigned long int' 6886 6887cat >>confdefs.h <<_ACEOF 6888#define uintmax_t $ac_type 6889_ACEOF 6890 6891fi 6892 6893 6894 6895 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 6896if test "x$ac_cv_type_uintptr_t" = xyes; then : 6897 6898$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 6899 6900else 6901 for ac_type in 'unsigned int' 'unsigned long int' \ 6902 'unsigned long long int'; do 6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6904/* end confdefs.h. */ 6905$ac_includes_default 6906int 6907main () 6908{ 6909static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6910test_array [0] = 0; 6911return test_array [0]; 6912 6913 ; 6914 return 0; 6915} 6916_ACEOF 6917if ac_fn_cxx_try_compile "$LINENO"; then : 6918 6919cat >>confdefs.h <<_ACEOF 6920#define uintptr_t $ac_type 6921_ACEOF 6922 6923 ac_type= 6924fi 6925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6926 test -z "$ac_type" && break 6927 done 6928fi 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then 6944 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5 6945fi 6946 6947# check what underlying integer type int64_t uses 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5 6949$as_echo_n "checking for int64_t underlying type... " >&6; } 6950if ${ac_cv_int64_t_type+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 6954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956 6957#ifdef HAVE_STDINT_H 6958#include <stdint.h> 6959#endif 6960template <typename T> struct X { }; 6961template <> 6962struct X<long> { typedef long t; }; 6963 6964int 6965main () 6966{ 6967X<int64_t>::t x; 6968 ; 6969 return 0; 6970} 6971_ACEOF 6972if ac_fn_cxx_try_compile "$LINENO"; then : 6973 ac_cv_int64_t_type=long 6974else 6975 ac_cv_int64_t_type="long long" 6976fi 6977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6978fi 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5 6980$as_echo "$ac_cv_int64_t_type" >&6; } 6981if test "$ac_cv_int64_t_type" = "long"; then 6982 6983$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h 6984 6985else 6986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6987/* end confdefs.h. */ 6988 6989#ifdef HAVE_STDINT_H 6990#include <stdint.h> 6991#endif 6992template <typename T> struct X { }; 6993template <> 6994struct X<long long> { typedef long long t; }; 6995 6996int 6997main () 6998{ 6999X<int64_t>::t x; 7000 ; 7001 return 0; 7002} 7003_ACEOF 7004if ac_fn_cxx_try_compile "$LINENO"; then : 7005 7006else 7007 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5 7008fi 7009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7010fi 7011 7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5 7013$as_echo_n "checking for std::swap in <utility>... " >&6; } 7014if ${ac_cv_std_swap_in_utility+:} false; then : 7015 $as_echo_n "(cached) " >&6 7016else 7017 7018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7019/* end confdefs.h. */ 7020 7021#include <utility> 7022 7023int 7024main () 7025{ 7026int a, b; std::swap(a,b); 7027 ; 7028 return 0; 7029} 7030_ACEOF 7031if ac_fn_cxx_try_compile "$LINENO"; then : 7032 ac_cv_std_swap_in_utility=yes 7033else 7034 ac_cv_std_swap_in_utility=no 7035fi 7036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7037fi 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5 7039$as_echo "$ac_cv_std_swap_in_utility" >&6; } 7040if test $ac_cv_std_swap_in_utility = yes; then 7041 7042$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h 7043 7044fi 7045 7046# Check whether compiler is affected by placement new aliasing bug (PR 29286). 7047# If the host compiler is affected by the bug, and we build with optimization 7048# enabled (which happens e.g. when cross-compiling), the pool allocator may 7049# get miscompiled. Use -fno-strict-aliasing to work around this problem. 7050# Since there is no reliable feature check for the presence of this bug, 7051# we simply use a GCC version number check. (This should never trigger for 7052# stages 2 or 3 of a native bootstrap.) 7053aliasing_flags= 7054if test "$GCC" = yes; then 7055 saved_CXXFLAGS="$CXXFLAGS" 7056 7057 # The following test compilation will succeed if and only if $CXX accepts 7058 # -fno-strict-aliasing *and* is older than GCC 4.3. 7059 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5 7061$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; } 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064 7065#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) 7066#error compiler not affected by placement new aliasing bug 7067#endif 7068 7069_ACEOF 7070if ac_fn_cxx_try_compile "$LINENO"; then : 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7072$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing' 7073else 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7075$as_echo "no" >&6; } 7076fi 7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7078 7079 CXXFLAGS="$saved_CXXFLAGS" 7080fi 7081 7082 7083 7084 7085# --------------------- 7086# Warnings and checking 7087# --------------------- 7088 7089# Check $CC warning features (if it's GCC). 7090# We want to use -pedantic, but we don't want warnings about 7091# * 'long long' 7092# * variadic macros 7093# * overlong strings 7094# * C++11 narrowing conversions in { } 7095# So, we only use -pedantic if we can disable those warnings. 7096 7097# In stage 1, disable -Wformat warnings from old GCCs about new % codes 7098# Check whether --enable-build-format-warnings was given. 7099if test "${enable_build_format_warnings+set}" = set; then : 7100 enableval=$enable_build_format_warnings; 7101else 7102 enable_build_format_warnings=yes 7103fi 7104 7105if test $enable_build_format_warnings = no; then : 7106 wf_opt=-Wno-format 7107else 7108 wf_opt= 7109fi 7110ac_ext=cpp 7111ac_cpp='$CXXCPP $CPPFLAGS' 7112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7115 7116loose_warn= 7117save_CXXFLAGS="$CXXFLAGS" 7118for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do 7119 # Do the check with the no- prefix removed since gcc silently 7120 # accepts any -Wno-* option on purpose 7121 case $real_option in 7122 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7123 *) option=$real_option ;; 7124 esac 7125 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7126 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 7128$as_echo_n "checking whether $CXX supports $option... " >&6; } 7129if eval \${$as_acx_Woption+:} false; then : 7130 $as_echo_n "(cached) " >&6 7131else 7132 CXXFLAGS="$option" 7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134/* end confdefs.h. */ 7135 7136int 7137main () 7138{ 7139 7140 ; 7141 return 0; 7142} 7143_ACEOF 7144if ac_fn_cxx_try_compile "$LINENO"; then : 7145 eval "$as_acx_Woption=yes" 7146else 7147 eval "$as_acx_Woption=no" 7148fi 7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7150 7151fi 7152eval ac_res=\$$as_acx_Woption 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7154$as_echo "$ac_res" >&6; } 7155 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7156 loose_warn="$loose_warn${loose_warn:+ }$real_option" 7157fi 7158 done 7159CXXFLAGS="$save_CXXFLAGS" 7160ac_ext=cpp 7161ac_cpp='$CXXCPP $CPPFLAGS' 7162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7165 7166 7167 7168ac_ext=c 7169ac_cpp='$CPP $CPPFLAGS' 7170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7172ac_compiler_gnu=$ac_cv_c_compiler_gnu 7173 7174c_loose_warn= 7175save_CFLAGS="$CFLAGS" 7176for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do 7177 # Do the check with the no- prefix removed since gcc silently 7178 # accepts any -Wno-* option on purpose 7179 case $real_option in 7180 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7181 *) option=$real_option ;; 7182 esac 7183 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7184 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7186$as_echo_n "checking whether $CC supports $option... " >&6; } 7187if eval \${$as_acx_Woption+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 CFLAGS="$option" 7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192/* end confdefs.h. */ 7193 7194int 7195main () 7196{ 7197 7198 ; 7199 return 0; 7200} 7201_ACEOF 7202if ac_fn_c_try_compile "$LINENO"; then : 7203 eval "$as_acx_Woption=yes" 7204else 7205 eval "$as_acx_Woption=no" 7206fi 7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7208 7209fi 7210eval ac_res=\$$as_acx_Woption 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7212$as_echo "$ac_res" >&6; } 7213 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7214 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option" 7215fi 7216 done 7217CFLAGS="$save_CFLAGS" 7218ac_ext=cpp 7219ac_cpp='$CXXCPP $CPPFLAGS' 7220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7223 7224 7225ac_ext=cpp 7226ac_cpp='$CXXCPP $CPPFLAGS' 7227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7230 7231strict_warn= 7232save_CXXFLAGS="$CXXFLAGS" 7233for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do 7234 # Do the check with the no- prefix removed since gcc silently 7235 # accepts any -Wno-* option on purpose 7236 case $real_option in 7237 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7238 *) option=$real_option ;; 7239 esac 7240 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7241 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 7243$as_echo_n "checking whether $CXX supports $option... " >&6; } 7244if eval \${$as_acx_Woption+:} false; then : 7245 $as_echo_n "(cached) " >&6 7246else 7247 CXXFLAGS="$option" 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250 7251int 7252main () 7253{ 7254 7255 ; 7256 return 0; 7257} 7258_ACEOF 7259if ac_fn_cxx_try_compile "$LINENO"; then : 7260 eval "$as_acx_Woption=yes" 7261else 7262 eval "$as_acx_Woption=no" 7263fi 7264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7265 7266fi 7267eval ac_res=\$$as_acx_Woption 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7269$as_echo "$ac_res" >&6; } 7270 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7271 strict_warn="$strict_warn${strict_warn:+ }$real_option" 7272fi 7273 done 7274CXXFLAGS="$save_CXXFLAGS" 7275ac_ext=cpp 7276ac_cpp='$CXXCPP $CPPFLAGS' 7277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7280 7281 7282ac_ext=c 7283ac_cpp='$CPP $CPPFLAGS' 7284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7286ac_compiler_gnu=$ac_cv_c_compiler_gnu 7287 7288c_strict_warn= 7289save_CFLAGS="$CFLAGS" 7290for real_option in -Wold-style-definition -Wc++-compat; do 7291 # Do the check with the no- prefix removed since gcc silently 7292 # accepts any -Wno-* option on purpose 7293 case $real_option in 7294 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7295 *) option=$real_option ;; 7296 esac 7297 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7298 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7300$as_echo_n "checking whether $CC supports $option... " >&6; } 7301if eval \${$as_acx_Woption+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 CFLAGS="$option" 7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307 7308int 7309main () 7310{ 7311 7312 ; 7313 return 0; 7314} 7315_ACEOF 7316if ac_fn_c_try_compile "$LINENO"; then : 7317 eval "$as_acx_Woption=yes" 7318else 7319 eval "$as_acx_Woption=no" 7320fi 7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7322 7323fi 7324eval ac_res=\$$as_acx_Woption 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7326$as_echo "$ac_res" >&6; } 7327 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7328 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option" 7329fi 7330 done 7331CFLAGS="$save_CFLAGS" 7332ac_ext=cpp 7333ac_cpp='$CXXCPP $CPPFLAGS' 7334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7337 7338 7339ac_ext=cpp 7340ac_cpp='$CXXCPP $CPPFLAGS' 7341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7344 7345# Do the check with the no- prefix removed from the warning options 7346# since gcc silently accepts any -Wno-* option on purpose 7347if test "$GXX" = yes; then : 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5 7349$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; } 7350if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 save_CXXFLAGS="$CXXFLAGS" 7354CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" 7355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7356/* end confdefs.h. */ 7357 7358int 7359main () 7360{ 7361 7362 ; 7363 return 0; 7364} 7365_ACEOF 7366if ac_fn_cxx_try_compile "$LINENO"; then : 7367 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes 7368else 7369 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no 7370fi 7371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7372CXXFLAGS="$save_CXXFLAGS" 7373fi 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5 7375$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; } 7376if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then : 7377 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" 7378fi 7379 7380fi 7381ac_ext=cpp 7382ac_cpp='$CXXCPP $CPPFLAGS' 7383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7386 7387 7388ac_ext=cpp 7389ac_cpp='$CXXCPP $CPPFLAGS' 7390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7393 7394# Check whether --enable-werror-always was given. 7395if test "${enable_werror_always+set}" = set; then : 7396 enableval=$enable_werror_always; 7397else 7398 enable_werror_always=no 7399fi 7400 7401if test $enable_werror_always = yes; then : 7402 strict_warn="$strict_warn${strict_warn:+ }-Werror" 7403fi 7404 7405ac_ext=cpp 7406ac_cpp='$CXXCPP $CPPFLAGS' 7407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7410 7411 7412 7413# The above macros do nothing if the compiler is not GCC. However, the 7414# Makefile has more goo to add other flags, so these variables are used 7415# to enable warnings only for GCC. 7416warn_cflags= 7417warn_cxxflags= 7418if test "x$GCC" = "xyes"; then 7419 warn_cflags='$(GCC_WARN_CFLAGS)' 7420 warn_cxxflags='$(GCC_WARN_CXXFLAGS)' 7421fi 7422 7423 7424 7425# Disable exceptions and RTTI if building with g++ 7426ac_ext=c 7427ac_cpp='$CPP $CPPFLAGS' 7428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7430ac_compiler_gnu=$ac_cv_c_compiler_gnu 7431 7432noexception_flags= 7433save_CFLAGS="$CFLAGS" 7434for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do 7435 # Do the check with the no- prefix removed since gcc silently 7436 # accepts any -Wno-* option on purpose 7437 case $real_option in 7438 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7439 *) option=$real_option ;; 7440 esac 7441 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7442 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7444$as_echo_n "checking whether $CC supports $option... " >&6; } 7445if eval \${$as_acx_Woption+:} false; then : 7446 $as_echo_n "(cached) " >&6 7447else 7448 CFLAGS="$option" 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451 7452int 7453main () 7454{ 7455 7456 ; 7457 return 0; 7458} 7459_ACEOF 7460if ac_fn_c_try_compile "$LINENO"; then : 7461 eval "$as_acx_Woption=yes" 7462else 7463 eval "$as_acx_Woption=no" 7464fi 7465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7466 7467fi 7468eval ac_res=\$$as_acx_Woption 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7470$as_echo "$ac_res" >&6; } 7471 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7472 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option" 7473fi 7474 done 7475CFLAGS="$save_CFLAGS" 7476ac_ext=cpp 7477ac_cpp='$CXXCPP $CPPFLAGS' 7478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7481 7482 7483 7484# Enable expensive internal checks 7485is_release= 7486if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then 7487 is_release=yes 7488fi 7489 7490# Check whether --enable-checking was given. 7491if test "${enable_checking+set}" = set; then : 7492 enableval=$enable_checking; ac_checking_flags="${enableval}" 7493else 7494 7495# Determine the default checks. 7496if test x$is_release = x ; then 7497 ac_checking_flags=yes,extra 7498else 7499 ac_checking_flags=release 7500fi 7501fi 7502 7503IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 7504for check in release $ac_checking_flags 7505do 7506 case $check in 7507 # these set all the flags to specific states 7508 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ; 7509 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ; 7510 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ; 7511 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 7512 ac_tree_checking=1 ; ac_valgrind_checking= ; 7513 ac_types_checking=1 ;; 7514 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ; 7515 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ; 7516 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ; 7517 ac_rtlflag_checking= ; ac_runtime_checking= ; 7518 ac_tree_checking= ; ac_valgrind_checking= ; 7519 ac_types_checking= ;; 7520 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ; 7521 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ; 7522 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ; 7523 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 7524 ac_tree_checking=1 ; ac_valgrind_checking= ; 7525 ac_types_checking=1 ;; 7526 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ; 7527 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ; 7528 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ; 7529 ac_rtlflag_checking= ; ac_runtime_checking=1 ; 7530 ac_tree_checking= ; ac_valgrind_checking= ; 7531 ac_types_checking= ;; 7532 # these enable particular checks 7533 assert) ac_assert_checking=1 ;; 7534 df) ac_df_checking=1 ;; 7535 extra) ac_extra_checking=1 ;; 7536 fold) ac_fold_checking=1 ;; 7537 gc) ac_gc_checking=1 ;; 7538 gcac) ac_gc_always_collect=1 ;; 7539 gimple) ac_gimple_checking=1 ;; 7540 misc) ac_checking=1 ;; 7541 rtl) ac_rtl_checking=1 ;; 7542 rtlflag) ac_rtlflag_checking=1 ;; 7543 runtime) ac_runtime_checking=1 ;; 7544 tree) ac_tree_checking=1 ;; 7545 types) ac_types_checking=1 ;; 7546 valgrind) ac_valgrind_checking=1 ;; 7547 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;; 7548 esac 7549done 7550IFS="$ac_save_IFS" 7551 7552nocommon_flag="" 7553if test x$ac_checking != x ; then 7554 7555$as_echo "#define CHECKING_P 1" >>confdefs.h 7556 7557 nocommon_flag=-fno-common 7558else 7559 $as_echo "#define CHECKING_P 0" >>confdefs.h 7560 7561fi 7562 7563if test x$ac_extra_checking != x ; then 7564 7565$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h 7566 7567else 7568 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h 7569 7570fi 7571if test x$ac_df_checking != x ; then 7572 7573$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h 7574 7575fi 7576if test x$ac_assert_checking != x ; then 7577 7578$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h 7579 7580fi 7581if test x$ac_gimple_checking != x ; then 7582 7583$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h 7584 7585fi 7586 7587if test x$ac_runtime_checking != x ; then 7588 7589$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h 7590 7591fi 7592if test x$ac_tree_checking != x ; then 7593 7594$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h 7595 7596 TREECHECKING=yes 7597fi 7598if test x$ac_types_checking != x ; then 7599 7600$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h 7601 7602fi 7603 7604if test x$ac_rtl_checking != x ; then 7605 7606$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h 7607 7608fi 7609if test x$ac_rtlflag_checking != x ; then 7610 7611$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h 7612 7613fi 7614if test x$ac_gc_checking != x ; then 7615 7616$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h 7617 7618fi 7619if test x$ac_gc_always_collect != x ; then 7620 7621$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h 7622 7623fi 7624if test x$ac_fold_checking != x ; then 7625 7626$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h 7627 7628fi 7629valgrind_path_defines= 7630valgrind_command= 7631 7632ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default" 7633if test "x$ac_cv_header_valgrind_h" = xyes; then : 7634 have_valgrind_h=yes 7635else 7636 have_valgrind_h=no 7637fi 7638 7639 7640 7641# It is certainly possible that there's valgrind but no valgrind.h. 7642# GCC relies on making annotations so we must have both. 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5 7644$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; } 7645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7646/* end confdefs.h. */ 7647#include <valgrind/memcheck.h> 7648#ifndef VALGRIND_DISCARD 7649#error VALGRIND_DISCARD not defined 7650#endif 7651_ACEOF 7652if ac_fn_cxx_try_cpp "$LINENO"; then : 7653 gcc_cv_header_valgrind_memcheck_h=yes 7654else 7655 gcc_cv_header_valgrind_memcheck_h=no 7656fi 7657rm -f conftest.err conftest.i conftest.$ac_ext 7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5 7659$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; } 7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5 7661$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; } 7662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664#include <memcheck.h> 7665#ifndef VALGRIND_DISCARD 7666#error VALGRIND_DISCARD not defined 7667#endif 7668_ACEOF 7669if ac_fn_cxx_try_cpp "$LINENO"; then : 7670 gcc_cv_header_memcheck_h=yes 7671else 7672 gcc_cv_header_memcheck_h=no 7673fi 7674rm -f conftest.err conftest.i conftest.$ac_ext 7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5 7676$as_echo "$gcc_cv_header_memcheck_h" >&6; } 7677if test $gcc_cv_header_valgrind_memcheck_h = yes; then 7678 7679$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h 7680 7681fi 7682if test $gcc_cv_header_memcheck_h = yes; then 7683 7684$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h 7685 7686fi 7687 7688if test x$ac_valgrind_checking != x ; then 7689 7690# Prepare PATH_SEPARATOR. 7691# The user is always right. 7692if test "${PATH_SEPARATOR+set}" != set; then 7693 echo "#! /bin/sh" >conf$$.sh 7694 echo "exit 0" >>conf$$.sh 7695 chmod +x conf$$.sh 7696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7697 PATH_SEPARATOR=';' 7698 else 7699 PATH_SEPARATOR=: 7700 fi 7701 rm -f conf$$.sh 7702fi 7703 7704# Find out how to test for executable files. Don't use a zero-byte file, 7705# as systems may use methods other than mode bits to determine executability. 7706cat >conf$$.file <<_ASEOF 7707#! /bin/sh 7708exit 0 7709_ASEOF 7710chmod +x conf$$.file 7711if test -x conf$$.file >/dev/null 2>&1; then 7712 ac_executable_p="test -x" 7713else 7714 ac_executable_p="test -f" 7715fi 7716rm -f conf$$.file 7717 7718# Extract the first word of "valgrind", so it can be a program name with args. 7719set dummy valgrind; ac_word=$2 7720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7721$as_echo_n "checking for $ac_word... " >&6; } 7722if ${ac_cv_path_valgrind_path+:} false; then : 7723 $as_echo_n "(cached) " >&6 7724else 7725 case "$valgrind_path" in 7726 [\\/]* | ?:[\\/]*) 7727 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path. 7728 ;; 7729 *) 7730 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7731 for ac_dir in $PATH; do 7732 IFS="$ac_save_IFS" 7733 test -z "$ac_dir" && ac_dir=. 7734 for ac_exec_ext in '' $ac_executable_extensions; do 7735 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7736 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then 7737 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext" 7738 break 2 7739 fi 7740 fi 7741 done 7742 done 7743 IFS="$ac_save_IFS" 7744 ;; 7745esac 7746fi 7747valgrind_path="$ac_cv_path_valgrind_path" 7748if test -n "$valgrind_path"; then 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5 7750$as_echo "$valgrind_path" >&6; } 7751else 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7753$as_echo "no" >&6; } 7754fi 7755 7756 if test "x$valgrind_path" = "x" \ 7757 || (test $have_valgrind_h = no \ 7758 && test $gcc_cv_header_memcheck_h = no \ 7759 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7760 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7761 fi 7762 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"' 7763 valgrind_command="$valgrind_path -q" 7764 7765$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h 7766 7767fi 7768 7769 7770 7771# Enable code coverage collection 7772# Check whether --enable-coverage was given. 7773if test "${enable_coverage+set}" = set; then : 7774 enableval=$enable_coverage; case "${enableval}" in 7775 yes|noopt) 7776 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions" 7777 ;; 7778 opt) 7779 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions" 7780 ;; 7781 no) 7782 # a.k.a. --disable-coverage 7783 coverage_flags="" 7784 ;; 7785 *) 7786 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5 7787 ;; 7788esac 7789else 7790 coverage_flags="" 7791fi 7792 7793 7794 7795# Check whether --enable-gather-detailed-mem-stats was given. 7796if test "${enable_gather_detailed_mem_stats+set}" = set; then : 7797 enableval=$enable_gather_detailed_mem_stats; 7798else 7799 enable_gather_detailed_mem_stats=no 7800fi 7801 7802gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi` 7803 7804cat >>confdefs.h <<_ACEOF 7805#define GATHER_STATISTICS $gather_stats 7806_ACEOF 7807 7808 7809# Check whether --enable-valgrind-annotations was given. 7810if test "${enable_valgrind_annotations+set}" = set; then : 7811 enableval=$enable_valgrind_annotations; 7812else 7813 enable_valgrind_annotations=no 7814fi 7815 7816if test x$enable_valgrind_annotations != xno \ 7817 || test x$ac_valgrind_checking != x; then 7818 if (test $have_valgrind_h = no \ 7819 && test $gcc_cv_header_memcheck_h = no \ 7820 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7821 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7822 fi 7823 7824$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h 7825 7826fi 7827 7828# ------------------------------- 7829# Miscenalleous configure options 7830# ------------------------------- 7831 7832# Determine whether or not multilibs are enabled. 7833# Check whether --enable-multilib was given. 7834if test "${enable_multilib+set}" = set; then : 7835 enableval=$enable_multilib; 7836else 7837 enable_multilib=yes 7838fi 7839 7840 7841 7842# Determine whether or not multiarch is enabled. 7843# Check whether --enable-multiarch was given. 7844if test "${enable_multiarch+set}" = set; then : 7845 enableval=$enable_multiarch; case "${enableval}" in 7846yes|no|auto) enable_multiarch=$enableval;; 7847*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;; 7848esac 7849else 7850 enable_multiarch=auto 7851fi 7852 7853if test x${enable_multiarch} = xauto; then 7854 if test x${with_native_system_header_dir} != x; then 7855 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)" 7856 enable_multiarch=no 7857 fi 7858 if test x$host != x$target && test "x$with_sysroot" = x; then 7859 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)" 7860 enable_multiarch=no 7861 fi 7862fi 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5 7864$as_echo_n "checking for multiarch configuration... " >&6; } 7865 7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5 7867$as_echo "$enable_multiarch$ma_msg_suffix" >&6; } 7868 7869# needed for setting the multiarch name for soft-float/hard-float ABIs 7870 7871 7872 7873# default stack clash protection guard size as power of twos in bytes. 7874# Please keep these in sync with params.def. 7875stk_clash_min=12 7876stk_clash_max=30 7877 7878# Keep the default value when the option is not used to 0, this allows us to 7879# distinguish between the cases where the user specifially set a value via 7880# configure and when the normal default value is used. 7881 7882# Check whether --with-stack-clash-protection-guard-size was given. 7883if test "${with_stack_clash_protection_guard_size+set}" = set; then : 7884 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size" 7885else 7886 DEFAULT_STK_CLASH_GUARD_SIZE=0 7887fi 7888 7889if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \ 7890 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \ 7891 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then 7892 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 7893fi 7894 7895 7896cat >>confdefs.h <<_ACEOF 7897#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE 7898_ACEOF 7899 7900 7901# Enable __cxa_atexit for C++. 7902# Check whether --enable-__cxa_atexit was given. 7903if test "${enable___cxa_atexit+set}" = set; then : 7904 enableval=$enable___cxa_atexit; 7905fi 7906 7907 7908# Enable C extension for decimal float if target supports it. 7909 7910# Check whether --enable-decimal-float was given. 7911if test "${enable_decimal_float+set}" = set; then : 7912 enableval=$enable_decimal_float; 7913 case $enable_decimal_float in 7914 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;; 7915 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float. 7916Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; 7917 esac 7918 7919else 7920 7921 case $target in 7922 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ 7923 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ 7924 i?86*-*-mingw* | x86_64*-*-mingw* | \ 7925 i?86*-*-cygwin* | x86_64*-*-cygwin*) 7926 enable_decimal_float=yes 7927 ;; 7928 *) 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5 7930$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;} 7931 enable_decimal_float=no 7932 ;; 7933 esac 7934 7935fi 7936 7937 7938# x86's use BID format instead of DPD 7939case x$enable_decimal_float in 7940 xyes) 7941 case $target in 7942 i?86*-*-* | x86_64*-*-*) 7943 enable_decimal_float=bid 7944 ;; 7945 *) 7946 enable_decimal_float=dpd 7947 ;; 7948 esac 7949 default_decimal_float=$enable_decimal_float 7950 ;; 7951 xno) 7952 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper 7953 # dependency on libdecnumber. 7954 default_decimal_float=dpd 7955 ;; 7956esac 7957 7958 7959 7960 7961dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi` 7962 7963cat >>confdefs.h <<_ACEOF 7964#define ENABLE_DECIMAL_FLOAT $dfp 7965_ACEOF 7966 7967 7968# Use default_decimal_float for dependency. 7969enable_decimal_float=$default_decimal_float 7970 7971bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi` 7972 7973cat >>confdefs.h <<_ACEOF 7974#define ENABLE_DECIMAL_BID_FORMAT $bid 7975_ACEOF 7976 7977 7978# Enable C extension for fixed-point arithmetic. 7979# Check whether --enable-fixed-point was given. 7980if test "${enable_fixed_point+set}" = set; then : 7981 enableval=$enable_fixed_point; 7982else 7983 7984 case $target in 7985 arm*) 7986 enable_fixed_point=yes 7987 ;; 7988 7989 mips*-*-*) 7990 enable_fixed_point=yes 7991 ;; 7992 loongarch*-*-*) 7993 enable_fixed_point=yes 7994 ;; 7995 *) 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5 7997$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;} 7998 enable_fixed_point=no 7999 ;; 8000 esac 8001 8002fi 8003 8004 8005 8006fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi` 8007 8008cat >>confdefs.h <<_ACEOF 8009#define ENABLE_FIXED_POINT $fixedpoint 8010_ACEOF 8011 8012 8013# Enable threads 8014# Pass with no value to take the default 8015# Pass with a value to specify a thread package 8016# Check whether --enable-threads was given. 8017if test "${enable_threads+set}" = set; then : 8018 enableval=$enable_threads; 8019else 8020 enable_threads='' 8021fi 8022 8023 8024# Check whether --enable-tls was given. 8025if test "${enable_tls+set}" = set; then : 8026 enableval=$enable_tls; 8027 case $enable_tls in 8028 yes | no) ;; 8029 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls. 8030Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 8031 esac 8032 8033else 8034 enable_tls='' 8035fi 8036 8037 8038# Check whether --enable-vtable-verify was given. 8039if test "${enable_vtable_verify+set}" = set; then : 8040 enableval=$enable_vtable_verify; 8041else 8042 enable_vtable_verify=no 8043fi 8044 8045vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi` 8046 8047cat >>confdefs.h <<_ACEOF 8048#define ENABLE_VTABLE_VERIFY $vtable_verify 8049_ACEOF 8050 8051 8052# Check whether --enable-analyzer was given. 8053if test "${enable_analyzer+set}" = set; then : 8054 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then 8055 analyzer=0 8056else 8057 analyzer=1 8058fi 8059else 8060 analyzer=1 8061fi 8062 8063 8064cat >>confdefs.h <<_ACEOF 8065#define ENABLE_ANALYZER $analyzer 8066_ACEOF 8067 8068 8069# Check whether --enable-objc-gc was given. 8070if test "${enable_objc_gc+set}" = set; then : 8071 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then 8072 objc_boehm_gc='' 8073else 8074 objc_boehm_gc=1 8075fi 8076else 8077 objc_boehm_gc='' 8078fi 8079 8080 8081 8082# Check whether --with-dwarf2 was given. 8083if test "${with_dwarf2+set}" = set; then : 8084 withval=$with_dwarf2; dwarf2="$with_dwarf2" 8085else 8086 dwarf2=no 8087fi 8088 8089 8090# Check whether --enable-shared was given. 8091if test "${enable_shared+set}" = set; then : 8092 enableval=$enable_shared; 8093 case $enable_shared in 8094 yes | no) ;; 8095 *) 8096 enable_shared=no 8097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 8098 for pkg in $enableval; do 8099 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then 8100 enable_shared=yes 8101 fi 8102 done 8103 IFS="$ac_save_ifs" 8104 ;; 8105 esac 8106 8107else 8108 enable_shared=yes 8109fi 8110 8111 8112 8113# Check whether --enable-gcov was given. 8114if test "${enable_gcov+set}" = set; then : 8115 enableval=$enable_gcov; 8116else 8117 case $target in 8118 bpf-*-*) 8119 enable_gcov=no 8120 ;; 8121 *) 8122 enable_gcov=yes 8123 ;; 8124 esac 8125fi 8126 8127 8128 8129 8130 8131# Check whether --with-specs was given. 8132if test "${with_specs+set}" = set; then : 8133 withval=$with_specs; CONFIGURE_SPECS=$withval 8134else 8135 CONFIGURE_SPECS= 8136 8137fi 8138 8139 8140 8141 8142 8143# Check whether --with-pkgversion was given. 8144if test "${with_pkgversion+set}" = set; then : 8145 withval=$with_pkgversion; case "$withval" in 8146 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; 8147 no) PKGVERSION= ;; 8148 *) PKGVERSION="($withval) " ;; 8149 esac 8150else 8151 PKGVERSION="(GCC) " 8152 8153fi 8154 8155 8156 8157 8158 8159# Check whether --with-bugurl was given. 8160if test "${with_bugurl+set}" = set; then : 8161 withval=$with_bugurl; case "$withval" in 8162 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 8163 no) BUGURL= 8164 ;; 8165 *) BUGURL="$withval" 8166 ;; 8167 esac 8168else 8169 BUGURL="https://gcc.gnu.org/bugs/" 8170 8171fi 8172 8173 case ${BUGURL} in 8174 "") 8175 REPORT_BUGS_TO= 8176 REPORT_BUGS_TEXI= 8177 ;; 8178 *) 8179 REPORT_BUGS_TO="<$BUGURL>" 8180 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 8181 ;; 8182 esac; 8183 8184 8185 8186 8187# Allow overriding the default URL for documentation 8188 8189# Check whether --with-documentation-root-url was given. 8190if test "${with_documentation_root_url+set}" = set; then : 8191 withval=$with_documentation_root_url; case "$withval" in 8192 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;; 8193 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;; 8194 */) DOCUMENTATION_ROOT_URL="$withval" ;; 8195 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;; 8196 esac 8197else 8198 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/" 8199 8200fi 8201 8202 8203cat >>confdefs.h <<_ACEOF 8204#define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL" 8205_ACEOF 8206 8207 8208# Allow overriding the default URL for GCC changes 8209 8210# Check whether --with-changes-root-url was given. 8211if test "${with_changes_root_url+set}" = set; then : 8212 withval=$with_changes_root_url; case "$withval" in 8213 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;; 8214 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;; 8215 */) CHANGES_ROOT_URL="$withval" ;; 8216 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;; 8217 esac 8218else 8219 CHANGES_ROOT_URL="https://gcc.gnu.org/" 8220 8221fi 8222 8223 8224cat >>confdefs.h <<_ACEOF 8225#define CHANGES_ROOT_URL "$CHANGES_ROOT_URL" 8226_ACEOF 8227 8228 8229# Sanity check enable_languages in case someone does not run the toplevel 8230# configure # script. 8231# Check whether --enable-languages was given. 8232if test "${enable_languages+set}" = set; then : 8233 enableval=$enable_languages; case ,${enable_languages}, in 8234 ,,|,yes,) 8235 # go safe -- we cannot be much sure without the toplevel 8236 # configure's 8237 # analysis of which target libs are present and usable 8238 enable_languages=c 8239 ;; 8240 *,all,*) 8241 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5 8242 ;; 8243 *,c,*) 8244 ;; 8245 *) 8246 enable_languages=c,${enable_languages} 8247 ;; 8248esac 8249else 8250 enable_languages=c 8251fi 8252 8253 8254# If top-level libada has been disabled, then wire in install-gnatlib 8255# invocation with `make install', so that one can build and install 8256# the library manually with `make -C gcc all gnatlib gnattools install'. 8257if test x"$enable_libada" = xno; then 8258 gnat_install_lib=gnat-install-lib 8259else 8260 gnat_install_lib= 8261fi 8262 8263 8264if test x"$enable_as_accelerator_for" != x; then 8265 8266$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h 8267 8268 enable_as_accelerator=yes 8269 case "${target}" in 8270 *-intelmicemul-*) 8271 # In this case we expect offload compiler to be built as native, so we 8272 # need to rename the driver to avoid clashes with host's drivers. 8273 program_transform_name="s&^&${target}-&" ;; 8274 esac 8275 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#" 8276 program_transform_name=`echo $program_transform_name | sed $sedscript` 8277 accel_dir_suffix=/accel/${target_noncanonical} 8278 real_target_noncanonical=${enable_as_accelerator_for} 8279fi 8280 8281 8282 8283 8284for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do 8285 tgt=`echo $tgt | sed 's/=.*//'` 8286 8287 enable_offloading=1 8288 case "$tgt" in 8289 *-intelmic-* | *-intelmicemul-*) 8290 omp_device_property=omp-device-properties-i386 8291 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device" 8292 ;; 8293 amdgcn*) 8294 omp_device_property=omp-device-properties-gcn 8295 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device" 8296 ;; 8297 nvptx*) 8298 omp_device_property=omp-device-properties-nvptx 8299 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device" 8300 ;; 8301 *) 8302 as_fn_error $? "unknown offload target specified" "$LINENO" 5 8303 ;; 8304 esac 8305 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}" 8306 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}" 8307 8308 if test x"$offload_targets" = x; then 8309 offload_targets=$tgt 8310 else 8311 offload_targets="$offload_targets,$tgt" 8312 fi 8313done 8314 8315 8316 8317 8318cat >>confdefs.h <<_ACEOF 8319#define OFFLOAD_TARGETS "$offload_targets" 8320_ACEOF 8321 8322if test x"$enable_offloading" != x; then 8323 8324$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h 8325 8326else 8327 8328$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h 8329 8330fi 8331 8332if test "x$enable_offload_defaulted" = xyes; then 8333 8334$as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h 8335 8336fi 8337 8338 8339# Check whether --with-multilib-list was given. 8340if test "${with_multilib_list+set}" = set; then : 8341 withval=$with_multilib_list; : 8342else 8343 with_multilib_list=default 8344fi 8345 8346 8347 8348# Check whether --with-multilib-generator was given. 8349if test "${with_multilib_generator+set}" = set; then : 8350 withval=$with_multilib_generator; : 8351else 8352 with_multilib_generator=default 8353fi 8354 8355 8356# ------------------------- 8357# Checks for other programs 8358# ------------------------- 8359 8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8361$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8362set x ${MAKE-make} 8363ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8364if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 cat >conftest.make <<\_ACEOF 8368SHELL = /bin/sh 8369all: 8370 @echo '@@@%%%=$(MAKE)=@@@%%%' 8371_ACEOF 8372# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8373case `${MAKE-make} -f conftest.make 2>/dev/null` in 8374 *@@@%%%=?*=@@@%%%*) 8375 eval ac_cv_prog_make_${ac_make}_set=yes;; 8376 *) 8377 eval ac_cv_prog_make_${ac_make}_set=no;; 8378esac 8379rm -f conftest.make 8380fi 8381if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8383$as_echo "yes" >&6; } 8384 SET_MAKE= 8385else 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8387$as_echo "no" >&6; } 8388 SET_MAKE="MAKE=${MAKE-make}" 8389fi 8390 8391 8392# Find some useful tools 8393for ac_prog in gawk mawk nawk awk 8394do 8395 # Extract the first word of "$ac_prog", so it can be a program name with args. 8396set dummy $ac_prog; ac_word=$2 8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398$as_echo_n "checking for $ac_word... " >&6; } 8399if ${ac_cv_prog_AWK+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401else 8402 if test -n "$AWK"; then 8403 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8404else 8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8406for as_dir in $PATH 8407do 8408 IFS=$as_save_IFS 8409 test -z "$as_dir" && as_dir=. 8410 for ac_exec_ext in '' $ac_executable_extensions; do 8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8412 ac_cv_prog_AWK="$ac_prog" 8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8414 break 2 8415 fi 8416done 8417 done 8418IFS=$as_save_IFS 8419 8420fi 8421fi 8422AWK=$ac_cv_prog_AWK 8423if test -n "$AWK"; then 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8425$as_echo "$AWK" >&6; } 8426else 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8428$as_echo "no" >&6; } 8429fi 8430 8431 8432 test -n "$AWK" && break 8433done 8434 8435# We need awk to create options.cc and options.h. 8436# Bail out if it's missing. 8437case ${AWK} in 8438 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;; 8439esac 8440 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8442$as_echo_n "checking whether ln -s works... " >&6; } 8443if ${gcc_cv_prog_LN_S+:} false; then : 8444 $as_echo_n "(cached) " >&6 8445else 8446 rm -f conftestdata_t 8447echo >conftestdata_f 8448if ln -s conftestdata_f conftestdata_t 2>/dev/null 8449then 8450 gcc_cv_prog_LN_S="ln -s" 8451else 8452 if ln conftestdata_f conftestdata_t 2>/dev/null 8453 then 8454 gcc_cv_prog_LN_S=ln 8455 else 8456 if cp -p conftestdata_f conftestdata_t 2>/dev/null 8457 then 8458 gcc_cv_prog_LN_S="cp -p" 8459 else 8460 gcc_cv_prog_LN_S=cp 8461 fi 8462 fi 8463fi 8464rm -f conftestdata_f conftestdata_t 8465 8466fi 8467LN_S="$gcc_cv_prog_LN_S" 8468if test "$gcc_cv_prog_LN_S" = "ln -s"; then 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8470$as_echo "yes" >&6; } 8471else 8472 if test "$gcc_cv_prog_LN_S" = "ln"; then 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5 8474$as_echo "no, using ln" >&6; } 8475 else 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5 8477$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; } 8478 fi 8479fi 8480 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 8482$as_echo_n "checking whether ln works... " >&6; } 8483if ${acx_cv_prog_LN+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 rm -f conftestdata_t 8487echo >conftestdata_f 8488if ln conftestdata_f conftestdata_t 2>/dev/null 8489then 8490 acx_cv_prog_LN=ln 8491else 8492 acx_cv_prog_LN=no 8493fi 8494rm -f conftestdata_f conftestdata_t 8495 8496fi 8497if test $acx_cv_prog_LN = no; then 8498 LN="$LN_S" 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 8500$as_echo "no, using $LN" >&6; } 8501else 8502 LN="$acx_cv_prog_LN" 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8504$as_echo "yes" >&6; } 8505fi 8506 8507if test -n "$ac_tool_prefix"; then 8508 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8509set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8511$as_echo_n "checking for $ac_word... " >&6; } 8512if ${ac_cv_prog_RANLIB+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 if test -n "$RANLIB"; then 8516 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8517else 8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8519for as_dir in $PATH 8520do 8521 IFS=$as_save_IFS 8522 test -z "$as_dir" && as_dir=. 8523 for ac_exec_ext in '' $ac_executable_extensions; do 8524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8525 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8527 break 2 8528 fi 8529done 8530 done 8531IFS=$as_save_IFS 8532 8533fi 8534fi 8535RANLIB=$ac_cv_prog_RANLIB 8536if test -n "$RANLIB"; then 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8538$as_echo "$RANLIB" >&6; } 8539else 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8541$as_echo "no" >&6; } 8542fi 8543 8544 8545fi 8546if test -z "$ac_cv_prog_RANLIB"; then 8547 ac_ct_RANLIB=$RANLIB 8548 # Extract the first word of "ranlib", so it can be a program name with args. 8549set dummy ranlib; ac_word=$2 8550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8551$as_echo_n "checking for $ac_word... " >&6; } 8552if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 if test -n "$ac_ct_RANLIB"; then 8556 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8557else 8558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8559for as_dir in $PATH 8560do 8561 IFS=$as_save_IFS 8562 test -z "$as_dir" && as_dir=. 8563 for ac_exec_ext in '' $ac_executable_extensions; do 8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8565 ac_cv_prog_ac_ct_RANLIB="ranlib" 8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8567 break 2 8568 fi 8569done 8570 done 8571IFS=$as_save_IFS 8572 8573fi 8574fi 8575ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8576if test -n "$ac_ct_RANLIB"; then 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8578$as_echo "$ac_ct_RANLIB" >&6; } 8579else 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8581$as_echo "no" >&6; } 8582fi 8583 8584 if test "x$ac_ct_RANLIB" = x; then 8585 RANLIB=":" 8586 else 8587 case $cross_compiling:$ac_tool_warned in 8588yes:) 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8591ac_tool_warned=yes ;; 8592esac 8593 RANLIB=$ac_ct_RANLIB 8594 fi 8595else 8596 RANLIB="$ac_cv_prog_RANLIB" 8597fi 8598 8599ranlib_flags="" 8600 8601 8602# Find a good install program. We prefer a C program (faster), 8603# so one script is as good as another. But avoid the broken or 8604# incompatible versions: 8605# SysV /etc/install, /usr/sbin/install 8606# SunOS /usr/etc/install 8607# IRIX /sbin/install 8608# AIX /bin/install 8609# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8610# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8611# ./install, which can be erroneously created by make from ./install.sh. 8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5 8613$as_echo_n "checking for a BSD compatible install... " >&6; } 8614if test -z "$INSTALL"; then 8615if ${ac_cv_path_install+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617else 8618 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 8619 for ac_dir in $PATH; do 8620 # Account for people who put trailing slashes in PATH elements. 8621 case "$ac_dir/" in 8622 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 8623 *) 8624 # OSF1 and SCO ODT 3.0 have their own names for install. 8625 for ac_prog in ginstall scoinst install; do 8626 if test -f $ac_dir/$ac_prog; then 8627 if test $ac_prog = install && 8628 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 8629 # AIX install. It has an incompatible calling convention. 8630 # OSF/1 installbsd also uses dspmsg, but is usable. 8631 : 8632 else 8633 ac_cv_path_install="$ac_dir/$ac_prog -c" 8634 break 2 8635 fi 8636 fi 8637 done 8638 ;; 8639 esac 8640 done 8641 IFS="$ac_save_IFS" 8642 8643fi 8644 if test "${ac_cv_path_install+set}" = set; then 8645 INSTALL="$ac_cv_path_install" 8646 else 8647 # As a last resort, use the slow shell script. We don't cache a 8648 # path for INSTALL within a source directory, because that will 8649 # break other packages using the cache if that directory is 8650 # removed, or if the path is relative. 8651 INSTALL="$ac_install_sh" 8652 fi 8653fi 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8655$as_echo "$INSTALL" >&6; } 8656 8657# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8658# It thinks the first close brace ends the variable substitution. 8659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8660 8661test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8662 8663 8664# See if cmp has --ignore-initial. 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5 8666$as_echo_n "checking for cmp's capabilities... " >&6; } 8667if ${gcc_cv_prog_cmp_skip+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 echo abfoo >t1 8671 echo cdfoo >t2 8672 gcc_cv_prog_cmp_skip=slowcompare 8673 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 8674 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 8675 : 8676 else 8677 gcc_cv_prog_cmp_skip=gnucompare 8678 fi 8679 fi 8680 if test $gcc_cv_prog_cmp_skip = slowcompare ; then 8681 if cmp t1 t2 2 2 > /dev/null 2>&1; then 8682 if cmp t1 t2 1 1 > /dev/null 2>&1; then 8683 : 8684 else 8685 gcc_cv_prog_cmp_skip=fastcompare 8686 fi 8687 fi 8688 fi 8689 rm t1 t2 8690 8691fi 8692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 8693$as_echo "$gcc_cv_prog_cmp_skip" >&6; } 8694make_compare_target=$gcc_cv_prog_cmp_skip 8695 8696 8697 8698# See if we have the mktemp command. 8699# Extract the first word of "mktemp", so it can be a program name with args. 8700set dummy mktemp; ac_word=$2 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8702$as_echo_n "checking for $ac_word... " >&6; } 8703if ${ac_cv_prog_have_mktemp_command+:} false; then : 8704 $as_echo_n "(cached) " >&6 8705else 8706 if test -n "$have_mktemp_command"; then 8707 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test. 8708else 8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8710for as_dir in $PATH 8711do 8712 IFS=$as_save_IFS 8713 test -z "$as_dir" && as_dir=. 8714 for ac_exec_ext in '' $ac_executable_extensions; do 8715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8716 ac_cv_prog_have_mktemp_command="yes" 8717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8718 break 2 8719 fi 8720done 8721 done 8722IFS=$as_save_IFS 8723 8724 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no" 8725fi 8726fi 8727have_mktemp_command=$ac_cv_prog_have_mktemp_command 8728if test -n "$have_mktemp_command"; then 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5 8730$as_echo "$have_mktemp_command" >&6; } 8731else 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8733$as_echo "no" >&6; } 8734fi 8735 8736 8737 8738# See if makeinfo has been installed and is modern enough 8739# that we can use it. 8740 8741 # Extract the first word of "makeinfo", so it can be a program name with args. 8742set dummy makeinfo; ac_word=$2 8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8744$as_echo_n "checking for $ac_word... " >&6; } 8745if ${ac_cv_prog_MAKEINFO+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 if test -n "$MAKEINFO"; then 8749 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 8750else 8751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8752for as_dir in $PATH 8753do 8754 IFS=$as_save_IFS 8755 test -z "$as_dir" && as_dir=. 8756 for ac_exec_ext in '' $ac_executable_extensions; do 8757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8758 ac_cv_prog_MAKEINFO="makeinfo" 8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8760 break 2 8761 fi 8762done 8763 done 8764IFS=$as_save_IFS 8765 8766fi 8767fi 8768MAKEINFO=$ac_cv_prog_MAKEINFO 8769if test -n "$MAKEINFO"; then 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 8771$as_echo "$MAKEINFO" >&6; } 8772else 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8774$as_echo "no" >&6; } 8775fi 8776 8777 8778 if test -n "$MAKEINFO"; then 8779 # Found it, now check the version. 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 8781$as_echo_n "checking for modern makeinfo... " >&6; } 8782if ${gcc_cv_prog_makeinfo_modern+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 8786 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 8787 8788 case $ac_prog_version in 8789 '') gcc_cv_prog_makeinfo_modern=no;; 8790 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 8791 *) gcc_cv_prog_makeinfo_modern=no;; 8792 esac 8793 8794fi 8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 8796$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 8797 else 8798 gcc_cv_prog_makeinfo_modern=no 8799 fi 8800 if test $gcc_cv_prog_makeinfo_modern = no; then 8801 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 8802 fi 8803 8804if test $gcc_cv_prog_makeinfo_modern = no; then 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8806*** Makeinfo is missing or too old. 8807*** Info documentation will not be built." >&5 8808$as_echo "$as_me: WARNING: 8809*** Makeinfo is missing or too old. 8810*** Info documentation will not be built." >&2;} 8811 BUILD_INFO= 8812else 8813 BUILD_INFO=info 8814fi 8815 8816 8817# Is pod2man recent enough to regenerate manpages? 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5 8819$as_echo_n "checking for recent Pod::Man... " >&6; } 8820if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8822$as_echo "yes" >&6; } 8823 GENERATED_MANPAGES=generated-manpages 8824else 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8826$as_echo "no" >&6; } 8827 GENERATED_MANPAGES= 8828fi 8829 8830 8831MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing" 8832 8833# How about lex? 8834for ac_prog in flex 8835do 8836 # Extract the first word of "$ac_prog", so it can be a program name with args. 8837set dummy $ac_prog; ac_word=$2 8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8839$as_echo_n "checking for $ac_word... " >&6; } 8840if ${ac_cv_prog_FLEX+:} false; then : 8841 $as_echo_n "(cached) " >&6 8842else 8843 if test -n "$FLEX"; then 8844 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 8845else 8846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8847for as_dir in $PATH 8848do 8849 IFS=$as_save_IFS 8850 test -z "$as_dir" && as_dir=. 8851 for ac_exec_ext in '' $ac_executable_extensions; do 8852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8853 ac_cv_prog_FLEX="$ac_prog" 8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8855 break 2 8856 fi 8857done 8858 done 8859IFS=$as_save_IFS 8860 8861fi 8862fi 8863FLEX=$ac_cv_prog_FLEX 8864if test -n "$FLEX"; then 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 8866$as_echo "$FLEX" >&6; } 8867else 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8869$as_echo "no" >&6; } 8870fi 8871 8872 8873 test -n "$FLEX" && break 8874done 8875test -n "$FLEX" || FLEX="$MISSING flex" 8876 8877 8878# Bison? 8879for ac_prog in bison 8880do 8881 # Extract the first word of "$ac_prog", so it can be a program name with args. 8882set dummy $ac_prog; ac_word=$2 8883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8884$as_echo_n "checking for $ac_word... " >&6; } 8885if ${ac_cv_prog_BISON+:} false; then : 8886 $as_echo_n "(cached) " >&6 8887else 8888 if test -n "$BISON"; then 8889 ac_cv_prog_BISON="$BISON" # Let the user override the test. 8890else 8891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8892for as_dir in $PATH 8893do 8894 IFS=$as_save_IFS 8895 test -z "$as_dir" && as_dir=. 8896 for ac_exec_ext in '' $ac_executable_extensions; do 8897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8898 ac_cv_prog_BISON="$ac_prog" 8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8900 break 2 8901 fi 8902done 8903 done 8904IFS=$as_save_IFS 8905 8906fi 8907fi 8908BISON=$ac_cv_prog_BISON 8909if test -n "$BISON"; then 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 8911$as_echo "$BISON" >&6; } 8912else 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8914$as_echo "no" >&6; } 8915fi 8916 8917 8918 test -n "$BISON" && break 8919done 8920test -n "$BISON" || BISON="$MISSING bison" 8921 8922 8923# Binutils are not build modules, unlike bison/flex/makeinfo. So we 8924# check for build == host before using them. 8925 8926# NM 8927if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \ 8928 && test -d ../binutils ; then 8929 NM='${objdir}/../binutils/nm-new' 8930else 8931 # Extract the first word of "nm", so it can be a program name with args. 8932set dummy nm; ac_word=$2 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8934$as_echo_n "checking for $ac_word... " >&6; } 8935if ${ac_cv_prog_NM+:} false; then : 8936 $as_echo_n "(cached) " >&6 8937else 8938 if test -n "$NM"; then 8939 ac_cv_prog_NM="$NM" # Let the user override the test. 8940else 8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8942for as_dir in $PATH 8943do 8944 IFS=$as_save_IFS 8945 test -z "$as_dir" && as_dir=. 8946 for ac_exec_ext in '' $ac_executable_extensions; do 8947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8948 ac_cv_prog_NM="nm" 8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8950 break 2 8951 fi 8952done 8953 done 8954IFS=$as_save_IFS 8955 8956 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm" 8957fi 8958fi 8959NM=$ac_cv_prog_NM 8960if test -n "$NM"; then 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8962$as_echo "$NM" >&6; } 8963else 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8965$as_echo "no" >&6; } 8966fi 8967 8968 8969fi 8970 8971# AR 8972if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \ 8973 && test -d ../binutils ; then 8974 AR='${objdir}/../binutils/ar' 8975else 8976 # Extract the first word of "ar", so it can be a program name with args. 8977set dummy ar; ac_word=$2 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8979$as_echo_n "checking for $ac_word... " >&6; } 8980if ${ac_cv_prog_AR+:} false; then : 8981 $as_echo_n "(cached) " >&6 8982else 8983 if test -n "$AR"; then 8984 ac_cv_prog_AR="$AR" # Let the user override the test. 8985else 8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8987for as_dir in $PATH 8988do 8989 IFS=$as_save_IFS 8990 test -z "$as_dir" && as_dir=. 8991 for ac_exec_ext in '' $ac_executable_extensions; do 8992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8993 ac_cv_prog_AR="ar" 8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8995 break 2 8996 fi 8997done 8998 done 8999IFS=$as_save_IFS 9000 9001 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar" 9002fi 9003fi 9004AR=$ac_cv_prog_AR 9005if test -n "$AR"; then 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9007$as_echo "$AR" >&6; } 9008else 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9010$as_echo "no" >&6; } 9011fi 9012 9013 9014fi 9015 9016# The jit documentation looks better if built with sphinx, but can be 9017# built with texinfo if sphinx is not available. 9018# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly. 9019# Extract the first word of "sphinx-build", so it can be a program name with args. 9020set dummy sphinx-build; ac_word=$2 9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9022$as_echo_n "checking for $ac_word... " >&6; } 9023if ${ac_cv_prog_doc_build_sys+:} false; then : 9024 $as_echo_n "(cached) " >&6 9025else 9026 if test -n "$doc_build_sys"; then 9027 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test. 9028else 9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9030for as_dir in $PATH 9031do 9032 IFS=$as_save_IFS 9033 test -z "$as_dir" && as_dir=. 9034 for ac_exec_ext in '' $ac_executable_extensions; do 9035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9036 ac_cv_prog_doc_build_sys="sphinx" 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9038 break 2 9039 fi 9040done 9041 done 9042IFS=$as_save_IFS 9043 9044 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo" 9045fi 9046fi 9047doc_build_sys=$ac_cv_prog_doc_build_sys 9048if test -n "$doc_build_sys"; then 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5 9050$as_echo "$doc_build_sys" >&6; } 9051else 9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9053$as_echo "no" >&6; } 9054fi 9055 9056 9057 9058# -------------------- 9059# Checks for C headers 9060# -------------------- 9061 9062# Need to reject headers which give warnings, so that the -Werror bootstrap 9063# works later. *sigh* This needs to come before all header checks. 9064 9065ac_c_preproc_warn_flag=yes 9066 9067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9068$as_echo_n "checking for ANSI C header files... " >&6; } 9069if ${ac_cv_header_stdc+:} false; then : 9070 $as_echo_n "(cached) " >&6 9071else 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074#include <stdlib.h> 9075#include <stdarg.h> 9076#include <string.h> 9077#include <float.h> 9078 9079int 9080main () 9081{ 9082 9083 ; 9084 return 0; 9085} 9086_ACEOF 9087if ac_fn_cxx_try_compile "$LINENO"; then : 9088 ac_cv_header_stdc=yes 9089else 9090 ac_cv_header_stdc=no 9091fi 9092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9093 9094if test $ac_cv_header_stdc = yes; then 9095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9097/* end confdefs.h. */ 9098#include <string.h> 9099 9100_ACEOF 9101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9102 $EGREP "memchr" >/dev/null 2>&1; then : 9103 9104else 9105 ac_cv_header_stdc=no 9106fi 9107rm -f conftest* 9108 9109fi 9110 9111if test $ac_cv_header_stdc = yes; then 9112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9114/* end confdefs.h. */ 9115#include <stdlib.h> 9116 9117_ACEOF 9118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9119 $EGREP "free" >/dev/null 2>&1; then : 9120 9121else 9122 ac_cv_header_stdc=no 9123fi 9124rm -f conftest* 9125 9126fi 9127 9128if test $ac_cv_header_stdc = yes; then 9129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9130 if test "$cross_compiling" = yes; then : 9131 : 9132else 9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9134/* end confdefs.h. */ 9135#include <ctype.h> 9136#include <stdlib.h> 9137#if ((' ' & 0x0FF) == 0x020) 9138# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9139# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9140#else 9141# define ISLOWER(c) \ 9142 (('a' <= (c) && (c) <= 'i') \ 9143 || ('j' <= (c) && (c) <= 'r') \ 9144 || ('s' <= (c) && (c) <= 'z')) 9145# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9146#endif 9147 9148#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9149int 9150main () 9151{ 9152 int i; 9153 for (i = 0; i < 256; i++) 9154 if (XOR (islower (i), ISLOWER (i)) 9155 || toupper (i) != TOUPPER (i)) 9156 return 2; 9157 return 0; 9158} 9159_ACEOF 9160if ac_fn_cxx_try_run "$LINENO"; then : 9161 9162else 9163 ac_cv_header_stdc=no 9164fi 9165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9166 conftest.$ac_objext conftest.beam conftest.$ac_ext 9167fi 9168 9169fi 9170fi 9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9172$as_echo "$ac_cv_header_stdc" >&6; } 9173if test $ac_cv_header_stdc = yes; then 9174 9175$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9176 9177fi 9178 9179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 9180$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 9181if ${ac_cv_header_time+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183else 9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185/* end confdefs.h. */ 9186#include <sys/types.h> 9187#include <sys/time.h> 9188#include <time.h> 9189 9190int 9191main () 9192{ 9193if ((struct tm *) 0) 9194return 0; 9195 ; 9196 return 0; 9197} 9198_ACEOF 9199if ac_fn_cxx_try_compile "$LINENO"; then : 9200 ac_cv_header_time=yes 9201else 9202 ac_cv_header_time=no 9203fi 9204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9205fi 9206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 9207$as_echo "$ac_cv_header_time" >&6; } 9208if test $ac_cv_header_time = yes; then 9209 9210$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 9211 9212fi 9213 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 9215$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 9216if ${gcc_cv_header_string+:} false; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9220/* end confdefs.h. */ 9221#include <string.h> 9222#include <strings.h> 9223int 9224main () 9225{ 9226 9227 ; 9228 return 0; 9229} 9230_ACEOF 9231if ac_fn_cxx_try_compile "$LINENO"; then : 9232 gcc_cv_header_string=yes 9233else 9234 gcc_cv_header_string=no 9235fi 9236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9237fi 9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 9239$as_echo "$gcc_cv_header_string" >&6; } 9240if test $gcc_cv_header_string = yes; then 9241 9242$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 9243 9244fi 9245 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 9247$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 9248if ${ac_cv_header_sys_wait_h+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250else 9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9252/* end confdefs.h. */ 9253#include <sys/types.h> 9254#include <sys/wait.h> 9255#ifndef WEXITSTATUS 9256# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 9257#endif 9258#ifndef WIFEXITED 9259# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 9260#endif 9261 9262int 9263main () 9264{ 9265 int s; 9266 wait (&s); 9267 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 9268 ; 9269 return 0; 9270} 9271_ACEOF 9272if ac_fn_cxx_try_compile "$LINENO"; then : 9273 ac_cv_header_sys_wait_h=yes 9274else 9275 ac_cv_header_sys_wait_h=no 9276fi 9277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9278fi 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 9280$as_echo "$ac_cv_header_sys_wait_h" >&6; } 9281if test $ac_cv_header_sys_wait_h = yes; then 9282 9283$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 9284 9285fi 9286 9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 9288$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } 9289if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291else 9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9293/* end confdefs.h. */ 9294#include <sys/types.h> 9295#include <termios.h> 9296#ifdef TIOCGWINSZ 9297 yes 9298#endif 9299 9300_ACEOF 9301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9302 $EGREP "yes" >/dev/null 2>&1; then : 9303 ac_cv_sys_tiocgwinsz_in_termios_h=yes 9304else 9305 ac_cv_sys_tiocgwinsz_in_termios_h=no 9306fi 9307rm -f conftest* 9308 9309fi 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 9311$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } 9312 9313if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 9315$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } 9316if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : 9317 $as_echo_n "(cached) " >&6 9318else 9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9320/* end confdefs.h. */ 9321#include <sys/types.h> 9322#include <sys/ioctl.h> 9323#ifdef TIOCGWINSZ 9324 yes 9325#endif 9326 9327_ACEOF 9328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9329 $EGREP "yes" >/dev/null 2>&1; then : 9330 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 9331else 9332 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 9333fi 9334rm -f conftest* 9335 9336fi 9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 9338$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } 9339 9340 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 9341 9342$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h 9343 9344 fi 9345fi 9346 9347for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \ 9348 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \ 9349 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \ 9350 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h 9351do : 9352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9353ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" 9354if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9355 cat >>confdefs.h <<_ACEOF 9356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9357_ACEOF 9358 9359fi 9360done 9361 9362 9363# Check for thread headers. 9364ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h" 9365if test "x$ac_cv_header_thread_h" = xyes; then : 9366 have_thread_h=yes 9367else 9368 have_thread_h= 9369fi 9370 9371ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h" 9372if test "x$ac_cv_header_pthread_h" = xyes; then : 9373 have_pthread_h=yes 9374else 9375 have_pthread_h= 9376fi 9377 9378 9379# These tests can't be done till we know if we have limits.h. 9380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5 9381$as_echo_n "checking for CHAR_BIT... " >&6; } 9382if ${gcc_cv_decl_char_bit+:} false; then : 9383 $as_echo_n "(cached) " >&6 9384else 9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9386/* end confdefs.h. */ 9387#ifdef HAVE_LIMITS_H 9388#include <limits.h> 9389#endif 9390#ifdef CHAR_BIT 9391found 9392#endif 9393_ACEOF 9394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9395 $EGREP "found" >/dev/null 2>&1; then : 9396 gcc_cv_decl_char_bit=yes 9397else 9398 gcc_cv_decl_char_bit=no 9399fi 9400rm -f conftest* 9401 9402 9403fi 9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5 9405$as_echo "$gcc_cv_decl_char_bit" >&6; } 9406if test $gcc_cv_decl_char_bit = no; then 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5 9408$as_echo_n "checking number of bits in a byte... " >&6; } 9409if ${gcc_cv_c_nbby+:} false; then : 9410 $as_echo_n "(cached) " >&6 9411else 9412 i=8 9413 gcc_cv_c_nbby= 9414 while test $i -lt 65; do 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416/* end confdefs.h. */ 9417 9418int 9419main () 9420{ 9421switch(0) { 9422 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i): 9423 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)): 9424 ; } 9425 ; 9426 return 0; 9427} 9428_ACEOF 9429if ac_fn_cxx_try_compile "$LINENO"; then : 9430 gcc_cv_c_nbby=$i; break 9431fi 9432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9433 i=`expr $i + 1` 9434 done 9435 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed 9436 9437fi 9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5 9439$as_echo "$gcc_cv_c_nbby" >&6; } 9440if test $gcc_cv_c_nbby = failed; then 9441 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5 9442else 9443 9444cat >>confdefs.h <<_ACEOF 9445#define CHAR_BIT $gcc_cv_c_nbby 9446_ACEOF 9447 9448fi 9449fi 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9451$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9452if ${ac_cv_c_bigendian+:} false; then : 9453 $as_echo_n "(cached) " >&6 9454else 9455 ac_cv_c_bigendian=unknown 9456 # See if we're dealing with a universal compiler. 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9458/* end confdefs.h. */ 9459#ifndef __APPLE_CC__ 9460 not a universal capable compiler 9461 #endif 9462 typedef int dummy; 9463 9464_ACEOF 9465if ac_fn_cxx_try_compile "$LINENO"; then : 9466 9467 # Check for potential -arch flags. It is not universal unless 9468 # there are at least two -arch flags with different values. 9469 ac_arch= 9470 ac_prev= 9471 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9472 if test -n "$ac_prev"; then 9473 case $ac_word in 9474 i?86 | x86_64 | ppc | ppc64) 9475 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9476 ac_arch=$ac_word 9477 else 9478 ac_cv_c_bigendian=universal 9479 break 9480 fi 9481 ;; 9482 esac 9483 ac_prev= 9484 elif test "x$ac_word" = "x-arch"; then 9485 ac_prev=arch 9486 fi 9487 done 9488fi 9489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9490 if test $ac_cv_c_bigendian = unknown; then 9491 # See if sys/param.h defines the BYTE_ORDER macro. 9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9493/* end confdefs.h. */ 9494#include <sys/types.h> 9495 #include <sys/param.h> 9496 9497int 9498main () 9499{ 9500#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9501 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9502 && LITTLE_ENDIAN) 9503 bogus endian macros 9504 #endif 9505 9506 ; 9507 return 0; 9508} 9509_ACEOF 9510if ac_fn_cxx_try_compile "$LINENO"; then : 9511 # It does; now see whether it defined to BIG_ENDIAN or not. 9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9513/* end confdefs.h. */ 9514#include <sys/types.h> 9515 #include <sys/param.h> 9516 9517int 9518main () 9519{ 9520#if BYTE_ORDER != BIG_ENDIAN 9521 not big endian 9522 #endif 9523 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528if ac_fn_cxx_try_compile "$LINENO"; then : 9529 ac_cv_c_bigendian=yes 9530else 9531 ac_cv_c_bigendian=no 9532fi 9533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9534fi 9535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9536 fi 9537 if test $ac_cv_c_bigendian = unknown; then 9538 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540/* end confdefs.h. */ 9541#include <limits.h> 9542 9543int 9544main () 9545{ 9546#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9547 bogus endian macros 9548 #endif 9549 9550 ; 9551 return 0; 9552} 9553_ACEOF 9554if ac_fn_cxx_try_compile "$LINENO"; then : 9555 # It does; now see whether it defined to _BIG_ENDIAN or not. 9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9557/* end confdefs.h. */ 9558#include <limits.h> 9559 9560int 9561main () 9562{ 9563#ifndef _BIG_ENDIAN 9564 not big endian 9565 #endif 9566 9567 ; 9568 return 0; 9569} 9570_ACEOF 9571if ac_fn_cxx_try_compile "$LINENO"; then : 9572 ac_cv_c_bigendian=yes 9573else 9574 ac_cv_c_bigendian=no 9575fi 9576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9577fi 9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9579 fi 9580 if test $ac_cv_c_bigendian = unknown; then 9581 # Compile a test program. 9582 if test "$cross_compiling" = yes; then : 9583 # Try to guess by grepping values from an object file. 9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9585/* end confdefs.h. */ 9586short int ascii_mm[] = 9587 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9588 short int ascii_ii[] = 9589 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9590 int use_ascii (int i) { 9591 return ascii_mm[i] + ascii_ii[i]; 9592 } 9593 short int ebcdic_ii[] = 9594 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9595 short int ebcdic_mm[] = 9596 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9597 int use_ebcdic (int i) { 9598 return ebcdic_mm[i] + ebcdic_ii[i]; 9599 } 9600 extern int foo; 9601 9602int 9603main () 9604{ 9605return use_ascii (foo) == use_ebcdic (foo); 9606 ; 9607 return 0; 9608} 9609_ACEOF 9610if ac_fn_cxx_try_compile "$LINENO"; then : 9611 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9612 ac_cv_c_bigendian=yes 9613 fi 9614 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9615 if test "$ac_cv_c_bigendian" = unknown; then 9616 ac_cv_c_bigendian=no 9617 else 9618 # finding both strings is unlikely to happen, but who knows? 9619 ac_cv_c_bigendian=unknown 9620 fi 9621 fi 9622fi 9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9624else 9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9626/* end confdefs.h. */ 9627$ac_includes_default 9628int 9629main () 9630{ 9631 9632 /* Are we little or big endian? From Harbison&Steele. */ 9633 union 9634 { 9635 long int l; 9636 char c[sizeof (long int)]; 9637 } u; 9638 u.l = 1; 9639 return u.c[sizeof (long int) - 1] == 1; 9640 9641 ; 9642 return 0; 9643} 9644_ACEOF 9645if ac_fn_cxx_try_run "$LINENO"; then : 9646 ac_cv_c_bigendian=no 9647else 9648 ac_cv_c_bigendian=yes 9649fi 9650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9651 conftest.$ac_objext conftest.beam conftest.$ac_ext 9652fi 9653 9654 fi 9655fi 9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9657$as_echo "$ac_cv_c_bigendian" >&6; } 9658 case $ac_cv_c_bigendian in #( 9659 yes) 9660 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9661;; #( 9662 no) 9663 ;; #( 9664 universal) 9665 9666$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9667 9668 ;; #( 9669 *) 9670 as_fn_error $? "unknown endianness 9671 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9672 esac 9673 9674 9675# ---------------------- 9676# Checks for C++ headers 9677# ---------------------- 9678 9679ac_ext=cpp 9680ac_cpp='$CXXCPP $CPPFLAGS' 9681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 9685$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 9686if test -z "$CXXCPP"; then 9687 if ${ac_cv_prog_CXXCPP+:} false; then : 9688 $as_echo_n "(cached) " >&6 9689else 9690 # Double quotes because CXXCPP needs to be expanded 9691 for CXXCPP in "$CXX -E" "/lib/cpp" 9692 do 9693 ac_preproc_ok=false 9694for ac_cxx_preproc_warn_flag in '' yes 9695do 9696 # Use a header file that comes with gcc, so configuring glibc 9697 # with a fresh cross-compiler works. 9698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9699 # <limits.h> exists even on freestanding compilers. 9700 # On the NeXT, cc -E runs the code through the compiler's parser, 9701 # not just through cpp. "Syntax error" is here to catch this case. 9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703/* end confdefs.h. */ 9704#ifdef __STDC__ 9705# include <limits.h> 9706#else 9707# include <assert.h> 9708#endif 9709 Syntax error 9710_ACEOF 9711if ac_fn_cxx_try_cpp "$LINENO"; then : 9712 9713else 9714 # Broken: fails on valid input. 9715continue 9716fi 9717rm -f conftest.err conftest.i conftest.$ac_ext 9718 9719 # OK, works on sane cases. Now check whether nonexistent headers 9720 # can be detected and how. 9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723#include <ac_nonexistent.h> 9724_ACEOF 9725if ac_fn_cxx_try_cpp "$LINENO"; then : 9726 # Broken: success on invalid input. 9727continue 9728else 9729 # Passes both tests. 9730ac_preproc_ok=: 9731break 9732fi 9733rm -f conftest.err conftest.i conftest.$ac_ext 9734 9735done 9736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9737rm -f conftest.i conftest.err conftest.$ac_ext 9738if $ac_preproc_ok; then : 9739 break 9740fi 9741 9742 done 9743 ac_cv_prog_CXXCPP=$CXXCPP 9744 9745fi 9746 CXXCPP=$ac_cv_prog_CXXCPP 9747else 9748 ac_cv_prog_CXXCPP=$CXXCPP 9749fi 9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 9751$as_echo "$CXXCPP" >&6; } 9752ac_preproc_ok=false 9753for ac_cxx_preproc_warn_flag in '' yes 9754do 9755 # Use a header file that comes with gcc, so configuring glibc 9756 # with a fresh cross-compiler works. 9757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9758 # <limits.h> exists even on freestanding compilers. 9759 # On the NeXT, cc -E runs the code through the compiler's parser, 9760 # not just through cpp. "Syntax error" is here to catch this case. 9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9762/* end confdefs.h. */ 9763#ifdef __STDC__ 9764# include <limits.h> 9765#else 9766# include <assert.h> 9767#endif 9768 Syntax error 9769_ACEOF 9770if ac_fn_cxx_try_cpp "$LINENO"; then : 9771 9772else 9773 # Broken: fails on valid input. 9774continue 9775fi 9776rm -f conftest.err conftest.i conftest.$ac_ext 9777 9778 # OK, works on sane cases. Now check whether nonexistent headers 9779 # can be detected and how. 9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9781/* end confdefs.h. */ 9782#include <ac_nonexistent.h> 9783_ACEOF 9784if ac_fn_cxx_try_cpp "$LINENO"; then : 9785 # Broken: success on invalid input. 9786continue 9787else 9788 # Passes both tests. 9789ac_preproc_ok=: 9790break 9791fi 9792rm -f conftest.err conftest.i conftest.$ac_ext 9793 9794done 9795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9796rm -f conftest.i conftest.err conftest.$ac_ext 9797if $ac_preproc_ok; then : 9798 9799else 9800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check 9803See \`config.log' for more details" >&5 9804$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check 9805See \`config.log' for more details" >&2;}; } 9806fi 9807 9808ac_ext=cpp 9809ac_cpp='$CXXCPP $CPPFLAGS' 9810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9813 9814 9815for ac_header in unordered_map 9816do : 9817 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map" 9818if test "x$ac_cv_header_unordered_map" = xyes; then : 9819 cat >>confdefs.h <<_ACEOF 9820#define HAVE_UNORDERED_MAP 1 9821_ACEOF 9822 9823fi 9824done 9825 9826for ac_header in tr1/unordered_map 9827do : 9828 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" 9829if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : 9830 cat >>confdefs.h <<_ACEOF 9831#define HAVE_TR1_UNORDERED_MAP 1 9832_ACEOF 9833 9834fi 9835done 9836 9837for ac_header in ext/hash_map 9838do : 9839 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" 9840if test "x$ac_cv_header_ext_hash_map" = xyes; then : 9841 cat >>confdefs.h <<_ACEOF 9842#define HAVE_EXT_HASH_MAP 1 9843_ACEOF 9844 9845fi 9846done 9847 9848 9849# -------- 9850# Dependency checking. 9851# -------- 9852 9853rm -rf .tst 2>/dev/null 9854mkdir .tst 2>/dev/null 9855if test -d .tst; then 9856 am__leading_dot=. 9857else 9858 am__leading_dot=_ 9859fi 9860rmdir .tst 2>/dev/null 9861 9862DEPDIR="${am__leading_dot}deps" 9863 9864ac_config_commands="$ac_config_commands depdir" 9865 9866 9867ac_config_commands="$ac_config_commands gccdepdir" 9868 9869 9870depcc="$CXX" am_compiler_list= 9871 9872am_depcomp=$ac_aux_dir/depcomp 9873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 9874$as_echo_n "checking dependency style of $depcc... " >&6; } 9875if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 if test -f "$am_depcomp"; then 9879 # We make a subdir and do the tests there. Otherwise we can end up 9880 # making bogus files that we don't know about and never remove. For 9881 # instance it was reported that on HP-UX the gcc test will end up 9882 # making a dummy file named `D' -- because `-MD' means `put the output 9883 # in D'. 9884 mkdir conftest.dir 9885 # Copy depcomp to subdir because otherwise we won't find it if we're 9886 # using a relative directory. 9887 cp "$am_depcomp" conftest.dir 9888 cd conftest.dir 9889 # We will build objects and dependencies in a subdirectory because 9890 # it helps to detect inapplicable dependency modes. For instance 9891 # both Tru64's cc and ICC support -MD to output dependencies as a 9892 # side effect of compilation, but ICC will put the dependencies in 9893 # the current directory while Tru64 will put them in the object 9894 # directory. 9895 mkdir sub 9896 9897 am_cv_CXX_dependencies_compiler_type=none 9898 if test "$am_compiler_list" = ""; then 9899 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 9900 fi 9901 for depmode in $am_compiler_list; do 9902 if test $depmode = none; then break; fi 9903 9904 $as_echo "$as_me:$LINENO: trying $depmode" >&5 9905 # Setup a source with many dependencies, because some compilers 9906 # like to wrap large dependency lists on column 80 (with \), and 9907 # we should not choose a depcomp mode which is confused by this. 9908 # 9909 # We need to recreate these files for each test, as the compiler may 9910 # overwrite some of them when testing with obscure command lines. 9911 # This happens at least with the AIX C compiler. 9912 : > sub/conftest.c 9913 for i in 1 2 3 4 5 6; do 9914 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9915 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 9916 # Solaris 8's {/usr,}/bin/sh. 9917 touch sub/conftst$i.h 9918 done 9919 echo "include sub/conftest.Po" > confmf 9920 9921 # We check with `-c' and `-o' for the sake of the "dashmstdout" 9922 # mode. It turns out that the SunPro C++ compiler does not properly 9923 # handle `-M -o', and we need to detect this. 9924 depcmd="depmode=$depmode \ 9925 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 9926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9927 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" 9928 echo "| $depcmd" | sed -e 's/ */ /g' >&5 9929 if env $depcmd > conftest.err 2>&1 && 9930 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && 9931 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && 9932 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then 9933 # icc doesn't choke on unknown options, it will just issue warnings 9934 # or remarks (even with -Werror). So we grep stderr for any message 9935 # that says an option was ignored or not supported. 9936 # When given -MP, icc 7.0 and 7.1 complain thusly: 9937 # icc: Command line warning: ignoring option '-M'; no argument required 9938 # The diagnosis changed in icc 8.0: 9939 # icc: Command line remark: option '-MP' not supported 9940 if (grep 'ignoring option' conftest.err || 9941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9942 am_cv_CXX_dependencies_compiler_type=$depmode 9943 $as_echo "$as_me:$LINENO: success" >&5 9944 break 9945 fi 9946 fi 9947 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 9948 sed -e 's/^/| /' < conftest.err >&5 9949 done 9950 9951 cd .. 9952 rm -rf conftest.dir 9953else 9954 am_cv_CXX_dependencies_compiler_type=none 9955fi 9956 9957fi 9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 9959$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 9960if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone 9961then as_fn_error $? "no usable dependency style found" "$LINENO" 5 9962else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 9963 9964fi 9965 9966 9967# -------- 9968# UNSORTED 9969# -------- 9970 9971 9972# These libraries may be used by collect2. 9973# We may need a special search path to get them linked. 9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5 9975$as_echo_n "checking for collect2 libraries... " >&6; } 9976if ${gcc_cv_collect2_libs+:} false; then : 9977 $as_echo_n "(cached) " >&6 9978else 9979 save_LIBS="$LIBS" 9980for libs in '' -lld -lmld \ 9981 '-L/usr/lib/cmplrs/cc2.11 -lmld' \ 9982 '-L/usr/lib/cmplrs/cc3.11 -lmld' 9983do 9984 LIBS="$libs" 9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9986/* end confdefs.h. */ 9987 9988/* Override any GCC internal prototype to avoid an error. 9989 Use char because int might match the return type of a GCC 9990 builtin and then its argument prototype would still apply. */ 9991#ifdef __cplusplus 9992extern "C" 9993#endif 9994char ldopen (); 9995int 9996main () 9997{ 9998return ldopen (); 9999 ; 10000 return 0; 10001} 10002_ACEOF 10003if ac_fn_cxx_try_link "$LINENO"; then : 10004 gcc_cv_collect2_libs="$libs"; break 10005fi 10006rm -f core conftest.err conftest.$ac_objext \ 10007 conftest$ac_exeext conftest.$ac_ext 10008done 10009LIBS="$save_LIBS" 10010test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required' 10011fi 10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5 10013$as_echo "$gcc_cv_collect2_libs" >&6; } 10014case $gcc_cv_collect2_libs in 10015 "none required") ;; 10016 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;; 10017esac 10018 10019 10020# When building Ada code on Alpha, we need exc_resume which is usually in 10021# -lexc. So test for it. 10022save_LIBS="$LIBS" 10023LIBS= 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5 10025$as_echo_n "checking for library containing exc_resume... " >&6; } 10026if ${ac_cv_search_exc_resume+:} false; then : 10027 $as_echo_n "(cached) " >&6 10028else 10029 ac_func_search_save_LIBS=$LIBS 10030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10031/* end confdefs.h. */ 10032 10033/* Override any GCC internal prototype to avoid an error. 10034 Use char because int might match the return type of a GCC 10035 builtin and then its argument prototype would still apply. */ 10036#ifdef __cplusplus 10037extern "C" 10038#endif 10039char exc_resume (); 10040int 10041main () 10042{ 10043return exc_resume (); 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048for ac_lib in '' exc; do 10049 if test -z "$ac_lib"; then 10050 ac_res="none required" 10051 else 10052 ac_res=-l$ac_lib 10053 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10054 fi 10055 if ac_fn_cxx_try_link "$LINENO"; then : 10056 ac_cv_search_exc_resume=$ac_res 10057fi 10058rm -f core conftest.err conftest.$ac_objext \ 10059 conftest$ac_exeext 10060 if ${ac_cv_search_exc_resume+:} false; then : 10061 break 10062fi 10063done 10064if ${ac_cv_search_exc_resume+:} false; then : 10065 10066else 10067 ac_cv_search_exc_resume=no 10068fi 10069rm conftest.$ac_ext 10070LIBS=$ac_func_search_save_LIBS 10071fi 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5 10073$as_echo "$ac_cv_search_exc_resume" >&6; } 10074ac_res=$ac_cv_search_exc_resume 10075if test "$ac_res" != no; then : 10076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10077 10078fi 10079 10080GNAT_LIBEXC="$LIBS" 10081LIBS="$save_LIBS" 10082 10083 10084# To support -mcpu=native on Solaris/SPARC, we need libkstat. 10085save_LIBS="$LIBS" 10086LIBS= 10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5 10088$as_echo_n "checking for library containing kstat_open... " >&6; } 10089if ${ac_cv_search_kstat_open+:} false; then : 10090 $as_echo_n "(cached) " >&6 10091else 10092 ac_func_search_save_LIBS=$LIBS 10093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094/* end confdefs.h. */ 10095 10096/* Override any GCC internal prototype to avoid an error. 10097 Use char because int might match the return type of a GCC 10098 builtin and then its argument prototype would still apply. */ 10099#ifdef __cplusplus 10100extern "C" 10101#endif 10102char kstat_open (); 10103int 10104main () 10105{ 10106return kstat_open (); 10107 ; 10108 return 0; 10109} 10110_ACEOF 10111for ac_lib in '' kstat; do 10112 if test -z "$ac_lib"; then 10113 ac_res="none required" 10114 else 10115 ac_res=-l$ac_lib 10116 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10117 fi 10118 if ac_fn_cxx_try_link "$LINENO"; then : 10119 ac_cv_search_kstat_open=$ac_res 10120fi 10121rm -f core conftest.err conftest.$ac_objext \ 10122 conftest$ac_exeext 10123 if ${ac_cv_search_kstat_open+:} false; then : 10124 break 10125fi 10126done 10127if ${ac_cv_search_kstat_open+:} false; then : 10128 10129else 10130 ac_cv_search_kstat_open=no 10131fi 10132rm conftest.$ac_ext 10133LIBS=$ac_func_search_save_LIBS 10134fi 10135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5 10136$as_echo "$ac_cv_search_kstat_open" >&6; } 10137ac_res=$ac_cv_search_kstat_open 10138if test "$ac_res" != no; then : 10139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10140 10141fi 10142 10143EXTRA_GCC_LIBS="$LIBS" 10144LIBS="$save_LIBS" 10145 10146 10147# Solaris needs libsocket and libnsl for socket functions before 11.4. 10148# C++ needs those for libcody. 10149save_LIBS="$LIBS" 10150LIBS= 10151 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 10153$as_echo_n "checking for library containing gethostbyname... " >&6; } 10154if ${ac_cv_search_gethostbyname+:} false; then : 10155 $as_echo_n "(cached) " >&6 10156else 10157 ac_func_search_save_LIBS=$LIBS 10158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159/* end confdefs.h. */ 10160 10161/* Override any GCC internal prototype to avoid an error. 10162 Use char because int might match the return type of a GCC 10163 builtin and then its argument prototype would still apply. */ 10164#ifdef __cplusplus 10165extern "C" 10166#endif 10167char gethostbyname (); 10168int 10169main () 10170{ 10171return gethostbyname (); 10172 ; 10173 return 0; 10174} 10175_ACEOF 10176for ac_lib in '' nsl; do 10177 if test -z "$ac_lib"; then 10178 ac_res="none required" 10179 else 10180 ac_res=-l$ac_lib 10181 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10182 fi 10183 if ac_fn_cxx_try_link "$LINENO"; then : 10184 ac_cv_search_gethostbyname=$ac_res 10185fi 10186rm -f core conftest.err conftest.$ac_objext \ 10187 conftest$ac_exeext 10188 if ${ac_cv_search_gethostbyname+:} false; then : 10189 break 10190fi 10191done 10192if ${ac_cv_search_gethostbyname+:} false; then : 10193 10194else 10195 ac_cv_search_gethostbyname=no 10196fi 10197rm conftest.$ac_ext 10198LIBS=$ac_func_search_save_LIBS 10199fi 10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 10201$as_echo "$ac_cv_search_gethostbyname" >&6; } 10202ac_res=$ac_cv_search_gethostbyname 10203if test "$ac_res" != no; then : 10204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10205 10206fi 10207 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 10209$as_echo_n "checking for library containing socket... " >&6; } 10210if ${ac_cv_search_socket+:} false; then : 10211 $as_echo_n "(cached) " >&6 10212else 10213 ac_func_search_save_LIBS=$LIBS 10214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10215/* end confdefs.h. */ 10216 10217/* Override any GCC internal prototype to avoid an error. 10218 Use char because int might match the return type of a GCC 10219 builtin and then its argument prototype would still apply. */ 10220#ifdef __cplusplus 10221extern "C" 10222#endif 10223char socket (); 10224int 10225main () 10226{ 10227return socket (); 10228 ; 10229 return 0; 10230} 10231_ACEOF 10232for ac_lib in '' socket; do 10233 if test -z "$ac_lib"; then 10234 ac_res="none required" 10235 else 10236 ac_res=-l$ac_lib 10237 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10238 fi 10239 if ac_fn_cxx_try_link "$LINENO"; then : 10240 ac_cv_search_socket=$ac_res 10241fi 10242rm -f core conftest.err conftest.$ac_objext \ 10243 conftest$ac_exeext 10244 if ${ac_cv_search_socket+:} false; then : 10245 break 10246fi 10247done 10248if ${ac_cv_search_socket+:} false; then : 10249 10250else 10251 ac_cv_search_socket=no 10252fi 10253rm conftest.$ac_ext 10254LIBS=$ac_func_search_save_LIBS 10255fi 10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 10257$as_echo "$ac_cv_search_socket" >&6; } 10258ac_res=$ac_cv_search_socket 10259if test "$ac_res" != no; then : 10260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10261 10262else 10263 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10265$as_echo_n "checking for socket in -lsocket... " >&6; } 10266if ${ac_cv_lib_socket_socket+:} false; then : 10267 $as_echo_n "(cached) " >&6 10268else 10269 ac_check_lib_save_LIBS=$LIBS 10270LIBS="-lsocket -lnsl $LIBS" 10271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273 10274/* Override any GCC internal prototype to avoid an error. 10275 Use char because int might match the return type of a GCC 10276 builtin and then its argument prototype would still apply. */ 10277#ifdef __cplusplus 10278extern "C" 10279#endif 10280char socket (); 10281int 10282main () 10283{ 10284return socket (); 10285 ; 10286 return 0; 10287} 10288_ACEOF 10289if ac_fn_cxx_try_link "$LINENO"; then : 10290 ac_cv_lib_socket_socket=yes 10291else 10292 ac_cv_lib_socket_socket=no 10293fi 10294rm -f core conftest.err conftest.$ac_objext \ 10295 conftest$ac_exeext conftest.$ac_ext 10296LIBS=$ac_check_lib_save_LIBS 10297fi 10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10299$as_echo "$ac_cv_lib_socket_socket" >&6; } 10300if test "x$ac_cv_lib_socket_socket" = xyes; then : 10301 LIBS="-lsocket -lnsl $LIBS" 10302fi 10303 10304fi 10305 10306 10307NETLIBS="$LIBS" 10308LIBS="$save_LIBS" 10309 10310 10311# Some systems put ldexp and frexp in libm instead of libc; assume 10312# they're both in the same place. jcf-dump needs them. 10313save_LIBS="$LIBS" 10314LIBS= 10315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5 10316$as_echo_n "checking for library containing ldexp... " >&6; } 10317if ${ac_cv_search_ldexp+:} false; then : 10318 $as_echo_n "(cached) " >&6 10319else 10320 ac_func_search_save_LIBS=$LIBS 10321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10322/* end confdefs.h. */ 10323 10324/* Override any GCC internal prototype to avoid an error. 10325 Use char because int might match the return type of a GCC 10326 builtin and then its argument prototype would still apply. */ 10327#ifdef __cplusplus 10328extern "C" 10329#endif 10330char ldexp (); 10331int 10332main () 10333{ 10334return ldexp (); 10335 ; 10336 return 0; 10337} 10338_ACEOF 10339for ac_lib in '' m; do 10340 if test -z "$ac_lib"; then 10341 ac_res="none required" 10342 else 10343 ac_res=-l$ac_lib 10344 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10345 fi 10346 if ac_fn_cxx_try_link "$LINENO"; then : 10347 ac_cv_search_ldexp=$ac_res 10348fi 10349rm -f core conftest.err conftest.$ac_objext \ 10350 conftest$ac_exeext 10351 if ${ac_cv_search_ldexp+:} false; then : 10352 break 10353fi 10354done 10355if ${ac_cv_search_ldexp+:} false; then : 10356 10357else 10358 ac_cv_search_ldexp=no 10359fi 10360rm conftest.$ac_ext 10361LIBS=$ac_func_search_save_LIBS 10362fi 10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5 10364$as_echo "$ac_cv_search_ldexp" >&6; } 10365ac_res=$ac_cv_search_ldexp 10366if test "$ac_res" != no; then : 10367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10368 10369fi 10370 10371LDEXP_LIB="$LIBS" 10372LIBS="$save_LIBS" 10373 10374 10375# Some systems need dlopen 10376save_LIBS="$LIBS" 10377LIBS= 10378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 10379$as_echo_n "checking for library containing dlopen... " >&6; } 10380if ${ac_cv_search_dlopen+:} false; then : 10381 $as_echo_n "(cached) " >&6 10382else 10383 ac_func_search_save_LIBS=$LIBS 10384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10385/* end confdefs.h. */ 10386 10387/* Override any GCC internal prototype to avoid an error. 10388 Use char because int might match the return type of a GCC 10389 builtin and then its argument prototype would still apply. */ 10390#ifdef __cplusplus 10391extern "C" 10392#endif 10393char dlopen (); 10394int 10395main () 10396{ 10397return dlopen (); 10398 ; 10399 return 0; 10400} 10401_ACEOF 10402for ac_lib in '' dl; do 10403 if test -z "$ac_lib"; then 10404 ac_res="none required" 10405 else 10406 ac_res=-l$ac_lib 10407 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10408 fi 10409 if ac_fn_cxx_try_link "$LINENO"; then : 10410 ac_cv_search_dlopen=$ac_res 10411fi 10412rm -f core conftest.err conftest.$ac_objext \ 10413 conftest$ac_exeext 10414 if ${ac_cv_search_dlopen+:} false; then : 10415 break 10416fi 10417done 10418if ${ac_cv_search_dlopen+:} false; then : 10419 10420else 10421 ac_cv_search_dlopen=no 10422fi 10423rm conftest.$ac_ext 10424LIBS=$ac_func_search_save_LIBS 10425fi 10426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 10427$as_echo "$ac_cv_search_dlopen" >&6; } 10428ac_res=$ac_cv_search_dlopen 10429if test "$ac_res" != no; then : 10430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10431 10432fi 10433 10434DL_LIB="$LIBS" 10435LIBS="$save_LIBS" 10436 10437 10438# Use <inttypes.h> only if it exists, 10439# doesn't clash with <sys/types.h>, declares intmax_t and defines 10440# PRId64 10441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 10442$as_echo_n "checking for inttypes.h... " >&6; } 10443if ${gcc_cv_header_inttypes_h+:} false; then : 10444 $as_echo_n "(cached) " >&6 10445else 10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447/* end confdefs.h. */ 10448#define __STDC_FORMAT_MACROS 10449#include <sys/types.h> 10450#include <inttypes.h> 10451int 10452main () 10453{ 10454intmax_t i = -1; 10455#ifndef PRId64 10456choke me 10457#endif 10458 ; 10459 return 0; 10460} 10461_ACEOF 10462if ac_fn_cxx_try_compile "$LINENO"; then : 10463 gcc_cv_header_inttypes_h=yes 10464else 10465 gcc_cv_header_inttypes_h=no 10466fi 10467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10468fi 10469 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5 10471$as_echo "$gcc_cv_header_inttypes_h" >&6; } 10472if test $gcc_cv_header_inttypes_h = yes; then 10473 10474$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h 10475 10476fi 10477 10478# Look for the ZSTD package. 10479ZSTD_INCLUDE= 10480ZSTD_LIB= 10481 10482 10483ZSTD_CPPFLAGS= 10484ZSTD_LDFLAGS= 10485 10486 10487 10488# Check whether --with-zstd was given. 10489if test "${with_zstd+set}" = set; then : 10490 withval=$with_zstd; 10491fi 10492 10493 10494# Check whether --with-zstd-include was given. 10495if test "${with_zstd_include+set}" = set; then : 10496 withval=$with_zstd_include; 10497fi 10498 10499 10500# Check whether --with-zstd-lib was given. 10501if test "${with_zstd_lib+set}" = set; then : 10502 withval=$with_zstd_lib; 10503fi 10504 10505case "x$with_zstd" in 10506 x) ;; 10507 xno) 10508 ZSTD_INCLUDE= 10509 ZSTD_LIB= 10510 ;; 10511 *) ZSTD_INCLUDE=$with_zstd/include 10512 ZSTD_LIB=$with_zstd/lib 10513 ;; 10514esac 10515 10516if test "x$with_zstd" != xno; then 10517if test "x$with_zstd_include" != x; then 10518 ZSTD_INCLUDE=$with_zstd_include 10519fi 10520if test "x$with_zstd_lib" != x; then 10521 ZSTD_LIB=$with_zstd_lib 10522fi 10523if test "x$ZSTD_INCLUDE" != x \ 10524 && test "x$ZSTD_INCLUDE" != xno; then 10525 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE 10526fi 10527if test "x$ZSTD_LIB" != x \ 10528 && test "x$ZSTD_LIB" != xno; then 10529 ZSTD_LDFLAGS=-L$ZSTD_LIB 10530fi 10531 10532CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS" 10533LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS" 10534 10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5 10536$as_echo_n "checking for zstd.h... " >&6; } 10537if ${gcc_cv_header_zstd_h+:} false; then : 10538 $as_echo_n "(cached) " >&6 10539else 10540 # We require version 1.3.0 or later. This is the first version that has 10541# ZSTD_getFrameContentSize. 10542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10543/* end confdefs.h. */ 10544#include <zstd.h> 10545#if ZSTD_VERSION_NUMBER < 10300 10546#error "need zstd 1.3.0 or better" 10547#endif 10548int 10549main () 10550{ 10551 10552 ; 10553 return 0; 10554} 10555_ACEOF 10556if ac_fn_cxx_try_compile "$LINENO"; then : 10557 gcc_cv_header_zstd_h=yes 10558else 10559 gcc_cv_header_zstd_h=no 10560fi 10561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10562fi 10563 10564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5 10565$as_echo "$gcc_cv_header_zstd_h" >&6; } 10566if test $gcc_cv_header_zstd_h = yes; then 10567 10568$as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h 10569 10570elif test "x$with_zstd" != x; then 10571 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5 10572fi 10573 10574# LTO can use zstd compression algorithm 10575save_LIBS="$LIBS" 10576LIBS= 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5 10578$as_echo_n "checking for library containing ZSTD_compress... " >&6; } 10579if ${ac_cv_search_ZSTD_compress+:} false; then : 10580 $as_echo_n "(cached) " >&6 10581else 10582 ac_func_search_save_LIBS=$LIBS 10583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10584/* end confdefs.h. */ 10585 10586/* Override any GCC internal prototype to avoid an error. 10587 Use char because int might match the return type of a GCC 10588 builtin and then its argument prototype would still apply. */ 10589#ifdef __cplusplus 10590extern "C" 10591#endif 10592char ZSTD_compress (); 10593int 10594main () 10595{ 10596return ZSTD_compress (); 10597 ; 10598 return 0; 10599} 10600_ACEOF 10601for ac_lib in '' zstd; do 10602 if test -z "$ac_lib"; then 10603 ac_res="none required" 10604 else 10605 ac_res=-l$ac_lib 10606 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10607 fi 10608 if ac_fn_cxx_try_link "$LINENO"; then : 10609 ac_cv_search_ZSTD_compress=$ac_res 10610fi 10611rm -f core conftest.err conftest.$ac_objext \ 10612 conftest$ac_exeext 10613 if ${ac_cv_search_ZSTD_compress+:} false; then : 10614 break 10615fi 10616done 10617if ${ac_cv_search_ZSTD_compress+:} false; then : 10618 10619else 10620 ac_cv_search_ZSTD_compress=no 10621fi 10622rm conftest.$ac_ext 10623LIBS=$ac_func_search_save_LIBS 10624fi 10625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5 10626$as_echo "$ac_cv_search_ZSTD_compress" >&6; } 10627ac_res=$ac_cv_search_ZSTD_compress 10628if test "$ac_res" != no; then : 10629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10630 10631fi 10632 10633ZSTD_LIB="$LIBS" 10634LIBS="$save_LIBS" 10635 10636fi 10637 10638 10639 10640for ac_func in times clock kill getrlimit setrlimit atoq \ 10641 popen sysconf strsignal getrusage nl_langinfo \ 10642 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \ 10643 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 10644do : 10645 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10646ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10647if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10648 cat >>confdefs.h <<_ACEOF 10649#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10650_ACEOF 10651 10652fi 10653done 10654 10655 10656if test x$ac_cv_func_mbstowcs = xyes; then 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5 10658$as_echo_n "checking whether mbstowcs works... " >&6; } 10659if ${gcc_cv_func_mbstowcs_works+:} false; then : 10660 $as_echo_n "(cached) " >&6 10661else 10662 if test "$cross_compiling" = yes; then : 10663 gcc_cv_func_mbstowcs_works=yes 10664else 10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10666/* end confdefs.h. */ 10667#include <stdlib.h> 10668int main() 10669{ 10670 mbstowcs(0, "", 0); 10671 return 0; 10672} 10673_ACEOF 10674if ac_fn_cxx_try_run "$LINENO"; then : 10675 gcc_cv_func_mbstowcs_works=yes 10676else 10677 gcc_cv_func_mbstowcs_works=no 10678fi 10679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10680 conftest.$ac_objext conftest.beam conftest.$ac_ext 10681fi 10682 10683fi 10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5 10685$as_echo "$gcc_cv_func_mbstowcs_works" >&6; } 10686 if test x$gcc_cv_func_mbstowcs_works = xyes; then 10687 10688$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h 10689 10690 fi 10691fi 10692 10693ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 10694if test "x$ac_cv_type_ssize_t" = xyes; then : 10695 10696else 10697 10698cat >>confdefs.h <<_ACEOF 10699#define ssize_t int 10700_ACEOF 10701 10702fi 10703 10704ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default" 10705if test "x$ac_cv_type_caddr_t" = xyes; then : 10706 10707else 10708 10709cat >>confdefs.h <<_ACEOF 10710#define caddr_t char * 10711_ACEOF 10712 10713fi 10714 10715ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h 10716" 10717if test "x$ac_cv_type_sighander_t" = xyes; then : 10718 10719$as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h 10720 10721fi 10722 10723 10724 10725ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" 10726if test "x$ac_cv_header_sys_mman_h" = xyes; then : 10727 gcc_header_sys_mman_h=yes 10728else 10729 gcc_header_sys_mman_h=no 10730fi 10731 10732ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 10733if test "x$ac_cv_func_mmap" = xyes; then : 10734 gcc_func_mmap=yes 10735else 10736 gcc_func_mmap=no 10737fi 10738 10739if test "$gcc_header_sys_mman_h" != yes \ 10740 || test "$gcc_func_mmap" != yes; then 10741 gcc_cv_func_mmap_file=no 10742 gcc_cv_func_mmap_dev_zero=no 10743 gcc_cv_func_mmap_anon=no 10744else 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5 10746$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; } 10747if ${gcc_cv_func_mmap_file+:} false; then : 10748 $as_echo_n "(cached) " >&6 10749else 10750 # Add a system to this blacklist if 10751 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 10752 # memory area containing the same data that you'd get if you applied 10753 # read() to the same fd. The only system known to have a problem here 10754 # is VMS, where text files have record structure. 10755 case "$host_os" in 10756 *vms* | ultrix*) 10757 gcc_cv_func_mmap_file=no ;; 10758 *) 10759 gcc_cv_func_mmap_file=yes;; 10760 esac 10761fi 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5 10763$as_echo "$gcc_cv_func_mmap_file" >&6; } 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5 10765$as_echo_n "checking whether mmap from /dev/zero works... " >&6; } 10766if ${gcc_cv_func_mmap_dev_zero+:} false; then : 10767 $as_echo_n "(cached) " >&6 10768else 10769 # Add a system to this blacklist if it has mmap() but /dev/zero 10770 # does not exist, or if mmapping /dev/zero does not give anonymous 10771 # zeroed pages with both the following properties: 10772 # 1. If you map N consecutive pages in with one call, and then 10773 # unmap any subset of those pages, the pages that were not 10774 # explicitly unmapped remain accessible. 10775 # 2. If you map two adjacent blocks of memory and then unmap them 10776 # both at once, they must both go away. 10777 # Systems known to be in this category are Windows (all variants), 10778 # VMS, and Darwin. 10779 case "$host_os" in 10780 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) 10781 gcc_cv_func_mmap_dev_zero=no ;; 10782 *) 10783 gcc_cv_func_mmap_dev_zero=yes;; 10784 esac 10785fi 10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5 10787$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; } 10788 10789 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5 10791$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; } 10792if ${gcc_cv_decl_map_anon+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794else 10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10796/* end confdefs.h. */ 10797#include <sys/types.h> 10798#include <sys/mman.h> 10799#include <unistd.h> 10800 10801#ifndef MAP_ANONYMOUS 10802#define MAP_ANONYMOUS MAP_ANON 10803#endif 10804 10805int 10806main () 10807{ 10808int n = MAP_ANONYMOUS; 10809 ; 10810 return 0; 10811} 10812_ACEOF 10813if ac_fn_cxx_try_compile "$LINENO"; then : 10814 gcc_cv_decl_map_anon=yes 10815else 10816 gcc_cv_decl_map_anon=no 10817fi 10818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10819fi 10820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5 10821$as_echo "$gcc_cv_decl_map_anon" >&6; } 10822 10823 if test $gcc_cv_decl_map_anon = no; then 10824 gcc_cv_func_mmap_anon=no 10825 else 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5 10827$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; } 10828if ${gcc_cv_func_mmap_anon+:} false; then : 10829 $as_echo_n "(cached) " >&6 10830else 10831 # Add a system to this blacklist if it has mmap() and MAP_ANON or 10832 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 10833 # doesn't give anonymous zeroed pages with the same properties listed 10834 # above for use of /dev/zero. 10835 # Systems known to be in this category are Windows, VMS, and SCO Unix. 10836 case "$host_os" in 10837 *vms* | cygwin* | pe | mingw* | sco* | udk* ) 10838 gcc_cv_func_mmap_anon=no ;; 10839 *) 10840 gcc_cv_func_mmap_anon=yes;; 10841 esac 10842fi 10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5 10844$as_echo "$gcc_cv_func_mmap_anon" >&6; } 10845 fi 10846fi 10847 10848if test $gcc_cv_func_mmap_file = yes; then 10849 10850$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h 10851 10852fi 10853if test $gcc_cv_func_mmap_dev_zero = yes; then 10854 10855$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h 10856 10857fi 10858if test $gcc_cv_func_mmap_anon = yes; then 10859 10860$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h 10861 10862fi 10863 10864 10865case "${host}" in 10866*-*-*vms*) 10867 # Under VMS, vfork works very differently than on Unix. The standard test 10868 # won't work, and it isn't easily adaptable. It makes more sense to 10869 # just force it. 10870 ac_cv_func_vfork_works=yes 10871 ;; 10872esac 10873ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10874if test "x$ac_cv_type_pid_t" = xyes; then : 10875 10876else 10877 10878cat >>confdefs.h <<_ACEOF 10879#define pid_t int 10880_ACEOF 10881 10882fi 10883 10884for ac_header in vfork.h 10885do : 10886 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h" 10887if test "x$ac_cv_header_vfork_h" = xyes; then : 10888 cat >>confdefs.h <<_ACEOF 10889#define HAVE_VFORK_H 1 10890_ACEOF 10891 10892fi 10893done 10894 10895for ac_func in fork vfork 10896do : 10897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10898ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10899if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10900 cat >>confdefs.h <<_ACEOF 10901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10902_ACEOF 10903 10904fi 10905done 10906 10907if test "x$ac_cv_func_fork" = xyes; then 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 10909$as_echo_n "checking for working fork... " >&6; } 10910if ${ac_cv_func_fork_works+:} false; then : 10911 $as_echo_n "(cached) " >&6 10912else 10913 if test "$cross_compiling" = yes; then : 10914 ac_cv_func_fork_works=cross 10915else 10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10917/* end confdefs.h. */ 10918$ac_includes_default 10919int 10920main () 10921{ 10922 10923 /* By Ruediger Kuhlmann. */ 10924 return fork () < 0; 10925 10926 ; 10927 return 0; 10928} 10929_ACEOF 10930if ac_fn_cxx_try_run "$LINENO"; then : 10931 ac_cv_func_fork_works=yes 10932else 10933 ac_cv_func_fork_works=no 10934fi 10935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10936 conftest.$ac_objext conftest.beam conftest.$ac_ext 10937fi 10938 10939fi 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 10941$as_echo "$ac_cv_func_fork_works" >&6; } 10942 10943else 10944 ac_cv_func_fork_works=$ac_cv_func_fork 10945fi 10946if test "x$ac_cv_func_fork_works" = xcross; then 10947 case $host in 10948 *-*-amigaos* | *-*-msdosdjgpp*) 10949 # Override, as these systems have only a dummy fork() stub 10950 ac_cv_func_fork_works=no 10951 ;; 10952 *) 10953 ac_cv_func_fork_works=yes 10954 ;; 10955 esac 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 10957$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 10958fi 10959ac_cv_func_vfork_works=$ac_cv_func_vfork 10960if test "x$ac_cv_func_vfork" = xyes; then 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 10962$as_echo_n "checking for working vfork... " >&6; } 10963if ${ac_cv_func_vfork_works+:} false; then : 10964 $as_echo_n "(cached) " >&6 10965else 10966 if test "$cross_compiling" = yes; then : 10967 ac_cv_func_vfork_works=cross 10968else 10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10970/* end confdefs.h. */ 10971/* Thanks to Paul Eggert for this test. */ 10972$ac_includes_default 10973#include <sys/wait.h> 10974#ifdef HAVE_VFORK_H 10975# include <vfork.h> 10976#endif 10977/* On some sparc systems, changes by the child to local and incoming 10978 argument registers are propagated back to the parent. The compiler 10979 is told about this with #include <vfork.h>, but some compilers 10980 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 10981 static variable whose address is put into a register that is 10982 clobbered by the vfork. */ 10983static void 10984#ifdef __cplusplus 10985sparc_address_test (int arg) 10986# else 10987sparc_address_test (arg) int arg; 10988#endif 10989{ 10990 static pid_t child; 10991 if (!child) { 10992 child = vfork (); 10993 if (child < 0) { 10994 perror ("vfork"); 10995 _exit(2); 10996 } 10997 if (!child) { 10998 arg = getpid(); 10999 write(-1, "", 0); 11000 _exit (arg); 11001 } 11002 } 11003} 11004 11005int 11006main () 11007{ 11008 pid_t parent = getpid (); 11009 pid_t child; 11010 11011 sparc_address_test (0); 11012 11013 child = vfork (); 11014 11015 if (child == 0) { 11016 /* Here is another test for sparc vfork register problems. This 11017 test uses lots of local variables, at least as many local 11018 variables as main has allocated so far including compiler 11019 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 11020 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 11021 reuse the register of parent for one of the local variables, 11022 since it will think that parent can't possibly be used any more 11023 in this routine. Assigning to the local variable will thus 11024 munge parent in the parent process. */ 11025 pid_t 11026 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 11027 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 11028 /* Convince the compiler that p..p7 are live; otherwise, it might 11029 use the same hardware register for all 8 local variables. */ 11030 if (p != p1 || p != p2 || p != p3 || p != p4 11031 || p != p5 || p != p6 || p != p7) 11032 _exit(1); 11033 11034 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 11035 from child file descriptors. If the child closes a descriptor 11036 before it execs or exits, this munges the parent's descriptor 11037 as well. Test for this by closing stdout in the child. */ 11038 _exit(close(fileno(stdout)) != 0); 11039 } else { 11040 int status; 11041 struct stat st; 11042 11043 while (wait(&status) != child) 11044 ; 11045 return ( 11046 /* Was there some problem with vforking? */ 11047 child < 0 11048 11049 /* Did the child fail? (This shouldn't happen.) */ 11050 || status 11051 11052 /* Did the vfork/compiler bug occur? */ 11053 || parent != getpid() 11054 11055 /* Did the file descriptor bug occur? */ 11056 || fstat(fileno(stdout), &st) != 0 11057 ); 11058 } 11059} 11060_ACEOF 11061if ac_fn_cxx_try_run "$LINENO"; then : 11062 ac_cv_func_vfork_works=yes 11063else 11064 ac_cv_func_vfork_works=no 11065fi 11066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11067 conftest.$ac_objext conftest.beam conftest.$ac_ext 11068fi 11069 11070fi 11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 11072$as_echo "$ac_cv_func_vfork_works" >&6; } 11073 11074fi; 11075if test "x$ac_cv_func_fork_works" = xcross; then 11076 ac_cv_func_vfork_works=$ac_cv_func_vfork 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 11078$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 11079fi 11080 11081if test "x$ac_cv_func_vfork_works" = xyes; then 11082 11083$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 11084 11085else 11086 11087$as_echo "#define vfork fork" >>confdefs.h 11088 11089fi 11090if test "x$ac_cv_func_fork_works" = xyes; then 11091 11092$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 11093 11094fi 11095 11096 11097 11098 if test "X$prefix" = "XNONE"; then 11099 acl_final_prefix="$ac_default_prefix" 11100 else 11101 acl_final_prefix="$prefix" 11102 fi 11103 if test "X$exec_prefix" = "XNONE"; then 11104 acl_final_exec_prefix='${prefix}' 11105 else 11106 acl_final_exec_prefix="$exec_prefix" 11107 fi 11108 acl_save_prefix="$prefix" 11109 prefix="$acl_final_prefix" 11110 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 11111 prefix="$acl_save_prefix" 11112 11113 11114# Check whether --with-gnu-ld was given. 11115if test "${with_gnu_ld+set}" = set; then : 11116 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11117else 11118 with_gnu_ld=no 11119fi 11120 11121# Prepare PATH_SEPARATOR. 11122# The user is always right. 11123if test "${PATH_SEPARATOR+set}" != set; then 11124 echo "#! /bin/sh" >conf$$.sh 11125 echo "exit 0" >>conf$$.sh 11126 chmod +x conf$$.sh 11127 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11128 PATH_SEPARATOR=';' 11129 else 11130 PATH_SEPARATOR=: 11131 fi 11132 rm -f conf$$.sh 11133fi 11134ac_prog=ld 11135if test "$GCC" = yes; then 11136 # Check if gcc -print-prog-name=ld gives a path. 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 11138$as_echo_n "checking for ld used by GCC... " >&6; } 11139 case $host in 11140 *-*-mingw*) 11141 # gcc leaves a trailing carriage return which upsets mingw 11142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11143 *) 11144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11145 esac 11146 case $ac_prog in 11147 # Accept absolute paths. 11148 [\\/]* | [A-Za-z]:[\\/]*) 11149 re_direlt='/[^/][^/]*/\.\./' 11150 # Canonicalize the path of ld 11151 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 11152 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11153 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 11154 done 11155 test -z "$LD" && LD="$ac_prog" 11156 ;; 11157 "") 11158 # If it fails, then pretend we aren't using GCC. 11159 ac_prog=ld 11160 ;; 11161 *) 11162 # If it is relative, then search for the first ld in PATH. 11163 with_gnu_ld=unknown 11164 ;; 11165 esac 11166elif test "$with_gnu_ld" = yes; then 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11168$as_echo_n "checking for GNU ld... " >&6; } 11169else 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11171$as_echo_n "checking for non-GNU ld... " >&6; } 11172fi 11173if ${acl_cv_path_LD+:} false; then : 11174 $as_echo_n "(cached) " >&6 11175else 11176 if test -z "$LD"; then 11177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 11178 for ac_dir in $PATH; do 11179 test -z "$ac_dir" && ac_dir=. 11180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11181 acl_cv_path_LD="$ac_dir/$ac_prog" 11182 # Check to see if the program is GNU ld. I'd rather use --version, 11183 # but apparently some GNU ld's only accept -v. 11184 # Break only if it was the GNU/non-GNU ld that we prefer. 11185 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 11186 test "$with_gnu_ld" != no && break 11187 else 11188 test "$with_gnu_ld" != yes && break 11189 fi 11190 fi 11191 done 11192 IFS="$ac_save_ifs" 11193else 11194 acl_cv_path_LD="$LD" # Let the user override the test with a path. 11195fi 11196fi 11197 11198LD="$acl_cv_path_LD" 11199if test -n "$LD"; then 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11201$as_echo "$LD" >&6; } 11202else 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11204$as_echo "no" >&6; } 11205fi 11206test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11208$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11209if ${acl_cv_prog_gnu_ld+:} false; then : 11210 $as_echo_n "(cached) " >&6 11211else 11212 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11213if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 11214 acl_cv_prog_gnu_ld=yes 11215else 11216 acl_cv_prog_gnu_ld=no 11217fi 11218fi 11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 11220$as_echo "$acl_cv_prog_gnu_ld" >&6; } 11221with_gnu_ld=$acl_cv_prog_gnu_ld 11222 11223 11224 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 11226$as_echo_n "checking for shared library run path origin... " >&6; } 11227if ${acl_cv_rpath+:} false; then : 11228 $as_echo_n "(cached) " >&6 11229else 11230 11231 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 11232 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 11233 . ./conftest.sh 11234 rm -f ./conftest.sh 11235 acl_cv_rpath=done 11236 11237fi 11238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 11239$as_echo "$acl_cv_rpath" >&6; } 11240 wl="$acl_cv_wl" 11241 libext="$acl_cv_libext" 11242 shlibext="$acl_cv_shlibext" 11243 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 11244 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 11245 hardcode_direct="$acl_cv_hardcode_direct" 11246 hardcode_minus_L="$acl_cv_hardcode_minus_L" 11247 # Check whether --enable-rpath was given. 11248if test "${enable_rpath+set}" = set; then : 11249 enableval=$enable_rpath; : 11250else 11251 enable_rpath=yes 11252fi 11253 11254 11255 11256 11257 11258 11259 11260 11261 use_additional=yes 11262 11263 acl_save_prefix="$prefix" 11264 prefix="$acl_final_prefix" 11265 acl_save_exec_prefix="$exec_prefix" 11266 exec_prefix="$acl_final_exec_prefix" 11267 11268 eval additional_includedir=\"$includedir\" 11269 eval additional_libdir=\"$libdir\" 11270 11271 exec_prefix="$acl_save_exec_prefix" 11272 prefix="$acl_save_prefix" 11273 11274 11275# Check whether --with-libiconv-prefix was given. 11276if test "${with_libiconv_prefix+set}" = set; then : 11277 withval=$with_libiconv_prefix; 11278 if test "X$withval" = "Xno"; then 11279 use_additional=no 11280 else 11281 if test "X$withval" = "X"; then 11282 11283 acl_save_prefix="$prefix" 11284 prefix="$acl_final_prefix" 11285 acl_save_exec_prefix="$exec_prefix" 11286 exec_prefix="$acl_final_exec_prefix" 11287 11288 eval additional_includedir=\"$includedir\" 11289 eval additional_libdir=\"$libdir\" 11290 11291 exec_prefix="$acl_save_exec_prefix" 11292 prefix="$acl_save_prefix" 11293 11294 else 11295 additional_includedir="$withval/include" 11296 additional_libdir="$withval/lib" 11297 fi 11298 fi 11299 11300fi 11301 11302 11303# Check whether --with-libiconv-type was given. 11304if test "${with_libiconv_type+set}" = set; then : 11305 withval=$with_libiconv_type; with_libiconv_type=$withval 11306else 11307 with_libiconv_type=auto 11308fi 11309 11310 lib_type=`eval echo \$with_libiconv_type` 11311 11312 LIBICONV= 11313 LTLIBICONV= 11314 INCICONV= 11315 rpathdirs= 11316 ltrpathdirs= 11317 names_already_handled= 11318 names_next_round='iconv ' 11319 while test -n "$names_next_round"; do 11320 names_this_round="$names_next_round" 11321 names_next_round= 11322 for name in $names_this_round; do 11323 already_handled= 11324 for n in $names_already_handled; do 11325 if test "$n" = "$name"; then 11326 already_handled=yes 11327 break 11328 fi 11329 done 11330 if test -z "$already_handled"; then 11331 names_already_handled="$names_already_handled $name" 11332 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 11333 eval value=\"\$HAVE_LIB$uppername\" 11334 if test -n "$value"; then 11335 if test "$value" = yes; then 11336 eval value=\"\$LIB$uppername\" 11337 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 11338 eval value=\"\$LTLIB$uppername\" 11339 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 11340 else 11341 : 11342 fi 11343 else 11344 found_dir= 11345 found_la= 11346 found_so= 11347 found_a= 11348 if test $use_additional = yes; then 11349 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 11350 found_dir="$additional_libdir" 11351 found_so="$additional_libdir/lib$name.$shlibext" 11352 if test -f "$additional_libdir/lib$name.la"; then 11353 found_la="$additional_libdir/lib$name.la" 11354 fi 11355 elif test x$lib_type != xshared; then 11356 if test -f "$additional_libdir/lib$name.$libext"; then 11357 found_dir="$additional_libdir" 11358 found_a="$additional_libdir/lib$name.$libext" 11359 if test -f "$additional_libdir/lib$name.la"; then 11360 found_la="$additional_libdir/lib$name.la" 11361 fi 11362 fi 11363 fi 11364 fi 11365 if test "X$found_dir" = "X"; then 11366 for x in $LDFLAGS $LTLIBICONV; do 11367 11368 acl_save_prefix="$prefix" 11369 prefix="$acl_final_prefix" 11370 acl_save_exec_prefix="$exec_prefix" 11371 exec_prefix="$acl_final_exec_prefix" 11372 eval x=\"$x\" 11373 exec_prefix="$acl_save_exec_prefix" 11374 prefix="$acl_save_prefix" 11375 11376 case "$x" in 11377 -L*) 11378 dir=`echo "X$x" | sed -e 's/^X-L//'` 11379 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 11380 found_dir="$dir" 11381 found_so="$dir/lib$name.$shlibext" 11382 if test -f "$dir/lib$name.la"; then 11383 found_la="$dir/lib$name.la" 11384 fi 11385 elif test x$lib_type != xshared; then 11386 if test -f "$dir/lib$name.$libext"; then 11387 found_dir="$dir" 11388 found_a="$dir/lib$name.$libext" 11389 if test -f "$dir/lib$name.la"; then 11390 found_la="$dir/lib$name.la" 11391 fi 11392 fi 11393 fi 11394 ;; 11395 esac 11396 if test "X$found_dir" != "X"; then 11397 break 11398 fi 11399 done 11400 fi 11401 if test "X$found_dir" != "X"; then 11402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11403 if test "X$found_so" != "X"; then 11404 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 11405 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11406 else 11407 haveit= 11408 for x in $ltrpathdirs; do 11409 if test "X$x" = "X$found_dir"; then 11410 haveit=yes 11411 break 11412 fi 11413 done 11414 if test -z "$haveit"; then 11415 ltrpathdirs="$ltrpathdirs $found_dir" 11416 fi 11417 if test "$hardcode_direct" = yes; then 11418 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11419 else 11420 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 11421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11422 haveit= 11423 for x in $rpathdirs; do 11424 if test "X$x" = "X$found_dir"; then 11425 haveit=yes 11426 break 11427 fi 11428 done 11429 if test -z "$haveit"; then 11430 rpathdirs="$rpathdirs $found_dir" 11431 fi 11432 else 11433 haveit= 11434 for x in $LDFLAGS $LIBICONV; do 11435 11436 acl_save_prefix="$prefix" 11437 prefix="$acl_final_prefix" 11438 acl_save_exec_prefix="$exec_prefix" 11439 exec_prefix="$acl_final_exec_prefix" 11440 eval x=\"$x\" 11441 exec_prefix="$acl_save_exec_prefix" 11442 prefix="$acl_save_prefix" 11443 11444 if test "X$x" = "X-L$found_dir"; then 11445 haveit=yes 11446 break 11447 fi 11448 done 11449 if test -z "$haveit"; then 11450 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11451 fi 11452 if test "$hardcode_minus_L" != no; then 11453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11454 else 11455 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11456 fi 11457 fi 11458 fi 11459 fi 11460 else 11461 if test "X$found_a" != "X"; then 11462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11463 else 11464 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11465 fi 11466 fi 11467 additional_includedir= 11468 case "$found_dir" in 11469 */lib | */lib/) 11470 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 11471 additional_includedir="$basedir/include" 11472 ;; 11473 esac 11474 if test "X$additional_includedir" != "X"; then 11475 if test "X$additional_includedir" != "X/usr/include"; then 11476 haveit= 11477 if test "X$additional_includedir" = "X/usr/local/include"; then 11478 if test -n "$GCC"; then 11479 case $host_os in 11480 linux*) haveit=yes;; 11481 esac 11482 fi 11483 fi 11484 if test -z "$haveit"; then 11485 for x in $CPPFLAGS $INCICONV; do 11486 11487 acl_save_prefix="$prefix" 11488 prefix="$acl_final_prefix" 11489 acl_save_exec_prefix="$exec_prefix" 11490 exec_prefix="$acl_final_exec_prefix" 11491 eval x=\"$x\" 11492 exec_prefix="$acl_save_exec_prefix" 11493 prefix="$acl_save_prefix" 11494 11495 if test "X$x" = "X-I$additional_includedir"; then 11496 haveit=yes 11497 break 11498 fi 11499 done 11500 if test -z "$haveit"; then 11501 if test -d "$additional_includedir"; then 11502 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11503 fi 11504 fi 11505 fi 11506 fi 11507 fi 11508 if test -n "$found_la"; then 11509 save_libdir="$libdir" 11510 case "$found_la" in 11511 */* | *\\*) . "$found_la" ;; 11512 *) . "./$found_la" ;; 11513 esac 11514 libdir="$save_libdir" 11515 for dep in $dependency_libs; do 11516 case "$dep" in 11517 -L*) 11518 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11519 if test "X$additional_libdir" != "X/usr/lib"; then 11520 haveit= 11521 if test "X$additional_libdir" = "X/usr/local/lib"; then 11522 if test -n "$GCC"; then 11523 case $host_os in 11524 linux*) haveit=yes;; 11525 esac 11526 fi 11527 fi 11528 if test -z "$haveit"; then 11529 haveit= 11530 for x in $LDFLAGS $LIBICONV; do 11531 11532 acl_save_prefix="$prefix" 11533 prefix="$acl_final_prefix" 11534 acl_save_exec_prefix="$exec_prefix" 11535 exec_prefix="$acl_final_exec_prefix" 11536 eval x=\"$x\" 11537 exec_prefix="$acl_save_exec_prefix" 11538 prefix="$acl_save_prefix" 11539 11540 if test "X$x" = "X-L$additional_libdir"; then 11541 haveit=yes 11542 break 11543 fi 11544 done 11545 if test -z "$haveit"; then 11546 if test -d "$additional_libdir"; then 11547 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 11548 fi 11549 fi 11550 haveit= 11551 for x in $LDFLAGS $LTLIBICONV; do 11552 11553 acl_save_prefix="$prefix" 11554 prefix="$acl_final_prefix" 11555 acl_save_exec_prefix="$exec_prefix" 11556 exec_prefix="$acl_final_exec_prefix" 11557 eval x=\"$x\" 11558 exec_prefix="$acl_save_exec_prefix" 11559 prefix="$acl_save_prefix" 11560 11561 if test "X$x" = "X-L$additional_libdir"; then 11562 haveit=yes 11563 break 11564 fi 11565 done 11566 if test -z "$haveit"; then 11567 if test -d "$additional_libdir"; then 11568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 11569 fi 11570 fi 11571 fi 11572 fi 11573 ;; 11574 -R*) 11575 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11576 if test "$enable_rpath" != no; then 11577 haveit= 11578 for x in $rpathdirs; do 11579 if test "X$x" = "X$dir"; then 11580 haveit=yes 11581 break 11582 fi 11583 done 11584 if test -z "$haveit"; then 11585 rpathdirs="$rpathdirs $dir" 11586 fi 11587 haveit= 11588 for x in $ltrpathdirs; do 11589 if test "X$x" = "X$dir"; then 11590 haveit=yes 11591 break 11592 fi 11593 done 11594 if test -z "$haveit"; then 11595 ltrpathdirs="$ltrpathdirs $dir" 11596 fi 11597 fi 11598 ;; 11599 -l*) 11600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11601 ;; 11602 *.la) 11603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11604 ;; 11605 *) 11606 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 11607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 11608 ;; 11609 esac 11610 done 11611 fi 11612 else 11613 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 11614 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 11616 else 11617 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 11618 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 11619 fi 11620 fi 11621 fi 11622 fi 11623 done 11624 done 11625 if test "X$rpathdirs" != "X"; then 11626 if test -n "$hardcode_libdir_separator"; then 11627 alldirs= 11628 for found_dir in $rpathdirs; do 11629 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11630 done 11631 acl_save_libdir="$libdir" 11632 libdir="$alldirs" 11633 eval flag=\"$hardcode_libdir_flag_spec\" 11634 libdir="$acl_save_libdir" 11635 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11636 else 11637 for found_dir in $rpathdirs; do 11638 acl_save_libdir="$libdir" 11639 libdir="$found_dir" 11640 eval flag=\"$hardcode_libdir_flag_spec\" 11641 libdir="$acl_save_libdir" 11642 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11643 done 11644 fi 11645 fi 11646 if test "X$ltrpathdirs" != "X"; then 11647 for found_dir in $ltrpathdirs; do 11648 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 11649 done 11650 fi 11651 11652 11653 11654 11655 11656 11657 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 11659$as_echo_n "checking for iconv... " >&6; } 11660if ${am_cv_func_iconv+:} false; then : 11661 $as_echo_n "(cached) " >&6 11662else 11663 11664 am_cv_func_iconv="no, consider installing GNU libiconv" 11665 am_cv_lib_iconv=no 11666 am_save_CPPFLAGS="$CPPFLAGS" 11667 CPPFLAGS="$CPPFLAGS $INCICONV" 11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11669/* end confdefs.h. */ 11670#include <stdlib.h> 11671#include <iconv.h> 11672int 11673main () 11674{ 11675iconv_t cd = iconv_open("",""); 11676 iconv(cd,NULL,NULL,NULL,NULL); 11677 iconv_close(cd); 11678 ; 11679 return 0; 11680} 11681_ACEOF 11682if ac_fn_cxx_try_link "$LINENO"; then : 11683 am_cv_func_iconv=yes 11684fi 11685rm -f core conftest.err conftest.$ac_objext \ 11686 conftest$ac_exeext conftest.$ac_ext 11687 CPPFLAGS="$am_save_CPPFLAGS" 11688 11689 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then 11690 for _libs in .libs _libs; do 11691 am_save_CPPFLAGS="$CPPFLAGS" 11692 am_save_LIBS="$LIBS" 11693 CPPFLAGS="$CPPFLAGS -I../libiconv/include" 11694 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" 11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11696/* end confdefs.h. */ 11697#include <stdlib.h> 11698#include <iconv.h> 11699int 11700main () 11701{ 11702iconv_t cd = iconv_open("",""); 11703 iconv(cd,NULL,NULL,NULL,NULL); 11704 iconv_close(cd); 11705 ; 11706 return 0; 11707} 11708_ACEOF 11709if ac_fn_cxx_try_link "$LINENO"; then : 11710 INCICONV="-I../libiconv/include" 11711 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a 11712 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la 11713 am_cv_lib_iconv=yes 11714 am_cv_func_iconv=yes 11715fi 11716rm -f core conftest.err conftest.$ac_objext \ 11717 conftest$ac_exeext conftest.$ac_ext 11718 CPPFLAGS="$am_save_CPPFLAGS" 11719 LIBS="$am_save_LIBS" 11720 if test "$am_cv_func_iconv" = "yes"; then 11721 break 11722 fi 11723 done 11724 fi 11725 11726 if test "$am_cv_func_iconv" != yes; then 11727 am_save_CPPFLAGS="$CPPFLAGS" 11728 am_save_LIBS="$LIBS" 11729 CPPFLAGS="$CPPFLAGS $INCICONV" 11730 LIBS="$LIBS $LIBICONV" 11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11732/* end confdefs.h. */ 11733#include <stdlib.h> 11734#include <iconv.h> 11735int 11736main () 11737{ 11738iconv_t cd = iconv_open("",""); 11739 iconv(cd,NULL,NULL,NULL,NULL); 11740 iconv_close(cd); 11741 ; 11742 return 0; 11743} 11744_ACEOF 11745if ac_fn_cxx_try_link "$LINENO"; then : 11746 am_cv_lib_iconv=yes 11747 am_cv_func_iconv=yes 11748fi 11749rm -f core conftest.err conftest.$ac_objext \ 11750 conftest$ac_exeext conftest.$ac_ext 11751 CPPFLAGS="$am_save_CPPFLAGS" 11752 LIBS="$am_save_LIBS" 11753 fi 11754 11755fi 11756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 11757$as_echo "$am_cv_func_iconv" >&6; } 11758 if test "$am_cv_func_iconv" = yes; then 11759 11760$as_echo "#define HAVE_ICONV 1" >>confdefs.h 11761 11762 fi 11763 if test "$am_cv_lib_iconv" = yes; then 11764 11765 for element in $INCICONV; do 11766 haveit= 11767 for x in $CPPFLAGS; do 11768 11769 acl_save_prefix="$prefix" 11770 prefix="$acl_final_prefix" 11771 acl_save_exec_prefix="$exec_prefix" 11772 exec_prefix="$acl_final_exec_prefix" 11773 eval x=\"$x\" 11774 exec_prefix="$acl_save_exec_prefix" 11775 prefix="$acl_save_prefix" 11776 11777 if test "X$x" = "X$element"; then 11778 haveit=yes 11779 break 11780 fi 11781 done 11782 if test -z "$haveit"; then 11783 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11784 fi 11785 done 11786 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 11788$as_echo_n "checking how to link with libiconv... " >&6; } 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 11790$as_echo "$LIBICONV" >&6; } 11791 else 11792 LIBICONV= 11793 LTLIBICONV= 11794 fi 11795 11796 11797 11798 if test "$am_cv_func_iconv" = yes; then 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 11800$as_echo_n "checking for iconv declaration... " >&6; } 11801 if ${am_cv_proto_iconv+:} false; then : 11802 $as_echo_n "(cached) " >&6 11803else 11804 11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11806/* end confdefs.h. */ 11807 11808#include <stdlib.h> 11809#include <iconv.h> 11810extern 11811#ifdef __cplusplus 11812"C" 11813#endif 11814#if defined(__STDC__) || defined(__cplusplus) 11815size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 11816#else 11817size_t iconv(); 11818#endif 11819 11820int 11821main () 11822{ 11823 11824 ; 11825 return 0; 11826} 11827_ACEOF 11828if ac_fn_cxx_try_compile "$LINENO"; then : 11829 am_cv_proto_iconv_arg1="" 11830else 11831 am_cv_proto_iconv_arg1="const" 11832fi 11833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11834 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);" 11835fi 11836 11837 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 11839 }$am_cv_proto_iconv" >&5 11840$as_echo "${ac_t:- 11841 }$am_cv_proto_iconv" >&6; } 11842 11843cat >>confdefs.h <<_ACEOF 11844#define ICONV_CONST $am_cv_proto_iconv_arg1 11845_ACEOF 11846 11847 fi 11848 11849 11850# Until we have in-tree GNU iconv: 11851LIBICONV_DEP= 11852if test -f "$LTLIBICONV"; then 11853 LIBICONV_DEP=$LTLIBICONV 11854fi 11855 11856 11857 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 11859$as_echo_n "checking for LC_MESSAGES... " >&6; } 11860if ${am_cv_val_LC_MESSAGES+:} false; then : 11861 $as_echo_n "(cached) " >&6 11862else 11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11864/* end confdefs.h. */ 11865#include <locale.h> 11866int 11867main () 11868{ 11869return LC_MESSAGES 11870 ; 11871 return 0; 11872} 11873_ACEOF 11874if ac_fn_cxx_try_link "$LINENO"; then : 11875 am_cv_val_LC_MESSAGES=yes 11876else 11877 am_cv_val_LC_MESSAGES=no 11878fi 11879rm -f core conftest.err conftest.$ac_objext \ 11880 conftest$ac_exeext conftest.$ac_ext 11881fi 11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 11883$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 11884 if test $am_cv_val_LC_MESSAGES = yes; then 11885 11886$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 11887 11888 fi 11889 11890 11891 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 11893$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 11894if ${am_cv_langinfo_codeset+:} false; then : 11895 $as_echo_n "(cached) " >&6 11896else 11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11898/* end confdefs.h. */ 11899#include <langinfo.h> 11900int 11901main () 11902{ 11903char* cs = nl_langinfo(CODESET); 11904 ; 11905 return 0; 11906} 11907_ACEOF 11908if ac_fn_cxx_try_link "$LINENO"; then : 11909 am_cv_langinfo_codeset=yes 11910else 11911 am_cv_langinfo_codeset=no 11912fi 11913rm -f core conftest.err conftest.$ac_objext \ 11914 conftest$ac_exeext conftest.$ac_ext 11915 11916fi 11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 11918$as_echo "$am_cv_langinfo_codeset" >&6; } 11919 if test $am_cv_langinfo_codeset = yes; then 11920 11921$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 11922 11923 fi 11924 11925 11926# We will need to find libiberty.h and ansidecl.h 11927saved_CFLAGS="$CFLAGS" 11928CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" 11929saved_CXXFLAGS="$CXXFLAGS" 11930CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" 11931 11932# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the 11933# normal autoconf function for these. But force definition of 11934# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre 11935# basename handling in libiberty.h. 11936as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh` 11937ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" " 11938#undef HAVE_DECL_BASENAME 11939#define HAVE_DECL_BASENAME 1 11940#include \"ansidecl.h\" 11941#include \"system.h\" 11942" 11943if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11944 ac_have_decl=1 11945else 11946 ac_have_decl=0 11947fi 11948 11949cat >>confdefs.h <<_ACEOF 11950#define HAVE_DECL_BASENAME $ac_have_decl 11951_ACEOF 11952as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh` 11953ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" " 11954#undef HAVE_DECL_BASENAME 11955#define HAVE_DECL_BASENAME 1 11956#include \"ansidecl.h\" 11957#include \"system.h\" 11958" 11959if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11960 ac_have_decl=1 11961else 11962 ac_have_decl=0 11963fi 11964 11965cat >>confdefs.h <<_ACEOF 11966#define HAVE_DECL_STRSTR $ac_have_decl 11967_ACEOF 11968 11969 11970for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \ 11971 madvise stpcpy strnlen strsignal strverscmp \ 11972 strtol strtoul strtoll strtoull setenv unsetenv \ 11973 errno snprintf vsnprintf vasprintf malloc realloc calloc \ 11974 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 11975do 11976 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11978$as_echo_n "checking whether $ac_func is declared... " >&6; } 11979if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11983/* end confdefs.h. */ 11984#undef $ac_tr_decl 11985#define $ac_tr_decl 1 11986 11987#include "ansidecl.h" 11988#include "system.h" 11989 11990int 11991main () 11992{ 11993#ifndef $ac_func 11994char *(*pfn) = (char *(*)) $ac_func ; 11995#endif 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000if ac_fn_cxx_try_compile "$LINENO"; then : 12001 eval "gcc_cv_have_decl_$ac_func=yes" 12002else 12003 eval "gcc_cv_have_decl_$ac_func=no" 12004fi 12005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12006fi 12007 12008if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12010$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12011#define $ac_tr_decl 1 12012_ACEOF 12013 12014else 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12016$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12017#define $ac_tr_decl 0 12018_ACEOF 12019 12020fi 12021 12022done 12023 12024 12025for ac_func in getrlimit setrlimit getrusage 12026do 12027 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12029$as_echo_n "checking whether $ac_func is declared... " >&6; } 12030if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12031 $as_echo_n "(cached) " >&6 12032else 12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12034/* end confdefs.h. */ 12035#undef $ac_tr_decl 12036#define $ac_tr_decl 1 12037 12038#include "ansidecl.h" 12039#include "system.h" 12040#ifdef HAVE_SYS_RESOURCE_H 12041#include <sys/resource.h> 12042#endif 12043 12044 12045int 12046main () 12047{ 12048#ifndef $ac_func 12049char *(*pfn) = (char *(*)) $ac_func ; 12050#endif 12051 ; 12052 return 0; 12053} 12054_ACEOF 12055if ac_fn_cxx_try_compile "$LINENO"; then : 12056 eval "gcc_cv_have_decl_$ac_func=yes" 12057else 12058 eval "gcc_cv_have_decl_$ac_func=no" 12059fi 12060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12061fi 12062 12063if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12065$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12066#define $ac_tr_decl 1 12067_ACEOF 12068 12069else 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12071$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12072#define $ac_tr_decl 0 12073_ACEOF 12074 12075fi 12076 12077done 12078 12079 12080for ac_func in mallinfo mallinfo2 12081do 12082 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12084$as_echo_n "checking whether $ac_func is declared... " >&6; } 12085if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12086 $as_echo_n "(cached) " >&6 12087else 12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12089/* end confdefs.h. */ 12090#undef $ac_tr_decl 12091#define $ac_tr_decl 1 12092 12093#include "ansidecl.h" 12094#include "system.h" 12095#ifdef HAVE_MALLOC_H 12096#include <malloc.h> 12097#endif 12098 12099 12100int 12101main () 12102{ 12103#ifndef $ac_func 12104char *(*pfn) = (char *(*)) $ac_func ; 12105#endif 12106 ; 12107 return 0; 12108} 12109_ACEOF 12110if ac_fn_cxx_try_compile "$LINENO"; then : 12111 eval "gcc_cv_have_decl_$ac_func=yes" 12112else 12113 eval "gcc_cv_have_decl_$ac_func=no" 12114fi 12115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12116fi 12117 12118if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12120$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12121#define $ac_tr_decl 1 12122_ACEOF 12123 12124else 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12126$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12127#define $ac_tr_decl 0 12128_ACEOF 12129 12130fi 12131 12132done 12133 12134 12135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12136/* end confdefs.h. */ 12137 12138#include "ansidecl.h" 12139#include "system.h" 12140#ifdef HAVE_SYS_RESOURCE_H 12141#include <sys/resource.h> 12142#endif 12143 12144int 12145main () 12146{ 12147rlim_t l = 0; 12148 ; 12149 return 0; 12150} 12151_ACEOF 12152if ac_fn_cxx_try_compile "$LINENO"; then : 12153 12154else 12155 12156$as_echo "#define rlim_t long" >>confdefs.h 12157 12158fi 12159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12160 12161# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible 12162# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname 12163# in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs 12164# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME. 12165for ac_func in ldgetname 12166do 12167 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12169$as_echo_n "checking whether $ac_func is declared... " >&6; } 12170if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12171 $as_echo_n "(cached) " >&6 12172else 12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12174/* end confdefs.h. */ 12175#undef $ac_tr_decl 12176#define $ac_tr_decl 1 12177 12178#include "ansidecl.h" 12179#include "system.h" 12180#ifdef HAVE_LDFCN_H 12181#undef FREAD 12182#undef FWRITE 12183#include <ldfcn.h> 12184#endif 12185 12186 12187int 12188main () 12189{ 12190#ifndef $ac_func 12191char *(*pfn) = (char *(*)) $ac_func ; 12192#endif 12193 ; 12194 return 0; 12195} 12196_ACEOF 12197if ac_fn_cxx_try_compile "$LINENO"; then : 12198 eval "gcc_cv_have_decl_$ac_func=yes" 12199else 12200 eval "gcc_cv_have_decl_$ac_func=no" 12201fi 12202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12203fi 12204 12205if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12207$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12208#define $ac_tr_decl 1 12209_ACEOF 12210 12211else 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12213$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12214#define $ac_tr_decl 0 12215_ACEOF 12216 12217fi 12218 12219done 12220 12221 12222for ac_func in times 12223do 12224 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12226$as_echo_n "checking whether $ac_func is declared... " >&6; } 12227if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12228 $as_echo_n "(cached) " >&6 12229else 12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12231/* end confdefs.h. */ 12232#undef $ac_tr_decl 12233#define $ac_tr_decl 1 12234 12235#include "ansidecl.h" 12236#include "system.h" 12237#ifdef HAVE_SYS_TIMES_H 12238#include <sys/times.h> 12239#endif 12240 12241 12242int 12243main () 12244{ 12245#ifndef $ac_func 12246char *(*pfn) = (char *(*)) $ac_func ; 12247#endif 12248 ; 12249 return 0; 12250} 12251_ACEOF 12252if ac_fn_cxx_try_compile "$LINENO"; then : 12253 eval "gcc_cv_have_decl_$ac_func=yes" 12254else 12255 eval "gcc_cv_have_decl_$ac_func=no" 12256fi 12257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12258fi 12259 12260if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12262$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12263#define $ac_tr_decl 1 12264_ACEOF 12265 12266else 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12268$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12269#define $ac_tr_decl 0 12270_ACEOF 12271 12272fi 12273 12274done 12275 12276 12277for ac_func in sigaltstack 12278do 12279 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 12280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 12281$as_echo_n "checking whether $ac_func is declared... " >&6; } 12282if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 12283 $as_echo_n "(cached) " >&6 12284else 12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12286/* end confdefs.h. */ 12287#undef $ac_tr_decl 12288#define $ac_tr_decl 1 12289 12290#include "ansidecl.h" 12291#include "system.h" 12292#include <signal.h> 12293 12294 12295int 12296main () 12297{ 12298#ifndef $ac_func 12299char *(*pfn) = (char *(*)) $ac_func ; 12300#endif 12301 ; 12302 return 0; 12303} 12304_ACEOF 12305if ac_fn_cxx_try_compile "$LINENO"; then : 12306 eval "gcc_cv_have_decl_$ac_func=yes" 12307else 12308 eval "gcc_cv_have_decl_$ac_func=no" 12309fi 12310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12311fi 12312 12313if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12315$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 12316#define $ac_tr_decl 1 12317_ACEOF 12318 12319else 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12321$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 12322#define $ac_tr_decl 0 12323_ACEOF 12324 12325fi 12326 12327done 12328 12329 12330# More time-related stuff. 12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5 12332$as_echo_n "checking for struct tms... " >&6; } 12333if ${ac_cv_struct_tms+:} false; then : 12334 $as_echo_n "(cached) " >&6 12335else 12336 12337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12338/* end confdefs.h. */ 12339 12340#include "ansidecl.h" 12341#include "system.h" 12342#ifdef HAVE_SYS_TIMES_H 12343#include <sys/times.h> 12344#endif 12345 12346int 12347main () 12348{ 12349struct tms tms; 12350 ; 12351 return 0; 12352} 12353_ACEOF 12354if ac_fn_cxx_try_compile "$LINENO"; then : 12355 ac_cv_struct_tms=yes 12356else 12357 ac_cv_struct_tms=no 12358fi 12359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12360fi 12361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5 12362$as_echo "$ac_cv_struct_tms" >&6; } 12363if test $ac_cv_struct_tms = yes; then 12364 12365$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h 12366 12367fi 12368 12369# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE. 12370# revisit after autoconf 2.50. 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 12372$as_echo_n "checking for clock_t... " >&6; } 12373if ${gcc_cv_type_clock_t+:} false; then : 12374 $as_echo_n "(cached) " >&6 12375else 12376 12377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12378/* end confdefs.h. */ 12379 12380#include "ansidecl.h" 12381#include "system.h" 12382 12383int 12384main () 12385{ 12386clock_t x; 12387 ; 12388 return 0; 12389} 12390_ACEOF 12391if ac_fn_cxx_try_compile "$LINENO"; then : 12392 gcc_cv_type_clock_t=yes 12393else 12394 gcc_cv_type_clock_t=no 12395fi 12396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12397fi 12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5 12399$as_echo "$gcc_cv_type_clock_t" >&6; } 12400if test $gcc_cv_type_clock_t = yes; then 12401 12402$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h 12403 12404fi 12405 12406# Check if F_SETLKW is supported by fcntl. 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5 12408$as_echo_n "checking for F_SETLKW... " >&6; } 12409if ${ac_cv_f_setlkw+:} false; then : 12410 $as_echo_n "(cached) " >&6 12411else 12412 12413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12414/* end confdefs.h. */ 12415 12416#include <fcntl.h> 12417int 12418main () 12419{ 12420 12421struct flock fl; 12422fl.l_whence = 0; 12423fl.l_start = 0; 12424fl.l_len = 0; 12425fl.l_pid = 0; 12426return fcntl (1, F_SETLKW, &fl); 12427 ; 12428 return 0; 12429} 12430_ACEOF 12431if ac_fn_cxx_try_compile "$LINENO"; then : 12432 ac_cv_f_setlkw=yes 12433else 12434 ac_cv_f_setlkw=no 12435fi 12436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12437fi 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5 12439$as_echo "$ac_cv_f_setlkw" >&6; } 12440if test $ac_cv_f_setlkw = yes; then 12441 12442$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h 12443 12444fi 12445 12446# Check if O_CLOEXEC is defined by fcntl 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 12448$as_echo_n "checking for O_CLOEXEC... " >&6; } 12449if ${ac_cv_o_cloexec+:} false; then : 12450 $as_echo_n "(cached) " >&6 12451else 12452 12453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12454/* end confdefs.h. */ 12455 12456#include <fcntl.h> 12457int 12458main () 12459{ 12460 12461return open ("/dev/null", O_RDONLY | O_CLOEXEC); 12462 ; 12463 return 0; 12464} 12465_ACEOF 12466if ac_fn_cxx_try_compile "$LINENO"; then : 12467 ac_cv_o_cloexec=yes 12468else 12469 ac_cv_o_cloexec=no 12470fi 12471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12472fi 12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5 12474$as_echo "$ac_cv_o_cloexec" >&6; } 12475if test $ac_cv_o_cloexec = yes; then 12476 12477$as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h 12478 12479fi 12480 12481# C++ Modules would like some networking features to provide the mapping 12482# server. You can still use modules without them though. 12483# The following network-related checks could probably do with some 12484# Windows and other non-linux defenses and checking. 12485 12486# Local socket connectivity wants AF_UNIX networking 12487# Check for AF_UNIX networking 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5 12489$as_echo_n "checking for AF_UNIX... " >&6; } 12490if ${ac_cv_af_unix+:} false; then : 12491 $as_echo_n "(cached) " >&6 12492else 12493 12494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12495/* end confdefs.h. */ 12496 12497#include <sys/types.h> 12498#include <sys/socket.h> 12499#include <sys/un.h> 12500#include <netinet/in.h> 12501int 12502main () 12503{ 12504 12505sockaddr_un un; 12506un.sun_family = AF_UNSPEC; 12507int fd = socket (AF_UNIX, SOCK_STREAM, 0); 12508connect (fd, (sockaddr *)&un, sizeof (un)); 12509 ; 12510 return 0; 12511} 12512_ACEOF 12513if ac_fn_cxx_try_compile "$LINENO"; then : 12514 ac_cv_af_unix=yes 12515else 12516 ac_cv_af_unix=no 12517fi 12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12519fi 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5 12521$as_echo "$ac_cv_af_unix" >&6; } 12522if test $ac_cv_af_unix = yes; then 12523 12524$as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h 12525 12526fi 12527 12528# Remote socket connectivity wants AF_INET6 networking 12529# Check for AF_INET6 networking 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5 12531$as_echo_n "checking for AF_INET6... " >&6; } 12532if ${ac_cv_af_inet6+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 12536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12537/* end confdefs.h. */ 12538 12539#include <sys/types.h> 12540#include <sys/socket.h> 12541#include <netinet/in.h> 12542#include <netdb.h> 12543int 12544main () 12545{ 12546 12547sockaddr_in6 in6; 12548in6.sin6_family = AF_UNSPEC; 12549struct addrinfo *addrs = 0; 12550struct addrinfo hints; 12551hints.ai_flags = 0; 12552hints.ai_family = AF_INET6; 12553hints.ai_socktype = SOCK_STREAM; 12554hints.ai_protocol = 0; 12555hints.ai_canonname = 0; 12556hints.ai_addr = 0; 12557hints.ai_next = 0; 12558int e = getaddrinfo ("localhost", 0, &hints, &addrs); 12559const char *str = gai_strerror (e); 12560freeaddrinfo (addrs); 12561int fd = socket (AF_INET6, SOCK_STREAM, 0); 12562connect (fd, (sockaddr *)&in6, sizeof (in6)); 12563 ; 12564 return 0; 12565} 12566_ACEOF 12567if ac_fn_cxx_try_compile "$LINENO"; then : 12568 ac_cv_af_inet6=yes 12569else 12570 ac_cv_af_inet6=no 12571fi 12572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12573fi 12574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5 12575$as_echo "$ac_cv_af_inet6" >&6; } 12576if test $ac_cv_af_inet6 = yes; then 12577 12578$as_echo "#define HAVE_AF_INET6 1" >>confdefs.h 12579 12580fi 12581 12582# Check if _LK_LOCK is supported by _locking 12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5 12584$as_echo_n "checking for _LK_LOCK... " >&6; } 12585if ${ac_cv_lk_lock+:} false; then : 12586 $as_echo_n "(cached) " >&6 12587else 12588 12589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12590/* end confdefs.h. */ 12591 12592#include <io.h> 12593#include <sys/locking.h> 12594int 12595main () 12596{ 12597 12598 int fd; 12599 return _locking (fd, _LK_LOCK, 0); 12600 ; 12601 return 0; 12602} 12603_ACEOF 12604if ac_fn_cxx_try_compile "$LINENO"; then : 12605 ac_cv_lk_lock=yes 12606else 12607 ac_cv_lk_lock=no 12608fi 12609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12610fi 12611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5 12612$as_echo "$ac_cv_lk_lock" >&6; } 12613if test $ac_cv_lk_lock = yes; then 12614 12615$as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h 12616 12617fi 12618 12619# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. 12620CFLAGS="$saved_CFLAGS" 12621CXXFLAGS="$saved_CXXFLAGS" 12622 12623# mkdir takes a single argument on some systems. 12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5 12625$as_echo_n "checking if mkdir takes one argument... " >&6; } 12626if ${gcc_cv_mkdir_takes_one_arg+:} false; then : 12627 $as_echo_n "(cached) " >&6 12628else 12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12630/* end confdefs.h. */ 12631 12632#include <sys/types.h> 12633#ifdef HAVE_SYS_STAT_H 12634# include <sys/stat.h> 12635#endif 12636#ifdef HAVE_UNISTD_H 12637# include <unistd.h> 12638#endif 12639#ifdef HAVE_DIRECT_H 12640# include <direct.h> 12641#endif 12642int 12643main () 12644{ 12645mkdir ("foo", 0); 12646 ; 12647 return 0; 12648} 12649_ACEOF 12650if ac_fn_cxx_try_compile "$LINENO"; then : 12651 gcc_cv_mkdir_takes_one_arg=no 12652else 12653 gcc_cv_mkdir_takes_one_arg=yes 12654fi 12655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12656fi 12657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5 12658$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; } 12659if test $gcc_cv_mkdir_takes_one_arg = yes ; then 12660 12661$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h 12662 12663fi 12664 12665 12666# File extensions 12667manext='.1' 12668objext='.o' 12669 12670 12671 12672# With Setjmp/Longjmp based exception handling. 12673# Check whether --enable-sjlj-exceptions was given. 12674if test "${enable_sjlj_exceptions+set}" = set; then : 12675 enableval=$enable_sjlj_exceptions; case $target in 12676 *-*-hpux10*) 12677 if test $enableval != yes; then 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5 12679$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;} 12680 enableval=yes 12681 fi 12682 ;; 12683esac 12684force_sjlj_exceptions=yes 12685else 12686 case $target in 12687 *-*-hpux10*) 12688 force_sjlj_exceptions=yes 12689 enableval=yes 12690 ;; 12691 lm32*-*-*) 12692 force_sjlj_exceptions=yes 12693 enableval=yes 12694 ;; 12695 *) 12696 force_sjlj_exceptions=no 12697 ;; 12698esac 12699fi 12700 12701if test $force_sjlj_exceptions = yes; then 12702 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi` 12703 12704cat >>confdefs.h <<_ACEOF 12705#define CONFIG_SJLJ_EXCEPTIONS $sjlj 12706_ACEOF 12707 12708fi 12709 12710# -------------------------------------------------------- 12711# Build, host, and target specific configuration fragments 12712# -------------------------------------------------------- 12713 12714# Collect build-machine-specific information. 12715. ${srcdir}/config.build || exit 1 12716 12717# Collect host-machine-specific information. 12718. ${srcdir}/config.host || exit 1 12719 12720target_gtfiles= 12721 12722# Collect target-machine-specific information. 12723. ${srcdir}/config.gcc || exit 1 12724 12725extra_objs="${host_extra_objs} ${extra_objs}" 12726extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}" 12727 12728# Default the target-machine variables that were not explicitly set. 12729if test x"$tm_file" = x 12730then tm_file=$cpu_type/$cpu_type.h; fi 12731 12732if test x"$extra_headers" = x 12733then extra_headers=; fi 12734 12735if test x$md_file = x 12736then md_file=$cpu_type/$cpu_type.md; fi 12737 12738if test x$out_file = x 12739then out_file=$cpu_type/$cpu_type.cc; fi 12740 12741if test x"$tmake_file" = x 12742then tmake_file=$cpu_type/t-$cpu_type 12743fi 12744 12745# Support --enable-initfini-array. 12746if test x$enable_initfini_array != xno; then 12747 tm_file="${tm_file} initfini-array.h" 12748fi 12749 12750if test x"$dwarf2" = xyes 12751then tm_file="$tm_file tm-dwarf2.h" 12752fi 12753 12754# Say what files are being used for the output code and MD file. 12755echo "Using \`$srcdir/config/$out_file' for machine-specific logic." 12756echo "Using \`$srcdir/config/$md_file' as machine description file." 12757 12758# If any of the xm_file variables contain nonexistent files, warn 12759# about them and drop them. 12760 12761bx= 12762for x in $build_xm_file; do 12763 if test -f $srcdir/config/$x 12764 then bx="$bx $x" 12765 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12766$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12767 fi 12768done 12769build_xm_file="$bx" 12770 12771hx= 12772for x in $host_xm_file; do 12773 if test -f $srcdir/config/$x 12774 then hx="$hx $x" 12775 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12776$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12777 fi 12778done 12779host_xm_file="$hx" 12780 12781tx= 12782for x in $xm_file; do 12783 if test -f $srcdir/config/$x 12784 then tx="$tx $x" 12785 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12786$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12787 fi 12788done 12789xm_file="$tx" 12790 12791count=a 12792for f in $tm_file; do 12793 count=${count}x 12794done 12795if test $count = ax; then 12796 echo "Using \`$srcdir/config/$tm_file' as target machine macro file." 12797else 12798 echo "Using the following target machine macro files:" 12799 for f in $tm_file; do 12800 echo " $srcdir/config/$f" 12801 done 12802fi 12803 12804if test x$use_long_long_for_widest_fast_int = xyes; then 12805 12806$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h 12807 12808fi 12809 12810gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi` 12811 12812cat >>confdefs.h <<_ACEOF 12813#define HAVE_GNU_LD $gnu_ld_bool 12814_ACEOF 12815 12816 12817gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi` 12818 12819cat >>confdefs.h <<_ACEOF 12820#define HAVE_GNU_AS $gnu_as_bool 12821_ACEOF 12822 12823 12824count=a 12825for f in $host_xm_file; do 12826 count=${count}x 12827done 12828if test $count = a; then 12829 : 12830elif test $count = ax; then 12831 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." 12832else 12833 echo "Using the following host machine macro files:" 12834 for f in $host_xm_file; do 12835 echo " $srcdir/config/$f" 12836 done 12837fi 12838echo "Using ${out_host_hook_obj} for host machine hooks." 12839 12840if test "$host_xm_file" != "$build_xm_file"; then 12841 count=a 12842 for f in $build_xm_file; do 12843 count=${count}x 12844 done 12845 if test $count = a; then 12846 : 12847 elif test $count = ax; then 12848 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." 12849 else 12850 echo "Using the following build machine macro files:" 12851 for f in $build_xm_file; do 12852 echo " $srcdir/config/$f" 12853 done 12854 fi 12855fi 12856 12857if test -n "$configured_native_system_header_dir"; then 12858 native_system_header_dir=$configured_native_system_header_dir 12859fi 12860NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir" 12861 12862 12863case ${host} in 12864 powerpc*-*-darwin*) 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5 12866$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; } 12867if ${gcc_cv_mcontext_underscores+:} false; then : 12868 $as_echo_n "(cached) " >&6 12869else 12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12871/* end confdefs.h. */ 12872 12873#include <sys/cdefs.h> 12874#include <sys/signal.h> 12875#include <ucontext.h> 12876int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; } 12877 12878_ACEOF 12879if ac_fn_cxx_try_compile "$LINENO"; then : 12880 gcc_cv_mcontext_underscores=no 12881else 12882 gcc_cv_mcontext_underscores=yes 12883fi 12884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12885fi 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5 12887$as_echo "$gcc_cv_mcontext_underscores" >&6; } 12888 if test $gcc_cv_mcontext_underscores = yes; then 12889 12890$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h 12891 12892 fi 12893 ;; 12894esac 12895 12896# --------- 12897# Threading 12898# --------- 12899 12900# Check if a valid thread package 12901case ${enable_threads} in 12902 "" | no) 12903 # No threads 12904 target_thread_file='single' 12905 ;; 12906 yes) 12907 # default 12908 target_thread_file='single' 12909 ;; 12910 aix | dce | lynx | mipssde | posix | rtems | \ 12911 single | tpf | vxworks | win32) 12912 target_thread_file=${enable_threads} 12913 ;; 12914 *) 12915 echo "${enable_threads} is an unknown thread package" 1>&2 12916 exit 1 12917 ;; 12918esac 12919 12920if test x${thread_file} = x; then 12921 # No thread file set by target-specific clauses in config.gcc, 12922 # so use file chosen by default logic above 12923 thread_file=${target_thread_file} 12924fi 12925 12926# -------- 12927# UNSORTED 12928# -------- 12929 12930use_cxa_atexit=no 12931if test x$enable___cxa_atexit = xyes || \ 12932 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then 12933 if test x$host = x$target; then 12934 case $host in 12935 # mingw32 doesn't have __cxa_atexit but uses atexit registration 12936 # keyed to flag_use_cxa_atexit 12937 *-*-mingw32*) 12938 use_cxa_atexit=yes 12939 ;; 12940 powerpc-ibm-aix*) 12941 use_cxa_atexit=yes 12942 ;; 12943 *) 12944 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit" 12945if test "x$ac_cv_func___cxa_atexit" = xyes; then : 12946 use_cxa_atexit=yes 12947else 12948 echo "__cxa_atexit can't be enabled on this target" 12949fi 12950 12951 ;; 12952 esac 12953 else 12954 # We can't check for __cxa_atexit when building a cross, so assume 12955 # it is available 12956 use_cxa_atexit=yes 12957 fi 12958 if test x$use_cxa_atexit = xyes; then 12959 12960$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h 12961 12962 fi 12963fi 12964 12965# Look for a file containing extra machine modes. 12966if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then 12967 extra_modes_file='$(srcdir)'/config/${extra_modes} 12968 12969 12970cat >>confdefs.h <<_ACEOF 12971#define EXTRA_MODES_FILE "config/$extra_modes" 12972_ACEOF 12973 12974fi 12975 12976# Convert extra_options into a form suitable for Makefile use. 12977extra_opt_files= 12978all_opt_files= 12979for f in $extra_options; do 12980 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f" 12981 all_opt_files="$all_opt_files $srcdir/config/$f" 12982done 12983 12984 12985# auto-host.h is the file containing items generated by autoconf and is 12986# the first file included by config.h. 12987# If host=build, it is correct to have bconfig include auto-host.h 12988# as well. If host!=build, we are in error and need to do more 12989# work to find out the build config parameters. 12990if test x$host = x$build 12991then 12992 build_auto=auto-host.h 12993 HAVE_AUTO_BUILD='# ' 12994else 12995 # We create a subdir, then run autoconf in the subdir. 12996 # To prevent recursion we set host and build for the new 12997 # invocation of configure to the build for this invocation 12998 # of configure. 12999 tempdir=build.$$ 13000 rm -rf $tempdir 13001 mkdir $tempdir 13002 cd $tempdir 13003 case ${srcdir} in 13004 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};; 13005 *) realsrcdir=../${srcdir};; 13006 esac 13007 # Clearing GMPINC is necessary to prevent host headers being 13008 # used by the build compiler. Defining GENERATOR_FILE stops 13009 # system.h from including gmp.h. 13010 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ 13011 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \ 13012 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \ 13013 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \ 13014 ${realsrcdir}/configure \ 13015 --enable-languages=${enable_languages-all} \ 13016 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \ 13017 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \ 13018 --target=$target_alias --host=$build_alias \ 13019 --build=$build_alias || exit # retaining $tempdir 13020 13021 # We just finished tests for the build machine, so rename 13022 # the file auto-build.h in the gcc directory. 13023 mv auto-host.h ../auto-build.h 13024 cd .. 13025 rm -rf $tempdir 13026 build_auto=auto-build.h 13027 HAVE_AUTO_BUILD= 13028fi 13029 13030 13031 13032tm_file="${tm_file} defaults.h" 13033tm_p_file="${tm_p_file} tm-preds.h" 13034host_xm_file="auto-host.h ansidecl.h ${host_xm_file}" 13035build_xm_file="${build_auto} ansidecl.h ${build_xm_file}" 13036# We don't want ansidecl.h in target files, write code there in ISO/GNU C. 13037# put this back in temporarily. 13038xm_file="auto-host.h ansidecl.h ${xm_file}" 13039 13040# -------- 13041# UNSORTED 13042# -------- 13043 13044# Compile in configure arguments. 13045if test -f configargs.h ; then 13046 # Being re-configured. 13047 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'` 13048 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'` 13049 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then 13050 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" 13051 fi 13052else 13053 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS" 13054fi 13055 13056# Double all backslashes and backslash all quotes to turn 13057# gcc_config_arguments into a C string. 13058sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out 13059$gcc_config_arguments 13060EOF 13061gcc_config_arguments_str=`cat conftest.out` 13062rm -f conftest.out 13063 13064cat > configargs.h <<EOF 13065/* Generated automatically. */ 13066static const char configuration_arguments[] = "$gcc_config_arguments_str"; 13067static const char thread_model[] = "$thread_file"; 13068 13069static const struct { 13070 const char *name, *value; 13071} configure_default_options[] = $configure_default_options; 13072EOF 13073 13074gcc_BASEVER=`cat $srcdir/BASE-VER` 13075gcc_DEVPHASE=`cat $srcdir/DEV-PHASE` 13076gcc_DATESTAMP=`cat $srcdir/DATESTAMP` 13077if test -f $srcdir/REVISION ; then 13078 gcc_REVISION=`cat $srcdir/REVISION` 13079else 13080 gcc_REVISION="" 13081fi 13082cat > plugin-version.h <<EOF 13083#include "configargs.h" 13084 13085#define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'` 13086#define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'` 13087#define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'` 13088#define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR) 13089 13090static char basever[] = "$gcc_BASEVER"; 13091static char datestamp[] = "$gcc_DATESTAMP"; 13092static char devphase[] = "$gcc_DEVPHASE"; 13093static char revision[] = "$gcc_REVISION"; 13094 13095/* FIXME plugins: We should make the version information more precise. 13096 One way to do is to add a checksum. */ 13097 13098static struct plugin_gcc_version gcc_version = {basever, datestamp, 13099 devphase, revision, 13100 configuration_arguments}; 13101EOF 13102 13103# Determine what GCC version number to use in filesystem paths. 13104 13105 get_gcc_base_ver="cat" 13106 13107# Check whether --with-gcc-major-version-only was given. 13108if test "${with_gcc_major_version_only+set}" = set; then : 13109 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 13110 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 13111 fi 13112 13113fi 13114 13115 13116 13117 13118# Internationalization 13119# If we haven't got the data from the intl directory, 13120# assume NLS is disabled. 13121USE_NLS=no 13122LIBINTL= 13123LIBINTL_DEP= 13124INCINTL= 13125XGETTEXT= 13126GMSGFMT= 13127POSUB= 13128 13129if test -f ../intl/config.intl; then 13130 . ../intl/config.intl 13131fi 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13133$as_echo_n "checking whether NLS is requested... " >&6; } 13134if test x"$USE_NLS" != xyes; then 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13136$as_echo "no" >&6; } 13137else 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13139$as_echo "yes" >&6; } 13140 13141$as_echo "#define ENABLE_NLS 1" >>confdefs.h 13142 13143 13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 13145$as_echo_n "checking for catalogs to be installed... " >&6; } 13146 # Look for .po and .gmo files in the source directory. 13147 CATALOGS= 13148 XLINGUAS= 13149 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 13150 # If there aren't any .gmo files the shell will give us the 13151 # literal string "../path/to/srcdir/po/*.gmo" which has to be 13152 # weeded out. 13153 case "$cat" in *\**) 13154 continue;; 13155 esac 13156 # The quadruple backslash is collapsed to a double backslash 13157 # by the backticks, then collapsed again by the double quotes, 13158 # leaving us with one backslash in the sed expression (right 13159 # before the dot that mustn't act as a wildcard). 13160 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 13161 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 13162 # The user is allowed to set LINGUAS to a list of languages to 13163 # install catalogs for. If it's empty that means "all of them." 13164 if test "x$LINGUAS" = x; then 13165 CATALOGS="$CATALOGS $cat" 13166 XLINGUAS="$XLINGUAS $lang" 13167 else 13168 case "$LINGUAS" in *$lang*) 13169 CATALOGS="$CATALOGS $cat" 13170 XLINGUAS="$XLINGUAS $lang" 13171 ;; 13172 esac 13173 fi 13174 done 13175 LINGUAS="$XLINGUAS" 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 13177$as_echo "$LINGUAS" >&6; } 13178 13179 13180 DATADIRNAME=share 13181 13182 INSTOBJEXT=.mo 13183 13184 GENCAT=gencat 13185 13186 CATOBJEXT=.gmo 13187 13188fi 13189 13190# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get 13191# -liconv on the link line twice. 13192case "$LIBINTL" in *$LIBICONV*) 13193 LIBICONV= ;; 13194esac 13195 13196# Check whether --enable-secureplt was given. 13197if test "${enable_secureplt+set}" = set; then : 13198 enableval=$enable_secureplt; 13199fi 13200 13201 13202# Check whether --enable-mingw-wildcard was given. 13203if test "${enable_mingw_wildcard+set}" = set; then : 13204 enableval=$enable_mingw_wildcard; 13205else 13206 enable_mingw_wildcard=platform 13207fi 13208 13209if test x"$enable_mingw_wildcard" != xplatform ; then : 13210 13211cat >>confdefs.h <<_ACEOF 13212#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?) 13213_ACEOF 13214 13215fi 13216 13217# Check whether --enable-large-address-aware was given. 13218if test "${enable_large_address_aware+set}" = set; then : 13219 enableval=$enable_large_address_aware; 13220fi 13221 13222if test x"$enable_large_address_aware" = xyes; then : 13223 13224$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h 13225 13226fi 13227 13228# Check whether --enable-leading-mingw64-underscores was given. 13229if test "${enable_leading_mingw64_underscores+set}" = set; then : 13230 enableval=$enable_leading_mingw64_underscores; 13231fi 13232 13233if test x"$enable_leading_mingw64_underscores" = xyes ; then : 13234 13235$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h 13236 13237fi 13238 13239# Check whether --enable-cld was given. 13240if test "${enable_cld+set}" = set; then : 13241 enableval=$enable_cld; 13242else 13243 enable_cld=no 13244fi 13245 13246 13247# Check whether --enable-frame-pointer was given. 13248if test "${enable_frame_pointer+set}" = set; then : 13249 enableval=$enable_frame_pointer; 13250else 13251 13252case $target_os in 13253linux* | gnu* | darwin[8912]* | cygwin* | mingw*) 13254 # Enable -fomit-frame-pointer by default for these systems with DWARF2. 13255 enable_frame_pointer=no 13256 ;; 13257*) 13258 enable_frame_pointer=yes 13259 ;; 13260esac 13261 13262fi 13263 13264 13265case $target in 13266i[34567]86-*-* | x86_64-*-*) 13267 if test "x$enable_cld" = xyes; then 13268 tm_defines="${tm_defines} USE_IX86_CLD=1" 13269 fi 13270 if test "x$enable_frame_pointer" = xyes; then 13271 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" 13272 fi 13273 ;; 13274esac 13275 13276# Windows32 Registry support for specifying GCC installation paths. 13277# Check whether --enable-win32-registry was given. 13278if test "${enable_win32_registry+set}" = set; then : 13279 enableval=$enable_win32_registry; 13280fi 13281 13282 13283case $host_os in 13284 win32 | pe | cygwin* | mingw32*) 13285 if test "x$enable_win32_registry" != xno; then 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5 13287$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; } 13288if ${ac_cv_search_RegOpenKeyExA+:} false; then : 13289 $as_echo_n "(cached) " >&6 13290else 13291 ac_func_search_save_LIBS=$LIBS 13292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13293/* end confdefs.h. */ 13294 13295/* Override any GCC internal prototype to avoid an error. 13296 Use char because int might match the return type of a GCC 13297 builtin and then its argument prototype would still apply. */ 13298#ifdef __cplusplus 13299extern "C" 13300#endif 13301char RegOpenKeyExA (); 13302int 13303main () 13304{ 13305return RegOpenKeyExA (); 13306 ; 13307 return 0; 13308} 13309_ACEOF 13310for ac_lib in '' advapi32; do 13311 if test -z "$ac_lib"; then 13312 ac_res="none required" 13313 else 13314 ac_res=-l$ac_lib 13315 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13316 fi 13317 if ac_fn_cxx_try_link "$LINENO"; then : 13318 ac_cv_search_RegOpenKeyExA=$ac_res 13319fi 13320rm -f core conftest.err conftest.$ac_objext \ 13321 conftest$ac_exeext 13322 if ${ac_cv_search_RegOpenKeyExA+:} false; then : 13323 break 13324fi 13325done 13326if ${ac_cv_search_RegOpenKeyExA+:} false; then : 13327 13328else 13329 ac_cv_search_RegOpenKeyExA=no 13330fi 13331rm conftest.$ac_ext 13332LIBS=$ac_func_search_save_LIBS 13333fi 13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5 13335$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; } 13336ac_res=$ac_cv_search_RegOpenKeyExA 13337if test "$ac_res" != no; then : 13338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13339 13340else 13341 enable_win32_registry=no 13342fi 13343 13344 fi 13345 13346 if test "x$enable_win32_registry" != xno; then 13347 13348$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h 13349 13350 13351 if test "x$enable_win32_registry" != xyes \ 13352 && test "x$enable_win32_registry" != x; then 13353 13354cat >>confdefs.h <<_ACEOF 13355#define WIN32_REGISTRY_KEY "$enable_win32_registry" 13356_ACEOF 13357 13358 fi 13359 fi 13360 ;; 13361esac 13362 13363# Get an absolute path to the GCC top-level source directory 13364holddir=`${PWDCMD-pwd}` 13365cd $srcdir 13366topdir=`${PWDCMD-pwd}` 13367cd $holddir 13368 13369# Conditionalize the makefile for this host machine. 13370xmake_file= 13371for f in ${host_xmake_file} 13372do 13373 if test -f ${srcdir}/config/$f 13374 then 13375 xmake_file="${xmake_file} \$(srcdir)/config/$f" 13376 fi 13377done 13378 13379# Conditionalize the makefile for this target machine. 13380tmake_file_= 13381for f in ${tmake_file} 13382do 13383 if test -f ${srcdir}/config/$f 13384 then 13385 tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 13386 fi 13387done 13388tmake_file="${tmake_file_}${omp_device_property_tmake_file}" 13389 13390out_object_file=`basename $out_file .cc`.o 13391common_out_object_file=`basename $common_out_file .cc`.o 13392 13393tm_file_list="options.h" 13394tm_include_list="options.h insn-constants.h" 13395for f in $tm_file; do 13396 case $f in 13397 ./* ) 13398 f=`echo $f | sed 's/^..//'` 13399 tm_file_list="${tm_file_list} $f" 13400 tm_include_list="${tm_include_list} $f" 13401 ;; 13402 defaults.h ) 13403 tm_file_list="${tm_file_list} \$(srcdir)/$f" 13404 tm_include_list="${tm_include_list} $f" 13405 ;; 13406 * ) 13407 tm_file_list="${tm_file_list} \$(srcdir)/config/$f" 13408 tm_include_list="${tm_include_list} config/$f" 13409 ;; 13410 esac 13411done 13412 13413tm_p_file_list= 13414tm_p_include_list= 13415for f in $tm_p_file; do 13416 case $f in 13417 tm-preds.h ) 13418 tm_p_file_list="${tm_p_file_list} $f" 13419 tm_p_include_list="${tm_p_include_list} $f" 13420 ;; 13421 * ) 13422 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f" 13423 tm_p_include_list="${tm_p_include_list} config/$f" 13424 esac 13425done 13426 13427tm_d_file_list= 13428tm_d_include_list= 13429for f in $tm_d_file; do 13430 case $f in 13431 * ) 13432 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f" 13433 tm_d_include_list="${tm_d_include_list} config/$f" 13434 ;; 13435 esac 13436done 13437 13438xm_file_list= 13439xm_include_list= 13440for f in $xm_file; do 13441 case $f in 13442 ansidecl.h ) 13443 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f" 13444 xm_include_list="${xm_include_list} $f" 13445 ;; 13446 auto-host.h ) 13447 xm_file_list="${xm_file_list} $f" 13448 xm_include_list="${xm_include_list} $f" 13449 ;; 13450 * ) 13451 xm_file_list="${xm_file_list} \$(srcdir)/config/$f" 13452 xm_include_list="${xm_include_list} config/$f" 13453 ;; 13454 esac 13455done 13456 13457host_xm_file_list= 13458host_xm_include_list= 13459for f in $host_xm_file; do 13460 case $f in 13461 ansidecl.h ) 13462 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f" 13463 host_xm_include_list="${host_xm_include_list} $f" 13464 ;; 13465 auto-host.h ) 13466 host_xm_file_list="${host_xm_file_list} $f" 13467 host_xm_include_list="${host_xm_include_list} $f" 13468 ;; 13469 * ) 13470 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" 13471 host_xm_include_list="${host_xm_include_list} config/$f" 13472 ;; 13473 esac 13474done 13475 13476build_xm_file_list= 13477for f in $build_xm_file; do 13478 case $f in 13479 ansidecl.h ) 13480 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f" 13481 build_xm_include_list="${build_xm_include_list} $f" 13482 ;; 13483 auto-build.h | auto-host.h ) 13484 build_xm_file_list="${build_xm_file_list} $f" 13485 build_xm_include_list="${build_xm_include_list} $f" 13486 ;; 13487 * ) 13488 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" 13489 build_xm_include_list="${build_xm_include_list} config/$f" 13490 ;; 13491 esac 13492done 13493 13494# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a 13495# cross-compiler which does not use the native headers and libraries. 13496# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR. 13497CROSS= 13498ALL=all.internal 13499SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' 13500BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR 13501 13502if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x || 13503 test x$build != x$host || test "x$with_build_sysroot" != x; then 13504 if test "x$with_build_sysroot" != x; then 13505 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' 13506 else 13507 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 13508 fi 13509 13510 if test x$host != x$target 13511 then 13512 CROSS="-DCROSS_DIRECTORY_STRUCTURE" 13513 ALL=all.cross 13514 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR 13515 elif test "x$TARGET_SYSTEM_ROOT" != x; then 13516 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 13517 fi 13518 13519 if test "x$with_build_sysroot" != "x"; then 13520 target_header_dir="${with_build_sysroot}${native_system_header_dir}" 13521 elif test "x$with_sysroot" = x; then 13522 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include" 13523 elif test "x$with_sysroot" = xyes; then 13524 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}" 13525 else 13526 target_header_dir="${with_sysroot}${native_system_header_dir}" 13527 fi 13528else 13529 target_header_dir=${native_system_header_dir} 13530fi 13531 13532# If this is a cross-compiler that does not 13533# have its own set of headers then define 13534# inhibit_libc 13535 13536# If this is using newlib, without having the headers available now, 13537# then define inhibit_libc in LIBGCC2_CFLAGS. 13538# This prevents libgcc2 from containing any code which requires libc 13539# support. 13540: ${inhibit_libc=false} 13541if { { test x$host != x$target && test "x$with_sysroot" = x ; } || 13542 test x$with_newlib = xyes ; } && 13543 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then 13544 inhibit_libc=true 13545fi 13546 13547 13548# When building gcc with a cross-compiler, we need to adjust things so 13549# that the generator programs are still built with the native compiler. 13550# Also, we cannot run fixincludes. 13551 13552# These are the normal (build=host) settings: 13553CC_FOR_BUILD='$(CC)' 13554CXX_FOR_BUILD='$(CXX)' 13555BUILD_CFLAGS='$(ALL_CFLAGS)' 13556BUILD_CXXFLAGS='$(ALL_CXXFLAGS)' 13557BUILD_LDFLAGS='$(LDFLAGS)' 13558STMP_FIXINC=stmp-fixinc 13559 13560# And these apply if build != host, or we are generating coverage data 13561if test x$build != x$host || test "x$coverage_flags" != x 13562then 13563 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)' 13564 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)' 13565 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)' 13566fi 13567 13568# Expand extra_headers to include complete path. 13569# This substitutes for lots of t-* files. 13570extra_headers_list= 13571# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers. 13572for file in ${extra_headers} ; do 13573 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}" 13574done 13575 13576# If use_gcc_tgmath is set, append ginclude/tgmath.h. 13577if test x"$use_gcc_tgmath" = xyes 13578then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h" 13579fi 13580 13581# Define collect2 in Makefile. 13582case $host_can_use_collect2 in 13583 no) collect2= ;; 13584 *) collect2='collect2$(exeext)' ;; 13585esac 13586 13587 13588# Add a definition of USE_COLLECT2 if system wants one. 13589case $use_collect2 in 13590 no) use_collect2= ;; 13591 "") ;; 13592 *) 13593 host_xm_defines="${host_xm_defines} USE_COLLECT2" 13594 xm_defines="${xm_defines} USE_COLLECT2" 13595 case $host_can_use_collect2 in 13596 no) 13597 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5 13598 ;; 13599 esac 13600 ;; 13601esac 13602 13603 13604cat >>confdefs.h <<_ACEOF 13605#define LTOPLUGINSONAME "${host_lto_plugin_soname}" 13606_ACEOF 13607 13608 13609# --------------------------- 13610# Assembler & linker features 13611# --------------------------- 13612 13613# During stage 2, ld is actually gcc/collect-ld, which is a small script to 13614# discern between when to use prev-ld/ld-new and when to use ld/ld-new. 13615# However when ld-new is first executed from the build tree, libtool will 13616# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers 13617# to the build tree. While doing this we need to use the previous-stage 13618# linker, or we have an infinite loop. The presence of a shell script as 13619# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses 13620# the gcc/collect-ld script. So we need to know how libtool works, or 13621# exec-tool will fail. 13622 13623 13624case `pwd` in 13625 *\ * | *\ *) 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 13627$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 13628esac 13629 13630 13631 13632macro_version='2.2.7a' 13633macro_revision='1.3134' 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647ltmain="$ac_aux_dir/ltmain.sh" 13648 13649# Backslashify metacharacters that are still active within 13650# double-quoted strings. 13651sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13652 13653# Same as above, but do not quote variable references. 13654double_quote_subst='s/\(["`\\]\)/\\\1/g' 13655 13656# Sed substitution to delay expansion of an escaped shell variable in a 13657# double_quote_subst'ed string. 13658delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13659 13660# Sed substitution to delay expansion of an escaped single quote. 13661delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13662 13663# Sed substitution to avoid accidental globbing in evaled expressions 13664no_glob_subst='s/\*/\\\*/g' 13665 13666ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13667ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13668ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13669 13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13671$as_echo_n "checking how to print strings... " >&6; } 13672# Test print first, because it will be a builtin if present. 13673if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 13674 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13675 ECHO='print -r --' 13676elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13677 ECHO='printf %s\n' 13678else 13679 # Use this function as a fallback that always works. 13680 func_fallback_echo () 13681 { 13682 eval 'cat <<_LTECHO_EOF 13683$1 13684_LTECHO_EOF' 13685 } 13686 ECHO='func_fallback_echo' 13687fi 13688 13689# func_echo_all arg... 13690# Invoke $ECHO with all args, space-separated. 13691func_echo_all () 13692{ 13693 $ECHO "" 13694} 13695 13696case "$ECHO" in 13697 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13698$as_echo "printf" >&6; } ;; 13699 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13700$as_echo "print -r" >&6; } ;; 13701 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13702$as_echo "cat" >&6; } ;; 13703esac 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13719$as_echo_n "checking for a sed that does not truncate output... " >&6; } 13720if ${ac_cv_path_SED+:} false; then : 13721 $as_echo_n "(cached) " >&6 13722else 13723 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13724 for ac_i in 1 2 3 4 5 6 7; do 13725 ac_script="$ac_script$as_nl$ac_script" 13726 done 13727 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13728 { ac_script=; unset ac_script;} 13729 if test -z "$SED"; then 13730 ac_path_SED_found=false 13731 # Loop through the user's path and test for each of PROGNAME-LIST 13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13733for as_dir in $PATH 13734do 13735 IFS=$as_save_IFS 13736 test -z "$as_dir" && as_dir=. 13737 for ac_prog in sed gsed; do 13738 for ac_exec_ext in '' $ac_executable_extensions; do 13739 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13740 as_fn_executable_p "$ac_path_SED" || continue 13741# Check for GNU ac_path_SED and select it if it is found. 13742 # Check for GNU $ac_path_SED 13743case `"$ac_path_SED" --version 2>&1` in 13744*GNU*) 13745 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13746*) 13747 ac_count=0 13748 $as_echo_n 0123456789 >"conftest.in" 13749 while : 13750 do 13751 cat "conftest.in" "conftest.in" >"conftest.tmp" 13752 mv "conftest.tmp" "conftest.in" 13753 cp "conftest.in" "conftest.nl" 13754 $as_echo '' >> "conftest.nl" 13755 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13757 as_fn_arith $ac_count + 1 && ac_count=$as_val 13758 if test $ac_count -gt ${ac_path_SED_max-0}; then 13759 # Best one so far, save it but keep looking for a better one 13760 ac_cv_path_SED="$ac_path_SED" 13761 ac_path_SED_max=$ac_count 13762 fi 13763 # 10*(2^10) chars as input seems more than enough 13764 test $ac_count -gt 10 && break 13765 done 13766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13767esac 13768 13769 $ac_path_SED_found && break 3 13770 done 13771 done 13772 done 13773IFS=$as_save_IFS 13774 if test -z "$ac_cv_path_SED"; then 13775 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13776 fi 13777else 13778 ac_cv_path_SED=$SED 13779fi 13780 13781fi 13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13783$as_echo "$ac_cv_path_SED" >&6; } 13784 SED="$ac_cv_path_SED" 13785 rm -f conftest.sed 13786 13787test -z "$SED" && SED=sed 13788Xsed="$SED -e 1s/^X//" 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13801$as_echo_n "checking for fgrep... " >&6; } 13802if ${ac_cv_path_FGREP+:} false; then : 13803 $as_echo_n "(cached) " >&6 13804else 13805 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13806 then ac_cv_path_FGREP="$GREP -F" 13807 else 13808 if test -z "$FGREP"; then 13809 ac_path_FGREP_found=false 13810 # Loop through the user's path and test for each of PROGNAME-LIST 13811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13813do 13814 IFS=$as_save_IFS 13815 test -z "$as_dir" && as_dir=. 13816 for ac_prog in fgrep; do 13817 for ac_exec_ext in '' $ac_executable_extensions; do 13818 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13819 as_fn_executable_p "$ac_path_FGREP" || continue 13820# Check for GNU ac_path_FGREP and select it if it is found. 13821 # Check for GNU $ac_path_FGREP 13822case `"$ac_path_FGREP" --version 2>&1` in 13823*GNU*) 13824 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13825*) 13826 ac_count=0 13827 $as_echo_n 0123456789 >"conftest.in" 13828 while : 13829 do 13830 cat "conftest.in" "conftest.in" >"conftest.tmp" 13831 mv "conftest.tmp" "conftest.in" 13832 cp "conftest.in" "conftest.nl" 13833 $as_echo 'FGREP' >> "conftest.nl" 13834 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13836 as_fn_arith $ac_count + 1 && ac_count=$as_val 13837 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13838 # Best one so far, save it but keep looking for a better one 13839 ac_cv_path_FGREP="$ac_path_FGREP" 13840 ac_path_FGREP_max=$ac_count 13841 fi 13842 # 10*(2^10) chars as input seems more than enough 13843 test $ac_count -gt 10 && break 13844 done 13845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13846esac 13847 13848 $ac_path_FGREP_found && break 3 13849 done 13850 done 13851 done 13852IFS=$as_save_IFS 13853 if test -z "$ac_cv_path_FGREP"; then 13854 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13855 fi 13856else 13857 ac_cv_path_FGREP=$FGREP 13858fi 13859 13860 fi 13861fi 13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13863$as_echo "$ac_cv_path_FGREP" >&6; } 13864 FGREP="$ac_cv_path_FGREP" 13865 13866 13867test -z "$GREP" && GREP=grep 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887# Check whether --with-gnu-ld was given. 13888if test "${with_gnu_ld+set}" = set; then : 13889 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13890else 13891 with_gnu_ld=no 13892fi 13893 13894ac_prog=ld 13895if test "$GCC" = yes; then 13896 # Check if gcc -print-prog-name=ld gives a path. 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13898$as_echo_n "checking for ld used by $CC... " >&6; } 13899 case $host in 13900 *-*-mingw*) 13901 # gcc leaves a trailing carriage return which upsets mingw 13902 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13903 *) 13904 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13905 esac 13906 case $ac_prog in 13907 # Accept absolute paths. 13908 [\\/]* | ?:[\\/]*) 13909 re_direlt='/[^/][^/]*/\.\./' 13910 # Canonicalize the pathname of ld 13911 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13912 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13913 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13914 done 13915 test -z "$LD" && LD="$ac_prog" 13916 ;; 13917 "") 13918 # If it fails, then pretend we aren't using GCC. 13919 ac_prog=ld 13920 ;; 13921 *) 13922 # If it is relative, then search for the first ld in PATH. 13923 with_gnu_ld=unknown 13924 ;; 13925 esac 13926elif test "$with_gnu_ld" = yes; then 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13928$as_echo_n "checking for GNU ld... " >&6; } 13929else 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13931$as_echo_n "checking for non-GNU ld... " >&6; } 13932fi 13933if ${lt_cv_path_LD+:} false; then : 13934 $as_echo_n "(cached) " >&6 13935else 13936 if test -z "$LD"; then 13937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13938 for ac_dir in $PATH; do 13939 IFS="$lt_save_ifs" 13940 test -z "$ac_dir" && ac_dir=. 13941 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13942 lt_cv_path_LD="$ac_dir/$ac_prog" 13943 # Check to see if the program is GNU ld. I'd rather use --version, 13944 # but apparently some variants of GNU ld only accept -v. 13945 # Break only if it was the GNU/non-GNU ld that we prefer. 13946 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13947 *GNU* | *'with BFD'*) 13948 test "$with_gnu_ld" != no && break 13949 ;; 13950 *) 13951 test "$with_gnu_ld" != yes && break 13952 ;; 13953 esac 13954 fi 13955 done 13956 IFS="$lt_save_ifs" 13957else 13958 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13959fi 13960fi 13961 13962LD="$lt_cv_path_LD" 13963if test -n "$LD"; then 13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13965$as_echo "$LD" >&6; } 13966else 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13968$as_echo "no" >&6; } 13969fi 13970test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13972$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13973if ${lt_cv_prog_gnu_ld+:} false; then : 13974 $as_echo_n "(cached) " >&6 13975else 13976 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13977case `$LD -v 2>&1 </dev/null` in 13978*GNU* | *'with BFD'*) 13979 lt_cv_prog_gnu_ld=yes 13980 ;; 13981*) 13982 lt_cv_prog_gnu_ld=no 13983 ;; 13984esac 13985fi 13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13987$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13988with_gnu_ld=$lt_cv_prog_gnu_ld 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 13999$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 14000if ${lt_cv_path_NM+:} false; then : 14001 $as_echo_n "(cached) " >&6 14002else 14003 if test -n "$NM"; then 14004 # Let the user override the test. 14005 lt_cv_path_NM="$NM" 14006else 14007 lt_nm_to_check="${ac_tool_prefix}nm" 14008 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 14009 lt_nm_to_check="$lt_nm_to_check nm" 14010 fi 14011 for lt_tmp_nm in $lt_nm_to_check; do 14012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14013 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 14014 IFS="$lt_save_ifs" 14015 test -z "$ac_dir" && ac_dir=. 14016 tmp_nm="$ac_dir/$lt_tmp_nm" 14017 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 14018 # Check to see if the nm accepts a BSD-compat flag. 14019 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 14020 # nm: unknown option "B" ignored 14021 # Tru64's nm complains that /dev/null is an invalid object file 14022 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 14023 */dev/null* | *'Invalid file or object type'*) 14024 lt_cv_path_NM="$tmp_nm -B" 14025 break 14026 ;; 14027 *) 14028 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 14029 */dev/null*) 14030 lt_cv_path_NM="$tmp_nm -p" 14031 break 14032 ;; 14033 *) 14034 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 14035 continue # so that we can try to find one that supports BSD flags 14036 ;; 14037 esac 14038 ;; 14039 esac 14040 fi 14041 done 14042 IFS="$lt_save_ifs" 14043 done 14044 : ${lt_cv_path_NM=no} 14045fi 14046fi 14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 14048$as_echo "$lt_cv_path_NM" >&6; } 14049if test "$lt_cv_path_NM" != "no"; then 14050 NM="$lt_cv_path_NM" 14051else 14052 # Didn't find any BSD compatible name lister, look for dumpbin. 14053 if test -n "$DUMPBIN"; then : 14054 # Let the user override the test. 14055 else 14056 if test -n "$ac_tool_prefix"; then 14057 for ac_prog in dumpbin "link -dump" 14058 do 14059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14060set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14062$as_echo_n "checking for $ac_word... " >&6; } 14063if ${ac_cv_prog_DUMPBIN+:} false; then : 14064 $as_echo_n "(cached) " >&6 14065else 14066 if test -n "$DUMPBIN"; then 14067 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 14068else 14069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14070for as_dir in $PATH 14071do 14072 IFS=$as_save_IFS 14073 test -z "$as_dir" && as_dir=. 14074 for ac_exec_ext in '' $ac_executable_extensions; do 14075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14076 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 14077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14078 break 2 14079 fi 14080done 14081 done 14082IFS=$as_save_IFS 14083 14084fi 14085fi 14086DUMPBIN=$ac_cv_prog_DUMPBIN 14087if test -n "$DUMPBIN"; then 14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 14089$as_echo "$DUMPBIN" >&6; } 14090else 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14092$as_echo "no" >&6; } 14093fi 14094 14095 14096 test -n "$DUMPBIN" && break 14097 done 14098fi 14099if test -z "$DUMPBIN"; then 14100 ac_ct_DUMPBIN=$DUMPBIN 14101 for ac_prog in dumpbin "link -dump" 14102do 14103 # Extract the first word of "$ac_prog", so it can be a program name with args. 14104set dummy $ac_prog; ac_word=$2 14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14106$as_echo_n "checking for $ac_word... " >&6; } 14107if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 14108 $as_echo_n "(cached) " >&6 14109else 14110 if test -n "$ac_ct_DUMPBIN"; then 14111 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 14112else 14113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14114for as_dir in $PATH 14115do 14116 IFS=$as_save_IFS 14117 test -z "$as_dir" && as_dir=. 14118 for ac_exec_ext in '' $ac_executable_extensions; do 14119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14120 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 14121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14122 break 2 14123 fi 14124done 14125 done 14126IFS=$as_save_IFS 14127 14128fi 14129fi 14130ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 14131if test -n "$ac_ct_DUMPBIN"; then 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 14133$as_echo "$ac_ct_DUMPBIN" >&6; } 14134else 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14136$as_echo "no" >&6; } 14137fi 14138 14139 14140 test -n "$ac_ct_DUMPBIN" && break 14141done 14142 14143 if test "x$ac_ct_DUMPBIN" = x; then 14144 DUMPBIN=":" 14145 else 14146 case $cross_compiling:$ac_tool_warned in 14147yes:) 14148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14150ac_tool_warned=yes ;; 14151esac 14152 DUMPBIN=$ac_ct_DUMPBIN 14153 fi 14154fi 14155 14156 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 14157 *COFF*) 14158 DUMPBIN="$DUMPBIN -symbols" 14159 ;; 14160 *) 14161 DUMPBIN=: 14162 ;; 14163 esac 14164 fi 14165 14166 if test "$DUMPBIN" != ":"; then 14167 NM="$DUMPBIN" 14168 fi 14169fi 14170test -z "$NM" && NM=nm 14171 14172 14173 14174 14175 14176 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 14178$as_echo_n "checking the name lister ($NM) interface... " >&6; } 14179if ${lt_cv_nm_interface+:} false; then : 14180 $as_echo_n "(cached) " >&6 14181else 14182 lt_cv_nm_interface="BSD nm" 14183 echo "int some_variable = 0;" > conftest.$ac_ext 14184 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 14185 (eval "$ac_compile" 2>conftest.err) 14186 cat conftest.err >&5 14187 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 14188 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 14189 cat conftest.err >&5 14190 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 14191 cat conftest.out >&5 14192 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 14193 lt_cv_nm_interface="MS dumpbin" 14194 fi 14195 rm -f conftest* 14196fi 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 14198$as_echo "$lt_cv_nm_interface" >&6; } 14199 14200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 14201$as_echo_n "checking whether ln -s works... " >&6; } 14202LN_S=$as_ln_s 14203if test "$LN_S" = "ln -s"; then 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14205$as_echo "yes" >&6; } 14206else 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 14208$as_echo "no, using $LN_S" >&6; } 14209fi 14210 14211# find the maximum length of command line arguments 14212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 14213$as_echo_n "checking the maximum length of command line arguments... " >&6; } 14214if ${lt_cv_sys_max_cmd_len+:} false; then : 14215 $as_echo_n "(cached) " >&6 14216else 14217 i=0 14218 teststring="ABCD" 14219 14220 case $build_os in 14221 msdosdjgpp*) 14222 # On DJGPP, this test can blow up pretty badly due to problems in libc 14223 # (any single argument exceeding 2000 bytes causes a buffer overrun 14224 # during glob expansion). Even if it were fixed, the result of this 14225 # check would be larger than it should be. 14226 lt_cv_sys_max_cmd_len=12288; # 12K is about right 14227 ;; 14228 14229 gnu*) 14230 # Under GNU Hurd, this test is not required because there is 14231 # no limit to the length of command line arguments. 14232 # Libtool will interpret -1 as no limit whatsoever 14233 lt_cv_sys_max_cmd_len=-1; 14234 ;; 14235 14236 cygwin* | mingw* | cegcc*) 14237 # On Win9x/ME, this test blows up -- it succeeds, but takes 14238 # about 5 minutes as the teststring grows exponentially. 14239 # Worse, since 9x/ME are not pre-emptively multitasking, 14240 # you end up with a "frozen" computer, even though with patience 14241 # the test eventually succeeds (with a max line length of 256k). 14242 # Instead, let's just punt: use the minimum linelength reported by 14243 # all of the supported platforms: 8192 (on NT/2K/XP). 14244 lt_cv_sys_max_cmd_len=8192; 14245 ;; 14246 14247 mint*) 14248 # On MiNT this can take a long time and run out of memory. 14249 lt_cv_sys_max_cmd_len=8192; 14250 ;; 14251 14252 amigaos*) 14253 # On AmigaOS with pdksh, this test takes hours, literally. 14254 # So we just punt and use a minimum line length of 8192. 14255 lt_cv_sys_max_cmd_len=8192; 14256 ;; 14257 14258 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 14259 # This has been around since 386BSD, at least. Likely further. 14260 if test -x /sbin/sysctl; then 14261 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 14262 elif test -x /usr/sbin/sysctl; then 14263 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 14264 else 14265 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 14266 fi 14267 # And add a safety zone 14268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 14269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 14270 ;; 14271 14272 interix*) 14273 # We know the value 262144 and hardcode it with a safety zone (like BSD) 14274 lt_cv_sys_max_cmd_len=196608 14275 ;; 14276 14277 osf*) 14278 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 14279 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 14280 # nice to cause kernel panics so lets avoid the loop below. 14281 # First set a reasonable default. 14282 lt_cv_sys_max_cmd_len=16384 14283 # 14284 if test -x /sbin/sysconfig; then 14285 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 14286 *1*) lt_cv_sys_max_cmd_len=-1 ;; 14287 esac 14288 fi 14289 ;; 14290 sco3.2v5*) 14291 lt_cv_sys_max_cmd_len=102400 14292 ;; 14293 sysv5* | sco5v6* | sysv4.2uw2*) 14294 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 14295 if test -n "$kargmax"; then 14296 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 14297 else 14298 lt_cv_sys_max_cmd_len=32768 14299 fi 14300 ;; 14301 *) 14302 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 14303 if test -n "$lt_cv_sys_max_cmd_len"; then 14304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 14305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 14306 else 14307 # Make teststring a little bigger before we do anything with it. 14308 # a 1K string should be a reasonable start. 14309 for i in 1 2 3 4 5 6 7 8 ; do 14310 teststring=$teststring$teststring 14311 done 14312 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 14313 # If test is not a shell built-in, we'll probably end up computing a 14314 # maximum length that is only half of the actual maximum length, but 14315 # we can't tell. 14316 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 14317 = "X$teststring$teststring"; } >/dev/null 2>&1 && 14318 test $i != 17 # 1/2 MB should be enough 14319 do 14320 i=`expr $i + 1` 14321 teststring=$teststring$teststring 14322 done 14323 # Only check the string length outside the loop. 14324 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 14325 teststring= 14326 # Add a significant safety factor because C++ compilers can tack on 14327 # massive amounts of additional arguments before passing them to the 14328 # linker. It appears as though 1/2 is a usable value. 14329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 14330 fi 14331 ;; 14332 esac 14333 14334fi 14335 14336if test -n $lt_cv_sys_max_cmd_len ; then 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 14338$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 14339else 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 14341$as_echo "none" >&6; } 14342fi 14343max_cmd_len=$lt_cv_sys_max_cmd_len 14344 14345 14346 14347 14348 14349 14350: ${CP="cp -f"} 14351: ${MV="mv -f"} 14352: ${RM="rm -f"} 14353 14354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 14355$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 14356# Try some XSI features 14357xsi_shell=no 14358( _lt_dummy="a/b/c" 14359 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 14360 = c,a/b,, \ 14361 && eval 'test $(( 1 + 1 )) -eq 2 \ 14362 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 14363 && xsi_shell=yes 14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 14365$as_echo "$xsi_shell" >&6; } 14366 14367 14368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 14369$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 14370lt_shell_append=no 14371( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 14372 >/dev/null 2>&1 \ 14373 && lt_shell_append=yes 14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 14375$as_echo "$lt_shell_append" >&6; } 14376 14377 14378if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14379 lt_unset=unset 14380else 14381 lt_unset=false 14382fi 14383 14384 14385 14386 14387 14388# test EBCDIC or ASCII 14389case `echo X|tr X '\101'` in 14390 A) # ASCII based system 14391 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 14392 lt_SP2NL='tr \040 \012' 14393 lt_NL2SP='tr \015\012 \040\040' 14394 ;; 14395 *) # EBCDIC based system 14396 lt_SP2NL='tr \100 \n' 14397 lt_NL2SP='tr \r\n \100\100' 14398 ;; 14399esac 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 14410$as_echo_n "checking for $LD option to reload object files... " >&6; } 14411if ${lt_cv_ld_reload_flag+:} false; then : 14412 $as_echo_n "(cached) " >&6 14413else 14414 lt_cv_ld_reload_flag='-r' 14415fi 14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 14417$as_echo "$lt_cv_ld_reload_flag" >&6; } 14418reload_flag=$lt_cv_ld_reload_flag 14419case $reload_flag in 14420"" | " "*) ;; 14421*) reload_flag=" $reload_flag" ;; 14422esac 14423reload_cmds='$LD$reload_flag -o $output$reload_objs' 14424case $host_os in 14425 darwin*) 14426 if test "$GCC" = yes; then 14427 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 14428 else 14429 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14430 fi 14431 ;; 14432esac 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442if test -n "$ac_tool_prefix"; then 14443 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14444set dummy ${ac_tool_prefix}objdump; ac_word=$2 14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14446$as_echo_n "checking for $ac_word... " >&6; } 14447if ${ac_cv_prog_OBJDUMP+:} false; then : 14448 $as_echo_n "(cached) " >&6 14449else 14450 if test -n "$OBJDUMP"; then 14451 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14452else 14453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14454for as_dir in $PATH 14455do 14456 IFS=$as_save_IFS 14457 test -z "$as_dir" && as_dir=. 14458 for ac_exec_ext in '' $ac_executable_extensions; do 14459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14460 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14462 break 2 14463 fi 14464done 14465 done 14466IFS=$as_save_IFS 14467 14468fi 14469fi 14470OBJDUMP=$ac_cv_prog_OBJDUMP 14471if test -n "$OBJDUMP"; then 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14473$as_echo "$OBJDUMP" >&6; } 14474else 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14476$as_echo "no" >&6; } 14477fi 14478 14479 14480fi 14481if test -z "$ac_cv_prog_OBJDUMP"; then 14482 ac_ct_OBJDUMP=$OBJDUMP 14483 # Extract the first word of "objdump", so it can be a program name with args. 14484set dummy objdump; ac_word=$2 14485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14486$as_echo_n "checking for $ac_word... " >&6; } 14487if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 14488 $as_echo_n "(cached) " >&6 14489else 14490 if test -n "$ac_ct_OBJDUMP"; then 14491 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14492else 14493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14494for as_dir in $PATH 14495do 14496 IFS=$as_save_IFS 14497 test -z "$as_dir" && as_dir=. 14498 for ac_exec_ext in '' $ac_executable_extensions; do 14499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14500 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14502 break 2 14503 fi 14504done 14505 done 14506IFS=$as_save_IFS 14507 14508fi 14509fi 14510ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 14511if test -n "$ac_ct_OBJDUMP"; then 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 14513$as_echo "$ac_ct_OBJDUMP" >&6; } 14514else 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14516$as_echo "no" >&6; } 14517fi 14518 14519 if test "x$ac_ct_OBJDUMP" = x; then 14520 OBJDUMP="false" 14521 else 14522 case $cross_compiling:$ac_tool_warned in 14523yes:) 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14526ac_tool_warned=yes ;; 14527esac 14528 OBJDUMP=$ac_ct_OBJDUMP 14529 fi 14530else 14531 OBJDUMP="$ac_cv_prog_OBJDUMP" 14532fi 14533 14534test -z "$OBJDUMP" && OBJDUMP=objdump 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 14545$as_echo_n "checking how to recognize dependent libraries... " >&6; } 14546if ${lt_cv_deplibs_check_method+:} false; then : 14547 $as_echo_n "(cached) " >&6 14548else 14549 lt_cv_file_magic_cmd='$MAGIC_CMD' 14550lt_cv_file_magic_test_file= 14551lt_cv_deplibs_check_method='unknown' 14552# Need to set the preceding variable on all platforms that support 14553# interlibrary dependencies. 14554# 'none' -- dependencies not supported. 14555# `unknown' -- same as none, but documents that we really don't know. 14556# 'pass_all' -- all dependencies passed with no checks. 14557# 'test_compile' -- check by making test program. 14558# 'file_magic [[regex]]' -- check by looking for files in library path 14559# which responds to the $file_magic_cmd with a given extended regex. 14560# If you have `file' or equivalent on your system and you're not sure 14561# whether `pass_all' will *always* work, you probably want this one. 14562 14563case $host_os in 14564aix[4-9]*) 14565 lt_cv_deplibs_check_method=pass_all 14566 ;; 14567 14568beos*) 14569 lt_cv_deplibs_check_method=pass_all 14570 ;; 14571 14572bsdi[45]*) 14573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 14574 lt_cv_file_magic_cmd='/usr/bin/file -L' 14575 lt_cv_file_magic_test_file=/shlib/libc.so 14576 ;; 14577 14578cygwin*) 14579 # func_win32_libid is a shell function defined in ltmain.sh 14580 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14581 lt_cv_file_magic_cmd='func_win32_libid' 14582 ;; 14583 14584mingw* | pw32*) 14585 # Base MSYS/MinGW do not provide the 'file' command needed by 14586 # func_win32_libid shell function, so use a weaker test based on 'objdump', 14587 # unless we find 'file', for example because we are cross-compiling. 14588 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 14589 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 14590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14591 lt_cv_file_magic_cmd='func_win32_libid' 14592 else 14593 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 14594 lt_cv_file_magic_cmd='$OBJDUMP -f' 14595 fi 14596 ;; 14597 14598cegcc*) 14599 # use the weaker test based on 'objdump'. See mingw*. 14600 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 14601 lt_cv_file_magic_cmd='$OBJDUMP -f' 14602 ;; 14603 14604darwin* | rhapsody*) 14605 lt_cv_deplibs_check_method=pass_all 14606 ;; 14607 14608freebsd* | dragonfly*) 14609 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14610 case $host_cpu in 14611 i*86 ) 14612 # Not sure whether the presence of OpenBSD here was a mistake. 14613 # Let's accept both of them until this is cleared up. 14614 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 14615 lt_cv_file_magic_cmd=/usr/bin/file 14616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 14617 ;; 14618 esac 14619 else 14620 lt_cv_deplibs_check_method=pass_all 14621 fi 14622 ;; 14623 14624gnu*) 14625 lt_cv_deplibs_check_method=pass_all 14626 ;; 14627 14628haiku*) 14629 lt_cv_deplibs_check_method=pass_all 14630 ;; 14631 14632hpux10.20* | hpux11*) 14633 lt_cv_file_magic_cmd=/usr/bin/file 14634 case $host_cpu in 14635 ia64*) 14636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 14637 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 14638 ;; 14639 hppa*64*) 14640 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]' 14641 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 14642 ;; 14643 *) 14644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 14645 lt_cv_file_magic_test_file=/usr/lib/libc.sl 14646 ;; 14647 esac 14648 ;; 14649 14650interix[3-9]*) 14651 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 14652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 14653 ;; 14654 14655irix5* | irix6* | nonstopux*) 14656 case $LD in 14657 *-32|*"-32 ") libmagic=32-bit;; 14658 *-n32|*"-n32 ") libmagic=N32;; 14659 *-64|*"-64 ") libmagic=64-bit;; 14660 *) libmagic=never-match;; 14661 esac 14662 lt_cv_deplibs_check_method=pass_all 14663 ;; 14664 14665# This must be Linux ELF. 14666linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 14667 lt_cv_deplibs_check_method=pass_all 14668 ;; 14669 14670netbsd*) 14671 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14673 else 14674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 14675 fi 14676 ;; 14677 14678newos6*) 14679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 14680 lt_cv_file_magic_cmd=/usr/bin/file 14681 lt_cv_file_magic_test_file=/usr/lib/libnls.so 14682 ;; 14683 14684*nto* | *qnx*) 14685 lt_cv_deplibs_check_method=pass_all 14686 ;; 14687 14688openbsd*) 14689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 14691 else 14692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14693 fi 14694 ;; 14695 14696osf3* | osf4* | osf5*) 14697 lt_cv_deplibs_check_method=pass_all 14698 ;; 14699 14700rdos*) 14701 lt_cv_deplibs_check_method=pass_all 14702 ;; 14703 14704solaris*) 14705 lt_cv_deplibs_check_method=pass_all 14706 ;; 14707 14708sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14709 lt_cv_deplibs_check_method=pass_all 14710 ;; 14711 14712sysv4 | sysv4.3*) 14713 case $host_vendor in 14714 motorola) 14715 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]' 14716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 14717 ;; 14718 ncr) 14719 lt_cv_deplibs_check_method=pass_all 14720 ;; 14721 sequent) 14722 lt_cv_file_magic_cmd='/bin/file' 14723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 14724 ;; 14725 sni) 14726 lt_cv_file_magic_cmd='/bin/file' 14727 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 14728 lt_cv_file_magic_test_file=/lib/libc.so 14729 ;; 14730 siemens) 14731 lt_cv_deplibs_check_method=pass_all 14732 ;; 14733 pc) 14734 lt_cv_deplibs_check_method=pass_all 14735 ;; 14736 esac 14737 ;; 14738 14739tpf*) 14740 lt_cv_deplibs_check_method=pass_all 14741 ;; 14742esac 14743 14744fi 14745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 14746$as_echo "$lt_cv_deplibs_check_method" >&6; } 14747file_magic_cmd=$lt_cv_file_magic_cmd 14748deplibs_check_method=$lt_cv_deplibs_check_method 14749test -z "$deplibs_check_method" && deplibs_check_method=unknown 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762if test -n "$ac_tool_prefix"; then 14763 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 14764set dummy ${ac_tool_prefix}ar; ac_word=$2 14765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14766$as_echo_n "checking for $ac_word... " >&6; } 14767if ${ac_cv_prog_AR+:} false; then : 14768 $as_echo_n "(cached) " >&6 14769else 14770 if test -n "$AR"; then 14771 ac_cv_prog_AR="$AR" # Let the user override the test. 14772else 14773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14774for as_dir in $PATH 14775do 14776 IFS=$as_save_IFS 14777 test -z "$as_dir" && as_dir=. 14778 for ac_exec_ext in '' $ac_executable_extensions; do 14779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14780 ac_cv_prog_AR="${ac_tool_prefix}ar" 14781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14782 break 2 14783 fi 14784done 14785 done 14786IFS=$as_save_IFS 14787 14788fi 14789fi 14790AR=$ac_cv_prog_AR 14791if test -n "$AR"; then 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 14793$as_echo "$AR" >&6; } 14794else 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14796$as_echo "no" >&6; } 14797fi 14798 14799 14800fi 14801if test -z "$ac_cv_prog_AR"; then 14802 ac_ct_AR=$AR 14803 # Extract the first word of "ar", so it can be a program name with args. 14804set dummy ar; ac_word=$2 14805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14806$as_echo_n "checking for $ac_word... " >&6; } 14807if ${ac_cv_prog_ac_ct_AR+:} false; then : 14808 $as_echo_n "(cached) " >&6 14809else 14810 if test -n "$ac_ct_AR"; then 14811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 14812else 14813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14814for as_dir in $PATH 14815do 14816 IFS=$as_save_IFS 14817 test -z "$as_dir" && as_dir=. 14818 for ac_exec_ext in '' $ac_executable_extensions; do 14819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14820 ac_cv_prog_ac_ct_AR="ar" 14821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14822 break 2 14823 fi 14824done 14825 done 14826IFS=$as_save_IFS 14827 14828fi 14829fi 14830ac_ct_AR=$ac_cv_prog_ac_ct_AR 14831if test -n "$ac_ct_AR"; then 14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 14833$as_echo "$ac_ct_AR" >&6; } 14834else 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14836$as_echo "no" >&6; } 14837fi 14838 14839 if test "x$ac_ct_AR" = x; then 14840 AR="false" 14841 else 14842 case $cross_compiling:$ac_tool_warned in 14843yes:) 14844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14846ac_tool_warned=yes ;; 14847esac 14848 AR=$ac_ct_AR 14849 fi 14850else 14851 AR="$ac_cv_prog_AR" 14852fi 14853 14854test -z "$AR" && AR=ar 14855test -z "$AR_FLAGS" && AR_FLAGS=cru 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867if test -n "$ac_tool_prefix"; then 14868 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 14869set dummy ${ac_tool_prefix}strip; ac_word=$2 14870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14871$as_echo_n "checking for $ac_word... " >&6; } 14872if ${ac_cv_prog_STRIP+:} false; then : 14873 $as_echo_n "(cached) " >&6 14874else 14875 if test -n "$STRIP"; then 14876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 14877else 14878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14879for as_dir in $PATH 14880do 14881 IFS=$as_save_IFS 14882 test -z "$as_dir" && as_dir=. 14883 for ac_exec_ext in '' $ac_executable_extensions; do 14884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14885 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14887 break 2 14888 fi 14889done 14890 done 14891IFS=$as_save_IFS 14892 14893fi 14894fi 14895STRIP=$ac_cv_prog_STRIP 14896if test -n "$STRIP"; then 14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14898$as_echo "$STRIP" >&6; } 14899else 14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14901$as_echo "no" >&6; } 14902fi 14903 14904 14905fi 14906if test -z "$ac_cv_prog_STRIP"; then 14907 ac_ct_STRIP=$STRIP 14908 # Extract the first word of "strip", so it can be a program name with args. 14909set dummy strip; ac_word=$2 14910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14911$as_echo_n "checking for $ac_word... " >&6; } 14912if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14913 $as_echo_n "(cached) " >&6 14914else 14915 if test -n "$ac_ct_STRIP"; then 14916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14917else 14918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14919for as_dir in $PATH 14920do 14921 IFS=$as_save_IFS 14922 test -z "$as_dir" && as_dir=. 14923 for ac_exec_ext in '' $ac_executable_extensions; do 14924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14925 ac_cv_prog_ac_ct_STRIP="strip" 14926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14927 break 2 14928 fi 14929done 14930 done 14931IFS=$as_save_IFS 14932 14933fi 14934fi 14935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14936if test -n "$ac_ct_STRIP"; then 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14938$as_echo "$ac_ct_STRIP" >&6; } 14939else 14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14941$as_echo "no" >&6; } 14942fi 14943 14944 if test "x$ac_ct_STRIP" = x; then 14945 STRIP=":" 14946 else 14947 case $cross_compiling:$ac_tool_warned in 14948yes:) 14949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14951ac_tool_warned=yes ;; 14952esac 14953 STRIP=$ac_ct_STRIP 14954 fi 14955else 14956 STRIP="$ac_cv_prog_STRIP" 14957fi 14958 14959test -z "$STRIP" && STRIP=: 14960 14961 14962 14963 14964 14965 14966if test -n "$ac_tool_prefix"; then 14967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14968set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14970$as_echo_n "checking for $ac_word... " >&6; } 14971if ${ac_cv_prog_RANLIB+:} false; then : 14972 $as_echo_n "(cached) " >&6 14973else 14974 if test -n "$RANLIB"; then 14975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14976else 14977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14978for as_dir in $PATH 14979do 14980 IFS=$as_save_IFS 14981 test -z "$as_dir" && as_dir=. 14982 for ac_exec_ext in '' $ac_executable_extensions; do 14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14986 break 2 14987 fi 14988done 14989 done 14990IFS=$as_save_IFS 14991 14992fi 14993fi 14994RANLIB=$ac_cv_prog_RANLIB 14995if test -n "$RANLIB"; then 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14997$as_echo "$RANLIB" >&6; } 14998else 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15000$as_echo "no" >&6; } 15001fi 15002 15003 15004fi 15005if test -z "$ac_cv_prog_RANLIB"; then 15006 ac_ct_RANLIB=$RANLIB 15007 # Extract the first word of "ranlib", so it can be a program name with args. 15008set dummy ranlib; ac_word=$2 15009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15010$as_echo_n "checking for $ac_word... " >&6; } 15011if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 15012 $as_echo_n "(cached) " >&6 15013else 15014 if test -n "$ac_ct_RANLIB"; then 15015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 15016else 15017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15018for as_dir in $PATH 15019do 15020 IFS=$as_save_IFS 15021 test -z "$as_dir" && as_dir=. 15022 for ac_exec_ext in '' $ac_executable_extensions; do 15023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15024 ac_cv_prog_ac_ct_RANLIB="ranlib" 15025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15026 break 2 15027 fi 15028done 15029 done 15030IFS=$as_save_IFS 15031 15032fi 15033fi 15034ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 15035if test -n "$ac_ct_RANLIB"; then 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 15037$as_echo "$ac_ct_RANLIB" >&6; } 15038else 15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15040$as_echo "no" >&6; } 15041fi 15042 15043 if test "x$ac_ct_RANLIB" = x; then 15044 RANLIB=":" 15045 else 15046 case $cross_compiling:$ac_tool_warned in 15047yes:) 15048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15050ac_tool_warned=yes ;; 15051esac 15052 RANLIB=$ac_ct_RANLIB 15053 fi 15054else 15055 RANLIB="$ac_cv_prog_RANLIB" 15056fi 15057 15058test -z "$RANLIB" && RANLIB=: 15059 15060 15061 15062 15063 15064 15065# Determine commands to create old-style static archives. 15066old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15067old_postinstall_cmds='chmod 644 $oldlib' 15068old_postuninstall_cmds= 15069 15070if test -n "$RANLIB"; then 15071 case $host_os in 15072 openbsd*) 15073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 15074 ;; 15075 *) 15076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 15077 ;; 15078 esac 15079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 15080fi 15081 15082case $host_os in 15083 darwin*) 15084 lock_old_archive_extraction=yes ;; 15085 *) 15086 lock_old_archive_extraction=no ;; 15087esac 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127# If no C compiler was specified, use CC. 15128LTCC=${LTCC-"$CC"} 15129 15130# If no C compiler flags were specified, use CFLAGS. 15131LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15132 15133# Allow CC to be a program name with arguments. 15134compiler=$CC 15135 15136 15137# Check for command to grab the raw symbol name followed by C symbol from nm. 15138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 15139$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 15140if ${lt_cv_sys_global_symbol_pipe+:} false; then : 15141 $as_echo_n "(cached) " >&6 15142else 15143 15144# These are sane defaults that work on at least a few old systems. 15145# [They come from Ultrix. What could be older than Ultrix?!! ;)] 15146 15147# Character class describing NM global symbol codes. 15148symcode='[BCDEGRST]' 15149 15150# Regexp to match symbols that can be accessed directly from C. 15151sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 15152 15153# Define system-specific variables. 15154case $host_os in 15155aix*) 15156 symcode='[BCDT]' 15157 ;; 15158cygwin* | mingw* | pw32* | cegcc*) 15159 symcode='[ABCDGISTW]' 15160 ;; 15161hpux*) 15162 if test "$host_cpu" = ia64; then 15163 symcode='[ABCDEGRST]' 15164 fi 15165 ;; 15166irix* | nonstopux*) 15167 symcode='[BCDEGRST]' 15168 ;; 15169osf*) 15170 symcode='[BCDEGQRST]' 15171 ;; 15172solaris*) 15173 symcode='[BDRT]' 15174 ;; 15175sco3.2v5*) 15176 symcode='[DT]' 15177 ;; 15178sysv4.2uw2*) 15179 symcode='[DT]' 15180 ;; 15181sysv5* | sco5v6* | unixware* | OpenUNIX*) 15182 symcode='[ABDT]' 15183 ;; 15184sysv4) 15185 symcode='[DFNSTU]' 15186 ;; 15187esac 15188 15189# If we're using GNU nm, then use its standard symbol codes. 15190case `$NM -V 2>&1` in 15191*GNU* | *'with BFD'*) 15192 symcode='[ABCDGIRSTW]' ;; 15193esac 15194 15195# Transform an extracted symbol line into a proper C declaration. 15196# Some systems (esp. on ia64) link data and code symbols differently, 15197# so use this general approach. 15198lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 15199 15200# Transform an extracted symbol line into symbol name and symbol address 15201lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 15202lt_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'" 15203 15204# Handle CRLF in mingw tool chain 15205opt_cr= 15206case $build_os in 15207mingw*) 15208 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 15209 ;; 15210esac 15211 15212# Try without a prefix underscore, then with it. 15213for ac_symprfx in "" "_"; do 15214 15215 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 15216 symxfrm="\\1 $ac_symprfx\\2 \\2" 15217 15218 # Write the raw and C identifiers. 15219 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15220 # Fake it for dumpbin and say T for any non-static function 15221 # and D for any global variable. 15222 # Also find C++ and __fastcall symbols from MSVC++, 15223 # which start with @ or ?. 15224 lt_cv_sys_global_symbol_pipe="$AWK '"\ 15225" {last_section=section; section=\$ 3};"\ 15226" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 15227" \$ 0!~/External *\|/{next};"\ 15228" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 15229" {if(hide[section]) next};"\ 15230" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 15231" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 15232" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 15233" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 15234" ' prfx=^$ac_symprfx" 15235 else 15236 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 15237 fi 15238 15239 # Check to see that the pipe works correctly. 15240 pipe_works=no 15241 15242 rm -f conftest* 15243 cat > conftest.$ac_ext <<_LT_EOF 15244#ifdef __cplusplus 15245extern "C" { 15246#endif 15247char nm_test_var; 15248void nm_test_func(void); 15249void nm_test_func(void){} 15250#ifdef __cplusplus 15251} 15252#endif 15253int main(){nm_test_var='a';nm_test_func();return(0);} 15254_LT_EOF 15255 15256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15257 (eval $ac_compile) 2>&5 15258 ac_status=$? 15259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15260 test $ac_status = 0; }; then 15261 # Now try to grab the symbols. 15262 nlist=conftest.nm 15263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 15264 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 15265 ac_status=$? 15266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15267 test $ac_status = 0; } && test -s "$nlist"; then 15268 # Try sorting and uniquifying the output. 15269 if sort "$nlist" | uniq > "$nlist"T; then 15270 mv -f "$nlist"T "$nlist" 15271 else 15272 rm -f "$nlist"T 15273 fi 15274 15275 # Make sure that we snagged all the symbols we need. 15276 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 15277 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 15278 cat <<_LT_EOF > conftest.$ac_ext 15279#ifdef __cplusplus 15280extern "C" { 15281#endif 15282 15283_LT_EOF 15284 # Now generate the symbol file. 15285 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 15286 15287 cat <<_LT_EOF >> conftest.$ac_ext 15288 15289/* The mapping between symbol names and symbols. */ 15290const struct { 15291 const char *name; 15292 void *address; 15293} 15294lt__PROGRAM__LTX_preloaded_symbols[] = 15295{ 15296 { "@PROGRAM@", (void *) 0 }, 15297_LT_EOF 15298 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 15299 cat <<\_LT_EOF >> conftest.$ac_ext 15300 {0, (void *) 0} 15301}; 15302 15303/* This works around a problem in FreeBSD linker */ 15304#ifdef FREEBSD_WORKAROUND 15305static const void *lt_preloaded_setup() { 15306 return lt__PROGRAM__LTX_preloaded_symbols; 15307} 15308#endif 15309 15310#ifdef __cplusplus 15311} 15312#endif 15313_LT_EOF 15314 # Now try linking the two files. 15315 mv conftest.$ac_objext conftstm.$ac_objext 15316 lt_save_LIBS="$LIBS" 15317 lt_save_CFLAGS="$CFLAGS" 15318 LIBS="conftstm.$ac_objext" 15319 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 15320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15321 (eval $ac_link) 2>&5 15322 ac_status=$? 15323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15324 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 15325 pipe_works=yes 15326 fi 15327 LIBS="$lt_save_LIBS" 15328 CFLAGS="$lt_save_CFLAGS" 15329 else 15330 echo "cannot find nm_test_func in $nlist" >&5 15331 fi 15332 else 15333 echo "cannot find nm_test_var in $nlist" >&5 15334 fi 15335 else 15336 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 15337 fi 15338 else 15339 echo "$progname: failed program was:" >&5 15340 cat conftest.$ac_ext >&5 15341 fi 15342 rm -rf conftest* conftst* 15343 15344 # Do not use the global_symbol_pipe unless it works. 15345 if test "$pipe_works" = yes; then 15346 break 15347 else 15348 lt_cv_sys_global_symbol_pipe= 15349 fi 15350done 15351 15352fi 15353 15354if test -z "$lt_cv_sys_global_symbol_pipe"; then 15355 lt_cv_sys_global_symbol_to_cdecl= 15356fi 15357if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15359$as_echo "failed" >&6; } 15360else 15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15362$as_echo "ok" >&6; } 15363fi 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386# Check whether --enable-libtool-lock was given. 15387if test "${enable_libtool_lock+set}" = set; then : 15388 enableval=$enable_libtool_lock; 15389fi 15390 15391test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 15392 15393# Some flags need to be propagated to the compiler or linker for good 15394# libtool support. 15395case $host in 15396ia64-*-hpux*) 15397 # Find out which ABI we are using. 15398 echo 'int i;' > conftest.$ac_ext 15399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15400 (eval $ac_compile) 2>&5 15401 ac_status=$? 15402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15403 test $ac_status = 0; }; then 15404 case `/usr/bin/file conftest.$ac_objext` in 15405 *ELF-32*) 15406 HPUX_IA64_MODE="32" 15407 ;; 15408 *ELF-64*) 15409 HPUX_IA64_MODE="64" 15410 ;; 15411 esac 15412 fi 15413 rm -rf conftest* 15414 ;; 15415*-*-irix6*) 15416 # Find out which ABI we are using. 15417 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15419 (eval $ac_compile) 2>&5 15420 ac_status=$? 15421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15422 test $ac_status = 0; }; then 15423 if test "$lt_cv_prog_gnu_ld" = yes; then 15424 case `/usr/bin/file conftest.$ac_objext` in 15425 *32-bit*) 15426 LD="${LD-ld} -melf32bsmip" 15427 ;; 15428 *N32*) 15429 LD="${LD-ld} -melf32bmipn32" 15430 ;; 15431 *64-bit*) 15432 LD="${LD-ld} -melf64bmip" 15433 ;; 15434 esac 15435 else 15436 case `/usr/bin/file conftest.$ac_objext` in 15437 *32-bit*) 15438 LD="${LD-ld} -32" 15439 ;; 15440 *N32*) 15441 LD="${LD-ld} -n32" 15442 ;; 15443 *64-bit*) 15444 LD="${LD-ld} -64" 15445 ;; 15446 esac 15447 fi 15448 fi 15449 rm -rf conftest* 15450 ;; 15451 15452x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 15453s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 15454 # Find out which ABI we are using. 15455 echo 'int i;' > conftest.$ac_ext 15456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15457 (eval $ac_compile) 2>&5 15458 ac_status=$? 15459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15460 test $ac_status = 0; }; then 15461 case `/usr/bin/file conftest.o` in 15462 *32-bit*) 15463 case $host in 15464 x86_64-*kfreebsd*-gnu) 15465 LD="${LD-ld} -m elf_i386_fbsd" 15466 ;; 15467 x86_64-*linux*) 15468 case `/usr/bin/file conftest.o` in 15469 *x86-64*) 15470 LD="${LD-ld} -m elf32_x86_64" 15471 ;; 15472 *) 15473 LD="${LD-ld} -m elf_i386" 15474 ;; 15475 esac 15476 ;; 15477 powerpc64le-*linux*) 15478 LD="${LD-ld} -m elf32lppclinux" 15479 ;; 15480 powerpc64-*linux*) 15481 LD="${LD-ld} -m elf32ppclinux" 15482 ;; 15483 s390x-*linux*) 15484 LD="${LD-ld} -m elf_s390" 15485 ;; 15486 sparc64-*linux*) 15487 LD="${LD-ld} -m elf32_sparc" 15488 ;; 15489 esac 15490 ;; 15491 *64-bit*) 15492 case $host in 15493 x86_64-*kfreebsd*-gnu) 15494 LD="${LD-ld} -m elf_x86_64_fbsd" 15495 ;; 15496 x86_64-*linux*) 15497 LD="${LD-ld} -m elf_x86_64" 15498 ;; 15499 powerpcle-*linux*) 15500 LD="${LD-ld} -m elf64lppc" 15501 ;; 15502 powerpc-*linux*) 15503 LD="${LD-ld} -m elf64ppc" 15504 ;; 15505 s390*-*linux*|s390*-*tpf*) 15506 LD="${LD-ld} -m elf64_s390" 15507 ;; 15508 sparc*-*linux*) 15509 LD="${LD-ld} -m elf64_sparc" 15510 ;; 15511 esac 15512 ;; 15513 esac 15514 fi 15515 rm -rf conftest* 15516 ;; 15517 15518*-*-sco3.2v5*) 15519 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 15520 SAVE_CFLAGS="$CFLAGS" 15521 CFLAGS="$CFLAGS -belf" 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 15523$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 15524if ${lt_cv_cc_needs_belf+:} false; then : 15525 $as_echo_n "(cached) " >&6 15526else 15527 ac_ext=c 15528ac_cpp='$CPP $CPPFLAGS' 15529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15531ac_compiler_gnu=$ac_cv_c_compiler_gnu 15532 15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535 15536int 15537main () 15538{ 15539 15540 ; 15541 return 0; 15542} 15543_ACEOF 15544if ac_fn_c_try_link "$LINENO"; then : 15545 lt_cv_cc_needs_belf=yes 15546else 15547 lt_cv_cc_needs_belf=no 15548fi 15549rm -f core conftest.err conftest.$ac_objext \ 15550 conftest$ac_exeext conftest.$ac_ext 15551 ac_ext=c 15552ac_cpp='$CPP $CPPFLAGS' 15553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15555ac_compiler_gnu=$ac_cv_c_compiler_gnu 15556 15557fi 15558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 15559$as_echo "$lt_cv_cc_needs_belf" >&6; } 15560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 15561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 15562 CFLAGS="$SAVE_CFLAGS" 15563 fi 15564 ;; 15565sparc*-*solaris*) 15566 # Find out which ABI we are using. 15567 echo 'int i;' > conftest.$ac_ext 15568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15569 (eval $ac_compile) 2>&5 15570 ac_status=$? 15571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15572 test $ac_status = 0; }; then 15573 case `/usr/bin/file conftest.o` in 15574 *64-bit*) 15575 case $lt_cv_prog_gnu_ld in 15576 yes*) LD="${LD-ld} -m elf64_sparc" ;; 15577 *) 15578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 15579 LD="${LD-ld} -64" 15580 fi 15581 ;; 15582 esac 15583 ;; 15584 esac 15585 fi 15586 rm -rf conftest* 15587 ;; 15588esac 15589 15590need_locks="$enable_libtool_lock" 15591 15592 15593 case $host_os in 15594 rhapsody* | darwin*) 15595 if test -n "$ac_tool_prefix"; then 15596 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 15597set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 15598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15599$as_echo_n "checking for $ac_word... " >&6; } 15600if ${ac_cv_prog_DSYMUTIL+:} false; then : 15601 $as_echo_n "(cached) " >&6 15602else 15603 if test -n "$DSYMUTIL"; then 15604 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 15605else 15606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15607for as_dir in $PATH 15608do 15609 IFS=$as_save_IFS 15610 test -z "$as_dir" && as_dir=. 15611 for ac_exec_ext in '' $ac_executable_extensions; do 15612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15613 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 15614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15615 break 2 15616 fi 15617done 15618 done 15619IFS=$as_save_IFS 15620 15621fi 15622fi 15623DSYMUTIL=$ac_cv_prog_DSYMUTIL 15624if test -n "$DSYMUTIL"; then 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 15626$as_echo "$DSYMUTIL" >&6; } 15627else 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15629$as_echo "no" >&6; } 15630fi 15631 15632 15633fi 15634if test -z "$ac_cv_prog_DSYMUTIL"; then 15635 ac_ct_DSYMUTIL=$DSYMUTIL 15636 # Extract the first word of "dsymutil", so it can be a program name with args. 15637set dummy dsymutil; ac_word=$2 15638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15639$as_echo_n "checking for $ac_word... " >&6; } 15640if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 15641 $as_echo_n "(cached) " >&6 15642else 15643 if test -n "$ac_ct_DSYMUTIL"; then 15644 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 15645else 15646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15647for as_dir in $PATH 15648do 15649 IFS=$as_save_IFS 15650 test -z "$as_dir" && as_dir=. 15651 for ac_exec_ext in '' $ac_executable_extensions; do 15652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15653 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15655 break 2 15656 fi 15657done 15658 done 15659IFS=$as_save_IFS 15660 15661fi 15662fi 15663ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15664if test -n "$ac_ct_DSYMUTIL"; then 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15666$as_echo "$ac_ct_DSYMUTIL" >&6; } 15667else 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15669$as_echo "no" >&6; } 15670fi 15671 15672 if test "x$ac_ct_DSYMUTIL" = x; then 15673 DSYMUTIL=":" 15674 else 15675 case $cross_compiling:$ac_tool_warned in 15676yes:) 15677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15679ac_tool_warned=yes ;; 15680esac 15681 DSYMUTIL=$ac_ct_DSYMUTIL 15682 fi 15683else 15684 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15685fi 15686 15687 if test -n "$ac_tool_prefix"; then 15688 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 15689set dummy ${ac_tool_prefix}nmedit; ac_word=$2 15690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15691$as_echo_n "checking for $ac_word... " >&6; } 15692if ${ac_cv_prog_NMEDIT+:} false; then : 15693 $as_echo_n "(cached) " >&6 15694else 15695 if test -n "$NMEDIT"; then 15696 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 15697else 15698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15699for as_dir in $PATH 15700do 15701 IFS=$as_save_IFS 15702 test -z "$as_dir" && as_dir=. 15703 for ac_exec_ext in '' $ac_executable_extensions; do 15704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15705 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 15706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15707 break 2 15708 fi 15709done 15710 done 15711IFS=$as_save_IFS 15712 15713fi 15714fi 15715NMEDIT=$ac_cv_prog_NMEDIT 15716if test -n "$NMEDIT"; then 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 15718$as_echo "$NMEDIT" >&6; } 15719else 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15721$as_echo "no" >&6; } 15722fi 15723 15724 15725fi 15726if test -z "$ac_cv_prog_NMEDIT"; then 15727 ac_ct_NMEDIT=$NMEDIT 15728 # Extract the first word of "nmedit", so it can be a program name with args. 15729set dummy nmedit; ac_word=$2 15730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15731$as_echo_n "checking for $ac_word... " >&6; } 15732if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 15733 $as_echo_n "(cached) " >&6 15734else 15735 if test -n "$ac_ct_NMEDIT"; then 15736 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 15737else 15738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15739for as_dir in $PATH 15740do 15741 IFS=$as_save_IFS 15742 test -z "$as_dir" && as_dir=. 15743 for ac_exec_ext in '' $ac_executable_extensions; do 15744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15745 ac_cv_prog_ac_ct_NMEDIT="nmedit" 15746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15747 break 2 15748 fi 15749done 15750 done 15751IFS=$as_save_IFS 15752 15753fi 15754fi 15755ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 15756if test -n "$ac_ct_NMEDIT"; then 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 15758$as_echo "$ac_ct_NMEDIT" >&6; } 15759else 15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15761$as_echo "no" >&6; } 15762fi 15763 15764 if test "x$ac_ct_NMEDIT" = x; then 15765 NMEDIT=":" 15766 else 15767 case $cross_compiling:$ac_tool_warned in 15768yes:) 15769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15771ac_tool_warned=yes ;; 15772esac 15773 NMEDIT=$ac_ct_NMEDIT 15774 fi 15775else 15776 NMEDIT="$ac_cv_prog_NMEDIT" 15777fi 15778 15779 if test -n "$ac_tool_prefix"; then 15780 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 15781set dummy ${ac_tool_prefix}lipo; ac_word=$2 15782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15783$as_echo_n "checking for $ac_word... " >&6; } 15784if ${ac_cv_prog_LIPO+:} false; then : 15785 $as_echo_n "(cached) " >&6 15786else 15787 if test -n "$LIPO"; then 15788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 15789else 15790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15791for as_dir in $PATH 15792do 15793 IFS=$as_save_IFS 15794 test -z "$as_dir" && as_dir=. 15795 for ac_exec_ext in '' $ac_executable_extensions; do 15796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15797 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 15798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15799 break 2 15800 fi 15801done 15802 done 15803IFS=$as_save_IFS 15804 15805fi 15806fi 15807LIPO=$ac_cv_prog_LIPO 15808if test -n "$LIPO"; then 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 15810$as_echo "$LIPO" >&6; } 15811else 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15813$as_echo "no" >&6; } 15814fi 15815 15816 15817fi 15818if test -z "$ac_cv_prog_LIPO"; then 15819 ac_ct_LIPO=$LIPO 15820 # Extract the first word of "lipo", so it can be a program name with args. 15821set dummy lipo; ac_word=$2 15822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15823$as_echo_n "checking for $ac_word... " >&6; } 15824if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 15825 $as_echo_n "(cached) " >&6 15826else 15827 if test -n "$ac_ct_LIPO"; then 15828 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 15829else 15830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15831for as_dir in $PATH 15832do 15833 IFS=$as_save_IFS 15834 test -z "$as_dir" && as_dir=. 15835 for ac_exec_ext in '' $ac_executable_extensions; do 15836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15837 ac_cv_prog_ac_ct_LIPO="lipo" 15838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15839 break 2 15840 fi 15841done 15842 done 15843IFS=$as_save_IFS 15844 15845fi 15846fi 15847ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 15848if test -n "$ac_ct_LIPO"; then 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 15850$as_echo "$ac_ct_LIPO" >&6; } 15851else 15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15853$as_echo "no" >&6; } 15854fi 15855 15856 if test "x$ac_ct_LIPO" = x; then 15857 LIPO=":" 15858 else 15859 case $cross_compiling:$ac_tool_warned in 15860yes:) 15861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15863ac_tool_warned=yes ;; 15864esac 15865 LIPO=$ac_ct_LIPO 15866 fi 15867else 15868 LIPO="$ac_cv_prog_LIPO" 15869fi 15870 15871 if test -n "$ac_tool_prefix"; then 15872 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 15873set dummy ${ac_tool_prefix}otool; ac_word=$2 15874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15875$as_echo_n "checking for $ac_word... " >&6; } 15876if ${ac_cv_prog_OTOOL+:} false; then : 15877 $as_echo_n "(cached) " >&6 15878else 15879 if test -n "$OTOOL"; then 15880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 15881else 15882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15883for as_dir in $PATH 15884do 15885 IFS=$as_save_IFS 15886 test -z "$as_dir" && as_dir=. 15887 for ac_exec_ext in '' $ac_executable_extensions; do 15888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15889 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15891 break 2 15892 fi 15893done 15894 done 15895IFS=$as_save_IFS 15896 15897fi 15898fi 15899OTOOL=$ac_cv_prog_OTOOL 15900if test -n "$OTOOL"; then 15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15902$as_echo "$OTOOL" >&6; } 15903else 15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15905$as_echo "no" >&6; } 15906fi 15907 15908 15909fi 15910if test -z "$ac_cv_prog_OTOOL"; then 15911 ac_ct_OTOOL=$OTOOL 15912 # Extract the first word of "otool", so it can be a program name with args. 15913set dummy otool; ac_word=$2 15914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15915$as_echo_n "checking for $ac_word... " >&6; } 15916if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 15917 $as_echo_n "(cached) " >&6 15918else 15919 if test -n "$ac_ct_OTOOL"; then 15920 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15921else 15922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15923for as_dir in $PATH 15924do 15925 IFS=$as_save_IFS 15926 test -z "$as_dir" && as_dir=. 15927 for ac_exec_ext in '' $ac_executable_extensions; do 15928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15929 ac_cv_prog_ac_ct_OTOOL="otool" 15930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15931 break 2 15932 fi 15933done 15934 done 15935IFS=$as_save_IFS 15936 15937fi 15938fi 15939ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15940if test -n "$ac_ct_OTOOL"; then 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15942$as_echo "$ac_ct_OTOOL" >&6; } 15943else 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15945$as_echo "no" >&6; } 15946fi 15947 15948 if test "x$ac_ct_OTOOL" = x; then 15949 OTOOL=":" 15950 else 15951 case $cross_compiling:$ac_tool_warned in 15952yes:) 15953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15955ac_tool_warned=yes ;; 15956esac 15957 OTOOL=$ac_ct_OTOOL 15958 fi 15959else 15960 OTOOL="$ac_cv_prog_OTOOL" 15961fi 15962 15963 if test -n "$ac_tool_prefix"; then 15964 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15965set dummy ${ac_tool_prefix}otool64; ac_word=$2 15966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15967$as_echo_n "checking for $ac_word... " >&6; } 15968if ${ac_cv_prog_OTOOL64+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970else 15971 if test -n "$OTOOL64"; then 15972 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15973else 15974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15975for as_dir in $PATH 15976do 15977 IFS=$as_save_IFS 15978 test -z "$as_dir" && as_dir=. 15979 for ac_exec_ext in '' $ac_executable_extensions; do 15980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15981 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15983 break 2 15984 fi 15985done 15986 done 15987IFS=$as_save_IFS 15988 15989fi 15990fi 15991OTOOL64=$ac_cv_prog_OTOOL64 15992if test -n "$OTOOL64"; then 15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15994$as_echo "$OTOOL64" >&6; } 15995else 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15997$as_echo "no" >&6; } 15998fi 15999 16000 16001fi 16002if test -z "$ac_cv_prog_OTOOL64"; then 16003 ac_ct_OTOOL64=$OTOOL64 16004 # Extract the first word of "otool64", so it can be a program name with args. 16005set dummy otool64; ac_word=$2 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16007$as_echo_n "checking for $ac_word... " >&6; } 16008if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 16009 $as_echo_n "(cached) " >&6 16010else 16011 if test -n "$ac_ct_OTOOL64"; then 16012 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 16013else 16014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16015for as_dir in $PATH 16016do 16017 IFS=$as_save_IFS 16018 test -z "$as_dir" && as_dir=. 16019 for ac_exec_ext in '' $ac_executable_extensions; do 16020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16021 ac_cv_prog_ac_ct_OTOOL64="otool64" 16022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16023 break 2 16024 fi 16025done 16026 done 16027IFS=$as_save_IFS 16028 16029fi 16030fi 16031ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 16032if test -n "$ac_ct_OTOOL64"; then 16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 16034$as_echo "$ac_ct_OTOOL64" >&6; } 16035else 16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16037$as_echo "no" >&6; } 16038fi 16039 16040 if test "x$ac_ct_OTOOL64" = x; then 16041 OTOOL64=":" 16042 else 16043 case $cross_compiling:$ac_tool_warned in 16044yes:) 16045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16047ac_tool_warned=yes ;; 16048esac 16049 OTOOL64=$ac_ct_OTOOL64 16050 fi 16051else 16052 OTOOL64="$ac_cv_prog_OTOOL64" 16053fi 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 16082$as_echo_n "checking for -single_module linker flag... " >&6; } 16083if ${lt_cv_apple_cc_single_mod+:} false; then : 16084 $as_echo_n "(cached) " >&6 16085else 16086 lt_cv_apple_cc_single_mod=no 16087 if test -z "${LT_MULTI_MODULE}"; then 16088 # By default we will add the -single_module flag. You can override 16089 # by either setting the environment variable LT_MULTI_MODULE 16090 # non-empty at configure time, or by adding -multi_module to the 16091 # link flags. 16092 rm -rf libconftest.dylib* 16093 echo "int foo(void){return 1;}" > conftest.c 16094 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16095-dynamiclib -Wl,-single_module conftest.c" >&5 16096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16097 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 16098 _lt_result=$? 16099 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 16100 lt_cv_apple_cc_single_mod=yes 16101 else 16102 cat conftest.err >&5 16103 fi 16104 rm -rf libconftest.dylib* 16105 rm -f conftest.* 16106 fi 16107fi 16108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 16109$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 16111$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 16112if ${lt_cv_ld_exported_symbols_list+:} false; then : 16113 $as_echo_n "(cached) " >&6 16114else 16115 lt_cv_ld_exported_symbols_list=no 16116 save_LDFLAGS=$LDFLAGS 16117 echo "_main" > conftest.sym 16118 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16120/* end confdefs.h. */ 16121 16122int 16123main () 16124{ 16125 16126 ; 16127 return 0; 16128} 16129_ACEOF 16130if ac_fn_c_try_link "$LINENO"; then : 16131 lt_cv_ld_exported_symbols_list=yes 16132else 16133 lt_cv_ld_exported_symbols_list=no 16134fi 16135rm -f core conftest.err conftest.$ac_objext \ 16136 conftest$ac_exeext conftest.$ac_ext 16137 LDFLAGS="$save_LDFLAGS" 16138 16139fi 16140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 16141$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 16143$as_echo_n "checking for -force_load linker flag... " >&6; } 16144if ${lt_cv_ld_force_load+:} false; then : 16145 $as_echo_n "(cached) " >&6 16146else 16147 lt_cv_ld_force_load=no 16148 cat > conftest.c << _LT_EOF 16149int forced_loaded() { return 2;} 16150_LT_EOF 16151 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 16152 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 16153 echo "$AR cru libconftest.a conftest.o" >&5 16154 $AR cru libconftest.a conftest.o 2>&5 16155 cat > conftest.c << _LT_EOF 16156int main() { return 0;} 16157_LT_EOF 16158 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 16159 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 16160 _lt_result=$? 16161 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 16162 lt_cv_ld_force_load=yes 16163 else 16164 cat conftest.err >&5 16165 fi 16166 rm -f conftest.err libconftest.a conftest conftest.c 16167 rm -rf conftest.dSYM 16168 16169fi 16170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 16171$as_echo "$lt_cv_ld_force_load" >&6; } 16172 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 16173 # build without first building modern cctools / linker. 16174 case $host_cpu-$host_os in 16175 *-rhapsody* | *-darwin1.[012]) 16176 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 16177 *-darwin1.*) 16178 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 16179 *-darwin*) 16180 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 16181 # deployment target is forced to an earlier version. 16182 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 16183 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 16184 ;; 16185 10.[012][,.]*) 16186 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16187 ;; 16188 *) 16189 ;; 16190 esac 16191 ;; 16192 esac 16193 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 16194 _lt_dar_single_mod='$single_module' 16195 fi 16196 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 16197 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 16198 else 16199 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 16200 fi 16201 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 16202 _lt_dsymutil='~$DSYMUTIL $lib || :' 16203 else 16204 _lt_dsymutil= 16205 fi 16206 ;; 16207 esac 16208 16209 16210for ac_header in dlfcn.h 16211do : 16212 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" 16213if test "x$ac_cv_header_dlfcn_h" = xyes; then : 16214 cat >>confdefs.h <<_ACEOF 16215#define HAVE_DLFCN_H 1 16216_ACEOF 16217 16218fi 16219done 16220 16221 16222 16223 16224 16225# Set options 16226 16227 16228 16229 enable_dlopen=no 16230 16231 16232 enable_win32_dll=no 16233 16234 16235 # Check whether --enable-shared was given. 16236if test "${enable_shared+set}" = set; then : 16237 enableval=$enable_shared; p=${PACKAGE-default} 16238 case $enableval in 16239 yes) enable_shared=yes ;; 16240 no) enable_shared=no ;; 16241 *) 16242 enable_shared=no 16243 # Look at the argument we got. We use all the common list separators. 16244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 16245 for pkg in $enableval; do 16246 IFS="$lt_save_ifs" 16247 if test "X$pkg" = "X$p"; then 16248 enable_shared=yes 16249 fi 16250 done 16251 IFS="$lt_save_ifs" 16252 ;; 16253 esac 16254else 16255 enable_shared=yes 16256fi 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 # Check whether --enable-static was given. 16267if test "${enable_static+set}" = set; then : 16268 enableval=$enable_static; p=${PACKAGE-default} 16269 case $enableval in 16270 yes) enable_static=yes ;; 16271 no) enable_static=no ;; 16272 *) 16273 enable_static=no 16274 # Look at the argument we got. We use all the common list separators. 16275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 16276 for pkg in $enableval; do 16277 IFS="$lt_save_ifs" 16278 if test "X$pkg" = "X$p"; then 16279 enable_static=yes 16280 fi 16281 done 16282 IFS="$lt_save_ifs" 16283 ;; 16284 esac 16285else 16286 enable_static=yes 16287fi 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298# Check whether --with-pic was given. 16299if test "${with_pic+set}" = set; then : 16300 withval=$with_pic; pic_mode="$withval" 16301else 16302 pic_mode=default 16303fi 16304 16305 16306test -z "$pic_mode" && pic_mode=default 16307 16308 16309 16310 16311 16312 16313 16314 # Check whether --enable-fast-install was given. 16315if test "${enable_fast_install+set}" = set; then : 16316 enableval=$enable_fast_install; p=${PACKAGE-default} 16317 case $enableval in 16318 yes) enable_fast_install=yes ;; 16319 no) enable_fast_install=no ;; 16320 *) 16321 enable_fast_install=no 16322 # Look at the argument we got. We use all the common list separators. 16323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 16324 for pkg in $enableval; do 16325 IFS="$lt_save_ifs" 16326 if test "X$pkg" = "X$p"; then 16327 enable_fast_install=yes 16328 fi 16329 done 16330 IFS="$lt_save_ifs" 16331 ;; 16332 esac 16333else 16334 enable_fast_install=yes 16335fi 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347# This can be used to rebuild libtool when needed 16348LIBTOOL_DEPS="$ltmain" 16349 16350# Always use our own libtool. 16351LIBTOOL='$(SHELL) $(top_builddir)/libtool' 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378test -z "$LN_S" && LN_S="ln -s" 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393if test -n "${ZSH_VERSION+set}" ; then 16394 setopt NO_GLOB_SUBST 16395fi 16396 16397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 16398$as_echo_n "checking for objdir... " >&6; } 16399if ${lt_cv_objdir+:} false; then : 16400 $as_echo_n "(cached) " >&6 16401else 16402 rm -f .libs 2>/dev/null 16403mkdir .libs 2>/dev/null 16404if test -d .libs; then 16405 lt_cv_objdir=.libs 16406else 16407 # MS-DOS does not allow filenames that begin with a dot. 16408 lt_cv_objdir=_libs 16409fi 16410rmdir .libs 2>/dev/null 16411fi 16412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 16413$as_echo "$lt_cv_objdir" >&6; } 16414objdir=$lt_cv_objdir 16415 16416 16417 16418 16419 16420cat >>confdefs.h <<_ACEOF 16421#define LT_OBJDIR "$lt_cv_objdir/" 16422_ACEOF 16423 16424 16425 16426 16427case $host_os in 16428aix3*) 16429 # AIX sometimes has problems with the GCC collect2 program. For some 16430 # reason, if we set the COLLECT_NAMES environment variable, the problems 16431 # vanish in a puff of smoke. 16432 if test "X${COLLECT_NAMES+set}" != Xset; then 16433 COLLECT_NAMES= 16434 export COLLECT_NAMES 16435 fi 16436 ;; 16437esac 16438 16439# Global variables: 16440ofile=libtool 16441can_build_shared=yes 16442 16443# All known linkers require a `.a' archive for static linking (except MSVC, 16444# which needs '.lib'). 16445libext=a 16446 16447with_gnu_ld="$lt_cv_prog_gnu_ld" 16448 16449old_CC="$CC" 16450old_CFLAGS="$CFLAGS" 16451 16452# Set sane defaults for various variables 16453test -z "$CC" && CC=cc 16454test -z "$LTCC" && LTCC=$CC 16455test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 16456test -z "$LD" && LD=ld 16457test -z "$ac_objext" && ac_objext=o 16458 16459for cc_temp in $compiler""; do 16460 case $cc_temp in 16461 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16462 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16463 \-*) ;; 16464 *) break;; 16465 esac 16466done 16467cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16468 16469 16470# Only perform the check for file, if the check method requires it 16471test -z "$MAGIC_CMD" && MAGIC_CMD=file 16472case $deplibs_check_method in 16473file_magic*) 16474 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 16476$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 16477if ${lt_cv_path_MAGIC_CMD+:} false; then : 16478 $as_echo_n "(cached) " >&6 16479else 16480 case $MAGIC_CMD in 16481[\\/*] | ?:[\\/]*) 16482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 16483 ;; 16484*) 16485 lt_save_MAGIC_CMD="$MAGIC_CMD" 16486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 16488 for ac_dir in $ac_dummy; do 16489 IFS="$lt_save_ifs" 16490 test -z "$ac_dir" && ac_dir=. 16491 if test -f $ac_dir/${ac_tool_prefix}file; then 16492 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 16493 if test -n "$file_magic_test_file"; then 16494 case $deplibs_check_method in 16495 "file_magic "*) 16496 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 16497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 16498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 16499 $EGREP "$file_magic_regex" > /dev/null; then 16500 : 16501 else 16502 cat <<_LT_EOF 1>&2 16503 16504*** Warning: the command libtool uses to detect shared libraries, 16505*** $file_magic_cmd, produces output that libtool cannot recognize. 16506*** The result is that libtool may fail to recognize shared libraries 16507*** as such. This will affect the creation of libtool libraries that 16508*** depend on shared libraries, but programs linked with such libtool 16509*** libraries will work regardless of this problem. Nevertheless, you 16510*** may want to report the problem to your system manager and/or to 16511*** bug-libtool@gnu.org 16512 16513_LT_EOF 16514 fi ;; 16515 esac 16516 fi 16517 break 16518 fi 16519 done 16520 IFS="$lt_save_ifs" 16521 MAGIC_CMD="$lt_save_MAGIC_CMD" 16522 ;; 16523esac 16524fi 16525 16526MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 16527if test -n "$MAGIC_CMD"; then 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 16529$as_echo "$MAGIC_CMD" >&6; } 16530else 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16532$as_echo "no" >&6; } 16533fi 16534 16535 16536 16537 16538 16539if test -z "$lt_cv_path_MAGIC_CMD"; then 16540 if test -n "$ac_tool_prefix"; then 16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 16542$as_echo_n "checking for file... " >&6; } 16543if ${lt_cv_path_MAGIC_CMD+:} false; then : 16544 $as_echo_n "(cached) " >&6 16545else 16546 case $MAGIC_CMD in 16547[\\/*] | ?:[\\/]*) 16548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 16549 ;; 16550*) 16551 lt_save_MAGIC_CMD="$MAGIC_CMD" 16552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 16554 for ac_dir in $ac_dummy; do 16555 IFS="$lt_save_ifs" 16556 test -z "$ac_dir" && ac_dir=. 16557 if test -f $ac_dir/file; then 16558 lt_cv_path_MAGIC_CMD="$ac_dir/file" 16559 if test -n "$file_magic_test_file"; then 16560 case $deplibs_check_method in 16561 "file_magic "*) 16562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 16563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 16564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 16565 $EGREP "$file_magic_regex" > /dev/null; then 16566 : 16567 else 16568 cat <<_LT_EOF 1>&2 16569 16570*** Warning: the command libtool uses to detect shared libraries, 16571*** $file_magic_cmd, produces output that libtool cannot recognize. 16572*** The result is that libtool may fail to recognize shared libraries 16573*** as such. This will affect the creation of libtool libraries that 16574*** depend on shared libraries, but programs linked with such libtool 16575*** libraries will work regardless of this problem. Nevertheless, you 16576*** may want to report the problem to your system manager and/or to 16577*** bug-libtool@gnu.org 16578 16579_LT_EOF 16580 fi ;; 16581 esac 16582 fi 16583 break 16584 fi 16585 done 16586 IFS="$lt_save_ifs" 16587 MAGIC_CMD="$lt_save_MAGIC_CMD" 16588 ;; 16589esac 16590fi 16591 16592MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 16593if test -n "$MAGIC_CMD"; then 16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 16595$as_echo "$MAGIC_CMD" >&6; } 16596else 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16598$as_echo "no" >&6; } 16599fi 16600 16601 16602 else 16603 MAGIC_CMD=: 16604 fi 16605fi 16606 16607 fi 16608 ;; 16609esac 16610 16611# Use C for the default configuration in the libtool script 16612 16613lt_save_CC="$CC" 16614ac_ext=c 16615ac_cpp='$CPP $CPPFLAGS' 16616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16618ac_compiler_gnu=$ac_cv_c_compiler_gnu 16619 16620 16621# Source file extension for C test sources. 16622ac_ext=c 16623 16624# Object file extension for compiled C test sources. 16625objext=o 16626objext=$objext 16627 16628# Code to be used in simple compile tests 16629lt_simple_compile_test_code="int some_variable = 0;" 16630 16631# Code to be used in simple link tests 16632lt_simple_link_test_code='int main(){return(0);}' 16633 16634 16635 16636 16637 16638 16639 16640# If no C compiler was specified, use CC. 16641LTCC=${LTCC-"$CC"} 16642 16643# If no C compiler flags were specified, use CFLAGS. 16644LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16645 16646# Allow CC to be a program name with arguments. 16647compiler=$CC 16648 16649# Save the default compiler, since it gets overwritten when the other 16650# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 16651compiler_DEFAULT=$CC 16652 16653# save warnings/boilerplate of simple test code 16654ac_outfile=conftest.$ac_objext 16655echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16656eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16657_lt_compiler_boilerplate=`cat conftest.err` 16658$RM conftest* 16659 16660ac_outfile=conftest.$ac_objext 16661echo "$lt_simple_link_test_code" >conftest.$ac_ext 16662eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16663_lt_linker_boilerplate=`cat conftest.err` 16664$RM -r conftest* 16665 16666 16667## CAVEAT EMPTOR: 16668## There is no encapsulation within the following macros, do not change 16669## the running order or otherwise move them around unless you know exactly 16670## what you are doing... 16671if test -n "$compiler"; then 16672 16673lt_prog_compiler_no_builtin_flag= 16674 16675if test "$GCC" = yes; then 16676 case $cc_basename in 16677 nvcc*) 16678 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 16679 *) 16680 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 16681 esac 16682 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16684$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16685if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 16686 $as_echo_n "(cached) " >&6 16687else 16688 lt_cv_prog_compiler_rtti_exceptions=no 16689 ac_outfile=conftest.$ac_objext 16690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16691 lt_compiler_flag="-fno-rtti -fno-exceptions" 16692 # Insert the option either (1) after the last *FLAGS variable, or 16693 # (2) before a word containing "conftest.", or (3) at the end. 16694 # Note that $ac_compile itself does not contain backslashes and begins 16695 # with a dollar sign (not a hyphen), so the echo should work correctly. 16696 # The option is referenced via a variable to avoid confusing sed. 16697 lt_compile=`echo "$ac_compile" | $SED \ 16698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16700 -e 's:$: $lt_compiler_flag:'` 16701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16702 (eval "$lt_compile" 2>conftest.err) 16703 ac_status=$? 16704 cat conftest.err >&5 16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16706 if (exit $ac_status) && test -s "$ac_outfile"; then 16707 # The compiler can only warn and ignore the option if not recognized 16708 # So say no if there are warnings other than the usual output. 16709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16712 lt_cv_prog_compiler_rtti_exceptions=yes 16713 fi 16714 fi 16715 $RM conftest* 16716 16717fi 16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16719$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16720 16721if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16722 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 16723else 16724 : 16725fi 16726 16727fi 16728 16729 16730 16731 16732 16733 16734 lt_prog_compiler_wl= 16735lt_prog_compiler_pic= 16736lt_prog_compiler_static= 16737 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16739$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16740 16741 if test "$GCC" = yes; then 16742 lt_prog_compiler_wl='-Wl,' 16743 lt_prog_compiler_static='-static' 16744 16745 case $host_os in 16746 aix*) 16747 # All AIX code is PIC. 16748 if test "$host_cpu" = ia64; then 16749 # AIX 5 now supports IA64 processor 16750 lt_prog_compiler_static='-Bstatic' 16751 fi 16752 lt_prog_compiler_pic='-fPIC' 16753 ;; 16754 16755 amigaos*) 16756 case $host_cpu in 16757 powerpc) 16758 # see comment about AmigaOS4 .so support 16759 lt_prog_compiler_pic='-fPIC' 16760 ;; 16761 m68k) 16762 # FIXME: we need at least 68020 code to build shared libraries, but 16763 # adding the `-m68020' flag to GCC prevents building anything better, 16764 # like `-m68040'. 16765 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16766 ;; 16767 esac 16768 ;; 16769 16770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16771 # PIC is the default for these OSes. 16772 ;; 16773 16774 mingw* | cygwin* | pw32* | os2* | cegcc*) 16775 # This hack is so that the source file can tell whether it is being 16776 # built for inclusion in a dll (and should export symbols for example). 16777 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16778 # (--disable-auto-import) libraries 16779 lt_prog_compiler_pic='-DDLL_EXPORT' 16780 ;; 16781 16782 darwin* | rhapsody*) 16783 # PIC is the default on this platform 16784 # Common symbols not allowed in MH_DYLIB files 16785 lt_prog_compiler_pic='-fno-common' 16786 ;; 16787 16788 haiku*) 16789 # PIC is the default for Haiku. 16790 # The "-static" flag exists, but is broken. 16791 lt_prog_compiler_static= 16792 ;; 16793 16794 hpux*) 16795 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16796 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16797 # sets the default TLS model and affects inlining. 16798 case $host_cpu in 16799 hppa*64*) 16800 # +Z the default 16801 ;; 16802 *) 16803 lt_prog_compiler_pic='-fPIC' 16804 ;; 16805 esac 16806 ;; 16807 16808 interix[3-9]*) 16809 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16810 # Instead, we relocate shared libraries at runtime. 16811 ;; 16812 16813 msdosdjgpp*) 16814 # Just because we use GCC doesn't mean we suddenly get shared libraries 16815 # on systems that don't support them. 16816 lt_prog_compiler_can_build_shared=no 16817 enable_shared=no 16818 ;; 16819 16820 *nto* | *qnx*) 16821 # QNX uses GNU C++, but need to define -shared option too, otherwise 16822 # it will coredump. 16823 lt_prog_compiler_pic='-fPIC -shared' 16824 ;; 16825 16826 sysv4*MP*) 16827 if test -d /usr/nec; then 16828 lt_prog_compiler_pic=-Kconform_pic 16829 fi 16830 ;; 16831 16832 *) 16833 lt_prog_compiler_pic='-fPIC' 16834 ;; 16835 esac 16836 16837 case $cc_basename in 16838 nvcc*) # Cuda Compiler Driver 2.2 16839 lt_prog_compiler_wl='-Xlinker ' 16840 lt_prog_compiler_pic='-Xcompiler -fPIC' 16841 ;; 16842 esac 16843 else 16844 # PORTME Check for flag to pass linker flags through the system compiler. 16845 case $host_os in 16846 aix*) 16847 lt_prog_compiler_wl='-Wl,' 16848 if test "$host_cpu" = ia64; then 16849 # AIX 5 now supports IA64 processor 16850 lt_prog_compiler_static='-Bstatic' 16851 else 16852 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16853 fi 16854 ;; 16855 16856 mingw* | cygwin* | pw32* | os2* | cegcc*) 16857 # This hack is so that the source file can tell whether it is being 16858 # built for inclusion in a dll (and should export symbols for example). 16859 lt_prog_compiler_pic='-DDLL_EXPORT' 16860 ;; 16861 16862 hpux9* | hpux10* | hpux11*) 16863 lt_prog_compiler_wl='-Wl,' 16864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16865 # not for PA HP-UX. 16866 case $host_cpu in 16867 hppa*64*|ia64*) 16868 # +Z the default 16869 ;; 16870 *) 16871 lt_prog_compiler_pic='+Z' 16872 ;; 16873 esac 16874 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16875 lt_prog_compiler_static='${wl}-a ${wl}archive' 16876 ;; 16877 16878 irix5* | irix6* | nonstopux*) 16879 lt_prog_compiler_wl='-Wl,' 16880 # PIC (with -KPIC) is the default. 16881 lt_prog_compiler_static='-non_shared' 16882 ;; 16883 16884 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16885 case $cc_basename in 16886 # old Intel for x86_64 which still supported -KPIC. 16887 ecc*) 16888 lt_prog_compiler_wl='-Wl,' 16889 lt_prog_compiler_pic='-KPIC' 16890 lt_prog_compiler_static='-static' 16891 ;; 16892 # icc used to be incompatible with GCC. 16893 # ICC 10 doesn't accept -KPIC any more. 16894 icc* | ifort*) 16895 lt_prog_compiler_wl='-Wl,' 16896 lt_prog_compiler_pic='-fPIC' 16897 lt_prog_compiler_static='-static' 16898 ;; 16899 # Lahey Fortran 8.1. 16900 lf95*) 16901 lt_prog_compiler_wl='-Wl,' 16902 lt_prog_compiler_pic='--shared' 16903 lt_prog_compiler_static='--static' 16904 ;; 16905 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16906 # Portland Group compilers (*not* the Pentium gcc compiler, 16907 # which looks to be a dead project) 16908 lt_prog_compiler_wl='-Wl,' 16909 lt_prog_compiler_pic='-fpic' 16910 lt_prog_compiler_static='-Bstatic' 16911 ;; 16912 ccc*) 16913 lt_prog_compiler_wl='-Wl,' 16914 # All Alpha code is PIC. 16915 lt_prog_compiler_static='-non_shared' 16916 ;; 16917 xl* | bgxl* | bgf* | mpixl*) 16918 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16919 lt_prog_compiler_wl='-Wl,' 16920 lt_prog_compiler_pic='-qpic' 16921 lt_prog_compiler_static='-qstaticlink' 16922 ;; 16923 *) 16924 case `$CC -V 2>&1 | sed 5q` in 16925 *Sun\ F* | *Sun*Fortran*) 16926 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16927 lt_prog_compiler_pic='-KPIC' 16928 lt_prog_compiler_static='-Bstatic' 16929 lt_prog_compiler_wl='' 16930 ;; 16931 *Sun\ C*) 16932 # Sun C 5.9 16933 lt_prog_compiler_pic='-KPIC' 16934 lt_prog_compiler_static='-Bstatic' 16935 lt_prog_compiler_wl='-Wl,' 16936 ;; 16937 esac 16938 ;; 16939 esac 16940 ;; 16941 16942 newsos6) 16943 lt_prog_compiler_pic='-KPIC' 16944 lt_prog_compiler_static='-Bstatic' 16945 ;; 16946 16947 *nto* | *qnx*) 16948 # QNX uses GNU C++, but need to define -shared option too, otherwise 16949 # it will coredump. 16950 lt_prog_compiler_pic='-fPIC -shared' 16951 ;; 16952 16953 osf3* | osf4* | osf5*) 16954 lt_prog_compiler_wl='-Wl,' 16955 # All OSF/1 code is PIC. 16956 lt_prog_compiler_static='-non_shared' 16957 ;; 16958 16959 rdos*) 16960 lt_prog_compiler_static='-non_shared' 16961 ;; 16962 16963 solaris*) 16964 lt_prog_compiler_pic='-KPIC' 16965 lt_prog_compiler_static='-Bstatic' 16966 case $cc_basename in 16967 f77* | f90* | f95*) 16968 lt_prog_compiler_wl='-Qoption ld ';; 16969 *) 16970 lt_prog_compiler_wl='-Wl,';; 16971 esac 16972 ;; 16973 16974 sunos4*) 16975 lt_prog_compiler_wl='-Qoption ld ' 16976 lt_prog_compiler_pic='-PIC' 16977 lt_prog_compiler_static='-Bstatic' 16978 ;; 16979 16980 sysv4 | sysv4.2uw2* | sysv4.3*) 16981 lt_prog_compiler_wl='-Wl,' 16982 lt_prog_compiler_pic='-KPIC' 16983 lt_prog_compiler_static='-Bstatic' 16984 ;; 16985 16986 sysv4*MP*) 16987 if test -d /usr/nec ;then 16988 lt_prog_compiler_pic='-Kconform_pic' 16989 lt_prog_compiler_static='-Bstatic' 16990 fi 16991 ;; 16992 16993 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16994 lt_prog_compiler_wl='-Wl,' 16995 lt_prog_compiler_pic='-KPIC' 16996 lt_prog_compiler_static='-Bstatic' 16997 ;; 16998 16999 unicos*) 17000 lt_prog_compiler_wl='-Wl,' 17001 lt_prog_compiler_can_build_shared=no 17002 ;; 17003 17004 uts4*) 17005 lt_prog_compiler_pic='-pic' 17006 lt_prog_compiler_static='-Bstatic' 17007 ;; 17008 17009 *) 17010 lt_prog_compiler_can_build_shared=no 17011 ;; 17012 esac 17013 fi 17014 17015case $host_os in 17016 # For platforms which do not support PIC, -DPIC is meaningless: 17017 *djgpp*) 17018 lt_prog_compiler_pic= 17019 ;; 17020 *) 17021 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 17022 ;; 17023esac 17024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 17025$as_echo "$lt_prog_compiler_pic" >&6; } 17026 17027 17028 17029 17030 17031 17032# 17033# Check to make sure the PIC flag actually works. 17034# 17035if test -n "$lt_prog_compiler_pic"; then 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 17037$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 17038if ${lt_cv_prog_compiler_pic_works+:} false; then : 17039 $as_echo_n "(cached) " >&6 17040else 17041 lt_cv_prog_compiler_pic_works=no 17042 ac_outfile=conftest.$ac_objext 17043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17044 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 17045 # Insert the option either (1) after the last *FLAGS variable, or 17046 # (2) before a word containing "conftest.", or (3) at the end. 17047 # Note that $ac_compile itself does not contain backslashes and begins 17048 # with a dollar sign (not a hyphen), so the echo should work correctly. 17049 # The option is referenced via a variable to avoid confusing sed. 17050 lt_compile=`echo "$ac_compile" | $SED \ 17051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17053 -e 's:$: $lt_compiler_flag:'` 17054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17055 (eval "$lt_compile" 2>conftest.err) 17056 ac_status=$? 17057 cat conftest.err >&5 17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17059 if (exit $ac_status) && test -s "$ac_outfile"; then 17060 # The compiler can only warn and ignore the option if not recognized 17061 # So say no if there are warnings other than the usual output. 17062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17065 lt_cv_prog_compiler_pic_works=yes 17066 fi 17067 fi 17068 $RM conftest* 17069 17070fi 17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 17072$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 17073 17074if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 17075 case $lt_prog_compiler_pic in 17076 "" | " "*) ;; 17077 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17078 esac 17079else 17080 lt_prog_compiler_pic= 17081 lt_prog_compiler_can_build_shared=no 17082fi 17083 17084fi 17085 17086 17087 17088 17089 17090 17091# 17092# Check to make sure the static flag actually works. 17093# 17094wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 17095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17096$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17097if ${lt_cv_prog_compiler_static_works+:} false; then : 17098 $as_echo_n "(cached) " >&6 17099else 17100 lt_cv_prog_compiler_static_works=no 17101 save_LDFLAGS="$LDFLAGS" 17102 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17103 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17104 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17105 # The linker can only warn and ignore the option if not recognized 17106 # So say no if there are warnings 17107 if test -s conftest.err; then 17108 # Append any errors to the config.log. 17109 cat conftest.err 1>&5 17110 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17112 if diff conftest.exp conftest.er2 >/dev/null; then 17113 lt_cv_prog_compiler_static_works=yes 17114 fi 17115 else 17116 lt_cv_prog_compiler_static_works=yes 17117 fi 17118 fi 17119 $RM -r conftest* 17120 LDFLAGS="$save_LDFLAGS" 17121 17122fi 17123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 17124$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 17125 17126if test x"$lt_cv_prog_compiler_static_works" = xyes; then 17127 : 17128else 17129 lt_prog_compiler_static= 17130fi 17131 17132 17133 17134 17135 17136 17137 17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17139$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17140if ${lt_cv_prog_compiler_c_o+:} false; then : 17141 $as_echo_n "(cached) " >&6 17142else 17143 lt_cv_prog_compiler_c_o=no 17144 $RM -r conftest 2>/dev/null 17145 mkdir conftest 17146 cd conftest 17147 mkdir out 17148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17149 17150 lt_compiler_flag="-o out/conftest2.$ac_objext" 17151 # Insert the option either (1) after the last *FLAGS variable, or 17152 # (2) before a word containing "conftest.", or (3) at the end. 17153 # Note that $ac_compile itself does not contain backslashes and begins 17154 # with a dollar sign (not a hyphen), so the echo should work correctly. 17155 lt_compile=`echo "$ac_compile" | $SED \ 17156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17158 -e 's:$: $lt_compiler_flag:'` 17159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17160 (eval "$lt_compile" 2>out/conftest.err) 17161 ac_status=$? 17162 cat out/conftest.err >&5 17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17164 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17165 then 17166 # The compiler can only warn and ignore the option if not recognized 17167 # So say no if there are warnings 17168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17169 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17170 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17171 lt_cv_prog_compiler_c_o=yes 17172 fi 17173 fi 17174 chmod u+w . 2>&5 17175 $RM conftest* 17176 # SGI C++ compiler will create directory out/ii_files/ for 17177 # template instantiation 17178 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17179 $RM out/* && rmdir out 17180 cd .. 17181 $RM -r conftest 17182 $RM conftest* 17183 17184fi 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17186$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17187 17188 17189 17190 17191 17192 17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17194$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17195if ${lt_cv_prog_compiler_c_o+:} false; then : 17196 $as_echo_n "(cached) " >&6 17197else 17198 lt_cv_prog_compiler_c_o=no 17199 $RM -r conftest 2>/dev/null 17200 mkdir conftest 17201 cd conftest 17202 mkdir out 17203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17204 17205 lt_compiler_flag="-o out/conftest2.$ac_objext" 17206 # Insert the option either (1) after the last *FLAGS variable, or 17207 # (2) before a word containing "conftest.", or (3) at the end. 17208 # Note that $ac_compile itself does not contain backslashes and begins 17209 # with a dollar sign (not a hyphen), so the echo should work correctly. 17210 lt_compile=`echo "$ac_compile" | $SED \ 17211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17213 -e 's:$: $lt_compiler_flag:'` 17214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17215 (eval "$lt_compile" 2>out/conftest.err) 17216 ac_status=$? 17217 cat out/conftest.err >&5 17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17219 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17220 then 17221 # The compiler can only warn and ignore the option if not recognized 17222 # So say no if there are warnings 17223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17226 lt_cv_prog_compiler_c_o=yes 17227 fi 17228 fi 17229 chmod u+w . 2>&5 17230 $RM conftest* 17231 # SGI C++ compiler will create directory out/ii_files/ for 17232 # template instantiation 17233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17234 $RM out/* && rmdir out 17235 cd .. 17236 $RM -r conftest 17237 $RM conftest* 17238 17239fi 17240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17241$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17242 17243 17244 17245 17246hard_links="nottested" 17247if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 17248 # do not overwrite the value of need_locks provided by the user 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17250$as_echo_n "checking if we can lock with hard links... " >&6; } 17251 hard_links=yes 17252 $RM conftest* 17253 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17254 touch conftest.a 17255 ln conftest.a conftest.b 2>&5 || hard_links=no 17256 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17258$as_echo "$hard_links" >&6; } 17259 if test "$hard_links" = no; then 17260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17261$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17262 need_locks=warn 17263 fi 17264else 17265 need_locks=no 17266fi 17267 17268 17269 17270 17271 17272 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17274$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17275 17276 runpath_var= 17277 allow_undefined_flag= 17278 always_export_symbols=no 17279 archive_cmds= 17280 archive_expsym_cmds= 17281 compiler_needs_object=no 17282 enable_shared_with_static_runtimes=no 17283 export_dynamic_flag_spec= 17284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17285 hardcode_automatic=no 17286 hardcode_direct=no 17287 hardcode_direct_absolute=no 17288 hardcode_libdir_flag_spec= 17289 hardcode_libdir_flag_spec_ld= 17290 hardcode_libdir_separator= 17291 hardcode_minus_L=no 17292 hardcode_shlibpath_var=unsupported 17293 inherit_rpath=no 17294 link_all_deplibs=unknown 17295 module_cmds= 17296 module_expsym_cmds= 17297 old_archive_from_new_cmds= 17298 old_archive_from_expsyms_cmds= 17299 thread_safe_flag_spec= 17300 whole_archive_flag_spec= 17301 # include_expsyms should be a list of space-separated symbols to be *always* 17302 # included in the symbol list 17303 include_expsyms= 17304 # exclude_expsyms can be an extended regexp of symbols to exclude 17305 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17307 # as well as any symbol that contains `d'. 17308 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17310 # platforms (ab)use it in PIC code, but their linkers get confused if 17311 # the symbol is explicitly referenced. Since portable code cannot 17312 # rely on this symbol name, it's probably fine to never include it in 17313 # preloaded symbol tables. 17314 # Exclude shared library initialization/finalization symbols. 17315 extract_expsyms_cmds= 17316 17317 case $host_os in 17318 cygwin* | mingw* | pw32* | cegcc*) 17319 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17320 # When not using gcc, we currently assume that we are using 17321 # Microsoft Visual C++. 17322 if test "$GCC" != yes; then 17323 with_gnu_ld=no 17324 fi 17325 ;; 17326 interix*) 17327 # we just hope/assume this is gcc and not c89 (= MSVC++) 17328 with_gnu_ld=yes 17329 ;; 17330 openbsd*) 17331 with_gnu_ld=no 17332 ;; 17333 esac 17334 17335 ld_shlibs=yes 17336 17337 # On some targets, GNU ld is compatible enough with the native linker 17338 # that we're better off using the native interface for both. 17339 lt_use_gnu_ld_interface=no 17340 if test "$with_gnu_ld" = yes; then 17341 case $host_os in 17342 aix*) 17343 # The AIX port of GNU ld has always aspired to compatibility 17344 # with the native linker. However, as the warning in the GNU ld 17345 # block says, versions before 2.19.5* couldn't really create working 17346 # shared libraries, regardless of the interface used. 17347 case `$LD -v 2>&1` in 17348 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 17349 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 17350 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 17351 *) 17352 lt_use_gnu_ld_interface=yes 17353 ;; 17354 esac 17355 ;; 17356 *) 17357 lt_use_gnu_ld_interface=yes 17358 ;; 17359 esac 17360 fi 17361 17362 if test "$lt_use_gnu_ld_interface" = yes; then 17363 # If archive_cmds runs LD, not CC, wlarc should be empty 17364 wlarc='${wl}' 17365 17366 # Set some defaults for GNU ld with shared library support. These 17367 # are reset later if shared libraries are not supported. Putting them 17368 # here allows them to be overridden if necessary. 17369 runpath_var=LD_RUN_PATH 17370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17371 export_dynamic_flag_spec='${wl}--export-dynamic' 17372 # ancient GNU ld didn't support --whole-archive et. al. 17373 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 17374 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17375 else 17376 whole_archive_flag_spec= 17377 fi 17378 supports_anon_versioning=no 17379 case `$LD -v 2>&1` in 17380 *GNU\ gold*) supports_anon_versioning=yes ;; 17381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17384 *\ 2.11.*) ;; # other 2.11 versions 17385 *) supports_anon_versioning=yes ;; 17386 esac 17387 17388 # See if GNU ld supports shared libraries. 17389 case $host_os in 17390 aix[3-9]*) 17391 # On AIX/PPC, the GNU linker is very broken 17392 if test "$host_cpu" != ia64; then 17393 ld_shlibs=no 17394 cat <<_LT_EOF 1>&2 17395 17396*** Warning: the GNU linker, at least up to release 2.19, is reported 17397*** to be unable to reliably create shared libraries on AIX. 17398*** Therefore, libtool is disabling shared libraries support. If you 17399*** really care for shared libraries, you may want to install binutils 17400*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 17401*** You will then need to restart the configuration process. 17402 17403_LT_EOF 17404 fi 17405 ;; 17406 17407 amigaos*) 17408 case $host_cpu in 17409 powerpc) 17410 # see comment about AmigaOS4 .so support 17411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17412 archive_expsym_cmds='' 17413 ;; 17414 m68k) 17415 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)' 17416 hardcode_libdir_flag_spec='-L$libdir' 17417 hardcode_minus_L=yes 17418 ;; 17419 esac 17420 ;; 17421 17422 beos*) 17423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17424 allow_undefined_flag=unsupported 17425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17426 # support --undefined. This deserves some investigation. FIXME 17427 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17428 else 17429 ld_shlibs=no 17430 fi 17431 ;; 17432 17433 cygwin* | mingw* | pw32* | cegcc*) 17434 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 17435 # as there is no search path for DLLs. 17436 hardcode_libdir_flag_spec='-L$libdir' 17437 export_dynamic_flag_spec='${wl}--export-all-symbols' 17438 allow_undefined_flag=unsupported 17439 always_export_symbols=no 17440 enable_shared_with_static_runtimes=yes 17441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17442 17443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 17444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17445 # If the export-symbols file already is a .def file (1st line 17446 # is EXPORTS), use it as is; otherwise, prepend... 17447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17448 cp $export_symbols $output_objdir/$soname.def; 17449 else 17450 echo EXPORTS > $output_objdir/$soname.def; 17451 cat $export_symbols >> $output_objdir/$soname.def; 17452 fi~ 17453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17454 else 17455 ld_shlibs=no 17456 fi 17457 ;; 17458 17459 haiku*) 17460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17461 link_all_deplibs=yes 17462 ;; 17463 17464 interix[3-9]*) 17465 hardcode_direct=no 17466 hardcode_shlibpath_var=no 17467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 17468 export_dynamic_flag_spec='${wl}-E' 17469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17470 # Instead, shared libraries are loaded at an image base (0x10000000 by 17471 # default) and relocated if they conflict, which is a slow very memory 17472 # consuming and fragmenting process. To avoid this, we pick a random, 17473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17474 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17475 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17476 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' 17477 ;; 17478 17479 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 17480 tmp_diet=no 17481 if test "$host_os" = linux-dietlibc; then 17482 case $cc_basename in 17483 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 17484 esac 17485 fi 17486 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 17487 && test "$tmp_diet" = no 17488 then 17489 tmp_addflag=' $pic_flag' 17490 tmp_sharedflag='-shared' 17491 case $cc_basename,$host_cpu in 17492 pgcc*) # Portland Group C compiler 17493 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' 17494 tmp_addflag=' $pic_flag' 17495 ;; 17496 pgf77* | pgf90* | pgf95* | pgfortran*) 17497 # Portland Group f77 and f90 compilers 17498 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' 17499 tmp_addflag=' $pic_flag -Mnomain' ;; 17500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17501 tmp_addflag=' -i_dynamic' ;; 17502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17503 tmp_addflag=' -i_dynamic -nofor_main' ;; 17504 ifc* | ifort*) # Intel Fortran compiler 17505 tmp_addflag=' -nofor_main' ;; 17506 lf95*) # Lahey Fortran 8.1 17507 whole_archive_flag_spec= 17508 tmp_sharedflag='--shared' ;; 17509 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 17510 tmp_sharedflag='-qmkshrobj' 17511 tmp_addflag= ;; 17512 nvcc*) # Cuda Compiler Driver 2.2 17513 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' 17514 compiler_needs_object=yes 17515 ;; 17516 esac 17517 case `$CC -V 2>&1 | sed 5q` in 17518 *Sun\ C*) # Sun C 5.9 17519 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' 17520 compiler_needs_object=yes 17521 tmp_sharedflag='-G' ;; 17522 *Sun\ F*) # Sun Fortran 8.3 17523 tmp_sharedflag='-G' ;; 17524 esac 17525 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17526 17527 if test "x$supports_anon_versioning" = xyes; then 17528 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17530 echo "local: *; };" >> $output_objdir/$libname.ver~ 17531 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17532 fi 17533 17534 case $cc_basename in 17535 xlf* | bgf* | bgxlf* | mpixlf*) 17536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 17537 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 17538 hardcode_libdir_flag_spec= 17539 hardcode_libdir_flag_spec_ld='-rpath $libdir' 17540 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 17541 if test "x$supports_anon_versioning" = xyes; then 17542 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17544 echo "local: *; };" >> $output_objdir/$libname.ver~ 17545 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 17546 fi 17547 ;; 17548 esac 17549 else 17550 ld_shlibs=no 17551 fi 17552 ;; 17553 17554 netbsd*) 17555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17556 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17557 wlarc= 17558 else 17559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17560 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17561 fi 17562 ;; 17563 17564 solaris*) 17565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 17566 ld_shlibs=no 17567 cat <<_LT_EOF 1>&2 17568 17569*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17570*** create shared libraries on Solaris systems. Therefore, libtool 17571*** is disabling shared libraries support. We urge you to upgrade GNU 17572*** binutils to release 2.9.1 or newer. Another option is to modify 17573*** your PATH or compiler configuration so that the native linker is 17574*** used, and then restart. 17575 17576_LT_EOF 17577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17580 else 17581 ld_shlibs=no 17582 fi 17583 ;; 17584 17585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17586 case `$LD -v 2>&1` in 17587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17588 ld_shlibs=no 17589 cat <<_LT_EOF 1>&2 17590 17591*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17592*** reliably create shared libraries on SCO systems. Therefore, libtool 17593*** is disabling shared libraries support. We urge you to upgrade GNU 17594*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17595*** your PATH or compiler configuration so that the native linker is 17596*** used, and then restart. 17597 17598_LT_EOF 17599 ;; 17600 *) 17601 # For security reasons, it is highly recommended that you always 17602 # use absolute paths for naming shared libraries, and exclude the 17603 # DT_RUNPATH tag from executables and libraries. But doing so 17604 # requires that you compile everything twice, which is a pain. 17605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17609 else 17610 ld_shlibs=no 17611 fi 17612 ;; 17613 esac 17614 ;; 17615 17616 sunos4*) 17617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17618 wlarc= 17619 hardcode_direct=yes 17620 hardcode_shlibpath_var=no 17621 ;; 17622 17623 *) 17624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17627 else 17628 ld_shlibs=no 17629 fi 17630 ;; 17631 esac 17632 17633 if test "$ld_shlibs" = no; then 17634 runpath_var= 17635 hardcode_libdir_flag_spec= 17636 export_dynamic_flag_spec= 17637 whole_archive_flag_spec= 17638 fi 17639 else 17640 # PORTME fill in a description of your system's linker (not GNU ld) 17641 case $host_os in 17642 aix3*) 17643 allow_undefined_flag=unsupported 17644 always_export_symbols=yes 17645 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' 17646 # Note: this linker hardcodes the directories in LIBPATH if there 17647 # are no directories specified by -L. 17648 hardcode_minus_L=yes 17649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17650 # Neither direct hardcoding nor static linking is supported with a 17651 # broken collect2. 17652 hardcode_direct=unsupported 17653 fi 17654 ;; 17655 17656 aix[4-9]*) 17657 if test "$host_cpu" = ia64; then 17658 # On IA64, the linker does run time linking by default, so we don't 17659 # have to do anything special. 17660 aix_use_runtimelinking=no 17661 exp_sym_flag='-Bexport' 17662 no_entry_flag="" 17663 else 17664 # If we're using GNU nm, then we don't want the "-C" option. 17665 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17666 # Also, AIX nm treats weak defined symbols like other global 17667 # defined symbols, whereas GNU nm marks them as "W". 17668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17669 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' 17670 else 17671 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' 17672 fi 17673 aix_use_runtimelinking=no 17674 17675 # Test if we are trying to use run time linking or normal 17676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17677 # need to do runtime linking. 17678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17679 for ld_flag in $LDFLAGS; do 17680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17681 aix_use_runtimelinking=yes 17682 break 17683 fi 17684 done 17685 ;; 17686 esac 17687 17688 exp_sym_flag='-bexport' 17689 no_entry_flag='-bnoentry' 17690 fi 17691 17692 # When large executables or shared objects are built, AIX ld can 17693 # have problems creating the table of contents. If linking a library 17694 # or program results in "error TOC overflow" add -mminimal-toc to 17695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17697 17698 archive_cmds='' 17699 hardcode_direct=yes 17700 hardcode_direct_absolute=yes 17701 hardcode_libdir_separator=':' 17702 link_all_deplibs=yes 17703 file_list_spec='${wl}-f,' 17704 17705 if test "$GCC" = yes; then 17706 case $host_os in aix4.[012]|aix4.[012].*) 17707 # We only want to do this on AIX 4.2 and lower, the check 17708 # below for broken collect2 doesn't work under 4.3+ 17709 collect2name=`${CC} -print-prog-name=collect2` 17710 if test -f "$collect2name" && 17711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17712 then 17713 # We have reworked collect2 17714 : 17715 else 17716 # We have old collect2 17717 hardcode_direct=unsupported 17718 # It fails to find uninstalled libraries when the uninstalled 17719 # path is not listed in the libpath. Setting hardcode_minus_L 17720 # to unsupported forces relinking 17721 hardcode_minus_L=yes 17722 hardcode_libdir_flag_spec='-L$libdir' 17723 hardcode_libdir_separator= 17724 fi 17725 ;; 17726 esac 17727 shared_flag='-shared' 17728 if test "$aix_use_runtimelinking" = yes; then 17729 shared_flag="$shared_flag "'${wl}-G' 17730 fi 17731 else 17732 # not using gcc 17733 if test "$host_cpu" = ia64; then 17734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17735 # chokes on -Wl,-G. The following line is correct: 17736 shared_flag='-G' 17737 else 17738 if test "$aix_use_runtimelinking" = yes; then 17739 shared_flag='${wl}-G' 17740 else 17741 shared_flag='${wl}-bM:SRE' 17742 fi 17743 fi 17744 fi 17745 17746 export_dynamic_flag_spec='${wl}-bexpall' 17747 # It seems that -bexpall does not export symbols beginning with 17748 # underscore (_), so it is better to generate a list of symbols to export. 17749 always_export_symbols=yes 17750 if test "$aix_use_runtimelinking" = yes; then 17751 # Warning - without using the other runtime loading flags (-brtl), 17752 # -berok will link without error, but may produce a broken library. 17753 allow_undefined_flag='-berok' 17754 # Determine the default libpath from the value encoded in an 17755 # empty executable. 17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17757/* end confdefs.h. */ 17758 17759int 17760main () 17761{ 17762 17763 ; 17764 return 0; 17765} 17766_ACEOF 17767if ac_fn_c_try_link "$LINENO"; then : 17768 17769lt_aix_libpath_sed=' 17770 /Import File Strings/,/^$/ { 17771 /^0/ { 17772 s/^0 *\(.*\)$/\1/ 17773 p 17774 } 17775 }' 17776aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17777# Check for a 64-bit object if we didn't find anything. 17778if test -z "$aix_libpath"; then 17779 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17780fi 17781fi 17782rm -f core conftest.err conftest.$ac_objext \ 17783 conftest$ac_exeext conftest.$ac_ext 17784if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17785 17786 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 17787 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" 17788 else 17789 if test "$host_cpu" = ia64; then 17790 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 17791 allow_undefined_flag="-z nodefs" 17792 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" 17793 else 17794 # Determine the default libpath from the value encoded in an 17795 # empty executable. 17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17797/* end confdefs.h. */ 17798 17799int 17800main () 17801{ 17802 17803 ; 17804 return 0; 17805} 17806_ACEOF 17807if ac_fn_c_try_link "$LINENO"; then : 17808 17809lt_aix_libpath_sed=' 17810 /Import File Strings/,/^$/ { 17811 /^0/ { 17812 s/^0 *\(.*\)$/\1/ 17813 p 17814 } 17815 }' 17816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17817# Check for a 64-bit object if we didn't find anything. 17818if test -z "$aix_libpath"; then 17819 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17820fi 17821fi 17822rm -f core conftest.err conftest.$ac_objext \ 17823 conftest$ac_exeext conftest.$ac_ext 17824if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17825 17826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 17827 # Warning - without using the other run time loading flags, 17828 # -berok will link without error, but may produce a broken library. 17829 no_undefined_flag=' ${wl}-bernotok' 17830 allow_undefined_flag=' ${wl}-berok' 17831 if test "$with_gnu_ld" = yes; then 17832 # We only use this code for GNU lds that support --whole-archive. 17833 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 17834 else 17835 # Exported symbols can be pulled into shared objects from archives 17836 whole_archive_flag_spec='$convenience' 17837 fi 17838 archive_cmds_need_lc=yes 17839 # This is similar to how AIX traditionally builds its shared libraries. 17840 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' 17841 fi 17842 fi 17843 ;; 17844 17845 amigaos*) 17846 case $host_cpu in 17847 powerpc) 17848 # see comment about AmigaOS4 .so support 17849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17850 archive_expsym_cmds='' 17851 ;; 17852 m68k) 17853 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)' 17854 hardcode_libdir_flag_spec='-L$libdir' 17855 hardcode_minus_L=yes 17856 ;; 17857 esac 17858 ;; 17859 17860 bsdi[45]*) 17861 export_dynamic_flag_spec=-rdynamic 17862 ;; 17863 17864 cygwin* | mingw* | pw32* | cegcc*) 17865 # When not using gcc, we currently assume that we are using 17866 # Microsoft Visual C++. 17867 # hardcode_libdir_flag_spec is actually meaningless, as there is 17868 # no search path for DLLs. 17869 hardcode_libdir_flag_spec=' ' 17870 allow_undefined_flag=unsupported 17871 # Tell ltmain to make .lib files, not .a files. 17872 libext=lib 17873 # Tell ltmain to make .dll files, not .so files. 17874 shrext_cmds=".dll" 17875 # FIXME: Setting linknames here is a bad hack. 17876 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17877 # The linker will automatically build a .lib file if we build a DLL. 17878 old_archive_from_new_cmds='true' 17879 # FIXME: Should let the user specify the lib program. 17880 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17881 fix_srcfile_path='`cygpath -w "$srcfile"`' 17882 enable_shared_with_static_runtimes=yes 17883 ;; 17884 17885 darwin* | rhapsody*) 17886 17887 17888 archive_cmds_need_lc=no 17889 hardcode_direct=no 17890 hardcode_automatic=yes 17891 hardcode_shlibpath_var=unsupported 17892 if test "$lt_cv_ld_force_load" = "yes"; then 17893 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\"`' 17894 else 17895 whole_archive_flag_spec='' 17896 fi 17897 link_all_deplibs=yes 17898 allow_undefined_flag="$_lt_dar_allow_undefined" 17899 case $cc_basename in 17900 ifort*) _lt_dar_can_shared=yes ;; 17901 *) _lt_dar_can_shared=$GCC ;; 17902 esac 17903 if test "$_lt_dar_can_shared" = "yes"; then 17904 output_verbose_link_cmd=func_echo_all 17905 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17906 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17907 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}" 17908 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}" 17909 17910 else 17911 ld_shlibs=no 17912 fi 17913 17914 ;; 17915 17916 dgux*) 17917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17918 hardcode_libdir_flag_spec='-L$libdir' 17919 hardcode_shlibpath_var=no 17920 ;; 17921 17922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17923 # support. Future versions do this automatically, but an explicit c++rt0.o 17924 # does not break anything, and helps significantly (at the cost of a little 17925 # extra space). 17926 freebsd2.2*) 17927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17928 hardcode_libdir_flag_spec='-R$libdir' 17929 hardcode_direct=yes 17930 hardcode_shlibpath_var=no 17931 ;; 17932 17933 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17934 freebsd2.*) 17935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17936 hardcode_direct=yes 17937 hardcode_minus_L=yes 17938 hardcode_shlibpath_var=no 17939 ;; 17940 17941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17942 freebsd* | dragonfly*) 17943 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17944 hardcode_libdir_flag_spec='-R$libdir' 17945 hardcode_direct=yes 17946 hardcode_shlibpath_var=no 17947 ;; 17948 17949 hpux9*) 17950 if test "$GCC" = yes; then 17951 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' 17952 else 17953 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' 17954 fi 17955 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17956 hardcode_libdir_separator=: 17957 hardcode_direct=yes 17958 17959 # hardcode_minus_L: Not really in the search PATH, 17960 # but as the default location of the library. 17961 hardcode_minus_L=yes 17962 export_dynamic_flag_spec='${wl}-E' 17963 ;; 17964 17965 hpux10*) 17966 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 17967 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17968 else 17969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17970 fi 17971 if test "$with_gnu_ld" = no; then 17972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17973 hardcode_libdir_flag_spec_ld='+b $libdir' 17974 hardcode_libdir_separator=: 17975 hardcode_direct=yes 17976 hardcode_direct_absolute=yes 17977 export_dynamic_flag_spec='${wl}-E' 17978 # hardcode_minus_L: Not really in the search PATH, 17979 # but as the default location of the library. 17980 hardcode_minus_L=yes 17981 fi 17982 ;; 17983 17984 hpux11*) 17985 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 17986 case $host_cpu in 17987 hppa*64*) 17988 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17989 ;; 17990 ia64*) 17991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17992 ;; 17993 *) 17994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17995 ;; 17996 esac 17997 else 17998 case $host_cpu in 17999 hppa*64*) 18000 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18001 ;; 18002 ia64*) 18003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18004 ;; 18005 *) 18006 18007 # Older versions of the 11.00 compiler do not understand -b yet 18008 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 18010$as_echo_n "checking if $CC understands -b... " >&6; } 18011if ${lt_cv_prog_compiler__b+:} false; then : 18012 $as_echo_n "(cached) " >&6 18013else 18014 lt_cv_prog_compiler__b=no 18015 save_LDFLAGS="$LDFLAGS" 18016 LDFLAGS="$LDFLAGS -b" 18017 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18019 # The linker can only warn and ignore the option if not recognized 18020 # So say no if there are warnings 18021 if test -s conftest.err; then 18022 # Append any errors to the config.log. 18023 cat conftest.err 1>&5 18024 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18026 if diff conftest.exp conftest.er2 >/dev/null; then 18027 lt_cv_prog_compiler__b=yes 18028 fi 18029 else 18030 lt_cv_prog_compiler__b=yes 18031 fi 18032 fi 18033 $RM -r conftest* 18034 LDFLAGS="$save_LDFLAGS" 18035 18036fi 18037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 18038$as_echo "$lt_cv_prog_compiler__b" >&6; } 18039 18040if test x"$lt_cv_prog_compiler__b" = xyes; then 18041 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18042else 18043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18044fi 18045 18046 ;; 18047 esac 18048 fi 18049 if test "$with_gnu_ld" = no; then 18050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 18051 hardcode_libdir_separator=: 18052 18053 case $host_cpu in 18054 hppa*64*|ia64*) 18055 hardcode_direct=no 18056 hardcode_shlibpath_var=no 18057 ;; 18058 *) 18059 hardcode_direct=yes 18060 hardcode_direct_absolute=yes 18061 export_dynamic_flag_spec='${wl}-E' 18062 18063 # hardcode_minus_L: Not really in the search PATH, 18064 # but as the default location of the library. 18065 hardcode_minus_L=yes 18066 ;; 18067 esac 18068 fi 18069 ;; 18070 18071 irix5* | irix6* | nonstopux*) 18072 if test "$GCC" = yes; then 18073 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' 18074 # Try to use the -exported_symbol ld option, if it does not 18075 # work, assume that -exports_file does not work either and 18076 # implicitly export all symbols. 18077 save_LDFLAGS="$LDFLAGS" 18078 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18080/* end confdefs.h. */ 18081int foo(void) {} 18082_ACEOF 18083if ac_fn_c_try_link "$LINENO"; then : 18084 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' 18085 18086fi 18087rm -f core conftest.err conftest.$ac_objext \ 18088 conftest$ac_exeext conftest.$ac_ext 18089 LDFLAGS="$save_LDFLAGS" 18090 else 18091 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' 18092 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' 18093 fi 18094 archive_cmds_need_lc='no' 18095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18096 hardcode_libdir_separator=: 18097 inherit_rpath=yes 18098 link_all_deplibs=yes 18099 ;; 18100 18101 netbsd*) 18102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18104 else 18105 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18106 fi 18107 hardcode_libdir_flag_spec='-R$libdir' 18108 hardcode_direct=yes 18109 hardcode_shlibpath_var=no 18110 ;; 18111 18112 newsos6) 18113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18114 hardcode_direct=yes 18115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18116 hardcode_libdir_separator=: 18117 hardcode_shlibpath_var=no 18118 ;; 18119 18120 *nto* | *qnx*) 18121 ;; 18122 18123 openbsd*) 18124 if test -f /usr/libexec/ld.so; then 18125 hardcode_direct=yes 18126 hardcode_shlibpath_var=no 18127 hardcode_direct_absolute=yes 18128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18130 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18131 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 18132 export_dynamic_flag_spec='${wl}-E' 18133 else 18134 case $host_os in 18135 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18137 hardcode_libdir_flag_spec='-R$libdir' 18138 ;; 18139 *) 18140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 18142 ;; 18143 esac 18144 fi 18145 else 18146 ld_shlibs=no 18147 fi 18148 ;; 18149 18150 os2*) 18151 hardcode_libdir_flag_spec='-L$libdir' 18152 hardcode_minus_L=yes 18153 allow_undefined_flag=unsupported 18154 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' 18155 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18156 ;; 18157 18158 osf3*) 18159 if test "$GCC" = yes; then 18160 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 18161 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' 18162 else 18163 allow_undefined_flag=' -expect_unresolved \*' 18164 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' 18165 fi 18166 archive_cmds_need_lc='no' 18167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18168 hardcode_libdir_separator=: 18169 ;; 18170 18171 osf4* | osf5*) # as osf3* with the addition of -msym flag 18172 if test "$GCC" = yes; then 18173 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 18174 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' 18175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18176 else 18177 allow_undefined_flag=' -expect_unresolved \*' 18178 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' 18179 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~ 18180 $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' 18181 18182 # Both c and cxx compiler support -rpath directly 18183 hardcode_libdir_flag_spec='-rpath $libdir' 18184 fi 18185 archive_cmds_need_lc='no' 18186 hardcode_libdir_separator=: 18187 ;; 18188 18189 solaris*) 18190 no_undefined_flag=' -z defs' 18191 if test "$GCC" = yes; then 18192 wlarc='${wl}' 18193 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18195 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 18196 else 18197 case `$CC -V 2>&1` in 18198 *"Compilers 5.0"*) 18199 wlarc='' 18200 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18202 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 18203 ;; 18204 *) 18205 wlarc='${wl}' 18206 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 18207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18208 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 18209 ;; 18210 esac 18211 fi 18212 hardcode_libdir_flag_spec='-R$libdir' 18213 hardcode_shlibpath_var=no 18214 case $host_os in 18215 solaris2.[0-5] | solaris2.[0-5].*) ;; 18216 *) 18217 # The compiler driver will combine and reorder linker options, 18218 # but understands `-z linker_flag'. GCC discards it without `$wl', 18219 # but is careful enough not to reorder. 18220 # Supported since Solaris 2.6 (maybe 2.5.1?) 18221 if test "$GCC" = yes; then 18222 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18223 else 18224 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 18225 fi 18226 ;; 18227 esac 18228 link_all_deplibs=yes 18229 ;; 18230 18231 sunos4*) 18232 if test "x$host_vendor" = xsequent; then 18233 # Use $CC to link under sequent, because it throws in some extra .o 18234 # files that make .init and .fini sections work. 18235 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18236 else 18237 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18238 fi 18239 hardcode_libdir_flag_spec='-L$libdir' 18240 hardcode_direct=yes 18241 hardcode_minus_L=yes 18242 hardcode_shlibpath_var=no 18243 ;; 18244 18245 sysv4) 18246 case $host_vendor in 18247 sni) 18248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18249 hardcode_direct=yes # is this really true??? 18250 ;; 18251 siemens) 18252 ## LD is ld it makes a PLAMLIB 18253 ## CC just makes a GrossModule. 18254 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18255 reload_cmds='$CC -r -o $output$reload_objs' 18256 hardcode_direct=no 18257 ;; 18258 motorola) 18259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18260 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 18261 ;; 18262 esac 18263 runpath_var='LD_RUN_PATH' 18264 hardcode_shlibpath_var=no 18265 ;; 18266 18267 sysv4.3*) 18268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18269 hardcode_shlibpath_var=no 18270 export_dynamic_flag_spec='-Bexport' 18271 ;; 18272 18273 sysv4*MP*) 18274 if test -d /usr/nec; then 18275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18276 hardcode_shlibpath_var=no 18277 runpath_var=LD_RUN_PATH 18278 hardcode_runpath_var=yes 18279 ld_shlibs=yes 18280 fi 18281 ;; 18282 18283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18284 no_undefined_flag='${wl}-z,text' 18285 archive_cmds_need_lc=no 18286 hardcode_shlibpath_var=no 18287 runpath_var='LD_RUN_PATH' 18288 18289 if test "$GCC" = yes; then 18290 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18291 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18292 else 18293 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18294 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18295 fi 18296 ;; 18297 18298 sysv5* | sco3.2v5* | sco5v6*) 18299 # Note: We can NOT use -z defs as we might desire, because we do not 18300 # link with -lc, and that would cause any symbols used from libc to 18301 # always be unresolved, which means just about no library would 18302 # ever link correctly. If we're not using GNU ld we use -z text 18303 # though, which does catch some bad symbols but isn't as heavy-handed 18304 # as -z defs. 18305 no_undefined_flag='${wl}-z,text' 18306 allow_undefined_flag='${wl}-z,nodefs' 18307 archive_cmds_need_lc=no 18308 hardcode_shlibpath_var=no 18309 hardcode_libdir_flag_spec='${wl}-R,$libdir' 18310 hardcode_libdir_separator=':' 18311 link_all_deplibs=yes 18312 export_dynamic_flag_spec='${wl}-Bexport' 18313 runpath_var='LD_RUN_PATH' 18314 18315 if test "$GCC" = yes; then 18316 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18317 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18318 else 18319 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18320 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18321 fi 18322 ;; 18323 18324 uts4*) 18325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18326 hardcode_libdir_flag_spec='-L$libdir' 18327 hardcode_shlibpath_var=no 18328 ;; 18329 18330 *) 18331 ld_shlibs=no 18332 ;; 18333 esac 18334 18335 if test x$host_vendor = xsni; then 18336 case $host in 18337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18338 export_dynamic_flag_spec='${wl}-Blargedynsym' 18339 ;; 18340 esac 18341 fi 18342 fi 18343 18344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 18345$as_echo "$ld_shlibs" >&6; } 18346test "$ld_shlibs" = no && can_build_shared=no 18347 18348with_gnu_ld=$with_gnu_ld 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364# 18365# Do we need to explicitly link libc? 18366# 18367case "x$archive_cmds_need_lc" in 18368x|xyes) 18369 # Assume -lc should be added 18370 archive_cmds_need_lc=yes 18371 18372 if test "$enable_shared" = yes && test "$GCC" = yes; then 18373 case $archive_cmds in 18374 *'~'*) 18375 # FIXME: we may have to deal with multi-command sequences. 18376 ;; 18377 '$CC '*) 18378 # Test whether the compiler implicitly links with -lc since on some 18379 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18380 # to ld, don't add -lc before -lgcc. 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18382$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18383if ${lt_cv_archive_cmds_need_lc+:} false; then : 18384 $as_echo_n "(cached) " >&6 18385else 18386 $RM conftest* 18387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18388 18389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18390 (eval $ac_compile) 2>&5 18391 ac_status=$? 18392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18393 test $ac_status = 0; } 2>conftest.err; then 18394 soname=conftest 18395 lib=conftest 18396 libobjs=conftest.$ac_objext 18397 deplibs= 18398 wl=$lt_prog_compiler_wl 18399 pic_flag=$lt_prog_compiler_pic 18400 compiler_flags=-v 18401 linker_flags=-v 18402 verstring= 18403 output_objdir=. 18404 libname=conftest 18405 lt_save_allow_undefined_flag=$allow_undefined_flag 18406 allow_undefined_flag= 18407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18408 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18409 ac_status=$? 18410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18411 test $ac_status = 0; } 18412 then 18413 lt_cv_archive_cmds_need_lc=no 18414 else 18415 lt_cv_archive_cmds_need_lc=yes 18416 fi 18417 allow_undefined_flag=$lt_save_allow_undefined_flag 18418 else 18419 cat conftest.err 1>&5 18420 fi 18421 $RM conftest* 18422 18423fi 18424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 18425$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 18426 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 18427 ;; 18428 esac 18429 fi 18430 ;; 18431esac 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 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18590$as_echo_n "checking dynamic linker characteristics... " >&6; } 18591 18592if test "$GCC" = yes; then 18593 case $host_os in 18594 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 18595 *) lt_awk_arg="/^libraries:/" ;; 18596 esac 18597 case $host_os in 18598 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 18599 *) lt_sed_strip_eq="s,=/,/,g" ;; 18600 esac 18601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18602 case $lt_search_path_spec in 18603 *\;*) 18604 # if the path contains ";" then we assume it to be the separator 18605 # otherwise default to the standard path separator (i.e. ":") - it is 18606 # assumed that no part of a normal pathname contains ";" but that should 18607 # okay in the real world where ";" in dirpaths is itself problematic. 18608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18609 ;; 18610 *) 18611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18612 ;; 18613 esac 18614 # Ok, now we have the path, separated by spaces, we can step through it 18615 # and add multilib dir if necessary. 18616 lt_tmp_lt_search_path_spec= 18617 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18618 for lt_sys_path in $lt_search_path_spec; do 18619 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 18620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 18621 else 18622 test -d "$lt_sys_path" && \ 18623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18624 fi 18625 done 18626 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18627BEGIN {RS=" "; FS="/|\n";} { 18628 lt_foo=""; 18629 lt_count=0; 18630 for (lt_i = NF; lt_i > 0; lt_i--) { 18631 if ($lt_i != "" && $lt_i != ".") { 18632 if ($lt_i == "..") { 18633 lt_count++; 18634 } else { 18635 if (lt_count == 0) { 18636 lt_foo="/" $lt_i lt_foo; 18637 } else { 18638 lt_count--; 18639 } 18640 } 18641 } 18642 } 18643 if (lt_foo != "") { lt_freq[lt_foo]++; } 18644 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18645}'` 18646 # AWK program above erroneously prepends '/' to C:/dos/paths 18647 # for these hosts. 18648 case $host_os in 18649 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18650 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 18651 esac 18652 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18653else 18654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18655fi 18656library_names_spec= 18657libname_spec='lib$name' 18658soname_spec= 18659shrext_cmds=".so" 18660postinstall_cmds= 18661postuninstall_cmds= 18662finish_cmds= 18663finish_eval= 18664shlibpath_var= 18665shlibpath_overrides_runpath=unknown 18666version_type=none 18667dynamic_linker="$host_os ld.so" 18668sys_lib_dlsearch_path_spec="/lib /usr/lib" 18669need_lib_prefix=unknown 18670hardcode_into_libs=no 18671 18672# when you set need_version to no, make sure it does not cause -set_version 18673# flags to be left without arguments 18674need_version=unknown 18675 18676case $host_os in 18677aix3*) 18678 version_type=linux 18679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18680 shlibpath_var=LIBPATH 18681 18682 # AIX 3 has no versioning support, so we append a major version to the name. 18683 soname_spec='${libname}${release}${shared_ext}$major' 18684 ;; 18685 18686aix[4-9]*) 18687 version_type=linux 18688 need_lib_prefix=no 18689 need_version=no 18690 hardcode_into_libs=yes 18691 if test "$host_cpu" = ia64; then 18692 # AIX 5 supports IA64 18693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18694 shlibpath_var=LD_LIBRARY_PATH 18695 else 18696 # With GCC up to 2.95.x, collect2 would create an import file 18697 # for dependence libraries. The import file would start with 18698 # the line `#! .'. This would cause the generated library to 18699 # depend on `.', always an invalid library. This was fixed in 18700 # development snapshots of GCC prior to 3.0. 18701 case $host_os in 18702 aix4 | aix4.[01] | aix4.[01].*) 18703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18704 echo ' yes ' 18705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 18706 : 18707 else 18708 can_build_shared=no 18709 fi 18710 ;; 18711 esac 18712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18713 # soname into executable. Probably we can add versioning support to 18714 # collect2, so additional links can be useful in future. 18715 if test "$aix_use_runtimelinking" = yes; then 18716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18717 # instead of lib<name>.a to let people know that these are not 18718 # typical AIX shared libraries. 18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18720 else 18721 # We preserve .a as extension for shared libraries through AIX4.2 18722 # and later when we are not doing run time linking. 18723 library_names_spec='${libname}${release}.a $libname.a' 18724 soname_spec='${libname}${release}${shared_ext}$major' 18725 fi 18726 shlibpath_var=LIBPATH 18727 fi 18728 ;; 18729 18730amigaos*) 18731 case $host_cpu in 18732 powerpc) 18733 # Since July 2007 AmigaOS4 officially supports .so libraries. 18734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18736 ;; 18737 m68k) 18738 library_names_spec='$libname.ixlibrary $libname.a' 18739 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18740 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' 18741 ;; 18742 esac 18743 ;; 18744 18745beos*) 18746 library_names_spec='${libname}${shared_ext}' 18747 dynamic_linker="$host_os ld.so" 18748 shlibpath_var=LIBRARY_PATH 18749 ;; 18750 18751bsdi[45]*) 18752 version_type=linux 18753 need_version=no 18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18755 soname_spec='${libname}${release}${shared_ext}$major' 18756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18757 shlibpath_var=LD_LIBRARY_PATH 18758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18760 # the default ld.so.conf also contains /usr/contrib/lib and 18761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18762 # libtool to hard-code these into programs 18763 ;; 18764 18765cygwin* | mingw* | pw32* | cegcc*) 18766 version_type=windows 18767 shrext_cmds=".dll" 18768 need_version=no 18769 need_lib_prefix=no 18770 18771 case $GCC,$host_os in 18772 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 18773 library_names_spec='$libname.dll.a' 18774 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18775 postinstall_cmds='base_file=`basename \${file}`~ 18776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 18777 dldir=$destdir/`dirname \$dlpath`~ 18778 test -d \$dldir || mkdir -p \$dldir~ 18779 $install_prog $dir/$dlname \$dldir/$dlname~ 18780 chmod a+x \$dldir/$dlname~ 18781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18783 fi' 18784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18785 dlpath=$dir/\$dldll~ 18786 $RM \$dlpath' 18787 shlibpath_overrides_runpath=yes 18788 18789 case $host_os in 18790 cygwin*) 18791 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18792 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18793 18794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18795 ;; 18796 mingw* | cegcc*) 18797 # MinGW DLLs use traditional 'lib' prefix 18798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18799 ;; 18800 pw32*) 18801 # pw32 DLLs use 'pw' prefix rather than 'lib' 18802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18803 ;; 18804 esac 18805 ;; 18806 18807 *) 18808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18809 ;; 18810 esac 18811 dynamic_linker='Win32 ld.exe' 18812 # FIXME: first we should search . and the directory the executable is in 18813 shlibpath_var=PATH 18814 ;; 18815 18816darwin* | rhapsody*) 18817 dynamic_linker="$host_os dyld" 18818 version_type=darwin 18819 need_lib_prefix=no 18820 need_version=no 18821 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18822 soname_spec='${libname}${release}${major}$shared_ext' 18823 shlibpath_overrides_runpath=yes 18824 shlibpath_var=DYLD_LIBRARY_PATH 18825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18826 18827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18829 ;; 18830 18831dgux*) 18832 version_type=linux 18833 need_lib_prefix=no 18834 need_version=no 18835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18836 soname_spec='${libname}${release}${shared_ext}$major' 18837 shlibpath_var=LD_LIBRARY_PATH 18838 ;; 18839 18840freebsd* | dragonfly*) 18841 # DragonFly does not have aout. When/if they implement a new 18842 # versioning mechanism, adjust this. 18843 if test -x /usr/bin/objformat; then 18844 objformat=`/usr/bin/objformat` 18845 else 18846 case $host_os in 18847 freebsd[23].*) objformat=aout ;; 18848 *) objformat=elf ;; 18849 esac 18850 fi 18851 version_type=freebsd-$objformat 18852 case $version_type in 18853 freebsd-elf*) 18854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18855 need_version=no 18856 need_lib_prefix=no 18857 ;; 18858 freebsd-*) 18859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18860 need_version=yes 18861 ;; 18862 esac 18863 shlibpath_var=LD_LIBRARY_PATH 18864 case $host_os in 18865 freebsd2.*) 18866 shlibpath_overrides_runpath=yes 18867 ;; 18868 freebsd3.[01]* | freebsdelf3.[01]*) 18869 shlibpath_overrides_runpath=yes 18870 hardcode_into_libs=yes 18871 ;; 18872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18874 shlibpath_overrides_runpath=no 18875 hardcode_into_libs=yes 18876 ;; 18877 *) # from 4.6 on, and DragonFly 18878 shlibpath_overrides_runpath=yes 18879 hardcode_into_libs=yes 18880 ;; 18881 esac 18882 ;; 18883 18884haiku*) 18885 version_type=linux 18886 need_lib_prefix=no 18887 need_version=no 18888 dynamic_linker="$host_os runtime_loader" 18889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18890 soname_spec='${libname}${release}${shared_ext}$major' 18891 shlibpath_var=LIBRARY_PATH 18892 shlibpath_overrides_runpath=yes 18893 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 18894 hardcode_into_libs=yes 18895 ;; 18896 18897hpux9* | hpux10* | hpux11*) 18898 # Give a soname corresponding to the major version so that dld.sl refuses to 18899 # link against other versions. 18900 version_type=sunos 18901 need_lib_prefix=no 18902 need_version=no 18903 case $host_cpu in 18904 ia64*) 18905 shrext_cmds='.so' 18906 hardcode_into_libs=yes 18907 dynamic_linker="$host_os dld.so" 18908 shlibpath_var=LD_LIBRARY_PATH 18909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18911 soname_spec='${libname}${release}${shared_ext}$major' 18912 if test "X$HPUX_IA64_MODE" = X32; then 18913 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18914 else 18915 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18916 fi 18917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18918 ;; 18919 hppa*64*) 18920 shrext_cmds='.sl' 18921 hardcode_into_libs=yes 18922 dynamic_linker="$host_os dld.sl" 18923 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18926 soname_spec='${libname}${release}${shared_ext}$major' 18927 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18929 ;; 18930 *) 18931 shrext_cmds='.sl' 18932 dynamic_linker="$host_os dld.sl" 18933 shlibpath_var=SHLIB_PATH 18934 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18936 soname_spec='${libname}${release}${shared_ext}$major' 18937 ;; 18938 esac 18939 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18940 postinstall_cmds='chmod 555 $lib' 18941 # or fails outright, so override atomically: 18942 install_override_mode=555 18943 ;; 18944 18945interix[3-9]*) 18946 version_type=linux 18947 need_lib_prefix=no 18948 need_version=no 18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18950 soname_spec='${libname}${release}${shared_ext}$major' 18951 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18952 shlibpath_var=LD_LIBRARY_PATH 18953 shlibpath_overrides_runpath=no 18954 hardcode_into_libs=yes 18955 ;; 18956 18957irix5* | irix6* | nonstopux*) 18958 case $host_os in 18959 nonstopux*) version_type=nonstopux ;; 18960 *) 18961 if test "$lt_cv_prog_gnu_ld" = yes; then 18962 version_type=linux 18963 else 18964 version_type=irix 18965 fi ;; 18966 esac 18967 need_lib_prefix=no 18968 need_version=no 18969 soname_spec='${libname}${release}${shared_ext}$major' 18970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18971 case $host_os in 18972 irix5* | nonstopux*) 18973 libsuff= shlibsuff= 18974 ;; 18975 *) 18976 case $LD in # libtool.m4 will add one of these switches to LD 18977 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18978 libsuff= shlibsuff= libmagic=32-bit;; 18979 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18980 libsuff=32 shlibsuff=N32 libmagic=N32;; 18981 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18982 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18983 *) libsuff= shlibsuff= libmagic=never-match;; 18984 esac 18985 ;; 18986 esac 18987 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18988 shlibpath_overrides_runpath=no 18989 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18990 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18991 hardcode_into_libs=yes 18992 ;; 18993 18994# No shared lib support for Linux oldld, aout, or coff. 18995linux*oldld* | linux*aout* | linux*coff*) 18996 dynamic_linker=no 18997 ;; 18998 18999# This must be Linux ELF. 19000 19001# uclinux* changes (here and below) have been submitted to the libtool 19002# project, but have not yet been accepted: they are GCC-local changes 19003# for the time being. (See 19004# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 19005linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 19006 version_type=linux 19007 need_lib_prefix=no 19008 need_version=no 19009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19010 soname_spec='${libname}${release}${shared_ext}$major' 19011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19012 shlibpath_var=LD_LIBRARY_PATH 19013 shlibpath_overrides_runpath=no 19014 19015 # Some binutils ld are patched to set DT_RUNPATH 19016 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 19017 $as_echo_n "(cached) " >&6 19018else 19019 lt_cv_shlibpath_overrides_runpath=no 19020 save_LDFLAGS=$LDFLAGS 19021 save_libdir=$libdir 19022 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 19023 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19025/* end confdefs.h. */ 19026 19027int 19028main () 19029{ 19030 19031 ; 19032 return 0; 19033} 19034_ACEOF 19035if ac_fn_c_try_link "$LINENO"; then : 19036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 19037 lt_cv_shlibpath_overrides_runpath=yes 19038fi 19039fi 19040rm -f core conftest.err conftest.$ac_objext \ 19041 conftest$ac_exeext conftest.$ac_ext 19042 LDFLAGS=$save_LDFLAGS 19043 libdir=$save_libdir 19044 19045fi 19046 19047 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 19048 19049 # This implies no fast_install, which is unacceptable. 19050 # Some rework will be needed to allow for fast_install 19051 # before this can be enabled. 19052 hardcode_into_libs=yes 19053 19054 # Append ld.so.conf contents to the search path 19055 if test -f /etc/ld.so.conf; then 19056 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' ' '` 19057 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19058 fi 19059 19060 # We used to test for /lib/ld.so.1 and disable shared libraries on 19061 # powerpc, because MkLinux only supported shared libraries with the 19062 # GNU dynamic linker. Since this was broken with cross compilers, 19063 # most powerpc-linux boxes support dynamic linking these days and 19064 # people can always --disable-shared, the test was removed, and we 19065 # assume the GNU/Linux dynamic linker is in use. 19066 dynamic_linker='GNU/Linux ld.so' 19067 ;; 19068 19069netbsd*) 19070 version_type=sunos 19071 need_lib_prefix=no 19072 need_version=no 19073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19076 dynamic_linker='NetBSD (a.out) ld.so' 19077 else 19078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19079 soname_spec='${libname}${release}${shared_ext}$major' 19080 dynamic_linker='NetBSD ld.elf_so' 19081 fi 19082 shlibpath_var=LD_LIBRARY_PATH 19083 shlibpath_overrides_runpath=yes 19084 hardcode_into_libs=yes 19085 ;; 19086 19087newsos6) 19088 version_type=linux 19089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19090 shlibpath_var=LD_LIBRARY_PATH 19091 shlibpath_overrides_runpath=yes 19092 ;; 19093 19094*nto* | *qnx*) 19095 version_type=qnx 19096 need_lib_prefix=no 19097 need_version=no 19098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19099 soname_spec='${libname}${release}${shared_ext}$major' 19100 shlibpath_var=LD_LIBRARY_PATH 19101 shlibpath_overrides_runpath=no 19102 hardcode_into_libs=yes 19103 dynamic_linker='ldqnx.so' 19104 ;; 19105 19106openbsd*) 19107 version_type=sunos 19108 sys_lib_dlsearch_path_spec="/usr/lib" 19109 need_lib_prefix=no 19110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19111 case $host_os in 19112 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19113 *) need_version=no ;; 19114 esac 19115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19117 shlibpath_var=LD_LIBRARY_PATH 19118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19119 case $host_os in 19120 openbsd2.[89] | openbsd2.[89].*) 19121 shlibpath_overrides_runpath=no 19122 ;; 19123 *) 19124 shlibpath_overrides_runpath=yes 19125 ;; 19126 esac 19127 else 19128 shlibpath_overrides_runpath=yes 19129 fi 19130 ;; 19131 19132os2*) 19133 libname_spec='$name' 19134 shrext_cmds=".dll" 19135 need_lib_prefix=no 19136 library_names_spec='$libname${shared_ext} $libname.a' 19137 dynamic_linker='OS/2 ld.exe' 19138 shlibpath_var=LIBPATH 19139 ;; 19140 19141osf3* | osf4* | osf5*) 19142 version_type=osf 19143 need_lib_prefix=no 19144 need_version=no 19145 soname_spec='${libname}${release}${shared_ext}$major' 19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19147 shlibpath_var=LD_LIBRARY_PATH 19148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19150 ;; 19151 19152rdos*) 19153 dynamic_linker=no 19154 ;; 19155 19156solaris*) 19157 version_type=linux 19158 need_lib_prefix=no 19159 need_version=no 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 shlibpath_overrides_runpath=yes 19164 hardcode_into_libs=yes 19165 # ldd complains unless libraries are executable 19166 postinstall_cmds='chmod +x $lib' 19167 ;; 19168 19169sunos4*) 19170 version_type=sunos 19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19173 shlibpath_var=LD_LIBRARY_PATH 19174 shlibpath_overrides_runpath=yes 19175 if test "$with_gnu_ld" = yes; then 19176 need_lib_prefix=no 19177 fi 19178 need_version=yes 19179 ;; 19180 19181sysv4 | sysv4.3*) 19182 version_type=linux 19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19184 soname_spec='${libname}${release}${shared_ext}$major' 19185 shlibpath_var=LD_LIBRARY_PATH 19186 case $host_vendor in 19187 sni) 19188 shlibpath_overrides_runpath=no 19189 need_lib_prefix=no 19190 runpath_var=LD_RUN_PATH 19191 ;; 19192 siemens) 19193 need_lib_prefix=no 19194 ;; 19195 motorola) 19196 need_lib_prefix=no 19197 need_version=no 19198 shlibpath_overrides_runpath=no 19199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19200 ;; 19201 esac 19202 ;; 19203 19204sysv4*MP*) 19205 if test -d /usr/nec ;then 19206 version_type=linux 19207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19208 soname_spec='$libname${shared_ext}.$major' 19209 shlibpath_var=LD_LIBRARY_PATH 19210 fi 19211 ;; 19212 19213sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19214 version_type=freebsd-elf 19215 need_lib_prefix=no 19216 need_version=no 19217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19218 soname_spec='${libname}${release}${shared_ext}$major' 19219 shlibpath_var=LD_LIBRARY_PATH 19220 shlibpath_overrides_runpath=yes 19221 hardcode_into_libs=yes 19222 if test "$with_gnu_ld" = yes; then 19223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19224 else 19225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19226 case $host_os in 19227 sco3.2v5*) 19228 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19229 ;; 19230 esac 19231 fi 19232 sys_lib_dlsearch_path_spec='/usr/lib' 19233 ;; 19234 19235tpf*) 19236 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19237 version_type=linux 19238 need_lib_prefix=no 19239 need_version=no 19240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19241 shlibpath_var=LD_LIBRARY_PATH 19242 shlibpath_overrides_runpath=no 19243 hardcode_into_libs=yes 19244 ;; 19245 19246uts4*) 19247 version_type=linux 19248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19249 soname_spec='${libname}${release}${shared_ext}$major' 19250 shlibpath_var=LD_LIBRARY_PATH 19251 ;; 19252 19253*) 19254 dynamic_linker=no 19255 ;; 19256esac 19257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19258$as_echo "$dynamic_linker" >&6; } 19259test "$dynamic_linker" = no && can_build_shared=no 19260 19261variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19262if test "$GCC" = yes; then 19263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19264fi 19265 19266if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19267 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19268fi 19269if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19270 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19271fi 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 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19365$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19366hardcode_action= 19367if test -n "$hardcode_libdir_flag_spec" || 19368 test -n "$runpath_var" || 19369 test "X$hardcode_automatic" = "Xyes" ; then 19370 19371 # We can hardcode non-existent directories. 19372 if test "$hardcode_direct" != no && 19373 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19374 # have to relink, otherwise we might link with an installed library 19375 # when we should be linking with a yet-to-be-installed one 19376 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 19377 test "$hardcode_minus_L" != no; then 19378 # Linking always hardcodes the temporary library directory. 19379 hardcode_action=relink 19380 else 19381 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19382 hardcode_action=immediate 19383 fi 19384else 19385 # We cannot hardcode anything, or else we can only hardcode existing 19386 # directories. 19387 hardcode_action=unsupported 19388fi 19389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19390$as_echo "$hardcode_action" >&6; } 19391 19392if test "$hardcode_action" = relink || 19393 test "$inherit_rpath" = yes; then 19394 # Fast installation is not supported 19395 enable_fast_install=no 19396elif test "$shlibpath_overrides_runpath" = yes || 19397 test "$enable_shared" = no; then 19398 # Fast installation is not necessary 19399 enable_fast_install=needless 19400fi 19401 19402 19403 19404 19405 19406 19407 if test "x$enable_dlopen" != xyes; then 19408 enable_dlopen=unknown 19409 enable_dlopen_self=unknown 19410 enable_dlopen_self_static=unknown 19411else 19412 lt_cv_dlopen=no 19413 lt_cv_dlopen_libs= 19414 19415 case $host_os in 19416 beos*) 19417 lt_cv_dlopen="load_add_on" 19418 lt_cv_dlopen_libs= 19419 lt_cv_dlopen_self=yes 19420 ;; 19421 19422 mingw* | pw32* | cegcc*) 19423 lt_cv_dlopen="LoadLibrary" 19424 lt_cv_dlopen_libs= 19425 ;; 19426 19427 cygwin*) 19428 lt_cv_dlopen="dlopen" 19429 lt_cv_dlopen_libs= 19430 ;; 19431 19432 darwin*) 19433 # if libdl is installed we need to link against it 19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19435$as_echo_n "checking for dlopen in -ldl... " >&6; } 19436if ${ac_cv_lib_dl_dlopen+:} false; then : 19437 $as_echo_n "(cached) " >&6 19438else 19439 ac_check_lib_save_LIBS=$LIBS 19440LIBS="-ldl $LIBS" 19441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19442/* end confdefs.h. */ 19443 19444/* Override any GCC internal prototype to avoid an error. 19445 Use char because int might match the return type of a GCC 19446 builtin and then its argument prototype would still apply. */ 19447#ifdef __cplusplus 19448extern "C" 19449#endif 19450char dlopen (); 19451int 19452main () 19453{ 19454return dlopen (); 19455 ; 19456 return 0; 19457} 19458_ACEOF 19459if ac_fn_c_try_link "$LINENO"; then : 19460 ac_cv_lib_dl_dlopen=yes 19461else 19462 ac_cv_lib_dl_dlopen=no 19463fi 19464rm -f core conftest.err conftest.$ac_objext \ 19465 conftest$ac_exeext conftest.$ac_ext 19466LIBS=$ac_check_lib_save_LIBS 19467fi 19468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19469$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19470if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19471 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19472else 19473 19474 lt_cv_dlopen="dyld" 19475 lt_cv_dlopen_libs= 19476 lt_cv_dlopen_self=yes 19477 19478fi 19479 19480 ;; 19481 19482 *) 19483 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19484if test "x$ac_cv_func_shl_load" = xyes; then : 19485 lt_cv_dlopen="shl_load" 19486else 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19488$as_echo_n "checking for shl_load in -ldld... " >&6; } 19489if ${ac_cv_lib_dld_shl_load+:} false; then : 19490 $as_echo_n "(cached) " >&6 19491else 19492 ac_check_lib_save_LIBS=$LIBS 19493LIBS="-ldld $LIBS" 19494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19495/* end confdefs.h. */ 19496 19497/* Override any GCC internal prototype to avoid an error. 19498 Use char because int might match the return type of a GCC 19499 builtin and then its argument prototype would still apply. */ 19500#ifdef __cplusplus 19501extern "C" 19502#endif 19503char shl_load (); 19504int 19505main () 19506{ 19507return shl_load (); 19508 ; 19509 return 0; 19510} 19511_ACEOF 19512if ac_fn_c_try_link "$LINENO"; then : 19513 ac_cv_lib_dld_shl_load=yes 19514else 19515 ac_cv_lib_dld_shl_load=no 19516fi 19517rm -f core conftest.err conftest.$ac_objext \ 19518 conftest$ac_exeext conftest.$ac_ext 19519LIBS=$ac_check_lib_save_LIBS 19520fi 19521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19522$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 19523if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 19524 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 19525else 19526 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19527if test "x$ac_cv_func_dlopen" = xyes; then : 19528 lt_cv_dlopen="dlopen" 19529else 19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19531$as_echo_n "checking for dlopen in -ldl... " >&6; } 19532if ${ac_cv_lib_dl_dlopen+:} false; then : 19533 $as_echo_n "(cached) " >&6 19534else 19535 ac_check_lib_save_LIBS=$LIBS 19536LIBS="-ldl $LIBS" 19537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19538/* end confdefs.h. */ 19539 19540/* Override any GCC internal prototype to avoid an error. 19541 Use char because int might match the return type of a GCC 19542 builtin and then its argument prototype would still apply. */ 19543#ifdef __cplusplus 19544extern "C" 19545#endif 19546char dlopen (); 19547int 19548main () 19549{ 19550return dlopen (); 19551 ; 19552 return 0; 19553} 19554_ACEOF 19555if ac_fn_c_try_link "$LINENO"; then : 19556 ac_cv_lib_dl_dlopen=yes 19557else 19558 ac_cv_lib_dl_dlopen=no 19559fi 19560rm -f core conftest.err conftest.$ac_objext \ 19561 conftest$ac_exeext conftest.$ac_ext 19562LIBS=$ac_check_lib_save_LIBS 19563fi 19564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19565$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19566if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19568else 19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19570$as_echo_n "checking for dlopen in -lsvld... " >&6; } 19571if ${ac_cv_lib_svld_dlopen+:} false; then : 19572 $as_echo_n "(cached) " >&6 19573else 19574 ac_check_lib_save_LIBS=$LIBS 19575LIBS="-lsvld $LIBS" 19576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19577/* end confdefs.h. */ 19578 19579/* Override any GCC internal prototype to avoid an error. 19580 Use char because int might match the return type of a GCC 19581 builtin and then its argument prototype would still apply. */ 19582#ifdef __cplusplus 19583extern "C" 19584#endif 19585char dlopen (); 19586int 19587main () 19588{ 19589return dlopen (); 19590 ; 19591 return 0; 19592} 19593_ACEOF 19594if ac_fn_c_try_link "$LINENO"; then : 19595 ac_cv_lib_svld_dlopen=yes 19596else 19597 ac_cv_lib_svld_dlopen=no 19598fi 19599rm -f core conftest.err conftest.$ac_objext \ 19600 conftest$ac_exeext conftest.$ac_ext 19601LIBS=$ac_check_lib_save_LIBS 19602fi 19603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19604$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 19605if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 19606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 19607else 19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19609$as_echo_n "checking for dld_link in -ldld... " >&6; } 19610if ${ac_cv_lib_dld_dld_link+:} false; then : 19611 $as_echo_n "(cached) " >&6 19612else 19613 ac_check_lib_save_LIBS=$LIBS 19614LIBS="-ldld $LIBS" 19615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19616/* end confdefs.h. */ 19617 19618/* Override any GCC internal prototype to avoid an error. 19619 Use char because int might match the return type of a GCC 19620 builtin and then its argument prototype would still apply. */ 19621#ifdef __cplusplus 19622extern "C" 19623#endif 19624char dld_link (); 19625int 19626main () 19627{ 19628return dld_link (); 19629 ; 19630 return 0; 19631} 19632_ACEOF 19633if ac_fn_c_try_link "$LINENO"; then : 19634 ac_cv_lib_dld_dld_link=yes 19635else 19636 ac_cv_lib_dld_dld_link=no 19637fi 19638rm -f core conftest.err conftest.$ac_objext \ 19639 conftest$ac_exeext conftest.$ac_ext 19640LIBS=$ac_check_lib_save_LIBS 19641fi 19642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19643$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 19644if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 19645 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 19646fi 19647 19648 19649fi 19650 19651 19652fi 19653 19654 19655fi 19656 19657 19658fi 19659 19660 19661fi 19662 19663 ;; 19664 esac 19665 19666 if test "x$lt_cv_dlopen" != xno; then 19667 enable_dlopen=yes 19668 else 19669 enable_dlopen=no 19670 fi 19671 19672 case $lt_cv_dlopen in 19673 dlopen) 19674 save_CPPFLAGS="$CPPFLAGS" 19675 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19676 19677 save_LDFLAGS="$LDFLAGS" 19678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19679 19680 save_LIBS="$LIBS" 19681 LIBS="$lt_cv_dlopen_libs $LIBS" 19682 19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19684$as_echo_n "checking whether a program can dlopen itself... " >&6; } 19685if ${lt_cv_dlopen_self+:} false; then : 19686 $as_echo_n "(cached) " >&6 19687else 19688 if test "$cross_compiling" = yes; then : 19689 lt_cv_dlopen_self=cross 19690else 19691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19692 lt_status=$lt_dlunknown 19693 cat > conftest.$ac_ext <<_LT_EOF 19694#line 19694 "configure" 19695#include "confdefs.h" 19696 19697#if HAVE_DLFCN_H 19698#include <dlfcn.h> 19699#endif 19700 19701#include <stdio.h> 19702 19703#ifdef RTLD_GLOBAL 19704# define LT_DLGLOBAL RTLD_GLOBAL 19705#else 19706# ifdef DL_GLOBAL 19707# define LT_DLGLOBAL DL_GLOBAL 19708# else 19709# define LT_DLGLOBAL 0 19710# endif 19711#endif 19712 19713/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19714 find out it does not work in some platform. */ 19715#ifndef LT_DLLAZY_OR_NOW 19716# ifdef RTLD_LAZY 19717# define LT_DLLAZY_OR_NOW RTLD_LAZY 19718# else 19719# ifdef DL_LAZY 19720# define LT_DLLAZY_OR_NOW DL_LAZY 19721# else 19722# ifdef RTLD_NOW 19723# define LT_DLLAZY_OR_NOW RTLD_NOW 19724# else 19725# ifdef DL_NOW 19726# define LT_DLLAZY_OR_NOW DL_NOW 19727# else 19728# define LT_DLLAZY_OR_NOW 0 19729# endif 19730# endif 19731# endif 19732# endif 19733#endif 19734 19735/* When -fvisbility=hidden is used, assume the code has been annotated 19736 correspondingly for the symbols needed. */ 19737#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19738void fnord () __attribute__((visibility("default"))); 19739#endif 19740 19741void fnord () { int i=42; } 19742int main () 19743{ 19744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19745 int status = $lt_dlunknown; 19746 19747 if (self) 19748 { 19749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19750 else 19751 { 19752 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19753 else puts (dlerror ()); 19754 } 19755 /* dlclose (self); */ 19756 } 19757 else 19758 puts (dlerror ()); 19759 19760 return status; 19761} 19762_LT_EOF 19763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19764 (eval $ac_link) 2>&5 19765 ac_status=$? 19766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19767 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 19768 (./conftest; exit; ) >&5 2>/dev/null 19769 lt_status=$? 19770 case x$lt_status in 19771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19773 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19774 esac 19775 else : 19776 # compilation failed 19777 lt_cv_dlopen_self=no 19778 fi 19779fi 19780rm -fr conftest* 19781 19782 19783fi 19784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19785$as_echo "$lt_cv_dlopen_self" >&6; } 19786 19787 if test "x$lt_cv_dlopen_self" = xyes; then 19788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19790$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 19791if ${lt_cv_dlopen_self_static+:} false; then : 19792 $as_echo_n "(cached) " >&6 19793else 19794 if test "$cross_compiling" = yes; then : 19795 lt_cv_dlopen_self_static=cross 19796else 19797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19798 lt_status=$lt_dlunknown 19799 cat > conftest.$ac_ext <<_LT_EOF 19800#line 19800 "configure" 19801#include "confdefs.h" 19802 19803#if HAVE_DLFCN_H 19804#include <dlfcn.h> 19805#endif 19806 19807#include <stdio.h> 19808 19809#ifdef RTLD_GLOBAL 19810# define LT_DLGLOBAL RTLD_GLOBAL 19811#else 19812# ifdef DL_GLOBAL 19813# define LT_DLGLOBAL DL_GLOBAL 19814# else 19815# define LT_DLGLOBAL 0 19816# endif 19817#endif 19818 19819/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19820 find out it does not work in some platform. */ 19821#ifndef LT_DLLAZY_OR_NOW 19822# ifdef RTLD_LAZY 19823# define LT_DLLAZY_OR_NOW RTLD_LAZY 19824# else 19825# ifdef DL_LAZY 19826# define LT_DLLAZY_OR_NOW DL_LAZY 19827# else 19828# ifdef RTLD_NOW 19829# define LT_DLLAZY_OR_NOW RTLD_NOW 19830# else 19831# ifdef DL_NOW 19832# define LT_DLLAZY_OR_NOW DL_NOW 19833# else 19834# define LT_DLLAZY_OR_NOW 0 19835# endif 19836# endif 19837# endif 19838# endif 19839#endif 19840 19841/* When -fvisbility=hidden is used, assume the code has been annotated 19842 correspondingly for the symbols needed. */ 19843#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19844void fnord () __attribute__((visibility("default"))); 19845#endif 19846 19847void fnord () { int i=42; } 19848int main () 19849{ 19850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19851 int status = $lt_dlunknown; 19852 19853 if (self) 19854 { 19855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19856 else 19857 { 19858 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19859 else puts (dlerror ()); 19860 } 19861 /* dlclose (self); */ 19862 } 19863 else 19864 puts (dlerror ()); 19865 19866 return status; 19867} 19868_LT_EOF 19869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19870 (eval $ac_link) 2>&5 19871 ac_status=$? 19872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19873 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 19874 (./conftest; exit; ) >&5 2>/dev/null 19875 lt_status=$? 19876 case x$lt_status in 19877 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19878 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19879 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19880 esac 19881 else : 19882 # compilation failed 19883 lt_cv_dlopen_self_static=no 19884 fi 19885fi 19886rm -fr conftest* 19887 19888 19889fi 19890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19891$as_echo "$lt_cv_dlopen_self_static" >&6; } 19892 fi 19893 19894 CPPFLAGS="$save_CPPFLAGS" 19895 LDFLAGS="$save_LDFLAGS" 19896 LIBS="$save_LIBS" 19897 ;; 19898 esac 19899 19900 case $lt_cv_dlopen_self in 19901 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19902 *) enable_dlopen_self=unknown ;; 19903 esac 19904 19905 case $lt_cv_dlopen_self_static in 19906 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19907 *) enable_dlopen_self_static=unknown ;; 19908 esac 19909fi 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927striplib= 19928old_striplib= 19929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19930$as_echo_n "checking whether stripping libraries is possible... " >&6; } 19931if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19932 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19933 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19935$as_echo "yes" >&6; } 19936else 19937# FIXME - insert some real tests, host_os isn't really good enough 19938 case $host_os in 19939 darwin*) 19940 if test -n "$STRIP" ; then 19941 striplib="$STRIP -x" 19942 old_striplib="$STRIP -S" 19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19944$as_echo "yes" >&6; } 19945 else 19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19947$as_echo "no" >&6; } 19948 fi 19949 ;; 19950 *) 19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19952$as_echo "no" >&6; } 19953 ;; 19954 esac 19955fi 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 # Report which library types will actually be built 19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19970$as_echo_n "checking if libtool supports shared libraries... " >&6; } 19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19972$as_echo "$can_build_shared" >&6; } 19973 19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19975$as_echo_n "checking whether to build shared libraries... " >&6; } 19976 test "$can_build_shared" = "no" && enable_shared=no 19977 19978 # On AIX, shared libraries and static libraries use the same namespace, and 19979 # are all built from PIC. 19980 case $host_os in 19981 aix3*) 19982 test "$enable_shared" = yes && enable_static=no 19983 if test -n "$RANLIB"; then 19984 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19985 postinstall_cmds='$RANLIB $lib' 19986 fi 19987 ;; 19988 19989 aix[4-9]*) 19990 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 19991 test "$enable_shared" = yes && enable_static=no 19992 fi 19993 ;; 19994 esac 19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19996$as_echo "$enable_shared" >&6; } 19997 19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19999$as_echo_n "checking whether to build static libraries... " >&6; } 20000 # Make sure either enable_shared or enable_static is yes. 20001 test "$enable_shared" = yes || enable_static=yes 20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 20003$as_echo "$enable_static" >&6; } 20004 20005 20006 20007 20008fi 20009ac_ext=cpp 20010ac_cpp='$CXXCPP $CPPFLAGS' 20011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20014 20015CC="$lt_save_CC" 20016 20017 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 20018 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 20019 (test "X$CXX" != "Xg++"))) ; then 20020 ac_ext=cpp 20021ac_cpp='$CXXCPP $CPPFLAGS' 20022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 20026$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 20027if test -z "$CXXCPP"; then 20028 if ${ac_cv_prog_CXXCPP+:} false; then : 20029 $as_echo_n "(cached) " >&6 20030else 20031 # Double quotes because CXXCPP needs to be expanded 20032 for CXXCPP in "$CXX -E" "/lib/cpp" 20033 do 20034 ac_preproc_ok=false 20035for ac_cxx_preproc_warn_flag in '' yes 20036do 20037 # Use a header file that comes with gcc, so configuring glibc 20038 # with a fresh cross-compiler works. 20039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20040 # <limits.h> exists even on freestanding compilers. 20041 # On the NeXT, cc -E runs the code through the compiler's parser, 20042 # not just through cpp. "Syntax error" is here to catch this case. 20043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20044/* end confdefs.h. */ 20045#ifdef __STDC__ 20046# include <limits.h> 20047#else 20048# include <assert.h> 20049#endif 20050 Syntax error 20051_ACEOF 20052if ac_fn_cxx_try_cpp "$LINENO"; then : 20053 20054else 20055 # Broken: fails on valid input. 20056continue 20057fi 20058rm -f conftest.err conftest.i conftest.$ac_ext 20059 20060 # OK, works on sane cases. Now check whether nonexistent headers 20061 # can be detected and how. 20062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20063/* end confdefs.h. */ 20064#include <ac_nonexistent.h> 20065_ACEOF 20066if ac_fn_cxx_try_cpp "$LINENO"; then : 20067 # Broken: success on invalid input. 20068continue 20069else 20070 # Passes both tests. 20071ac_preproc_ok=: 20072break 20073fi 20074rm -f conftest.err conftest.i conftest.$ac_ext 20075 20076done 20077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20078rm -f conftest.i conftest.err conftest.$ac_ext 20079if $ac_preproc_ok; then : 20080 break 20081fi 20082 20083 done 20084 ac_cv_prog_CXXCPP=$CXXCPP 20085 20086fi 20087 CXXCPP=$ac_cv_prog_CXXCPP 20088else 20089 ac_cv_prog_CXXCPP=$CXXCPP 20090fi 20091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 20092$as_echo "$CXXCPP" >&6; } 20093ac_preproc_ok=false 20094for ac_cxx_preproc_warn_flag in '' yes 20095do 20096 # Use a header file that comes with gcc, so configuring glibc 20097 # with a fresh cross-compiler works. 20098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20099 # <limits.h> exists even on freestanding compilers. 20100 # On the NeXT, cc -E runs the code through the compiler's parser, 20101 # not just through cpp. "Syntax error" is here to catch this case. 20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20103/* end confdefs.h. */ 20104#ifdef __STDC__ 20105# include <limits.h> 20106#else 20107# include <assert.h> 20108#endif 20109 Syntax error 20110_ACEOF 20111if ac_fn_cxx_try_cpp "$LINENO"; then : 20112 20113else 20114 # Broken: fails on valid input. 20115continue 20116fi 20117rm -f conftest.err conftest.i conftest.$ac_ext 20118 20119 # OK, works on sane cases. Now check whether nonexistent headers 20120 # can be detected and how. 20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20122/* end confdefs.h. */ 20123#include <ac_nonexistent.h> 20124_ACEOF 20125if ac_fn_cxx_try_cpp "$LINENO"; then : 20126 # Broken: success on invalid input. 20127continue 20128else 20129 # Passes both tests. 20130ac_preproc_ok=: 20131break 20132fi 20133rm -f conftest.err conftest.i conftest.$ac_ext 20134 20135done 20136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20137rm -f conftest.i conftest.err conftest.$ac_ext 20138if $ac_preproc_ok; then : 20139 20140else 20141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20143as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 20144See \`config.log' for more details" "$LINENO" 5; } 20145fi 20146 20147ac_ext=cpp 20148ac_cpp='$CXXCPP $CPPFLAGS' 20149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20152 20153else 20154 _lt_caught_CXX_error=yes 20155fi 20156 20157ac_ext=cpp 20158ac_cpp='$CXXCPP $CPPFLAGS' 20159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20162 20163archive_cmds_need_lc_CXX=no 20164allow_undefined_flag_CXX= 20165always_export_symbols_CXX=no 20166archive_expsym_cmds_CXX= 20167compiler_needs_object_CXX=no 20168export_dynamic_flag_spec_CXX= 20169hardcode_direct_CXX=no 20170hardcode_direct_absolute_CXX=no 20171hardcode_libdir_flag_spec_CXX= 20172hardcode_libdir_flag_spec_ld_CXX= 20173hardcode_libdir_separator_CXX= 20174hardcode_minus_L_CXX=no 20175hardcode_shlibpath_var_CXX=unsupported 20176hardcode_automatic_CXX=no 20177inherit_rpath_CXX=no 20178module_cmds_CXX= 20179module_expsym_cmds_CXX= 20180link_all_deplibs_CXX=unknown 20181old_archive_cmds_CXX=$old_archive_cmds 20182reload_flag_CXX=$reload_flag 20183reload_cmds_CXX=$reload_cmds 20184no_undefined_flag_CXX= 20185whole_archive_flag_spec_CXX= 20186enable_shared_with_static_runtimes_CXX=no 20187 20188# Source file extension for C++ test sources. 20189ac_ext=cpp 20190 20191# Object file extension for compiled C++ test sources. 20192objext=o 20193objext_CXX=$objext 20194 20195# No sense in running all these tests if we already determined that 20196# the CXX compiler isn't working. Some variables (like enable_shared) 20197# are currently assumed to apply to all compilers on this platform, 20198# and will be corrupted by setting them based on a non-working compiler. 20199if test "$_lt_caught_CXX_error" != yes; then 20200 # Code to be used in simple compile tests 20201 lt_simple_compile_test_code="int some_variable = 0;" 20202 20203 # Code to be used in simple link tests 20204 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 20205 20206 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 20207 20208 20209 20210 20211 20212 20213# If no C compiler was specified, use CC. 20214LTCC=${LTCC-"$CC"} 20215 20216# If no C compiler flags were specified, use CFLAGS. 20217LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20218 20219# Allow CC to be a program name with arguments. 20220compiler=$CC 20221 20222 20223 # save warnings/boilerplate of simple test code 20224 ac_outfile=conftest.$ac_objext 20225echo "$lt_simple_compile_test_code" >conftest.$ac_ext 20226eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20227_lt_compiler_boilerplate=`cat conftest.err` 20228$RM conftest* 20229 20230 ac_outfile=conftest.$ac_objext 20231echo "$lt_simple_link_test_code" >conftest.$ac_ext 20232eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20233_lt_linker_boilerplate=`cat conftest.err` 20234$RM -r conftest* 20235 20236 20237 # Allow CC to be a program name with arguments. 20238 lt_save_CC=$CC 20239 lt_save_LD=$LD 20240 lt_save_GCC=$GCC 20241 GCC=$GXX 20242 lt_save_with_gnu_ld=$with_gnu_ld 20243 lt_save_path_LD=$lt_cv_path_LD 20244 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 20245 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 20246 else 20247 $as_unset lt_cv_prog_gnu_ld 20248 fi 20249 if test -n "${lt_cv_path_LDCXX+set}"; then 20250 lt_cv_path_LD=$lt_cv_path_LDCXX 20251 else 20252 $as_unset lt_cv_path_LD 20253 fi 20254 test -z "${LDCXX+set}" || LD=$LDCXX 20255 CC=${CXX-"c++"} 20256 compiler=$CC 20257 compiler_CXX=$CC 20258 for cc_temp in $compiler""; do 20259 case $cc_temp in 20260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20262 \-*) ;; 20263 *) break;; 20264 esac 20265done 20266cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20267 20268 20269 if test -n "$compiler"; then 20270 # We don't want -fno-exception when compiling C++ code, so set the 20271 # no_builtin_flag separately 20272 if test "$GXX" = yes; then 20273 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 20274 else 20275 lt_prog_compiler_no_builtin_flag_CXX= 20276 fi 20277 20278 if test "$GXX" = yes; then 20279 # Set up default GNU C++ configuration 20280 20281 20282 20283# Check whether --with-gnu-ld was given. 20284if test "${with_gnu_ld+set}" = set; then : 20285 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 20286else 20287 with_gnu_ld=no 20288fi 20289 20290ac_prog=ld 20291if test "$GCC" = yes; then 20292 # Check if gcc -print-prog-name=ld gives a path. 20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 20294$as_echo_n "checking for ld used by $CC... " >&6; } 20295 case $host in 20296 *-*-mingw*) 20297 # gcc leaves a trailing carriage return which upsets mingw 20298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20299 *) 20300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20301 esac 20302 case $ac_prog in 20303 # Accept absolute paths. 20304 [\\/]* | ?:[\\/]*) 20305 re_direlt='/[^/][^/]*/\.\./' 20306 # Canonicalize the pathname of ld 20307 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 20308 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 20309 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 20310 done 20311 test -z "$LD" && LD="$ac_prog" 20312 ;; 20313 "") 20314 # If it fails, then pretend we aren't using GCC. 20315 ac_prog=ld 20316 ;; 20317 *) 20318 # If it is relative, then search for the first ld in PATH. 20319 with_gnu_ld=unknown 20320 ;; 20321 esac 20322elif test "$with_gnu_ld" = yes; then 20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20324$as_echo_n "checking for GNU ld... " >&6; } 20325else 20326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20327$as_echo_n "checking for non-GNU ld... " >&6; } 20328fi 20329if ${lt_cv_path_LD+:} false; then : 20330 $as_echo_n "(cached) " >&6 20331else 20332 if test -z "$LD"; then 20333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 20334 for ac_dir in $PATH; do 20335 IFS="$lt_save_ifs" 20336 test -z "$ac_dir" && ac_dir=. 20337 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20338 lt_cv_path_LD="$ac_dir/$ac_prog" 20339 # Check to see if the program is GNU ld. I'd rather use --version, 20340 # but apparently some variants of GNU ld only accept -v. 20341 # Break only if it was the GNU/non-GNU ld that we prefer. 20342 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20343 *GNU* | *'with BFD'*) 20344 test "$with_gnu_ld" != no && break 20345 ;; 20346 *) 20347 test "$with_gnu_ld" != yes && break 20348 ;; 20349 esac 20350 fi 20351 done 20352 IFS="$lt_save_ifs" 20353else 20354 lt_cv_path_LD="$LD" # Let the user override the test with a path. 20355fi 20356fi 20357 20358LD="$lt_cv_path_LD" 20359if test -n "$LD"; then 20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20361$as_echo "$LD" >&6; } 20362else 20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20364$as_echo "no" >&6; } 20365fi 20366test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20368$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20369if ${lt_cv_prog_gnu_ld+:} false; then : 20370 $as_echo_n "(cached) " >&6 20371else 20372 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20373case `$LD -v 2>&1 </dev/null` in 20374*GNU* | *'with BFD'*) 20375 lt_cv_prog_gnu_ld=yes 20376 ;; 20377*) 20378 lt_cv_prog_gnu_ld=no 20379 ;; 20380esac 20381fi 20382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20383$as_echo "$lt_cv_prog_gnu_ld" >&6; } 20384with_gnu_ld=$lt_cv_prog_gnu_ld 20385 20386 20387 20388 20389 20390 20391 20392 # Check if GNU C++ uses GNU ld as the underlying linker, since the 20393 # archiving commands below assume that GNU ld is being used. 20394 if test "$with_gnu_ld" = yes; then 20395 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20396 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' 20397 20398 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20399 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20400 20401 # If archive_cmds runs LD, not CC, wlarc should be empty 20402 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 20403 # investigate it a little bit more. (MM) 20404 wlarc='${wl}' 20405 20406 # ancient GNU ld didn't support --whole-archive et. al. 20407 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 20408 $GREP 'no-whole-archive' > /dev/null; then 20409 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 20410 else 20411 whole_archive_flag_spec_CXX= 20412 fi 20413 else 20414 with_gnu_ld=no 20415 wlarc= 20416 20417 # A generic and very simple default shared library creation 20418 # command for GNU C++ for the case where it uses the native 20419 # linker, instead of GNU ld. If possible, this setting should 20420 # overridden to take advantage of the native linker features on 20421 # the platform it is being used on. 20422 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20423 fi 20424 20425 # Commands to make compiler produce verbose output that lists 20426 # what "hidden" libraries, object files and flags are used when 20427 # linking a shared library. 20428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20429 20430 else 20431 GXX=no 20432 with_gnu_ld=no 20433 wlarc= 20434 fi 20435 20436 # PORTME: fill in a description of your system's C++ link characteristics 20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20438$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20439 ld_shlibs_CXX=yes 20440 case $host_os in 20441 aix3*) 20442 # FIXME: insert proper C++ library support 20443 ld_shlibs_CXX=no 20444 ;; 20445 aix[4-9]*) 20446 if test "$host_cpu" = ia64; then 20447 # On IA64, the linker does run time linking by default, so we don't 20448 # have to do anything special. 20449 aix_use_runtimelinking=no 20450 exp_sym_flag='-Bexport' 20451 no_entry_flag="" 20452 else 20453 aix_use_runtimelinking=no 20454 20455 # Test if we are trying to use run time linking or normal 20456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20457 # need to do runtime linking. 20458 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20459 for ld_flag in $LDFLAGS; do 20460 case $ld_flag in 20461 *-brtl*) 20462 aix_use_runtimelinking=yes 20463 break 20464 ;; 20465 esac 20466 done 20467 ;; 20468 esac 20469 20470 exp_sym_flag='-bexport' 20471 no_entry_flag='-bnoentry' 20472 fi 20473 20474 # When large executables or shared objects are built, AIX ld can 20475 # have problems creating the table of contents. If linking a library 20476 # or program results in "error TOC overflow" add -mminimal-toc to 20477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20479 20480 archive_cmds_CXX='' 20481 hardcode_direct_CXX=yes 20482 hardcode_direct_absolute_CXX=yes 20483 hardcode_libdir_separator_CXX=':' 20484 link_all_deplibs_CXX=yes 20485 file_list_spec_CXX='${wl}-f,' 20486 20487 if test "$GXX" = yes; then 20488 case $host_os in aix4.[012]|aix4.[012].*) 20489 # We only want to do this on AIX 4.2 and lower, the check 20490 # below for broken collect2 doesn't work under 4.3+ 20491 collect2name=`${CC} -print-prog-name=collect2` 20492 if test -f "$collect2name" && 20493 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20494 then 20495 # We have reworked collect2 20496 : 20497 else 20498 # We have old collect2 20499 hardcode_direct_CXX=unsupported 20500 # It fails to find uninstalled libraries when the uninstalled 20501 # path is not listed in the libpath. Setting hardcode_minus_L 20502 # to unsupported forces relinking 20503 hardcode_minus_L_CXX=yes 20504 hardcode_libdir_flag_spec_CXX='-L$libdir' 20505 hardcode_libdir_separator_CXX= 20506 fi 20507 esac 20508 shared_flag='-shared' 20509 if test "$aix_use_runtimelinking" = yes; then 20510 shared_flag="$shared_flag "'${wl}-G' 20511 fi 20512 else 20513 # not using gcc 20514 if test "$host_cpu" = ia64; then 20515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20516 # chokes on -Wl,-G. The following line is correct: 20517 shared_flag='-G' 20518 else 20519 if test "$aix_use_runtimelinking" = yes; then 20520 shared_flag='${wl}-G' 20521 else 20522 shared_flag='${wl}-bM:SRE' 20523 fi 20524 fi 20525 fi 20526 20527 export_dynamic_flag_spec_CXX='${wl}-bexpall' 20528 # It seems that -bexpall does not export symbols beginning with 20529 # underscore (_), so it is better to generate a list of symbols to 20530 # export. 20531 always_export_symbols_CXX=yes 20532 if test "$aix_use_runtimelinking" = yes; then 20533 # Warning - without using the other runtime loading flags (-brtl), 20534 # -berok will link without error, but may produce a broken library. 20535 allow_undefined_flag_CXX='-berok' 20536 # Determine the default libpath from the value encoded in an empty 20537 # executable. 20538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20539/* end confdefs.h. */ 20540 20541int 20542main () 20543{ 20544 20545 ; 20546 return 0; 20547} 20548_ACEOF 20549if ac_fn_cxx_try_link "$LINENO"; then : 20550 20551lt_aix_libpath_sed=' 20552 /Import File Strings/,/^$/ { 20553 /^0/ { 20554 s/^0 *\(.*\)$/\1/ 20555 p 20556 } 20557 }' 20558aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20559# Check for a 64-bit object if we didn't find anything. 20560if test -z "$aix_libpath"; then 20561 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20562fi 20563fi 20564rm -f core conftest.err conftest.$ac_objext \ 20565 conftest$ac_exeext conftest.$ac_ext 20566if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 20567 20568 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 20569 20570 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" 20571 else 20572 if test "$host_cpu" = ia64; then 20573 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 20574 allow_undefined_flag_CXX="-z nodefs" 20575 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" 20576 else 20577 # Determine the default libpath from the value encoded in an 20578 # empty executable. 20579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20580/* end confdefs.h. */ 20581 20582int 20583main () 20584{ 20585 20586 ; 20587 return 0; 20588} 20589_ACEOF 20590if ac_fn_cxx_try_link "$LINENO"; then : 20591 20592lt_aix_libpath_sed=' 20593 /Import File Strings/,/^$/ { 20594 /^0/ { 20595 s/^0 *\(.*\)$/\1/ 20596 p 20597 } 20598 }' 20599aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20600# Check for a 64-bit object if we didn't find anything. 20601if test -z "$aix_libpath"; then 20602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20603fi 20604fi 20605rm -f core conftest.err conftest.$ac_objext \ 20606 conftest$ac_exeext conftest.$ac_ext 20607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 20608 20609 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 20610 # Warning - without using the other run time loading flags, 20611 # -berok will link without error, but may produce a broken library. 20612 no_undefined_flag_CXX=' ${wl}-bernotok' 20613 allow_undefined_flag_CXX=' ${wl}-berok' 20614 if test "$with_gnu_ld" = yes; then 20615 # We only use this code for GNU lds that support --whole-archive. 20616 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 20617 else 20618 # Exported symbols can be pulled into shared objects from archives 20619 whole_archive_flag_spec_CXX='$convenience' 20620 fi 20621 archive_cmds_need_lc_CXX=yes 20622 # This is similar to how AIX traditionally builds its shared 20623 # libraries. 20624 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' 20625 fi 20626 fi 20627 ;; 20628 20629 beos*) 20630 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20631 allow_undefined_flag_CXX=unsupported 20632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 20633 # support --undefined. This deserves some investigation. FIXME 20634 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20635 else 20636 ld_shlibs_CXX=no 20637 fi 20638 ;; 20639 20640 chorus*) 20641 case $cc_basename in 20642 *) 20643 # FIXME: insert proper C++ library support 20644 ld_shlibs_CXX=no 20645 ;; 20646 esac 20647 ;; 20648 20649 cygwin* | mingw* | pw32* | cegcc*) 20650 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 20651 # as there is no search path for DLLs. 20652 hardcode_libdir_flag_spec_CXX='-L$libdir' 20653 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 20654 allow_undefined_flag_CXX=unsupported 20655 always_export_symbols_CXX=no 20656 enable_shared_with_static_runtimes_CXX=yes 20657 20658 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 20659 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' 20660 # If the export-symbols file already is a .def file (1st line 20661 # is EXPORTS), use it as is; otherwise, prepend... 20662 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 20663 cp $export_symbols $output_objdir/$soname.def; 20664 else 20665 echo EXPORTS > $output_objdir/$soname.def; 20666 cat $export_symbols >> $output_objdir/$soname.def; 20667 fi~ 20668 $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' 20669 else 20670 ld_shlibs_CXX=no 20671 fi 20672 ;; 20673 darwin* | rhapsody*) 20674 20675 20676 archive_cmds_need_lc_CXX=no 20677 hardcode_direct_CXX=no 20678 hardcode_automatic_CXX=yes 20679 hardcode_shlibpath_var_CXX=unsupported 20680 if test "$lt_cv_ld_force_load" = "yes"; then 20681 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\"`' 20682 else 20683 whole_archive_flag_spec_CXX='' 20684 fi 20685 link_all_deplibs_CXX=yes 20686 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 20687 case $cc_basename in 20688 ifort*) _lt_dar_can_shared=yes ;; 20689 *) _lt_dar_can_shared=$GCC ;; 20690 esac 20691 if test "$_lt_dar_can_shared" = "yes"; then 20692 output_verbose_link_cmd=func_echo_all 20693 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}" 20694 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 20695 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}" 20696 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}" 20697 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 20698 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}" 20699 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}" 20700 fi 20701 20702 else 20703 ld_shlibs_CXX=no 20704 fi 20705 20706 ;; 20707 20708 dgux*) 20709 case $cc_basename in 20710 ec++*) 20711 # FIXME: insert proper C++ library support 20712 ld_shlibs_CXX=no 20713 ;; 20714 ghcx*) 20715 # Green Hills C++ Compiler 20716 # FIXME: insert proper C++ library support 20717 ld_shlibs_CXX=no 20718 ;; 20719 *) 20720 # FIXME: insert proper C++ library support 20721 ld_shlibs_CXX=no 20722 ;; 20723 esac 20724 ;; 20725 20726 freebsd2.*) 20727 # C++ shared libraries reported to be fairly broken before 20728 # switch to ELF 20729 ld_shlibs_CXX=no 20730 ;; 20731 20732 freebsd-elf*) 20733 archive_cmds_need_lc_CXX=no 20734 ;; 20735 20736 freebsd* | dragonfly*) 20737 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 20738 # conventions 20739 ld_shlibs_CXX=yes 20740 ;; 20741 20742 gnu*) 20743 ;; 20744 20745 haiku*) 20746 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20747 link_all_deplibs_CXX=yes 20748 ;; 20749 20750 hpux9*) 20751 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 20752 hardcode_libdir_separator_CXX=: 20753 export_dynamic_flag_spec_CXX='${wl}-E' 20754 hardcode_direct_CXX=yes 20755 hardcode_minus_L_CXX=yes # Not in the search PATH, 20756 # but as the default 20757 # location of the library. 20758 20759 case $cc_basename in 20760 CC*) 20761 # FIXME: insert proper C++ library support 20762 ld_shlibs_CXX=no 20763 ;; 20764 aCC*) 20765 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' 20766 # Commands to make compiler produce verbose output that lists 20767 # what "hidden" libraries, object files and flags are used when 20768 # linking a shared library. 20769 # 20770 # There doesn't appear to be a way to prevent this compiler from 20771 # explicitly linking system object files so we need to strip them 20772 # from the output so that they don't get included in the library 20773 # dependencies. 20774 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"' 20775 ;; 20776 *) 20777 if test "$GXX" = yes; then 20778 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' 20779 else 20780 # FIXME: insert proper C++ library support 20781 ld_shlibs_CXX=no 20782 fi 20783 ;; 20784 esac 20785 ;; 20786 20787 hpux10*|hpux11*) 20788 if test $with_gnu_ld = no; then 20789 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 20790 hardcode_libdir_separator_CXX=: 20791 20792 case $host_cpu in 20793 hppa*64*|ia64*) 20794 ;; 20795 *) 20796 export_dynamic_flag_spec_CXX='${wl}-E' 20797 ;; 20798 esac 20799 fi 20800 case $host_cpu in 20801 hppa*64*|ia64*) 20802 hardcode_direct_CXX=no 20803 hardcode_shlibpath_var_CXX=no 20804 ;; 20805 *) 20806 hardcode_direct_CXX=yes 20807 hardcode_direct_absolute_CXX=yes 20808 hardcode_minus_L_CXX=yes # Not in the search PATH, 20809 # but as the default 20810 # location of the library. 20811 ;; 20812 esac 20813 20814 case $cc_basename in 20815 CC*) 20816 # FIXME: insert proper C++ library support 20817 ld_shlibs_CXX=no 20818 ;; 20819 aCC*) 20820 case $host_cpu in 20821 hppa*64*) 20822 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20823 ;; 20824 ia64*) 20825 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20826 ;; 20827 *) 20828 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20829 ;; 20830 esac 20831 # Commands to make compiler produce verbose output that lists 20832 # what "hidden" libraries, object files and flags are used when 20833 # linking a shared library. 20834 # 20835 # There doesn't appear to be a way to prevent this compiler from 20836 # explicitly linking system object files so we need to strip them 20837 # from the output so that they don't get included in the library 20838 # dependencies. 20839 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"' 20840 ;; 20841 *) 20842 if test "$GXX" = yes; then 20843 if test $with_gnu_ld = no; then 20844 case $host_cpu in 20845 hppa*64*) 20846 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20847 ;; 20848 ia64*) 20849 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20850 ;; 20851 *) 20852 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' 20853 ;; 20854 esac 20855 fi 20856 else 20857 # FIXME: insert proper C++ library support 20858 ld_shlibs_CXX=no 20859 fi 20860 ;; 20861 esac 20862 ;; 20863 20864 interix[3-9]*) 20865 hardcode_direct_CXX=no 20866 hardcode_shlibpath_var_CXX=no 20867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20868 export_dynamic_flag_spec_CXX='${wl}-E' 20869 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20870 # Instead, shared libraries are loaded at an image base (0x10000000 by 20871 # default) and relocated if they conflict, which is a slow very memory 20872 # consuming and fragmenting process. To avoid this, we pick a random, 20873 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20874 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20875 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' 20876 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' 20877 ;; 20878 irix5* | irix6*) 20879 case $cc_basename in 20880 CC*) 20881 # SGI C++ 20882 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' 20883 20884 # Archives containing C++ object files must be created using 20885 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 20886 # necessary to make sure instantiated templates are included 20887 # in the archive. 20888 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 20889 ;; 20890 *) 20891 if test "$GXX" = yes; then 20892 if test "$with_gnu_ld" = no; then 20893 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' 20894 else 20895 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' 20896 fi 20897 fi 20898 link_all_deplibs_CXX=yes 20899 ;; 20900 esac 20901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20902 hardcode_libdir_separator_CXX=: 20903 inherit_rpath_CXX=yes 20904 ;; 20905 20906 linux* | k*bsd*-gnu | kopensolaris*-gnu) 20907 case $cc_basename in 20908 KCC*) 20909 # Kuck and Associates, Inc. (KAI) C++ Compiler 20910 20911 # KCC will only create a shared library if the output file 20912 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20913 # to its proper name (with version) after linking. 20914 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' 20915 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' 20916 # Commands to make compiler produce verbose output that lists 20917 # what "hidden" libraries, object files and flags are used when 20918 # linking a shared library. 20919 # 20920 # There doesn't appear to be a way to prevent this compiler from 20921 # explicitly linking system object files so we need to strip them 20922 # from the output so that they don't get included in the library 20923 # dependencies. 20924 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"' 20925 20926 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20927 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20928 20929 # Archives containing C++ object files must be created using 20930 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 20931 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 20932 ;; 20933 icpc* | ecpc* ) 20934 # Intel C++ 20935 with_gnu_ld=yes 20936 # version 8.0 and above of icpc choke on multiply defined symbols 20937 # if we add $predep_objects and $postdep_objects, however 7.1 and 20938 # earlier do not add the objects themselves. 20939 case `$CC -V 2>&1` in 20940 *"Version 7."*) 20941 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20942 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' 20943 ;; 20944 *) # Version 8.0 or newer 20945 tmp_idyn= 20946 case $host_cpu in 20947 ia64*) tmp_idyn=' -i_dynamic';; 20948 esac 20949 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20950 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' 20951 ;; 20952 esac 20953 archive_cmds_need_lc_CXX=no 20954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20956 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 20957 ;; 20958 pgCC* | pgcpp*) 20959 # Portland Group C++ compiler 20960 case `$CC -V` in 20961 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 20962 prelink_cmds_CXX='tpldir=Template.dir~ 20963 rm -rf $tpldir~ 20964 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 20965 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 20966 old_archive_cmds_CXX='tpldir=Template.dir~ 20967 rm -rf $tpldir~ 20968 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 20969 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 20970 $RANLIB $oldlib' 20971 archive_cmds_CXX='tpldir=Template.dir~ 20972 rm -rf $tpldir~ 20973 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20974 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 20975 archive_expsym_cmds_CXX='tpldir=Template.dir~ 20976 rm -rf $tpldir~ 20977 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20978 $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' 20979 ;; 20980 *) # Version 6 and above use weak symbols 20981 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 20982 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' 20983 ;; 20984 esac 20985 20986 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 20987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20988 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' 20989 ;; 20990 cxx*) 20991 # Compaq C++ 20992 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20993 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' 20994 20995 runpath_var=LD_RUN_PATH 20996 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20997 hardcode_libdir_separator_CXX=: 20998 20999 # Commands to make compiler produce verbose output that lists 21000 # what "hidden" libraries, object files and flags are used when 21001 # linking a shared library. 21002 # 21003 # There doesn't appear to be a way to prevent this compiler from 21004 # explicitly linking system object files so we need to strip them 21005 # from the output so that they don't get included in the library 21006 # dependencies. 21007 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' 21008 ;; 21009 xl* | mpixl* | bgxl*) 21010 # IBM XL 8.0 on PPC, with GNU ld 21011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 21013 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21014 if test "x$supports_anon_versioning" = xyes; then 21015 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 21016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 21017 echo "local: *; };" >> $output_objdir/$libname.ver~ 21018 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 21019 fi 21020 ;; 21021 *) 21022 case `$CC -V 2>&1 | sed 5q` in 21023 *Sun\ C*) 21024 # Sun C++ 5.9 21025 no_undefined_flag_CXX=' -zdefs' 21026 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21027 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' 21028 hardcode_libdir_flag_spec_CXX='-R$libdir' 21029 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' 21030 compiler_needs_object_CXX=yes 21031 21032 # Not sure whether something based on 21033 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 21034 # would be better. 21035 output_verbose_link_cmd='func_echo_all' 21036 21037 # Archives containing C++ object files must be created using 21038 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21039 # necessary to make sure instantiated templates are included 21040 # in the archive. 21041 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21042 ;; 21043 esac 21044 ;; 21045 esac 21046 ;; 21047 21048 lynxos*) 21049 # FIXME: insert proper C++ library support 21050 ld_shlibs_CXX=no 21051 ;; 21052 21053 m88k*) 21054 # FIXME: insert proper C++ library support 21055 ld_shlibs_CXX=no 21056 ;; 21057 21058 mvs*) 21059 case $cc_basename in 21060 cxx*) 21061 # FIXME: insert proper C++ library support 21062 ld_shlibs_CXX=no 21063 ;; 21064 *) 21065 # FIXME: insert proper C++ library support 21066 ld_shlibs_CXX=no 21067 ;; 21068 esac 21069 ;; 21070 21071 netbsd*) 21072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21073 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 21074 wlarc= 21075 hardcode_libdir_flag_spec_CXX='-R$libdir' 21076 hardcode_direct_CXX=yes 21077 hardcode_shlibpath_var_CXX=no 21078 fi 21079 # Workaround some broken pre-1.5 toolchains 21080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 21081 ;; 21082 21083 *nto* | *qnx*) 21084 ld_shlibs_CXX=yes 21085 ;; 21086 21087 openbsd2*) 21088 # C++ shared libraries are fairly broken 21089 ld_shlibs_CXX=no 21090 ;; 21091 21092 openbsd*) 21093 if test -f /usr/libexec/ld.so; then 21094 hardcode_direct_CXX=yes 21095 hardcode_shlibpath_var_CXX=no 21096 hardcode_direct_absolute_CXX=yes 21097 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21098 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21100 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 21101 export_dynamic_flag_spec_CXX='${wl}-E' 21102 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 21103 fi 21104 output_verbose_link_cmd=func_echo_all 21105 else 21106 ld_shlibs_CXX=no 21107 fi 21108 ;; 21109 21110 osf3* | osf4* | osf5*) 21111 case $cc_basename in 21112 KCC*) 21113 # Kuck and Associates, Inc. (KAI) C++ Compiler 21114 21115 # KCC will only create a shared library if the output file 21116 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21117 # to its proper name (with version) after linking. 21118 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' 21119 21120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21121 hardcode_libdir_separator_CXX=: 21122 21123 # Archives containing C++ object files must be created using 21124 # the KAI C++ compiler. 21125 case $host in 21126 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 21127 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 21128 esac 21129 ;; 21130 RCC*) 21131 # Rational C++ 2.4.1 21132 # FIXME: insert proper C++ library support 21133 ld_shlibs_CXX=no 21134 ;; 21135 cxx*) 21136 case $host in 21137 osf3*) 21138 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 21139 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' 21140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21141 ;; 21142 *) 21143 allow_undefined_flag_CXX=' -expect_unresolved \*' 21144 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' 21145 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 21146 echo "-hidden">> $lib.exp~ 21147 $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~ 21148 $RM $lib.exp' 21149 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21150 ;; 21151 esac 21152 21153 hardcode_libdir_separator_CXX=: 21154 21155 # Commands to make compiler produce verbose output that lists 21156 # what "hidden" libraries, object files and flags are used when 21157 # linking a shared library. 21158 # 21159 # There doesn't appear to be a way to prevent this compiler from 21160 # explicitly linking system object files so we need to strip them 21161 # from the output so that they don't get included in the library 21162 # dependencies. 21163 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"' 21164 ;; 21165 *) 21166 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 21167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 21168 case $host in 21169 osf3*) 21170 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' 21171 ;; 21172 *) 21173 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' 21174 ;; 21175 esac 21176 21177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21178 hardcode_libdir_separator_CXX=: 21179 21180 # Commands to make compiler produce verbose output that lists 21181 # what "hidden" libraries, object files and flags are used when 21182 # linking a shared library. 21183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21184 21185 else 21186 # FIXME: insert proper C++ library support 21187 ld_shlibs_CXX=no 21188 fi 21189 ;; 21190 esac 21191 ;; 21192 21193 psos*) 21194 # FIXME: insert proper C++ library support 21195 ld_shlibs_CXX=no 21196 ;; 21197 21198 sunos4*) 21199 case $cc_basename in 21200 CC*) 21201 # Sun C++ 4.x 21202 # FIXME: insert proper C++ library support 21203 ld_shlibs_CXX=no 21204 ;; 21205 lcc*) 21206 # Lucid 21207 # FIXME: insert proper C++ library support 21208 ld_shlibs_CXX=no 21209 ;; 21210 *) 21211 # FIXME: insert proper C++ library support 21212 ld_shlibs_CXX=no 21213 ;; 21214 esac 21215 ;; 21216 21217 solaris*) 21218 case $cc_basename in 21219 CC*) 21220 # Sun C++ 4.2, 5.x and Centerline C++ 21221 archive_cmds_need_lc_CXX=yes 21222 no_undefined_flag_CXX=' -zdefs' 21223 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21224 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21225 $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' 21226 21227 hardcode_libdir_flag_spec_CXX='-R$libdir' 21228 hardcode_shlibpath_var_CXX=no 21229 case $host_os in 21230 solaris2.[0-5] | solaris2.[0-5].*) ;; 21231 *) 21232 # The compiler driver will combine and reorder linker options, 21233 # but understands `-z linker_flag'. 21234 # Supported since Solaris 2.6 (maybe 2.5.1?) 21235 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 21236 ;; 21237 esac 21238 link_all_deplibs_CXX=yes 21239 21240 output_verbose_link_cmd='func_echo_all' 21241 21242 # Archives containing C++ object files must be created using 21243 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21244 # necessary to make sure instantiated templates are included 21245 # in the archive. 21246 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21247 ;; 21248 gcx*) 21249 # Green Hills C++ Compiler 21250 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21251 21252 # The C++ compiler must be used to create the archive. 21253 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 21254 ;; 21255 *) 21256 # GNU C++ compiler with Solaris linker 21257 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 21258 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 21259 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 21260 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21261 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21262 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21263 21264 # Commands to make compiler produce verbose output that lists 21265 # what "hidden" libraries, object files and flags are used when 21266 # linking a shared library. 21267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21268 else 21269 # g++ 2.7 appears to require `-G' NOT `-shared' on this 21270 # platform. 21271 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21272 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21273 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21274 21275 # Commands to make compiler produce verbose output that lists 21276 # what "hidden" libraries, object files and flags are used when 21277 # linking a shared library. 21278 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21279 fi 21280 21281 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 21282 case $host_os in 21283 solaris2.[0-5] | solaris2.[0-5].*) ;; 21284 *) 21285 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 21286 ;; 21287 esac 21288 fi 21289 ;; 21290 esac 21291 ;; 21292 21293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21294 no_undefined_flag_CXX='${wl}-z,text' 21295 archive_cmds_need_lc_CXX=no 21296 hardcode_shlibpath_var_CXX=no 21297 runpath_var='LD_RUN_PATH' 21298 21299 case $cc_basename in 21300 CC*) 21301 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21302 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21303 ;; 21304 *) 21305 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21306 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21307 ;; 21308 esac 21309 ;; 21310 21311 sysv5* | sco3.2v5* | sco5v6*) 21312 # Note: We can NOT use -z defs as we might desire, because we do not 21313 # link with -lc, and that would cause any symbols used from libc to 21314 # always be unresolved, which means just about no library would 21315 # ever link correctly. If we're not using GNU ld we use -z text 21316 # though, which does catch some bad symbols but isn't as heavy-handed 21317 # as -z defs. 21318 no_undefined_flag_CXX='${wl}-z,text' 21319 allow_undefined_flag_CXX='${wl}-z,nodefs' 21320 archive_cmds_need_lc_CXX=no 21321 hardcode_shlibpath_var_CXX=no 21322 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 21323 hardcode_libdir_separator_CXX=':' 21324 link_all_deplibs_CXX=yes 21325 export_dynamic_flag_spec_CXX='${wl}-Bexport' 21326 runpath_var='LD_RUN_PATH' 21327 21328 case $cc_basename in 21329 CC*) 21330 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21331 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21332 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 21333 '"$old_archive_cmds_CXX" 21334 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 21335 '"$reload_cmds_CXX" 21336 ;; 21337 *) 21338 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21339 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21340 ;; 21341 esac 21342 ;; 21343 21344 tandem*) 21345 case $cc_basename in 21346 NCC*) 21347 # NonStop-UX NCC 3.20 21348 # FIXME: insert proper C++ library support 21349 ld_shlibs_CXX=no 21350 ;; 21351 *) 21352 # FIXME: insert proper C++ library support 21353 ld_shlibs_CXX=no 21354 ;; 21355 esac 21356 ;; 21357 21358 vxworks*) 21359 # FIXME: insert proper C++ library support 21360 ld_shlibs_CXX=no 21361 ;; 21362 21363 *) 21364 # FIXME: insert proper C++ library support 21365 ld_shlibs_CXX=no 21366 ;; 21367 esac 21368 21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21370$as_echo "$ld_shlibs_CXX" >&6; } 21371 test "$ld_shlibs_CXX" = no && can_build_shared=no 21372 21373 GCC_CXX="$GXX" 21374 LD_CXX="$LD" 21375 21376 ## CAVEAT EMPTOR: 21377 ## There is no encapsulation within the following macros, do not change 21378 ## the running order or otherwise move them around unless you know exactly 21379 ## what you are doing... 21380 # Dependencies to place before and after the object being linked: 21381predep_objects_CXX= 21382postdep_objects_CXX= 21383predeps_CXX= 21384postdeps_CXX= 21385compiler_lib_search_path_CXX= 21386 21387cat > conftest.$ac_ext <<_LT_EOF 21388class Foo 21389{ 21390public: 21391 Foo (void) { a = 0; } 21392private: 21393 int a; 21394}; 21395_LT_EOF 21396 21397if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21398 (eval $ac_compile) 2>&5 21399 ac_status=$? 21400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21401 test $ac_status = 0; }; then 21402 # Parse the compiler output and extract the necessary 21403 # objects, libraries and library flags. 21404 21405 # Sentinel used to keep track of whether or not we are before 21406 # the conftest object file. 21407 pre_test_object_deps_done=no 21408 21409 for p in `eval "$output_verbose_link_cmd"`; do 21410 case $p in 21411 21412 -L* | -R* | -l*) 21413 # Some compilers place space between "-{L,R}" and the path. 21414 # Remove the space. 21415 if test $p = "-L" || 21416 test $p = "-R"; then 21417 prev=$p 21418 continue 21419 else 21420 prev= 21421 fi 21422 21423 if test "$pre_test_object_deps_done" = no; then 21424 case $p in 21425 -L* | -R*) 21426 # Internal compiler library paths should come after those 21427 # provided the user. The postdeps already come after the 21428 # user supplied libs so there is no need to process them. 21429 if test -z "$compiler_lib_search_path_CXX"; then 21430 compiler_lib_search_path_CXX="${prev}${p}" 21431 else 21432 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 21433 fi 21434 ;; 21435 # The "-l" case would never come before the object being 21436 # linked, so don't bother handling this case. 21437 esac 21438 else 21439 if test -z "$postdeps_CXX"; then 21440 postdeps_CXX="${prev}${p}" 21441 else 21442 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 21443 fi 21444 fi 21445 ;; 21446 21447 *.$objext) 21448 # This assumes that the test object file only shows up 21449 # once in the compiler output. 21450 if test "$p" = "conftest.$objext"; then 21451 pre_test_object_deps_done=yes 21452 continue 21453 fi 21454 21455 if test "$pre_test_object_deps_done" = no; then 21456 if test -z "$predep_objects_CXX"; then 21457 predep_objects_CXX="$p" 21458 else 21459 predep_objects_CXX="$predep_objects_CXX $p" 21460 fi 21461 else 21462 if test -z "$postdep_objects_CXX"; then 21463 postdep_objects_CXX="$p" 21464 else 21465 postdep_objects_CXX="$postdep_objects_CXX $p" 21466 fi 21467 fi 21468 ;; 21469 21470 *) ;; # Ignore the rest. 21471 21472 esac 21473 done 21474 21475 # Clean up. 21476 rm -f a.out a.exe 21477else 21478 echo "libtool.m4: error: problem compiling CXX test program" 21479fi 21480 21481$RM -f confest.$objext 21482 21483# PORTME: override above test on systems where it is broken 21484case $host_os in 21485interix[3-9]*) 21486 # Interix 3.5 installs completely hosed .la files for C++, so rather than 21487 # hack all around it, let's just trust "g++" to DTRT. 21488 predep_objects_CXX= 21489 postdep_objects_CXX= 21490 postdeps_CXX= 21491 ;; 21492 21493linux*) 21494 case `$CC -V 2>&1 | sed 5q` in 21495 *Sun\ C*) 21496 # Sun C++ 5.9 21497 21498 # The more standards-conforming stlport4 library is 21499 # incompatible with the Cstd library. Avoid specifying 21500 # it if it's in CXXFLAGS. Ignore libCrun as 21501 # -library=stlport4 depends on it. 21502 case " $CXX $CXXFLAGS " in 21503 *" -library=stlport4 "*) 21504 solaris_use_stlport4=yes 21505 ;; 21506 esac 21507 21508 if test "$solaris_use_stlport4" != yes; then 21509 postdeps_CXX='-library=Cstd -library=Crun' 21510 fi 21511 ;; 21512 esac 21513 ;; 21514 21515solaris*) 21516 case $cc_basename in 21517 CC*) 21518 # The more standards-conforming stlport4 library is 21519 # incompatible with the Cstd library. Avoid specifying 21520 # it if it's in CXXFLAGS. Ignore libCrun as 21521 # -library=stlport4 depends on it. 21522 case " $CXX $CXXFLAGS " in 21523 *" -library=stlport4 "*) 21524 solaris_use_stlport4=yes 21525 ;; 21526 esac 21527 21528 # Adding this requires a known-good setup of shared libraries for 21529 # Sun compiler versions before 5.6, else PIC objects from an old 21530 # archive will be linked into the output, leading to subtle bugs. 21531 if test "$solaris_use_stlport4" != yes; then 21532 postdeps_CXX='-library=Cstd -library=Crun' 21533 fi 21534 ;; 21535 esac 21536 ;; 21537esac 21538 21539 21540case " $postdeps_CXX " in 21541*" -lc "*) archive_cmds_need_lc_CXX=no ;; 21542esac 21543 compiler_lib_search_dirs_CXX= 21544if test -n "${compiler_lib_search_path_CXX}"; then 21545 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 21546fi 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 lt_prog_compiler_wl_CXX= 21579lt_prog_compiler_pic_CXX= 21580lt_prog_compiler_static_CXX= 21581 21582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 21583$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 21584 21585 # C++ specific cases for pic, static, wl, etc. 21586 if test "$GXX" = yes; then 21587 lt_prog_compiler_wl_CXX='-Wl,' 21588 lt_prog_compiler_static_CXX='-static' 21589 21590 case $host_os in 21591 aix*) 21592 # All AIX code is PIC. 21593 if test "$host_cpu" = ia64; then 21594 # AIX 5 now supports IA64 processor 21595 lt_prog_compiler_static_CXX='-Bstatic' 21596 fi 21597 lt_prog_compiler_pic_CXX='-fPIC' 21598 ;; 21599 21600 amigaos*) 21601 case $host_cpu in 21602 powerpc) 21603 # see comment about AmigaOS4 .so support 21604 lt_prog_compiler_pic_CXX='-fPIC' 21605 ;; 21606 m68k) 21607 # FIXME: we need at least 68020 code to build shared libraries, but 21608 # adding the `-m68020' flag to GCC prevents building anything better, 21609 # like `-m68040'. 21610 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 21611 ;; 21612 esac 21613 ;; 21614 21615 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 21616 # PIC is the default for these OSes. 21617 ;; 21618 mingw* | cygwin* | os2* | pw32* | cegcc*) 21619 # This hack is so that the source file can tell whether it is being 21620 # built for inclusion in a dll (and should export symbols for example). 21621 # Although the cygwin gcc ignores -fPIC, still need this for old-style 21622 # (--disable-auto-import) libraries 21623 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 21624 ;; 21625 darwin* | rhapsody*) 21626 # PIC is the default on this platform 21627 # Common symbols not allowed in MH_DYLIB files 21628 lt_prog_compiler_pic_CXX='-fno-common' 21629 ;; 21630 *djgpp*) 21631 # DJGPP does not support shared libraries at all 21632 lt_prog_compiler_pic_CXX= 21633 ;; 21634 haiku*) 21635 # PIC is the default for Haiku. 21636 # The "-static" flag exists, but is broken. 21637 lt_prog_compiler_static_CXX= 21638 ;; 21639 interix[3-9]*) 21640 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 21641 # Instead, we relocate shared libraries at runtime. 21642 ;; 21643 sysv4*MP*) 21644 if test -d /usr/nec; then 21645 lt_prog_compiler_pic_CXX=-Kconform_pic 21646 fi 21647 ;; 21648 hpux*) 21649 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 21650 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 21651 # sets the default TLS model and affects inlining. 21652 case $host_cpu in 21653 hppa*64*) 21654 ;; 21655 *) 21656 lt_prog_compiler_pic_CXX='-fPIC' 21657 ;; 21658 esac 21659 ;; 21660 *qnx* | *nto*) 21661 # QNX uses GNU C++, but need to define -shared option too, otherwise 21662 # it will coredump. 21663 lt_prog_compiler_pic_CXX='-fPIC -shared' 21664 ;; 21665 *) 21666 lt_prog_compiler_pic_CXX='-fPIC' 21667 ;; 21668 esac 21669 else 21670 case $host_os in 21671 aix[4-9]*) 21672 # All AIX code is PIC. 21673 if test "$host_cpu" = ia64; then 21674 # AIX 5 now supports IA64 processor 21675 lt_prog_compiler_static_CXX='-Bstatic' 21676 else 21677 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 21678 fi 21679 ;; 21680 chorus*) 21681 case $cc_basename in 21682 cxch68*) 21683 # Green Hills C++ Compiler 21684 # _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" 21685 ;; 21686 esac 21687 ;; 21688 dgux*) 21689 case $cc_basename in 21690 ec++*) 21691 lt_prog_compiler_pic_CXX='-KPIC' 21692 ;; 21693 ghcx*) 21694 # Green Hills C++ Compiler 21695 lt_prog_compiler_pic_CXX='-pic' 21696 ;; 21697 *) 21698 ;; 21699 esac 21700 ;; 21701 freebsd* | dragonfly*) 21702 # FreeBSD uses GNU C++ 21703 ;; 21704 hpux9* | hpux10* | hpux11*) 21705 case $cc_basename in 21706 CC*) 21707 lt_prog_compiler_wl_CXX='-Wl,' 21708 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 21709 if test "$host_cpu" != ia64; then 21710 lt_prog_compiler_pic_CXX='+Z' 21711 fi 21712 ;; 21713 aCC*) 21714 lt_prog_compiler_wl_CXX='-Wl,' 21715 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 21716 case $host_cpu in 21717 hppa*64*|ia64*) 21718 # +Z the default 21719 ;; 21720 *) 21721 lt_prog_compiler_pic_CXX='+Z' 21722 ;; 21723 esac 21724 ;; 21725 *) 21726 ;; 21727 esac 21728 ;; 21729 interix*) 21730 # This is c89, which is MS Visual C++ (no shared libs) 21731 # Anyone wants to do a port? 21732 ;; 21733 irix5* | irix6* | nonstopux*) 21734 case $cc_basename in 21735 CC*) 21736 lt_prog_compiler_wl_CXX='-Wl,' 21737 lt_prog_compiler_static_CXX='-non_shared' 21738 # CC pic flag -KPIC is the default. 21739 ;; 21740 *) 21741 ;; 21742 esac 21743 ;; 21744 linux* | k*bsd*-gnu | kopensolaris*-gnu) 21745 case $cc_basename in 21746 KCC*) 21747 # KAI C++ Compiler 21748 lt_prog_compiler_wl_CXX='--backend -Wl,' 21749 lt_prog_compiler_pic_CXX='-fPIC' 21750 ;; 21751 ecpc* ) 21752 # old Intel C++ for x86_64 which still supported -KPIC. 21753 lt_prog_compiler_wl_CXX='-Wl,' 21754 lt_prog_compiler_pic_CXX='-KPIC' 21755 lt_prog_compiler_static_CXX='-static' 21756 ;; 21757 icpc* ) 21758 # Intel C++, used to be incompatible with GCC. 21759 # ICC 10 doesn't accept -KPIC any more. 21760 lt_prog_compiler_wl_CXX='-Wl,' 21761 lt_prog_compiler_pic_CXX='-fPIC' 21762 lt_prog_compiler_static_CXX='-static' 21763 ;; 21764 pgCC* | pgcpp*) 21765 # Portland Group C++ compiler 21766 lt_prog_compiler_wl_CXX='-Wl,' 21767 lt_prog_compiler_pic_CXX='-fpic' 21768 lt_prog_compiler_static_CXX='-Bstatic' 21769 ;; 21770 cxx*) 21771 # Compaq C++ 21772 # Make sure the PIC flag is empty. It appears that all Alpha 21773 # Linux and Compaq Tru64 Unix objects are PIC. 21774 lt_prog_compiler_pic_CXX= 21775 lt_prog_compiler_static_CXX='-non_shared' 21776 ;; 21777 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 21778 # IBM XL 8.0, 9.0 on PPC and BlueGene 21779 lt_prog_compiler_wl_CXX='-Wl,' 21780 lt_prog_compiler_pic_CXX='-qpic' 21781 lt_prog_compiler_static_CXX='-qstaticlink' 21782 ;; 21783 *) 21784 case `$CC -V 2>&1 | sed 5q` in 21785 *Sun\ C*) 21786 # Sun C++ 5.9 21787 lt_prog_compiler_pic_CXX='-KPIC' 21788 lt_prog_compiler_static_CXX='-Bstatic' 21789 lt_prog_compiler_wl_CXX='-Qoption ld ' 21790 ;; 21791 esac 21792 ;; 21793 esac 21794 ;; 21795 lynxos*) 21796 ;; 21797 m88k*) 21798 ;; 21799 mvs*) 21800 case $cc_basename in 21801 cxx*) 21802 lt_prog_compiler_pic_CXX='-W c,exportall' 21803 ;; 21804 *) 21805 ;; 21806 esac 21807 ;; 21808 netbsd*) 21809 ;; 21810 *qnx* | *nto*) 21811 # QNX uses GNU C++, but need to define -shared option too, otherwise 21812 # it will coredump. 21813 lt_prog_compiler_pic_CXX='-fPIC -shared' 21814 ;; 21815 osf3* | osf4* | osf5*) 21816 case $cc_basename in 21817 KCC*) 21818 lt_prog_compiler_wl_CXX='--backend -Wl,' 21819 ;; 21820 RCC*) 21821 # Rational C++ 2.4.1 21822 lt_prog_compiler_pic_CXX='-pic' 21823 ;; 21824 cxx*) 21825 # Digital/Compaq C++ 21826 lt_prog_compiler_wl_CXX='-Wl,' 21827 # Make sure the PIC flag is empty. It appears that all Alpha 21828 # Linux and Compaq Tru64 Unix objects are PIC. 21829 lt_prog_compiler_pic_CXX= 21830 lt_prog_compiler_static_CXX='-non_shared' 21831 ;; 21832 *) 21833 ;; 21834 esac 21835 ;; 21836 psos*) 21837 ;; 21838 solaris*) 21839 case $cc_basename in 21840 CC*) 21841 # Sun C++ 4.2, 5.x and Centerline C++ 21842 lt_prog_compiler_pic_CXX='-KPIC' 21843 lt_prog_compiler_static_CXX='-Bstatic' 21844 lt_prog_compiler_wl_CXX='-Qoption ld ' 21845 ;; 21846 gcx*) 21847 # Green Hills C++ Compiler 21848 lt_prog_compiler_pic_CXX='-PIC' 21849 ;; 21850 *) 21851 ;; 21852 esac 21853 ;; 21854 sunos4*) 21855 case $cc_basename in 21856 CC*) 21857 # Sun C++ 4.x 21858 lt_prog_compiler_pic_CXX='-pic' 21859 lt_prog_compiler_static_CXX='-Bstatic' 21860 ;; 21861 lcc*) 21862 # Lucid 21863 lt_prog_compiler_pic_CXX='-pic' 21864 ;; 21865 *) 21866 ;; 21867 esac 21868 ;; 21869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21870 case $cc_basename in 21871 CC*) 21872 lt_prog_compiler_wl_CXX='-Wl,' 21873 lt_prog_compiler_pic_CXX='-KPIC' 21874 lt_prog_compiler_static_CXX='-Bstatic' 21875 ;; 21876 esac 21877 ;; 21878 tandem*) 21879 case $cc_basename in 21880 NCC*) 21881 # NonStop-UX NCC 3.20 21882 lt_prog_compiler_pic_CXX='-KPIC' 21883 ;; 21884 *) 21885 ;; 21886 esac 21887 ;; 21888 vxworks*) 21889 ;; 21890 *) 21891 lt_prog_compiler_can_build_shared_CXX=no 21892 ;; 21893 esac 21894 fi 21895 21896case $host_os in 21897 # For platforms which do not support PIC, -DPIC is meaningless: 21898 *djgpp*) 21899 lt_prog_compiler_pic_CXX= 21900 ;; 21901 *) 21902 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 21903 ;; 21904esac 21905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 21906$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 21907 21908 21909 21910# 21911# Check to make sure the PIC flag actually works. 21912# 21913if test -n "$lt_prog_compiler_pic_CXX"; then 21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 21915$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 21916if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 21917 $as_echo_n "(cached) " >&6 21918else 21919 lt_cv_prog_compiler_pic_works_CXX=no 21920 ac_outfile=conftest.$ac_objext 21921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21922 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 21923 # Insert the option either (1) after the last *FLAGS variable, or 21924 # (2) before a word containing "conftest.", or (3) at the end. 21925 # Note that $ac_compile itself does not contain backslashes and begins 21926 # with a dollar sign (not a hyphen), so the echo should work correctly. 21927 # The option is referenced via a variable to avoid confusing sed. 21928 lt_compile=`echo "$ac_compile" | $SED \ 21929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21931 -e 's:$: $lt_compiler_flag:'` 21932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21933 (eval "$lt_compile" 2>conftest.err) 21934 ac_status=$? 21935 cat conftest.err >&5 21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21937 if (exit $ac_status) && test -s "$ac_outfile"; then 21938 # The compiler can only warn and ignore the option if not recognized 21939 # So say no if there are warnings other than the usual output. 21940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 21941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 21943 lt_cv_prog_compiler_pic_works_CXX=yes 21944 fi 21945 fi 21946 $RM conftest* 21947 21948fi 21949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 21950$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 21951 21952if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 21953 case $lt_prog_compiler_pic_CXX in 21954 "" | " "*) ;; 21955 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 21956 esac 21957else 21958 lt_prog_compiler_pic_CXX= 21959 lt_prog_compiler_can_build_shared_CXX=no 21960fi 21961 21962fi 21963 21964 21965 21966# 21967# Check to make sure the static flag actually works. 21968# 21969wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 21970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21971$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 21972if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 21973 $as_echo_n "(cached) " >&6 21974else 21975 lt_cv_prog_compiler_static_works_CXX=no 21976 save_LDFLAGS="$LDFLAGS" 21977 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21978 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21979 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21980 # The linker can only warn and ignore the option if not recognized 21981 # So say no if there are warnings 21982 if test -s conftest.err; then 21983 # Append any errors to the config.log. 21984 cat conftest.err 1>&5 21985 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 21986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21987 if diff conftest.exp conftest.er2 >/dev/null; then 21988 lt_cv_prog_compiler_static_works_CXX=yes 21989 fi 21990 else 21991 lt_cv_prog_compiler_static_works_CXX=yes 21992 fi 21993 fi 21994 $RM -r conftest* 21995 LDFLAGS="$save_LDFLAGS" 21996 21997fi 21998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 21999$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 22000 22001if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 22002 : 22003else 22004 lt_prog_compiler_static_CXX= 22005fi 22006 22007 22008 22009 22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22011$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22012if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 22013 $as_echo_n "(cached) " >&6 22014else 22015 lt_cv_prog_compiler_c_o_CXX=no 22016 $RM -r conftest 2>/dev/null 22017 mkdir conftest 22018 cd conftest 22019 mkdir out 22020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22021 22022 lt_compiler_flag="-o out/conftest2.$ac_objext" 22023 # Insert the option either (1) after the last *FLAGS variable, or 22024 # (2) before a word containing "conftest.", or (3) at the end. 22025 # Note that $ac_compile itself does not contain backslashes and begins 22026 # with a dollar sign (not a hyphen), so the echo should work correctly. 22027 lt_compile=`echo "$ac_compile" | $SED \ 22028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22030 -e 's:$: $lt_compiler_flag:'` 22031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22032 (eval "$lt_compile" 2>out/conftest.err) 22033 ac_status=$? 22034 cat out/conftest.err >&5 22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22036 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22037 then 22038 # The compiler can only warn and ignore the option if not recognized 22039 # So say no if there are warnings 22040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22043 lt_cv_prog_compiler_c_o_CXX=yes 22044 fi 22045 fi 22046 chmod u+w . 2>&5 22047 $RM conftest* 22048 # SGI C++ compiler will create directory out/ii_files/ for 22049 # template instantiation 22050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22051 $RM out/* && rmdir out 22052 cd .. 22053 $RM -r conftest 22054 $RM conftest* 22055 22056fi 22057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22058$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22059 22060 22061 22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22063$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22064if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 22065 $as_echo_n "(cached) " >&6 22066else 22067 lt_cv_prog_compiler_c_o_CXX=no 22068 $RM -r conftest 2>/dev/null 22069 mkdir conftest 22070 cd conftest 22071 mkdir out 22072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22073 22074 lt_compiler_flag="-o out/conftest2.$ac_objext" 22075 # Insert the option either (1) after the last *FLAGS variable, or 22076 # (2) before a word containing "conftest.", or (3) at the end. 22077 # Note that $ac_compile itself does not contain backslashes and begins 22078 # with a dollar sign (not a hyphen), so the echo should work correctly. 22079 lt_compile=`echo "$ac_compile" | $SED \ 22080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22082 -e 's:$: $lt_compiler_flag:'` 22083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22084 (eval "$lt_compile" 2>out/conftest.err) 22085 ac_status=$? 22086 cat out/conftest.err >&5 22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22088 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22089 then 22090 # The compiler can only warn and ignore the option if not recognized 22091 # So say no if there are warnings 22092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22095 lt_cv_prog_compiler_c_o_CXX=yes 22096 fi 22097 fi 22098 chmod u+w . 2>&5 22099 $RM conftest* 22100 # SGI C++ compiler will create directory out/ii_files/ for 22101 # template instantiation 22102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22103 $RM out/* && rmdir out 22104 cd .. 22105 $RM -r conftest 22106 $RM conftest* 22107 22108fi 22109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22110$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22111 22112 22113 22114 22115hard_links="nottested" 22116if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 22117 # do not overwrite the value of need_locks provided by the user 22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 22119$as_echo_n "checking if we can lock with hard links... " >&6; } 22120 hard_links=yes 22121 $RM conftest* 22122 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22123 touch conftest.a 22124 ln conftest.a conftest.b 2>&5 || hard_links=no 22125 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 22127$as_echo "$hard_links" >&6; } 22128 if test "$hard_links" = no; then 22129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 22130$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 22131 need_locks=warn 22132 fi 22133else 22134 need_locks=no 22135fi 22136 22137 22138 22139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22140$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 22141 22142 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22143 case $host_os in 22144 aix[4-9]*) 22145 # If we're using GNU nm, then we don't want the "-C" option. 22146 # -C means demangle to AIX nm, but means don't demangle with GNU nm 22147 # Also, AIX nm treats weak defined symbols like other global defined 22148 # symbols, whereas GNU nm marks them as "W". 22149 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 22150 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' 22151 else 22152 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' 22153 fi 22154 ;; 22155 pw32*) 22156 export_symbols_cmds_CXX="$ltdll_cmds" 22157 ;; 22158 cygwin* | mingw* | cegcc*) 22159 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' 22160 ;; 22161 *) 22162 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22163 ;; 22164 esac 22165 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 22166 22167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 22168$as_echo "$ld_shlibs_CXX" >&6; } 22169test "$ld_shlibs_CXX" = no && can_build_shared=no 22170 22171with_gnu_ld_CXX=$with_gnu_ld 22172 22173 22174 22175 22176 22177 22178# 22179# Do we need to explicitly link libc? 22180# 22181case "x$archive_cmds_need_lc_CXX" in 22182x|xyes) 22183 # Assume -lc should be added 22184 archive_cmds_need_lc_CXX=yes 22185 22186 if test "$enable_shared" = yes && test "$GCC" = yes; then 22187 case $archive_cmds_CXX in 22188 *'~'*) 22189 # FIXME: we may have to deal with multi-command sequences. 22190 ;; 22191 '$CC '*) 22192 # Test whether the compiler implicitly links with -lc since on some 22193 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22194 # to ld, don't add -lc before -lgcc. 22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 22196$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 22197if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 22198 $as_echo_n "(cached) " >&6 22199else 22200 $RM conftest* 22201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22202 22203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 22204 (eval $ac_compile) 2>&5 22205 ac_status=$? 22206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22207 test $ac_status = 0; } 2>conftest.err; then 22208 soname=conftest 22209 lib=conftest 22210 libobjs=conftest.$ac_objext 22211 deplibs= 22212 wl=$lt_prog_compiler_wl_CXX 22213 pic_flag=$lt_prog_compiler_pic_CXX 22214 compiler_flags=-v 22215 linker_flags=-v 22216 verstring= 22217 output_objdir=. 22218 libname=conftest 22219 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 22220 allow_undefined_flag_CXX= 22221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 22222 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 22223 ac_status=$? 22224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22225 test $ac_status = 0; } 22226 then 22227 lt_cv_archive_cmds_need_lc_CXX=no 22228 else 22229 lt_cv_archive_cmds_need_lc_CXX=yes 22230 fi 22231 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 22232 else 22233 cat conftest.err 1>&5 22234 fi 22235 $RM conftest* 22236 22237fi 22238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 22239$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 22240 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 22241 ;; 22242 esac 22243 fi 22244 ;; 22245esac 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 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 22311$as_echo_n "checking dynamic linker characteristics... " >&6; } 22312 22313library_names_spec= 22314libname_spec='lib$name' 22315soname_spec= 22316shrext_cmds=".so" 22317postinstall_cmds= 22318postuninstall_cmds= 22319finish_cmds= 22320finish_eval= 22321shlibpath_var= 22322shlibpath_overrides_runpath=unknown 22323version_type=none 22324dynamic_linker="$host_os ld.so" 22325sys_lib_dlsearch_path_spec="/lib /usr/lib" 22326need_lib_prefix=unknown 22327hardcode_into_libs=no 22328 22329# when you set need_version to no, make sure it does not cause -set_version 22330# flags to be left without arguments 22331need_version=unknown 22332 22333case $host_os in 22334aix3*) 22335 version_type=linux 22336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 22337 shlibpath_var=LIBPATH 22338 22339 # AIX 3 has no versioning support, so we append a major version to the name. 22340 soname_spec='${libname}${release}${shared_ext}$major' 22341 ;; 22342 22343aix[4-9]*) 22344 version_type=linux 22345 need_lib_prefix=no 22346 need_version=no 22347 hardcode_into_libs=yes 22348 if test "$host_cpu" = ia64; then 22349 # AIX 5 supports IA64 22350 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 22351 shlibpath_var=LD_LIBRARY_PATH 22352 else 22353 # With GCC up to 2.95.x, collect2 would create an import file 22354 # for dependence libraries. The import file would start with 22355 # the line `#! .'. This would cause the generated library to 22356 # depend on `.', always an invalid library. This was fixed in 22357 # development snapshots of GCC prior to 3.0. 22358 case $host_os in 22359 aix4 | aix4.[01] | aix4.[01].*) 22360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22361 echo ' yes ' 22362 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 22363 : 22364 else 22365 can_build_shared=no 22366 fi 22367 ;; 22368 esac 22369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 22370 # soname into executable. Probably we can add versioning support to 22371 # collect2, so additional links can be useful in future. 22372 if test "$aix_use_runtimelinking" = yes; then 22373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22374 # instead of lib<name>.a to let people know that these are not 22375 # typical AIX shared libraries. 22376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22377 else 22378 # We preserve .a as extension for shared libraries through AIX4.2 22379 # and later when we are not doing run time linking. 22380 library_names_spec='${libname}${release}.a $libname.a' 22381 soname_spec='${libname}${release}${shared_ext}$major' 22382 fi 22383 shlibpath_var=LIBPATH 22384 fi 22385 ;; 22386 22387amigaos*) 22388 case $host_cpu in 22389 powerpc) 22390 # Since July 2007 AmigaOS4 officially supports .so libraries. 22391 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 22392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22393 ;; 22394 m68k) 22395 library_names_spec='$libname.ixlibrary $libname.a' 22396 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22397 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' 22398 ;; 22399 esac 22400 ;; 22401 22402beos*) 22403 library_names_spec='${libname}${shared_ext}' 22404 dynamic_linker="$host_os ld.so" 22405 shlibpath_var=LIBRARY_PATH 22406 ;; 22407 22408bsdi[45]*) 22409 version_type=linux 22410 need_version=no 22411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22412 soname_spec='${libname}${release}${shared_ext}$major' 22413 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22414 shlibpath_var=LD_LIBRARY_PATH 22415 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22416 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22417 # the default ld.so.conf also contains /usr/contrib/lib and 22418 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22419 # libtool to hard-code these into programs 22420 ;; 22421 22422cygwin* | mingw* | pw32* | cegcc*) 22423 version_type=windows 22424 shrext_cmds=".dll" 22425 need_version=no 22426 need_lib_prefix=no 22427 22428 case $GCC,$host_os in 22429 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 22430 library_names_spec='$libname.dll.a' 22431 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22432 postinstall_cmds='base_file=`basename \${file}`~ 22433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 22434 dldir=$destdir/`dirname \$dlpath`~ 22435 test -d \$dldir || mkdir -p \$dldir~ 22436 $install_prog $dir/$dlname \$dldir/$dlname~ 22437 chmod a+x \$dldir/$dlname~ 22438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22440 fi' 22441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22442 dlpath=$dir/\$dldll~ 22443 $RM \$dlpath' 22444 shlibpath_overrides_runpath=yes 22445 22446 case $host_os in 22447 cygwin*) 22448 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22449 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22450 22451 ;; 22452 mingw* | cegcc*) 22453 # MinGW DLLs use traditional 'lib' prefix 22454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22455 ;; 22456 pw32*) 22457 # pw32 DLLs use 'pw' prefix rather than 'lib' 22458 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22459 ;; 22460 esac 22461 ;; 22462 22463 *) 22464 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 22465 ;; 22466 esac 22467 dynamic_linker='Win32 ld.exe' 22468 # FIXME: first we should search . and the directory the executable is in 22469 shlibpath_var=PATH 22470 ;; 22471 22472darwin* | rhapsody*) 22473 dynamic_linker="$host_os dyld" 22474 version_type=darwin 22475 need_lib_prefix=no 22476 need_version=no 22477 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 22478 soname_spec='${libname}${release}${major}$shared_ext' 22479 shlibpath_overrides_runpath=yes 22480 shlibpath_var=DYLD_LIBRARY_PATH 22481 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22482 22483 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22484 ;; 22485 22486dgux*) 22487 version_type=linux 22488 need_lib_prefix=no 22489 need_version=no 22490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 22491 soname_spec='${libname}${release}${shared_ext}$major' 22492 shlibpath_var=LD_LIBRARY_PATH 22493 ;; 22494 22495freebsd* | dragonfly*) 22496 # DragonFly does not have aout. When/if they implement a new 22497 # versioning mechanism, adjust this. 22498 if test -x /usr/bin/objformat; then 22499 objformat=`/usr/bin/objformat` 22500 else 22501 case $host_os in 22502 freebsd[23].*) objformat=aout ;; 22503 *) objformat=elf ;; 22504 esac 22505 fi 22506 version_type=freebsd-$objformat 22507 case $version_type in 22508 freebsd-elf*) 22509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22510 need_version=no 22511 need_lib_prefix=no 22512 ;; 22513 freebsd-*) 22514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 22515 need_version=yes 22516 ;; 22517 esac 22518 shlibpath_var=LD_LIBRARY_PATH 22519 case $host_os in 22520 freebsd2.*) 22521 shlibpath_overrides_runpath=yes 22522 ;; 22523 freebsd3.[01]* | freebsdelf3.[01]*) 22524 shlibpath_overrides_runpath=yes 22525 hardcode_into_libs=yes 22526 ;; 22527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 22528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 22529 shlibpath_overrides_runpath=no 22530 hardcode_into_libs=yes 22531 ;; 22532 *) # from 4.6 on, and DragonFly 22533 shlibpath_overrides_runpath=yes 22534 hardcode_into_libs=yes 22535 ;; 22536 esac 22537 ;; 22538 22539haiku*) 22540 version_type=linux 22541 need_lib_prefix=no 22542 need_version=no 22543 dynamic_linker="$host_os runtime_loader" 22544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 22545 soname_spec='${libname}${release}${shared_ext}$major' 22546 shlibpath_var=LIBRARY_PATH 22547 shlibpath_overrides_runpath=yes 22548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 22549 hardcode_into_libs=yes 22550 ;; 22551 22552hpux9* | hpux10* | hpux11*) 22553 # Give a soname corresponding to the major version so that dld.sl refuses to 22554 # link against other versions. 22555 version_type=sunos 22556 need_lib_prefix=no 22557 need_version=no 22558 case $host_cpu in 22559 ia64*) 22560 shrext_cmds='.so' 22561 hardcode_into_libs=yes 22562 dynamic_linker="$host_os dld.so" 22563 shlibpath_var=LD_LIBRARY_PATH 22564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22566 soname_spec='${libname}${release}${shared_ext}$major' 22567 if test "X$HPUX_IA64_MODE" = X32; then 22568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22569 else 22570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22571 fi 22572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22573 ;; 22574 hppa*64*) 22575 shrext_cmds='.sl' 22576 hardcode_into_libs=yes 22577 dynamic_linker="$host_os dld.sl" 22578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22581 soname_spec='${libname}${release}${shared_ext}$major' 22582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22584 ;; 22585 *) 22586 shrext_cmds='.sl' 22587 dynamic_linker="$host_os dld.sl" 22588 shlibpath_var=SHLIB_PATH 22589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22591 soname_spec='${libname}${release}${shared_ext}$major' 22592 ;; 22593 esac 22594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 22595 postinstall_cmds='chmod 555 $lib' 22596 # or fails outright, so override atomically: 22597 install_override_mode=555 22598 ;; 22599 22600interix[3-9]*) 22601 version_type=linux 22602 need_lib_prefix=no 22603 need_version=no 22604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22605 soname_spec='${libname}${release}${shared_ext}$major' 22606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 22607 shlibpath_var=LD_LIBRARY_PATH 22608 shlibpath_overrides_runpath=no 22609 hardcode_into_libs=yes 22610 ;; 22611 22612irix5* | irix6* | nonstopux*) 22613 case $host_os in 22614 nonstopux*) version_type=nonstopux ;; 22615 *) 22616 if test "$lt_cv_prog_gnu_ld" = yes; then 22617 version_type=linux 22618 else 22619 version_type=irix 22620 fi ;; 22621 esac 22622 need_lib_prefix=no 22623 need_version=no 22624 soname_spec='${libname}${release}${shared_ext}$major' 22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 22626 case $host_os in 22627 irix5* | nonstopux*) 22628 libsuff= shlibsuff= 22629 ;; 22630 *) 22631 case $LD in # libtool.m4 will add one of these switches to LD 22632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22633 libsuff= shlibsuff= libmagic=32-bit;; 22634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22635 libsuff=32 shlibsuff=N32 libmagic=N32;; 22636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22637 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22638 *) libsuff= shlibsuff= libmagic=never-match;; 22639 esac 22640 ;; 22641 esac 22642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22643 shlibpath_overrides_runpath=no 22644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 22645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 22646 hardcode_into_libs=yes 22647 ;; 22648 22649# No shared lib support for Linux oldld, aout, or coff. 22650linux*oldld* | linux*aout* | linux*coff*) 22651 dynamic_linker=no 22652 ;; 22653 22654# This must be Linux ELF. 22655 22656# uclinux* changes (here and below) have been submitted to the libtool 22657# project, but have not yet been accepted: they are GCC-local changes 22658# for the time being. (See 22659# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 22660linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 22661 version_type=linux 22662 need_lib_prefix=no 22663 need_version=no 22664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22665 soname_spec='${libname}${release}${shared_ext}$major' 22666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22667 shlibpath_var=LD_LIBRARY_PATH 22668 shlibpath_overrides_runpath=no 22669 22670 # Some binutils ld are patched to set DT_RUNPATH 22671 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 22672 $as_echo_n "(cached) " >&6 22673else 22674 lt_cv_shlibpath_overrides_runpath=no 22675 save_LDFLAGS=$LDFLAGS 22676 save_libdir=$libdir 22677 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 22678 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22680/* end confdefs.h. */ 22681 22682int 22683main () 22684{ 22685 22686 ; 22687 return 0; 22688} 22689_ACEOF 22690if ac_fn_cxx_try_link "$LINENO"; then : 22691 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 22692 lt_cv_shlibpath_overrides_runpath=yes 22693fi 22694fi 22695rm -f core conftest.err conftest.$ac_objext \ 22696 conftest$ac_exeext conftest.$ac_ext 22697 LDFLAGS=$save_LDFLAGS 22698 libdir=$save_libdir 22699 22700fi 22701 22702 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 22703 22704 # This implies no fast_install, which is unacceptable. 22705 # Some rework will be needed to allow for fast_install 22706 # before this can be enabled. 22707 hardcode_into_libs=yes 22708 22709 # Append ld.so.conf contents to the search path 22710 if test -f /etc/ld.so.conf; then 22711 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' ' '` 22712 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22713 fi 22714 22715 # We used to test for /lib/ld.so.1 and disable shared libraries on 22716 # powerpc, because MkLinux only supported shared libraries with the 22717 # GNU dynamic linker. Since this was broken with cross compilers, 22718 # most powerpc-linux boxes support dynamic linking these days and 22719 # people can always --disable-shared, the test was removed, and we 22720 # assume the GNU/Linux dynamic linker is in use. 22721 dynamic_linker='GNU/Linux ld.so' 22722 ;; 22723 22724netbsd*) 22725 version_type=sunos 22726 need_lib_prefix=no 22727 need_version=no 22728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22731 dynamic_linker='NetBSD (a.out) ld.so' 22732 else 22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22734 soname_spec='${libname}${release}${shared_ext}$major' 22735 dynamic_linker='NetBSD ld.elf_so' 22736 fi 22737 shlibpath_var=LD_LIBRARY_PATH 22738 shlibpath_overrides_runpath=yes 22739 hardcode_into_libs=yes 22740 ;; 22741 22742newsos6) 22743 version_type=linux 22744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22745 shlibpath_var=LD_LIBRARY_PATH 22746 shlibpath_overrides_runpath=yes 22747 ;; 22748 22749*nto* | *qnx*) 22750 version_type=qnx 22751 need_lib_prefix=no 22752 need_version=no 22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22754 soname_spec='${libname}${release}${shared_ext}$major' 22755 shlibpath_var=LD_LIBRARY_PATH 22756 shlibpath_overrides_runpath=no 22757 hardcode_into_libs=yes 22758 dynamic_linker='ldqnx.so' 22759 ;; 22760 22761openbsd*) 22762 version_type=sunos 22763 sys_lib_dlsearch_path_spec="/usr/lib" 22764 need_lib_prefix=no 22765 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 22766 case $host_os in 22767 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 22768 *) need_version=no ;; 22769 esac 22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22772 shlibpath_var=LD_LIBRARY_PATH 22773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 22774 case $host_os in 22775 openbsd2.[89] | openbsd2.[89].*) 22776 shlibpath_overrides_runpath=no 22777 ;; 22778 *) 22779 shlibpath_overrides_runpath=yes 22780 ;; 22781 esac 22782 else 22783 shlibpath_overrides_runpath=yes 22784 fi 22785 ;; 22786 22787os2*) 22788 libname_spec='$name' 22789 shrext_cmds=".dll" 22790 need_lib_prefix=no 22791 library_names_spec='$libname${shared_ext} $libname.a' 22792 dynamic_linker='OS/2 ld.exe' 22793 shlibpath_var=LIBPATH 22794 ;; 22795 22796osf3* | osf4* | osf5*) 22797 version_type=osf 22798 need_lib_prefix=no 22799 need_version=no 22800 soname_spec='${libname}${release}${shared_ext}$major' 22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22802 shlibpath_var=LD_LIBRARY_PATH 22803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22804 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 22805 ;; 22806 22807rdos*) 22808 dynamic_linker=no 22809 ;; 22810 22811solaris*) 22812 version_type=linux 22813 need_lib_prefix=no 22814 need_version=no 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 shlibpath_overrides_runpath=yes 22819 hardcode_into_libs=yes 22820 # ldd complains unless libraries are executable 22821 postinstall_cmds='chmod +x $lib' 22822 ;; 22823 22824sunos4*) 22825 version_type=sunos 22826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22828 shlibpath_var=LD_LIBRARY_PATH 22829 shlibpath_overrides_runpath=yes 22830 if test "$with_gnu_ld" = yes; then 22831 need_lib_prefix=no 22832 fi 22833 need_version=yes 22834 ;; 22835 22836sysv4 | sysv4.3*) 22837 version_type=linux 22838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22839 soname_spec='${libname}${release}${shared_ext}$major' 22840 shlibpath_var=LD_LIBRARY_PATH 22841 case $host_vendor in 22842 sni) 22843 shlibpath_overrides_runpath=no 22844 need_lib_prefix=no 22845 runpath_var=LD_RUN_PATH 22846 ;; 22847 siemens) 22848 need_lib_prefix=no 22849 ;; 22850 motorola) 22851 need_lib_prefix=no 22852 need_version=no 22853 shlibpath_overrides_runpath=no 22854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22855 ;; 22856 esac 22857 ;; 22858 22859sysv4*MP*) 22860 if test -d /usr/nec ;then 22861 version_type=linux 22862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 22863 soname_spec='$libname${shared_ext}.$major' 22864 shlibpath_var=LD_LIBRARY_PATH 22865 fi 22866 ;; 22867 22868sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22869 version_type=freebsd-elf 22870 need_lib_prefix=no 22871 need_version=no 22872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22873 soname_spec='${libname}${release}${shared_ext}$major' 22874 shlibpath_var=LD_LIBRARY_PATH 22875 shlibpath_overrides_runpath=yes 22876 hardcode_into_libs=yes 22877 if test "$with_gnu_ld" = yes; then 22878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22879 else 22880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22881 case $host_os in 22882 sco3.2v5*) 22883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22884 ;; 22885 esac 22886 fi 22887 sys_lib_dlsearch_path_spec='/usr/lib' 22888 ;; 22889 22890tpf*) 22891 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22892 version_type=linux 22893 need_lib_prefix=no 22894 need_version=no 22895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22896 shlibpath_var=LD_LIBRARY_PATH 22897 shlibpath_overrides_runpath=no 22898 hardcode_into_libs=yes 22899 ;; 22900 22901uts4*) 22902 version_type=linux 22903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22904 soname_spec='${libname}${release}${shared_ext}$major' 22905 shlibpath_var=LD_LIBRARY_PATH 22906 ;; 22907 22908*) 22909 dynamic_linker=no 22910 ;; 22911esac 22912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22913$as_echo "$dynamic_linker" >&6; } 22914test "$dynamic_linker" = no && can_build_shared=no 22915 22916variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22917if test "$GCC" = yes; then 22918 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22919fi 22920 22921if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 22922 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 22923fi 22924if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 22925 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 22926fi 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22966$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22967hardcode_action_CXX= 22968if test -n "$hardcode_libdir_flag_spec_CXX" || 22969 test -n "$runpath_var_CXX" || 22970 test "X$hardcode_automatic_CXX" = "Xyes" ; then 22971 22972 # We can hardcode non-existent directories. 22973 if test "$hardcode_direct_CXX" != no && 22974 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22975 # have to relink, otherwise we might link with an installed library 22976 # when we should be linking with a yet-to-be-installed one 22977 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 22978 test "$hardcode_minus_L_CXX" != no; then 22979 # Linking always hardcodes the temporary library directory. 22980 hardcode_action_CXX=relink 22981 else 22982 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22983 hardcode_action_CXX=immediate 22984 fi 22985else 22986 # We cannot hardcode anything, or else we can only hardcode existing 22987 # directories. 22988 hardcode_action_CXX=unsupported 22989fi 22990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 22991$as_echo "$hardcode_action_CXX" >&6; } 22992 22993if test "$hardcode_action_CXX" = relink || 22994 test "$inherit_rpath_CXX" = yes; then 22995 # Fast installation is not supported 22996 enable_fast_install=no 22997elif test "$shlibpath_overrides_runpath" = yes || 22998 test "$enable_shared" = no; then 22999 # Fast installation is not necessary 23000 enable_fast_install=needless 23001fi 23002 23003 23004 23005 23006 23007 23008 23009 fi # test -n "$compiler" 23010 23011 CC=$lt_save_CC 23012 LDCXX=$LD 23013 LD=$lt_save_LD 23014 GCC=$lt_save_GCC 23015 with_gnu_ld=$lt_save_with_gnu_ld 23016 lt_cv_path_LDCXX=$lt_cv_path_LD 23017 lt_cv_path_LD=$lt_save_path_LD 23018 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 23019 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 23020fi # test "$_lt_caught_CXX_error" != yes 23021 23022ac_ext=cpp 23023ac_cpp='$CXXCPP $CPPFLAGS' 23024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043# Only expand once: 23044 23045 23046 23047 23048 23049# Identify the assembler which will work hand-in-glove with the newly 23050# built GCC, so that we can examine its features. This is the assembler 23051# which will be driven by the driver program. 23052# 23053# If build != host, and we aren't building gas in-tree, we identify a 23054# build->target assembler and hope that it will have the same features 23055# as the host->target assembler we'll be using. 23056gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas 23057 23058if ${gcc_cv_as+:} false; then : 23059 23060else 23061 23062if test -x "$DEFAULT_ASSEMBLER"; then 23063 gcc_cv_as="$DEFAULT_ASSEMBLER" 23064elif test -f $gcc_cv_as_gas_srcdir/configure.ac \ 23065 && test -f ../gas/Makefile \ 23066 && test x$build = x$host; then 23067 gcc_cv_as=../gas/as-new$build_exeext 23068elif test -x as$build_exeext; then 23069 # Build using assembler in the current directory. 23070 gcc_cv_as=./as$build_exeext 23071elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then 23072 gcc_cv_as="$AS_FOR_TARGET" 23073else 23074 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args. 23075set dummy $AS_FOR_TARGET; ac_word=$2 23076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23077$as_echo_n "checking for $ac_word... " >&6; } 23078if ${ac_cv_path_gcc_cv_as+:} false; then : 23079 $as_echo_n "(cached) " >&6 23080else 23081 case $gcc_cv_as in 23082 [\\/]* | ?:[\\/]*) 23083 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 23084 ;; 23085 *) 23086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23087for as_dir in $PATH 23088do 23089 IFS=$as_save_IFS 23090 test -z "$as_dir" && as_dir=. 23091 for ac_exec_ext in '' $ac_executable_extensions; do 23092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23093 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 23094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23095 break 2 23096 fi 23097done 23098 done 23099IFS=$as_save_IFS 23100 23101 ;; 23102esac 23103fi 23104gcc_cv_as=$ac_cv_path_gcc_cv_as 23105if test -n "$gcc_cv_as"; then 23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5 23107$as_echo "$gcc_cv_as" >&6; } 23108else 23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23110$as_echo "no" >&6; } 23111fi 23112 23113 23114fi 23115fi 23116 23117ORIGINAL_AS_FOR_TARGET=$gcc_cv_as 23118 23119case "$ORIGINAL_AS_FOR_TARGET" in 23120 ./as | ./as$build_exeext) ;; 23121 *) ac_config_files="$ac_config_files as:exec-tool.in" 23122 ;; 23123esac 23124 23125default_ld= 23126# Check whether --enable-ld was given. 23127if test "${enable_ld+set}" = set; then : 23128 enableval=$enable_ld; case "${enableval}" in 23129 no) 23130 default_ld=ld.gold 23131 ;; 23132 esac 23133fi 23134 23135 23136install_gold_as_default=no 23137# Check whether --enable-gold was given. 23138if test "${enable_gold+set}" = set; then : 23139 enableval=$enable_gold; case "${enableval}" in 23140 default) 23141 install_gold_as_default=yes 23142 ;; 23143 yes) 23144 if test x${default_ld} != x; then 23145 install_gold_as_default=yes 23146 fi 23147 ;; 23148 no) 23149 ;; 23150 *) 23151 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 23152 ;; 23153 esac 23154fi 23155 23156 23157# Identify the linker which will work hand-in-glove with the newly 23158# built GCC, so that we can examine its features. This is the linker 23159# which will be driven by the driver program. 23160# 23161# If build != host, and we aren't building gas in-tree, we identify a 23162# build->target linker and hope that it will have the same features 23163# as the host->target linker we'll be using. 23164gcc_cv_gld_major_version= 23165gcc_cv_gld_minor_version= 23166gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld 23167gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold 23168gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 23169 23170if ${gcc_cv_ld+:} false; then : 23171 23172else 23173 23174if test -x "$DEFAULT_LINKER"; then 23175 gcc_cv_ld="$DEFAULT_LINKER" 23176elif test $install_gold_as_default = yes \ 23177 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \ 23178 && test -f ../gold/Makefile \ 23179 && test x$build = x$host; then 23180 gcc_cv_ld=../gold/ld-new$build_exeext 23181elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \ 23182 && test -f ../ld/Makefile \ 23183 && test x$build = x$host; then 23184 gcc_cv_ld=../ld/ld-new$build_exeext 23185elif test -x collect-ld$build_exeext; then 23186 # Build using linker in the current directory. 23187 gcc_cv_ld=./collect-ld$build_exeext 23188elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then 23189 gcc_cv_ld="$LD_FOR_TARGET" 23190else 23191 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args. 23192set dummy $LD_FOR_TARGET; ac_word=$2 23193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23194$as_echo_n "checking for $ac_word... " >&6; } 23195if ${ac_cv_path_gcc_cv_ld+:} false; then : 23196 $as_echo_n "(cached) " >&6 23197else 23198 case $gcc_cv_ld in 23199 [\\/]* | ?:[\\/]*) 23200 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 23201 ;; 23202 *) 23203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23204for as_dir in $PATH 23205do 23206 IFS=$as_save_IFS 23207 test -z "$as_dir" && as_dir=. 23208 for ac_exec_ext in '' $ac_executable_extensions; do 23209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23210 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 23211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23212 break 2 23213 fi 23214done 23215 done 23216IFS=$as_save_IFS 23217 23218 ;; 23219esac 23220fi 23221gcc_cv_ld=$ac_cv_path_gcc_cv_ld 23222if test -n "$gcc_cv_ld"; then 23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5 23224$as_echo "$gcc_cv_ld" >&6; } 23225else 23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23227$as_echo "no" >&6; } 23228fi 23229 23230 23231fi 23232fi 23233 23234ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld 23235PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"` 23236# if the PLUGIN_LD is set ld-new, just have it as ld 23237# as that is the installed named. 23238if test x$PLUGIN_LD_SUFFIX = xld-new \ 23239 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then 23240 PLUGIN_LD_SUFFIX=ld 23241fi 23242 23243# Check whether --with-plugin-ld was given. 23244if test "${with_plugin_ld+set}" = set; then : 23245 withval=$with_plugin_ld; if test x"$withval" != x; then 23246 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval" 23247 PLUGIN_LD_SUFFIX="$withval" 23248 fi 23249fi 23250 23251 23252 23253cat >>confdefs.h <<_ACEOF 23254#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX" 23255_ACEOF 23256 23257 23258# Check to see if we are using gold instead of ld 23259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5 23260$as_echo_n "checking whether we are using gold... " >&6; } 23261ld_is_gold=no 23262if test x$gcc_cv_ld != x; then 23263 if $gcc_cv_ld --version 2>/dev/null | sed 1q \ 23264 | grep "GNU gold" > /dev/null; then 23265 ld_is_gold=yes 23266 fi 23267fi 23268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5 23269$as_echo "$ld_is_gold" >&6; } 23270 23271# Check to see if we are using mold instead of ld 23272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5 23273$as_echo_n "checking whether we are using mold... " >&6; } 23274ld_is_mold=no 23275if test x$gcc_cv_ld != x; then 23276 if $gcc_cv_ld --version 2>/dev/null | sed 1q \ 23277 | grep "mold" > /dev/null; then 23278 ld_is_mold=yes 23279 fi 23280fi 23281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5 23282$as_echo "$ld_is_mold" >&6; } 23283 23284 23285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5 23286$as_echo_n "checking gold linker with split stack support as non default... " >&6; } 23287# Check to see if default ld is not gold, but gold is 23288# available and has support for split stack. If gcc was configured 23289# with gold then no checking is done. 23290# 23291if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then 23292 23293# For platforms other than powerpc64*, enable as appropriate. 23294 23295 gold_non_default=no 23296 ld_gold=`which ${gcc_cv_ld}.gold` 23297# Make sure this gold has minimal split stack support 23298 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then 23299 ld_vers=`$ld_gold --version | sed 1q` 23300 gold_vers=`echo $ld_vers | sed -n \ 23301 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 23302 case $target in 23303# check that the gold version contains the complete split stack support 23304# on powerpc64 big and little endian 23305 powerpc64*-*-*) 23306 case "$gold_vers" in 23307 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes 23308 ;; 23309 *) gold_non_default=no 23310 ;; 23311 esac 23312 ;; 23313 esac 23314 fi 23315 if test $gold_non_default = yes; then 23316 23317$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h 23318 23319 fi 23320fi 23321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5 23322$as_echo "$gold_non_default" >&6; } 23323 23324ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld 23325 23326case "$ORIGINAL_LD_FOR_TARGET" in 23327 ./collect-ld | ./collect-ld$build_exeext) ;; 23328 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in" 23329 ;; 23330esac 23331 23332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5 23333$as_echo_n "checking what linker to use... " >&6; } 23334if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \ 23335 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then 23336 # Single tree build which includes ld. We want to prefer it 23337 # over whatever linker top-level may have detected, since 23338 # we'll use what we're building after installation anyway. 23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5 23340$as_echo "newly built ld" >&6; } 23341 in_tree_ld=yes 23342 in_tree_ld_is_elf=no 23343 if (grep 'EMUL = .*elf' ../ld/Makefile \ 23344 || grep 'EMUL = .*linux' ../ld/Makefile \ 23345 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then 23346 in_tree_ld_is_elf=yes 23347 elif test "$ld_is_gold" = yes; then 23348 in_tree_ld_is_elf=yes 23349 fi 23350 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 23351 do 23352 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f` 23353 if test x$gcc_cv_gld_version != x; then 23354 break 23355 fi 23356 done 23357 case $gcc_cv_gld_version in 23358 VERSION=[0-9]*) ;; 23359 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;; 23360 esac 23361 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"` 23362 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 23363 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext 23364 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext 23365else 23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5 23367$as_echo "$gcc_cv_ld" >&6; } 23368 in_tree_ld=no 23369 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext` 23370 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext 23371 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext 23372fi 23373 23374 23375 23376 23377# Figure out what nm we will be using. 23378gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils 23379if ${gcc_cv_nm+:} false; then : 23380 23381else 23382 23383if test -f $gcc_cv_binutils_srcdir/configure.ac \ 23384 && test -f ../binutils/Makefile \ 23385 && test x$build = x$host; then 23386 gcc_cv_nm=../binutils/nm-new$build_exeext 23387elif test -x nm$build_exeext; then 23388 gcc_cv_nm=./nm$build_exeext 23389elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then 23390 gcc_cv_nm="$NM_FOR_TARGET" 23391else 23392 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args. 23393set dummy $NM_FOR_TARGET; ac_word=$2 23394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23395$as_echo_n "checking for $ac_word... " >&6; } 23396if ${ac_cv_path_gcc_cv_nm+:} false; then : 23397 $as_echo_n "(cached) " >&6 23398else 23399 case $gcc_cv_nm in 23400 [\\/]* | ?:[\\/]*) 23401 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 23402 ;; 23403 *) 23404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23405for as_dir in $PATH 23406do 23407 IFS=$as_save_IFS 23408 test -z "$as_dir" && as_dir=. 23409 for ac_exec_ext in '' $ac_executable_extensions; do 23410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23411 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 23412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23413 break 2 23414 fi 23415done 23416 done 23417IFS=$as_save_IFS 23418 23419 ;; 23420esac 23421fi 23422gcc_cv_nm=$ac_cv_path_gcc_cv_nm 23423if test -n "$gcc_cv_nm"; then 23424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5 23425$as_echo "$gcc_cv_nm" >&6; } 23426else 23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23428$as_echo "no" >&6; } 23429fi 23430 23431 23432fi 23433fi 23434 23435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5 23436$as_echo_n "checking what nm to use... " >&6; } 23437if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then 23438 # Single tree build which includes binutils. 23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5 23440$as_echo "newly built nm" >&6; } 23441 in_tree_nm=yes 23442else 23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5 23444$as_echo "$gcc_cv_nm" >&6; } 23445 in_tree_nm=no 23446fi 23447 23448ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm 23449 23450case "$ORIGINAL_NM_FOR_TARGET" in 23451 ./nm | ./nm$build_exeext) ;; 23452 *) ac_config_files="$ac_config_files nm:exec-tool.in" 23453 ;; 23454esac 23455 23456 23457# Figure out what objdump we will be using. 23458if ${gcc_cv_objdump+:} false; then : 23459 23460else 23461 23462if test -f $gcc_cv_binutils_srcdir/configure.ac \ 23463 && test -f ../binutils/Makefile \ 23464 && test x$build = x$host; then 23465 # Single tree build which includes binutils. 23466 gcc_cv_objdump=../binutils/objdump$build_exeext 23467elif test -x objdump$build_exeext; then 23468 gcc_cv_objdump=./objdump$build_exeext 23469elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then 23470 gcc_cv_objdump="$OBJDUMP_FOR_TARGET" 23471else 23472 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args. 23473set dummy $OBJDUMP_FOR_TARGET; ac_word=$2 23474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23475$as_echo_n "checking for $ac_word... " >&6; } 23476if ${ac_cv_path_gcc_cv_objdump+:} false; then : 23477 $as_echo_n "(cached) " >&6 23478else 23479 case $gcc_cv_objdump in 23480 [\\/]* | ?:[\\/]*) 23481 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 23482 ;; 23483 *) 23484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23485for as_dir in $PATH 23486do 23487 IFS=$as_save_IFS 23488 test -z "$as_dir" && as_dir=. 23489 for ac_exec_ext in '' $ac_executable_extensions; do 23490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23491 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 23492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23493 break 2 23494 fi 23495done 23496 done 23497IFS=$as_save_IFS 23498 23499 ;; 23500esac 23501fi 23502gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 23503if test -n "$gcc_cv_objdump"; then 23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5 23505$as_echo "$gcc_cv_objdump" >&6; } 23506else 23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23508$as_echo "no" >&6; } 23509fi 23510 23511 23512fi 23513fi 23514 23515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5 23516$as_echo_n "checking what objdump to use... " >&6; } 23517if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then 23518 # Single tree build which includes binutils. 23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5 23520$as_echo "newly built objdump" >&6; } 23521elif test x$gcc_cv_objdump = x; then 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23523$as_echo "not found" >&6; } 23524else 23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5 23526$as_echo "$gcc_cv_objdump" >&6; } 23527fi 23528 23529# Figure out what readelf we will be using. 23530if ${gcc_cv_readelf+:} false; then : 23531 23532else 23533 23534if test -f $gcc_cv_binutils_srcdir/configure.ac \ 23535 && test -f ../binutils/Makefile \ 23536 && test x$build = x$host; then 23537 # Single tree build which includes binutils. 23538 gcc_cv_readelf=../binutils/readelf$build_exeext 23539elif test -x readelf$build_exeext; then 23540 gcc_cv_readelf=./readelf$build_exeext 23541elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then 23542 gcc_cv_readelf="$READELF_FOR_TARGET" 23543else 23544 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args. 23545set dummy $READELF_FOR_TARGET; ac_word=$2 23546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23547$as_echo_n "checking for $ac_word... " >&6; } 23548if ${ac_cv_path_gcc_cv_readelf+:} false; then : 23549 $as_echo_n "(cached) " >&6 23550else 23551 case $gcc_cv_readelf in 23552 [\\/]* | ?:[\\/]*) 23553 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path. 23554 ;; 23555 *) 23556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23557for as_dir in $PATH 23558do 23559 IFS=$as_save_IFS 23560 test -z "$as_dir" && as_dir=. 23561 for ac_exec_ext in '' $ac_executable_extensions; do 23562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23563 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext" 23564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23565 break 2 23566 fi 23567done 23568 done 23569IFS=$as_save_IFS 23570 23571 ;; 23572esac 23573fi 23574gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf 23575if test -n "$gcc_cv_readelf"; then 23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5 23577$as_echo "$gcc_cv_readelf" >&6; } 23578else 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23580$as_echo "no" >&6; } 23581fi 23582 23583 23584fi 23585fi 23586 23587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5 23588$as_echo_n "checking what readelf to use... " >&6; } 23589if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then 23590 # Single tree build which includes binutils. 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5 23592$as_echo "newly built readelf" >&6; } 23593elif test x$gcc_cv_readelf = x; then 23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23595$as_echo "not found" >&6; } 23596else 23597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5 23598$as_echo "$gcc_cv_readelf" >&6; } 23599fi 23600 23601# Figure out what otool we will be using. 23602if ${gcc_cv_otool+:} false; then : 23603 23604else 23605 23606if test -x otool$build_exeext; then 23607 gcc_cv_otool=./otool$build_exeext 23608elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then 23609 gcc_cv_otool="$OTOOL_FOR_TARGET" 23610else 23611 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args. 23612set dummy $OTOOL_FOR_TARGET; ac_word=$2 23613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23614$as_echo_n "checking for $ac_word... " >&6; } 23615if ${ac_cv_path_gcc_cv_otool+:} false; then : 23616 $as_echo_n "(cached) " >&6 23617else 23618 case $gcc_cv_otool in 23619 [\\/]* | ?:[\\/]*) 23620 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path. 23621 ;; 23622 *) 23623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23624for as_dir in $PATH 23625do 23626 IFS=$as_save_IFS 23627 test -z "$as_dir" && as_dir=. 23628 for ac_exec_ext in '' $ac_executable_extensions; do 23629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23630 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext" 23631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23632 break 2 23633 fi 23634done 23635 done 23636IFS=$as_save_IFS 23637 23638 ;; 23639esac 23640fi 23641gcc_cv_otool=$ac_cv_path_gcc_cv_otool 23642if test -n "$gcc_cv_otool"; then 23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5 23644$as_echo "$gcc_cv_otool" >&6; } 23645else 23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23647$as_echo "no" >&6; } 23648fi 23649 23650 23651fi 23652fi 23653 23654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5 23655$as_echo_n "checking what otool to use... " >&6; } 23656if test x$gcc_cv_otool = x; then 23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23658$as_echo "not found" >&6; } 23659else 23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5 23661$as_echo "$gcc_cv_otool" >&6; } 23662fi 23663 23664# Figure out the dsymutil we will use. 23665if ${gcc_cv_dsymutil+:} false; then : 23666 23667else 23668 23669if test -x "$DEFAULT_DSYMUTIL"; then 23670 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL" 23671elif test -x dsymutil$build_exeext; then 23672 gcc_cv_dsymutil=./dsymutil$build_exeext 23673elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then 23674 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET 23675elif ( set dummy $DSYMUTIL; test -x $2 ); then 23676 gcc_cv_dsymutil=$DSYMUTIL 23677else 23678 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args. 23679set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2 23680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23681$as_echo_n "checking for $ac_word... " >&6; } 23682if ${ac_cv_path_gcc_cv_dsymutil+:} false; then : 23683 $as_echo_n "(cached) " >&6 23684else 23685 case $gcc_cv_dsymutil in 23686 [\\/]* | ?:[\\/]*) 23687 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path. 23688 ;; 23689 *) 23690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23691for as_dir in $PATH 23692do 23693 IFS=$as_save_IFS 23694 test -z "$as_dir" && as_dir=. 23695 for ac_exec_ext in '' $ac_executable_extensions; do 23696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23697 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext" 23698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23699 break 2 23700 fi 23701done 23702 done 23703IFS=$as_save_IFS 23704 23705 ;; 23706esac 23707fi 23708gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil 23709if test -n "$gcc_cv_dsymutil"; then 23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5 23711$as_echo "$gcc_cv_dsymutil" >&6; } 23712else 23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23714$as_echo "no" >&6; } 23715fi 23716 23717 23718fi 23719fi 23720 23721ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil 23722 23723case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in 23724 ./dsymutil | ./dsymutil$build_exeext) ;; 23725 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in" 23726 ;; 23727esac 23728 23729# Figure out what assembler alignment features are present. 23730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5 23731$as_echo_n "checking assembler flags... " >&6; } 23732if ${gcc_cv_as_flags+:} false; then : 23733 $as_echo_n "(cached) " >&6 23734else 23735 case "$target" in 23736 i[34567]86-*-linux*) 23737 gcc_cv_as_flags=--32 23738 ;; 23739 x86_64-*-linux-gnux32) 23740 gcc_cv_as_flags=--x32 23741 ;; 23742 x86_64-*-linux*) 23743 gcc_cv_as_flags=--64 23744 ;; 23745 powerpc*-*-darwin*) 23746 gcc_cv_as_flags="-arch ppc" 23747 ;; 23748 *) 23749 gcc_cv_as_flags=" " 23750 ;; 23751 esac 23752fi 23753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5 23754$as_echo "$gcc_cv_as_flags" >&6; } 23755 23756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5 23757$as_echo_n "checking assembler for .balign and .p2align... " >&6; } 23758if ${gcc_cv_as_balign_and_p2align+:} false; then : 23759 $as_echo_n "(cached) " >&6 23760else 23761 gcc_cv_as_balign_and_p2align=no 23762 if test x$gcc_cv_as != x; then 23763 $as_echo '.balign 4 23764.p2align 2' > conftest.s 23765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23767 (eval $ac_try) 2>&5 23768 ac_status=$? 23769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23770 test $ac_status = 0; }; } 23771 then 23772 gcc_cv_as_balign_and_p2align=yes 23773 else 23774 echo "configure: failed program was" >&5 23775 cat conftest.s >&5 23776 fi 23777 rm -f conftest.o conftest.s 23778 fi 23779fi 23780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5 23781$as_echo "$gcc_cv_as_balign_and_p2align" >&6; } 23782if test $gcc_cv_as_balign_and_p2align = yes; then 23783 23784$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h 23785 23786fi 23787 23788 23789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5 23790$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; } 23791if ${gcc_cv_as_max_skip_p2align+:} false; then : 23792 $as_echo_n "(cached) " >&6 23793else 23794 gcc_cv_as_max_skip_p2align=no 23795 if test x$gcc_cv_as != x; then 23796 $as_echo '.p2align 4,,7' > conftest.s 23797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23799 (eval $ac_try) 2>&5 23800 ac_status=$? 23801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23802 test $ac_status = 0; }; } 23803 then 23804 gcc_cv_as_max_skip_p2align=yes 23805 else 23806 echo "configure: failed program was" >&5 23807 cat conftest.s >&5 23808 fi 23809 rm -f conftest.o conftest.s 23810 fi 23811fi 23812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5 23813$as_echo "$gcc_cv_as_max_skip_p2align" >&6; } 23814if test $gcc_cv_as_max_skip_p2align = yes; then 23815 23816$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h 23817 23818fi 23819 23820 23821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5 23822$as_echo_n "checking assembler for .literal16... " >&6; } 23823if ${gcc_cv_as_literal16+:} false; then : 23824 $as_echo_n "(cached) " >&6 23825else 23826 gcc_cv_as_literal16=no 23827 if test x$gcc_cv_as != x; then 23828 $as_echo '.literal16' > conftest.s 23829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23831 (eval $ac_try) 2>&5 23832 ac_status=$? 23833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23834 test $ac_status = 0; }; } 23835 then 23836 gcc_cv_as_literal16=yes 23837 else 23838 echo "configure: failed program was" >&5 23839 cat conftest.s >&5 23840 fi 23841 rm -f conftest.o conftest.s 23842 fi 23843fi 23844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5 23845$as_echo "$gcc_cv_as_literal16" >&6; } 23846if test $gcc_cv_as_literal16 = yes; then 23847 23848$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h 23849 23850fi 23851 23852 23853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5 23854$as_echo_n "checking assembler for working .subsection -1... " >&6; } 23855if ${gcc_cv_as_subsection_m1+:} false; then : 23856 $as_echo_n "(cached) " >&6 23857else 23858 gcc_cv_as_subsection_m1=no 23859 if test x$gcc_cv_as != x; then 23860 $as_echo 'conftest_label1: .word 0 23861.subsection -1 23862conftest_label2: .word 0 23863.previous' > conftest.s 23864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23866 (eval $ac_try) 2>&5 23867 ac_status=$? 23868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23869 test $ac_status = 0; }; } 23870 then 23871 if test x$gcc_cv_nm != x; then 23872 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 23873 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 23874 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1 23875 then : 23876 else gcc_cv_as_subsection_m1=yes 23877 fi 23878 rm -f conftest.nm1 conftest.nm2 23879 fi 23880 else 23881 echo "configure: failed program was" >&5 23882 cat conftest.s >&5 23883 fi 23884 rm -f conftest.o conftest.s 23885 fi 23886fi 23887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5 23888$as_echo "$gcc_cv_as_subsection_m1" >&6; } 23889if test $gcc_cv_as_subsection_m1 = yes; then 23890 23891$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h 23892 23893fi 23894 23895 23896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5 23897$as_echo_n "checking assembler for .weak... " >&6; } 23898if ${gcc_cv_as_weak+:} false; then : 23899 $as_echo_n "(cached) " >&6 23900else 23901 gcc_cv_as_weak=no 23902 if test x$gcc_cv_as != x; then 23903 $as_echo ' .weak foobar' > conftest.s 23904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23906 (eval $ac_try) 2>&5 23907 ac_status=$? 23908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23909 test $ac_status = 0; }; } 23910 then 23911 gcc_cv_as_weak=yes 23912 else 23913 echo "configure: failed program was" >&5 23914 cat conftest.s >&5 23915 fi 23916 rm -f conftest.o conftest.s 23917 fi 23918fi 23919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5 23920$as_echo "$gcc_cv_as_weak" >&6; } 23921if test $gcc_cv_as_weak = yes; then 23922 23923$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h 23924 23925fi 23926 23927 23928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5 23929$as_echo_n "checking assembler for .weakref... " >&6; } 23930if ${gcc_cv_as_weakref+:} false; then : 23931 $as_echo_n "(cached) " >&6 23932else 23933 gcc_cv_as_weakref=no 23934 if test x$gcc_cv_as != x; then 23935 $as_echo ' .weakref foobar, barfnot' > conftest.s 23936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23938 (eval $ac_try) 2>&5 23939 ac_status=$? 23940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23941 test $ac_status = 0; }; } 23942 then 23943 gcc_cv_as_weakref=yes 23944 else 23945 echo "configure: failed program was" >&5 23946 cat conftest.s >&5 23947 fi 23948 rm -f conftest.o conftest.s 23949 fi 23950fi 23951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5 23952$as_echo "$gcc_cv_as_weakref" >&6; } 23953if test $gcc_cv_as_weakref = yes; then 23954 23955$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h 23956 23957fi 23958 23959 23960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5 23961$as_echo_n "checking assembler for .nsubspa comdat... " >&6; } 23962if ${gcc_cv_as_nsubspa_comdat+:} false; then : 23963 $as_echo_n "(cached) " >&6 23964else 23965 gcc_cv_as_nsubspa_comdat=no 23966 if test x$gcc_cv_as != x; then 23967 $as_echo ' .SPACE $TEXT$ 23968 .NSUBSPA $CODE$,COMDAT' > conftest.s 23969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23971 (eval $ac_try) 2>&5 23972 ac_status=$? 23973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23974 test $ac_status = 0; }; } 23975 then 23976 gcc_cv_as_nsubspa_comdat=yes 23977 else 23978 echo "configure: failed program was" >&5 23979 cat conftest.s >&5 23980 fi 23981 rm -f conftest.o conftest.s 23982 fi 23983fi 23984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5 23985$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; } 23986if test $gcc_cv_as_nsubspa_comdat = yes; then 23987 23988$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h 23989 23990fi 23991 23992 23993# .hidden needs to be supported in both the assembler and the linker, 23994# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN. 23995# This is irritatingly difficult to feature test for; we have to check the 23996# date string after the version number. If we've got an in-tree 23997# ld, we don't know its patchlevel version, so we set the baseline at 2.13 23998# to be safe. 23999# The gcc_GAS_CHECK_FEATURE call just sets a cache variable. 24000case "${target}" in 24001 *-*-aix*) 24002 conftest_s=' .globl foobar,hidden' 24003 ;; 24004 *) 24005 conftest_s=' .hidden foobar 24006foobar:' 24007 ;; 24008esac 24009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5 24010$as_echo_n "checking assembler for .hidden... " >&6; } 24011if ${gcc_cv_as_hidden+:} false; then : 24012 $as_echo_n "(cached) " >&6 24013else 24014 gcc_cv_as_hidden=no 24015 if test x$gcc_cv_as != x; then 24016 $as_echo "$conftest_s" > conftest.s 24017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24019 (eval $ac_try) 2>&5 24020 ac_status=$? 24021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24022 test $ac_status = 0; }; } 24023 then 24024 gcc_cv_as_hidden=yes 24025 else 24026 echo "configure: failed program was" >&5 24027 cat conftest.s >&5 24028 fi 24029 rm -f conftest.o conftest.s 24030 fi 24031fi 24032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5 24033$as_echo "$gcc_cv_as_hidden" >&6; } 24034 24035 24036case "${target}" in 24037 *-*-darwin*) 24038 # Darwin as has some visibility support, though with a different syntax. 24039 gcc_cv_as_hidden=yes 24040 ;; 24041esac 24042 24043# gnu_indirect_function type is an extension proposed at 24044# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime 24045# selection of function implementation 24046# Check whether --enable-gnu-indirect-function was given. 24047if test "${enable_gnu_indirect_function+set}" = set; then : 24048 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in 24049 yes | no) ;; 24050 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function. 24051Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 24052 esac 24053else 24054 enable_gnu_indirect_function="$default_gnu_indirect_function" 24055fi 24056 24057 24058case "${target}" in 24059 riscv*-*-linux*) 24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5 24061$as_echo_n "checking linker ifunc IRELATIVE support... " >&6; } 24062 cat > conftest.s <<EOF 24063 .text 24064 .type foo_resolver, @function 24065foo_resolver: 24066 ret 24067 .size foo_resolver, .-foo_resolver 24068 24069 .globl foo 24070 .type foo, %gnu_indirect_function 24071 .set foo, foo_resolver 24072 24073 .globl bar 24074 .type bar, @function 24075bar: 24076 call foo 24077 ret 24078 .size bar, .-bar 24079EOF 24080 if test x$gcc_cv_as != x \ 24081 && test x$gcc_cv_ld != x \ 24082 && test x$gcc_cv_readelf != x \ 24083 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 24084 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 24085 && $gcc_cv_readelf --relocs --wide conftest \ 24086 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then 24087 enable_gnu_indirect_function=yes 24088 fi 24089 rm -f conftest conftest.o conftest.s 24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5 24091$as_echo "$enable_gnu_indirect_function" >&6; } 24092 ;; 24093esac 24094 24095gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi` 24096 24097cat >>confdefs.h <<_ACEOF 24098#define HAVE_GNU_INDIRECT_FUNCTION $gif 24099_ACEOF 24100 24101 24102 24103if test $in_tree_ld != yes ; then 24104 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` 24105 if echo "$ld_ver" | grep GNU > /dev/null; then 24106 if test x"$ld_is_gold" = xyes; then 24107 # GNU gold --version looks like this: 24108 # 24109 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11 24110 # 24111 # We extract the binutils version which is more familiar and specific 24112 # than the gold version. 24113 ld_vers=`echo $ld_ver | sed -n \ 24114 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 24115 else 24116 # GNU ld --version looks like this: 24117 # 24118 # GNU ld (GNU Binutils) 2.21.51.20110225 24119 ld_vers=`echo $ld_ver | sed -n \ 24120 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 24121 fi 24122 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'` 24123 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 24124 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 24125 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 24126 else 24127 case "${target}" in 24128 *-*-solaris2*) 24129 # Solaris 2 ld -V output looks like this for a regular version: 24130 # 24131 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699 24132 # 24133 # but test versions add stuff at the end: 24134 # 24135 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10 24136 # 24137 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version 24138 # numbers can be used in ld.so.1 feature checks even if a different 24139 # linker is configured. 24140 ld_ver=`$gcc_cv_ld -V 2>&1` 24141 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then 24142 ld_vers=`echo $ld_ver | sed -n \ 24143 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'` 24144 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 24145 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 24146 fi 24147 ;; 24148 esac 24149 fi 24150fi 24151 24152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5 24153$as_echo_n "checking linker for .hidden support... " >&6; } 24154if ${gcc_cv_ld_hidden+:} false; then : 24155 $as_echo_n "(cached) " >&6 24156else 24157 if test $in_tree_ld = yes ; then 24158 gcc_cv_ld_hidden=no 24159 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 \ 24160 && test $in_tree_ld_is_elf = yes; then 24161 gcc_cv_ld_hidden=yes 24162 fi 24163else 24164 gcc_cv_ld_hidden=yes 24165 if test x"$ld_is_gold" = xyes; then 24166 : 24167 elif test x"$ld_is_mold" = xyes; then 24168 : 24169 elif echo "$ld_ver" | grep GNU > /dev/null; then 24170 if test 0"$ld_date" -lt 20020404; then 24171 if test -n "$ld_date"; then 24172 # If there was date string, but was earlier than 2002-04-04, fail 24173 gcc_cv_ld_hidden=no 24174 elif test -z "$ld_vers"; then 24175 # If there was no date string nor ld version number, something is wrong 24176 gcc_cv_ld_hidden=no 24177 else 24178 test -z "$ld_vers_patch" && ld_vers_patch=0 24179 if test "$ld_vers_major" -lt 2; then 24180 gcc_cv_ld_hidden=no 24181 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then 24182 gcc_cv_ld_hidden="no" 24183 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then 24184 gcc_cv_ld_hidden=no 24185 fi 24186 fi 24187 fi 24188 else 24189 case "${target}" in 24190 *-*-aix[789]*) 24191 gcc_cv_ld_hidden=yes 24192 ;; 24193 *-*-darwin*) 24194 # Darwin ld has some visibility support. 24195 gcc_cv_ld_hidden=yes 24196 ;; 24197 hppa64*-*-hpux* | ia64*-*-hpux*) 24198 gcc_cv_ld_hidden=yes 24199 ;; 24200 *-*-solaris2*) 24201 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but 24202 # .symbolic was only added in Solaris 9 12/02. 24203 gcc_cv_ld_hidden=yes 24204 ;; 24205 *) 24206 gcc_cv_ld_hidden=no 24207 ;; 24208 esac 24209 fi 24210fi 24211fi 24212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5 24213$as_echo "$gcc_cv_ld_hidden" >&6; } 24214libgcc_visibility=no 24215 24216 24217if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then 24218 libgcc_visibility=yes 24219 24220$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h 24221 24222fi 24223 24224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5 24225$as_echo_n "checking linker read-only and read-write section mixing... " >&6; } 24226gcc_cv_ld_ro_rw_mix=unknown 24227if test $in_tree_ld = yes ; then 24228 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 \ 24229 && test $in_tree_ld_is_elf = yes; then 24230 gcc_cv_ld_ro_rw_mix=read-write 24231 fi 24232elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 24233 echo '.section myfoosect, "a"' > conftest1.s 24234 echo '.section myfoosect, "aw"' > conftest2.s 24235 echo '.byte 1' >> conftest2.s 24236 echo '.section myfoosect, "a"' > conftest3.s 24237 echo '.byte 0' >> conftest3.s 24238 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \ 24239 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \ 24240 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \ 24241 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \ 24242 conftest2.o conftest3.o > /dev/null 2>&1; then 24243 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \ 24244 | sed -e '/myfoosect/!d' -e N` 24245 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then 24246 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then 24247 gcc_cv_ld_ro_rw_mix=read-only 24248 else 24249 gcc_cv_ld_ro_rw_mix=read-write 24250 fi 24251 fi 24252 fi 24253 rm -f conftest.* conftest[123].* 24254fi 24255if test x$gcc_cv_ld_ro_rw_mix = xread-write; then 24256 24257$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h 24258 24259fi 24260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5 24261$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; } 24262 24263# Check whether --enable-initfini-array was given. 24264if test "${enable_initfini_array+set}" = set; then : 24265 enableval=$enable_initfini_array; 24266else 24267 24268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 24269$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } 24270if ${gcc_cv_initfini_array+:} false; then : 24271 $as_echo_n "(cached) " >&6 24272else 24273 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then 24274 case "${target}" in 24275 ia64-*) 24276 if test "$cross_compiling" = yes; then : 24277 gcc_cv_initfini_array=no 24278else 24279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24280/* end confdefs.h. */ 24281 24282#ifndef __ELF__ 24283#error Not an ELF OS 24284#endif 24285/* We turn on .preinit_array/.init_array/.fini_array support for ia64 24286 if it can be used. */ 24287static int x = -1; 24288int main (void) { return x; } 24289int foo (void) { x = 0; } 24290int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; 24291 24292_ACEOF 24293if ac_fn_cxx_try_run "$LINENO"; then : 24294 gcc_cv_initfini_array=yes 24295else 24296 gcc_cv_initfini_array=no 24297fi 24298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24299 conftest.$ac_objext conftest.beam conftest.$ac_ext 24300fi 24301;; 24302 *) 24303 gcc_cv_initfini_array=no 24304 if test $in_tree_ld = yes ; then 24305 if test "$gcc_cv_gld_major_version" -eq 2 \ 24306 -a "$gcc_cv_gld_minor_version" -ge 22 \ 24307 -o "$gcc_cv_gld_major_version" -gt 2 \ 24308 && test $in_tree_ld_is_elf = yes; then 24309 gcc_cv_initfini_array=yes 24310 fi 24311 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 24312 case $target:$gas in 24313 *:yes) 24314 sh_flags='"a"' 24315 sh_type='%progbits' 24316 ;; 24317 i?86-*-solaris2*:no | x86_64-*-solaris2*:no) 24318 sh_flags='"a"' 24319 sh_type='@progbits' 24320 ;; 24321 sparc*-*-solaris2*:no) 24322 sh_flags='#alloc' 24323 sh_type='#progbits' 24324 sh_quote='"' 24325 ;; 24326 esac 24327 case "$target:$gnu_ld" in 24328 *:yes) 24329 cat > conftest.s <<EOF 24330.section .dtors,$sh_flags,$sh_type 24331.balign 4 24332.byte 'A', 'A', 'A', 'A' 24333.section .ctors,$sh_flags,$sh_type 24334.balign 4 24335.byte 'B', 'B', 'B', 'B' 24336.section .fini_array.65530,$sh_flags,$sh_type 24337.balign 4 24338.byte 'C', 'C', 'C', 'C' 24339.section .init_array.65530,$sh_flags,$sh_type 24340.balign 4 24341.byte 'D', 'D', 'D', 'D' 24342.section .dtors.64528,$sh_flags,$sh_type 24343.balign 4 24344.byte 'E', 'E', 'E', 'E' 24345.section .ctors.64528,$sh_flags,$sh_type 24346.balign 4 24347.byte 'F', 'F', 'F', 'F' 24348.section .fini_array.01005,$sh_flags,$sh_type 24349.balign 4 24350.byte 'G', 'G', 'G', 'G' 24351.section .init_array.01005,$sh_flags,$sh_type 24352.balign 4 24353.byte 'H', 'H', 'H', 'H' 24354.text 24355.globl _start 24356_start: 24357EOF 24358 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 24359 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 24360 && $gcc_cv_objdump -s -j .init_array conftest \ 24361 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \ 24362 && $gcc_cv_objdump -s -j .fini_array conftest \ 24363 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then 24364 gcc_cv_initfini_array=yes 24365 fi 24366 ;; 24367 *-*-solaris2*:no) 24368 # When Solaris ld added constructor priority support, it was 24369 # decided to only handle .init_array.N/.fini_array.N since 24370 # there was no need for backwards compatibility with 24371 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate 24372 # sections with correct execution order resp. to 24373 # .init_array/.fini_array, while gld merges them into 24374 # .init_array/.fini_array. 24375 cat > conftest.s <<EOF 24376.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type 24377.align 4 24378.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C' 24379.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type 24380.align 4 24381.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D' 24382.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type 24383.align 4 24384.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G' 24385.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type 24386.align 4 24387.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H' 24388.text 24389.globl _start 24390_start: 24391EOF 24392 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 24393 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 24394 && $gcc_cv_objdump -s -j .init_array conftest \ 24395 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \ 24396 && $gcc_cv_objdump -s -j .fini_array conftest \ 24397 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then 24398 gcc_cv_initfini_array=yes 24399 fi 24400 ;; 24401 esac 24402 rm -f conftest conftest.* 24403 fi 24404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24405/* end confdefs.h. */ 24406 24407#ifndef __ELF__ 24408# error Not an ELF OS 24409#endif 24410#include <stdlib.h> 24411#if defined __GLIBC_PREREQ 24412# if __GLIBC_PREREQ (2, 4) 24413# else 24414# error GLIBC 2.4 required 24415# endif 24416#else 24417# if defined __sun__ && defined __svr4__ 24418 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ 24419# else 24420# error The C library not known to support .init_array/.fini_array 24421# endif 24422#endif 24423 24424_ACEOF 24425if ac_fn_cxx_try_cpp "$LINENO"; then : 24426 24427else 24428 gcc_cv_initfini_array=no 24429fi 24430rm -f conftest.err conftest.i conftest.$ac_ext;; 24431 esac 24432 else 24433 case "${target}" in 24434 aarch64*-linux-gnu*) 24435 # AArch64 postdates glibc support for .init_array/.fini_array, 24436 # so we don't need the preprocessor test above. 24437 gcc_cv_initfini_array=yes 24438 ;; 24439 24440 *) 24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5 24442$as_echo_n "checking cross compile... guessing... " >&6; } 24443 gcc_cv_initfini_array=no 24444 ;; 24445 esac 24446 fi 24447fi 24448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5 24449$as_echo "$gcc_cv_initfini_array" >&6; } 24450 enable_initfini_array=$gcc_cv_initfini_array 24451 24452fi 24453 24454 24455cat >>confdefs.h <<_ACEOF 24456#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi` 24457_ACEOF 24458 24459 24460 24461# Check if we have .[us]leb128, and support symbol arithmetic with it. 24462# Older versions of GAS and some non-GNU assemblers, have a bugs handling 24463# these directives, even when they appear to accept them. 24464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5 24465$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; } 24466if ${gcc_cv_as_leb128+:} false; then : 24467 $as_echo_n "(cached) " >&6 24468else 24469 gcc_cv_as_leb128=no 24470 if test x$gcc_cv_as != x; then 24471 $as_echo ' .data 24472 .uleb128 L2 - L1 24473L1: 24474 .uleb128 1280 24475 .sleb128 -1010 24476L2: 24477 .uleb128 0x8000000000000000 24478' > conftest.s 24479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24481 (eval $ac_try) 2>&5 24482 ac_status=$? 24483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24484 test $ac_status = 0; }; } 24485 then 24486 24487if test "x$gcc_cv_objdump" != x; then 24488 if $gcc_cv_objdump -s conftest.o 2>/dev/null \ 24489 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then 24490 gcc_cv_as_leb128=yes 24491 fi 24492elif test "x$gcc_cv_otool" != x; then 24493 if $gcc_cv_otool -d conftest.o 2>/dev/null \ 24494 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then 24495 gcc_cv_as_leb128=yes 24496 fi 24497else 24498 # play safe, assume the assembler is broken. 24499 : 24500fi 24501 24502 else 24503 echo "configure: failed program was" >&5 24504 cat conftest.s >&5 24505 fi 24506 rm -f conftest.o conftest.s 24507 fi 24508fi 24509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5 24510$as_echo "$gcc_cv_as_leb128" >&6; } 24511if test $gcc_cv_as_leb128 = yes; then 24512 24513$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h 24514 24515fi 24516if test $gcc_cv_as_leb128 != yes; then 24517 24518$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h 24519 24520fi 24521 24522# Determine if an .eh_frame section is read-only. 24523gcc_fn_eh_frame_ro () { 24524 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \ 24525 $gcc_cv_objdump -h conftest.o 2>/dev/null | \ 24526 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null 24527} 24528 24529# Check if we have assembler support for unwind directives. 24530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5 24531$as_echo_n "checking assembler for cfi directives... " >&6; } 24532if ${gcc_cv_as_cfi_directive+:} false; then : 24533 $as_echo_n "(cached) " >&6 24534else 24535 gcc_cv_as_cfi_directive=no 24536 if test x$gcc_cv_as != x; then 24537 $as_echo ' .text 24538 .cfi_startproc 24539 .cfi_offset 0, 0 24540 .cfi_same_value 1 24541 .cfi_def_cfa 1, 2 24542 .cfi_escape 1, 2, 3, 4, 5 24543 .cfi_endproc' > conftest.s 24544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24546 (eval $ac_try) 2>&5 24547 ac_status=$? 24548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24549 test $ac_status = 0; }; } 24550 then 24551 case "$target" in 24552 *-*-solaris*) 24553 # If the linker used on Solaris (like Sun ld) isn't capable of merging 24554 # read-only and read-write sections, we need to make sure that the 24555 # assembler used emits read-write .eh_frame sections. 24556 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then 24557 gcc_cv_as_cfi_directive=yes 24558 elif test "x$gcc_cv_objdump" = x; then 24559 # No objdump, err on the side of caution. 24560 gcc_cv_as_cfi_directive=no 24561 else 24562 if test x$gas = xyes; then 24563 as_32_opt="--32" 24564 as_64_opt="--64" 24565 else 24566 as_32_opt="-m32" 24567 as_64_opt="-m64" 24568 fi 24569 case "$target" in 24570 sparc*-*-solaris2.*) 24571 # On Solaris/SPARC, .eh_frame sections should always be read-write. 24572 if gcc_fn_eh_frame_ro $as_32_opt \ 24573 || gcc_fn_eh_frame_ro $as_64_opt; then 24574 gcc_cv_as_cfi_directive=no 24575 else 24576 gcc_cv_as_cfi_directive=yes 24577 fi 24578 ;; 24579 i?86-*-solaris2.* | x86_64-*-solaris2.*) 24580 # On Solaris/x86, make sure that GCC and assembler agree on using 24581 # read-only .eh_frame sections for 64-bit. 24582 if gcc_fn_eh_frame_ro $as_32_opt; then 24583 gcc_cv_as_cfi_directive=no 24584 elif gcc_fn_eh_frame_ro $as_64_opt; then 24585 gcc_cv_as_cfi_directive=yes 24586 else 24587 gcc_cv_as_cfi_directive=no 24588 fi 24589 ;; 24590 esac 24591 fi 24592 ;; 24593 *-*-*) 24594 gcc_cv_as_cfi_directive=yes 24595 ;; 24596esac 24597 else 24598 echo "configure: failed program was" >&5 24599 cat conftest.s >&5 24600 fi 24601 rm -f conftest.o conftest.s 24602 fi 24603fi 24604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5 24605$as_echo "$gcc_cv_as_cfi_directive" >&6; } 24606 24607 24608if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then 24609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5 24610$as_echo_n "checking assembler for working cfi advance... " >&6; } 24611if ${gcc_cv_as_cfi_advance_working+:} false; then : 24612 $as_echo_n "(cached) " >&6 24613else 24614 gcc_cv_as_cfi_advance_working=no 24615 if test x$gcc_cv_as != x; then 24616 $as_echo ' .text 24617 .cfi_startproc 24618 .cfi_adjust_cfa_offset 64 24619 .skip 75040, 0 24620 .cfi_adjust_cfa_offset 128 24621 .cfi_endproc' > conftest.s 24622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24624 (eval $ac_try) 2>&5 24625 ac_status=$? 24626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24627 test $ac_status = 0; }; } 24628 then 24629 24630if $gcc_cv_readelf --debug-dump=frames conftest.o 2>/dev/null \ 24631 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then 24632 gcc_cv_as_cfi_advance_working=yes 24633fi 24634 24635 else 24636 echo "configure: failed program was" >&5 24637 cat conftest.s >&5 24638 fi 24639 rm -f conftest.o conftest.s 24640 fi 24641fi 24642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5 24643$as_echo "$gcc_cv_as_cfi_advance_working" >&6; } 24644 24645 24646else 24647 # no objdump, err on the side of caution 24648 gcc_cv_as_cfi_advance_working=no 24649fi 24650 24651 24652cat >>confdefs.h <<_ACEOF 24653#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \ 24654 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi` 24655_ACEOF 24656 24657 24658 24659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5 24660$as_echo_n "checking assembler for cfi personality directive... " >&6; } 24661if ${gcc_cv_as_cfi_personality_directive+:} false; then : 24662 $as_echo_n "(cached) " >&6 24663else 24664 gcc_cv_as_cfi_personality_directive=no 24665 if test x$gcc_cv_as != x; then 24666 $as_echo ' .text 24667 .cfi_startproc 24668 .cfi_personality 0, symbol 24669 .cfi_endproc' > conftest.s 24670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24672 (eval $ac_try) 2>&5 24673 ac_status=$? 24674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24675 test $ac_status = 0; }; } 24676 then 24677 gcc_cv_as_cfi_personality_directive=yes 24678 else 24679 echo "configure: failed program was" >&5 24680 cat conftest.s >&5 24681 fi 24682 rm -f conftest.o conftest.s 24683 fi 24684fi 24685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5 24686$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; } 24687 24688 24689 24690cat >>confdefs.h <<_ACEOF 24691#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi` 24692_ACEOF 24693 24694 24695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5 24696$as_echo_n "checking assembler for cfi sections directive... " >&6; } 24697if ${gcc_cv_as_cfi_sections_directive+:} false; then : 24698 $as_echo_n "(cached) " >&6 24699else 24700 gcc_cv_as_cfi_sections_directive=no 24701 if test x$gcc_cv_as != x; then 24702 $as_echo ' .text 24703 .cfi_sections .debug_frame, .eh_frame 24704 .cfi_startproc 24705 .cfi_endproc' > conftest.s 24706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24708 (eval $ac_try) 2>&5 24709 ac_status=$? 24710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24711 test $ac_status = 0; }; } 24712 then 24713 case $target_os in 24714 win32 | pe | cygwin* | mingw32*) 24715 # Need to check that we generated the correct relocation for the 24716 # .debug_frame section. This was fixed for binutils 2.21. 24717 gcc_cv_as_cfi_sections_directive=no 24718 if test "x$gcc_cv_objdump" != x; then 24719 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \ 24720 grep secrel > /dev/null; then 24721 gcc_cv_as_cfi_sections_directive=yes 24722 fi 24723 fi 24724 ;; 24725 *) 24726 gcc_cv_as_cfi_sections_directive=yes 24727 ;; 24728esac 24729 else 24730 echo "configure: failed program was" >&5 24731 cat conftest.s >&5 24732 fi 24733 rm -f conftest.o conftest.s 24734 fi 24735fi 24736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5 24737$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; } 24738 24739 24740 24741 24742cat >>confdefs.h <<_ACEOF 24743#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi` 24744_ACEOF 24745 24746 24747# GAS versions up to and including 2.11.0 may mis-optimize 24748# .eh_frame data. 24749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5 24750$as_echo_n "checking assembler for eh_frame optimization... " >&6; } 24751if ${gcc_cv_as_eh_frame+:} false; then : 24752 $as_echo_n "(cached) " >&6 24753else 24754 gcc_cv_as_eh_frame=no 24755 if test x$gcc_cv_as != x; then 24756 $as_echo ' .text 24757.LFB1: 24758 .4byte 0 24759.L1: 24760 .4byte 0 24761.LFE1: 24762 .section .eh_frame,"aw",@progbits 24763__FRAME_BEGIN__: 24764 .4byte .LECIE1-.LSCIE1 24765.LSCIE1: 24766 .4byte 0x0 24767 .byte 0x1 24768 .ascii "z\0" 24769 .byte 0x1 24770 .byte 0x78 24771 .byte 0x1a 24772 .byte 0x0 24773 .byte 0x4 24774 .4byte 1 24775 .p2align 1 24776.LECIE1: 24777.LSFDE1: 24778 .4byte .LEFDE1-.LASFDE1 24779.LASFDE1: 24780 .4byte .LASFDE1-__FRAME_BEGIN__ 24781 .4byte .LFB1 24782 .4byte .LFE1-.LFB1 24783 .byte 0x4 24784 .4byte .LFE1-.LFB1 24785 .byte 0x4 24786 .4byte .L1-.LFB1 24787.LEFDE1:' > conftest.s 24788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24790 (eval $ac_try) 2>&5 24791 ac_status=$? 24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24793 test $ac_status = 0; }; } 24794 then 24795 cat > conftest.lit <<EOF 24796 0000 10000000 00000000 017a0001 781a0004 .........z..x... 24797 0010 01000000 12000000 18000000 00000000 ................ 24798 0020 08000000 04080000 0044 .........D 24799EOF 24800cat > conftest.big <<EOF 24801 0000 00000010 00000000 017a0001 781a0004 .........z..x... 24802 0010 00000001 00000012 00000018 00000000 ................ 24803 0020 00000008 04000000 0844 .........D 24804EOF 24805 # If the assembler didn't choke, and we can objdump, 24806 # and we got the correct data, then succeed. 24807 # The text in the here-document typically retains its unix-style line 24808 # endings, while the output of objdump will use host line endings. 24809 # Therefore, use diff -b for the comparisons. 24810 if test x$gcc_cv_objdump != x \ 24811 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ 24812 | tail -3 > conftest.got \ 24813 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \ 24814 || diff -b conftest.big conftest.got > /dev/null 2>&1; } 24815 then 24816 gcc_cv_as_eh_frame=yes 24817 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null' 24818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24819 (eval $ac_try) 2>&5 24820 ac_status=$? 24821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24822 test $ac_status = 0; }; }; then 24823 gcc_cv_as_eh_frame=buggy 24824 else 24825 # Uh oh, what do we do now? 24826 gcc_cv_as_eh_frame=no 24827 fi 24828 else 24829 echo "configure: failed program was" >&5 24830 cat conftest.s >&5 24831 fi 24832 rm -f conftest.o conftest.s 24833 fi 24834fi 24835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5 24836$as_echo "$gcc_cv_as_eh_frame" >&6; } 24837 24838 24839 24840if test $gcc_cv_as_eh_frame = buggy; then 24841 24842$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h 24843 24844fi 24845 24846# Test if the assembler supports the section flag 'e' or #exclude for 24847# specifying an excluded section. 24848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5 24849$as_echo_n "checking assembler for section exclude flag... " >&6; } 24850if ${gcc_cv_as_section_exclude_e+:} false; then : 24851 $as_echo_n "(cached) " >&6 24852else 24853 gcc_cv_as_section_exclude_e=no 24854 if test x$gcc_cv_as != x; then 24855 $as_echo '.section foo1,"e" 24856 .byte 0,0,0,0' > conftest.s 24857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24859 (eval $ac_try) 2>&5 24860 ac_status=$? 24861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24862 test $ac_status = 0; }; } 24863 then 24864 gcc_cv_as_section_exclude_e=yes 24865 else 24866 echo "configure: failed program was" >&5 24867 cat conftest.s >&5 24868 fi 24869 rm -f conftest.o conftest.s 24870 fi 24871fi 24872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5 24873$as_echo "$gcc_cv_as_section_exclude_e" >&6; } 24874 24875 24876if test $gcc_cv_as_section_exclude_e = no; then 24877 case "${target}" in 24878 # Solaris as uses #exclude instead. 24879 *-*-solaris2*) 24880 case "${target}" in 24881 sparc*-*-solaris2*) 24882 conftest_s='.section "foo1", #exclude' 24883 ;; 24884 i?86-*-solaris2* | x86_64-*-solaris2*) 24885 conftest_s='.section foo1, #exclude' 24886 ;; 24887 esac 24888 ;; 24889 esac 24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5 24891$as_echo_n "checking assembler for section exclude flag... " >&6; } 24892if ${gcc_cv_as_section_exclude_hash+:} false; then : 24893 $as_echo_n "(cached) " >&6 24894else 24895 gcc_cv_as_section_exclude_hash=no 24896 if test x$gcc_cv_as != x; then 24897 $as_echo "$conftest_s 24898 .byte 0,0,0,0" > conftest.s 24899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24901 (eval $ac_try) 2>&5 24902 ac_status=$? 24903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24904 test $ac_status = 0; }; } 24905 then 24906 gcc_cv_as_section_exclude_hash=yes 24907 else 24908 echo "configure: failed program was" >&5 24909 cat conftest.s >&5 24910 fi 24911 rm -f conftest.o conftest.s 24912 fi 24913fi 24914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5 24915$as_echo "$gcc_cv_as_section_exclude_hash" >&6; } 24916 24917 24918fi 24919 24920cat >>confdefs.h <<_ACEOF 24921#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` 24922_ACEOF 24923 24924 24925# Test if the assembler supports the section flag 'R' for specifying 24926# section with SHF_GNU_RETAIN. 24927case "${target}" in 24928 # Solaris may use GNU assembler with Solairs ld. Even if GNU 24929 # assembler supports the section flag 'R', it doesn't mean that 24930 # Solairs ld supports it. 24931 *-*-solaris2*) 24932 gcc_cv_as_shf_gnu_retain=no 24933 ;; 24934 *) 24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5 24936$as_echo_n "checking assembler for section 'R' flag... " >&6; } 24937if ${gcc_cv_as_shf_gnu_retain+:} false; then : 24938 $as_echo_n "(cached) " >&6 24939else 24940 gcc_cv_as_shf_gnu_retain=no 24941 if test x$gcc_cv_as != x; then 24942 $as_echo '.section .foo,"awR",%progbits 24943.byte 0' > conftest.s 24944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24946 (eval $ac_try) 2>&5 24947 ac_status=$? 24948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24949 test $ac_status = 0; }; } 24950 then 24951 gcc_cv_as_shf_gnu_retain=yes 24952 else 24953 echo "configure: failed program was" >&5 24954 cat conftest.s >&5 24955 fi 24956 rm -f conftest.o conftest.s 24957 fi 24958fi 24959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5 24960$as_echo "$gcc_cv_as_shf_gnu_retain" >&6; } 24961 24962 24963 ;; 24964esac 24965 24966cat >>confdefs.h <<_ACEOF 24967#define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi` 24968_ACEOF 24969 24970 24971# Test if the assembler supports the section flag 'o' for specifying 24972# section with link-order. 24973case "${target}" in 24974 # Solaris may use GNU assembler with Solairs ld. Even if GNU 24975 # assembler supports the section flag 'o', it doesn't mean that 24976 # Solairs ld supports it. 24977 *-*-solaris2*) 24978 gcc_cv_as_section_link_order=no 24979 ;; 24980 *) 24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5 24982$as_echo_n "checking assembler for section 'o' flag... " >&6; } 24983if ${gcc_cv_as_section_link_order+:} false; then : 24984 $as_echo_n "(cached) " >&6 24985else 24986 gcc_cv_as_section_link_order=no 24987 if test x$gcc_cv_as != x; then 24988 $as_echo '.section .foo,"a" 24989.byte 0 24990.section __patchable_function_entries,"awo",%progbits,.foo 24991.byte 0' > conftest.s 24992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24994 (eval $ac_try) 2>&5 24995 ac_status=$? 24996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24997 test $ac_status = 0; }; } 24998 then 24999 gcc_cv_as_section_link_order=yes 25000 else 25001 echo "configure: failed program was" >&5 25002 cat conftest.s >&5 25003 fi 25004 rm -f conftest.o conftest.s 25005 fi 25006fi 25007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5 25008$as_echo "$gcc_cv_as_section_link_order" >&6; } 25009 25010 25011 ;; 25012esac 25013 25014cat >>confdefs.h <<_ACEOF 25015#define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi` 25016_ACEOF 25017 25018 25019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 25020$as_echo_n "checking assembler for section merging support... " >&6; } 25021if ${gcc_cv_as_shf_merge+:} false; then : 25022 $as_echo_n "(cached) " >&6 25023else 25024 gcc_cv_as_shf_merge=no 25025 if test x$gcc_cv_as != x; then 25026 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s 25027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 25028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25029 (eval $ac_try) 2>&5 25030 ac_status=$? 25031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25032 test $ac_status = 0; }; } 25033 then 25034 gcc_cv_as_shf_merge=yes 25035 else 25036 echo "configure: failed program was" >&5 25037 cat conftest.s >&5 25038 fi 25039 rm -f conftest.o conftest.s 25040 fi 25041fi 25042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 25043$as_echo "$gcc_cv_as_shf_merge" >&6; } 25044 25045 25046if test $gcc_cv_as_shf_merge = no; then 25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 25048$as_echo_n "checking assembler for section merging support... " >&6; } 25049if ${gcc_cv_as_shf_merge+:} false; then : 25050 $as_echo_n "(cached) " >&6 25051else 25052 gcc_cv_as_shf_merge=no 25053 if test x$gcc_cv_as != x; then 25054 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s 25055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 25056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25057 (eval $ac_try) 2>&5 25058 ac_status=$? 25059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25060 test $ac_status = 0; }; } 25061 then 25062 gcc_cv_as_shf_merge=yes 25063 else 25064 echo "configure: failed program was" >&5 25065 cat conftest.s >&5 25066 fi 25067 rm -f conftest.o conftest.s 25068 fi 25069fi 25070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 25071$as_echo "$gcc_cv_as_shf_merge" >&6; } 25072 25073 25074fi 25075 25076cat >>confdefs.h <<_ACEOF 25077#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi` 25078_ACEOF 25079 25080 25081gcc_cv_ld_aligned_shf_merge=yes 25082case "$target" in 25083 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for 25084 # alignment > 1. 25085 sparc*-*-solaris2.11*) 25086 if test x"$gnu_ld" = xno \ 25087 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then 25088 gcc_cv_ld_aligned_shf_merge=no 25089 fi 25090 ;; 25091esac 25092 25093cat >>confdefs.h <<_ACEOF 25094#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi` 25095_ACEOF 25096 25097 25098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5 25099$as_echo_n "checking assembler for stabs directive... " >&6; } 25100if ${gcc_cv_as_stabs_directive+:} false; then : 25101 $as_echo_n "(cached) " >&6 25102else 25103 gcc_cv_as_stabs_directive=no 25104 if test x$gcc_cv_as != x; then 25105 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s 25106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25108 (eval $ac_try) 2>&5 25109 ac_status=$? 25110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25111 test $ac_status = 0; }; } 25112 then 25113 gcc_cv_as_stabs_directive=yes 25114 else 25115 echo "configure: failed program was" >&5 25116 cat conftest.s >&5 25117 fi 25118 rm -f conftest.o conftest.s 25119 fi 25120fi 25121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5 25122$as_echo "$gcc_cv_as_stabs_directive" >&6; } 25123if test $gcc_cv_as_stabs_directive = yes; then 25124 25125$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h 25126 25127fi 25128 25129 25130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5 25131$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; } 25132if ${gcc_cv_as_comdat_group+:} false; then : 25133 $as_echo_n "(cached) " >&6 25134else 25135 gcc_cv_as_comdat_group=no 25136 if test x$gcc_cv_as != x; then 25137 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s 25138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 25139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25140 (eval $ac_try) 2>&5 25141 ac_status=$? 25142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25143 test $ac_status = 0; }; } 25144 then 25145 gcc_cv_as_comdat_group=yes 25146 else 25147 echo "configure: failed program was" >&5 25148 cat conftest.s >&5 25149 fi 25150 rm -f conftest.o conftest.s 25151 fi 25152fi 25153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5 25154$as_echo "$gcc_cv_as_comdat_group" >&6; } 25155 25156 25157if test $gcc_cv_as_comdat_group = yes; then 25158 gcc_cv_as_comdat_group_percent=no 25159 gcc_cv_as_comdat_group_group=no 25160else 25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5 25162$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; } 25163if ${gcc_cv_as_comdat_group_percent+:} false; then : 25164 $as_echo_n "(cached) " >&6 25165else 25166 gcc_cv_as_comdat_group_percent=no 25167 if test x$gcc_cv_as != x; then 25168 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s 25169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 25170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25171 (eval $ac_try) 2>&5 25172 ac_status=$? 25173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25174 test $ac_status = 0; }; } 25175 then 25176 gcc_cv_as_comdat_group_percent=yes 25177 else 25178 echo "configure: failed program was" >&5 25179 cat conftest.s >&5 25180 fi 25181 rm -f conftest.o conftest.s 25182 fi 25183fi 25184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5 25185$as_echo "$gcc_cv_as_comdat_group_percent" >&6; } 25186 25187 25188 if test $gcc_cv_as_comdat_group_percent = yes; then 25189 gcc_cv_as_comdat_group_group=no 25190 else 25191 case "${target}" in 25192 # Sun as uses a completely different syntax. 25193 *-*-solaris2*) 25194 case "${target}" in 25195 sparc*-*-solaris2*) 25196 conftest_s=' 25197 .group foo,".text%foo",#comdat 25198 .section ".text%foo", #alloc,#execinstr,#progbits 25199 .globl foo 25200 foo: 25201 ' 25202 ;; 25203 i?86-*-solaris2* | x86_64-*-solaris2*) 25204 conftest_s=' 25205 .group foo,.text%foo,#comdat 25206 .section .text%foo, "ax", @progbits 25207 .globl foo 25208 foo: 25209 ' 25210 ;; 25211 esac 25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5 25213$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; } 25214if ${gcc_cv_as_comdat_group_group+:} false; then : 25215 $as_echo_n "(cached) " >&6 25216else 25217 gcc_cv_as_comdat_group_group=no 25218 if test x$gcc_cv_as != x; then 25219 $as_echo "$conftest_s" > conftest.s 25220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25222 (eval $ac_try) 2>&5 25223 ac_status=$? 25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25225 test $ac_status = 0; }; } 25226 then 25227 gcc_cv_as_comdat_group_group=yes 25228 else 25229 echo "configure: failed program was" >&5 25230 cat conftest.s >&5 25231 fi 25232 rm -f conftest.o conftest.s 25233 fi 25234fi 25235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5 25236$as_echo "$gcc_cv_as_comdat_group_group" >&6; } 25237 25238 25239 ;; 25240 esac 25241 if test -z "${gcc_cv_as_comdat_group_group+set}"; then 25242 gcc_cv_as_comdat_group_group=no 25243 fi 25244 fi 25245fi 25246if test x"$ld_is_gold" = xyes; then 25247 comdat_group=yes 25248elif test x"$ld_is_mold" = xyes; then 25249 comdat_group=yes 25250elif test $in_tree_ld = yes ; then 25251 comdat_group=no 25252 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 \ 25253 && test $in_tree_ld_is_elf = yes; then 25254 comdat_group=yes 25255 fi 25256elif echo "$ld_ver" | grep GNU > /dev/null; then 25257 comdat_group=yes 25258 if test 0"$ld_date" -lt 20050308; then 25259 if test -n "$ld_date"; then 25260 # If there was date string, but was earlier than 2005-03-08, fail 25261 comdat_group=no 25262 elif test "$ld_vers_major" -lt 2; then 25263 comdat_group=no 25264 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 25265 comdat_group=no 25266 fi 25267 fi 25268else 25269 case "${target}" in 25270 *-*-solaris2.1[1-9]*) 25271 comdat_group=no 25272 # Sun ld has COMDAT group support since Solaris 9, but it doesn't 25273 # interoperate with GNU as until Solaris 11 build 130, i.e. ld 25274 # version 1.688. 25275 # 25276 # If using Sun as for COMDAT group as emitted by GCC, one needs at 25277 # least ld version 1.2267. 25278 if test "$ld_vers_major" -gt 1; then 25279 comdat_group=yes 25280 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then 25281 comdat_group=yes 25282 elif test "$ld_vers_minor" -ge 2267; then 25283 comdat_group=yes 25284 fi 25285 ;; 25286 *) 25287 # Assume linkers other than GNU ld don't support COMDAT group. 25288 comdat_group=no 25289 ;; 25290 esac 25291fi 25292# Allow overriding the automatic COMDAT group tests above. 25293# Check whether --enable-comdat was given. 25294if test "${enable_comdat+set}" = set; then : 25295 enableval=$enable_comdat; comdat_group="$enable_comdat" 25296fi 25297 25298if test $comdat_group = no; then 25299 gcc_cv_as_comdat_group=no 25300 gcc_cv_as_comdat_group_percent=no 25301 gcc_cv_as_comdat_group_group=no 25302fi 25303 25304cat >>confdefs.h <<_ACEOF 25305#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \ 25306 || test $gcc_cv_as_comdat_group_percent = yes \ 25307 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi` 25308_ACEOF 25309 25310 25311# Restrict this test to Solaris/x86: other targets define this statically. 25312case "${target}" in 25313 i?86-*-solaris2* | x86_64-*-solaris2*) 25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5 25315$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; } 25316 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then 25317 hidden_linkonce=yes 25318 else 25319 case "${target}" in 25320 # Full support for hidden thunks in linkonce sections only appeared in 25321 # Solaris 11/OpenSolaris. 25322 *-*-solaris2.1[1-9]*) 25323 hidden_linkonce=yes 25324 ;; 25325 *) 25326 hidden_linkonce=no 25327 ;; 25328 esac 25329 fi 25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5 25331$as_echo "$hidden_linkonce" >&6; } 25332 25333cat >>confdefs.h <<_ACEOF 25334#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi` 25335_ACEOF 25336 25337 ;; 25338esac 25339 25340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5 25341$as_echo_n "checking assembler for line table is_stmt support... " >&6; } 25342if ${gcc_cv_as_is_stmt+:} false; then : 25343 $as_echo_n "(cached) " >&6 25344else 25345 gcc_cv_as_is_stmt=no 25346 if test x$gcc_cv_as != x; then 25347 $as_echo ' .text 25348 .file 1 "conf.c" 25349 .loc 1 1 0 is_stmt 1' > conftest.s 25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25352 (eval $ac_try) 2>&5 25353 ac_status=$? 25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25355 test $ac_status = 0; }; } 25356 then 25357 gcc_cv_as_is_stmt=yes 25358 else 25359 echo "configure: failed program was" >&5 25360 cat conftest.s >&5 25361 fi 25362 rm -f conftest.o conftest.s 25363 fi 25364fi 25365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5 25366$as_echo "$gcc_cv_as_is_stmt" >&6; } 25367if test $gcc_cv_as_is_stmt = yes; then 25368 25369$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h 25370 25371fi 25372 25373 25374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5 25375$as_echo_n "checking assembler for line table discriminator support... " >&6; } 25376if ${gcc_cv_as_discriminator+:} false; then : 25377 $as_echo_n "(cached) " >&6 25378else 25379 gcc_cv_as_discriminator=no 25380 if test x$gcc_cv_as != x; then 25381 $as_echo ' .text 25382 .file 1 "conf.c" 25383 .loc 1 1 0 discriminator 1' > conftest.s 25384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25386 (eval $ac_try) 2>&5 25387 ac_status=$? 25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25389 test $ac_status = 0; }; } 25390 then 25391 gcc_cv_as_discriminator=yes 25392 else 25393 echo "configure: failed program was" >&5 25394 cat conftest.s >&5 25395 fi 25396 rm -f conftest.o conftest.s 25397 fi 25398fi 25399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5 25400$as_echo "$gcc_cv_as_discriminator" >&6; } 25401if test $gcc_cv_as_discriminator = yes; then 25402 25403$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h 25404 25405fi 25406 25407 25408# Catch the newlib flag of the same name so we can gate GCC features on it. 25409# Check whether --enable-newlib-nano-formatted-io was given. 25410if test "${enable_newlib_nano_formatted_io+set}" = set; then : 25411 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in 25412 yes|no) 25413 ;; 25414 *) 25415 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5 25416 ;; 25417esac 25418fi 25419 25420 25421# Thread-local storage - the check is heavily parameterized. 25422conftest_s= 25423tls_as_opt= 25424case "$target" in 25425 alpha*-*-*) 25426 conftest_s=' 25427 .section ".tdata","awT",@progbits 25428foo: .long 25 25429 .text 25430 ldq $27,__tls_get_addr($29) !literal!1 25431 lda $16,foo($29) !tlsgd!1 25432 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1 25433 ldq $27,__tls_get_addr($29) !literal!2 25434 lda $16,foo($29) !tlsldm!2 25435 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2 25436 ldq $1,foo($29) !gotdtprel 25437 ldah $2,foo($29) !dtprelhi 25438 lda $3,foo($2) !dtprello 25439 lda $4,foo($29) !dtprel 25440 ldq $1,foo($29) !gottprel 25441 ldah $2,foo($29) !tprelhi 25442 lda $3,foo($2) !tprello 25443 lda $4,foo($29) !tprel' 25444 tls_as_opt=--fatal-warnings 25445 ;; 25446 arc*-*-*) 25447 conftest_s=' 25448 add_s r0,r0, @foo@tpoff' 25449 ;; 25450 cris-*-*|crisv32-*-*) 25451 conftest_s=' 25452 .section ".tdata","awT",@progbits 25453x: .long 25 25454 .text 25455 move.d x:IE,$r10 25456 nop' 25457 tls_as_opt=--fatal-warnings 25458 ;; 25459 frv*-*-*) 25460 conftest_s=' 25461 .section ".tdata","awT",@progbits 25462x: .long 25 25463 .text 25464 call #gettlsoff(x)' 25465 ;; 25466 hppa*-*-linux* | hppa*-*-netbsd*) 25467 conftest_s=' 25468t1: .reg %r20 25469t2: .reg %r21 25470gp: .reg %r19 25471 .section ".tdata","awT",@progbits 25472foo: .long 25 25473 .text 25474 .align 4 25475 addil LT%foo-$tls_gdidx$,gp 25476 ldo RT%foo-$tls_gdidx$(%r1),%arg0 25477 b __tls_get_addr 25478 nop 25479 addil LT%foo-$tls_ldidx$,gp 25480 b __tls_get_addr 25481 ldo RT%foo-$tls_ldidx$(%r1),%arg0 25482 addil LR%foo-$tls_dtpoff$,%ret0 25483 ldo RR%foo-$tls_dtpoff$(%r1),%t1 25484 mfctl %cr27,%t1 25485 addil LT%foo-$tls_ieoff$,gp 25486 ldw RT%foo-$tls_ieoff$(%r1),%t2 25487 add %t1,%t2,%t3 25488 mfctl %cr27,%t1 25489 addil LR%foo-$tls_leoff$,%t1 25490 ldo RR%foo-$tls_leoff$(%r1),%t2' 25491 tls_as_opt=--fatal-warnings 25492 ;; 25493 arm*-*-*) 25494 conftest_s=' 25495 .section ".tdata","awT",%progbits 25496foo: .long 25 25497 .text 25498.word foo(gottpoff) 25499.word foo(tpoff) 25500.word foo(tlsgd) 25501.word foo(tlsldm) 25502.word foo(tlsldo)' 25503 ;; 25504 i[34567]86-*-* | x86_64-*-*) 25505 case "$target" in 25506 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*) 25507 on_solaris=yes 25508 ;; 25509 *) 25510 on_solaris=no 25511 ;; 25512 esac 25513 if test x$on_solaris = xyes && test x$gas_flag = xno; then 25514 conftest_s=' 25515 .section .tdata,"awt",@progbits' 25516 tls_section_flag=t 25517 25518$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h 25519 25520 else 25521 conftest_s=' 25522 .section ".tdata","awT",@progbits' 25523 tls_section_flag=T 25524 tls_as_opt="--fatal-warnings" 25525 fi 25526 case "$target" in 25527 i[34567]86-*-*) 25528 if test x$on_solaris = xyes; then 25529 case $gas_flag in 25530 yes) tls_as_opt="$tls_as_opt --32" ;; 25531 esac 25532 fi 25533 conftest_s="$conftest_s 25534foo: .long 25 25535 .text 25536 movl %gs:0, %eax 25537 leal foo@tlsgd(,%ebx,1), %eax 25538 leal foo@tlsldm(%ebx), %eax 25539 leal foo@dtpoff(%eax), %edx 25540 movl foo@gottpoff(%ebx), %eax 25541 subl foo@gottpoff(%ebx), %eax 25542 addl foo@gotntpoff(%ebx), %eax 25543 movl foo@indntpoff, %eax 25544 movl \$foo@tpoff, %eax 25545 subl \$foo@tpoff, %eax 25546 leal foo@ntpoff(%ecx), %eax" 25547 ;; 25548 x86_64-*-*) 25549 if test x$on_solaris = xyes; then 25550 case $gas_flag in 25551 yes) tls_as_opt="$tls_as_opt --64" ;; 25552 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;; 25553 esac 25554 fi 25555 conftest_s="$conftest_s 25556foo: .long 25 25557 .text 25558 movq %fs:0, %rax 25559 leaq foo@tlsgd(%rip), %rdi 25560 leaq foo@tlsld(%rip), %rdi 25561 leaq foo@dtpoff(%rax), %rdx 25562 movq foo@gottpoff(%rip), %rax 25563 movq \$foo@tpoff, %rax" 25564 ;; 25565 esac 25566 ;; 25567 ia64-*-*) 25568 conftest_s=' 25569 .section ".tdata","awT",@progbits 25570foo: data8 25 25571 .text 25572 addl r16 = @ltoff(@dtpmod(foo#)), gp 25573 addl r17 = @ltoff(@dtprel(foo#)), gp 25574 addl r18 = @ltoff(@tprel(foo#)), gp 25575 addl r19 = @dtprel(foo#), gp 25576 adds r21 = @dtprel(foo#), r13 25577 movl r23 = @dtprel(foo#) 25578 addl r20 = @tprel(foo#), gp 25579 adds r22 = @tprel(foo#), r13 25580 movl r24 = @tprel(foo#)' 25581 tls_as_opt=--fatal-warnings 25582 ;; 25583 loongarch*-*-*) 25584 conftest_s=' 25585 .section .tdata,"awT",@progbits 25586x: .word 2 25587 .text 25588 la.tls.gd $a0,x 25589 bl __tls_get_addr' 25590 tls_first_major=0 25591 tls_first_minor=0 25592 tls_as_opt='--fatal-warnings' 25593 ;; 25594 microblaze*-*-*) 25595 conftest_s=' 25596 .section .tdata,"awT",@progbits 25597x: 25598 .word 2 25599 .text 25600 addik r5,r20,x@TLSGD 25601 addik r5,r20,x@TLSLDM' 25602 tls_as_opt='--fatal-warnings' 25603 ;; 25604 mips*-*-*) 25605 conftest_s=' 25606 .section .tdata,"awT",@progbits 25607x: 25608 .word 2 25609 .text 25610 addiu $4, $28, %tlsgd(x) 25611 addiu $4, $28, %tlsldm(x) 25612 lui $4, %dtprel_hi(x) 25613 addiu $4, $4, %dtprel_lo(x) 25614 lw $4, %gottprel(x)($28) 25615 lui $4, %tprel_hi(x) 25616 addiu $4, $4, %tprel_lo(x)' 25617 tls_as_opt='-32 --fatal-warnings' 25618 ;; 25619 m68k-*-*|m5407-*-*) 25620 conftest_s=' 25621 .section .tdata,"awT",@progbits 25622x: 25623 .word 2 25624 .text 25625foo: 25626 move.l x@TLSGD(%a5),%a0 25627 move.l x@TLSLDM(%a5),%a0 25628 move.l x@TLSLDO(%a5),%a0 25629 move.l x@TLSIE(%a5),%a0 25630 move.l x@TLSLE(%a5),%a0' 25631 tls_as_opt='--fatal-warnings' 25632 ;; 25633 nios2-*-*) 25634 conftest_s=' 25635 .section ".tdata","awT",@progbits' 25636 tls_as_opt="--fatal-warnings" 25637 ;; 25638 aarch64*-*-*) 25639 conftest_s=' 25640 .section ".tdata","awT",%progbits 25641foo: .long 25 25642 .text 25643 adrp x0, :tlsgd:x 25644 add x0, x0, #:tlsgd_lo12:x 25645 bl __tls_get_addr 25646 nop' 25647 tls_as_opt='--fatal-warnings' 25648 ;; 25649 or1k*-*-*) 25650 conftest_s=' 25651 .section ".tdata","awT",@progbits 25652foo: .long 25 25653 .text 25654 l.movhi r3, tpoffha(foo) 25655 l.add r3, r3, r10 25656 l.lwz r4, tpofflo(foo)(r3)' 25657 tls_as_opt=--fatal-warnings 25658 ;; 25659 powerpc-ibm-aix*) 25660 conftest_s=' 25661 .extern __get_tpointer 25662 .toc 25663LC..1: 25664 .tc a[TC],a[TL]@le 25665 .csect .text[PR] 25666.tlstest: 25667 lwz 9,LC..1(2) 25668 bla __get_tpointer 25669 lwzx 3,9,3 25670 .globl a 25671 .csect a[TL],4 25672a: 25673 .space 4' 25674 ;; 25675 powerpc64*-*-*) 25676 conftest_s=' 25677 .section ".tdata","awT",@progbits 25678 .align 3 25679ld0: .space 8 25680ld1: .space 8 25681x1: .space 8 25682x2: .space 8 25683x3: .space 8 25684 .text 25685 addi 3,2,ld0@got@tlsgd 25686 bl .__tls_get_addr 25687 nop 25688 addi 3,2,ld1@toc 25689 bl .__tls_get_addr 25690 nop 25691 addi 3,2,x1@got@tlsld 25692 bl .__tls_get_addr 25693 nop 25694 addi 9,3,x1@dtprel 25695 bl .__tls_get_addr 25696 nop 25697 addis 9,3,x2@dtprel@ha 25698 addi 9,9,x2@dtprel@l 25699 bl .__tls_get_addr 25700 nop 25701 ld 9,x3@got@dtprel(2) 25702 add 9,9,3 25703 bl .__tls_get_addr 25704 nop' 25705 tls_as_opt="-a64 --fatal-warnings" 25706 ;; 25707 powerpc*-*-*) 25708 conftest_s=' 25709 .section ".tdata","awT",@progbits 25710 .align 2 25711ld0: .space 4 25712ld1: .space 4 25713x1: .space 4 25714x2: .space 4 25715x3: .space 4 25716 .text 25717 addi 3,31,ld0@got@tlsgd 25718 bl __tls_get_addr 25719 addi 3,31,x1@got@tlsld 25720 bl __tls_get_addr 25721 addi 9,3,x1@dtprel 25722 addis 9,3,x2@dtprel@ha 25723 addi 9,9,x2@dtprel@l 25724 lwz 9,x3@got@tprel(31) 25725 add 9,9,x@tls 25726 addi 9,2,x1@tprel 25727 addis 9,2,x2@tprel@ha 25728 addi 9,9,x2@tprel@l' 25729 tls_as_opt="-a32 --fatal-warnings" 25730 ;; 25731 riscv*-*-*) 25732 conftest_s=' 25733 .section .tdata,"awT",@progbits 25734x: .word 2 25735 .text 25736 la.tls.gd a0,x 25737 call __tls_get_addr' 25738 tls_as_opt='--fatal-warnings' 25739 ;; 25740 s390-*-*) 25741 conftest_s=' 25742 .section ".tdata","awT",@progbits 25743foo: .long 25 25744 .text 25745 .long foo@TLSGD 25746 .long foo@TLSLDM 25747 .long foo@DTPOFF 25748 .long foo@NTPOFF 25749 .long foo@GOTNTPOFF 25750 .long foo@INDNTPOFF 25751 l %r1,foo@GOTNTPOFF(%r12) 25752 l %r1,0(%r1):tls_load:foo 25753 bas %r14,0(%r1,%r13):tls_gdcall:foo 25754 bas %r14,0(%r1,%r13):tls_ldcall:foo' 25755 tls_as_opt="-m31 --fatal-warnings" 25756 ;; 25757 s390x-*-*) 25758 conftest_s=' 25759 .section ".tdata","awT",@progbits 25760foo: .long 25 25761 .text 25762 .quad foo@TLSGD 25763 .quad foo@TLSLDM 25764 .quad foo@DTPOFF 25765 .quad foo@NTPOFF 25766 .quad foo@GOTNTPOFF 25767 lg %r1,foo@GOTNTPOFF(%r12) 25768 larl %r1,foo@INDNTPOFF 25769 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo 25770 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo' 25771 tls_as_opt="-m64 -Aesame --fatal-warnings" 25772 ;; 25773 sh-*-* | sh[34]-*-* | sh*l*-*-*) 25774 conftest_s=' 25775 .section ".tdata","awT",@progbits 25776foo: .long 25 25777 .text 25778 .long foo@TLSGD 25779 .long foo@TLSLDM 25780 .long foo@DTPOFF 25781 .long foo@GOTTPOFF 25782 .long foo@TPOFF' 25783 tls_as_opt=--fatal-warnings 25784 ;; 25785 sparc*-*-*) 25786 case "$target" in 25787 sparc*-sun-solaris2.*) 25788 on_solaris=yes 25789 ;; 25790 *) 25791 on_solaris=no 25792 ;; 25793 esac 25794 if test x$on_solaris = xyes && test x$gas_flag = xno; then 25795 conftest_s=' 25796 .section ".tdata",#alloc,#write,#tls' 25797 else 25798 conftest_s=' 25799 .section ".tdata","awT",@progbits' 25800 tls_as_opt="-32 --fatal-warnings" 25801 fi 25802 conftest_s="$conftest_s 25803foo: .long 25 25804 .text 25805 sethi %tgd_hi22(foo), %o0 25806 add %o0, %tgd_lo10(foo), %o1 25807 add %l7, %o1, %o0, %tgd_add(foo) 25808 call __tls_get_addr, %tgd_call(foo) 25809 sethi %tldm_hi22(foo), %l1 25810 add %l1, %tldm_lo10(foo), %l2 25811 add %l7, %l2, %o0, %tldm_add(foo) 25812 call __tls_get_addr, %tldm_call(foo) 25813 sethi %tldo_hix22(foo), %l3 25814 xor %l3, %tldo_lox10(foo), %l4 25815 add %o0, %l4, %l5, %tldo_add(foo) 25816 sethi %tie_hi22(foo), %o3 25817 add %o3, %tie_lo10(foo), %o3 25818 ld [%l7 + %o3], %o2, %tie_ld(foo) 25819 add %g7, %o2, %o4, %tie_add(foo) 25820 sethi %tle_hix22(foo), %l1 25821 xor %l1, %tle_lox10(foo), %o5 25822 ld [%g7 + %o5], %o1" 25823 ;; 25824 tilepro*-*-*) 25825 conftest_s=' 25826 .section ".tdata","awT",@progbits 25827foo: .long 25 25828 .text 25829 addli r0, zero, tls_gd(foo) 25830 auli r0, zero, tls_gd_ha16(foo) 25831 addli r0, r0, tls_gd_lo16(foo) 25832 jal __tls_get_addr 25833 addli r0, zero, tls_ie(foo) 25834 auli r0, r0, tls_ie_ha16(foo) 25835 addli r0, r0, tls_ie_lo16(foo)' 25836 tls_as_opt="--fatal-warnings" 25837 ;; 25838 tilegx*-*-*) 25839 conftest_s=' 25840 .section ".tdata","awT",@progbits 25841foo: .long 25 25842 .text 25843 shl16insli r0, zero, hw0_last_tls_gd(foo) 25844 shl16insli r0, zero, hw1_last_tls_gd(foo) 25845 shl16insli r0, r0, hw0_tls_gd(foo) 25846 jal __tls_get_addr 25847 shl16insli r0, zero, hw1_last_tls_ie(foo) 25848 shl16insli r0, r0, hw0_tls_ie(foo)' 25849 tls_as_opt="--fatal-warnings" 25850 ;; 25851 xtensa*-*-*) 25852 conftest_s=' 25853 .section ".tdata","awT",@progbits 25854foo: .long 25 25855 .text 25856 movi a8, foo@TLSFUNC 25857 movi a10, foo@TLSARG 25858 callx8.tls a8, foo@TLSCALL' 25859 ;; 25860esac 25861set_have_as_tls=no 25862if test "x$enable_tls" = xno ; then 25863 : # TLS explicitly disabled. 25864elif test "x$enable_tls" = xyes ; then 25865 set_have_as_tls=yes # TLS explicitly enabled. 25866elif test -z "$conftest_s"; then 25867 : # If we don't have a check, assume no support. 25868else 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5 25870$as_echo_n "checking assembler for thread-local storage support... " >&6; } 25871if ${gcc_cv_as_tls+:} false; then : 25872 $as_echo_n "(cached) " >&6 25873else 25874 gcc_cv_as_tls=no 25875 if test x$gcc_cv_as != x; then 25876 $as_echo "$conftest_s" > conftest.s 25877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5' 25878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25879 (eval $ac_try) 2>&5 25880 ac_status=$? 25881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25882 test $ac_status = 0; }; } 25883 then 25884 gcc_cv_as_tls=yes 25885 else 25886 echo "configure: failed program was" >&5 25887 cat conftest.s >&5 25888 fi 25889 rm -f conftest.o conftest.s 25890 fi 25891fi 25892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5 25893$as_echo "$gcc_cv_as_tls" >&6; } 25894if test $gcc_cv_as_tls = yes; then 25895 set_have_as_tls=yes 25896fi 25897 25898fi 25899if test $set_have_as_tls = yes ; then 25900 25901$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h 25902 25903fi 25904 25905# Target-specific assembler checks. 25906 25907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5 25908$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; } 25909gcc_cv_ld_static_dynamic=no 25910gcc_cv_ld_static_option='-Bstatic' 25911gcc_cv_ld_dynamic_option='-Bdynamic' 25912if test $in_tree_ld = yes ; then 25913 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 25914 gcc_cv_ld_static_dynamic=yes 25915 fi 25916elif test x$gcc_cv_ld != x; then 25917 # Check if linker supports -Bstatic/-Bdynamic option 25918 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \ 25919 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then 25920 gcc_cv_ld_static_dynamic=yes 25921 else 25922 case "$target" in 25923 # AIX ld uses -b flags 25924 *-*-aix4.[23]* | *-*-aix[5-9]*) 25925 gcc_cv_ld_static_dynamic=yes 25926 gcc_cv_ld_static_option="-bstatic" 25927 gcc_cv_ld_dynamic_option="-bdynamic" 25928 ;; 25929 # HP-UX ld uses -a flags to select between shared and archive. 25930 *-*-hpux*) 25931 if test x"$gnu_ld" = xno; then 25932 gcc_cv_ld_static_dynamic=yes 25933 gcc_cv_ld_static_option="-aarchive_shared" 25934 gcc_cv_ld_dynamic_option="-adefault" 25935 fi 25936 ;; 25937 # Solaris 2 ld always supports -Bstatic/-Bdynamic. 25938 *-*-solaris2*) 25939 gcc_cv_ld_static_dynamic=yes 25940 ;; 25941 esac 25942 fi 25943fi 25944if test x"$gcc_cv_ld_static_dynamic" = xyes; then 25945 25946$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h 25947 25948 25949cat >>confdefs.h <<_ACEOF 25950#define LD_STATIC_OPTION "$gcc_cv_ld_static_option" 25951_ACEOF 25952 25953 25954cat >>confdefs.h <<_ACEOF 25955#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option" 25956_ACEOF 25957 25958fi 25959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5 25960$as_echo "$gcc_cv_ld_static_dynamic" >&6; } 25961 25962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5 25963$as_echo_n "checking linker --version-script option... " >&6; } 25964gcc_cv_ld_version_script=no 25965ld_version_script_option='' 25966if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then 25967 gcc_cv_ld_version_script=yes 25968 ld_version_script_option='--version-script' 25969elif test x$gcc_cv_ld != x; then 25970 case "$target" in 25971 # Solaris 2 ld always supports -M. It also supports a subset of 25972 # --version-script since Solaris 11.4, but requires 25973 # -z gnu-version-script-compat to activate. 25974 *-*-solaris2*) 25975 gcc_cv_ld_version_script=yes 25976 ld_version_script_option='-M' 25977 ;; 25978 esac 25979fi 25980# Don't AC_DEFINE result, only used in jit/Make-lang.in so far. 25981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5 25982$as_echo "$gcc_cv_ld_version_script" >&6; } 25983 25984 25985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5 25986$as_echo_n "checking linker soname option... " >&6; } 25987gcc_cv_ld_soname=no 25988if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then 25989 gcc_cv_ld_soname=yes 25990 ld_soname_option='-soname' 25991elif test x$gcc_cv_ld != x; then 25992 case "$target" in 25993 *-*-darwin*) 25994 gcc_cv_ld_soname=yes 25995 ld_soname_option='-install_name' 25996 ;; 25997 # Solaris 2 ld always supports -h. It also supports --soname for GNU 25998 # ld compatiblity since some Solaris 10 update. 25999 *-*-solaris2*) 26000 gcc_cv_ld_soname=yes 26001 ld_soname_option='-h' 26002 ;; 26003 esac 26004fi 26005# Don't AC_DEFINE result, only used in jit/Make-lang.in so far. 26006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5 26007$as_echo "$gcc_cv_ld_soname" >&6; } 26008 26009 26010if test x"$demangler_in_ld" = xyes; then 26011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5 26012$as_echo_n "checking linker --demangle support... " >&6; } 26013 gcc_cv_ld_demangle=no 26014 if test $in_tree_ld = yes; then 26015 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 \ 26016 gcc_cv_ld_demangle=yes 26017 fi 26018 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then 26019 # Check if the GNU linker supports --demangle option 26020 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then 26021 gcc_cv_ld_demangle=yes 26022 fi 26023 fi 26024 if test x"$gcc_cv_ld_demangle" = xyes; then 26025 26026$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h 26027 26028 fi 26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5 26030$as_echo "$gcc_cv_ld_demangle" >&6; } 26031fi 26032 26033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5 26034$as_echo_n "checking linker plugin support... " >&6; } 26035gcc_cv_lto_plugin=0 26036if test -f liblto_plugin.la; then 26037 save_ld_ver="$ld_ver" 26038 save_ld_vers_major="$ld_vers_major" 26039 save_ld_vers_minor="$ld_vers_minor" 26040 save_ld_is_gold="$ld_is_gold" 26041 26042 ld_is_gold=no 26043 26044 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then 26045 ld_ver="GNU ld" 26046 # FIXME: ld_is_gold? 26047 ld_vers_major="$gcc_cv_gld_major_version" 26048 ld_vers_minor="$gcc_cv_gld_minor_version" 26049 else 26050 # Determine plugin linker version. 26051 # FIXME: Partial duplicate from above, generalize. 26052 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q` 26053 if echo "$ld_ver" | grep GNU > /dev/null; then 26054 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then 26055 ld_is_gold=yes 26056 ld_vers=`echo $ld_ver | sed -n \ 26057 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 26058 else 26059 ld_vers=`echo $ld_ver | sed -n \ 26060 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 26061 fi 26062 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 26063 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 26064 fi 26065 fi 26066 26067 # Determine plugin support. 26068 if echo "$ld_ver" | grep GNU > /dev/null; then 26069 # Require GNU ld or gold 2.21+ for plugin support by default. 26070 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then 26071 gcc_cv_lto_plugin=2 26072 elif test "$ld_is_mold" = yes; then 26073 gcc_cv_lto_plugin=2 26074 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20. 26075 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then 26076 gcc_cv_lto_plugin=1 26077 fi 26078 fi 26079 26080 ld_ver="$save_ld_ver" 26081 ld_vers_major="$save_ld_vers_major" 26082 ld_vers_minor="$save_ld_vers_minor" 26083 ld_is_gold="$save_ld_is_gold" 26084fi 26085 26086cat >>confdefs.h <<_ACEOF 26087#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin 26088_ACEOF 26089 26090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5 26091$as_echo "$gcc_cv_lto_plugin" >&6; } 26092 26093# Target OS-specific assembler checks. 26094 26095case "$target_os" in 26096 darwin*) 26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5 26098$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; } 26099if ${gcc_cv_as_mmacosx_version_min+:} false; then : 26100 $as_echo_n "(cached) " >&6 26101else 26102 gcc_cv_as_mmacosx_version_min=no 26103 if test x$gcc_cv_as != x; then 26104 $as_echo '.text' > conftest.s 26105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5' 26106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26107 (eval $ac_try) 2>&5 26108 ac_status=$? 26109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26110 test $ac_status = 0; }; } 26111 then 26112 gcc_cv_as_mmacosx_version_min=yes 26113 else 26114 echo "configure: failed program was" >&5 26115 cat conftest.s >&5 26116 fi 26117 rm -f conftest.o conftest.s 26118 fi 26119fi 26120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5 26121$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; } 26122if test $gcc_cv_as_mmacosx_version_min = yes; then 26123 26124$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h 26125 26126fi 26127 26128 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then 26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5 26130$as_echo_n "checking assembler for .build_version... " >&6; } 26131if ${gcc_cv_as_darwin_build_version+:} false; then : 26132 $as_echo_n "(cached) " >&6 26133else 26134 gcc_cv_as_darwin_build_version=no 26135 if test x$gcc_cv_as != x; then 26136 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s 26137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5' 26138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26139 (eval $ac_try) 2>&5 26140 ac_status=$? 26141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26142 test $ac_status = 0; }; } 26143 then 26144 gcc_cv_as_darwin_build_version=yes 26145 else 26146 echo "configure: failed program was" >&5 26147 cat conftest.s >&5 26148 fi 26149 rm -f conftest.o conftest.s 26150 fi 26151fi 26152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5 26153$as_echo "$gcc_cv_as_darwin_build_version" >&6; } 26154if test $gcc_cv_as_darwin_build_version = yes; then 26155 26156$as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h 26157 26158fi 26159 26160 fi 26161 ;; 26162esac 26163 26164# Target CPU-specific assembler checks. 26165 26166case "$target" in 26167 aarch64*-*-*) 26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5 26169$as_echo_n "checking assembler for -mabi option... " >&6; } 26170if ${gcc_cv_as_aarch64_mabi+:} false; then : 26171 $as_echo_n "(cached) " >&6 26172else 26173 gcc_cv_as_aarch64_mabi=no 26174 if test x$gcc_cv_as != x; then 26175 $as_echo '.text' > conftest.s 26176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -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_mabi=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_mabi" >&5 26192$as_echo "$gcc_cv_as_aarch64_mabi" >&6; } 26193 26194 26195 if test x$gcc_cv_as_aarch64_mabi = xyes; then 26196 26197$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h 26198 26199 else 26200 if test x$with_abi = xilp32; then 26201 as_fn_error $? "Assembler does not support -mabi=ilp32.\ 26202 Upgrade the Assembler." "$LINENO" 5 26203 fi 26204 if test x"$with_multilib_list" = xdefault; then 26205 TM_MULTILIB_CONFIG=lp64 26206 else 26207 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'` 26208 for aarch64_multilib in ${aarch64_multilibs}; do 26209 case ${aarch64_multilib} in 26210 ilp32) 26211 as_fn_error $? "Assembler does not support -mabi=ilp32.\ 26212 Upgrade the Assembler." "$LINENO" 5 26213 ;; 26214 *) 26215 ;; 26216 esac 26217 done 26218 fi 26219 fi 26220 # Check if we have binutils support for relocations types needed by -fpic 26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5 26222$as_echo_n "checking assembler for -fpic relocs... " >&6; } 26223if ${gcc_cv_as_aarch64_picreloc+:} false; then : 26224 $as_echo_n "(cached) " >&6 26225else 26226 gcc_cv_as_aarch64_picreloc=no 26227 if test x$gcc_cv_as != x; then 26228 $as_echo ' 26229 .text 26230 ldr x0, [x2, #:gotpage_lo15:globalsym] 26231 ' > conftest.s 26232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26234 (eval $ac_try) 2>&5 26235 ac_status=$? 26236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26237 test $ac_status = 0; }; } 26238 then 26239 gcc_cv_as_aarch64_picreloc=yes 26240 else 26241 echo "configure: failed program was" >&5 26242 cat conftest.s >&5 26243 fi 26244 rm -f conftest.o conftest.s 26245 fi 26246fi 26247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5 26248$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; } 26249if test $gcc_cv_as_aarch64_picreloc = yes; then 26250 26251$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h 26252 26253fi 26254 26255 # Enable Branch Target Identification Mechanism and Return Address 26256 # Signing by default. 26257 # Check whether --enable-standard-branch-protection was given. 26258if test "${enable_standard_branch_protection+set}" = set; then : 26259 enableval=$enable_standard_branch_protection; 26260 case $enableval in 26261 yes) 26262 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1" 26263 ;; 26264 no) 26265 ;; 26266 *) 26267 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\ 26268 Valid choices are 'yes' and 'no'." "$LINENO" 5 26269 ;; 26270 esac 26271 26272fi 26273 26274 # Enable default workaround for AArch64 Cortex-A53 erratum 835769. 26275 # Check whether --enable-fix-cortex-a53-835769 was given. 26276if test "${enable_fix_cortex_a53_835769+set}" = set; then : 26277 enableval=$enable_fix_cortex_a53_835769; 26278 case $enableval in 26279 yes) 26280 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1" 26281 ;; 26282 no) 26283 ;; 26284 *) 26285 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\ 26286 Valid choices are 'yes' and 'no'." "$LINENO" 5 26287 ;; 26288 26289 esac 26290 26291fi 26292 26293 # Enable default workaround for AArch64 Cortex-A53 erratum 843419. 26294 # Check whether --enable-fix-cortex-a53-843419 was given. 26295if test "${enable_fix_cortex_a53_843419+set}" = set; then : 26296 enableval=$enable_fix_cortex_a53_843419; 26297 case $enableval in 26298 yes) 26299 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1" 26300 ;; 26301 no) 26302 ;; 26303 *) 26304 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\ 26305 Valid choices are 'yes' and 'no'." "$LINENO" 5 26306 ;; 26307 26308 esac 26309 26310fi 26311 26312 ;; 26313 26314 # All TARGET_ABI_OSF targets. 26315 alpha*-*-linux* | alpha*-*-*bsd*) 26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5 26317$as_echo_n "checking assembler for explicit relocation support... " >&6; } 26318if ${gcc_cv_as_alpha_explicit_relocs+:} false; then : 26319 $as_echo_n "(cached) " >&6 26320else 26321 gcc_cv_as_alpha_explicit_relocs=no 26322 if test x$gcc_cv_as != x; then 26323 $as_echo ' .set nomacro 26324 .text 26325 extbl $3, $2, $3 !lituse_bytoff!1 26326 ldq $2, a($29) !literal!1 26327 ldq $4, b($29) !literal!2 26328 ldq_u $3, 0($2) !lituse_base!1 26329 ldq $27, f($29) !literal!5 26330 jsr $26, ($27), f !lituse_jsr!5 26331 ldah $29, 0($26) !gpdisp!3 26332 lda $0, c($29) !gprel 26333 ldah $1, d($29) !gprelhigh 26334 lda $1, d($1) !gprellow 26335 lda $29, 0($29) !gpdisp!3' > conftest.s 26336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26338 (eval $ac_try) 2>&5 26339 ac_status=$? 26340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26341 test $ac_status = 0; }; } 26342 then 26343 gcc_cv_as_alpha_explicit_relocs=yes 26344 else 26345 echo "configure: failed program was" >&5 26346 cat conftest.s >&5 26347 fi 26348 rm -f conftest.o conftest.s 26349 fi 26350fi 26351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5 26352$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; } 26353if test $gcc_cv_as_alpha_explicit_relocs = yes; then 26354 26355$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h 26356 26357fi 26358 26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5 26360$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; } 26361if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then : 26362 $as_echo_n "(cached) " >&6 26363else 26364 gcc_cv_as_alpha_jsrdirect_relocs=no 26365 if test x$gcc_cv_as != x; then 26366 $as_echo ' .set nomacro 26367 .text 26368 ldq $27, a($29) !literal!1 26369 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s 26370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26372 (eval $ac_try) 2>&5 26373 ac_status=$? 26374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26375 test $ac_status = 0; }; } 26376 then 26377 gcc_cv_as_alpha_jsrdirect_relocs=yes 26378 else 26379 echo "configure: failed program was" >&5 26380 cat conftest.s >&5 26381 fi 26382 rm -f conftest.o conftest.s 26383 fi 26384fi 26385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5 26386$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; } 26387if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then 26388 26389$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h 26390 26391fi 26392 26393 ;; 26394 26395 avr-*-*) 26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5 26397$as_echo_n "checking assembler for --mlink-relax option... " >&6; } 26398if ${gcc_cv_as_avr_mlink_relax+:} false; then : 26399 $as_echo_n "(cached) " >&6 26400else 26401 gcc_cv_as_avr_mlink_relax=no 26402 if test x$gcc_cv_as != x; then 26403 $as_echo '.text' > conftest.s 26404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5' 26405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26406 (eval $ac_try) 2>&5 26407 ac_status=$? 26408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26409 test $ac_status = 0; }; } 26410 then 26411 gcc_cv_as_avr_mlink_relax=yes 26412 else 26413 echo "configure: failed program was" >&5 26414 cat conftest.s >&5 26415 fi 26416 rm -f conftest.o conftest.s 26417 fi 26418fi 26419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5 26420$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; } 26421if test $gcc_cv_as_avr_mlink_relax = yes; then 26422 26423$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h 26424 26425fi 26426 26427 26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5 26429$as_echo_n "checking assembler for -mrmw option... " >&6; } 26430if ${gcc_cv_as_avr_mrmw+:} false; then : 26431 $as_echo_n "(cached) " >&6 26432else 26433 gcc_cv_as_avr_mrmw=no 26434 if test x$gcc_cv_as != x; then 26435 $as_echo '.text' > conftest.s 26436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5' 26437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26438 (eval $ac_try) 2>&5 26439 ac_status=$? 26440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26441 test $ac_status = 0; }; } 26442 then 26443 gcc_cv_as_avr_mrmw=yes 26444 else 26445 echo "configure: failed program was" >&5 26446 cat conftest.s >&5 26447 fi 26448 rm -f conftest.o conftest.s 26449 fi 26450fi 26451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5 26452$as_echo "$gcc_cv_as_avr_mrmw" >&6; } 26453if test $gcc_cv_as_avr_mrmw = yes; then 26454 26455$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h 26456 26457fi 26458 26459 26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5 26461$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; } 26462if ${gcc_cv_as_avr_mgccisr+:} false; then : 26463 $as_echo_n "(cached) " >&6 26464else 26465 gcc_cv_as_avr_mgccisr=no 26466 if test x$gcc_cv_as != x; then 26467 $as_echo '.text 26468 __gcc_isr 1 26469 __gcc_isr 2 26470 __gcc_isr 0,r24 26471 ' > conftest.s 26472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5' 26473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26474 (eval $ac_try) 2>&5 26475 ac_status=$? 26476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26477 test $ac_status = 0; }; } 26478 then 26479 gcc_cv_as_avr_mgccisr=yes 26480 else 26481 echo "configure: failed program was" >&5 26482 cat conftest.s >&5 26483 fi 26484 rm -f conftest.o conftest.s 26485 fi 26486fi 26487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5 26488$as_echo "$gcc_cv_as_avr_mgccisr" >&6; } 26489if test $gcc_cv_as_avr_mgccisr = yes; then 26490 26491$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h 26492 26493fi 26494 26495 26496 # Check how default linker description file implements .rodata for 26497 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to 26498 # RAM so avr-gcc skips __do_copy_data for .rodata objects. 26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5 26500$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; } 26501 cat > conftest.s <<EOF 26502 .section .rodata,"a",@progbits 26503 .global xxvaryy 26504 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy". 26505 xxvaryy: 26506 .word 1 26507EOF 26508 rm -f conftest.nm 26509 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o' 26510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26511 (eval $ac_try) 2>&5 26512 ac_status=$? 26513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26514 test $ac_status = 0; }; } 26515 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf' 26516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26517 (eval $ac_try) 2>&5 26518 ac_status=$? 26519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26520 test $ac_status = 0; }; } 26521 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm' 26522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26523 (eval $ac_try) 2>&5 26524 ac_status=$? 26525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26526 test $ac_status = 0; }; } 26527 if test -s conftest.nm 26528 then 26529 if grep ' R xxvaryy' conftest.nm > /dev/null; then 26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26531$as_echo "yes" >&6; } 26532 26533$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h 26534 26535 else 26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5 26537$as_echo "no: avrxmega3 .rodata located in RAM" >&6; } 26538 echo "$as_me: nm output was" >&5 26539 cat conftest.nm >&5 26540 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`" 26541 { $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 26542$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;} 26543 fi 26544 else 26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 26546$as_echo "test failed" >&6; } 26547 echo "$as_me: failed program was" >&5 26548 cat conftest.s >&5 26549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5 26550$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;} 26551 fi 26552 rm -f conftest.s conftest.o conftest.elf conftest.nm 26553 ;; 26554 26555 cris-*-*) 26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5 26557$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; } 26558if ${gcc_cv_as_cris_no_mul_bug+:} false; then : 26559 $as_echo_n "(cached) " >&6 26560else 26561 gcc_cv_as_cris_no_mul_bug=no 26562 if test x$gcc_cv_as != x; then 26563 $as_echo '.text' > conftest.s 26564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5' 26565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26566 (eval $ac_try) 2>&5 26567 ac_status=$? 26568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26569 test $ac_status = 0; }; } 26570 then 26571 gcc_cv_as_cris_no_mul_bug=yes 26572 else 26573 echo "configure: failed program was" >&5 26574 cat conftest.s >&5 26575 fi 26576 rm -f conftest.o conftest.s 26577 fi 26578fi 26579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5 26580$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; } 26581if test $gcc_cv_as_cris_no_mul_bug = yes; then 26582 26583$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h 26584 26585fi 26586 26587 ;; 26588 26589 sparc*-*-*) 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5 26591$as_echo_n "checking assembler for -relax option... " >&6; } 26592if ${gcc_cv_as_sparc_relax+:} false; then : 26593 $as_echo_n "(cached) " >&6 26594else 26595 gcc_cv_as_sparc_relax=no 26596 if test x$gcc_cv_as != x; then 26597 $as_echo '.text' > conftest.s 26598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5' 26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26600 (eval $ac_try) 2>&5 26601 ac_status=$? 26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26603 test $ac_status = 0; }; } 26604 then 26605 gcc_cv_as_sparc_relax=yes 26606 else 26607 echo "configure: failed program was" >&5 26608 cat conftest.s >&5 26609 fi 26610 rm -f conftest.o conftest.s 26611 fi 26612fi 26613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5 26614$as_echo "$gcc_cv_as_sparc_relax" >&6; } 26615if test $gcc_cv_as_sparc_relax = yes; then 26616 26617$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h 26618 26619fi 26620 26621 26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5 26623$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; } 26624if ${gcc_cv_as_sparc_gotdata_op+:} false; then : 26625 $as_echo_n "(cached) " >&6 26626else 26627 gcc_cv_as_sparc_gotdata_op=no 26628 if test x$gcc_cv_as != x; then 26629 $as_echo '.text 26630.align 4 26631foo: 26632 nop 26633bar: 26634 sethi %gdop_hix22(foo), %g1 26635 xor %g1, %gdop_lox10(foo), %g1 26636 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s 26637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26639 (eval $ac_try) 2>&5 26640 ac_status=$? 26641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26642 test $ac_status = 0; }; } 26643 then 26644 if test x$gcc_cv_ld != x \ 26645 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 26646 if test x$gcc_cv_objdump != x; then 26647 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \ 26648 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then 26649 gcc_cv_as_sparc_gotdata_op=no 26650 else 26651 gcc_cv_as_sparc_gotdata_op=yes 26652 fi 26653 fi 26654 fi 26655 rm -f conftest 26656 else 26657 echo "configure: failed program was" >&5 26658 cat conftest.s >&5 26659 fi 26660 rm -f conftest.o conftest.s 26661 fi 26662fi 26663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5 26664$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; } 26665if test $gcc_cv_as_sparc_gotdata_op = yes; then 26666 26667$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h 26668 26669fi 26670 26671 26672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5 26673$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; } 26674if ${gcc_cv_as_sparc_ua_pcrel+:} false; then : 26675 $as_echo_n "(cached) " >&6 26676else 26677 gcc_cv_as_sparc_ua_pcrel=no 26678 if test x$gcc_cv_as != x; then 26679 $as_echo '.text 26680foo: 26681 nop 26682.data 26683.align 4 26684.byte 0 26685.uaword %r_disp32(foo)' > conftest.s 26686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26688 (eval $ac_try) 2>&5 26689 ac_status=$? 26690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26691 test $ac_status = 0; }; } 26692 then 26693 if test x$gcc_cv_ld != x \ 26694 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 26695 gcc_cv_as_sparc_ua_pcrel=yes 26696 fi 26697 rm -f conftest 26698 else 26699 echo "configure: failed program was" >&5 26700 cat conftest.s >&5 26701 fi 26702 rm -f conftest.o conftest.s 26703 fi 26704fi 26705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5 26706$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; } 26707if test $gcc_cv_as_sparc_ua_pcrel = yes; then 26708 26709$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h 26710 26711 26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 26713$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; } 26714if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then : 26715 $as_echo_n "(cached) " >&6 26716else 26717 gcc_cv_as_sparc_ua_pcrel_hidden=no 26718 if test x$gcc_cv_as != x; then 26719 $as_echo '.data 26720.align 4 26721.byte 0x31 26722.uaword %r_disp32(foo) 26723.byte 0x32, 0x33, 0x34 26724.global foo 26725.hidden foo 26726foo: 26727.skip 4' > conftest.s 26728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26730 (eval $ac_try) 2>&5 26731 ac_status=$? 26732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26733 test $ac_status = 0; }; } 26734 then 26735 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 26736 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \ 26737 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \ 26738 | grep ' 31000000 07323334' > /dev/null 2>&1; then 26739 if $gcc_cv_objdump -R conftest 2> /dev/null \ 26740 | grep 'DISP32' > /dev/null 2>&1; then 26741 : 26742 else 26743 gcc_cv_as_sparc_ua_pcrel_hidden=yes 26744 fi 26745 fi 26746 rm -f conftest 26747 else 26748 echo "configure: failed program was" >&5 26749 cat conftest.s >&5 26750 fi 26751 rm -f conftest.o conftest.s 26752 fi 26753fi 26754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5 26755$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; } 26756if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then 26757 26758$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h 26759 26760fi 26761 26762 26763fi 26764 # unaligned pcrel relocs 26765 26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5 26767$as_echo_n "checking assembler for offsetable %lo()... " >&6; } 26768if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then : 26769 $as_echo_n "(cached) " >&6 26770else 26771 gcc_cv_as_sparc_offsetable_lo10=no 26772 if test x$gcc_cv_as != x; then 26773 $as_echo '.text 26774 or %g1, %lo(ab) + 12, %g1 26775 or %g1, %lo(ab + 12), %g1' > conftest.s 26776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5' 26777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26778 (eval $ac_try) 2>&5 26779 ac_status=$? 26780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26781 test $ac_status = 0; }; } 26782 then 26783 if test x$gcc_cv_objdump != x \ 26784 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \ 26785 | grep ' 82106000 82106000' > /dev/null 2>&1; then 26786 gcc_cv_as_sparc_offsetable_lo10=yes 26787 fi 26788 else 26789 echo "configure: failed program was" >&5 26790 cat conftest.s >&5 26791 fi 26792 rm -f conftest.o conftest.s 26793 fi 26794fi 26795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5 26796$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; } 26797if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then 26798 26799$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h 26800 26801fi 26802 26803 26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5 26805$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; } 26806if ${gcc_cv_as_sparc_fmaf+:} false; then : 26807 $as_echo_n "(cached) " >&6 26808else 26809 gcc_cv_as_sparc_fmaf=no 26810 if test x$gcc_cv_as != x; then 26811 $as_echo '.text 26812 .register %g2, #scratch 26813 .register %g3, #scratch 26814 .align 4 26815 fmaddd %f0, %f2, %f4, %f6 26816 addxccc %g1, %g2, %g3 26817 fsrl32 %f2, %f4, %f8 26818 fnaddd %f10, %f12, %f14' > conftest.s 26819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5' 26820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26821 (eval $ac_try) 2>&5 26822 ac_status=$? 26823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26824 test $ac_status = 0; }; } 26825 then 26826 gcc_cv_as_sparc_fmaf=yes 26827 else 26828 echo "configure: failed program was" >&5 26829 cat conftest.s >&5 26830 fi 26831 rm -f conftest.o conftest.s 26832 fi 26833fi 26834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5 26835$as_echo "$gcc_cv_as_sparc_fmaf" >&6; } 26836if test $gcc_cv_as_sparc_fmaf = yes; then 26837 26838$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h 26839 26840fi 26841 26842 26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5 26844$as_echo_n "checking assembler for SPARC4 instructions... " >&6; } 26845if ${gcc_cv_as_sparc_sparc4+:} false; then : 26846 $as_echo_n "(cached) " >&6 26847else 26848 gcc_cv_as_sparc_sparc4=no 26849 if test x$gcc_cv_as != x; then 26850 $as_echo '.text 26851 .register %g2, #scratch 26852 .register %g3, #scratch 26853 .align 4 26854 cxbe %g2, %g3, 1f 268551: cwbneg %g2, %g3, 1f 268561: sha1 26857 md5 26858 aes_kexpand0 %f4, %f6, %f8 26859 des_round %f38, %f40, %f42, %f44 26860 camellia_f %f54, %f56, %f58, %f60 26861 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s 26862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5' 26863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26864 (eval $ac_try) 2>&5 26865 ac_status=$? 26866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26867 test $ac_status = 0; }; } 26868 then 26869 gcc_cv_as_sparc_sparc4=yes 26870 else 26871 echo "configure: failed program was" >&5 26872 cat conftest.s >&5 26873 fi 26874 rm -f conftest.o conftest.s 26875 fi 26876fi 26877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5 26878$as_echo "$gcc_cv_as_sparc_sparc4" >&6; } 26879if test $gcc_cv_as_sparc_sparc4 = yes; then 26880 26881$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h 26882 26883fi 26884 26885 26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5 26887$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; } 26888if ${gcc_cv_as_sparc_sparc5+:} false; then : 26889 $as_echo_n "(cached) " >&6 26890else 26891 gcc_cv_as_sparc_sparc5=no 26892 if test x$gcc_cv_as != x; then 26893 $as_echo '.text 26894 .register %g2, #scratch 26895 .register %g3, #scratch 26896 .align 4 26897 subxc %g1, %g2, %g3 26898 fpadd8 %f0, %f2, %f4' > conftest.s 26899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5' 26900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26901 (eval $ac_try) 2>&5 26902 ac_status=$? 26903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26904 test $ac_status = 0; }; } 26905 then 26906 gcc_cv_as_sparc_sparc5=yes 26907 else 26908 echo "configure: failed program was" >&5 26909 cat conftest.s >&5 26910 fi 26911 rm -f conftest.o conftest.s 26912 fi 26913fi 26914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5 26915$as_echo "$gcc_cv_as_sparc_sparc5" >&6; } 26916if test $gcc_cv_as_sparc_sparc5 = yes; then 26917 26918$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h 26919 26920fi 26921 26922 26923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5 26924$as_echo_n "checking assembler for SPARC6 instructions... " >&6; } 26925if ${gcc_cv_as_sparc_sparc6+:} false; then : 26926 $as_echo_n "(cached) " >&6 26927else 26928 gcc_cv_as_sparc_sparc6=no 26929 if test x$gcc_cv_as != x; then 26930 $as_echo '.text 26931 .register %g2, #scratch 26932 .register %g3, #scratch 26933 .align 4 26934 rd %entropy, %g1 26935 fpsll64x %f0, %f2, %f4' > conftest.s 26936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5' 26937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26938 (eval $ac_try) 2>&5 26939 ac_status=$? 26940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26941 test $ac_status = 0; }; } 26942 then 26943 gcc_cv_as_sparc_sparc6=yes 26944 else 26945 echo "configure: failed program was" >&5 26946 cat conftest.s >&5 26947 fi 26948 rm -f conftest.o conftest.s 26949 fi 26950fi 26951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5 26952$as_echo "$gcc_cv_as_sparc_sparc6" >&6; } 26953if test $gcc_cv_as_sparc_sparc6 = yes; then 26954 26955$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h 26956 26957fi 26958 26959 26960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5 26961$as_echo_n "checking assembler for LEON instructions... " >&6; } 26962if ${gcc_cv_as_sparc_leon+:} false; then : 26963 $as_echo_n "(cached) " >&6 26964else 26965 gcc_cv_as_sparc_leon=no 26966 if test x$gcc_cv_as != x; then 26967 $as_echo '.text 26968 .register %g2, #scratch 26969 .register %g3, #scratch 26970 .align 4 26971 smac %g2, %g3, %g1 26972 umac %g2, %g3, %g1 26973 casa [%g2] 0xb, %g3, %g1' > conftest.s 26974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5' 26975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26976 (eval $ac_try) 2>&5 26977 ac_status=$? 26978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26979 test $ac_status = 0; }; } 26980 then 26981 gcc_cv_as_sparc_leon=yes 26982 else 26983 echo "configure: failed program was" >&5 26984 cat conftest.s >&5 26985 fi 26986 rm -f conftest.o conftest.s 26987 fi 26988fi 26989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5 26990$as_echo "$gcc_cv_as_sparc_leon" >&6; } 26991if test $gcc_cv_as_sparc_leon = yes; then 26992 26993$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h 26994 26995fi 26996 26997 ;; 26998 26999 i[34567]86-*-* | x86_64-*-*) 27000 case $target_os in 27001 cygwin*) 27002 # Full C++ conformance when using a shared libstdc++-v3 requires some 27003 # support from the Cygwin DLL, which in more recent versions exports 27004 # wrappers to aid in interposing and redirecting operators new, delete, 27005 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we 27006 # are configuring for a version of Cygwin that exports the wrappers. 27007 if test x$host = x$target && test x$host_cpu = xi686; then 27008 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj" 27009if test "x$ac_cv_func___wrap__Znaj" = xyes; then : 27010 gcc_ac_cygwin_dll_wrappers=yes 27011else 27012 gcc_ac_cygwin_dll_wrappers=no 27013fi 27014 27015 else 27016 # Can't check presence of libc functions during cross-compile, so 27017 # we just have to assume we're building for an up-to-date target. 27018 gcc_ac_cygwin_dll_wrappers=yes 27019 fi 27020 27021cat >>confdefs.h <<_ACEOF 27022#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi` 27023_ACEOF 27024 27025 esac 27026 case $target_os in 27027 cygwin* | pe | mingw32*) 27028 # Recent binutils allows the three-operand form of ".comm" on PE. This 27029 # definition is used unconditionally to initialise the default state of 27030 # the target option variable that governs usage of the feature. 27031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5 27032$as_echo_n "checking assembler for .comm with alignment... " >&6; } 27033if ${gcc_cv_as_comm_has_align+:} false; then : 27034 $as_echo_n "(cached) " >&6 27035else 27036 gcc_cv_as_comm_has_align=no 27037 if test x$gcc_cv_as != x; then 27038 $as_echo '.comm foo,1,32' > conftest.s 27039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27041 (eval $ac_try) 2>&5 27042 ac_status=$? 27043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27044 test $ac_status = 0; }; } 27045 then 27046 gcc_cv_as_comm_has_align=yes 27047 else 27048 echo "configure: failed program was" >&5 27049 cat conftest.s >&5 27050 fi 27051 rm -f conftest.o conftest.s 27052 fi 27053fi 27054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5 27055$as_echo "$gcc_cv_as_comm_has_align" >&6; } 27056 27057 27058 27059cat >>confdefs.h <<_ACEOF 27060#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi` 27061_ACEOF 27062 27063 # Used for DWARF 2 in PE 27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5 27065$as_echo_n "checking assembler for .secrel32 relocs... " >&6; } 27066if ${gcc_cv_as_ix86_pe_secrel32+:} false; then : 27067 $as_echo_n "(cached) " >&6 27068else 27069 gcc_cv_as_ix86_pe_secrel32=no 27070 if test x$gcc_cv_as != x; then 27071 $as_echo '.text 27072foo: nop 27073.data 27074 .secrel32 foo' > conftest.s 27075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27077 (eval $ac_try) 2>&5 27078 ac_status=$? 27079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27080 test $ac_status = 0; }; } 27081 then 27082 if test x$gcc_cv_ld != x \ 27083 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then 27084 gcc_cv_as_ix86_pe_secrel32=yes 27085 fi 27086 rm -f conftest 27087 else 27088 echo "configure: failed program was" >&5 27089 cat conftest.s >&5 27090 fi 27091 rm -f conftest.o conftest.s 27092 fi 27093fi 27094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5 27095$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; } 27096if test $gcc_cv_as_ix86_pe_secrel32 = yes; then 27097 27098$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h 27099 27100fi 27101 27102 # Test if the assembler supports the extended form of the .section 27103 # directive that specifies section alignment. LTO support uses this, 27104 # but normally only after installation, so we warn but don't fail the 27105 # configure if LTO is enabled but the assembler does not support it. 27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5 27107$as_echo_n "checking assembler for .section with alignment... " >&6; } 27108if ${gcc_cv_as_section_has_align+:} false; then : 27109 $as_echo_n "(cached) " >&6 27110else 27111 gcc_cv_as_section_has_align=no 27112 if test x$gcc_cv_as != x; then 27113 $as_echo '.section lto_test,"dr0"' > conftest.s 27114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5' 27115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27116 (eval $ac_try) 2>&5 27117 ac_status=$? 27118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27119 test $ac_status = 0; }; } 27120 then 27121 gcc_cv_as_section_has_align=yes 27122 else 27123 echo "configure: failed program was" >&5 27124 cat conftest.s >&5 27125 fi 27126 rm -f conftest.o conftest.s 27127 fi 27128fi 27129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5 27130$as_echo "$gcc_cv_as_section_has_align" >&6; } 27131 27132 27133 if test x$gcc_cv_as_section_has_align != xyes; then 27134 case ",$enable_languages," in 27135 *,lto,*) 27136 { $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 27137$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;} 27138 ;; 27139 esac 27140 fi 27141 ;; 27142 esac 27143 case $target_os in 27144 darwin2* | darwin19*) 27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5 27146$as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; } 27147if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then : 27148 $as_echo_n "(cached) " >&6 27149else 27150 gcc_cv_as_mllvm_x86_pad_for_align=no 27151 if test x$gcc_cv_as != x; then 27152 $as_echo '.text' > conftest.s 27153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5' 27154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27155 (eval $ac_try) 2>&5 27156 ac_status=$? 27157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27158 test $ac_status = 0; }; } 27159 then 27160 gcc_cv_as_mllvm_x86_pad_for_align=yes 27161 else 27162 echo "configure: failed program was" >&5 27163 cat conftest.s >&5 27164 fi 27165 rm -f conftest.o conftest.s 27166 fi 27167fi 27168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5 27169$as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; } 27170if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then 27171 27172$as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h 27173 27174fi 27175 27176 ;; 27177 esac 27178 27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5 27180$as_echo_n "checking assembler for -xbrace_comment... " >&6; } 27181if ${gcc_cv_as_ix86_xbrace_comment+:} false; then : 27182 $as_echo_n "(cached) " >&6 27183else 27184 gcc_cv_as_ix86_xbrace_comment=no 27185 if test x$gcc_cv_as != x; then 27186 $as_echo '.text' > conftest.s 27187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5' 27188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27189 (eval $ac_try) 2>&5 27190 ac_status=$? 27191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27192 test $ac_status = 0; }; } 27193 then 27194 gcc_cv_as_ix86_xbrace_comment=yes 27195 else 27196 echo "configure: failed program was" >&5 27197 cat conftest.s >&5 27198 fi 27199 rm -f conftest.o conftest.s 27200 fi 27201fi 27202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5 27203$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; } 27204if test $gcc_cv_as_ix86_xbrace_comment = yes; then 27205 27206$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h 27207 27208fi 27209 27210 27211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5 27212$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; } 27213if ${gcc_cv_as_ix86_filds+:} false; then : 27214 $as_echo_n "(cached) " >&6 27215else 27216 gcc_cv_as_ix86_filds=no 27217 if test x$gcc_cv_as != x; then 27218 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s 27219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27221 (eval $ac_try) 2>&5 27222 ac_status=$? 27223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27224 test $ac_status = 0; }; } 27225 then 27226 gcc_cv_as_ix86_filds=yes 27227 else 27228 echo "configure: failed program was" >&5 27229 cat conftest.s >&5 27230 fi 27231 rm -f conftest.o conftest.s 27232 fi 27233fi 27234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5 27235$as_echo "$gcc_cv_as_ix86_filds" >&6; } 27236if test $gcc_cv_as_ix86_filds = yes; then 27237 27238$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h 27239 27240fi 27241 27242 27243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5 27244$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; } 27245if ${gcc_cv_as_ix86_fildq+:} false; then : 27246 $as_echo_n "(cached) " >&6 27247else 27248 gcc_cv_as_ix86_fildq=no 27249 if test x$gcc_cv_as != x; then 27250 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s 27251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27253 (eval $ac_try) 2>&5 27254 ac_status=$? 27255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27256 test $ac_status = 0; }; } 27257 then 27258 gcc_cv_as_ix86_fildq=yes 27259 else 27260 echo "configure: failed program was" >&5 27261 cat conftest.s >&5 27262 fi 27263 rm -f conftest.o conftest.s 27264 fi 27265fi 27266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5 27267$as_echo "$gcc_cv_as_ix86_fildq" >&6; } 27268if test $gcc_cv_as_ix86_fildq = yes; then 27269 27270$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h 27271 27272fi 27273 27274 27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5 27276$as_echo_n "checking assembler for cmov syntax... " >&6; } 27277if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then : 27278 $as_echo_n "(cached) " >&6 27279else 27280 gcc_cv_as_ix86_cmov_sun_syntax=no 27281 if test x$gcc_cv_as != x; then 27282 $as_echo 'cmovl.l %edx, %eax' > conftest.s 27283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27285 (eval $ac_try) 2>&5 27286 ac_status=$? 27287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27288 test $ac_status = 0; }; } 27289 then 27290 gcc_cv_as_ix86_cmov_sun_syntax=yes 27291 else 27292 echo "configure: failed program was" >&5 27293 cat conftest.s >&5 27294 fi 27295 rm -f conftest.o conftest.s 27296 fi 27297fi 27298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5 27299$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; } 27300if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then 27301 27302$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h 27303 27304fi 27305 27306 27307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5 27308$as_echo_n "checking assembler for ffreep mnemonic... " >&6; } 27309if ${gcc_cv_as_ix86_ffreep+:} false; then : 27310 $as_echo_n "(cached) " >&6 27311else 27312 gcc_cv_as_ix86_ffreep=no 27313 if test x$gcc_cv_as != x; then 27314 $as_echo 'ffreep %st(1)' > conftest.s 27315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27317 (eval $ac_try) 2>&5 27318 ac_status=$? 27319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27320 test $ac_status = 0; }; } 27321 then 27322 gcc_cv_as_ix86_ffreep=yes 27323 else 27324 echo "configure: failed program was" >&5 27325 cat conftest.s >&5 27326 fi 27327 rm -f conftest.o conftest.s 27328 fi 27329fi 27330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5 27331$as_echo "$gcc_cv_as_ix86_ffreep" >&6; } 27332if test $gcc_cv_as_ix86_ffreep = yes; then 27333 27334$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h 27335 27336fi 27337 27338 27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5 27340$as_echo_n "checking assembler for .quad directive... " >&6; } 27341if ${gcc_cv_as_ix86_quad+:} false; then : 27342 $as_echo_n "(cached) " >&6 27343else 27344 gcc_cv_as_ix86_quad=no 27345 if test x$gcc_cv_as != x; then 27346 $as_echo '.quad 0' > conftest.s 27347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27349 (eval $ac_try) 2>&5 27350 ac_status=$? 27351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27352 test $ac_status = 0; }; } 27353 then 27354 gcc_cv_as_ix86_quad=yes 27355 else 27356 echo "configure: failed program was" >&5 27357 cat conftest.s >&5 27358 fi 27359 rm -f conftest.o conftest.s 27360 fi 27361fi 27362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5 27363$as_echo "$gcc_cv_as_ix86_quad" >&6; } 27364if test $gcc_cv_as_ix86_quad = yes; then 27365 27366$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h 27367 27368fi 27369 27370 27371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5 27372$as_echo_n "checking assembler for sahf mnemonic... " >&6; } 27373if ${gcc_cv_as_ix86_sahf+:} false; then : 27374 $as_echo_n "(cached) " >&6 27375else 27376 gcc_cv_as_ix86_sahf=no 27377 if test x$gcc_cv_as != x; then 27378 $as_echo '.code64 27379 sahf' > conftest.s 27380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27382 (eval $ac_try) 2>&5 27383 ac_status=$? 27384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27385 test $ac_status = 0; }; } 27386 then 27387 gcc_cv_as_ix86_sahf=yes 27388 else 27389 echo "configure: failed program was" >&5 27390 cat conftest.s >&5 27391 fi 27392 rm -f conftest.o conftest.s 27393 fi 27394fi 27395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5 27396$as_echo "$gcc_cv_as_ix86_sahf" >&6; } 27397if test $gcc_cv_as_ix86_sahf = yes; then 27398 27399$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h 27400 27401fi 27402 27403 27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5 27405$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; } 27406if ${gcc_cv_as_ix86_interunit_movq+:} false; then : 27407 $as_echo_n "(cached) " >&6 27408else 27409 gcc_cv_as_ix86_interunit_movq=no 27410 if test x$gcc_cv_as != x; then 27411 $as_echo '.code64 27412 movq %mm0, %rax 27413 movq %rax, %xmm0' > conftest.s 27414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27416 (eval $ac_try) 2>&5 27417 ac_status=$? 27418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27419 test $ac_status = 0; }; } 27420 then 27421 gcc_cv_as_ix86_interunit_movq=yes 27422 else 27423 echo "configure: failed program was" >&5 27424 cat conftest.s >&5 27425 fi 27426 rm -f conftest.o conftest.s 27427 fi 27428fi 27429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5 27430$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; } 27431 27432 27433 27434cat >>confdefs.h <<_ACEOF 27435#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi` 27436_ACEOF 27437 27438 27439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5 27440$as_echo_n "checking assembler for hle prefixes... " >&6; } 27441if ${gcc_cv_as_ix86_hle+:} false; then : 27442 $as_echo_n "(cached) " >&6 27443else 27444 gcc_cv_as_ix86_hle=no 27445 if test x$gcc_cv_as != x; then 27446 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s 27447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27449 (eval $ac_try) 2>&5 27450 ac_status=$? 27451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27452 test $ac_status = 0; }; } 27453 then 27454 gcc_cv_as_ix86_hle=yes 27455 else 27456 echo "configure: failed program was" >&5 27457 cat conftest.s >&5 27458 fi 27459 rm -f conftest.o conftest.s 27460 fi 27461fi 27462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5 27463$as_echo "$gcc_cv_as_ix86_hle" >&6; } 27464if test $gcc_cv_as_ix86_hle = yes; then 27465 27466$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h 27467 27468fi 27469 27470 27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5 27472$as_echo_n "checking assembler for swap suffix... " >&6; } 27473if ${gcc_cv_as_ix86_swap+:} false; then : 27474 $as_echo_n "(cached) " >&6 27475else 27476 gcc_cv_as_ix86_swap=no 27477 if test x$gcc_cv_as != x; then 27478 $as_echo 'movl.s %esp, %ebp' > conftest.s 27479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27481 (eval $ac_try) 2>&5 27482 ac_status=$? 27483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27484 test $ac_status = 0; }; } 27485 then 27486 gcc_cv_as_ix86_swap=yes 27487 else 27488 echo "configure: failed program was" >&5 27489 cat conftest.s >&5 27490 fi 27491 rm -f conftest.o conftest.s 27492 fi 27493fi 27494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5 27495$as_echo "$gcc_cv_as_ix86_swap" >&6; } 27496if test $gcc_cv_as_ix86_swap = yes; then 27497 27498$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h 27499 27500fi 27501 27502 27503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5 27504$as_echo_n "checking assembler for different section symbol subtraction... " >&6; } 27505if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then : 27506 $as_echo_n "(cached) " >&6 27507else 27508 gcc_cv_as_ix86_diff_sect_delta=no 27509 if test x$gcc_cv_as != x; then 27510 $as_echo '.section .rodata 27511.L1: 27512 .long .L2-.L1 27513 .long .L3-.L1 27514 .text 27515.L3: nop 27516.L2: nop' > conftest.s 27517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27519 (eval $ac_try) 2>&5 27520 ac_status=$? 27521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27522 test $ac_status = 0; }; } 27523 then 27524 gcc_cv_as_ix86_diff_sect_delta=yes 27525 else 27526 echo "configure: failed program was" >&5 27527 cat conftest.s >&5 27528 fi 27529 rm -f conftest.o conftest.s 27530 fi 27531fi 27532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5 27533$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; } 27534if test $gcc_cv_as_ix86_diff_sect_delta = yes; then 27535 27536$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h 27537 27538fi 27539 27540 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5 27542$as_echo_n "checking assembler for rep and lock prefix... " >&6; } 27543if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then : 27544 $as_echo_n "(cached) " >&6 27545else 27546 gcc_cv_as_ix86_rep_lock_prefix=no 27547 if test x$gcc_cv_as != x; then 27548 $as_echo 'rep movsl 27549 rep ret 27550 rep nop 27551 rep bsf %ecx, %eax 27552 rep bsr %ecx, %eax 27553 lock addl %edi, (%eax,%esi) 27554 lock orl $0, (%esp)' > conftest.s 27555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27557 (eval $ac_try) 2>&5 27558 ac_status=$? 27559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27560 test $ac_status = 0; }; } 27561 then 27562 gcc_cv_as_ix86_rep_lock_prefix=yes 27563 else 27564 echo "configure: failed program was" >&5 27565 cat conftest.s >&5 27566 fi 27567 rm -f conftest.o conftest.s 27568 fi 27569fi 27570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5 27571$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; } 27572if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then 27573 27574$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h 27575 27576fi 27577 27578 27579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5 27580$as_echo_n "checking assembler for ud2 mnemonic... " >&6; } 27581if ${gcc_cv_as_ix86_ud2+:} false; then : 27582 $as_echo_n "(cached) " >&6 27583else 27584 gcc_cv_as_ix86_ud2=no 27585 if test x$gcc_cv_as != x; then 27586 $as_echo 'ud2' > conftest.s 27587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27589 (eval $ac_try) 2>&5 27590 ac_status=$? 27591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27592 test $ac_status = 0; }; } 27593 then 27594 gcc_cv_as_ix86_ud2=yes 27595 else 27596 echo "configure: failed program was" >&5 27597 cat conftest.s >&5 27598 fi 27599 rm -f conftest.o conftest.s 27600 fi 27601fi 27602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5 27603$as_echo "$gcc_cv_as_ix86_ud2" >&6; } 27604if test $gcc_cv_as_ix86_ud2 = yes; then 27605 27606$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h 27607 27608fi 27609 27610 27611 # Enforce 32-bit output with gas and gld. 27612 if test x$gas = xyes; then 27613 as_ix86_gas_32_opt="--32" 27614 fi 27615 if echo "$ld_ver" | grep GNU > /dev/null; then 27616 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then 27617 ld_ix86_gld_32_opt="-melf_i386_sol2" 27618 else 27619 ld_ix86_gld_32_opt="-melf_i386" 27620 fi 27621 fi 27622 27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5 27624$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; } 27625if ${gcc_cv_as_ix86_tlsgdplt+:} false; then : 27626 $as_echo_n "(cached) " >&6 27627else 27628 gcc_cv_as_ix86_tlsgdplt=no 27629 if test x$gcc_cv_as != x; then 27630 $as_echo 'call tls_gd@tlsgdplt' > conftest.s 27631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27633 (eval $ac_try) 2>&5 27634 ac_status=$? 27635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27636 test $ac_status = 0; }; } 27637 then 27638 if test x$gcc_cv_ld != x \ 27639 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then 27640 gcc_cv_as_ix86_tlsgdplt=yes 27641 fi 27642 rm -f conftest 27643 else 27644 echo "configure: failed program was" >&5 27645 cat conftest.s >&5 27646 fi 27647 rm -f conftest.o conftest.s 27648 fi 27649fi 27650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5 27651$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; } 27652if test $gcc_cv_as_ix86_tlsgdplt = yes; then 27653 27654$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h 27655 27656fi 27657 27658 27659 conftest_s=' 27660 .section .tdata,"aw'$tls_section_flag'",@progbits 27661tls_ld: 27662 .section .text,"ax",@progbits 27663 call tls_ld@tlsldmplt' 27664 27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5 27666$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; } 27667if ${gcc_cv_as_ix86_tlsldmplt+:} false; then : 27668 $as_echo_n "(cached) " >&6 27669else 27670 gcc_cv_as_ix86_tlsldmplt=no 27671 if test x$gcc_cv_as != x; then 27672 $as_echo "$conftest_s" > conftest.s 27673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27675 (eval $ac_try) 2>&5 27676 ac_status=$? 27677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27678 test $ac_status = 0; }; } 27679 then 27680 if test x$gcc_cv_ld != x \ 27681 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then 27682 gcc_cv_as_ix86_tlsldmplt=yes 27683 fi 27684 rm -f conftest 27685 else 27686 echo "configure: failed program was" >&5 27687 cat conftest.s >&5 27688 fi 27689 rm -f conftest.o conftest.s 27690 fi 27691fi 27692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5 27693$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; } 27694 27695 27696 27697cat >>confdefs.h <<_ACEOF 27698#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi` 27699_ACEOF 27700 27701 27702 conftest_s=' 27703 .section .text,"ax",@progbits 27704 .globl _start 27705 .type _start, @function 27706_start: 27707 leal value@tlsldm(%ebx), %eax 27708 call ___tls_get_addr@plt 27709 27710 .section .tdata,"aw'$tls_section_flag'",@progbits 27711 .type value, @object 27712value:' 27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5 27714$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; } 27715if ${gcc_cv_as_ix86_tlsldm+:} false; then : 27716 $as_echo_n "(cached) " >&6 27717else 27718 gcc_cv_as_ix86_tlsldm=no 27719 if test x$gcc_cv_as != x; then 27720 $as_echo "$conftest_s" > conftest.s 27721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27723 (eval $ac_try) 2>&5 27724 ac_status=$? 27725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27726 test $ac_status = 0; }; } 27727 then 27728 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 27729 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then 27730 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \ 27731 || dis conftest 2>/dev/null | grep nop > /dev/null; then 27732 gcc_cv_as_ix86_tlsldm=yes 27733 fi 27734 fi 27735 rm -f conftest 27736 else 27737 echo "configure: failed program was" >&5 27738 cat conftest.s >&5 27739 fi 27740 rm -f conftest.o conftest.s 27741 fi 27742fi 27743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5 27744$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; } 27745 27746 27747 27748cat >>confdefs.h <<_ACEOF 27749#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi` 27750_ACEOF 27751 27752 27753 conftest_s=' 27754 .data 27755bar: 27756 .byte 1 27757 .text 27758 .global _start 27759_start: 27760 cmpl $0, bar@GOT 27761 jmp *_start@GOT' 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5 27763$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; } 27764if ${gcc_cv_as_ix86_got32x+:} false; then : 27765 $as_echo_n "(cached) " >&6 27766else 27767 gcc_cv_as_ix86_got32x=no 27768 if test x$gcc_cv_as != x; then 27769 $as_echo "$conftest_s" > conftest.s 27770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27772 (eval $ac_try) 2>&5 27773 ac_status=$? 27774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27775 test $ac_status = 0; }; } 27776 then 27777 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 27778 && test x$gcc_cv_readelf != x \ 27779 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \ 27780 | grep R_386_GOT32X > /dev/null 2>&1 \ 27781 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then 27782 if $gcc_cv_objdump -dw conftest 2>&1 \ 27783 | grep 0xffffff > /dev/null 2>&1; then 27784 gcc_cv_as_ix86_got32x=no 27785 else 27786 gcc_cv_as_ix86_got32x=yes 27787 fi 27788 fi 27789 rm -f conftest 27790 else 27791 echo "configure: failed program was" >&5 27792 cat conftest.s >&5 27793 fi 27794 rm -f conftest.o conftest.s 27795 fi 27796fi 27797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5 27798$as_echo "$gcc_cv_as_ix86_got32x" >&6; } 27799 27800 27801 27802cat >>confdefs.h <<_ACEOF 27803#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi` 27804_ACEOF 27805 27806 27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5 27808$as_echo_n "checking assembler for GOTOFF in data... " >&6; } 27809if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then : 27810 $as_echo_n "(cached) " >&6 27811else 27812 gcc_cv_as_ix86_gotoff_in_data=no 27813 if test x$gcc_cv_as != x; then 27814 $as_echo ' .text 27815.L0: 27816 nop 27817 .data 27818 .long .L0@GOTOFF' > conftest.s 27819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27821 (eval $ac_try) 2>&5 27822 ac_status=$? 27823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27824 test $ac_status = 0; }; } 27825 then 27826 gcc_cv_as_ix86_gotoff_in_data=yes 27827 else 27828 echo "configure: failed program was" >&5 27829 cat conftest.s >&5 27830 fi 27831 rm -f conftest.o conftest.s 27832 fi 27833fi 27834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5 27835$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; } 27836 27837 27838 27839cat >>confdefs.h <<_ACEOF 27840#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi` 27841_ACEOF 27842 27843 27844 conftest_s=' 27845 .section .text,"ax",@progbits 27846 .globl _start 27847 .type _start, @function 27848_start: 27849 leal ld@tlsldm(%ecx), %eax 27850 call *___tls_get_addr@GOT(%ecx) 27851 leal gd@tlsgd(%ecx), %eax 27852 call *___tls_get_addr@GOT(%ecx) 27853 27854 .section .tdata,"aw'$tls_section_flag'",@progbits 27855 .type ld, @object 27856ld: 27857 .byte 0 27858 .globl gd 27859 .type gd, @object 27860gd: 27861 .byte 0' 27862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5 27863$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; } 27864if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then : 27865 $as_echo_n "(cached) " >&6 27866else 27867 gcc_cv_as_ix86_tls_get_addr_via_got=no 27868 if test x$gcc_cv_as != x; then 27869 $as_echo "$conftest_s" > conftest.s 27870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27872 (eval $ac_try) 2>&5 27873 ac_status=$? 27874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27875 test $ac_status = 0; }; } 27876 then 27877 if test x$gcc_cv_ld != x \ 27878 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then 27879 gcc_cv_as_ix86_tls_get_addr_via_got=yes 27880 fi 27881 rm -f conftest 27882 else 27883 echo "configure: failed program was" >&5 27884 cat conftest.s >&5 27885 fi 27886 rm -f conftest.o conftest.s 27887 fi 27888fi 27889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5 27890$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; } 27891 27892 27893 27894cat >>confdefs.h <<_ACEOF 27895#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` 27896_ACEOF 27897 27898 ;; 27899 27900 ia64*-*-*) 27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5 27902$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; } 27903if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then : 27904 $as_echo_n "(cached) " >&6 27905else 27906 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no 27907 if test x$gcc_cv_as != x; then 27908 $as_echo ' .text 27909 addl r15 = @ltoffx(x#), gp 27910 ;; 27911 ld8.mov r16 = [r15], x# 27912' > conftest.s 27913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27915 (eval $ac_try) 2>&5 27916 ac_status=$? 27917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27918 test $ac_status = 0; }; } 27919 then 27920 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes 27921 else 27922 echo "configure: failed program was" >&5 27923 cat conftest.s >&5 27924 fi 27925 rm -f conftest.o conftest.s 27926 fi 27927fi 27928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5 27929$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; } 27930if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then 27931 27932$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h 27933 27934fi 27935 27936 27937 ;; 27938 27939 powerpc*-*-*) 27940 27941 case $target in 27942 *-*-darwin*) 27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5 27944$as_echo_n "checking assembler for .machine directive support... " >&6; } 27945if ${gcc_cv_as_machine_directive+:} false; then : 27946 $as_echo_n "(cached) " >&6 27947else 27948 gcc_cv_as_machine_directive=no 27949 if test x$gcc_cv_as != x; then 27950 $as_echo ' .machine ppc7400' > conftest.s 27951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27953 (eval $ac_try) 2>&5 27954 ac_status=$? 27955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27956 test $ac_status = 0; }; } 27957 then 27958 gcc_cv_as_machine_directive=yes 27959 else 27960 echo "configure: failed program was" >&5 27961 cat conftest.s >&5 27962 fi 27963 rm -f conftest.o conftest.s 27964 fi 27965fi 27966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5 27967$as_echo "$gcc_cv_as_machine_directive" >&6; } 27968 27969 27970 if test x$gcc_cv_as_machine_directive != xyes; then 27971 echo "*** This target requires an assembler supporting \".machine\"" >&2 27972 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2 27973 test x$build = x$target && exit 1 27974 fi 27975 ;; 27976 esac 27977 27978 case $target in 27979 *-*-aix*) conftest_s=' .machine "pwr5" 27980 .csect .text[PR] 27981 mfcr 3,128';; 27982 *-*-darwin*) conftest_s=' .text 27983 mfcr r3,128';; 27984 *) conftest_s=' .machine power4 27985 .text 27986 mfcr 3,128';; 27987 esac 27988 27989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5 27990$as_echo_n "checking assembler for mfcr field support... " >&6; } 27991if ${gcc_cv_as_powerpc_mfcrf+:} false; then : 27992 $as_echo_n "(cached) " >&6 27993else 27994 gcc_cv_as_powerpc_mfcrf=no 27995 if test x$gcc_cv_as != x; then 27996 $as_echo "$conftest_s" > conftest.s 27997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27999 (eval $ac_try) 2>&5 28000 ac_status=$? 28001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28002 test $ac_status = 0; }; } 28003 then 28004 gcc_cv_as_powerpc_mfcrf=yes 28005 else 28006 echo "configure: failed program was" >&5 28007 cat conftest.s >&5 28008 fi 28009 rm -f conftest.o conftest.s 28010 fi 28011fi 28012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5 28013$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; } 28014if test $gcc_cv_as_powerpc_mfcrf = yes; then 28015 28016$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h 28017 28018fi 28019 28020 28021 case $target in 28022 *-*-aix*) conftest_s=' .machine "pwr10" 28023 .csect .text[PR] 28024 tend. 0';; 28025 *-*-darwin*) conftest_s=' .text 28026 tend. 0';; 28027 *) conftest_s=' .machine power10 28028 .text 28029 tend. 0';; 28030 esac 28031 28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5 28033$as_echo_n "checking assembler for htm support on Power10... " >&6; } 28034if ${gcc_cv_as_power10_htm+:} false; then : 28035 $as_echo_n "(cached) " >&6 28036else 28037 gcc_cv_as_power10_htm=no 28038 if test x$gcc_cv_as != x; then 28039 $as_echo "$conftest_s" > conftest.s 28040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28042 (eval $ac_try) 2>&5 28043 ac_status=$? 28044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28045 test $ac_status = 0; }; } 28046 then 28047 gcc_cv_as_power10_htm=yes 28048 else 28049 echo "configure: failed program was" >&5 28050 cat conftest.s >&5 28051 fi 28052 rm -f conftest.o conftest.s 28053 fi 28054fi 28055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5 28056$as_echo "$gcc_cv_as_power10_htm" >&6; } 28057if test $gcc_cv_as_power10_htm = yes; then 28058 28059$as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h 28060 28061fi 28062 28063 28064 case $target in 28065 *-*-aix*) conftest_s=' .csect .text[PR] 28066LCF..0: 28067 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';; 28068 *-*-darwin*) 28069 conftest_s=' .text 28070LCF0: 28071 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';; 28072 *) conftest_s=' .text 28073.LCF0: 28074 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';; 28075 esac 28076 28077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5 28078$as_echo_n "checking assembler for rel16 relocs... " >&6; } 28079if ${gcc_cv_as_powerpc_rel16+:} false; then : 28080 $as_echo_n "(cached) " >&6 28081else 28082 gcc_cv_as_powerpc_rel16=no 28083 if test x$gcc_cv_as != x; then 28084 $as_echo "$conftest_s" > conftest.s 28085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' 28086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28087 (eval $ac_try) 2>&5 28088 ac_status=$? 28089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28090 test $ac_status = 0; }; } 28091 then 28092 gcc_cv_as_powerpc_rel16=yes 28093 else 28094 echo "configure: failed program was" >&5 28095 cat conftest.s >&5 28096 fi 28097 rm -f conftest.o conftest.s 28098 fi 28099fi 28100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5 28101$as_echo "$gcc_cv_as_powerpc_rel16" >&6; } 28102if test $gcc_cv_as_powerpc_rel16 = yes; then 28103 28104$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h 28105 28106fi 28107 28108 28109 case $target in 28110 *-*-aix*) conftest_s=' .machine "pwr7" 28111 .csect .text[PR] 28112 lxvd2x 1,2,3';; 28113 *) conftest_s=' .machine power7 28114 .text 28115 lxvd2x 1,2,3';; 28116 esac 28117 28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5 28119$as_echo_n "checking assembler for vector-scalar support... " >&6; } 28120if ${gcc_cv_as_powerpc_vsx+:} false; then : 28121 $as_echo_n "(cached) " >&6 28122else 28123 gcc_cv_as_powerpc_vsx=no 28124 if test x$gcc_cv_as != x; then 28125 $as_echo "$conftest_s" > conftest.s 28126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' 28127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28128 (eval $ac_try) 2>&5 28129 ac_status=$? 28130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28131 test $ac_status = 0; }; } 28132 then 28133 gcc_cv_as_powerpc_vsx=yes 28134 else 28135 echo "configure: failed program was" >&5 28136 cat conftest.s >&5 28137 fi 28138 rm -f conftest.o conftest.s 28139 fi 28140fi 28141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5 28142$as_echo "$gcc_cv_as_powerpc_vsx" >&6; } 28143if test $gcc_cv_as_powerpc_vsx = yes; then 28144 28145$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h 28146 28147fi 28148 28149 28150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28151$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28152if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then : 28153 $as_echo_n "(cached) " >&6 28154else 28155 gcc_cv_as_powerpc_gnu_attribute=no 28156 if test x$gcc_cv_as != x; then 28157 $as_echo '.gnu_attribute 4,1' > conftest.s 28158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28160 (eval $ac_try) 2>&5 28161 ac_status=$? 28162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28163 test $ac_status = 0; }; } 28164 then 28165 gcc_cv_as_powerpc_gnu_attribute=yes 28166 else 28167 echo "configure: failed program was" >&5 28168 cat conftest.s >&5 28169 fi 28170 rm -f conftest.o conftest.s 28171 fi 28172fi 28173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5 28174$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; } 28175if test $gcc_cv_as_powerpc_gnu_attribute = yes; then 28176 28177$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28178 28179fi 28180 28181 28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5 28183$as_echo_n "checking assembler for prologue entry point marker support... " >&6; } 28184if ${gcc_cv_as_powerpc_entry_markers+:} false; then : 28185 $as_echo_n "(cached) " >&6 28186else 28187 gcc_cv_as_powerpc_entry_markers=no 28188 if test x$gcc_cv_as != x; then 28189 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s 28190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5' 28191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28192 (eval $ac_try) 2>&5 28193 ac_status=$? 28194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28195 test $ac_status = 0; }; } 28196 then 28197 gcc_cv_as_powerpc_entry_markers=yes 28198 else 28199 echo "configure: failed program was" >&5 28200 cat conftest.s >&5 28201 fi 28202 rm -f conftest.o conftest.s 28203 fi 28204fi 28205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5 28206$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; } 28207if test $gcc_cv_as_powerpc_entry_markers = yes; then 28208 28209$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h 28210 28211fi 28212 28213 28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5 28215$as_echo_n "checking assembler for plt sequence marker support... " >&6; } 28216if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then : 28217 $as_echo_n "(cached) " >&6 28218else 28219 gcc_cv_as_powerpc_pltseq_markers=no 28220 if test x$gcc_cv_as != x; then 28221 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s 28222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5' 28223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28224 (eval $ac_try) 2>&5 28225 ac_status=$? 28226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28227 test $ac_status = 0; }; } 28228 then 28229 gcc_cv_as_powerpc_pltseq_markers=yes 28230 else 28231 echo "configure: failed program was" >&5 28232 cat conftest.s >&5 28233 fi 28234 rm -f conftest.o conftest.s 28235 fi 28236fi 28237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5 28238$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; } 28239if test $gcc_cv_as_powerpc_pltseq_markers = yes; then 28240 28241$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h 28242 28243fi 28244 28245 28246 case $target in 28247 *-*-aix*) 28248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5 28249$as_echo_n "checking assembler for AIX .ref support... " >&6; } 28250if ${gcc_cv_as_aix_ref+:} false; then : 28251 $as_echo_n "(cached) " >&6 28252else 28253 gcc_cv_as_aix_ref=no 28254 if test x$gcc_cv_as != x; then 28255 $as_echo ' .csect stuff[rw] 28256 stuff: 28257 .long 1 28258 .extern sym 28259 .ref sym 28260 ' > conftest.s 28261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28263 (eval $ac_try) 2>&5 28264 ac_status=$? 28265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28266 test $ac_status = 0; }; } 28267 then 28268 gcc_cv_as_aix_ref=yes 28269 else 28270 echo "configure: failed program was" >&5 28271 cat conftest.s >&5 28272 fi 28273 rm -f conftest.o conftest.s 28274 fi 28275fi 28276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5 28277$as_echo "$gcc_cv_as_aix_ref" >&6; } 28278if test $gcc_cv_as_aix_ref = yes; then 28279 28280$as_echo "#define HAVE_AS_REF 1" >>confdefs.h 28281 28282fi 28283 28284 28285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5 28286$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; } 28287if ${gcc_cv_as_aix_dwloc+:} false; then : 28288 $as_echo_n "(cached) " >&6 28289else 28290 gcc_cv_as_aix_dwloc=no 28291 if test x$gcc_cv_as != x; then 28292 $as_echo ' .dwsect 0xA0000 28293 Lframe..0: 28294 .vbyte 4,Lframe..0 28295 ' > conftest.s 28296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28298 (eval $ac_try) 2>&5 28299 ac_status=$? 28300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28301 test $ac_status = 0; }; } 28302 then 28303 gcc_cv_as_aix_dwloc=yes 28304 else 28305 echo "configure: failed program was" >&5 28306 cat conftest.s >&5 28307 fi 28308 rm -f conftest.o conftest.s 28309 fi 28310fi 28311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5 28312$as_echo "$gcc_cv_as_aix_dwloc" >&6; } 28313if test $gcc_cv_as_aix_dwloc = yes; then 28314 28315$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h 28316 28317fi 28318 28319 ;; 28320 esac 28321 ;; 28322 28323 mips*-*-*) 28324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5 28325$as_echo_n "checking assembler for explicit relocation support... " >&6; } 28326if ${gcc_cv_as_mips_explicit_relocs+:} false; then : 28327 $as_echo_n "(cached) " >&6 28328else 28329 gcc_cv_as_mips_explicit_relocs=no 28330 if test x$gcc_cv_as != x; then 28331 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s 28332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28334 (eval $ac_try) 2>&5 28335 ac_status=$? 28336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28337 test $ac_status = 0; }; } 28338 then 28339 gcc_cv_as_mips_explicit_relocs=yes 28340 else 28341 echo "configure: failed program was" >&5 28342 cat conftest.s >&5 28343 fi 28344 rm -f conftest.o conftest.s 28345 fi 28346fi 28347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5 28348$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; } 28349if test $gcc_cv_as_mips_explicit_relocs = yes; then 28350 if test x$target_cpu_default = x 28351 then target_cpu_default=MASK_EXPLICIT_RELOCS 28352 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS" 28353 fi 28354fi 28355 28356 28357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5 28358$as_echo_n "checking assembler for -mno-shared support... " >&6; } 28359if ${gcc_cv_as_mips_no_shared+:} false; then : 28360 $as_echo_n "(cached) " >&6 28361else 28362 gcc_cv_as_mips_no_shared=no 28363 if test x$gcc_cv_as != x; then 28364 $as_echo 'nop' > conftest.s 28365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5' 28366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28367 (eval $ac_try) 2>&5 28368 ac_status=$? 28369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28370 test $ac_status = 0; }; } 28371 then 28372 gcc_cv_as_mips_no_shared=yes 28373 else 28374 echo "configure: failed program was" >&5 28375 cat conftest.s >&5 28376 fi 28377 rm -f conftest.o conftest.s 28378 fi 28379fi 28380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5 28381$as_echo "$gcc_cv_as_mips_no_shared" >&6; } 28382if test $gcc_cv_as_mips_no_shared = yes; then 28383 28384$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h 28385 28386fi 28387 28388 28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28390$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28391if ${gcc_cv_as_mips_gnu_attribute+:} false; then : 28392 $as_echo_n "(cached) " >&6 28393else 28394 gcc_cv_as_mips_gnu_attribute=no 28395 if test x$gcc_cv_as != x; then 28396 $as_echo '.gnu_attribute 4,1' > conftest.s 28397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28399 (eval $ac_try) 2>&5 28400 ac_status=$? 28401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28402 test $ac_status = 0; }; } 28403 then 28404 gcc_cv_as_mips_gnu_attribute=yes 28405 else 28406 echo "configure: failed program was" >&5 28407 cat conftest.s >&5 28408 fi 28409 rm -f conftest.o conftest.s 28410 fi 28411fi 28412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5 28413$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; } 28414if test $gcc_cv_as_mips_gnu_attribute = yes; then 28415 28416$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28417 28418fi 28419 28420 28421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5 28422$as_echo_n "checking assembler for .module support... " >&6; } 28423if ${gcc_cv_as_mips_dot_module+:} false; then : 28424 $as_echo_n "(cached) " >&6 28425else 28426 gcc_cv_as_mips_dot_module=no 28427 if test x$gcc_cv_as != x; then 28428 $as_echo '.module mips2 28429 .module fp=xx' > conftest.s 28430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5' 28431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28432 (eval $ac_try) 2>&5 28433 ac_status=$? 28434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28435 test $ac_status = 0; }; } 28436 then 28437 gcc_cv_as_mips_dot_module=yes 28438 else 28439 echo "configure: failed program was" >&5 28440 cat conftest.s >&5 28441 fi 28442 rm -f conftest.o conftest.s 28443 fi 28444fi 28445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5 28446$as_echo "$gcc_cv_as_mips_dot_module" >&6; } 28447if test $gcc_cv_as_mips_dot_module = yes; then 28448 28449$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h 28450 28451fi 28452 28453 if test x$gcc_cv_as_mips_dot_module = xno \ 28454 && test x$with_fp_32 != x; then 28455 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5 28456 fi 28457 28458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5 28459$as_echo_n "checking assembler for .micromips support... " >&6; } 28460if ${gcc_cv_as_micromips_support+:} false; then : 28461 $as_echo_n "(cached) " >&6 28462else 28463 gcc_cv_as_micromips_support=no 28464 if test x$gcc_cv_as != x; then 28465 $as_echo '.set micromips' > conftest.s 28466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 28467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28468 (eval $ac_try) 2>&5 28469 ac_status=$? 28470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28471 test $ac_status = 0; }; } 28472 then 28473 gcc_cv_as_micromips_support=yes 28474 else 28475 echo "configure: failed program was" >&5 28476 cat conftest.s >&5 28477 fi 28478 rm -f conftest.o conftest.s 28479 fi 28480fi 28481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5 28482$as_echo "$gcc_cv_as_micromips_support" >&6; } 28483if test $gcc_cv_as_micromips_support = yes; then 28484 28485$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h 28486 28487fi 28488 28489 28490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5 28491$as_echo_n "checking assembler for .dtprelword support... " >&6; } 28492if ${gcc_cv_as_mips_dtprelword+:} false; then : 28493 $as_echo_n "(cached) " >&6 28494else 28495 gcc_cv_as_mips_dtprelword=no 28496 if test x$gcc_cv_as != x; then 28497 $as_echo '.section .tdata,"awT",@progbits 28498x: 28499 .word 2 28500 .text 28501 .dtprelword x+0x8000' > conftest.s 28502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28504 (eval $ac_try) 2>&5 28505 ac_status=$? 28506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28507 test $ac_status = 0; }; } 28508 then 28509 gcc_cv_as_mips_dtprelword=yes 28510 else 28511 echo "configure: failed program was" >&5 28512 cat conftest.s >&5 28513 fi 28514 rm -f conftest.o conftest.s 28515 fi 28516fi 28517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5 28518$as_echo "$gcc_cv_as_mips_dtprelword" >&6; } 28519if test $gcc_cv_as_mips_dtprelword = yes; then 28520 28521$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h 28522 28523fi 28524 28525 28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5 28527$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; } 28528if ${gcc_cv_as_mips_dspr1_mult+:} false; then : 28529 $as_echo_n "(cached) " >&6 28530else 28531 gcc_cv_as_mips_dspr1_mult=no 28532 if test x$gcc_cv_as != x; then 28533 $as_echo ' .set mips32r2 28534 .set nodspr2 28535 .set dsp 28536 madd $ac3,$4,$5 28537 maddu $ac3,$4,$5 28538 msub $ac3,$4,$5 28539 msubu $ac3,$4,$5 28540 mult $ac3,$4,$5 28541 multu $ac3,$4,$5' > conftest.s 28542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28544 (eval $ac_try) 2>&5 28545 ac_status=$? 28546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28547 test $ac_status = 0; }; } 28548 then 28549 gcc_cv_as_mips_dspr1_mult=yes 28550 else 28551 echo "configure: failed program was" >&5 28552 cat conftest.s >&5 28553 fi 28554 rm -f conftest.o conftest.s 28555 fi 28556fi 28557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5 28558$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; } 28559if test $gcc_cv_as_mips_dspr1_mult = yes; then 28560 28561$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h 28562 28563fi 28564 28565 28566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5 28567$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; } 28568 gcc_cv_as_ld_jalr_reloc=no 28569 if test $gcc_cv_as_mips_explicit_relocs = yes; then 28570 if test $in_tree_ld = yes ; then 28571 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 \ 28572 && test $in_tree_ld_is_elf = yes; then 28573 gcc_cv_as_ld_jalr_reloc=yes 28574 fi 28575 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then 28576 echo ' .ent x' > conftest.s 28577 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s 28578 echo ' lw $25,%call16(y)($28)' >> conftest.s 28579 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s 28580 echo '1: jalr $25' >> conftest.s 28581 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s 28582 echo '1: jalr $25' >> conftest.s 28583 echo ' .end x' >> conftest.s 28584 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \ 28585 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then 28586 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \ 28587 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then 28588 gcc_cv_as_ld_jalr_reloc=yes 28589 fi 28590 fi 28591 rm -f conftest.* 28592 fi 28593 fi 28594 if test $gcc_cv_as_ld_jalr_reloc = yes; then 28595 if test x$target_cpu_default = x; then 28596 target_cpu_default=MASK_RELAX_PIC_CALLS 28597 else 28598 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" 28599 fi 28600 fi 28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5 28602$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; } 28603 28604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5 28605$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; } 28606if ${gcc_cv_ld_mips_personality_relaxation+:} false; then : 28607 $as_echo_n "(cached) " >&6 28608else 28609 gcc_cv_ld_mips_personality_relaxation=no 28610 if test $in_tree_ld = yes ; then 28611 if test "$gcc_cv_gld_major_version" -eq 2 \ 28612 -a "$gcc_cv_gld_minor_version" -ge 21 \ 28613 -o "$gcc_cv_gld_major_version" -gt 2; then 28614 gcc_cv_ld_mips_personality_relaxation=yes 28615 fi 28616 elif test x$gcc_cv_as != x \ 28617 -a x$gcc_cv_ld != x \ 28618 -a x$gcc_cv_readelf != x ; then 28619 cat > conftest.s <<EOF 28620 .cfi_startproc 28621 .cfi_personality 0x80,indirect_ptr 28622 .ent test 28623test: 28624 nop 28625 .end test 28626 .cfi_endproc 28627 28628 .section .data,"aw",@progbits 28629indirect_ptr: 28630 .dc.a personality 28631EOF 28632 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \ 28633 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then 28634 if $gcc_cv_readelf -d conftest 2>&1 \ 28635 | grep TEXTREL > /dev/null 2>&1; then 28636 : 28637 elif $gcc_cv_readelf --relocs conftest 2>&1 \ 28638 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then 28639 : 28640 else 28641 gcc_cv_ld_mips_personality_relaxation=yes 28642 fi 28643 fi 28644 fi 28645 rm -f conftest.s conftest.o conftest 28646fi 28647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5 28648$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; } 28649 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then 28650 28651$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h 28652 28653 fi 28654 28655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5 28656$as_echo_n "checking assembler for -mnan= support... " >&6; } 28657if ${gcc_cv_as_mips_nan+:} false; then : 28658 $as_echo_n "(cached) " >&6 28659else 28660 gcc_cv_as_mips_nan=no 28661 if test x$gcc_cv_as != x; then 28662 $as_echo '' > conftest.s 28663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5' 28664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28665 (eval $ac_try) 2>&5 28666 ac_status=$? 28667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28668 test $ac_status = 0; }; } 28669 then 28670 gcc_cv_as_mips_nan=yes 28671 else 28672 echo "configure: failed program was" >&5 28673 cat conftest.s >&5 28674 fi 28675 rm -f conftest.o conftest.s 28676 fi 28677fi 28678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5 28679$as_echo "$gcc_cv_as_mips_nan" >&6; } 28680if test $gcc_cv_as_mips_nan = yes; then 28681 28682$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h 28683 28684fi 28685 28686 if test x$gcc_cv_as_mips_nan = xno \ 28687 && test x$with_nan != x; then 28688 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5 28689 fi 28690 ;; 28691 msp430-*-*) 28692 # Earlier GAS versions generically support .gnu_attribute, but the 28693 # msp430 assembler will not do anything with it. 28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28695$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28696if ${gcc_cv_as_msp430_gnu_attribute+:} false; then : 28697 $as_echo_n "(cached) " >&6 28698else 28699 gcc_cv_as_msp430_gnu_attribute=no 28700 if test x$gcc_cv_as != x; then 28701 $as_echo '.gnu_attribute 4,1' > conftest.s 28702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28704 (eval $ac_try) 2>&5 28705 ac_status=$? 28706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28707 test $ac_status = 0; }; } 28708 then 28709 gcc_cv_as_msp430_gnu_attribute=yes 28710 else 28711 echo "configure: failed program was" >&5 28712 cat conftest.s >&5 28713 fi 28714 rm -f conftest.o conftest.s 28715 fi 28716fi 28717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5 28718$as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; } 28719if test $gcc_cv_as_msp430_gnu_attribute = yes; then 28720 28721$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28722 28723fi 28724 28725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5 28726$as_echo_n "checking assembler for .mspabi_attribute support... " >&6; } 28727if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then : 28728 $as_echo_n "(cached) " >&6 28729else 28730 gcc_cv_as_msp430_mspabi_attribute=no 28731 if test x$gcc_cv_as != x; then 28732 $as_echo '.mspabi_attribute 4,2' > conftest.s 28733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28735 (eval $ac_try) 2>&5 28736 ac_status=$? 28737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28738 test $ac_status = 0; }; } 28739 then 28740 gcc_cv_as_msp430_mspabi_attribute=yes 28741 else 28742 echo "configure: failed program was" >&5 28743 cat conftest.s >&5 28744 fi 28745 rm -f conftest.o conftest.s 28746 fi 28747fi 28748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5 28749$as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; } 28750if test $gcc_cv_as_msp430_mspabi_attribute = yes; then 28751 28752$as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h 28753 28754fi 28755 28756 if test x$enable_newlib_nano_formatted_io = xyes; then 28757 28758$as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h 28759 28760 fi 28761 ;; 28762 nios2-*-*) 28763 # Versions 2.33 and earlier lacked support for the %gotoff relocation 28764 # syntax that is documented in the ABI specification. 28765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5 28766$as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; } 28767if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then : 28768 $as_echo_n "(cached) " >&6 28769else 28770 gcc_cv_as_nios2_gotoff_relocation=no 28771 if test x$gcc_cv_as != x; then 28772 $as_echo ' .extern foo 28773 .data 28774 .long %gotoff(foo)' > conftest.s 28775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28777 (eval $ac_try) 2>&5 28778 ac_status=$? 28779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28780 test $ac_status = 0; }; } 28781 then 28782 gcc_cv_as_nios2_gotoff_relocation=yes 28783 else 28784 echo "configure: failed program was" >&5 28785 cat conftest.s >&5 28786 fi 28787 rm -f conftest.o conftest.s 28788 fi 28789fi 28790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5 28791$as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; } 28792if test $gcc_cv_as_nios2_gotoff_relocation = yes; then 28793 28794$as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h 28795 28796fi 28797 28798 ;; 28799 riscv*-*-*) 28800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5 28801$as_echo_n "checking assembler for .attribute support... " >&6; } 28802if ${gcc_cv_as_riscv_attribute+:} false; then : 28803 $as_echo_n "(cached) " >&6 28804else 28805 gcc_cv_as_riscv_attribute=no 28806 if test x$gcc_cv_as != x; then 28807 $as_echo '.attribute stack_align,4' > conftest.s 28808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28810 (eval $ac_try) 2>&5 28811 ac_status=$? 28812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28813 test $ac_status = 0; }; } 28814 then 28815 gcc_cv_as_riscv_attribute=yes 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_riscv_attribute" >&5 28824$as_echo "$gcc_cv_as_riscv_attribute" >&6; } 28825if test $gcc_cv_as_riscv_attribute = yes; then 28826 28827$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h 28828 28829fi 28830 28831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5 28832$as_echo_n "checking assembler for -misa-spec= support... " >&6; } 28833if ${gcc_cv_as_riscv_isa_spec+:} false; then : 28834 $as_echo_n "(cached) " >&6 28835else 28836 gcc_cv_as_riscv_isa_spec=no 28837 if test x$gcc_cv_as != x; then 28838 $as_echo '' > conftest.s 28839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5' 28840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28841 (eval $ac_try) 2>&5 28842 ac_status=$? 28843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28844 test $ac_status = 0; }; } 28845 then 28846 gcc_cv_as_riscv_isa_spec=yes 28847 else 28848 echo "configure: failed program was" >&5 28849 cat conftest.s >&5 28850 fi 28851 rm -f conftest.o conftest.s 28852 fi 28853fi 28854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5 28855$as_echo "$gcc_cv_as_riscv_isa_spec" >&6; } 28856if test $gcc_cv_as_riscv_isa_spec = yes; then 28857 28858$as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h 28859 28860fi 28861 28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5 28863$as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; } 28864if ${gcc_cv_as_riscv_march_zifencei+:} false; then : 28865 $as_echo_n "(cached) " >&6 28866else 28867 gcc_cv_as_riscv_march_zifencei=no 28868 if test x$gcc_cv_as != x; then 28869 $as_echo '' > conftest.s 28870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5' 28871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28872 (eval $ac_try) 2>&5 28873 ac_status=$? 28874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28875 test $ac_status = 0; }; } 28876 then 28877 gcc_cv_as_riscv_march_zifencei=yes 28878 else 28879 echo "configure: failed program was" >&5 28880 cat conftest.s >&5 28881 fi 28882 rm -f conftest.o conftest.s 28883 fi 28884fi 28885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5 28886$as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; } 28887if test $gcc_cv_as_riscv_march_zifencei = yes; then 28888 28889$as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h 28890 28891fi 28892 28893 ;; 28894 loongarch*-*-*) 28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5 28896$as_echo_n "checking assembler for .dtprelword support... " >&6; } 28897if ${gcc_cv_as_loongarch_dtprelword+:} false; then : 28898 $as_echo_n "(cached) " >&6 28899else 28900 gcc_cv_as_loongarch_dtprelword=no 28901 if test x$gcc_cv_as != x; then 28902 $as_echo '' > conftest.s 28903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5' 28904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28905 (eval $ac_try) 2>&5 28906 ac_status=$? 28907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28908 test $ac_status = 0; }; } 28909 then 28910 .section .tdata,"awT",@progbits 28911x: 28912 .word 2 28913 .text 28914 .dtprelword x+0x8000 28915 else 28916 echo "configure: failed program was" >&5 28917 cat conftest.s >&5 28918 fi 28919 rm -f conftest.o conftest.s 28920 fi 28921fi 28922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5 28923$as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; } 28924 28925if test $gcc_cv_as_loongarch_dtprelword != yes; then 28926 28927$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h 28928 28929fi 28930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5 28931$as_echo_n "checking assembler for -mrelax option... " >&6; } 28932if ${gcc_cv_as_loongarch_relax+:} false; then : 28933 $as_echo_n "(cached) " >&6 28934else 28935 gcc_cv_as_loongarch_relax=no 28936 if test x$gcc_cv_as != x; then 28937 $as_echo '.text' > conftest.s 28938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5' 28939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28940 (eval $ac_try) 2>&5 28941 ac_status=$? 28942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28943 test $ac_status = 0; }; } 28944 then 28945 gcc_cv_as_loongarch_relax=yes 28946 else 28947 echo "configure: failed program was" >&5 28948 cat conftest.s >&5 28949 fi 28950 rm -f conftest.o conftest.s 28951 fi 28952fi 28953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5 28954$as_echo "$gcc_cv_as_loongarch_relax" >&6; } 28955if test $gcc_cv_as_loongarch_relax = yes; then 28956 28957$as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h 28958 28959fi 28960 28961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5 28962$as_echo_n "checking assembler for conditional branch relaxation support... " >&6; } 28963if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then : 28964 $as_echo_n "(cached) " >&6 28965else 28966 gcc_cv_as_loongarch_cond_branch_relax=no 28967 if test x$gcc_cv_as != x; then 28968 $as_echo 'a: 28969 .rept 32769 28970 nop 28971 .endr 28972 beq $a0,$a1,a' > conftest.s 28973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 28974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28975 (eval $ac_try) 2>&5 28976 ac_status=$? 28977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28978 test $ac_status = 0; }; } 28979 then 28980 gcc_cv_as_loongarch_cond_branch_relax=yes 28981 else 28982 echo "configure: failed program was" >&5 28983 cat conftest.s >&5 28984 fi 28985 rm -f conftest.o conftest.s 28986 fi 28987fi 28988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5 28989$as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; } 28990if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then 28991 28992$as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h 28993 28994fi 28995 28996 ;; 28997 s390*-*-*) 28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28999$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 29000if ${gcc_cv_as_s390_gnu_attribute+:} false; then : 29001 $as_echo_n "(cached) " >&6 29002else 29003 gcc_cv_as_s390_gnu_attribute=no 29004 if test x$gcc_cv_as != x; then 29005 $as_echo '.gnu_attribute 8,1' > conftest.s 29006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29008 (eval $ac_try) 2>&5 29009 ac_status=$? 29010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29011 test $ac_status = 0; }; } 29012 then 29013 gcc_cv_as_s390_gnu_attribute=yes 29014 else 29015 echo "configure: failed program was" >&5 29016 cat conftest.s >&5 29017 fi 29018 rm -f conftest.o conftest.s 29019 fi 29020fi 29021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5 29022$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; } 29023if test $gcc_cv_as_s390_gnu_attribute = yes; then 29024 29025$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 29026 29027fi 29028 29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5 29030$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; } 29031if ${gcc_cv_as_s390_machine_machinemode+:} false; then : 29032 $as_echo_n "(cached) " >&6 29033else 29034 gcc_cv_as_s390_machine_machinemode=no 29035 if test x$gcc_cv_as != x; then 29036 $as_echo ' .machinemode push 29037 .machinemode pop 29038 .machine push 29039 .machine pop' > conftest.s 29040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29042 (eval $ac_try) 2>&5 29043 ac_status=$? 29044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29045 test $ac_status = 0; }; } 29046 then 29047 gcc_cv_as_s390_machine_machinemode=yes 29048 else 29049 echo "configure: failed program was" >&5 29050 cat conftest.s >&5 29051 fi 29052 rm -f conftest.o conftest.s 29053 fi 29054fi 29055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5 29056$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; } 29057if test $gcc_cv_as_s390_machine_machinemode = yes; then 29058 29059$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h 29060 29061fi 29062 29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5 29064$as_echo_n "checking assembler for architecture modifiers support... " >&6; } 29065if ${gcc_cv_as_s390_architecture_modifiers+:} false; then : 29066 $as_echo_n "(cached) " >&6 29067else 29068 gcc_cv_as_s390_architecture_modifiers=no 29069 if test x$gcc_cv_as != x; then 29070 $as_echo ' .machine z13+vx ' > conftest.s 29071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29073 (eval $ac_try) 2>&5 29074 ac_status=$? 29075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29076 test $ac_status = 0; }; } 29077 then 29078 gcc_cv_as_s390_architecture_modifiers=yes 29079 else 29080 echo "configure: failed program was" >&5 29081 cat conftest.s >&5 29082 fi 29083 rm -f conftest.o conftest.s 29084 fi 29085fi 29086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5 29087$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; } 29088if test $gcc_cv_as_s390_architecture_modifiers = yes; then 29089 29090$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h 29091 29092fi 29093 29094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5 29095$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; } 29096if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then : 29097 $as_echo_n "(cached) " >&6 29098else 29099 gcc_cv_as_s390_vector_loadstore_alignment_hints=no 29100 if test x$gcc_cv_as != x; then 29101 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s 29102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29104 (eval $ac_try) 2>&5 29105 ac_status=$? 29106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29107 test $ac_status = 0; }; } 29108 then 29109 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes 29110 else 29111 echo "configure: failed program was" >&5 29112 cat conftest.s >&5 29113 fi 29114 rm -f conftest.o conftest.s 29115 fi 29116fi 29117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5 29118$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; } 29119if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then 29120 29121$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h 29122 29123fi 29124 29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5 29126$as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; } 29127if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then : 29128 $as_echo_n "(cached) " >&6 29129else 29130 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no 29131 if test x$gcc_cv_as != x; then 29132 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s 29133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5' 29134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29135 (eval $ac_try) 2>&5 29136 ac_status=$? 29137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29138 test $ac_status = 0; }; } 29139 then 29140 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes 29141 else 29142 echo "configure: failed program was" >&5 29143 cat conftest.s >&5 29144 fi 29145 rm -f conftest.o conftest.s 29146 fi 29147fi 29148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5 29149$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; } 29150if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then 29151 29152$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h 29153 29154fi 29155 29156 29157 ;; 29158esac 29159 29160# Mips, LoongArch and HP-UX need the GNU assembler. 29161# Linux on IA64 might be able to use the Intel assembler. 29162 29163case "$target" in 29164 mips*-*-* | loongarch*-*-* | *-*-hpux* ) 29165 if test x$gas_flag = xyes \ 29166 || test x"$host" != x"$build" \ 29167 || test ! -x "$gcc_cv_as" \ 29168 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then 29169 : 29170 else 29171 echo "*** This configuration requires the GNU assembler" >&2 29172 exit 1 29173 fi 29174 ;; 29175esac 29176 29177# This tests if the assembler supports two registers for global_load functions 29178# (like in LLVM versions <12) or one register (like in LLVM 12). 29179case "$target" in 29180 amdgcn-* | gcn-*) 29181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5 29182$as_echo_n "checking assembler fix for global_load functions... " >&6; } 29183 gcc_cv_as_gcn_global_load_fixed=yes 29184 if test x$gcc_cv_as != x; then 29185 cat > conftest.s <<EOF 29186 global_store_dwordx2 v[1:2], v[4:5], s[14:15] 29187EOF 29188 if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then 29189 gcc_cv_as_gcn_global_load_fixed=no 29190 fi 29191 rm -f conftest.s conftest.o conftest 29192 fi 29193 global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi` 29194 29195cat >>confdefs.h <<_ACEOF 29196#define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed 29197_ACEOF 29198 29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5 29200$as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; } 29201 ;; 29202esac 29203 29204case "$target" in 29205 amdgcn-* | gcn-*) 29206 # Test the LLVM assembler syntax dialect; they have made a number of 29207 # changes between LLVM 12 & 13 without any backward compatibility. 29208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v2/3 syntax" >&5 29209$as_echo_n "checking assembler for assembler amdgcn_target v2/3 syntax... " >&6; } 29210if ${gcc_cv_as_gcn_asm_v3_syntax+:} false; then : 29211 $as_echo_n "(cached) " >&6 29212else 29213 gcc_cv_as_gcn_asm_v3_syntax=no 29214 if test x$gcc_cv_as != x; then 29215 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"' > conftest.s 29216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack -o conftest.o conftest.s >&5' 29217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29218 (eval $ac_try) 2>&5 29219 ac_status=$? 29220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29221 test $ac_status = 0; }; } 29222 then 29223 gcc_cv_as_gcn_asm_v3_syntax=yes 29224 else 29225 echo "configure: failed program was" >&5 29226 cat conftest.s >&5 29227 fi 29228 rm -f conftest.o conftest.s 29229 fi 29230fi 29231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v3_syntax" >&5 29232$as_echo "$gcc_cv_as_gcn_asm_v3_syntax" >&6; } 29233if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then 29234 29235$as_echo "#define HAVE_GCN_ASM_V3_SYNTAX 1" >>confdefs.h 29236 29237fi 29238 29239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v4 syntax" >&5 29240$as_echo_n "checking assembler for assembler amdgcn_target v4 syntax... " >&6; } 29241if ${gcc_cv_as_gcn_asm_v4_syntax+:} false; then : 29242 $as_echo_n "(cached) " >&6 29243else 29244 gcc_cv_as_gcn_asm_v4_syntax=no 29245 if test x$gcc_cv_as != x; then 29246 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"' > conftest.s 29247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack -o conftest.o conftest.s >&5' 29248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29249 (eval $ac_try) 2>&5 29250 ac_status=$? 29251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29252 test $ac_status = 0; }; } 29253 then 29254 gcc_cv_as_gcn_asm_v4_syntax=yes 29255 else 29256 echo "configure: failed program was" >&5 29257 cat conftest.s >&5 29258 fi 29259 rm -f conftest.o conftest.s 29260 fi 29261fi 29262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v4_syntax" >&5 29263$as_echo "$gcc_cv_as_gcn_asm_v4_syntax" >&6; } 29264if test $gcc_cv_as_gcn_asm_v4_syntax = yes; then 29265 29266$as_echo "#define HAVE_GCN_ASM_V4_SYNTAX 1" >>confdefs.h 29267 29268fi 29269 29270 29271 # Some attribute names changed in the move to v4 ... 29272 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then 29273 sramopt="+sram-ecc" 29274 sramattr="+sram-ecc" 29275 xnackattr="+xnack" 29276 elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then 29277 sramopt="+sramecc" 29278 sramattr=":sramecc+" 29279 xnackattr=":xnack+" 29280 else 29281 as_fn_error $? "Unrecognised assembler version" "$LINENO" 5 29282 fi 29283 29284 # Test whether the LLVM assembler accepts -mattr=+xnack without any 29285 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not, 29286 # LLVM 12+ throws a warning for GPUs without support. 29287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for fiji" >&5 29288$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for fiji... " >&6; } 29289if ${gcc_cv_as_gcn_xnack_ecc_fiji+:} false; then : 29290 $as_echo_n "(cached) " >&6 29291else 29292 gcc_cv_as_gcn_xnack_ecc_fiji=no 29293 if test x$gcc_cv_as != x; then 29294 $as_echo '' > conftest.s 29295 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' 29296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29297 (eval $ac_try) 2>&5 29298 ac_status=$? 29299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29300 test $ac_status = 0; }; } 29301 then 29302 grep "." conftest.err >&5 \ 29303 || gcc_cv_as_gcn_xnack_ecc_fiji=yes 29304 else 29305 echo "configure: failed program was" >&5 29306 cat conftest.s >&5 29307 fi 29308 rm -f conftest.o conftest.s 29309 fi 29310fi 29311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_fiji" >&5 29312$as_echo "$gcc_cv_as_gcn_xnack_ecc_fiji" >&6; } 29313if test $gcc_cv_as_gcn_xnack_ecc_fiji = yes; then 29314 29315$as_echo "#define HAVE_GCN_XNACK_FIJI 1" >>confdefs.h 29316 29317fi 29318 29319 rm -f conftest.err 29320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx900" >&5 29321$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx900... " >&6; } 29322if ${gcc_cv_as_gcn_xnack_ecc_gfx900+:} false; then : 29323 $as_echo_n "(cached) " >&6 29324else 29325 gcc_cv_as_gcn_xnack_ecc_gfx900=no 29326 if test x$gcc_cv_as != x; then 29327 $as_echo '' > conftest.s 29328 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' 29329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29330 (eval $ac_try) 2>&5 29331 ac_status=$? 29332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29333 test $ac_status = 0; }; } 29334 then 29335 grep "." conftest.err >&5 \ 29336 || gcc_cv_as_gcn_xnack_ecc_gfx900=yes 29337 else 29338 echo "configure: failed program was" >&5 29339 cat conftest.s >&5 29340 fi 29341 rm -f conftest.o conftest.s 29342 fi 29343fi 29344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx900" >&5 29345$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx900" >&6; } 29346if test $gcc_cv_as_gcn_xnack_ecc_gfx900 = yes; then 29347 29348$as_echo "#define HAVE_GCN_XNACK_GFX900 1" >>confdefs.h 29349 29350fi 29351 29352 rm -f conftest.err 29353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx906" >&5 29354$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx906... " >&6; } 29355if ${gcc_cv_as_gcn_xnack_ecc_gfx906+:} false; then : 29356 $as_echo_n "(cached) " >&6 29357else 29358 gcc_cv_as_gcn_xnack_ecc_gfx906=no 29359 if test x$gcc_cv_as != x; then 29360 $as_echo '' > conftest.s 29361 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' 29362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29363 (eval $ac_try) 2>&5 29364 ac_status=$? 29365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29366 test $ac_status = 0; }; } 29367 then 29368 grep "." conftest.err >&5 \ 29369 || gcc_cv_as_gcn_xnack_ecc_gfx906=yes 29370 else 29371 echo "configure: failed program was" >&5 29372 cat conftest.s >&5 29373 fi 29374 rm -f conftest.o conftest.s 29375 fi 29376fi 29377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx906" >&5 29378$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx906" >&6; } 29379if test $gcc_cv_as_gcn_xnack_ecc_gfx906 = yes; then 29380 29381$as_echo "#define HAVE_GCN_XNACK_GFX906 1" >>confdefs.h 29382 29383fi 29384 29385 rm -f conftest.err 29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx908" >&5 29387$as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx908... " >&6; } 29388if ${gcc_cv_as_gcn_xnack_ecc_gfx908+:} false; then : 29389 $as_echo_n "(cached) " >&6 29390else 29391 gcc_cv_as_gcn_xnack_ecc_gfx908=no 29392 if test x$gcc_cv_as != x; then 29393 $as_echo '' > conftest.s 29394 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' 29395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29396 (eval $ac_try) 2>&5 29397 ac_status=$? 29398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29399 test $ac_status = 0; }; } 29400 then 29401 grep "." conftest.err >&5 \ 29402 || gcc_cv_as_gcn_xnack_ecc_gfx908=yes 29403 else 29404 echo "configure: failed program was" >&5 29405 cat conftest.s >&5 29406 fi 29407 rm -f conftest.o conftest.s 29408 fi 29409fi 29410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx908" >&5 29411$as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx908" >&6; } 29412if test $gcc_cv_as_gcn_xnack_ecc_gfx908 = yes; then 29413 29414$as_echo "#define HAVE_GCN_XNACK_GFX908 1" >>confdefs.h 29415 29416fi 29417 29418 rm -f conftest.err 29419 29420 # Test whether the LLVM assembler accepts -mattr=+sramecc without any 29421 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not, 29422 # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning 29423 # for GPUs without support. 29424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for fiji" >&5 29425$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for fiji... " >&6; } 29426if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false; then : 29427 $as_echo_n "(cached) " >&6 29428else 29429 gcc_cv_as_gcn_sram_ecc_fiji=no 29430 if test x$gcc_cv_as != x; then 29431 $as_echo '' > conftest.s 29432 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' 29433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29434 (eval $ac_try) 2>&5 29435 ac_status=$? 29436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29437 test $ac_status = 0; }; } 29438 then 29439 grep "." conftest.err >&5 \ 29440 || gcc_cv_as_gcn_sram_ecc_fiji=yes 29441 else 29442 echo "configure: failed program was" >&5 29443 cat conftest.s >&5 29444 fi 29445 rm -f conftest.o conftest.s 29446 fi 29447fi 29448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5 29449$as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; } 29450if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then 29451 29452$as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h 29453 29454fi 29455 29456 rm -f conftest.err 29457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx900" >&5 29458$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx900... " >&6; } 29459if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false; then : 29460 $as_echo_n "(cached) " >&6 29461else 29462 gcc_cv_as_gcn_sram_ecc_gfx900=no 29463 if test x$gcc_cv_as != x; then 29464 $as_echo '' > conftest.s 29465 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' 29466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29467 (eval $ac_try) 2>&5 29468 ac_status=$? 29469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29470 test $ac_status = 0; }; } 29471 then 29472 grep "." conftest.err >&5 \ 29473 || gcc_cv_as_gcn_sram_ecc_gfx900=yes 29474 else 29475 echo "configure: failed program was" >&5 29476 cat conftest.s >&5 29477 fi 29478 rm -f conftest.o conftest.s 29479 fi 29480fi 29481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5 29482$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; } 29483if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then 29484 29485$as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h 29486 29487fi 29488 29489 rm -f conftest.err 29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx906" >&5 29491$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx906... " >&6; } 29492if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false; then : 29493 $as_echo_n "(cached) " >&6 29494else 29495 gcc_cv_as_gcn_sram_ecc_gfx906=no 29496 if test x$gcc_cv_as != x; then 29497 $as_echo '' > conftest.s 29498 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' 29499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29500 (eval $ac_try) 2>&5 29501 ac_status=$? 29502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29503 test $ac_status = 0; }; } 29504 then 29505 grep "." conftest.err >&5 \ 29506 || gcc_cv_as_gcn_sram_ecc_gfx906=yes 29507 else 29508 echo "configure: failed program was" >&5 29509 cat conftest.s >&5 29510 fi 29511 rm -f conftest.o conftest.s 29512 fi 29513fi 29514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5 29515$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; } 29516if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then 29517 29518$as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h 29519 29520fi 29521 29522 rm -f conftest.err 29523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx908" >&5 29524$as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx908... " >&6; } 29525if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false; then : 29526 $as_echo_n "(cached) " >&6 29527else 29528 gcc_cv_as_gcn_sram_ecc_gfx908=no 29529 if test x$gcc_cv_as != x; then 29530 $as_echo '' > conftest.s 29531 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' 29532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29533 (eval $ac_try) 2>&5 29534 ac_status=$? 29535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29536 test $ac_status = 0; }; } 29537 then 29538 grep "." conftest.err >&5 \ 29539 || gcc_cv_as_gcn_sram_ecc_gfx908=yes 29540 else 29541 echo "configure: failed program was" >&5 29542 cat conftest.s >&5 29543 fi 29544 rm -f conftest.o conftest.s 29545 fi 29546fi 29547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5 29548$as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; } 29549if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then 29550 29551$as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h 29552 29553fi 29554 29555 rm -f conftest.err 29556 ;; 29557 arm*) 29558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5 29559$as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; } 29560if ${gcc_cv_as_arm_option_extensions+:} false; then : 29561 $as_echo_n "(cached) " >&6 29562else 29563 gcc_cv_as_arm_option_extensions=no 29564 if test x$gcc_cv_as != x; then 29565 $as_echo '.text 29566 .thumb 29567 .syntax unified 29568 vmov.f32 s0, s1' > conftest.s 29569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5' 29570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29571 (eval $ac_try) 2>&5 29572 ac_status=$? 29573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29574 test $ac_status = 0; }; } 29575 then 29576 gcc_cv_as_arm_option_extensions=yes 29577 else 29578 echo "configure: failed program was" >&5 29579 cat conftest.s >&5 29580 fi 29581 rm -f conftest.o conftest.s 29582 fi 29583fi 29584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5 29585$as_echo "$gcc_cv_as_arm_option_extensions" >&6; } 29586if test $gcc_cv_as_arm_option_extensions = yes; then 29587 29588$as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h 29589 29590fi 29591 29592esac 29593 29594# ??? Not all targets support dwarf2 debug_line, even within a version 29595# of gas. Moreover, we need to emit a valid instruction to trigger any 29596# info to the output file. So, as supported targets are added to gas 2.11, 29597# add some instruction here to (also) show we expect this might work. 29598# ??? Once 2.11 is released, probably need to add first known working 29599# version to the per-target configury. 29600case "$cpu_type" in 29601 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \ 29602 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \ 29603 | tilegx | tilepro | visium | xstormy16 | xtensa) 29604 insn="nop" 29605 ;; 29606 ia64 | s390) 29607 insn="nop 0" 29608 ;; 29609 mmix) 29610 insn="swym 0" 29611 ;; 29612esac 29613if test x"$insn" != x; then 29614 conftest_s="\ 29615 .file 1 \"conftest.s\" 29616 .loc 1 3 0 29617 $insn" 29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5 29619$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; } 29620if ${gcc_cv_as_dwarf2_debug_line+:} false; then : 29621 $as_echo_n "(cached) " >&6 29622else 29623 gcc_cv_as_dwarf2_debug_line=no 29624 if test x$gcc_cv_as != x; then 29625 $as_echo "$conftest_s" > conftest.s 29626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29628 (eval $ac_try) 2>&5 29629 ac_status=$? 29630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29631 test $ac_status = 0; }; } 29632 then 29633 if test x$gcc_cv_objdump != x \ 29634 && $gcc_cv_objdump -h conftest.o 2> /dev/null \ 29635 | grep debug_line > /dev/null 2>&1; then 29636 gcc_cv_as_dwarf2_debug_line=yes 29637 elif test x$gcc_cv_otool != x \ 29638 && $gcc_cv_otool -l conftest.o 2> /dev/null \ 29639 | grep debug_line > /dev/null 2>&1; then 29640 gcc_cv_as_dwarf2_debug_line=yes 29641 fi 29642 else 29643 echo "configure: failed program was" >&5 29644 cat conftest.s >&5 29645 fi 29646 rm -f conftest.o conftest.s 29647 fi 29648fi 29649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5 29650$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; } 29651 29652 29653 29654# The .debug_line file table must be in the exact order that 29655# we specified the files, since these indices are also used 29656# by DW_AT_decl_file. Approximate this test by testing if 29657# the assembler bitches if the same index is assigned twice. 29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5 29659$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; } 29660if ${gcc_cv_as_dwarf2_file_buggy+:} false; then : 29661 $as_echo_n "(cached) " >&6 29662else 29663 gcc_cv_as_dwarf2_file_buggy=no 29664 if test x$gcc_cv_as != x; then 29665 $as_echo ' .file 1 "foo.s" 29666 .file 1 "bar.s"' > conftest.s 29667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29669 (eval $ac_try) 2>&5 29670 ac_status=$? 29671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29672 test $ac_status = 0; }; } 29673 then 29674 gcc_cv_as_dwarf2_file_buggy=yes 29675 else 29676 echo "configure: failed program was" >&5 29677 cat conftest.s >&5 29678 fi 29679 rm -f conftest.o conftest.s 29680 fi 29681fi 29682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5 29683$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; } 29684 29685 29686 29687 if test $gcc_cv_as_dwarf2_debug_line = yes \ 29688 && test $gcc_cv_as_dwarf2_file_buggy = no; then 29689 29690$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h 29691 29692 29693 if test $gcc_cv_as_leb128 = yes; then 29694 conftest_s="\ 29695 .file 1 \"conftest.s\" 29696 .loc 1 3 0 view .LVU1 29697 $insn 29698 .data 29699 .uleb128 .LVU1 29700 .uleb128 .LVU1 29701" 29702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5 29703$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; } 29704if ${gcc_cv_as_dwarf2_debug_view+:} false; then : 29705 $as_echo_n "(cached) " >&6 29706else 29707 gcc_cv_as_dwarf2_debug_view=no 29708 if test x$gcc_cv_as != x; then 29709 $as_echo "$conftest_s" > conftest.s 29710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29712 (eval $ac_try) 2>&5 29713 ac_status=$? 29714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29715 test $ac_status = 0; }; } 29716 then 29717 gcc_cv_as_dwarf2_debug_view=yes 29718 else 29719 echo "configure: failed program was" >&5 29720 cat conftest.s >&5 29721 fi 29722 rm -f conftest.o conftest.s 29723 fi 29724fi 29725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5 29726$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; } 29727if test $gcc_cv_as_dwarf2_debug_view = yes; then 29728 29729$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h 29730 29731fi 29732 29733 fi 29734 fi 29735 29736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5 29737$as_echo_n "checking assembler for --gdwarf2 option... " >&6; } 29738if ${gcc_cv_as_gdwarf2_flag+:} false; then : 29739 $as_echo_n "(cached) " >&6 29740else 29741 gcc_cv_as_gdwarf2_flag=no 29742 if test x$gcc_cv_as != x; then 29743 $as_echo "$insn" > conftest.s 29744 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5' 29745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29746 (eval $ac_try) 2>&5 29747 ac_status=$? 29748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29749 test $ac_status = 0; }; } 29750 then 29751 gcc_cv_as_gdwarf2_flag=yes 29752 else 29753 echo "configure: failed program was" >&5 29754 cat conftest.s >&5 29755 fi 29756 rm -f conftest.o conftest.s 29757 fi 29758fi 29759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5 29760$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; } 29761if test $gcc_cv_as_gdwarf2_flag = yes; then 29762 29763$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h 29764 29765fi 29766 29767 29768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5 29769$as_echo_n "checking assembler for --gdwarf-5 option... " >&6; } 29770if ${gcc_cv_as_gdwarf_5_flag+:} false; then : 29771 $as_echo_n "(cached) " >&6 29772else 29773 gcc_cv_as_gdwarf_5_flag=no 29774 if test x$gcc_cv_as != x; then 29775 $as_echo "$insn" > conftest.s 29776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5' 29777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29778 (eval $ac_try) 2>&5 29779 ac_status=$? 29780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29781 test $ac_status = 0; }; } 29782 then 29783 if test x$gcc_cv_objdump != x \ 29784 && $gcc_cv_objdump -Wi conftest.o 2>&1 \ 29785 | grep DW_TAG_compile_unit > /dev/null 2>&1; then 29786 gcc_cv_as_gdwarf_5_flag=yes; 29787 fi 29788 else 29789 echo "configure: failed program was" >&5 29790 cat conftest.s >&5 29791 fi 29792 rm -f conftest.o conftest.s 29793 fi 29794fi 29795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5 29796$as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; } 29797if test $gcc_cv_as_gdwarf_5_flag = yes; then 29798 29799$as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h 29800 29801fi 29802 29803 29804 case $target_os in 29805 win32 | pe | cygwin* | mingw32*) 29806 section_flags=\"dr\" 29807 function_type=".def foo; .scl 2; .type 32; .endef" 29808 function_size="";; 29809 *) 29810 section_flags=\"\",%progbits 29811 function_type=".type foo, %function" 29812 function_size=".size foo, .-foo";; 29813 esac 29814 dwarf4_debug_info_size=0x46 29815 dwarf4_high_pc_form=7 29816 dwarf4_debug_aranges_size=0x2c 29817 dwarf4_line_sz=9 29818 for dwarf4_addr_size in 8 4; do 29819 conftest_s="\ 29820 .file \"a.c\" 29821 .text 29822.Ltext0: 29823 .p2align 4 29824 .globl foo 29825 $function_type 29826foo: 29827.LFB0: 29828.LM1: 29829 $insn 29830.LM2: 29831.LFE0: 29832 $function_size 29833.Letext0: 29834 .section .debug_info,$section_flags 29835.Ldebug_info0: 29836 .4byte $dwarf4_debug_info_size 29837 .2byte 0x4 29838 .4byte .Ldebug_abbrev0 29839 .byte 0x$dwarf4_addr_size 29840 .byte 0x1 29841 .ascii \"GNU C17\\0\" 29842 .byte 0xc 29843 .ascii \"a.c\\0\" 29844 .ascii \"/\\0\" 29845 .${dwarf4_addr_size}byte .Ltext0 29846 .${dwarf4_addr_size}byte .Letext0-.Ltext0 29847 .4byte .Ldebug_line0 29848 .byte 0x2 29849 .ascii \"foo\\0\" 29850 .byte 0x1 29851 .byte 0x2 29852 .byte 0x1 29853 .${dwarf4_addr_size}byte .LFB0 29854 .${dwarf4_addr_size}byte .LFE0-.LFB0 29855 .byte 0x1 29856 .byte 0x9c 29857 .byte 0 29858 .section .debug_abbrev,$section_flags 29859.Ldebug_abbrev0: 29860 .byte 0x1 29861 .byte 0x11 29862 .byte 0x1 29863 .byte 0x25 29864 .byte 0x8 29865 .byte 0x13 29866 .byte 0xb 29867 .byte 0x3 29868 .byte 0x8 29869 .byte 0x1b 29870 .byte 0x8 29871 .byte 0x11 29872 .byte 0x1 29873 .byte 0x12 29874 .byte 0x$dwarf4_high_pc_form 29875 .byte 0x10 29876 .byte 0x17 29877 .byte 0 29878 .byte 0 29879 .byte 0x2 29880 .byte 0x2e 29881 .byte 0 29882 .byte 0x3f 29883 .byte 0x19 29884 .byte 0x3 29885 .byte 0x8 29886 .byte 0x3a 29887 .byte 0xb 29888 .byte 0x3b 29889 .byte 0xb 29890 .byte 0x39 29891 .byte 0xb 29892 .byte 0x11 29893 .byte 0x1 29894 .byte 0x12 29895 .byte 0x$dwarf4_high_pc_form 29896 .byte 0x40 29897 .byte 0x18 29898 .byte 0 29899 .byte 0 29900 .byte 0 29901 .section .debug_aranges,$section_flags 29902 .4byte $dwarf4_debug_aranges_size 29903 .2byte 0x2 29904 .4byte .Ldebug_info0 29905 .byte 0x8 29906 .byte 0 29907 .2byte 0 29908 .2byte 0 29909 .${dwarf4_addr_size}byte .Ltext0 29910 .${dwarf4_addr_size}byte .Letext0-.Ltext0 29911 .${dwarf4_addr_size}byte 0 29912 .${dwarf4_addr_size}byte 0 29913 .section .debug_line,$section_flags 29914.Ldebug_line0: 29915 .4byte .LELT0-.LSLT0 29916.LSLT0: 29917 .2byte 0x4 29918 .4byte .LELTP0-.LASLTP0 29919.LASLTP0: 29920 .byte 0x1 29921 .byte 0x1 29922 .byte 0x1 29923 .byte 0xf6 29924 .byte 0xf2 29925 .byte 0xd 29926 .byte 0 29927 .byte 0x1 29928 .byte 0x1 29929 .byte 0x1 29930 .byte 0x1 29931 .byte 0 29932 .byte 0 29933 .byte 0 29934 .byte 0x1 29935 .byte 0 29936 .byte 0 29937 .byte 0x1 29938 .byte 0 29939 .ascii \"a.c\\0\" 29940 .byte 0 29941 .byte 0 29942 .byte 0 29943 .byte 0 29944.LELTP0: 29945 .byte 0 29946 .byte 0x$dwarf4_line_sz 29947 .byte 0x2 29948 .${dwarf4_addr_size}byte .LM1 29949 .byte 0x18 29950 .byte 0x5 29951 .byte 0x1 29952 .byte 0 29953 .byte 0x$dwarf4_line_sz 29954 .byte 0x2 29955 .${dwarf4_addr_size}byte .LM2 29956 .byte 0x1 29957 .byte 0x5 29958 .byte 0x1 29959 .byte 0 29960 .byte 0x$dwarf4_line_sz 29961 .byte 0x2 29962 .${dwarf4_addr_size}byte .Letext0 29963 .byte 0 29964 .byte 0x1 29965 .byte 0x1 29966.LELT0: 29967 .section .debug_str,$section_flags 29968 .ident \"GCC\" 29969" 29970 dwarf4_success=no 29971 if test $dwarf4_addr_size = 4; then 29972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5 29973$as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; } 29974if ${gcc_cv_as_debug_line_32_flag+:} false; then : 29975 $as_echo_n "(cached) " >&6 29976else 29977 gcc_cv_as_debug_line_32_flag=no 29978 if test x$gcc_cv_as != x; then 29979 $as_echo "$conftest_s" > conftest.s 29980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 29981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 29982 (eval $ac_try) 2>&5 29983 ac_status=$? 29984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29985 test $ac_status = 0; }; } 29986 then 29987 gcc_cv_as_debug_line_32_flag=yes 29988 else 29989 echo "configure: failed program was" >&5 29990 cat conftest.s >&5 29991 fi 29992 rm -f conftest.o conftest.s 29993 fi 29994fi 29995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5 29996$as_echo "$gcc_cv_as_debug_line_32_flag" >&6; } 29997if test $gcc_cv_as_debug_line_32_flag = yes; then 29998 dwarf4_success=yes 29999fi 30000 30001 else 30002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5 30003$as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; } 30004if ${gcc_cv_as_debug_line_64_flag+:} false; then : 30005 $as_echo_n "(cached) " >&6 30006else 30007 gcc_cv_as_debug_line_64_flag=no 30008 if test x$gcc_cv_as != x; then 30009 $as_echo "$conftest_s" > conftest.s 30010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 30011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30012 (eval $ac_try) 2>&5 30013 ac_status=$? 30014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30015 test $ac_status = 0; }; } 30016 then 30017 gcc_cv_as_debug_line_64_flag=yes 30018 else 30019 echo "configure: failed program was" >&5 30020 cat conftest.s >&5 30021 fi 30022 rm -f conftest.o conftest.s 30023 fi 30024fi 30025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5 30026$as_echo "$gcc_cv_as_debug_line_64_flag" >&6; } 30027if test $gcc_cv_as_debug_line_64_flag = yes; then 30028 dwarf4_success=yes 30029fi 30030 30031 fi 30032 if test $dwarf4_success = yes; then 30033 dwarf4_success=no 30034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5 30035$as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; } 30036if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then : 30037 $as_echo_n "(cached) " >&6 30038else 30039 gcc_cv_as_dwarf_4_debug_line_flag=no 30040 if test x$gcc_cv_as != x; then 30041 $as_echo "$conftest_s" > conftest.s 30042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5' 30043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30044 (eval $ac_try) 2>&5 30045 ac_status=$? 30046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30047 test $ac_status = 0; }; } 30048 then 30049 gcc_cv_as_dwarf_4_debug_line_flag=yes 30050 else 30051 echo "configure: failed program was" >&5 30052 cat conftest.s >&5 30053 fi 30054 rm -f conftest.o conftest.s 30055 fi 30056fi 30057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5 30058$as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; } 30059if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then 30060 dwarf4_success=yes 30061fi 30062 30063 break 30064 fi 30065 dwarf4_debug_info_size=0x36 30066 dwarf4_high_pc_form=6 30067 dwarf4_debug_aranges_size=0x1c 30068 dwarf4_line_sz=5 30069 done 30070 30071 if test $dwarf4_success = yes; then 30072 conftest_s="\ 30073 .file \"foo.c\" 30074 .text 30075bar: 30076#APP 30077# 82 \"xxx.h\" 1 30078 $insn 30079# 0 \"\" 2 30080#NO_APP 30081 $insn 30082foo: 30083 .file 1 \"foo.c\" 30084 $insn 30085 .file 2 \"foo.h\" 30086 ret 30087" 30088 dwarf4_success=no 30089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5 30090$as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; } 30091if ${gcc_cv_as_dwarf_4_app_flag+:} false; then : 30092 $as_echo_n "(cached) " >&6 30093else 30094 gcc_cv_as_dwarf_4_app_flag=no 30095 if test x$gcc_cv_as != x; then 30096 $as_echo "$conftest_s" > conftest.s 30097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5' 30098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30099 (eval $ac_try) 2>&5 30100 ac_status=$? 30101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30102 test $ac_status = 0; }; } 30103 then 30104 gcc_cv_as_dwarf_4_app_flag=yes 30105 else 30106 echo "configure: failed program was" >&5 30107 cat conftest.s >&5 30108 fi 30109 rm -f conftest.o conftest.s 30110 fi 30111fi 30112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5 30113$as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; } 30114if test $gcc_cv_as_dwarf_4_app_flag = yes; then 30115 dwarf4_success=yes 30116fi 30117 30118 fi 30119 30120 if test $dwarf4_success = yes; then 30121 conftest_s="\ 30122 .text 30123 .globl foo 30124 $function_type 30125foo: 30126 $insn 30127 $function_size 30128 .file 1 \"foo.c\" 30129" 30130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5 30131$as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; } 30132if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then : 30133 $as_echo_n "(cached) " >&6 30134else 30135 gcc_cv_as_working_gdwarf_n_flag=no 30136 if test x$gcc_cv_as != x; then 30137 $as_echo "$conftest_s" > conftest.s 30138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5' 30139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30140 (eval $ac_try) 2>&5 30141 ac_status=$? 30142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30143 test $ac_status = 0; }; } 30144 then 30145 if test x$gcc_cv_objdump != x \ 30146 && $gcc_cv_objdump -W conftest.o 2>&1 \ 30147 | grep conftest.s > /dev/null 2>&1; then 30148 gcc_cv_as_working_gdwarf_n_flag=no 30149 else 30150 gcc_cv_as_working_gdwarf_n_flag=yes 30151 fi 30152 else 30153 echo "configure: failed program was" >&5 30154 cat conftest.s >&5 30155 fi 30156 rm -f conftest.o conftest.s 30157 fi 30158fi 30159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5 30160$as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; } 30161 30162 30163 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then 30164 30165$as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h 30166 30167 fi 30168 fi 30169 30170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5 30171$as_echo_n "checking assembler for --gstabs option... " >&6; } 30172if ${gcc_cv_as_gstabs_flag+:} false; then : 30173 $as_echo_n "(cached) " >&6 30174else 30175 gcc_cv_as_gstabs_flag=no 30176 if test x$gcc_cv_as != x; then 30177 $as_echo "$insn" > conftest.s 30178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5' 30179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30180 (eval $ac_try) 2>&5 30181 ac_status=$? 30182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30183 test $ac_status = 0; }; } 30184 then 30185 gcc_cv_as_gstabs_flag=yes 30186 else 30187 echo "configure: failed program was" >&5 30188 cat conftest.s >&5 30189 fi 30190 rm -f conftest.o conftest.s 30191 fi 30192fi 30193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5 30194$as_echo "$gcc_cv_as_gstabs_flag" >&6; } 30195if test $gcc_cv_as_gstabs_flag = yes; then 30196 30197$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h 30198 30199fi 30200 30201 30202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5 30203$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; } 30204if ${gcc_cv_as_debug_prefix_map_flag+:} false; then : 30205 $as_echo_n "(cached) " >&6 30206else 30207 gcc_cv_as_debug_prefix_map_flag=no 30208 if test x$gcc_cv_as != x; then 30209 $as_echo "$insn" > conftest.s 30210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5' 30211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30212 (eval $ac_try) 2>&5 30213 ac_status=$? 30214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30215 test $ac_status = 0; }; } 30216 then 30217 gcc_cv_as_debug_prefix_map_flag=yes 30218 else 30219 echo "configure: failed program was" >&5 30220 cat conftest.s >&5 30221 fi 30222 rm -f conftest.o conftest.s 30223 fi 30224fi 30225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5 30226$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; } 30227if test $gcc_cv_as_debug_prefix_map_flag = yes; then 30228 30229$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h 30230 30231fi 30232 30233fi 30234 30235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5 30236$as_echo_n "checking assembler for compressed debug sections... " >&6; } 30237if ${gcc_cv_as_compress_debug+:} false; then : 30238 $as_echo_n "(cached) " >&6 30239else 30240 gcc_cv_as_compress_debug=no 30241 if test x$gcc_cv_as != x; then 30242 $as_echo '' > conftest.s 30243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 30244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30245 (eval $ac_try) 2>&5 30246 ac_status=$? 30247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30248 test $ac_status = 0; }; } 30249 then 30250 # gas compiled without zlib cannot compress debug sections and warns 30251 # about it, but still exits successfully. So check for this, too. 30252 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null 30253 then 30254 gcc_cv_as_compress_debug=0 30255 # Since binutils 2.26, gas supports --compress-debug-sections=type, 30256 # defaulting to the ELF gABI format. 30257 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1 30258 then 30259 gcc_cv_as_compress_debug=2 30260 gcc_cv_as_compress_debug_option="--compress-debug-sections" 30261 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections" 30262 # Before binutils 2.26, gas only supported --compress-debug-options and 30263 # emitted the traditional GNU format. 30264 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1 30265 then 30266 gcc_cv_as_compress_debug=1 30267 gcc_cv_as_compress_debug_option="--compress-debug-sections" 30268 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections" 30269 else 30270 gcc_cv_as_compress_debug=0 30271 fi 30272 else 30273 echo "configure: failed program was" >&5 30274 cat conftest.s >&5 30275 fi 30276 rm -f conftest.o conftest.s 30277 fi 30278fi 30279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5 30280$as_echo "$gcc_cv_as_compress_debug" >&6; } 30281 30282 30283 30284cat >>confdefs.h <<_ACEOF 30285#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug 30286_ACEOF 30287 30288 30289cat >>confdefs.h <<_ACEOF 30290#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option" 30291_ACEOF 30292 30293 30294cat >>confdefs.h <<_ACEOF 30295#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option" 30296_ACEOF 30297 30298 30299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5 30300$as_echo_n "checking assembler for .lcomm with alignment... " >&6; } 30301if ${gcc_cv_as_lcomm_with_alignment+:} false; then : 30302 $as_echo_n "(cached) " >&6 30303else 30304 gcc_cv_as_lcomm_with_alignment=no 30305 if test x$gcc_cv_as != x; then 30306 $as_echo '.lcomm bar,4,16' > conftest.s 30307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 30308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30309 (eval $ac_try) 2>&5 30310 ac_status=$? 30311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30312 test $ac_status = 0; }; } 30313 then 30314 gcc_cv_as_lcomm_with_alignment=yes 30315 else 30316 echo "configure: failed program was" >&5 30317 cat conftest.s >&5 30318 fi 30319 rm -f conftest.o conftest.s 30320 fi 30321fi 30322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5 30323$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; } 30324if test $gcc_cv_as_lcomm_with_alignment = yes; then 30325 30326$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h 30327 30328fi 30329 30330 30331if test x$with_sysroot = x && test x$host = x$target \ 30332 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \ 30333 && test "$prefix" != "NONE"; then 30334 30335cat >>confdefs.h <<_ACEOF 30336#define PREFIX_INCLUDE_DIR "$prefix/include" 30337_ACEOF 30338 30339fi 30340 30341# Determine the version of glibc, if any, used on the target. 30342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5 30343$as_echo_n "checking for target glibc version... " >&6; } 30344 30345# Check whether --with-glibc-version was given. 30346if test "${with_glibc_version+set}" = set; then : 30347 withval=$with_glibc_version; 30348if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then 30349 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'` 30350 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'` 30351else 30352 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5 30353fi 30354else 30355 30356glibc_version_major=0 30357glibc_version_minor=0 30358if test -f $target_header_dir/features.h \ 30359 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \ 30360 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then 30361 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'` 30362 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'` 30363fi 30364fi 30365 30366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5 30367$as_echo "$glibc_version_major.$glibc_version_minor" >&6; } 30368 30369cat >>confdefs.h <<_ACEOF 30370#define TARGET_GLIBC_MAJOR $glibc_version_major 30371_ACEOF 30372 30373 30374cat >>confdefs.h <<_ACEOF 30375#define TARGET_GLIBC_MINOR $glibc_version_minor 30376_ACEOF 30377 30378 30379# Check whether --enable-gnu-unique-object was given. 30380if test "${enable_gnu_unique_object+set}" = set; then : 30381 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in 30382 yes | no) ;; 30383 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object. 30384Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 30385 esac 30386else 30387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5 30388$as_echo_n "checking assembler for gnu_unique_object... " >&6; } 30389if ${gcc_cv_as_gnu_unique_object+:} false; then : 30390 $as_echo_n "(cached) " >&6 30391else 30392 gcc_cv_as_gnu_unique_object=no 30393 if test x$gcc_cv_as != x; then 30394 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s 30395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 30396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30397 (eval $ac_try) 2>&5 30398 ac_status=$? 30399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30400 test $ac_status = 0; }; } 30401 then 30402 gcc_cv_as_gnu_unique_object=yes 30403 else 30404 echo "configure: failed program was" >&5 30405 cat conftest.s >&5 30406 fi 30407 rm -f conftest.o conftest.s 30408 fi 30409fi 30410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5 30411$as_echo "$gcc_cv_as_gnu_unique_object" >&6; } 30412if test $gcc_cv_as_gnu_unique_object = yes; then 30413 # We need to unquote above to to use the definition from config.gcc. 30414# Also check for ld.so support, i.e. glibc 2.11 or higher. 30415 30416if test $glibc_version_major -gt 2 \ 30417 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then : 30418 enable_gnu_unique_object=yes 30419fi 30420 30421fi 30422 30423fi 30424 30425if test x$enable_gnu_unique_object = xyes; then 30426 30427$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h 30428 30429fi 30430 30431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5 30432$as_echo_n "checking assembler for tolerance to line number 0... " >&6; } 30433if ${gcc_cv_as_line_zero+:} false; then : 30434 $as_echo_n "(cached) " >&6 30435else 30436 gcc_cv_as_line_zero=no 30437 if test "x$gcc_cv_as" != x; then 30438 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s 30439 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out' 30440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 30441 (eval $ac_try) 2>&5 30442 ac_status=$? 30443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30444 test $ac_status = 0; }; } && 30445 test "x`cat conftest.out`" = x 30446 then 30447 gcc_cv_as_line_zero=yes 30448 else 30449 echo "configure: failed program was" >&5 30450 cat conftest.s >&5 30451 echo "configure: error output was" >&5 30452 cat conftest.out >&5 30453 fi 30454 rm -f conftest.o conftest.s conftest.out 30455 fi 30456fi 30457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5 30458$as_echo "$gcc_cv_as_line_zero" >&6; } 30459if test "x$gcc_cv_as_line_zero" = xyes; then 30460 30461$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h 30462 30463fi 30464 30465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5 30466$as_echo_n "checking support for thin archives... " >&6; } 30467thin_archive_support=no 30468echo 'int main (void) { return 0; }' > conftest.c 30469if ($AR --version | sed 1q | grep "GNU ar" \ 30470 && $CC $CFLAGS -c conftest.c \ 30471 && $AR rcT conftest.a conftest.o \ 30472 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then 30473 thin_archive_support=yes 30474fi 30475rm -f conftest.c conftest.o conftest.a conftest 30476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5 30477$as_echo "$thin_archive_support" >&6; } 30478 30479 30480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5 30481$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; } 30482gcc_cv_ld_eh_frame_hdr=no 30483if test $in_tree_ld = yes ; then 30484 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 \ 30485 && test $in_tree_ld_is_elf = yes; then 30486 gcc_cv_ld_eh_frame_hdr=yes 30487 fi 30488elif test x$gcc_cv_ld != x; then 30489 if echo "$ld_ver" | grep GNU > /dev/null; then 30490 # Check if linker supports --eh-frame-hdr option 30491 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then 30492 gcc_cv_ld_eh_frame_hdr=yes 30493 fi 30494 else 30495 case "$target" in 30496 *-*-solaris2*) 30497 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251. 30498 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then 30499 gcc_cv_ld_eh_frame_hdr=yes 30500 fi 30501 ;; 30502 esac 30503 fi 30504fi 30505 30506if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then 30507 30508$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h 30509 30510fi 30511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5 30512$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; } 30513 30514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5 30515$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; } 30516gcc_cv_ld_eh_frame_ciev3=no 30517if test $in_tree_ld = yes ; then 30518 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 \ 30519 && test $in_tree_ld_is_elf = yes; then 30520 gcc_cv_ld_eh_frame_ciev3=yes 30521 fi 30522elif test x$gcc_cv_ld != x; then 30523 if echo "$ld_ver" | grep GNU > /dev/null; then 30524 gcc_cv_ld_eh_frame_ciev3=yes 30525 if test 0"$ld_date" -lt 20040513; then 30526 if test -n "$ld_date"; then 30527 # If there was date string, but was earlier than 2004-05-13, fail 30528 gcc_cv_ld_eh_frame_ciev3=no 30529 elif test "$ld_vers_major" -lt 2; then 30530 gcc_cv_ld_eh_frame_ciev3=no 30531 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 30532 gcc_cv_ld_eh_frame_ciev3=no 30533 fi 30534 fi 30535 else 30536 case "$target" in 30537 *-*-solaris2*) 30538 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1. 30539 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then 30540 gcc_cv_ld_eh_frame_ciev3=yes 30541 fi 30542 ;; 30543 esac 30544 fi 30545fi 30546 30547cat >>confdefs.h <<_ACEOF 30548#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi` 30549_ACEOF 30550 30551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5 30552$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; } 30553 30554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5 30555$as_echo_n "checking linker position independent executable support... " >&6; } 30556gcc_cv_ld_pie=no 30557if test $in_tree_ld = yes ; then 30558 case "$target" in 30559 # Full PIE support on Solaris was only introduced in gld 2.26. 30560 *-*-solaris2*) gcc_gld_pie_min_version=26 ;; 30561 *) gcc_gld_pie_min_version=15 ;; 30562 esac 30563 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 \ 30564 && test $in_tree_ld_is_elf = yes; then 30565 gcc_cv_ld_pie=yes 30566 fi 30567elif test x$gcc_cv_ld != x; then 30568 # Check if linker supports -pie option 30569 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then 30570 gcc_cv_ld_pie=yes 30571 case "$target" in 30572 *-*-solaris2*) 30573 if echo "$ld_ver" | grep GNU > /dev/null \ 30574 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then 30575 gcc_cv_ld_pie=no 30576 fi 30577 ;; 30578 esac 30579 else 30580 case "$target" in 30581 *-*-solaris2.1[1-9]*) 30582 # Solaris 11.3 added PIE support. 30583 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then 30584 gcc_cv_ld_pie=yes 30585 fi 30586 ;; 30587 esac 30588 fi 30589fi 30590if test x"$gcc_cv_ld_pie" = xyes; then 30591 30592$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h 30593 30594fi 30595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5 30596$as_echo "$gcc_cv_ld_pie" >&6; } 30597 30598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5 30599$as_echo_n "checking linker PIE support with copy reloc... " >&6; } 30600gcc_cv_ld_pie_copyreloc=no 30601if test $gcc_cv_ld_pie = yes ; then 30602 if test $in_tree_ld = yes ; then 30603 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 30604 gcc_cv_ld_pie_copyreloc=yes 30605 fi 30606 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 30607 # Check if linker supports -pie option with copy reloc 30608 case "$target" in 30609 i?86-*-linux* | x86_64-*-linux*) 30610 cat > conftest1.s <<EOF 30611 .globl a_glob 30612 .data 30613 .type a_glob, @object 30614 .size a_glob, 4 30615a_glob: 30616 .long 2 30617EOF 30618 cat > conftest2.s <<EOF 30619 .text 30620 .globl main 30621 .type main, @function 30622main: 30623 movl %eax, a_glob(%rip) 30624 .size main, .-main 30625 .globl ptr 30626 .section .data.rel,"aw",@progbits 30627 .type ptr, @object 30628ptr: 30629 .quad a_glob 30630EOF 30631 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 30632 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \ 30633 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 30634 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then 30635 gcc_cv_ld_pie_copyreloc=yes 30636 fi 30637 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s 30638 ;; 30639 esac 30640 fi 30641fi 30642 30643cat >>confdefs.h <<_ACEOF 30644#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi` 30645_ACEOF 30646 30647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5 30648$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; } 30649 30650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5 30651$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; } 30652gcc_cv_ld_eh_gc_sections=no 30653if test $in_tree_ld = yes ; then 30654 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 \ 30655 && test $in_tree_ld_is_elf = yes; then 30656 gcc_cv_ld_eh_gc_sections=yes 30657 fi 30658elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 30659 cat > conftest.s <<EOF 30660 .section .text 30661.globl _start 30662 .type _start, @function 30663_start: 30664 .long foo 30665 .size _start, .-_start 30666 .section .text.foo,"ax",@progbits 30667 .type foo, @function 30668foo: 30669 .long 0 30670 .size foo, .-foo 30671 .section .gcc_except_table.foo,"a",@progbits 30672.L0: 30673 .long 0 30674 .section .eh_frame,"a",@progbits 30675 .long .L0 30676EOF 30677 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 30678 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 30679 | grep "gc-sections option ignored" > /dev/null; then 30680 gcc_cv_ld_eh_gc_sections=no 30681 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 30682 | grep gcc_except_table > /dev/null; then 30683 gcc_cv_ld_eh_gc_sections=yes 30684 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections. 30685 if test x$gcc_cv_as_comdat_group != xyes; then 30686 gcc_cv_ld_eh_gc_sections=no 30687 cat > conftest.s <<EOF 30688 .section .text 30689.globl _start 30690 .type _start, @function 30691_start: 30692 .long foo 30693 .size _start, .-_start 30694 .section .gnu.linkonce.t.foo,"ax",@progbits 30695 .type foo, @function 30696foo: 30697 .long 0 30698 .size foo, .-foo 30699 .section .gcc_except_table.foo,"a",@progbits 30700.L0: 30701 .long 0 30702 .section .eh_frame,"a",@progbits 30703 .long .L0 30704EOF 30705 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 30706 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 30707 | grep "gc-sections option ignored" > /dev/null; then 30708 gcc_cv_ld_eh_gc_sections=no 30709 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 30710 | grep gcc_except_table > /dev/null; then 30711 gcc_cv_ld_eh_gc_sections=yes 30712 fi 30713 fi 30714 fi 30715 fi 30716 fi 30717 rm -f conftest.s conftest.o conftest 30718fi 30719case "$target" in 30720 hppa*-*-linux*) 30721 # ??? This apparently exposes a binutils bug with PC-relative relocations. 30722 gcc_cv_ld_eh_gc_sections=no 30723 ;; 30724esac 30725if test x$gcc_cv_ld_eh_gc_sections = xyes; then 30726 30727$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h 30728 30729fi 30730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5 30731$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; } 30732 30733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5 30734$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; } 30735gcc_cv_ld_eh_gc_sections_bug=no 30736if test $in_tree_ld = yes ; then 30737 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 \ 30738 && test $in_tree_ld_is_elf = yes; then 30739 gcc_cv_ld_eh_gc_sections_bug=yes 30740 fi 30741elif 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 30742 gcc_cv_ld_eh_gc_sections_bug=yes 30743 cat > conftest.s <<EOF 30744 .section .text 30745.globl _start 30746 .type _start, @function 30747_start: 30748 .long foo 30749 .size _start, .-_start 30750 .section .text.startup.foo,"ax",@progbits 30751 .type foo, @function 30752foo: 30753 .long 0 30754 .size foo, .-foo 30755 .section .gcc_except_table.foo,"a",@progbits 30756.L0: 30757 .long 0 30758 .section .eh_frame,"a",@progbits 30759 .long .L0 30760EOF 30761 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 30762 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 30763 | grep "gc-sections option ignored" > /dev/null; then 30764 : 30765 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 30766 | grep gcc_except_table > /dev/null; then 30767 gcc_cv_ld_eh_gc_sections_bug=no 30768 fi 30769 fi 30770 rm -f conftest.s conftest.o conftest 30771fi 30772if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then 30773 30774$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h 30775 30776fi 30777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5 30778$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; } 30779 30780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5 30781$as_echo_n "checking linker for compressed debug sections... " >&6; } 30782# gold/gld support compressed debug sections since binutils 2.19/2.21 30783# In binutils 2.26, gld gained support for the ELF gABI format. 30784if test $in_tree_ld = yes ; then 30785 gcc_cv_ld_compress_debug=0 30786 if test $ld_is_mold = yes; then 30787 gcc_cv_ld_compress_debug=3 30788 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30789 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 \ 30790 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then 30791 gcc_cv_ld_compress_debug=2 30792 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30793 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 \ 30794 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then 30795 gcc_cv_ld_compress_debug=3 30796 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30797 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 \ 30798 && test $in_tree_ld_is_elf = yes; then 30799 gcc_cv_ld_compress_debug=1 30800 fi 30801elif echo "$ld_ver" | grep GNU > /dev/null; then 30802 if test $ld_is_mold = yes; then 30803 gcc_cv_ld_compress_debug=3 30804 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30805 elif test "$ld_vers_major" -lt 2 \ 30806 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then 30807 gcc_cv_ld_compress_debug=0 30808 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then 30809 gcc_cv_ld_compress_debug=1 30810 else 30811 gcc_cv_ld_compress_debug=3 30812 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30813 fi 30814 if test $ld_is_gold = yes; then 30815 gcc_cv_ld_compress_debug=2 30816 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 30817 fi 30818else 30819 case "${target}" in 30820 *-*-solaris2*) 30821 # Introduced in Solaris 11.2. 30822 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then 30823 gcc_cv_ld_compress_debug=3 30824 gcc_cv_ld_compress_debug_option="-z compress-sections" 30825 else 30826 gcc_cv_ld_compress_debug=0 30827 fi 30828 ;; 30829 *) 30830 # Assume linkers other than GNU ld don't support compessed debug 30831 # sections. 30832 gcc_cv_ld_compress_debug=0 30833 ;; 30834 esac 30835fi 30836 30837cat >>confdefs.h <<_ACEOF 30838#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug 30839_ACEOF 30840 30841 30842cat >>confdefs.h <<_ACEOF 30843#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option" 30844_ACEOF 30845 30846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5 30847$as_echo "$gcc_cv_ld_compress_debug" >&6; } 30848 30849if test x"$ld64_flag" = x"yes"; then 30850 30851 # Set defaults for possibly untestable items. 30852 gcc_cv_ld64_export_dynamic=0 30853 gcc_cv_ld64_platform_version=0 30854 30855 if test "$build" = "$host"; then 30856 darwin_try_test=1 30857 else 30858 darwin_try_test=0 30859 fi 30860 30861 # On Darwin, because of FAT library support, it is often possible to execute 30862 # exes from compatible archs even when the host differs from the build system. 30863 case "$build","$host" in 30864 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*) 30865 darwin_try_test=1;; 30866 *) ;; 30867 esac 30868 30869 # If the configurer specified a minimum ld64 version to be supported, then use 30870 # that to determine feature support. 30871 if test x"${gcc_cv_ld64_version}" != x; then 30872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5 30873$as_echo_n "checking ld64 specified version... " >&6; } 30874 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'` 30875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5 30876$as_echo "$gcc_cv_ld64_major" >&6; } 30877 if test "$gcc_cv_ld64_major" -ge 236; then 30878 gcc_cv_ld64_export_dynamic=1 30879 fi 30880 if test "$gcc_cv_ld64_major" -ge 512; then 30881 gcc_cv_ld64_platform_version=1 30882 fi 30883 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then 30884 # If the version was not specified, try to find it. 30885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5 30886$as_echo_n "checking linker version... " >&6; } 30887 if test x"${gcc_cv_ld64_version}" = x; then 30888 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \ 30889 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'` 30890 fi 30891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5 30892$as_echo "$gcc_cv_ld64_version" >&6; } 30893 30894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5 30895$as_echo_n "checking linker for -export_dynamic support... " >&6; } 30896 gcc_cv_ld64_export_dynamic=1 30897 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then 30898 gcc_cv_ld64_export_dynamic=0 30899 fi 30900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5 30901$as_echo "$gcc_cv_ld64_export_dynamic" >&6; } 30902 30903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5 30904$as_echo_n "checking linker for -platform_version support... " >&6; } 30905 gcc_cv_ld64_platform_version=1 30906 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then 30907 gcc_cv_ld64_platform_version=0 30908 fi 30909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5 30910$as_echo "$gcc_cv_ld64_platform_version" >&6; } 30911 fi 30912 30913 if test x"${gcc_cv_ld64_version}" != x; then 30914 30915cat >>confdefs.h <<_ACEOF 30916#define LD64_VERSION "${gcc_cv_ld64_version}" 30917_ACEOF 30918 30919 fi 30920 30921 30922cat >>confdefs.h <<_ACEOF 30923#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic 30924_ACEOF 30925 30926 30927 30928cat >>confdefs.h <<_ACEOF 30929#define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version 30930_ACEOF 30931 30932fi 30933 30934if test x"$dsymutil_flag" = x"yes"; then 30935 30936 # If the user specified a dsymutil path, then we will already have the 30937 # version string, otherwise, pick it up. 30938 if test x"$gcc_cv_dsymutil" = x; then 30939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5 30940$as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;} 30941 dsymutil_vers="tool unspecified" 30942 elif test x"$dsymutil_vers" = x; then 30943 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1` 30944 fi 30945 30946 dsymutil_temp=`echo $dsymutil_vers | sed 1q` 30947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5 30948$as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; } 30949 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then 30950 dsymutil_kind=DWARFUTILS 30951 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'` 30952 elif echo $dsymutil_temp | grep clang- > /dev/null; then 30953 dsymutil_kind=CLANG 30954 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'` 30955 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then 30956 dsymutil_kind=LLVM 30957 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'` 30958 else 30959 dsymutil_kind=DET_UNKNOWN 30960 dsymutil_vers="0.0" 30961 fi 30962 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'` 30963 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'` 30964 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 30965 if test x"${dsymutil_minor}" = x; then 30966 dsymutil_minor=0 30967 fi 30968 if test x"${dsymutil_tiny}" = x; then 30969 dsymutil_tiny=0 30970 fi 30971 30972cat >>confdefs.h <<_ACEOF 30973#define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny} 30974_ACEOF 30975 30976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5 30977$as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; } 30978fi 30979 30980case $target_os in 30981 win32 | pe | cygwin* | mingw32*) 30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5 30983$as_echo_n "checking broken PE linker dwarf5 support... " >&6; } 30984 gcc_cv_ld_broken_pe_dwarf5=yes 30985 if test $in_tree_ld = yes ; then 30986 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 30987 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \ 30988 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 30989 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then 30990 gcc_cv_ld_broken_pe_dwarf5=no 30991 fi 30992 else 30993 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 30994 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then 30995 gcc_cv_ld_broken_pe_dwarf5=no 30996 fi 30997 fi 30998 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then 30999 31000$as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h 31001 31002 fi 31003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5 31004$as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; } 31005 31006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5 31007$as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; } 31008 gcc_cv_ld_disable_dynamicbase=no 31009 if test $in_tree_ld = yes; then 31010 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 \ 31011 gcc_cv_ld_disable_dynamicbase=yes 31012 fi 31013 else 31014 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then 31015 gcc_cv_ld_disable_dynamicbase=yes 31016 fi 31017 fi 31018 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then 31019 31020$as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h 31021 31022 fi 31023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5 31024$as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; } 31025 ;; 31026esac 31027 31028# -------- 31029# UNSORTED 31030# -------- 31031 31032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 31033$as_echo_n "checking linker --as-needed support... " >&6; } 31034if ${gcc_cv_ld_as_needed+:} false; then : 31035 $as_echo_n "(cached) " >&6 31036else 31037 gcc_cv_ld_as_needed=no 31038gcc_cv_ld_as_needed_option='--as-needed' 31039gcc_cv_ld_no_as_needed_option='--no-as-needed' 31040if test $in_tree_ld = yes ; then 31041 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 \ 31042 && test $in_tree_ld_is_elf = yes; then 31043 gcc_cv_ld_as_needed=yes 31044 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then 31045 gcc_cv_ld_as_needed_option='--push-state --as-needed' 31046 gcc_cv_ld_no_as_needed_option='--pop-state' 31047 fi 31048 fi 31049elif test x$gcc_cv_ld != x; then 31050 # Check if linker supports --as-needed and --no-as-needed options 31051 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then 31052 gcc_cv_ld_as_needed=yes 31053 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \ 31054 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \ 31055 && echo "$ld_ver" | grep GNU > /dev/null \ 31056 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then 31057 # Use these options only when both ld.bfd and ld.gold support 31058 # --push-state/--pop-state, which unfortunately wasn't added 31059 # at the same time. 31060 gcc_cv_ld_as_needed_option='--push-state --as-needed' 31061 gcc_cv_ld_no_as_needed_option='--pop-state' 31062 fi 31063 fi 31064 case "$target:$gnu_ld" in 31065 *-*-solaris2*:no) 31066 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native 31067 # forms. 31068 gcc_cv_ld_as_needed=yes 31069 gcc_cv_ld_as_needed_option="-z ignore" 31070 gcc_cv_ld_no_as_needed_option="-z record" 31071 ;; 31072 esac 31073fi 31074# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses 31075# dl_iterate_phdr, i.e. since Solaris 11. 31076case "$target" in 31077 *-*-solaris2.1[1-9]*) 31078 case "$target" in 31079 i?86-*-* | x86_64-*-*) 31080 if echo "$ld_ver" | grep GNU > /dev/null; then 31081 # Doesn't work with gld on Solaris/x86 due to PR ld/12320. 31082 gcc_cv_ld_as_needed=no 31083 fi 31084 ;; 31085 esac 31086 ;; 31087 *-*-solaris2*) 31088 gcc_cv_ld_as_needed=no 31089 ;; 31090esac 31091 31092fi 31093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5 31094$as_echo "$gcc_cv_ld_as_needed" >&6; } 31095if test x"$gcc_cv_ld_as_needed" = xyes; then 31096 31097$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h 31098 31099 31100cat >>confdefs.h <<_ACEOF 31101#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option" 31102_ACEOF 31103 31104 31105cat >>confdefs.h <<_ACEOF 31106#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option" 31107_ACEOF 31108 31109fi 31110 31111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5 31112$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; } 31113saved_LDFLAGS="$LDFLAGS" 31114for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do 31115 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map" 31116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31117/* end confdefs.h. */ 31118int main(void) {return 0;} 31119_ACEOF 31120if ac_fn_cxx_try_link "$LINENO"; then : 31121 gcc_cv_ld_clearcap=yes; break 31122else 31123 gcc_cv_ld_clearcap=no 31124fi 31125rm -f core conftest.err conftest.$ac_objext \ 31126 conftest$ac_exeext conftest.$ac_ext 31127done 31128LDFLAGS="$saved_LDFLAGS" 31129if test "x$gcc_cv_ld_clearcap" = xyes; then 31130 31131$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h 31132 31133 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map" 31134 31135fi 31136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5 31137$as_echo "$gcc_cv_ld_clearcap" >&6; } 31138 31139case "$target" in 31140 powerpc*-*-*) 31141 case "$target" in 31142 *le-*-linux*) 31143 emul_name="-melf32lppc" 31144 ;; 31145 *) 31146 emul_name="-melf32ppc" 31147 ;; 31148 esac 31149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5 31150$as_echo_n "checking linker .gnu.attributes long double support... " >&6; } 31151if ${gcc_cv_ld_ppc_attr+:} false; then : 31152 $as_echo_n "(cached) " >&6 31153else 31154 gcc_cv_ld_ppc_attr=no 31155 if test x"$ld_is_gold" = xyes; then 31156 gcc_cv_ld_ppc_attr=yes 31157 elif test $in_tree_ld = yes ; then 31158 if test "$gcc_cv_gld_major_version" -eq 2 \ 31159 -a "$gcc_cv_gld_minor_version" -ge 28 \ 31160 -o "$gcc_cv_gld_major_version" -gt 2; then 31161 gcc_cv_ld_ppc_attr=yes 31162 fi 31163 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 31164 # check that merging the long double .gnu_attribute doesn't warn 31165 cat > conftest1.s <<EOF 31166 .gnu_attribute 4,1 31167EOF 31168 cat > conftest2.s <<EOF 31169 .gnu_attribute 4,9 31170EOF 31171 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 31172 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 31173 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \ 31174 && test ! -s conftest.err; then 31175 gcc_cv_ld_ppc_attr=yes 31176 fi 31177 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s 31178 fi 31179 31180fi 31181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5 31182$as_echo "$gcc_cv_ld_ppc_attr" >&6; } 31183 if test x$gcc_cv_ld_ppc_attr = xyes; then 31184 31185$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h 31186 31187 fi 31188 ;; 31189esac 31190 31191case "$target:$tm_file" in 31192 powerpc64*-*-freebsd* | powerpc64-*-netbsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*) 31193 case "$target" in 31194 *le-*-linux*) 31195 emul_name="-melf64lppc" 31196 ;; 31197 *-*-linux* | *-*-netbsd*) 31198 emul_name="-melf64ppc" 31199 ;; 31200 *le-*-freebsd*) 31201 emul_name="-melf64lppc_fbsd" 31202 ;; 31203 *-*-freebsd*) 31204 emul_name="-melf64ppc_fbsd" 31205 ;; 31206 esac 31207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5 31208$as_echo_n "checking linker support for omitting dot symbols... " >&6; } 31209if ${gcc_cv_ld_no_dot_syms+:} false; then : 31210 $as_echo_n "(cached) " >&6 31211else 31212 gcc_cv_ld_no_dot_syms=no 31213 if test x"$ld_is_gold" = xyes; then 31214 gcc_cv_ld_no_dot_syms=yes 31215 elif test $in_tree_ld = yes ; then 31216 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 31217 gcc_cv_ld_no_dot_syms=yes 31218 fi 31219 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 31220 cat > conftest1.s <<EOF 31221 .text 31222 bl .foo 31223EOF 31224 cat > conftest2.s <<EOF 31225 .section ".opd","aw" 31226 .align 3 31227 .globl foo 31228 .type foo,@function 31229foo: 31230 .quad .LEfoo,.TOC.@tocbase,0 31231 .text 31232.LEfoo: 31233 blr 31234 .size foo,.-.LEfoo 31235EOF 31236 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 31237 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 31238 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then 31239 gcc_cv_ld_no_dot_syms=yes 31240 fi 31241 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s 31242 fi 31243 31244fi 31245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5 31246$as_echo "$gcc_cv_ld_no_dot_syms" >&6; } 31247 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then 31248 31249$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h 31250 31251 fi 31252 31253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5 31254$as_echo_n "checking linker large toc support... " >&6; } 31255if ${gcc_cv_ld_large_toc+:} false; then : 31256 $as_echo_n "(cached) " >&6 31257else 31258 gcc_cv_ld_large_toc=no 31259 if test x"$ld_is_gold" = xyes; then 31260 gcc_cv_ld_large_toc=yes 31261 elif test $in_tree_ld = yes ; then 31262 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 31263 gcc_cv_ld_large_toc=yes 31264 fi 31265 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 31266 cat > conftest.s <<EOF 31267 .section ".tbss","awT",@nobits 31268 .align 3 31269ie0: .space 8 31270 .global _start 31271 .text 31272_start: 31273 addis 9,13,ie0@got@tprel@ha 31274 ld 9,ie0@got@tprel@l(9) 31275EOF 31276 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 31277 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then 31278 gcc_cv_ld_large_toc=yes 31279 fi 31280 rm -f conftest conftest.o conftest.s 31281 fi 31282 31283fi 31284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5 31285$as_echo "$gcc_cv_ld_large_toc" >&6; } 31286 if test x"$gcc_cv_ld_large_toc" = xyes; then 31287 31288$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h 31289 31290 fi 31291 31292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5 31293$as_echo_n "checking linker toc pointer alignment... " >&6; } 31294if ${gcc_cv_ld_toc_align+:} false; then : 31295 $as_echo_n "(cached) " >&6 31296else 31297 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then 31298 cat > conftest.s <<EOF 31299 .global _start 31300 .text 31301_start: 31302 addis 9,2,x@got@ha 31303 .section .data.rel.ro,"aw",@progbits 31304 .p2align 16 31305 .space 32768 31306x: .quad .TOC. 31307EOF 31308 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 31309 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then 31310 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)) }'` 31311 fi 31312 rm -f conftest conftest.o conftest.s 31313 fi 31314 31315fi 31316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5 31317$as_echo "$gcc_cv_ld_toc_align" >&6; } 31318 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then 31319 31320cat >>confdefs.h <<_ACEOF 31321#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align 31322_ACEOF 31323 31324 fi 31325 ;; 31326esac 31327 31328case "$target" in 31329 *-*-aix*) 31330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5 31331$as_echo_n "checking linker large toc support... " >&6; } 31332if ${gcc_cv_ld_large_toc+:} false; then : 31333 $as_echo_n "(cached) " >&6 31334else 31335 gcc_cv_ld_large_toc=no 31336 if test x$gcc_cv_as != x ; then 31337 cat > conftest.s <<EOF 31338 .toc 31339LC..1: 31340 .tc a[TC],a[RW] 31341 .extern a[RW] 31342 .csect .text[PR] 31343.largetoctest: 31344 addis 9,LC..1@u(2) 31345 ld 3,LC..1@l(9) 31346EOF 31347 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then 31348 gcc_cv_ld_large_toc=yes 31349 fi 31350 rm -f conftest conftest.o conftest.s 31351 fi 31352 31353fi 31354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5 31355$as_echo "$gcc_cv_ld_large_toc" >&6; } 31356 if test x"$gcc_cv_ld_large_toc" = xyes; then 31357 31358$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h 31359 31360 fi 31361 ;; 31362esac 31363 31364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5 31365$as_echo_n "checking linker --build-id support... " >&6; } 31366if ${gcc_cv_ld_buildid+:} false; then : 31367 $as_echo_n "(cached) " >&6 31368else 31369 gcc_cv_ld_buildid=no 31370 if test $in_tree_ld = yes ; then 31371 if test "$gcc_cv_gld_major_version" -eq 2 -a \ 31372 "$gcc_cv_gld_minor_version" -ge 18 -o \ 31373 "$gcc_cv_gld_major_version" -gt 2 \ 31374 && test $in_tree_ld_is_elf = yes; then 31375 gcc_cv_ld_buildid=yes 31376 fi 31377 elif test x$gcc_cv_ld != x; then 31378 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then 31379 gcc_cv_ld_buildid=yes 31380 fi 31381 fi 31382fi 31383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5 31384$as_echo "$gcc_cv_ld_buildid" >&6; } 31385if test x"$gcc_cv_ld_buildid" = xyes; then 31386 31387$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h 31388 31389fi 31390 31391# Check whether --enable-linker-build-id was given. 31392if test "${enable_linker_build_id+set}" = set; then : 31393 enableval=$enable_linker_build_id; 31394else 31395 enable_linker_build_id=no 31396fi 31397 31398 31399if test x"$enable_linker_build_id" = xyes; then 31400 if test x"$gcc_cv_ld_buildid" = xyes; then 31401 31402$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h 31403 31404 else 31405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5 31406$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;} 31407 fi 31408fi 31409 31410# In binutils 2.21, GNU ld gained support for new emulations fully 31411# supporting the Solaris 2 ABI. Detect their presence in the linker used. 31412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5 31413$as_echo_n "checking linker *_sol2 emulation support... " >&6; } 31414if ${gcc_cv_ld_sol2_emulation+:} false; then : 31415 $as_echo_n "(cached) " >&6 31416else 31417 gcc_cv_ld_sol2_emulation=no 31418 if test $in_tree_ld = yes ; then 31419 if test "$gcc_cv_gld_major_version" -eq 2 -a \ 31420 "$gcc_cv_gld_minor_version" -ge 21 -o \ 31421 "$gcc_cv_gld_major_version" -gt 2 \ 31422 && test $in_tree_ld_is_elf = yes; then 31423 gcc_cv_ld_sol2_emulation=yes 31424 fi 31425 elif test x$gcc_cv_ld != x; then 31426 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \ 31427 grep _sol2 > /dev/null; then 31428 gcc_cv_ld_sol2_emulation=yes 31429 fi 31430 fi 31431fi 31432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5 31433$as_echo "$gcc_cv_ld_sol2_emulation" >&6; } 31434if test x"$gcc_cv_ld_sol2_emulation" = xyes; then 31435 31436$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h 31437 31438fi 31439 31440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5 31441$as_echo_n "checking linker --sysroot support... " >&6; } 31442if ${gcc_cv_ld_sysroot+:} false; then : 31443 $as_echo_n "(cached) " >&6 31444else 31445 gcc_cv_ld_sysroot=no 31446 if test $in_tree_ld = yes ; then 31447 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 31448 gcc_cv_ld_sysroot=yes 31449 fi 31450 elif test x$gcc_cv_ld != x; then 31451 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then 31452 gcc_cv_ld_sysroot=yes 31453 fi 31454 fi 31455fi 31456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5 31457$as_echo "$gcc_cv_ld_sysroot" >&6; } 31458if test x"$gcc_cv_ld_sysroot" = xyes; then 31459 31460$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h 31461 31462fi 31463 31464case $target in 31465*-*-solaris2*) 31466 # Check for system-provided CRTs on Solaris 11.x and Solaris 12. 31467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5 31468$as_echo_n "checking system-provided CRTs on Solaris... " >&6; } 31469if ${gcc_cv_solaris_crts+:} false; then : 31470 $as_echo_n "(cached) " >&6 31471else 31472 gcc_cv_solaris_crts=no 31473 if test x$host != x$target; then 31474 if test "x$with_sysroot" = xyes; then 31475 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root" 31476 else 31477 target_sysroot="${with_sysroot}" 31478 fi 31479 fi 31480 target_libdir="$target_sysroot/usr/lib" 31481 # At the time they were added, gcrt1.o became a symlink for backwards 31482 # compatibility on x86, while crt1.o was added on sparc, so check for that. 31483 case $target in 31484 i?86-*-solaris2* | x86_64-*-solaris2*) 31485 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi 31486 ;; 31487 sparc*-*-solaris2*) 31488 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi 31489 ;; 31490 esac 31491fi 31492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5 31493$as_echo "$gcc_cv_solaris_crts" >&6; } 31494 ;; 31495esac 31496if test x$gcc_cv_solaris_crts = xyes; then 31497 31498$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h 31499 31500fi 31501 31502# Check whether --enable-libssp was given. 31503if test "${enable_libssp+set}" = set; then : 31504 enableval=$enable_libssp; case "${enableval}" in 31505 yes|no) 31506 ;; 31507 *) 31508 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5 31509 ;; 31510esac 31511fi 31512 31513 31514# Test for stack protector support in target C library. 31515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5 31516$as_echo_n "checking __stack_chk_fail in target C library... " >&6; } 31517if ${gcc_cv_libc_provides_ssp+:} false; then : 31518 $as_echo_n "(cached) " >&6 31519else 31520 gcc_cv_libc_provides_ssp=no 31521 if test "x$enable_libssp" = "xno"; then 31522 gcc_cv_libc_provides_ssp=yes 31523 elif test "x$enable_libssp" = "xyes"; then 31524 gcc_cv_libc_provides_ssp=no 31525 else 31526 case "$target" in 31527 *-*-musl*) 31528 # All versions of musl provide stack protector 31529 gcc_cv_libc_provides_ssp=yes;; 31530 *-*-linux* | *-*-kfreebsd*-gnu) 31531 # glibc 2.4 and later provides __stack_chk_fail and 31532 # either __stack_chk_guard, or TLS access to stack guard canary. 31533 31534if test $glibc_version_major -gt 2 \ 31535 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 31536 gcc_cv_libc_provides_ssp=yes 31537else 31538 31539 if test -f $target_header_dir/features.h \ 31540 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \ 31541 $target_header_dir/features.h > /dev/null; then 31542 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \ 31543 $target_header_dir/features.h > /dev/null && \ 31544 test -f $target_header_dir/bits/uClibc_config.h && \ 31545 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \ 31546 $target_header_dir/bits/uClibc_config.h > /dev/null; then 31547 gcc_cv_libc_provides_ssp=yes 31548 fi 31549 # all versions of Bionic support stack protector 31550 elif test -f $target_header_dir/sys/cdefs.h \ 31551 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \ 31552 $target_header_dir/sys/cdefs.h > /dev/null; then 31553 gcc_cv_libc_provides_ssp=yes 31554 fi 31555fi 31556 ;; 31557 *-*-gnu*) 31558 # Avoid complicated tests (see 31559 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now 31560 # simply assert that glibc does provide this, which is true for all 31561 # realistically usable GNU/Hurd configurations. 31562 # All supported versions of musl provide it as well 31563 gcc_cv_libc_provides_ssp=yes;; 31564 *-*-darwin* | *-*-freebsd* | *-*-netbsd*) 31565 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail" 31566if test "x$ac_cv_func___stack_chk_fail" = xyes; then : 31567 gcc_cv_libc_provides_ssp=yes 31568else 31569 echo "no __stack_chk_fail on this target" 31570fi 31571 31572 ;; 31573 *) gcc_cv_libc_provides_ssp=no ;; 31574 esac 31575 fi 31576fi 31577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5 31578$as_echo "$gcc_cv_libc_provides_ssp" >&6; } 31579 31580if test x$gcc_cv_libc_provides_ssp = xyes; then 31581 31582$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h 31583 31584fi 31585 31586# Check whether --enable-default-ssp was given. 31587# Check whether --enable-default-ssp was given. 31588if test "${enable_default_ssp+set}" = set; then : 31589 enableval=$enable_default_ssp; 31590if test x$gcc_cv_libc_provides_ssp = xyes; then 31591 case "$target" in 31592 ia64*-*-*) enable_default_ssp=no ;; 31593 *) enable_default_ssp=$enableval ;; 31594 esac 31595else 31596 enable_default_ssp=no 31597fi 31598else 31599 enable_default_ssp=no 31600fi 31601 31602if test x$enable_default_ssp = xyes ; then 31603 31604$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h 31605 31606fi 31607 31608 31609# Test for <sys/sdt.h> on the target. 31610 31611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 31612$as_echo_n "checking sys/sdt.h in the target C library... " >&6; } 31613have_sys_sdt_h=no 31614if test -f $target_header_dir/sys/sdt.h; then 31615 have_sys_sdt_h=yes 31616 31617$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h 31618 31619fi 31620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 31621$as_echo "$have_sys_sdt_h" >&6; } 31622 31623# Check if TFmode long double should be used by default or not. 31624# Some glibc targets used DFmode long double, but with glibc 2.4 31625# and later they can use TFmode. 31626case "$target" in 31627 powerpc*-*-linux* | \ 31628 sparc*-*-linux* | \ 31629 s390*-*-linux* | \ 31630 alpha*-*-linux*) 31631 31632# Check whether --with-long-double-128 was given. 31633if test "${with_long_double_128+set}" = set; then : 31634 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128" 31635else 31636 31637 case "$target" in 31638 s390*-*-linux-musl*) 31639 gcc_cv_target_ldbl128=yes 31640 ;; 31641 powerpc*-*-linux-musl*) 31642 gcc_cv_target_ldbl128=no 31643 ;; 31644 *) 31645 31646if test $glibc_version_major -gt 2 \ 31647 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 31648 gcc_cv_target_ldbl128=yes 31649else 31650 31651 gcc_cv_target_ldbl128=no 31652 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \ 31653 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \ 31654 && gcc_cv_target_ldbl128=yes 31655 31656fi 31657 31658 ;; 31659 esac 31660 31661fi 31662 31663 ;; 31664esac 31665if test x$gcc_cv_target_ldbl128 = xyes; then 31666 31667$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h 31668 31669fi 31670 31671# Check if TFmode long double target should use the IBM extended double or IEEE 31672# 128-bit floating point formats if long doubles are 128-bits long. The long 31673# double type can only be switched on powerpc64 bit Linux systems where VSX is 31674# supported. Other PowerPC systems do not build the IEEE 128-bit emulator in 31675# libgcc. 31676 31677# Check whether --with-long-double-format was given. 31678if test "${with_long_double_format+set}" = set; then : 31679 withval=$with_long_double_format; 31680case "$target:$with_long_double_format" in 31681 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm) 31682 : 31683 ;; 31684 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm) 31685 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems 31686 case "$with_cpu" in 31687 power7 | power8 | power9 | power1*) 31688 : 31689 ;; 31690 *) 31691 as_fn_error $? "Configuration option --with-long-double-format is only \ 31692supported if the default cpu is power7 or newer" "$LINENO" 5 31693 with_long_double_format="" 31694 ;; 31695 esac 31696 ;; 31697 powerpc64*-*-linux*:*) 31698 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5 31699 with_long_double_format="" 31700 ;; 31701 *) 31702 as_fn_error $? "Configure option --with-long-double-format is only supported \ 31703on 64-bit PowerPC VSX Linux systems" "$LINENO" 5 31704 with_long_double_format="" 31705 ;; 31706esac 31707fi 31708 31709 31710# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP 31711# values in the TCB. Currently, only GLIBC 2.23 and later support this. 31712gcc_cv_libc_provides_hwcap_in_tcb=no 31713case "$target" in 31714 powerpc*-*-linux*) 31715 31716if test $glibc_version_major -gt 2 \ 31717 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then : 31718 gcc_cv_libc_provides_hwcap_in_tcb=yes 31719fi 31720 ;; 31721esac 31722if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then 31723 31724$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h 31725 31726fi 31727 31728# Check if the target LIBC handles PT_GNU_STACK. 31729gcc_cv_libc_gnustack=unknown 31730case "$target" in 31731 mips*-*-linux-musl*) 31732 gcc_cv_libc_gnustack=yes 31733 ;; 31734 mips*-*-linux*) 31735 31736if test $glibc_version_major -gt 2 \ 31737 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then : 31738 gcc_cv_libc_gnustack=yes 31739fi 31740 ;; 31741esac 31742if test x$gcc_cv_libc_gnustack = xyes; then 31743 31744$as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h 31745 31746fi 31747 31748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5 31749$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; } 31750gcc_cv_target_dl_iterate_phdr=unknown 31751case "$target" in 31752 *-*-solaris2*) 31753 # <link.h> needs both a dl_iterate_phdr declaration and support for 31754 # compilation with largefile support. 31755 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \ 31756 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then 31757 gcc_cv_target_dl_iterate_phdr=yes 31758 else 31759 gcc_cv_target_dl_iterate_phdr=no 31760 fi 31761 ;; 31762 *-*-dragonfly* | *-*-freebsd*) 31763 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then 31764 gcc_cv_target_dl_iterate_phdr=yes 31765 else 31766 gcc_cv_target_dl_iterate_phdr=no 31767 fi 31768 ;; 31769 *-linux-musl*) 31770 gcc_cv_target_dl_iterate_phdr=yes 31771 ;; 31772esac 31773 31774if test x$gcc_cv_target_dl_iterate_phdr = xyes; then 31775 31776$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h 31777 31778fi 31779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5 31780$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; } 31781 31782# We no longer support different GC mechanisms. Emit an error if 31783# the user configures with --with-gc. 31784 31785# Check whether --with-gc was given. 31786if test "${with_gc+set}" = set; then : 31787 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5 31788fi 31789 31790 31791# Libraries to use on the host. This will normally be set by the top 31792# level Makefile. Here we simply capture the value for our Makefile. 31793if test -z "${HOST_LIBS+set}"; then 31794 HOST_LIBS= 31795fi 31796 31797 31798# Use the system's zlib library. 31799 31800 # Use the system's zlib library. 31801 zlibdir="-L\$(top_builddir)/../zlib" 31802 zlibinc="-I\$(top_srcdir)/../zlib" 31803 31804# Check whether --with-system-zlib was given. 31805if test "${with_system_zlib+set}" = set; then : 31806 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 31807 zlibdir= 31808 zlibinc= 31809 fi 31810 31811fi 31812 31813 31814 31815 31816 31817 31818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 31819$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 31820 # Check whether --enable-maintainer-mode was given. 31821if test "${enable_maintainer_mode+set}" = set; then : 31822 enableval=$enable_maintainer_mode; maintainer_mode=$enableval 31823else 31824 maintainer_mode=no 31825fi 31826 31827 31828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5 31829$as_echo "$maintainer_mode" >&6; } 31830 31831if test "$maintainer_mode" = "yes"; then 31832 MAINT='' 31833else 31834 MAINT='#' 31835fi 31836 31837if test -z "$CTAGS"; then 31838 CTAGS=ctags 31839fi 31840 31841if test -z "$ETAGS"; then 31842 ETAGS=etags 31843fi 31844 31845if test -z "$CSCOPE"; then 31846 CSCOPE=cscope 31847fi 31848 31849 31850 31851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5 31852$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; } 31853 # Check whether --enable-link-mutex was given. 31854if test "${enable_link_mutex+set}" = set; then : 31855 enableval=$enable_link_mutex; do_link_mutex=$enableval 31856else 31857 do_link_mutex=no 31858fi 31859 31860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5 31861$as_echo "$do_link_mutex" >&6; } 31862 31863if test "$do_link_mutex" = "yes"; then 31864 DO_LINK_MUTEX=true 31865else 31866 DO_LINK_MUTEX=false 31867fi 31868 31869 31870 31871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5 31872$as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; } 31873 # Check whether --enable-link-serialization was given. 31874if test "${enable_link_serialization+set}" = set; then : 31875 enableval=$enable_link_serialization; do_link_serialization=$enableval 31876else 31877 do_link_serialization=no 31878fi 31879 31880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5 31881$as_echo "$do_link_serialization" >&6; } 31882 31883case "$do_link_serialization" in 31884 yes) 31885 DO_LINK_SERIALIZATION=1;; 31886 [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) 31887 DO_LINK_SERIALIZATION=$do_link_serialization;; 31888 no) 31889 DO_LINK_SERIALIZATION=;; 31890 *) 31891 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;; 31892esac 31893 31894 31895# -------------- 31896# Language hooks 31897# -------------- 31898 31899# Make empty files to contain the specs and options for each language. 31900# Then add #include lines to for a compiler that has specs and/or options. 31901 31902subdirs= 31903lang_opt_files= 31904lang_specs_files= 31905lang_tree_files= 31906# These (without "all_") are set in each config-lang.in. 31907# `language' must be a single word so is spelled singularly. 31908all_languages= 31909all_compilers= 31910all_outputs='Makefile' 31911# List of language configure and makefile fragments. 31912all_lang_configurefrags= 31913all_lang_makefrags= 31914# Additional files for gengtype 31915all_gtfiles="$target_gtfiles" 31916 31917# These are the languages that are set in --enable-languages, 31918# and are available in the GCC tree. 31919all_selected_languages= 31920 31921# Add the language fragments. 31922# Languages are added via two mechanisms. Some information must be 31923# recorded in makefile variables, these are defined in config-lang.in. 31924# We accumulate them and plug them into the main Makefile. 31925# The other mechanism is a set of hooks for each of the main targets 31926# like `clean', `install', etc. 31927 31928language_hooks="Make-hooks" 31929 31930for lang in ${srcdir}/*/config-lang.in 31931do 31932 test "$lang" = "${srcdir}/*/config-lang.in" && continue 31933 31934 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` 31935 if test "x$lang_alias" = x 31936 then 31937 echo "$lang doesn't set \$language." 1>&2 31938 exit 1 31939 fi 31940 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" 31941 subdirs="$subdirs $subdir" 31942 31943 # $gcc_subdir is where the gcc integration files are to be found 31944 # for a language, both for internal compiler purposes (compiler 31945 # sources implementing front-end to GCC tree converters), and for 31946 # build infrastructure purposes (Make-lang.in, etc.) 31947 # 31948 # This will be <subdir> (relative to $srcdir) if a line like 31949 # gcc_subdir="<subdir>" or gcc_subdir=<subdir> 31950 # is found in <langdir>/config-lang.in, and will remain <langdir> 31951 # otherwise. 31952 # 31953 # Except for the language alias (fetched above), the regular 31954 # "config-lang.in" contents are always retrieved from $gcc_subdir, 31955 # so a <langdir>/config-lang.in setting gcc_subdir typically sets 31956 # only this and the language alias. 31957 31958 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang` 31959 if [ "$gcc_subdir" = "" ]; then 31960 gcc_subdir="$subdir" 31961 fi 31962 31963 case ",$enable_languages," in 31964 *,$lang_alias,*) 31965 all_selected_languages="$all_selected_languages $lang_alias" 31966 if test -f $srcdir/$gcc_subdir/lang-specs.h; then 31967 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h" 31968 fi 31969 ;; 31970 esac 31971 31972 language= 31973 boot_language= 31974 compilers= 31975 outputs= 31976 gtfiles= 31977 subdir_requires= 31978 . ${srcdir}/$gcc_subdir/config-lang.in 31979 if test "x$language" = x 31980 then 31981 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2 31982 exit 1 31983 fi 31984 31985 ok=: 31986 case ",$enable_languages," in 31987 *,$lang_alias,*) ;; 31988 *) 31989 for i in $subdir_requires; do 31990 test -f "${srcdir}/$i/config-lang.in" && continue 31991 ok=false 31992 break 31993 done 31994 ;; 31995 esac 31996 $ok || continue 31997 31998 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in" 31999 if test "x$language" = xc && test -n "$all_lang_makefrags"; then 32000 # Put c/Make-lang.in fragment first to match serialization languages order. 32001 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags" 32002 else 32003 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in" 32004 fi 32005 if test -f $srcdir/$gcc_subdir/lang.opt; then 32006 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt" 32007 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt" 32008 fi 32009 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then 32010 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def" 32011 fi 32012 all_languages="$all_languages $language" 32013 all_compilers="$all_compilers $compilers" 32014 all_outputs="$all_outputs $outputs" 32015 all_gtfiles="$all_gtfiles [$subdir] $gtfiles" 32016 case ",$enable_languages," in 32017 *,lto,*) 32018 32019$as_echo "#define ENABLE_LTO 1" >>confdefs.h 32020 32021 enable_lto=yes 32022 32023 ;; 32024 *) ;; 32025 esac 32026done 32027 32028check_languages= 32029for language in $all_selected_languages 32030do 32031 check_languages="$check_languages check-$language" 32032done 32033 32034selftest_languages= 32035for language in $all_selected_languages 32036do 32037 selftest_languages="$selftest_languages selftest-$language" 32038done 32039 32040# We link each language in with a set of hooks, reached indirectly via 32041# lang.${target}. Only do so for selected languages. 32042 32043rm -f Make-hooks 32044touch Make-hooks 32045target_list="all.cross start.encap rest.encap tags \ 32046 install-common install-man install-info install-dvi install-pdf \ 32047 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \ 32048 mostlyclean clean distclean maintainer-clean install-plugin" 32049 32050for t in $target_list 32051do 32052 x= 32053 for lang in $all_selected_languages 32054 do 32055 x="$x $lang.$t" 32056 done 32057 echo "lang.$t: $x" >> Make-hooks 32058done 32059 32060echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks 32061echo "SERIAL_LIST =" >> Make-hooks 32062echo else >> Make-hooks 32063lang_cnt=0 32064lang_list= 32065prev=c 32066serialization_languages=c 32067for lang in $all_selected_languages 32068do 32069 test $lang = c && continue 32070 if test $lang = lto; then 32071 serialization_languages="$serialization_languages lto1 lto2" 32072 else 32073 serialization_languages="$serialization_languages $lang" 32074 fi 32075done 32076for lang in $serialization_languages 32077do 32078 test $lang = c && continue 32079 lang_cnt=`expr $lang_cnt + 1` 32080 lang_list=" $prev$lang_list" 32081 prev=${lang} 32082done 32083echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks 32084echo endif >> Make-hooks 32085echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks 32086echo "INDEX.c = 0" >> Make-hooks 32087lang_idx=1 32088for lang in $serialization_languages 32089do 32090 test $lang = c && continue 32091 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks 32092 echo "INDEX.$lang = $lang_idx" >> Make-hooks 32093 lang_cnt=`expr $lang_cnt - 1` 32094 lang_idx=`expr $lang_idx + 1` 32095done 32096 32097# -------- 32098# Option include files 32099# -------- 32100 32101${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk 32102option_includes="option-includes.mk" 32103 32104 32105# -------- 32106# UNSORTED 32107# -------- 32108 32109# Create .gdbinit. 32110 32111echo "dir ." > .gdbinit 32112echo "dir ${srcdir}" >> .gdbinit 32113if test x$gdb_needs_out_file_path = xyes 32114then 32115 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit 32116fi 32117if test "x$subdirs" != x; then 32118 for s in $subdirs 32119 do 32120 echo "dir ${srcdir}/$s" >> .gdbinit 32121 done 32122fi 32123echo "source ${srcdir}/gdbinit.in" >> .gdbinit 32124echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit 32125 32126# Put a breakpoint on __asan_report_error to help with debugging buffer 32127# overflow. 32128case "$CFLAGS" in 32129*-fsanitize=address*) 32130 echo "source ${srcdir}/gdbasan.in" >> .gdbinit 32131 ;; 32132esac 32133 32134gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)' 32135 32136 32137 32138# Find a directory in which to install a shared libgcc. 32139 32140# Check whether --enable-version-specific-runtime-libs was given. 32141if test "${enable_version_specific_runtime_libs+set}" = set; then : 32142 enableval=$enable_version_specific_runtime_libs; 32143fi 32144 32145 32146# Substitute configuration variables 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216# Echo link setup. 32217if test x${build} = x${host} ; then 32218 if test x${host} = x${target} ; then 32219 echo "Links are now set up to build a native compiler for ${target}." 1>&2 32220 else 32221 echo "Links are now set up to build a cross-compiler" 1>&2 32222 echo " from ${host} to ${target}." 1>&2 32223 fi 32224else 32225 if test x${host} = x${target} ; then 32226 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2 32227 echo " for ${target}." 1>&2 32228 else 32229 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2 32230 echo " from ${host} to ${target}." 1>&2 32231 fi 32232fi 32233 32234 32235 32236 32237 32238 32239if test "x${ISLLIBS}" != "x" ; then 32240 32241$as_echo "#define HAVE_isl 1" >>confdefs.h 32242 32243fi 32244 32245# Check for plugin support 32246 # Check whether --enable-plugin was given. 32247if test "${enable_plugin+set}" = set; then : 32248 enableval=$enable_plugin; enable_plugin=$enableval 32249else 32250 enable_plugin=yes; default_plugin=yes 32251fi 32252 32253 32254 pluginlibs= 32255 plugin_check=yes 32256 32257 case "${host}" in 32258 *-*-mingw*) 32259 # Since plugin support under MinGW is not as straightforward as on 32260 # other platforms (e.g., we have to link import library, etc), we 32261 # only enable it if explicitly requested. 32262 if test x"$default_plugin" = x"yes"; then 32263 enable_plugin=no 32264 elif test x"$enable_plugin" = x"yes"; then 32265 # Use make's target variable to derive import library name. 32266 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a' 32267 plugin_check=no 32268 fi 32269 ;; 32270 *-*-darwin*) 32271 if test x$build = x$host; then 32272 export_sym_check="nm${exeext} -g" 32273 elif test x$host = x$target; then 32274 export_sym_check="$gcc_cv_nm -g" 32275 else 32276 export_sym_check= 32277 fi 32278 ;; 32279 *) 32280 if test x$build = x$host; then 32281 export_sym_check="objdump${exeext} -T" 32282 elif test x$host = x$target; then 32283 export_sym_check="$gcc_cv_objdump -T" 32284 else 32285 export_sym_check= 32286 fi 32287 ;; 32288 esac 32289 32290 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then 32291 32292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5 32293$as_echo_n "checking for exported symbols... " >&6; } 32294 if test "x$export_sym_check" != x; then 32295 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c 32296 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1 32297 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 32298 : # No need to use a flag 32299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32300$as_echo "yes" >&6; } 32301 else 32302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32303$as_echo "yes" >&6; } 32304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5 32305$as_echo_n "checking for -rdynamic... " >&6; } 32306 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1 32307 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 32308 plugin_rdynamic=yes 32309 pluginlibs="-rdynamic" 32310 else 32311 plugin_rdynamic=no 32312 enable_plugin=no 32313 fi 32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5 32315$as_echo "$plugin_rdynamic" >&6; } 32316 fi 32317 else 32318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5 32319$as_echo "unable to check" >&6; } 32320 fi 32321 32322 # Check -ldl 32323 saved_LIBS="$LIBS" 32324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 32325$as_echo_n "checking for library containing dlopen... " >&6; } 32326if ${ac_cv_search_dlopen+:} false; then : 32327 $as_echo_n "(cached) " >&6 32328else 32329 ac_func_search_save_LIBS=$LIBS 32330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32331/* end confdefs.h. */ 32332 32333/* Override any GCC internal prototype to avoid an error. 32334 Use char because int might match the return type of a GCC 32335 builtin and then its argument prototype would still apply. */ 32336#ifdef __cplusplus 32337extern "C" 32338#endif 32339char dlopen (); 32340int 32341main () 32342{ 32343return dlopen (); 32344 ; 32345 return 0; 32346} 32347_ACEOF 32348for ac_lib in '' dl; do 32349 if test -z "$ac_lib"; then 32350 ac_res="none required" 32351 else 32352 ac_res=-l$ac_lib 32353 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32354 fi 32355 if ac_fn_cxx_try_link "$LINENO"; then : 32356 ac_cv_search_dlopen=$ac_res 32357fi 32358rm -f core conftest.err conftest.$ac_objext \ 32359 conftest$ac_exeext 32360 if ${ac_cv_search_dlopen+:} false; then : 32361 break 32362fi 32363done 32364if ${ac_cv_search_dlopen+:} false; then : 32365 32366else 32367 ac_cv_search_dlopen=no 32368fi 32369rm conftest.$ac_ext 32370LIBS=$ac_func_search_save_LIBS 32371fi 32372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 32373$as_echo "$ac_cv_search_dlopen" >&6; } 32374ac_res=$ac_cv_search_dlopen 32375if test "$ac_res" != no; then : 32376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32377 32378fi 32379 32380 if test x"$ac_cv_search_dlopen" = x"-ldl"; then 32381 pluginlibs="$pluginlibs -ldl" 32382 fi 32383 LIBS="$saved_LIBS" 32384 32385 # Check that we can build shared objects with -fPIC -shared 32386 saved_LDFLAGS="$LDFLAGS" 32387 saved_CFLAGS="$CFLAGS" 32388 saved_CXXFLAGS="$CXXFLAGS" 32389 case "${host}" in 32390 *-*-darwin*) 32391 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` 32392 CFLAGS="$CFLAGS -fPIC" 32393 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g` 32394 CXXFLAGS="$CXXFLAGS -fPIC" 32395 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup" 32396 ;; 32397 *) 32398 CFLAGS="$CFLAGS -fPIC" 32399 CXXFLAGS="$CXXFLAGS -fPIC" 32400 LDFLAGS="$LDFLAGS -fPIC -shared" 32401 ;; 32402 esac 32403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5 32404$as_echo_n "checking for -fPIC -shared... " >&6; } 32405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32406/* end confdefs.h. */ 32407extern int X; 32408int 32409main () 32410{ 32411return X == 0; 32412 ; 32413 return 0; 32414} 32415_ACEOF 32416if ac_fn_cxx_try_link "$LINENO"; then : 32417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32418$as_echo "yes" >&6; }; have_pic_shared=yes 32419else 32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32421$as_echo "no" >&6; }; have_pic_shared=no 32422fi 32423rm -f core conftest.err conftest.$ac_objext \ 32424 conftest$ac_exeext conftest.$ac_ext 32425 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then 32426 pluginlibs= 32427 enable_plugin=no 32428 fi 32429 LDFLAGS="$saved_LDFLAGS" 32430 CFLAGS="$saved_CFLAGS" 32431 CXXFLAGS="$saved_CXXFLAGS" 32432 32433 # If plugin support had been requested but not available, fail. 32434 if test x"$enable_plugin" = x"no" ; then 32435 if test x"$default_plugin" != x"yes"; then 32436 as_fn_error $? " 32437 Building GCC with plugin support requires a host that supports 32438 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5 32439 fi 32440 fi 32441 fi 32442 32443 32444 32445if test x"$enable_plugin" = x"yes"; then 32446 32447$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h 32448 32449fi 32450 32451 32452# Enable --enable-host-shared 32453# Check whether --enable-host-shared was given. 32454if test "${enable_host_shared+set}" = set; then : 32455 enableval=$enable_host_shared; PICFLAG=-fPIC 32456else 32457 PICFLAG= 32458fi 32459 32460 32461 32462 32463 32464# Check whether --enable-libquadmath-support was given. 32465if test "${enable_libquadmath_support+set}" = set; then : 32466 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 32467else 32468 ENABLE_LIBQUADMATH_SUPPORT=yes 32469fi 32470 32471if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then 32472 32473$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h 32474 32475fi 32476 32477 32478# Specify what hash style to use by default. 32479 32480# Check whether --with-linker-hash-style was given. 32481if test "${with_linker_hash_style+set}" = set; then : 32482 withval=$with_linker_hash_style; case x"$withval" in 32483 xsysv) 32484 LINKER_HASH_STYLE=sysv 32485 ;; 32486 xgnu) 32487 LINKER_HASH_STYLE=gnu 32488 ;; 32489 xboth) 32490 LINKER_HASH_STYLE=both 32491 ;; 32492 *) 32493 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5 32494 ;; 32495 esac 32496else 32497 LINKER_HASH_STYLE='' 32498fi 32499 32500if test x"${LINKER_HASH_STYLE}" != x; then 32501 32502cat >>confdefs.h <<_ACEOF 32503#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE" 32504_ACEOF 32505 32506fi 32507 32508# Specify what should be the default of -fdiagnostics-color option. 32509 32510# Check whether --with-diagnostics-color was given. 32511if test "${with_diagnostics_color+set}" = set; then : 32512 withval=$with_diagnostics_color; case x"$withval" in 32513 xnever) 32514 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO 32515 ;; 32516 xauto) 32517 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO 32518 ;; 32519 xauto-if-env) 32520 DIAGNOSTICS_COLOR_DEFAULT=-1 32521 ;; 32522 xalways) 32523 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES 32524 ;; 32525 *) 32526 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5 32527 ;; 32528 esac 32529else 32530 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO 32531fi 32532 32533 32534cat >>confdefs.h <<_ACEOF 32535#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT 32536_ACEOF 32537 32538 32539# Specify what should be the default of -fdiagnostics-urls option. 32540 32541# Check whether --with-diagnostics-urls was given. 32542if test "${with_diagnostics_urls+set}" = set; then : 32543 withval=$with_diagnostics_urls; case x"$withval" in 32544 xnever) 32545 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO 32546 ;; 32547 xauto) 32548 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO 32549 ;; 32550 xauto-if-env) 32551 DIAGNOSTICS_URLS_DEFAULT=-1 32552 ;; 32553 xalways) 32554 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES 32555 ;; 32556 *) 32557 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5 32558 ;; 32559 esac 32560else 32561 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO 32562fi 32563 32564 32565cat >>confdefs.h <<_ACEOF 32566#define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT 32567_ACEOF 32568 32569 32570# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit 32571# of jit/jit-playback.cc. 32572gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"` 32573echo "gcc_driver_version: ${gcc_driver_version}" 32574cat > gcc-driver-name.h <<EOF 32575#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}" 32576EOF 32577 32578# Check whether --enable-default-pie was given. 32579# Check whether --enable-default-pie was given. 32580if test "${enable_default_pie+set}" = set; then : 32581 enableval=$enable_default_pie; enable_default_pie=$enableval 32582else 32583 enable_default_pie=no 32584fi 32585 32586if test x$enable_default_pie = xyes ; then 32587 32588$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h 32589 32590fi 32591 32592 32593# Check if -fno-PIE works. 32594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5 32595$as_echo_n "checking for -fno-PIE option... " >&6; } 32596if ${gcc_cv_c_no_fpie+:} false; then : 32597 $as_echo_n "(cached) " >&6 32598else 32599 saved_CXXFLAGS="$CXXFLAGS" 32600 CXXFLAGS="$CXXFLAGS -fno-PIE" 32601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32602/* end confdefs.h. */ 32603int main(void) {return 0;} 32604_ACEOF 32605if ac_fn_cxx_try_compile "$LINENO"; then : 32606 gcc_cv_c_no_fpie=yes 32607else 32608 gcc_cv_c_no_fpie=no 32609fi 32610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32611 CXXFLAGS="$saved_CXXFLAGS" 32612fi 32613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5 32614$as_echo "$gcc_cv_c_no_fpie" >&6; } 32615if test "$gcc_cv_c_no_fpie" = "yes"; then 32616 NO_PIE_CFLAGS="-fno-PIE" 32617fi 32618 32619 32620# Check if -no-pie works. 32621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5 32622$as_echo_n "checking for -no-pie option... " >&6; } 32623if ${gcc_cv_no_pie+:} false; then : 32624 $as_echo_n "(cached) " >&6 32625else 32626 saved_LDFLAGS="$LDFLAGS" 32627 LDFLAGS="$LDFLAGS -no-pie" 32628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32629/* end confdefs.h. */ 32630int main(void) {return 0;} 32631_ACEOF 32632if ac_fn_cxx_try_link "$LINENO"; then : 32633 gcc_cv_no_pie=yes 32634else 32635 gcc_cv_no_pie=no 32636fi 32637rm -f core conftest.err conftest.$ac_objext \ 32638 conftest$ac_exeext conftest.$ac_ext 32639 LDFLAGS="$saved_LDFLAGS" 32640fi 32641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5 32642$as_echo "$gcc_cv_no_pie" >&6; } 32643if test "$gcc_cv_no_pie" = "yes"; then 32644 NO_PIE_FLAG="-no-pie" 32645fi 32646 32647 32648# Enable Intel CET on Intel CET enabled host if jit is enabled. 32649 # Check whether --enable-cet was given. 32650if test "${enable_cet+set}" = set; then : 32651 enableval=$enable_cet; 32652 case "$enableval" in 32653 yes|no|auto) ;; 32654 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 32655 esac 32656 32657else 32658 enable_cet=auto 32659fi 32660 32661 32662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 32663$as_echo_n "checking for CET support... " >&6; } 32664 32665case "$host" in 32666 i[34567]86-*-linux* | x86_64-*-linux*) 32667 may_have_cet=yes 32668 cet_save_CFLAGS="$CFLAGS" 32669 CFLAGS="$CFLAGS -fcf-protection" 32670 case "$enable_cet" in 32671 auto) 32672 # Check if target supports multi-byte NOPs 32673 # and if compiler and assembler support CET. 32674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32675/* end confdefs.h. */ 32676 32677int 32678main () 32679{ 32680 32681#if !defined(__SSE2__) 32682#error target does not support multi-byte NOPs 32683#else 32684asm ("setssbsy"); 32685#endif 32686 32687 ; 32688 return 0; 32689} 32690_ACEOF 32691if ac_fn_cxx_try_compile "$LINENO"; then : 32692 enable_cet=yes 32693else 32694 enable_cet=no 32695fi 32696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32697 ;; 32698 yes) 32699 # Check if compiler and assembler support CET. 32700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32701/* end confdefs.h. */ 32702 32703int 32704main () 32705{ 32706asm ("setssbsy"); 32707 ; 32708 return 0; 32709} 32710_ACEOF 32711if ac_fn_cxx_try_compile "$LINENO"; then : 32712 support_cet=yes 32713else 32714 support_cet=no 32715fi 32716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32717 if test $support_cet = "no"; then 32718 if test x$enable_bootstrap != xno \ 32719 && test -z "${with_build_subdir}" \ 32720 && (test ! -f ../stage_current \ 32721 || test `cat ../stage_current` != "stage1"); then 32722 # Require CET support only for the final GCC build. 32723 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5 32724 else 32725 # Don't enable CET without CET support for non-bootstrap 32726 # build, in stage1 nor for build support. 32727 enable_cet=no 32728 fi 32729 fi 32730 ;; 32731 esac 32732 CFLAGS="$cet_save_CFLAGS" 32733 ;; 32734 *) 32735 may_have_cet=no 32736 enable_cet=no 32737 ;; 32738esac 32739 32740cet_save_CFLAGS="$CFLAGS" 32741CFLAGS="$CFLAGS -fcf-protection=none" 32742cet_save_LDFLAGS="$LDFLAGS" 32743LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk" 32744if test x$may_have_cet = xyes; then 32745 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work. 32746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32747/* end confdefs.h. */ 32748 32749int 32750main () 32751{ 32752return 0; 32753 ; 32754 return 0; 32755} 32756_ACEOF 32757if ac_fn_cxx_try_link "$LINENO"; then : 32758 may_have_cet=yes 32759else 32760 may_have_cet=no 32761fi 32762rm -f core conftest.err conftest.$ac_objext \ 32763 conftest$ac_exeext conftest.$ac_ext 32764fi 32765 32766if test x$may_have_cet = xyes; then 32767 if test x$cross_compiling = xno; then 32768 if test "$cross_compiling" = yes; then : 32769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32771as_fn_error $? "cannot run test program while cross compiling 32772See \`config.log' for more details" "$LINENO" 5; } 32773else 32774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32775/* end confdefs.h. */ 32776 32777int 32778main () 32779{ 32780 asm ("endbr32"); 32781 return 0; 32782} 32783 32784_ACEOF 32785if ac_fn_cxx_try_run "$LINENO"; then : 32786 have_multi_byte_nop=yes 32787else 32788 have_multi_byte_nop=no 32789fi 32790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32791 conftest.$ac_objext conftest.beam conftest.$ac_ext 32792fi 32793 32794 have_cet=no 32795 if test x$have_multi_byte_nop = xyes; then 32796 if test "$cross_compiling" = yes; then : 32797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32799as_fn_error $? "cannot run test program while cross compiling 32800See \`config.log' for more details" "$LINENO" 5; } 32801else 32802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32803/* end confdefs.h. */ 32804 32805static void 32806foo (void) 32807{ 32808} 32809 32810static void 32811__attribute__ ((noinline, noclone)) 32812xxx (void (*f) (void)) 32813{ 32814 f (); 32815} 32816 32817static void 32818__attribute__ ((noinline, noclone)) 32819bar (void) 32820{ 32821 xxx (foo); 32822} 32823 32824int 32825main () 32826{ 32827 bar (); 32828 return 0; 32829} 32830 32831_ACEOF 32832if ac_fn_cxx_try_run "$LINENO"; then : 32833 have_cet=no 32834else 32835 have_cet=yes 32836fi 32837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32838 conftest.$ac_objext conftest.beam conftest.$ac_ext 32839fi 32840 32841 fi 32842 if test x$enable_cet = xno -a x$have_cet = xyes; then 32843 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5 32844 fi 32845 fi 32846else 32847 # Enable CET in cross compiler if possible so that it will run on both 32848 # CET and non-CET hosts. 32849 have_cet=yes 32850fi 32851if test x$enable_cet = xyes; then 32852 CET_HOST_FLAGS="-fcf-protection" 32853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32854$as_echo "yes" >&6; } 32855else 32856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32857$as_echo "no" >&6; } 32858fi 32859CFLAGS="$cet_save_CFLAGS" 32860LDFLAGS="$cet_save_LDFLAGS" 32861 32862case x$enable_languages in 32863*jit*) 32864 ;; 32865*) 32866 CET_HOST_FLAGS= 32867 ;; 32868esac 32869 32870 32871# Check linker supports '-z bndplt' 32872ld_bndplt_support=no 32873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5 32874$as_echo_n "checking linker -z bndplt option... " >&6; } 32875if test x"$ld_is_gold" = xno; then 32876 if test $in_tree_ld = yes ; then 32877 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 32878 ld_bndplt_support=yes 32879 fi 32880 elif test x$gcc_cv_ld != x; then 32881 # Check if linker supports -a bndplt option 32882 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then 32883 ld_bndplt_support=yes 32884 fi 32885 fi 32886fi 32887if test x"$ld_bndplt_support" = xyes; then 32888 32889$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h 32890 32891fi 32892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5 32893$as_echo "$ld_bndplt_support" >&6; } 32894 32895# Check linker supports '--push-state'/'--pop-state' 32896ld_pushpopstate_support=no 32897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5 32898$as_echo_n "checking linker --push-state/--pop-state options... " >&6; } 32899if test x"$ld_is_gold" = xno; then 32900 if test $in_tree_ld = yes ; then 32901 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 32902 ld_pushpopstate_support=yes 32903 fi 32904 elif test x$gcc_cv_ld != x; then 32905 # Check if linker supports --push-state/--pop-state options 32906 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then 32907 ld_pushpopstate_support=yes 32908 fi 32909 fi 32910fi 32911if test x"$ld_pushpopstate_support" = xyes; then 32912 32913$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h 32914 32915fi 32916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5 32917$as_echo "$ld_pushpopstate_support" >&6; } 32918 32919# On s390, float_t has historically been statically defined as double for no 32920# good reason. To comply with the C standard in the light of this definition, 32921# gcc has evaluated float expressions in double precision when in 32922# standards-compatible mode or when given -fexcess-precision=standard. To enable 32923# a smooth transition towards the new model used by most architectures, where 32924# gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives 32925# float_t from that, this behavior can be configured with 32926# --enable-s390-excess-float-precision. When given as enabled, that flag selects 32927# the old model. When omitted, native builds and cross compiles that have target 32928# libc headers will detect whether libc clamps float_t to double and in that 32929# case maintain the old model. Otherwise, they will default to the new model. 32930# Check whether --enable-s390-excess-float-precision was given. 32931if test "${enable_s390_excess_float_precision+set}" = set; then : 32932 enableval=$enable_s390_excess_float_precision; 32933else 32934 enable_s390_excess_float_precision=auto 32935fi 32936 32937 32938case $target in 32939 s390*-linux*) 32940 if test x"$enable_s390_excess_float_precision" = xauto; then 32941 # Can we autodetect the behavior of the target libc? 32942 if test "$target" = "$host" -a "$host" = "$build"; then 32943 enable_s390_excess_float_precision=autodetect 32944 elif test "x$with_headers" != xno; then 32945 # cross build. are target headers available? 32946 # carefully coerce the build-system compiler to use target headers 32947 saved_CXXFLAGS="$CXXFLAGS" 32948 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'` 32949 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET" 32950 CXXFLAGS="$CROSS_TEST_CXXFLAGS" 32951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32952/* end confdefs.h. */ 32953 32954#include <math.h> 32955 32956_ACEOF 32957if ac_fn_cxx_try_compile "$LINENO"; then : 32958 enable_s390_excess_float_precision=autodetect 32959fi 32960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32961 CXXFLAGS="$saved_CXXFLAGS" 32962 fi 32963 32964 if test x"$enable_s390_excess_float_precision" = xautodetect; then 32965 saved_CXXFLAGS="$CXXFLAGS" 32966 if ! test "$target" = "$host" -a "$host" = "$build"; then 32967 CXXFLAGS="$CROSS_TEST_CXXFLAGS" 32968 unset CROSS_TEST_CXXFLAGS 32969 fi 32970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5 32971$as_echo_n "checking for glibc clamping float_t to double... " >&6; } 32972if ${gcc_cv_float_t_clamped_to_double+:} false; then : 32973 $as_echo_n "(cached) " >&6 32974else 32975 32976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32977/* end confdefs.h. */ 32978 32979#define __FLT_EVAL_METHOD__ 0 32980#include <math.h> 32981int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1]; 32982 32983_ACEOF 32984if ac_fn_cxx_try_compile "$LINENO"; then : 32985 gcc_cv_float_t_clamped_to_double=yes 32986else 32987 gcc_cv_float_t_clamped_to_double=no 32988fi 32989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32990fi 32991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5 32992$as_echo "$gcc_cv_float_t_clamped_to_double" >&6; } 32993 CXXFLAGS="$saved_CXXFLAGS" 32994 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double" 32995 else 32996 # no way to detect behavior of target libc, default to new model 32997 enable_s390_excess_float_precision=no 32998 fi 32999 fi 33000 33001 33002 if test x"$enable_s390_excess_float_precision" = xyes; then 33003 33004$as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h 33005 33006 fi 33007 ;; 33008esac 33009 33010# Configure the subdirectories 33011# AC_CONFIG_SUBDIRS($subdirs) 33012 33013# Create the Makefile 33014# and configure language subdirectories 33015ac_config_files="$ac_config_files $all_outputs" 33016 33017 33018ac_config_commands="$ac_config_commands default" 33019 33020cat >confcache <<\_ACEOF 33021# This file is a shell script that caches the results of configure 33022# tests run on this system so they can be shared between configure 33023# scripts and configure runs, see configure's option --config-cache. 33024# It is not useful on other systems. If it contains results you don't 33025# want to keep, you may remove or edit it. 33026# 33027# config.status only pays attention to the cache file if you give it 33028# the --recheck option to rerun configure. 33029# 33030# `ac_cv_env_foo' variables (set or unset) will be overridden when 33031# loading this file, other *unset* `ac_cv_foo' will be assigned the 33032# following values. 33033 33034_ACEOF 33035 33036# The following way of writing the cache mishandles newlines in values, 33037# but we know of no workaround that is simple, portable, and efficient. 33038# So, we kill variables containing newlines. 33039# Ultrix sh set writes to stderr and can't be redirected directly, 33040# and sets the high bit in the cache file unless we assign to the vars. 33041( 33042 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 33043 eval ac_val=\$$ac_var 33044 case $ac_val in #( 33045 *${as_nl}*) 33046 case $ac_var in #( 33047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 33048$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 33049 esac 33050 case $ac_var in #( 33051 _ | IFS | as_nl) ;; #( 33052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 33053 *) { eval $ac_var=; unset $ac_var;} ;; 33054 esac ;; 33055 esac 33056 done 33057 33058 (set) 2>&1 | 33059 case $as_nl`(ac_space=' '; set) 2>&1` in #( 33060 *${as_nl}ac_space=\ *) 33061 # `set' does not quote correctly, so add quotes: double-quote 33062 # substitution turns \\\\ into \\, and sed turns \\ into \. 33063 sed -n \ 33064 "s/'/'\\\\''/g; 33065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 33066 ;; #( 33067 *) 33068 # `set' quotes correctly as required by POSIX, so do not add quotes. 33069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 33070 ;; 33071 esac | 33072 sort 33073) | 33074 sed ' 33075 /^ac_cv_env_/b end 33076 t clear 33077 :clear 33078 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 33079 t end 33080 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 33081 :end' >>confcache 33082if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 33083 if test -w "$cache_file"; then 33084 if test "x$cache_file" != "x/dev/null"; then 33085 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 33086$as_echo "$as_me: updating cache $cache_file" >&6;} 33087 if test ! -f "$cache_file" || test -h "$cache_file"; then 33088 cat confcache >"$cache_file" 33089 else 33090 case $cache_file in #( 33091 */* | ?:*) 33092 mv -f confcache "$cache_file"$$ && 33093 mv -f "$cache_file"$$ "$cache_file" ;; #( 33094 *) 33095 mv -f confcache "$cache_file" ;; 33096 esac 33097 fi 33098 fi 33099 else 33100 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 33101$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 33102 fi 33103fi 33104rm -f confcache 33105 33106test "x$prefix" = xNONE && prefix=$ac_default_prefix 33107# Let make expand exec_prefix. 33108test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 33109 33110DEFS=-DHAVE_CONFIG_H 33111 33112ac_libobjs= 33113ac_ltlibobjs= 33114U= 33115for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 33116 # 1. Remove the extension, and $U if already installed. 33117 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 33118 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 33119 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 33120 # will be set to the directory where LIBOBJS objects are built. 33121 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 33122 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 33123done 33124LIBOBJS=$ac_libobjs 33125 33126LTLIBOBJS=$ac_ltlibobjs 33127 33128 33129 33130 33131: "${CONFIG_STATUS=./config.status}" 33132ac_write_fail=0 33133ac_clean_files_save=$ac_clean_files 33134ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33135{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33136$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 33137as_write_fail=0 33138cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33139#! $SHELL 33140# Generated by $as_me. 33141# Run this file to recreate the current configuration. 33142# Compiler output produced by configure, useful for debugging 33143# configure, is in config.log if it exists. 33144 33145debug=false 33146ac_cs_recheck=false 33147ac_cs_silent=false 33148 33149SHELL=\${CONFIG_SHELL-$SHELL} 33150export SHELL 33151_ASEOF 33152cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33153## -------------------- ## 33154## M4sh Initialization. ## 33155## -------------------- ## 33156 33157# Be more Bourne compatible 33158DUALCASE=1; export DUALCASE # for MKS sh 33159if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 33160 emulate sh 33161 NULLCMD=: 33162 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33163 # is contrary to our usage. Disable this feature. 33164 alias -g '${1+"$@"}'='"$@"' 33165 setopt NO_GLOB_SUBST 33166else 33167 case `(set -o) 2>/dev/null` in #( 33168 *posix*) : 33169 set -o posix ;; #( 33170 *) : 33171 ;; 33172esac 33173fi 33174 33175 33176as_nl=' 33177' 33178export as_nl 33179# Printing a long string crashes Solaris 7 /usr/bin/printf. 33180as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33181as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33182as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33183# Prefer a ksh shell builtin over an external printf program on Solaris, 33184# but without wasting forks for bash or zsh. 33185if test -z "$BASH_VERSION$ZSH_VERSION" \ 33186 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33187 as_echo='print -r --' 33188 as_echo_n='print -rn --' 33189elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33190 as_echo='printf %s\n' 33191 as_echo_n='printf %s' 33192else 33193 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33194 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33195 as_echo_n='/usr/ucb/echo -n' 33196 else 33197 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33198 as_echo_n_body='eval 33199 arg=$1; 33200 case $arg in #( 33201 *"$as_nl"*) 33202 expr "X$arg" : "X\\(.*\\)$as_nl"; 33203 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33204 esac; 33205 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33206 ' 33207 export as_echo_n_body 33208 as_echo_n='sh -c $as_echo_n_body as_echo' 33209 fi 33210 export as_echo_body 33211 as_echo='sh -c $as_echo_body as_echo' 33212fi 33213 33214# The user is always right. 33215if test "${PATH_SEPARATOR+set}" != set; then 33216 PATH_SEPARATOR=: 33217 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33218 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33219 PATH_SEPARATOR=';' 33220 } 33221fi 33222 33223 33224# IFS 33225# We need space, tab and new line, in precisely that order. Quoting is 33226# there to prevent editors from complaining about space-tab. 33227# (If _AS_PATH_WALK were called with IFS unset, it would disable word 33228# splitting by setting IFS to empty value.) 33229IFS=" "" $as_nl" 33230 33231# Find who we are. Look in the path if we contain no directory separator. 33232as_myself= 33233case $0 in #(( 33234 *[\\/]* ) as_myself=$0 ;; 33235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33236for as_dir in $PATH 33237do 33238 IFS=$as_save_IFS 33239 test -z "$as_dir" && as_dir=. 33240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33241 done 33242IFS=$as_save_IFS 33243 33244 ;; 33245esac 33246# We did not find ourselves, most probably we were run as `sh COMMAND' 33247# in which case we are not to be found in the path. 33248if test "x$as_myself" = x; then 33249 as_myself=$0 33250fi 33251if test ! -f "$as_myself"; then 33252 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33253 exit 1 33254fi 33255 33256# Unset variables that we do not need and which cause bugs (e.g. in 33257# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33258# suppresses any "Segmentation fault" message there. '((' could 33259# trigger a bug in pdksh 5.2.14. 33260for as_var in BASH_ENV ENV MAIL MAILPATH 33261do eval test x\${$as_var+set} = xset \ 33262 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33263done 33264PS1='$ ' 33265PS2='> ' 33266PS4='+ ' 33267 33268# NLS nuisances. 33269LC_ALL=C 33270export LC_ALL 33271LANGUAGE=C 33272export LANGUAGE 33273 33274# CDPATH. 33275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33276 33277 33278# as_fn_error STATUS ERROR [LINENO LOG_FD] 33279# ---------------------------------------- 33280# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33281# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33282# script with STATUS, using 1 if that was 0. 33283as_fn_error () 33284{ 33285 as_status=$1; test $as_status -eq 0 && as_status=1 33286 if test "$4"; then 33287 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33288 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33289 fi 33290 $as_echo "$as_me: error: $2" >&2 33291 as_fn_exit $as_status 33292} # as_fn_error 33293 33294 33295# as_fn_set_status STATUS 33296# ----------------------- 33297# Set $? to STATUS, without forking. 33298as_fn_set_status () 33299{ 33300 return $1 33301} # as_fn_set_status 33302 33303# as_fn_exit STATUS 33304# ----------------- 33305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33306as_fn_exit () 33307{ 33308 set +e 33309 as_fn_set_status $1 33310 exit $1 33311} # as_fn_exit 33312 33313# as_fn_unset VAR 33314# --------------- 33315# Portably unset VAR. 33316as_fn_unset () 33317{ 33318 { eval $1=; unset $1;} 33319} 33320as_unset=as_fn_unset 33321# as_fn_append VAR VALUE 33322# ---------------------- 33323# Append the text in VALUE to the end of the definition contained in VAR. Take 33324# advantage of any shell optimizations that allow amortized linear growth over 33325# repeated appends, instead of the typical quadratic growth present in naive 33326# implementations. 33327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33328 eval 'as_fn_append () 33329 { 33330 eval $1+=\$2 33331 }' 33332else 33333 as_fn_append () 33334 { 33335 eval $1=\$$1\$2 33336 } 33337fi # as_fn_append 33338 33339# as_fn_arith ARG... 33340# ------------------ 33341# Perform arithmetic evaluation on the ARGs, and store the result in the 33342# global $as_val. Take advantage of shells that can avoid forks. The arguments 33343# must be portable across $(()) and expr. 33344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33345 eval 'as_fn_arith () 33346 { 33347 as_val=$(( $* )) 33348 }' 33349else 33350 as_fn_arith () 33351 { 33352 as_val=`expr "$@" || test $? -eq 1` 33353 } 33354fi # as_fn_arith 33355 33356 33357if expr a : '\(a\)' >/dev/null 2>&1 && 33358 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33359 as_expr=expr 33360else 33361 as_expr=false 33362fi 33363 33364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33365 as_basename=basename 33366else 33367 as_basename=false 33368fi 33369 33370if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33371 as_dirname=dirname 33372else 33373 as_dirname=false 33374fi 33375 33376as_me=`$as_basename -- "$0" || 33377$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33378 X"$0" : 'X\(//\)$' \| \ 33379 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33380$as_echo X/"$0" | 33381 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33382 s//\1/ 33383 q 33384 } 33385 /^X\/\(\/\/\)$/{ 33386 s//\1/ 33387 q 33388 } 33389 /^X\/\(\/\).*/{ 33390 s//\1/ 33391 q 33392 } 33393 s/.*/./; q'` 33394 33395# Avoid depending upon Character Ranges. 33396as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33397as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33398as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33399as_cr_digits='0123456789' 33400as_cr_alnum=$as_cr_Letters$as_cr_digits 33401 33402ECHO_C= ECHO_N= ECHO_T= 33403case `echo -n x` in #((((( 33404-n*) 33405 case `echo 'xy\c'` in 33406 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33407 xy) ECHO_C='\c';; 33408 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33409 ECHO_T=' ';; 33410 esac;; 33411*) 33412 ECHO_N='-n';; 33413esac 33414 33415rm -f conf$$ conf$$.exe conf$$.file 33416if test -d conf$$.dir; then 33417 rm -f conf$$.dir/conf$$.file 33418else 33419 rm -f conf$$.dir 33420 mkdir conf$$.dir 2>/dev/null 33421fi 33422if (echo >conf$$.file) 2>/dev/null; then 33423 if ln -s conf$$.file conf$$ 2>/dev/null; then 33424 as_ln_s='ln -s' 33425 # ... but there are two gotchas: 33426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33428 # In both cases, we have to default to `cp -pR'. 33429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33430 as_ln_s='cp -pR' 33431 elif ln conf$$.file conf$$ 2>/dev/null; then 33432 as_ln_s=ln 33433 else 33434 as_ln_s='cp -pR' 33435 fi 33436else 33437 as_ln_s='cp -pR' 33438fi 33439rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33440rmdir conf$$.dir 2>/dev/null 33441 33442 33443# as_fn_mkdir_p 33444# ------------- 33445# Create "$as_dir" as a directory, including parents if necessary. 33446as_fn_mkdir_p () 33447{ 33448 33449 case $as_dir in #( 33450 -*) as_dir=./$as_dir;; 33451 esac 33452 test -d "$as_dir" || eval $as_mkdir_p || { 33453 as_dirs= 33454 while :; do 33455 case $as_dir in #( 33456 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33457 *) as_qdir=$as_dir;; 33458 esac 33459 as_dirs="'$as_qdir' $as_dirs" 33460 as_dir=`$as_dirname -- "$as_dir" || 33461$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33462 X"$as_dir" : 'X\(//\)[^/]' \| \ 33463 X"$as_dir" : 'X\(//\)$' \| \ 33464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33465$as_echo X"$as_dir" | 33466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33467 s//\1/ 33468 q 33469 } 33470 /^X\(\/\/\)[^/].*/{ 33471 s//\1/ 33472 q 33473 } 33474 /^X\(\/\/\)$/{ 33475 s//\1/ 33476 q 33477 } 33478 /^X\(\/\).*/{ 33479 s//\1/ 33480 q 33481 } 33482 s/.*/./; q'` 33483 test -d "$as_dir" && break 33484 done 33485 test -z "$as_dirs" || eval "mkdir $as_dirs" 33486 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33487 33488 33489} # as_fn_mkdir_p 33490if mkdir -p . 2>/dev/null; then 33491 as_mkdir_p='mkdir -p "$as_dir"' 33492else 33493 test -d ./-p && rmdir ./-p 33494 as_mkdir_p=false 33495fi 33496 33497 33498# as_fn_executable_p FILE 33499# ----------------------- 33500# Test if FILE is an executable regular file. 33501as_fn_executable_p () 33502{ 33503 test -f "$1" && test -x "$1" 33504} # as_fn_executable_p 33505as_test_x='test -x' 33506as_executable_p=as_fn_executable_p 33507 33508# Sed expression to map a string onto a valid CPP name. 33509as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33510 33511# Sed expression to map a string onto a valid variable name. 33512as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33513 33514 33515exec 6>&1 33516## ----------------------------------- ## 33517## Main body of $CONFIG_STATUS script. ## 33518## ----------------------------------- ## 33519_ASEOF 33520test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33521 33522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33523# Save the log message, to keep $0 and so on meaningful, and to 33524# report actual input values of CONFIG_FILES etc. instead of their 33525# values after options handling. 33526ac_log=" 33527This file was extended by $as_me, which was 33528generated by GNU Autoconf 2.69. Invocation command line was 33529 33530 CONFIG_FILES = $CONFIG_FILES 33531 CONFIG_HEADERS = $CONFIG_HEADERS 33532 CONFIG_LINKS = $CONFIG_LINKS 33533 CONFIG_COMMANDS = $CONFIG_COMMANDS 33534 $ $0 $@ 33535 33536on `(hostname || uname -n) 2>/dev/null | sed 1q` 33537" 33538 33539_ACEOF 33540 33541case $ac_config_files in *" 33542"*) set x $ac_config_files; shift; ac_config_files=$*;; 33543esac 33544 33545case $ac_config_headers in *" 33546"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33547esac 33548 33549 33550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33551# Files that config.status was made for. 33552config_files="$ac_config_files" 33553config_headers="$ac_config_headers" 33554config_links="$ac_config_links" 33555config_commands="$ac_config_commands" 33556 33557_ACEOF 33558 33559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33560ac_cs_usage="\ 33561\`$as_me' instantiates files and other configuration actions 33562from templates according to the current configuration. Unless the files 33563and actions are specified as TAGs, all are instantiated by default. 33564 33565Usage: $0 [OPTION]... [TAG]... 33566 33567 -h, --help print this help, then exit 33568 -V, --version print version number and configuration settings, then exit 33569 --config print configuration, then exit 33570 -q, --quiet, --silent 33571 do not print progress messages 33572 -d, --debug don't remove temporary files 33573 --recheck update $as_me by reconfiguring in the same conditions 33574 --file=FILE[:TEMPLATE] 33575 instantiate the configuration file FILE 33576 --header=FILE[:TEMPLATE] 33577 instantiate the configuration header FILE 33578 33579Configuration files: 33580$config_files 33581 33582Configuration headers: 33583$config_headers 33584 33585Configuration links: 33586$config_links 33587 33588Configuration commands: 33589$config_commands 33590 33591Report bugs to the package provider." 33592 33593_ACEOF 33594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33595ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 33596ac_cs_version="\\ 33597config.status 33598configured by $0, generated by GNU Autoconf 2.69, 33599 with options \\"\$ac_cs_config\\" 33600 33601Copyright (C) 2012 Free Software Foundation, Inc. 33602This config.status script is free software; the Free Software Foundation 33603gives unlimited permission to copy, distribute and modify it." 33604 33605ac_pwd='$ac_pwd' 33606srcdir='$srcdir' 33607AWK='$AWK' 33608test -n "\$AWK" || AWK=awk 33609_ACEOF 33610 33611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33612# The default lists apply if the user does not specify any file. 33613ac_need_defaults=: 33614while test $# != 0 33615do 33616 case $1 in 33617 --*=?*) 33618 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33619 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 33620 ac_shift=: 33621 ;; 33622 --*=) 33623 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33624 ac_optarg= 33625 ac_shift=: 33626 ;; 33627 *) 33628 ac_option=$1 33629 ac_optarg=$2 33630 ac_shift=shift 33631 ;; 33632 esac 33633 33634 case $ac_option in 33635 # Handling of the options. 33636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 33637 ac_cs_recheck=: ;; 33638 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 33639 $as_echo "$ac_cs_version"; exit ;; 33640 --config | --confi | --conf | --con | --co | --c ) 33641 $as_echo "$ac_cs_config"; exit ;; 33642 --debug | --debu | --deb | --de | --d | -d ) 33643 debug=: ;; 33644 --file | --fil | --fi | --f ) 33645 $ac_shift 33646 case $ac_optarg in 33647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33648 '') as_fn_error $? "missing file argument" ;; 33649 esac 33650 as_fn_append CONFIG_FILES " '$ac_optarg'" 33651 ac_need_defaults=false;; 33652 --header | --heade | --head | --hea ) 33653 $ac_shift 33654 case $ac_optarg in 33655 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33656 esac 33657 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 33658 ac_need_defaults=false;; 33659 --he | --h) 33660 # Conflict between --help and --header 33661 as_fn_error $? "ambiguous option: \`$1' 33662Try \`$0 --help' for more information.";; 33663 --help | --hel | -h ) 33664 $as_echo "$ac_cs_usage"; exit ;; 33665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 33666 | -silent | --silent | --silen | --sile | --sil | --si | --s) 33667 ac_cs_silent=: ;; 33668 33669 # This is an error. 33670 -*) as_fn_error $? "unrecognized option: \`$1' 33671Try \`$0 --help' for more information." ;; 33672 33673 *) as_fn_append ac_config_targets " $1" 33674 ac_need_defaults=false ;; 33675 33676 esac 33677 shift 33678done 33679 33680ac_configure_extra_args= 33681 33682if $ac_cs_silent; then 33683 exec 6>/dev/null 33684 ac_configure_extra_args="$ac_configure_extra_args --silent" 33685fi 33686 33687_ACEOF 33688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33689if \$ac_cs_recheck; then 33690 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 33691 shift 33692 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 33693 CONFIG_SHELL='$SHELL' 33694 export CONFIG_SHELL 33695 exec "\$@" 33696fi 33697 33698_ACEOF 33699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33700exec 5>>config.log 33701{ 33702 echo 33703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 33704## Running $as_me. ## 33705_ASBOX 33706 $as_echo "$ac_log" 33707} >&5 33708 33709_ACEOF 33710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33711# 33712# INIT-COMMANDS 33713# 33714ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 33715subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 33716subdirs='$subdirs' 33717 33718_ACEOF 33719 33720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33721 33722# Handling of arguments. 33723for ac_config_target in $ac_config_targets 33724do 33725 case $ac_config_target in 33726 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;; 33727 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; 33728 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;; 33729 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;; 33730 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;; 33731 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;; 33732 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;; 33733 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;; 33734 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;; 33735 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 33736 33737 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 33738 esac 33739done 33740 33741 33742# If the user did not use the arguments to specify the items to instantiate, 33743# then the envvar interface is used. Set only those that are not. 33744# We use the long form for the default assignment because of an extremely 33745# bizarre bug on SunOS 4.1.3. 33746if $ac_need_defaults; then 33747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 33748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 33749 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 33750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 33751fi 33752 33753# Have a temporary directory for convenience. Make it in the build tree 33754# simply because there is no reason against having it here, and in addition, 33755# creating and moving files from /tmp can sometimes cause problems. 33756# Hook for its removal unless debugging. 33757# Note that there is a small window in which the directory will not be cleaned: 33758# after its creation but before its name has been assigned to `$tmp'. 33759$debug || 33760{ 33761 tmp= ac_tmp= 33762 trap 'exit_status=$? 33763 : "${ac_tmp:=$tmp}" 33764 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 33765' 0 33766 trap 'as_fn_exit 1' 1 2 13 15 33767} 33768# Create a (secure) tmp directory for tmp files. 33769 33770{ 33771 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 33772 test -d "$tmp" 33773} || 33774{ 33775 tmp=./conf$$-$RANDOM 33776 (umask 077 && mkdir "$tmp") 33777} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 33778ac_tmp=$tmp 33779 33780# Set up the scripts for CONFIG_FILES section. 33781# No need to generate them if there are no CONFIG_FILES. 33782# This happens for instance with `./config.status config.h'. 33783if test -n "$CONFIG_FILES"; then 33784 33785if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 33786 ac_cs_awk_getline=: 33787 ac_cs_awk_pipe_init= 33788 ac_cs_awk_read_file=' 33789 while ((getline aline < (F[key])) > 0) 33790 print(aline) 33791 close(F[key])' 33792 ac_cs_awk_pipe_fini= 33793else 33794 ac_cs_awk_getline=false 33795 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 33796 ac_cs_awk_read_file=' 33797 print "|#_!!_#|" 33798 print "cat " F[key] " &&" 33799 '$ac_cs_awk_pipe_init 33800 # The final `:' finishes the AND list. 33801 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 33802fi 33803ac_cr=`echo X | tr X '\015'` 33804# On cygwin, bash can eat \r inside `` if the user requested igncr. 33805# But we know of no other shell where ac_cr would be empty at this 33806# point, so we can use a bashism as a fallback. 33807if test "x$ac_cr" = x; then 33808 eval ac_cr=\$\'\\r\' 33809fi 33810ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 33811if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 33812 ac_cs_awk_cr='\\r' 33813else 33814 ac_cs_awk_cr=$ac_cr 33815fi 33816 33817echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 33818_ACEOF 33819 33820# Create commands to substitute file output variables. 33821{ 33822 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 33823 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 33824 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 33825 echo "_ACAWK" && 33826 echo "_ACEOF" 33827} >conf$$files.sh && 33828. ./conf$$files.sh || 33829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33830rm -f conf$$files.sh 33831 33832{ 33833 echo "cat >conf$$subs.awk <<_ACEOF" && 33834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 33835 echo "_ACEOF" 33836} >conf$$subs.sh || 33837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33838ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 33839ac_delim='%!_!# ' 33840for ac_last_try in false false false false false :; do 33841 . ./conf$$subs.sh || 33842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33843 33844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 33845 if test $ac_delim_n = $ac_delim_num; then 33846 break 33847 elif $ac_last_try; then 33848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 33849 else 33850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 33851 fi 33852done 33853rm -f conf$$subs.sh 33854 33855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33856cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 33857_ACEOF 33858sed -n ' 33859h 33860s/^/S["/; s/!.*/"]=/ 33861p 33862g 33863s/^[^!]*!// 33864:repl 33865t repl 33866s/'"$ac_delim"'$// 33867t delim 33868:nl 33869h 33870s/\(.\{148\}\)..*/\1/ 33871t more1 33872s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 33873p 33874n 33875b repl 33876:more1 33877s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 33878p 33879g 33880s/.\{148\}// 33881t nl 33882:delim 33883h 33884s/\(.\{148\}\)..*/\1/ 33885t more2 33886s/["\\]/\\&/g; s/^/"/; s/$/"/ 33887p 33888b 33889:more2 33890s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 33891p 33892g 33893s/.\{148\}// 33894t delim 33895' <conf$$subs.awk | sed ' 33896/^[^""]/{ 33897 N 33898 s/\n// 33899} 33900' >>$CONFIG_STATUS || ac_write_fail=1 33901rm -f conf$$subs.awk 33902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33903_ACAWK 33904cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 33905 for (key in S) S_is_set[key] = 1 33906 FS = "" 33907 \$ac_cs_awk_pipe_init 33908} 33909{ 33910 line = $ 0 33911 nfields = split(line, field, "@") 33912 substed = 0 33913 len = length(field[1]) 33914 for (i = 2; i < nfields; i++) { 33915 key = field[i] 33916 keylen = length(key) 33917 if (S_is_set[key]) { 33918 value = S[key] 33919 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 33920 len += length(value) + length(field[++i]) 33921 substed = 1 33922 } else 33923 len += 1 + keylen 33924 } 33925 if (nfields == 3 && !substed) { 33926 key = field[2] 33927 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 33928 \$ac_cs_awk_read_file 33929 next 33930 } 33931 } 33932 print line 33933} 33934\$ac_cs_awk_pipe_fini 33935_ACAWK 33936_ACEOF 33937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33938if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 33939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 33940else 33941 cat 33942fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 33943 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 33944_ACEOF 33945 33946# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 33947# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 33948# trailing colons and then remove the whole line if VPATH becomes empty 33949# (actually we leave an empty line to preserve line numbers). 33950if test "x$srcdir" = x.; then 33951 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 33952h 33953s/// 33954s/^/:/ 33955s/[ ]*$/:/ 33956s/:\$(srcdir):/:/g 33957s/:\${srcdir}:/:/g 33958s/:@srcdir@:/:/g 33959s/^:*// 33960s/:*$// 33961x 33962s/\(=[ ]*\).*/\1/ 33963G 33964s/\n// 33965s/^[^=]*=[ ]*$// 33966}' 33967fi 33968 33969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33970fi # test -n "$CONFIG_FILES" 33971 33972# Set up the scripts for CONFIG_HEADERS section. 33973# No need to generate them if there are no CONFIG_HEADERS. 33974# This happens for instance with `./config.status Makefile'. 33975if test -n "$CONFIG_HEADERS"; then 33976cat >"$ac_tmp/defines.awk" <<\_ACAWK || 33977BEGIN { 33978_ACEOF 33979 33980# Transform confdefs.h into an awk script `defines.awk', embedded as 33981# here-document in config.status, that substitutes the proper values into 33982# config.h.in to produce config.h. 33983 33984# Create a delimiter string that does not exist in confdefs.h, to ease 33985# handling of long lines. 33986ac_delim='%!_!# ' 33987for ac_last_try in false false :; do 33988 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 33989 if test -z "$ac_tt"; then 33990 break 33991 elif $ac_last_try; then 33992 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 33993 else 33994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 33995 fi 33996done 33997 33998# For the awk script, D is an array of macro values keyed by name, 33999# likewise P contains macro parameters if any. Preserve backslash 34000# newline sequences. 34001 34002ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34003sed -n ' 34004s/.\{148\}/&'"$ac_delim"'/g 34005t rset 34006:rset 34007s/^[ ]*#[ ]*define[ ][ ]*/ / 34008t def 34009d 34010:def 34011s/\\$// 34012t bsnl 34013s/["\\]/\\&/g 34014s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34015D["\1"]=" \3"/p 34016s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34017d 34018:bsnl 34019s/["\\]/\\&/g 34020s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34021D["\1"]=" \3\\\\\\n"\\/p 34022t cont 34023s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34024t cont 34025d 34026:cont 34027n 34028s/.\{148\}/&'"$ac_delim"'/g 34029t clear 34030:clear 34031s/\\$// 34032t bsnlc 34033s/["\\]/\\&/g; s/^/"/; s/$/"/p 34034d 34035:bsnlc 34036s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34037b cont 34038' <confdefs.h | sed ' 34039s/'"$ac_delim"'/"\\\ 34040"/g' >>$CONFIG_STATUS || ac_write_fail=1 34041 34042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34043 for (key in D) D_is_set[key] = 1 34044 FS = "" 34045} 34046/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34047 line = \$ 0 34048 split(line, arg, " ") 34049 if (arg[1] == "#") { 34050 defundef = arg[2] 34051 mac1 = arg[3] 34052 } else { 34053 defundef = substr(arg[1], 2) 34054 mac1 = arg[2] 34055 } 34056 split(mac1, mac2, "(") #) 34057 macro = mac2[1] 34058 prefix = substr(line, 1, index(line, defundef) - 1) 34059 if (D_is_set[macro]) { 34060 # Preserve the white space surrounding the "#". 34061 print prefix "define", macro P[macro] D[macro] 34062 next 34063 } else { 34064 # Replace #undef with comments. This is necessary, for example, 34065 # in the case of _POSIX_SOURCE, which is predefined and required 34066 # on some systems where configure will not decide to define it. 34067 if (defundef == "undef") { 34068 print "/*", prefix defundef, macro, "*/" 34069 next 34070 } 34071 } 34072} 34073{ print } 34074_ACAWK 34075_ACEOF 34076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34077 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 34078fi # test -n "$CONFIG_HEADERS" 34079 34080 34081eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 34082shift 34083for ac_tag 34084do 34085 case $ac_tag in 34086 :[FHLC]) ac_mode=$ac_tag; continue;; 34087 esac 34088 case $ac_mode$ac_tag in 34089 :[FHL]*:*);; 34090 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 34091 :[FH]-) ac_tag=-:-;; 34092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 34093 esac 34094 ac_save_IFS=$IFS 34095 IFS=: 34096 set x $ac_tag 34097 IFS=$ac_save_IFS 34098 shift 34099 ac_file=$1 34100 shift 34101 34102 case $ac_mode in 34103 :L) ac_source=$1;; 34104 :[FH]) 34105 ac_file_inputs= 34106 for ac_f 34107 do 34108 case $ac_f in 34109 -) ac_f="$ac_tmp/stdin";; 34110 *) # Look for the file first in the build tree, then in the source tree 34111 # (if the path is not absolute). The absolute path cannot be DOS-style, 34112 # because $ac_f cannot contain `:'. 34113 test -f "$ac_f" || 34114 case $ac_f in 34115 [\\/$]*) false;; 34116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 34117 esac || 34118 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 34119 esac 34120 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 34121 as_fn_append ac_file_inputs " '$ac_f'" 34122 done 34123 34124 # Let's still pretend it is `configure' which instantiates (i.e., don't 34125 # use $as_me), people would be surprised to read: 34126 # /* config.h. Generated by config.status. */ 34127 configure_input='Generated from '` 34128 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 34129 `' by configure.' 34130 if test x"$ac_file" != x-; then 34131 configure_input="$ac_file. $configure_input" 34132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 34133$as_echo "$as_me: creating $ac_file" >&6;} 34134 fi 34135 # Neutralize special characters interpreted by sed in replacement strings. 34136 case $configure_input in #( 34137 *\&* | *\|* | *\\* ) 34138 ac_sed_conf_input=`$as_echo "$configure_input" | 34139 sed 's/[\\\\&|]/\\\\&/g'`;; #( 34140 *) ac_sed_conf_input=$configure_input;; 34141 esac 34142 34143 case $ac_tag in 34144 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 34145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 34146 esac 34147 ;; 34148 esac 34149 34150 ac_dir=`$as_dirname -- "$ac_file" || 34151$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34152 X"$ac_file" : 'X\(//\)[^/]' \| \ 34153 X"$ac_file" : 'X\(//\)$' \| \ 34154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 34155$as_echo X"$ac_file" | 34156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34157 s//\1/ 34158 q 34159 } 34160 /^X\(\/\/\)[^/].*/{ 34161 s//\1/ 34162 q 34163 } 34164 /^X\(\/\/\)$/{ 34165 s//\1/ 34166 q 34167 } 34168 /^X\(\/\).*/{ 34169 s//\1/ 34170 q 34171 } 34172 s/.*/./; q'` 34173 as_dir="$ac_dir"; as_fn_mkdir_p 34174 ac_builddir=. 34175 34176case "$ac_dir" in 34177.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34178*) 34179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 34180 # A ".." for each directory in $ac_dir_suffix. 34181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34182 case $ac_top_builddir_sub in 34183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34185 esac ;; 34186esac 34187ac_abs_top_builddir=$ac_pwd 34188ac_abs_builddir=$ac_pwd$ac_dir_suffix 34189# for backward compatibility: 34190ac_top_builddir=$ac_top_build_prefix 34191 34192case $srcdir in 34193 .) # We are building in place. 34194 ac_srcdir=. 34195 ac_top_srcdir=$ac_top_builddir_sub 34196 ac_abs_top_srcdir=$ac_pwd ;; 34197 [\\/]* | ?:[\\/]* ) # Absolute name. 34198 ac_srcdir=$srcdir$ac_dir_suffix; 34199 ac_top_srcdir=$srcdir 34200 ac_abs_top_srcdir=$srcdir ;; 34201 *) # Relative name. 34202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34203 ac_top_srcdir=$ac_top_build_prefix$srcdir 34204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34205esac 34206ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34207 34208 34209 case $ac_mode in 34210 :F) 34211 # 34212 # CONFIG_FILE 34213 # 34214 34215_ACEOF 34216 34217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34218# If the template does not know about datarootdir, expand it. 34219# FIXME: This hack should be removed a few years after 2.60. 34220ac_datarootdir_hack=; ac_datarootdir_seen= 34221ac_sed_dataroot=' 34222/datarootdir/ { 34223 p 34224 q 34225} 34226/@datadir@/p 34227/@docdir@/p 34228/@infodir@/p 34229/@localedir@/p 34230/@mandir@/p' 34231case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 34232*datarootdir*) ac_datarootdir_seen=yes;; 34233*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 34234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 34235$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 34236_ACEOF 34237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34238 ac_datarootdir_hack=' 34239 s&@datadir@&$datadir&g 34240 s&@docdir@&$docdir&g 34241 s&@infodir@&$infodir&g 34242 s&@localedir@&$localedir&g 34243 s&@mandir@&$mandir&g 34244 s&\\\${datarootdir}&$datarootdir&g' ;; 34245esac 34246_ACEOF 34247 34248# Neutralize VPATH when `$srcdir' = `.'. 34249# Shell code in configure.ac might set extrasub. 34250# FIXME: do we really want to maintain this feature? 34251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34252ac_sed_extra="$ac_vpsub 34253$extrasub 34254_ACEOF 34255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34256:t 34257/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34258s|@configure_input@|$ac_sed_conf_input|;t t 34259s&@top_builddir@&$ac_top_builddir_sub&;t t 34260s&@top_build_prefix@&$ac_top_build_prefix&;t t 34261s&@srcdir@&$ac_srcdir&;t t 34262s&@abs_srcdir@&$ac_abs_srcdir&;t t 34263s&@top_srcdir@&$ac_top_srcdir&;t t 34264s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 34265s&@builddir@&$ac_builddir&;t t 34266s&@abs_builddir@&$ac_abs_builddir&;t t 34267s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 34268$ac_datarootdir_hack 34269" 34270eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 34271if $ac_cs_awk_getline; then 34272 $AWK -f "$ac_tmp/subs.awk" 34273else 34274 $AWK -f "$ac_tmp/subs.awk" | $SHELL 34275fi \ 34276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34277 34278test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 34279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 34280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 34281 "$ac_tmp/out"`; test -z "$ac_out"; } && 34282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34283which seems to be undefined. Please make sure it is defined" >&5 34284$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34285which seems to be undefined. Please make sure it is defined" >&2;} 34286 34287 rm -f "$ac_tmp/stdin" 34288 case $ac_file in 34289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 34290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 34291 esac \ 34292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34293 ;; 34294 :H) 34295 # 34296 # CONFIG_HEADER 34297 # 34298 if test x"$ac_file" != x-; then 34299 { 34300 $as_echo "/* $configure_input */" \ 34301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 34302 } >"$ac_tmp/config.h" \ 34303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34304 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 34305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 34306$as_echo "$as_me: $ac_file is unchanged" >&6;} 34307 else 34308 rm -f "$ac_file" 34309 mv "$ac_tmp/config.h" "$ac_file" \ 34310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34311 fi 34312 else 34313 $as_echo "/* $configure_input */" \ 34314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 34315 || as_fn_error $? "could not create -" "$LINENO" 5 34316 fi 34317 ;; 34318 :L) 34319 # 34320 # CONFIG_LINK 34321 # 34322 34323 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 34324 : 34325 else 34326 # Prefer the file from the source tree if names are identical. 34327 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 34328 ac_source=$srcdir/$ac_source 34329 fi 34330 34331 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 34332$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 34333 34334 if test ! -r "$ac_source"; then 34335 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 34336 fi 34337 rm -f "$ac_file" 34338 34339 # Try a relative symlink, then a hard link, then a copy. 34340 case $ac_source in 34341 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 34342 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 34343 esac 34344 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 34345 ln "$ac_source" "$ac_file" 2>/dev/null || 34346 cp -p "$ac_source" "$ac_file" || 34347 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 34348 fi 34349 ;; 34350 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 34351$as_echo "$as_me: executing $ac_file commands" >&6;} 34352 ;; 34353 esac 34354 34355 34356 case $ac_file$ac_mode in 34357 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; 34358 "gccdepdir":C) 34359 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR 34360 for lang in $subdirs c-family common analyzer rtl-ssa 34361 do 34362 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR 34363 done ;; 34364 "as":F) chmod +x as ;; 34365 "collect-ld":F) chmod +x collect-ld ;; 34366 "nm":F) chmod +x nm ;; 34367 "dsymutil":F) chmod +x dsymutil ;; 34368 "default":C) 34369case ${CONFIG_HEADERS} in 34370 *auto-host.h:config.in*) 34371 echo > cstamp-h ;; 34372esac 34373# Make sure all the subdirs exist. 34374for d in $subdirs doc build common c-family 34375do 34376 test -d $d || mkdir $d 34377done 34378 ;; 34379 34380 esac 34381done # for ac_tag 34382 34383 34384as_fn_exit 0 34385_ACEOF 34386ac_clean_files=$ac_clean_files_save 34387 34388test $ac_write_fail = 0 || 34389 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 34390 34391 34392# configure is writing to config.log, and then calls config.status. 34393# config.status does its own redirection, appending to config.log. 34394# Unfortunately, on DOS this fails, as config.log is still kept open 34395# by configure, so config.status won't be able to write to it; its 34396# output is simply discarded. So we exec the FD to /dev/null, 34397# effectively closing config.log, so it can be properly (re)opened and 34398# appended to by config.status. When coming back to configure, we 34399# need to make the FD available again. 34400if test "$no_create" != yes; then 34401 ac_cs_success=: 34402 ac_config_status_args= 34403 test "$silent" = yes && 34404 ac_config_status_args="$ac_config_status_args --quiet" 34405 exec 5>/dev/null 34406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 34407 exec 5>>config.log 34408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 34409 # would make configure fail if this is the last instruction. 34410 $ac_cs_success || as_fn_exit 1 34411fi 34412if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 34413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 34414$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 34415fi 34416