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.c" 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 634NO_PIE_FLAG 635NO_PIE_CFLAGS 636enable_default_pie 637PICFLAG 638enable_host_shared 639enable_plugin 640pluginlibs 641ISLINC 642ISLLIBS 643GMPINC 644GMPLIBS 645target_cpu_default 646d_target_objs 647fortran_target_objs 648cxx_target_objs 649c_target_objs 650use_gcc_stdint 651xm_defines 652xm_include_list 653xm_file_list 654tm_d_include_list 655tm_d_file_list 656tm_p_include_list 657tm_p_file_list 658tm_defines 659tm_include_list 660tm_file_list 661common_out_object_file 662common_out_file 663out_object_file 664out_file 665objc_boehm_gc 666md_file 667local_prefix 668lang_tree_files 669lang_specs_files 670lang_opt_files 671install 672out_host_hook_obj 673host_xm_defines 674host_xm_include_list 675host_xm_file_list 676host_exeext 677gcc_gxx_include_dir_add_sysroot 678gcc_gxx_include_dir 679gcc_config_arguments 680float_h_file 681extra_programs 682extra_objs 683extra_headers_list 684user_headers_inc_next_post 685user_headers_inc_next_pre 686extra_gcc_objs 687TM_MULTILIB_EXCEPTIONS_CONFIG 688TM_MULTILIB_CONFIG 689TM_ENDIAN_CONFIG 690tmake_file 691xmake_file 692cpp_install_dir 693selftest_languages 694check_languages 695build_file_translate 696build_xm_defines 697build_xm_include_list 698build_xm_file_list 699build_install_headers_dir 700build_exeext 701all_selected_languages 702all_languages 703all_lang_makefrags 704all_lang_configurefrags 705all_gtfiles 706all_compilers 707srcdir 708subdirs 709dollar 710gcc_tooldir 711enable_lto 712DO_LINK_MUTEX 713MAINT 714zlibinc 715zlibdir 716HOST_LIBS 717enable_default_ssp 718thin_archive_support 719ld_soname_option 720ld_version_script_option 721libgcc_visibility 722ORIGINAL_DSYMUTIL_FOR_TARGET 723gcc_cv_dsymutil 724gcc_cv_otool 725gcc_cv_readelf 726gcc_cv_objdump 727ORIGINAL_NM_FOR_TARGET 728gcc_cv_nm 729ORIGINAL_LD_GOLD_FOR_TARGET 730ORIGINAL_LD_BFD_FOR_TARGET 731ORIGINAL_LD_FOR_TARGET 732ORIGINAL_PLUGIN_LD_FOR_TARGET 733gcc_cv_ld 734ORIGINAL_AS_FOR_TARGET 735gcc_cv_as 736enable_fast_install 737objdir 738OTOOL64 739OTOOL 740LIPO 741NMEDIT 742DSYMUTIL 743STRIP 744OBJDUMP 745ac_ct_DUMPBIN 746DUMPBIN 747LD 748FGREP 749SED 750LIBTOOL 751collect2 752STMP_FIXINC 753BUILD_LDFLAGS 754BUILD_CXXFLAGS 755BUILD_CFLAGS 756CXX_FOR_BUILD 757CC_FOR_BUILD 758inhibit_libc 759BUILD_SYSTEM_HEADER_DIR 760SYSTEM_HEADER_DIR 761ALL 762CROSS 763CATOBJEXT 764GENCAT 765INSTOBJEXT 766DATADIRNAME 767CATALOGS 768POSUB 769GMSGFMT 770XGETTEXT 771INCINTL 772LIBINTL_DEP 773LIBINTL 774USE_NLS 775get_gcc_base_ver 776HAVE_AUTO_BUILD 777extra_opt_files 778extra_modes_file 779NATIVE_SYSTEM_HEADER_DIR 780objext 781manext 782LIBICONV_DEP 783LTLIBICONV 784LIBICONV 785ZSTD_LIB 786ZSTD_INCLUDE 787DL_LIB 788LDEXP_LIB 789EXTRA_GCC_LIBS 790GNAT_LIBEXC 791COLLECT2_LIBS 792CXXDEPMODE 793DEPDIR 794am__leading_dot 795doc_build_sys 796AR 797NM 798BISON 799FLEX 800GENERATED_MANPAGES 801BUILD_INFO 802MAKEINFO 803have_mktemp_command 804make_compare_target 805INSTALL_DATA 806INSTALL_PROGRAM 807INSTALL 808ranlib_flags 809RANLIB 810LN 811LN_S 812AWK 813SET_MAKE 814omp_device_property_deps 815omp_device_properties 816accel_dir_suffix 817real_target_noncanonical 818enable_as_accelerator 819gnat_install_lib 820REPORT_BUGS_TEXI 821REPORT_BUGS_TO 822PKGVERSION 823CONFIGURE_SPECS 824enable_gcov 825enable_shared 826enable_fixed_point 827enable_decimal_float 828with_float 829with_cpu 830enable_multiarch 831enable_multilib 832coverage_flags 833valgrind_command 834valgrind_path_defines 835valgrind_path 836TREECHECKING 837nocommon_flag 838noexception_flags 839warn_cxxflags 840warn_cflags 841c_strict_warn 842strict_warn 843c_loose_warn 844loose_warn 845aliasing_flags 846CPP 847EGREP 848GREP 849CXXCPP 850PICFLAG_FOR_TARGET 851GNATMAKE 852GNATBIND 853ac_ct_CXX 854CXXFLAGS 855CXX 856OBJEXT 857EXEEXT 858ac_ct_CC 859CPPFLAGS 860LDFLAGS 861CFLAGS 862CC 863GENINSRC 864CROSS_SYSTEM_HEADER_DIR 865TARGET_SYSTEM_ROOT_DEFINE 866TARGET_SYSTEM_ROOT 867SYSROOT_CFLAGS_FOR_TARGET 868target_subdir 869host_subdir 870build_subdir 871build_libsubdir 872target_noncanonical 873host_noncanonical 874target_os 875target_vendor 876target_cpu 877target 878host_os 879host_vendor 880host_cpu 881host 882build_os 883build_vendor 884build_cpu 885build 886target_alias 887host_alias 888build_alias 889LIBS 890ECHO_T 891ECHO_N 892ECHO_C 893DEFS 894mandir 895localedir 896libdir 897psdir 898pdfdir 899dvidir 900htmldir 901infodir 902docdir 903oldincludedir 904includedir 905localstatedir 906sharedstatedir 907sysconfdir 908datadir 909datarootdir 910libexecdir 911sbindir 912bindir 913program_transform_name 914prefix 915exec_prefix 916PACKAGE_URL 917PACKAGE_BUGREPORT 918PACKAGE_STRING 919PACKAGE_VERSION 920PACKAGE_TARNAME 921PACKAGE_NAME 922PATH_SEPARATOR 923SHELL' 924ac_subst_files='option_includes 925language_hooks' 926ac_user_opts=' 927enable_option_checking 928with_build_libsubdir 929with_local_prefix 930with_native_system_header_dir 931with_build_sysroot 932with_sysroot 933with_gxx_include_dir 934with_cpp_install_dir 935enable_generated_files_in_srcdir 936with_gnu_ld 937with_ld 938with_demangler_in_ld 939with_dsymutil 940with_gnu_as 941with_as 942enable_largefile 943enable_build_format_warnings 944enable_werror_always 945enable_checking 946enable_coverage 947enable_gather_detailed_mem_stats 948enable_valgrind_annotations 949with_stabs 950enable_multilib 951enable_multiarch 952with_stack_clash_protection_guard_size 953enable___cxa_atexit 954enable_decimal_float 955enable_fixed_point 956enable_threads 957enable_tls 958enable_vtable_verify 959enable_analyzer 960enable_objc_gc 961with_dwarf2 962enable_shared 963enable_gcov 964with_specs 965with_pkgversion 966with_bugurl 967with_documentation_root_url 968with_changes_root_url 969enable_languages 970with_multilib_list 971with_zstd 972with_zstd_include 973with_zstd_lib 974enable_rpath 975with_libiconv_prefix 976with_libiconv_type 977enable_sjlj_exceptions 978with_gcc_major_version_only 979enable_secureplt 980enable_mingw_wildcard 981enable_large_address_aware 982enable_leading_mingw64_underscores 983enable_cld 984enable_frame_pointer 985enable_win32_registry 986enable_static 987with_pic 988enable_fast_install 989enable_libtool_lock 990enable_ld 991enable_gold 992with_plugin_ld 993enable_gnu_indirect_function 994enable_initfini_array 995enable_comdat 996enable_newlib_nano_formatted_io 997enable_standard_branch_protection 998enable_fix_cortex_a53_835769 999enable_fix_cortex_a53_843419 1000with_glibc_version 1001enable_gnu_unique_object 1002enable_linker_build_id 1003enable_libssp 1004enable_default_ssp 1005with_long_double_128 1006with_long_double_format 1007with_gc 1008with_system_zlib 1009enable_maintainer_mode 1010enable_link_mutex 1011enable_version_specific_runtime_libs 1012enable_plugin 1013enable_host_shared 1014enable_libquadmath_support 1015with_linker_hash_style 1016with_diagnostics_color 1017with_diagnostics_urls 1018enable_default_pie 1019' 1020 ac_precious_vars='build_alias 1021host_alias 1022target_alias 1023CC 1024CFLAGS 1025LDFLAGS 1026LIBS 1027CPPFLAGS 1028CXX 1029CXXFLAGS 1030CCC 1031CXXCPP 1032CPP 1033GMPLIBS 1034GMPINC 1035ISLLIBS 1036ISLINC' 1037 1038 1039# Initialize some variables set by options. 1040ac_init_help= 1041ac_init_version=false 1042ac_unrecognized_opts= 1043ac_unrecognized_sep= 1044# The variables have the same names as the options, with 1045# dashes changed to underlines. 1046cache_file=/dev/null 1047exec_prefix=NONE 1048no_create= 1049no_recursion= 1050prefix=NONE 1051program_prefix=NONE 1052program_suffix=NONE 1053program_transform_name=s,x,x, 1054silent= 1055site= 1056srcdir= 1057verbose= 1058x_includes=NONE 1059x_libraries=NONE 1060 1061# Installation directory options. 1062# These are left unexpanded so users can "make install exec_prefix=/foo" 1063# and all the variables that are supposed to be based on exec_prefix 1064# by default will actually change. 1065# Use braces instead of parens because sh, perl, etc. also accept them. 1066# (The list follows the same order as the GNU Coding Standards.) 1067bindir='${exec_prefix}/bin' 1068sbindir='${exec_prefix}/sbin' 1069libexecdir='${exec_prefix}/libexec' 1070datarootdir='${prefix}/share' 1071datadir='${datarootdir}' 1072sysconfdir='${prefix}/etc' 1073sharedstatedir='${prefix}/com' 1074localstatedir='${prefix}/var' 1075includedir='${prefix}/include' 1076oldincludedir='/usr/include' 1077docdir='${datarootdir}/doc/${PACKAGE}' 1078infodir='${datarootdir}/info' 1079htmldir='${docdir}' 1080dvidir='${docdir}' 1081pdfdir='${docdir}' 1082psdir='${docdir}' 1083libdir='${exec_prefix}/lib' 1084localedir='${datarootdir}/locale' 1085mandir='${datarootdir}/man' 1086 1087ac_prev= 1088ac_dashdash= 1089for ac_option 1090do 1091 # If the previous option needs an argument, assign it. 1092 if test -n "$ac_prev"; then 1093 eval $ac_prev=\$ac_option 1094 ac_prev= 1095 continue 1096 fi 1097 1098 case $ac_option in 1099 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1100 *=) ac_optarg= ;; 1101 *) ac_optarg=yes ;; 1102 esac 1103 1104 # Accept the important Cygnus configure options, so we can diagnose typos. 1105 1106 case $ac_dashdash$ac_option in 1107 --) 1108 ac_dashdash=yes ;; 1109 1110 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1111 ac_prev=bindir ;; 1112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1113 bindir=$ac_optarg ;; 1114 1115 -build | --build | --buil | --bui | --bu) 1116 ac_prev=build_alias ;; 1117 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1118 build_alias=$ac_optarg ;; 1119 1120 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1122 ac_prev=cache_file ;; 1123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1125 cache_file=$ac_optarg ;; 1126 1127 --config-cache | -C) 1128 cache_file=config.cache ;; 1129 1130 -datadir | --datadir | --datadi | --datad) 1131 ac_prev=datadir ;; 1132 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1133 datadir=$ac_optarg ;; 1134 1135 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1136 | --dataroo | --dataro | --datar) 1137 ac_prev=datarootdir ;; 1138 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1139 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1140 datarootdir=$ac_optarg ;; 1141 1142 -disable-* | --disable-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid feature name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"enable_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval enable_$ac_useropt=no ;; 1157 1158 -docdir | --docdir | --docdi | --doc | --do) 1159 ac_prev=docdir ;; 1160 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1161 docdir=$ac_optarg ;; 1162 1163 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1164 ac_prev=dvidir ;; 1165 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1166 dvidir=$ac_optarg ;; 1167 1168 -enable-* | --enable-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid feature name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"enable_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval enable_$ac_useropt=\$ac_optarg ;; 1183 1184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1186 | --exec | --exe | --ex) 1187 ac_prev=exec_prefix ;; 1188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1190 | --exec=* | --exe=* | --ex=*) 1191 exec_prefix=$ac_optarg ;; 1192 1193 -gas | --gas | --ga | --g) 1194 # Obsolete; use --with-gas. 1195 with_gas=yes ;; 1196 1197 -help | --help | --hel | --he | -h) 1198 ac_init_help=long ;; 1199 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1200 ac_init_help=recursive ;; 1201 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1202 ac_init_help=short ;; 1203 1204 -host | --host | --hos | --ho) 1205 ac_prev=host_alias ;; 1206 -host=* | --host=* | --hos=* | --ho=*) 1207 host_alias=$ac_optarg ;; 1208 1209 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1210 ac_prev=htmldir ;; 1211 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1212 | --ht=*) 1213 htmldir=$ac_optarg ;; 1214 1215 -includedir | --includedir | --includedi | --included | --include \ 1216 | --includ | --inclu | --incl | --inc) 1217 ac_prev=includedir ;; 1218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1219 | --includ=* | --inclu=* | --incl=* | --inc=*) 1220 includedir=$ac_optarg ;; 1221 1222 -infodir | --infodir | --infodi | --infod | --info | --inf) 1223 ac_prev=infodir ;; 1224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1225 infodir=$ac_optarg ;; 1226 1227 -libdir | --libdir | --libdi | --libd) 1228 ac_prev=libdir ;; 1229 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1230 libdir=$ac_optarg ;; 1231 1232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1233 | --libexe | --libex | --libe) 1234 ac_prev=libexecdir ;; 1235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1236 | --libexe=* | --libex=* | --libe=*) 1237 libexecdir=$ac_optarg ;; 1238 1239 -localedir | --localedir | --localedi | --localed | --locale) 1240 ac_prev=localedir ;; 1241 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1242 localedir=$ac_optarg ;; 1243 1244 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1245 | --localstate | --localstat | --localsta | --localst | --locals) 1246 ac_prev=localstatedir ;; 1247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1248 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1249 localstatedir=$ac_optarg ;; 1250 1251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1252 ac_prev=mandir ;; 1253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1254 mandir=$ac_optarg ;; 1255 1256 -nfp | --nfp | --nf) 1257 # Obsolete; use --without-fp. 1258 with_fp=no ;; 1259 1260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1261 | --no-cr | --no-c | -n) 1262 no_create=yes ;; 1263 1264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1266 no_recursion=yes ;; 1267 1268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1270 | --oldin | --oldi | --old | --ol | --o) 1271 ac_prev=oldincludedir ;; 1272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1275 oldincludedir=$ac_optarg ;; 1276 1277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1278 ac_prev=prefix ;; 1279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1280 prefix=$ac_optarg ;; 1281 1282 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1283 | --program-pre | --program-pr | --program-p) 1284 ac_prev=program_prefix ;; 1285 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1287 program_prefix=$ac_optarg ;; 1288 1289 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1290 | --program-suf | --program-su | --program-s) 1291 ac_prev=program_suffix ;; 1292 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1294 program_suffix=$ac_optarg ;; 1295 1296 -program-transform-name | --program-transform-name \ 1297 | --program-transform-nam | --program-transform-na \ 1298 | --program-transform-n | --program-transform- \ 1299 | --program-transform | --program-transfor \ 1300 | --program-transfo | --program-transf \ 1301 | --program-trans | --program-tran \ 1302 | --progr-tra | --program-tr | --program-t) 1303 ac_prev=program_transform_name ;; 1304 -program-transform-name=* | --program-transform-name=* \ 1305 | --program-transform-nam=* | --program-transform-na=* \ 1306 | --program-transform-n=* | --program-transform-=* \ 1307 | --program-transform=* | --program-transfor=* \ 1308 | --program-transfo=* | --program-transf=* \ 1309 | --program-trans=* | --program-tran=* \ 1310 | --progr-tra=* | --program-tr=* | --program-t=*) 1311 program_transform_name=$ac_optarg ;; 1312 1313 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1314 ac_prev=pdfdir ;; 1315 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1316 pdfdir=$ac_optarg ;; 1317 1318 -psdir | --psdir | --psdi | --psd | --ps) 1319 ac_prev=psdir ;; 1320 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1321 psdir=$ac_optarg ;; 1322 1323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1324 | -silent | --silent | --silen | --sile | --sil) 1325 silent=yes ;; 1326 1327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1328 ac_prev=sbindir ;; 1329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1330 | --sbi=* | --sb=*) 1331 sbindir=$ac_optarg ;; 1332 1333 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1335 | --sharedst | --shareds | --shared | --share | --shar \ 1336 | --sha | --sh) 1337 ac_prev=sharedstatedir ;; 1338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1341 | --sha=* | --sh=*) 1342 sharedstatedir=$ac_optarg ;; 1343 1344 -site | --site | --sit) 1345 ac_prev=site ;; 1346 -site=* | --site=* | --sit=*) 1347 site=$ac_optarg ;; 1348 1349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1350 ac_prev=srcdir ;; 1351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1352 srcdir=$ac_optarg ;; 1353 1354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1355 | --syscon | --sysco | --sysc | --sys | --sy) 1356 ac_prev=sysconfdir ;; 1357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1359 sysconfdir=$ac_optarg ;; 1360 1361 -target | --target | --targe | --targ | --tar | --ta | --t) 1362 ac_prev=target_alias ;; 1363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1364 target_alias=$ac_optarg ;; 1365 1366 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1367 verbose=yes ;; 1368 1369 -version | --version | --versio | --versi | --vers | -V) 1370 ac_init_version=: ;; 1371 1372 -with-* | --with-*) 1373 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1374 # Reject names that are not valid shell variable names. 1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1376 as_fn_error $? "invalid package name: $ac_useropt" 1377 ac_useropt_orig=$ac_useropt 1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1379 case $ac_user_opts in 1380 *" 1381"with_$ac_useropt" 1382"*) ;; 1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1384 ac_unrecognized_sep=', ';; 1385 esac 1386 eval with_$ac_useropt=\$ac_optarg ;; 1387 1388 -without-* | --without-*) 1389 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 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--without-$ac_useropt_orig" 1400 ac_unrecognized_sep=', ';; 1401 esac 1402 eval with_$ac_useropt=no ;; 1403 1404 --x) 1405 # Obsolete; use --with-x. 1406 with_x=yes ;; 1407 1408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1409 | --x-incl | --x-inc | --x-in | --x-i) 1410 ac_prev=x_includes ;; 1411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1413 x_includes=$ac_optarg ;; 1414 1415 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1417 ac_prev=x_libraries ;; 1418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1420 x_libraries=$ac_optarg ;; 1421 1422 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1423Try \`$0 --help' for more information" 1424 ;; 1425 1426 *=*) 1427 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1428 # Reject names that are not valid shell variable names. 1429 case $ac_envvar in #( 1430 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1431 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1432 esac 1433 eval $ac_envvar=\$ac_optarg 1434 export $ac_envvar ;; 1435 1436 *) 1437 # FIXME: should be removed in autoconf 3.0. 1438 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1439 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1440 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1441 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1442 ;; 1443 1444 esac 1445done 1446 1447if test -n "$ac_prev"; then 1448 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1449 as_fn_error $? "missing argument to $ac_option" 1450fi 1451 1452if test -n "$ac_unrecognized_opts"; then 1453 case $enable_option_checking in 1454 no) ;; 1455 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1456 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1457 esac 1458fi 1459 1460# Check all directory arguments for consistency. 1461for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1462 datadir sysconfdir sharedstatedir localstatedir includedir \ 1463 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1464 libdir localedir mandir 1465do 1466 eval ac_val=\$$ac_var 1467 # Remove trailing slashes. 1468 case $ac_val in 1469 */ ) 1470 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1471 eval $ac_var=\$ac_val;; 1472 esac 1473 # Be sure to have absolute directory names. 1474 case $ac_val in 1475 [\\/$]* | ?:[\\/]* ) continue;; 1476 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1477 esac 1478 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1479done 1480 1481# There might be people who depend on the old broken behavior: `$host' 1482# used to hold the argument of --host etc. 1483# FIXME: To remove some day. 1484build=$build_alias 1485host=$host_alias 1486target=$target_alias 1487 1488# FIXME: To remove some day. 1489if test "x$host_alias" != x; then 1490 if test "x$build_alias" = x; then 1491 cross_compiling=maybe 1492 elif test "x$build_alias" != "x$host_alias"; then 1493 cross_compiling=yes 1494 fi 1495fi 1496 1497ac_tool_prefix= 1498test -n "$host_alias" && ac_tool_prefix=$host_alias- 1499 1500test "$silent" = yes && exec 6>/dev/null 1501 1502 1503ac_pwd=`pwd` && test -n "$ac_pwd" && 1504ac_ls_di=`ls -di .` && 1505ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1506 as_fn_error $? "working directory cannot be determined" 1507test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1508 as_fn_error $? "pwd does not report name of working directory" 1509 1510 1511# Find the source files, if location was not specified. 1512if test -z "$srcdir"; then 1513 ac_srcdir_defaulted=yes 1514 # Try the directory containing this script, then the parent directory. 1515 ac_confdir=`$as_dirname -- "$as_myself" || 1516$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1517 X"$as_myself" : 'X\(//\)[^/]' \| \ 1518 X"$as_myself" : 'X\(//\)$' \| \ 1519 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1520$as_echo X"$as_myself" | 1521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1522 s//\1/ 1523 q 1524 } 1525 /^X\(\/\/\)[^/].*/{ 1526 s//\1/ 1527 q 1528 } 1529 /^X\(\/\/\)$/{ 1530 s//\1/ 1531 q 1532 } 1533 /^X\(\/\).*/{ 1534 s//\1/ 1535 q 1536 } 1537 s/.*/./; q'` 1538 srcdir=$ac_confdir 1539 if test ! -r "$srcdir/$ac_unique_file"; then 1540 srcdir=.. 1541 fi 1542else 1543 ac_srcdir_defaulted=no 1544fi 1545if test ! -r "$srcdir/$ac_unique_file"; then 1546 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1547 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1548fi 1549ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1550ac_abs_confdir=`( 1551 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1552 pwd)` 1553# When building in place, set srcdir=. 1554if test "$ac_abs_confdir" = "$ac_pwd"; then 1555 srcdir=. 1556fi 1557# Remove unnecessary trailing slashes from srcdir. 1558# Double slashes in file names in object file debugging info 1559# mess up M-x gdb in Emacs. 1560case $srcdir in 1561*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1562esac 1563for ac_var in $ac_precious_vars; do 1564 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1565 eval ac_env_${ac_var}_value=\$${ac_var} 1566 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1567 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1568done 1569 1570# 1571# Report the --help message. 1572# 1573if test "$ac_init_help" = "long"; then 1574 # Omit some internal or obsolete options to make the list less imposing. 1575 # This message is too long to be a string in the A/UX 3.1 sh. 1576 cat <<_ACEOF 1577\`configure' configures this package to adapt to many kinds of systems. 1578 1579Usage: $0 [OPTION]... [VAR=VALUE]... 1580 1581To assign environment variables (e.g., CC, CFLAGS...), specify them as 1582VAR=VALUE. See below for descriptions of some of the useful variables. 1583 1584Defaults for the options are specified in brackets. 1585 1586Configuration: 1587 -h, --help display this help and exit 1588 --help=short display options specific to this package 1589 --help=recursive display the short help of all the included packages 1590 -V, --version display version information and exit 1591 -q, --quiet, --silent do not print \`checking ...' messages 1592 --cache-file=FILE cache test results in FILE [disabled] 1593 -C, --config-cache alias for \`--cache-file=config.cache' 1594 -n, --no-create do not create output files 1595 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1596 1597Installation directories: 1598 --prefix=PREFIX install architecture-independent files in PREFIX 1599 [$ac_default_prefix] 1600 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1601 [PREFIX] 1602 1603By default, \`make install' will install all the files in 1604\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1605an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1606for instance \`--prefix=\$HOME'. 1607 1608For better control, use the options below. 1609 1610Fine tuning of the installation directories: 1611 --bindir=DIR user executables [EPREFIX/bin] 1612 --sbindir=DIR system admin executables [EPREFIX/sbin] 1613 --libexecdir=DIR program executables [EPREFIX/libexec] 1614 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1615 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1616 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1617 --libdir=DIR object code libraries [EPREFIX/lib] 1618 --includedir=DIR C header files [PREFIX/include] 1619 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1620 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1621 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1622 --infodir=DIR info documentation [DATAROOTDIR/info] 1623 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1624 --mandir=DIR man documentation [DATAROOTDIR/man] 1625 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1626 --htmldir=DIR html documentation [DOCDIR] 1627 --dvidir=DIR dvi documentation [DOCDIR] 1628 --pdfdir=DIR pdf documentation [DOCDIR] 1629 --psdir=DIR ps documentation [DOCDIR] 1630_ACEOF 1631 1632 cat <<\_ACEOF 1633 1634Program names: 1635 --program-prefix=PREFIX prepend PREFIX to installed program names 1636 --program-suffix=SUFFIX append SUFFIX to installed program names 1637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1638 1639System types: 1640 --build=BUILD configure for building on BUILD [guessed] 1641 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1642 --target=TARGET configure for building compilers for TARGET [HOST] 1643_ACEOF 1644fi 1645 1646if test -n "$ac_init_help"; then 1647 1648 cat <<\_ACEOF 1649 1650Optional Features: 1651 --disable-option-checking ignore unrecognized --enable/--with options 1652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1654 --enable-generated-files-in-srcdir 1655 put copies of generated files in source dir intended 1656 for creating source tarballs for users without 1657 texinfo bison or flex 1658 --disable-largefile omit support for large files 1659 --disable-build-format-warnings 1660 don't use -Wformat while building GCC 1661 --enable-werror-always enable -Werror despite compiler version 1662 --enable-checking[=LIST] 1663 enable expensive run-time checks. With LIST, enable 1664 only specific categories of checks. Categories are: 1665 yes,no,all,none,release. Flags are: 1666 assert,df,extra,fold,gc,gcac,gimple,misc, 1667 rtlflag,rtl,runtime,tree,valgrind,types 1668 --enable-coverage[=LEVEL] 1669 enable compiler's code coverage collection. Use to 1670 measure compiler performance and locate unused parts 1671 of the compiler. With LEVEL, specify optimization. 1672 Values are opt, noopt, default is noopt 1673 --enable-gather-detailed-mem-stats 1674 enable detailed memory allocation stats gathering 1675 --enable-valgrind-annotations 1676 enable valgrind runtime interaction 1677 --enable-multilib enable library support for multiple ABIs 1678 --enable-multiarch enable support for multiarch paths 1679 --enable-__cxa_atexit enable __cxa_atexit for C++ 1680 --enable-decimal-float={no,yes,bid,dpd} 1681 enable decimal float extension to C. Selecting 'bid' 1682 or 'dpd' choses which decimal floating point format 1683 to use 1684 --enable-fixed-point enable fixed-point arithmetic extension to C 1685 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread 1686 package 1687 --enable-tls enable or disable generation of tls code overriding 1688 the assembler check for tls support 1689 --enable-vtable-verify enable vtable verification feature 1690 --disable-analyzer disable -fanalyzer static analyzer 1691 --enable-objc-gc enable the use of Boehm's garbage collector with the 1692 GNU Objective-C runtime 1693 --disable-shared don't provide a shared libgcc 1694 --disable-gcov don't provide libgcov and related host tools 1695 --enable-languages=LIST specify which front-ends to build 1696 --disable-rpath do not hardcode runtime library paths 1697 --enable-sjlj-exceptions 1698 arrange to use setjmp/longjmp exception handling 1699 --enable-secureplt enable -msecure-plt by default for PowerPC 1700 --enable-mingw-wildcard Set whether to expand wildcard on command-line. 1701 Default to platform configuration 1702 --enable-large-address-aware 1703 Link mingw executables with --large-address-aware 1704 --enable-leading-mingw64-underscores 1705 enable leading underscores on 64 bit mingw targets 1706 --enable-cld enable -mcld by default for 32bit x86 1707 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86 1708 --disable-win32-registry 1709 disable lookup of installation paths in the Registry 1710 on Windows hosts 1711 --enable-win32-registry enable registry lookup (default) 1712 --enable-win32-registry=KEY 1713 use KEY instead of GCC version as the last portion 1714 of the registry key 1715 --enable-shared[=PKGS] build shared libraries [default=yes] 1716 --enable-static[=PKGS] build static libraries [default=yes] 1717 --enable-fast-install[=PKGS] 1718 optimize for fast installation [default=yes] 1719 --disable-libtool-lock avoid locking (might break parallel builds) 1720 --enable-ld[=ARG] build ld [ARG={default,yes,no}] 1721 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1722 --enable-gnu-indirect-function 1723 enable the use of the @gnu_indirect_function to 1724 glibc systems 1725 --enable-initfini-array use .init_array/.fini_array sections 1726 --enable-comdat enable COMDAT group support 1727 --enable-newlib-nano-formatted-io 1728 Use nano version formatted IO 1729 1730 --enable-standard-branch-protection 1731 enable Branch Target Identification Mechanism and 1732 Return Address Signing by default for AArch64 1733 --disable-standard-branch-protection 1734 disable Branch Target Identification Mechanism and 1735 Return Address Signing by default for AArch64 1736 1737 1738 --enable-fix-cortex-a53-835769 1739 enable workaround for AArch64 Cortex-A53 erratum 1740 835769 by default 1741 --disable-fix-cortex-a53-835769 1742 disable workaround for AArch64 Cortex-A53 erratum 1743 835769 by default 1744 1745 1746 --enable-fix-cortex-a53-843419 1747 enable workaround for AArch64 Cortex-A53 erratum 1748 843419 by default 1749 --disable-fix-cortex-a53-843419 1750 disable workaround for AArch64 Cortex-A53 erratum 1751 843419 by default 1752 1753 --enable-gnu-unique-object 1754 enable the use of the @gnu_unique_object ELF 1755 extension on glibc systems 1756 --enable-linker-build-id 1757 compiler will always pass --build-id to linker 1758 --enable-libssp enable linking against libssp 1759 --enable-default-ssp enable Stack Smashing Protection as default 1760 --enable-maintainer-mode 1761 enable make rules and dependencies not useful (and 1762 sometimes confusing) to the casual installer 1763 --enable-link-mutex avoid linking multiple front-ends at once to avoid 1764 thrashing on the build machine 1765 --enable-version-specific-runtime-libs 1766 specify that runtime libraries should be installed 1767 in a compiler-specific directory 1768 --enable-plugin enable plugin support 1769 --enable-host-shared build host code as shared libraries 1770 --disable-libquadmath-support 1771 disable libquadmath support for Fortran 1772 --enable-default-pie enable Position Independent Executable as default 1773 1774Optional Packages: 1775 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1776 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1777 --with-build-libsubdir=DIR Directory where to find libraries for build system 1778 --with-local-prefix=DIR specifies directory to put local include 1779 --with-native-system-header-dir=dir 1780 use dir as the directory to look for standard 1781 system header files in. Defaults to /usr/include. 1782 --with-build-sysroot=sysroot 1783 use sysroot as the system root during the build 1784 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR 1785 --with-gxx-include-dir=DIR 1786 specifies directory to put g++ header files 1787 --with-cpp-install-dir=DIR 1788 install the user visible C preprocessor in DIR 1789 (relative to PREFIX) as well as PREFIX/bin 1790 --with-gnu-ld arrange to work with GNU ld 1791 --with-ld arrange to use the specified ld (full pathname) 1792 --with-demangler-in-ld try to use demangler in GNU ld 1793 --with-dsymutil arrange to use the specified dsymutil (full 1794 pathname) 1795 --with-gnu-as arrange to work with GNU as 1796 --with-as arrange to use the specified as (full pathname) 1797 --with-stabs arrange to use stabs instead of host debug format 1798 --with-stack-clash-protection-guard-size=size 1799 Set the default stack clash protection guard size 1800 for specific targets as a power of two in bytes. 1801 --with-dwarf2 force the default debug format to be DWARF 2 1802 --with-specs=SPECS add SPECS to driver command-line processing 1803 --with-pkgversion=PKG Use PKG in the version string in place of "GCC" 1804 --with-bugurl=URL Direct users to URL to report a bug 1805 --with-documentation-root-url=URL 1806 Root for documentation URLs 1807 --with-changes-root-url=URL 1808 Root for GCC changes URLs 1809 --with-multilib-list select multilibs (AArch64, SH and x86-64 only) 1810 --with-zstd=PATH specify prefix directory for installed zstd library. 1811 Equivalent to --with-zstd-include=PATH/include plus 1812 --with-zstd-lib=PATH/lib 1813 --with-zstd-include=PATH 1814 specify directory for installed zstd include files 1815 --with-zstd-lib=PATH specify directory for the installed zstd library 1816 --with-gnu-ld assume the C compiler uses GNU ld default=no 1817 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1818 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1819 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1820 --with-gcc-major-version-only 1821 use only GCC major number in filesystem paths 1822 --with-pic try to use only PIC/non-PIC objects [default=use 1823 both] 1824 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1825 --with-plugin-ld=[ARG] specify the plugin linker 1826 --with-glibc-version=M.N 1827 assume GCC used with glibc version M.N or later 1828 --with-long-double-128 use 128-bit long double by default 1829 --with-long-double-format={ieee,ibm} 1830 Specify whether PowerPC long double uses IEEE or IBM format 1831 1832 --with-gc={page,zone} this option is not supported anymore. It used to 1833 choose the garbage collection mechanism to use with 1834 the compiler 1835 --with-system-zlib use installed libz 1836 --with-linker-hash-style={sysv,gnu,both} 1837 specify the linker hash style 1838 --with-diagnostics-color={never,auto,auto-if-env,always} 1839 specify the default of -fdiagnostics-color option 1840 auto-if-env stands for -fdiagnostics-color=auto if 1841 GCC_COLOR environment variable is present and 1842 -fdiagnostics-color=never otherwise 1843 --with-diagnostics-urls={never,auto,auto-if-env,always} 1844 specify the default of -fdiagnostics-urls option 1845 auto-if-env stands for -fdiagnostics-urls=auto if 1846 GCC_URLS or TERM_URLS environment variable is 1847 present and -fdiagnostics-urls=never otherwise 1848 1849Some influential environment variables: 1850 CC C compiler command 1851 CFLAGS C compiler flags 1852 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1853 nonstandard directory <lib dir> 1854 LIBS libraries to pass to the linker, e.g. -l<library> 1855 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1856 you have headers in a nonstandard directory <include dir> 1857 CXX C++ compiler command 1858 CXXFLAGS C++ compiler flags 1859 CXXCPP C++ preprocessor 1860 CPP C preprocessor 1861 GMPLIBS How to link GMP 1862 GMPINC How to find GMP include files 1863 ISLLIBS How to link isl 1864 ISLINC How to find isl include files 1865 1866Use these variables to override the choices made by `configure' or to help 1867it to find libraries and programs with nonstandard names/locations. 1868 1869Report bugs to the package provider. 1870_ACEOF 1871ac_status=$? 1872fi 1873 1874if test "$ac_init_help" = "recursive"; then 1875 # If there are subdirs, report their specific --help. 1876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1877 test -d "$ac_dir" || 1878 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1879 continue 1880 ac_builddir=. 1881 1882case "$ac_dir" in 1883.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1884*) 1885 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1886 # A ".." for each directory in $ac_dir_suffix. 1887 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1888 case $ac_top_builddir_sub in 1889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1891 esac ;; 1892esac 1893ac_abs_top_builddir=$ac_pwd 1894ac_abs_builddir=$ac_pwd$ac_dir_suffix 1895# for backward compatibility: 1896ac_top_builddir=$ac_top_build_prefix 1897 1898case $srcdir in 1899 .) # We are building in place. 1900 ac_srcdir=. 1901 ac_top_srcdir=$ac_top_builddir_sub 1902 ac_abs_top_srcdir=$ac_pwd ;; 1903 [\\/]* | ?:[\\/]* ) # Absolute name. 1904 ac_srcdir=$srcdir$ac_dir_suffix; 1905 ac_top_srcdir=$srcdir 1906 ac_abs_top_srcdir=$srcdir ;; 1907 *) # Relative name. 1908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1909 ac_top_srcdir=$ac_top_build_prefix$srcdir 1910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1911esac 1912ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1913 1914 cd "$ac_dir" || { ac_status=$?; continue; } 1915 # Check for guested configure. 1916 if test -f "$ac_srcdir/configure.gnu"; then 1917 echo && 1918 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1919 elif test -f "$ac_srcdir/configure"; then 1920 echo && 1921 $SHELL "$ac_srcdir/configure" --help=recursive 1922 else 1923 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1924 fi || ac_status=$? 1925 cd "$ac_pwd" || { ac_status=$?; break; } 1926 done 1927fi 1928 1929test -n "$ac_init_help" && exit $ac_status 1930if $ac_init_version; then 1931 cat <<\_ACEOF 1932configure 1933generated by GNU Autoconf 2.69 1934 1935Copyright (C) 2012 Free Software Foundation, Inc. 1936This configure script is free software; the Free Software Foundation 1937gives unlimited permission to copy, distribute and modify it. 1938_ACEOF 1939 exit 1940fi 1941 1942## ------------------------ ## 1943## Autoconf initialization. ## 1944## ------------------------ ## 1945 1946# ac_fn_c_try_compile LINENO 1947# -------------------------- 1948# Try to compile conftest.$ac_ext, and return whether this succeeded. 1949ac_fn_c_try_compile () 1950{ 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 rm -f conftest.$ac_objext 1953 if { { ac_try="$ac_compile" 1954case "(($ac_try" in 1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1956 *) ac_try_echo=$ac_try;; 1957esac 1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1959$as_echo "$ac_try_echo"; } >&5 1960 (eval "$ac_compile") 2>conftest.err 1961 ac_status=$? 1962 if test -s conftest.err; then 1963 grep -v '^ *+' conftest.err >conftest.er1 1964 cat conftest.er1 >&5 1965 mv -f conftest.er1 conftest.err 1966 fi 1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1968 test $ac_status = 0; } && { 1969 test -z "$ac_c_werror_flag" || 1970 test ! -s conftest.err 1971 } && test -s conftest.$ac_objext; then : 1972 ac_retval=0 1973else 1974 $as_echo "$as_me: failed program was:" >&5 1975sed 's/^/| /' conftest.$ac_ext >&5 1976 1977 ac_retval=1 1978fi 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1980 as_fn_set_status $ac_retval 1981 1982} # ac_fn_c_try_compile 1983 1984# ac_fn_cxx_try_compile LINENO 1985# ---------------------------- 1986# Try to compile conftest.$ac_ext, and return whether this succeeded. 1987ac_fn_cxx_try_compile () 1988{ 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 rm -f conftest.$ac_objext 1991 if { { ac_try="$ac_compile" 1992case "(($ac_try" in 1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1994 *) ac_try_echo=$ac_try;; 1995esac 1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1997$as_echo "$ac_try_echo"; } >&5 1998 (eval "$ac_compile") 2>conftest.err 1999 ac_status=$? 2000 if test -s conftest.err; then 2001 grep -v '^ *+' conftest.err >conftest.er1 2002 cat conftest.er1 >&5 2003 mv -f conftest.er1 conftest.err 2004 fi 2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; } && { 2007 test -z "$ac_cxx_werror_flag" || 2008 test ! -s conftest.err 2009 } && test -s conftest.$ac_objext; then : 2010 ac_retval=0 2011else 2012 $as_echo "$as_me: failed program was:" >&5 2013sed 's/^/| /' conftest.$ac_ext >&5 2014 2015 ac_retval=1 2016fi 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 as_fn_set_status $ac_retval 2019 2020} # ac_fn_cxx_try_compile 2021 2022# ac_fn_cxx_try_cpp LINENO 2023# ------------------------ 2024# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2025ac_fn_cxx_try_cpp () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 if { { ac_try="$ac_cpp conftest.$ac_ext" 2029case "(($ac_try" in 2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2031 *) ac_try_echo=$ac_try;; 2032esac 2033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2034$as_echo "$ac_try_echo"; } >&5 2035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2036 ac_status=$? 2037 if test -s conftest.err; then 2038 grep -v '^ *+' conftest.err >conftest.er1 2039 cat conftest.er1 >&5 2040 mv -f conftest.er1 conftest.err 2041 fi 2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2043 test $ac_status = 0; } > conftest.i && { 2044 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2045 test ! -s conftest.err 2046 }; then : 2047 ac_retval=0 2048else 2049 $as_echo "$as_me: failed program was:" >&5 2050sed 's/^/| /' conftest.$ac_ext >&5 2051 2052 ac_retval=1 2053fi 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2055 as_fn_set_status $ac_retval 2056 2057} # ac_fn_cxx_try_cpp 2058 2059# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2060# --------------------------------------------------------- 2061# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2062# the include files in INCLUDES and setting the cache variable VAR 2063# accordingly. 2064ac_fn_cxx_check_header_mongrel () 2065{ 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 if eval \${$3+:} false; then : 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2069$as_echo_n "checking for $2... " >&6; } 2070if eval \${$3+:} false; then : 2071 $as_echo_n "(cached) " >&6 2072fi 2073eval ac_res=\$$3 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2075$as_echo "$ac_res" >&6; } 2076else 2077 # Is the header compilable? 2078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2079$as_echo_n "checking $2 usability... " >&6; } 2080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083#include <$2> 2084_ACEOF 2085if ac_fn_cxx_try_compile "$LINENO"; then : 2086 ac_header_compiler=yes 2087else 2088 ac_header_compiler=no 2089fi 2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2092$as_echo "$ac_header_compiler" >&6; } 2093 2094# Is the header present? 2095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2096$as_echo_n "checking $2 presence... " >&6; } 2097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2098/* end confdefs.h. */ 2099#include <$2> 2100_ACEOF 2101if ac_fn_cxx_try_cpp "$LINENO"; then : 2102 ac_header_preproc=yes 2103else 2104 ac_header_preproc=no 2105fi 2106rm -f conftest.err conftest.i conftest.$ac_ext 2107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2108$as_echo "$ac_header_preproc" >&6; } 2109 2110# So? What about this header? 2111case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2112 yes:no: ) 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2114$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2116$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2117 ;; 2118 no:yes:* ) 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2120$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2122$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2124$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2126$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2128$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2129 ;; 2130esac 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2132$as_echo_n "checking for $2... " >&6; } 2133if eval \${$3+:} false; then : 2134 $as_echo_n "(cached) " >&6 2135else 2136 eval "$3=\$ac_header_compiler" 2137fi 2138eval ac_res=\$$3 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2140$as_echo "$ac_res" >&6; } 2141fi 2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2143 2144} # ac_fn_cxx_check_header_mongrel 2145 2146# ac_fn_cxx_try_run LINENO 2147# ------------------------ 2148# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2149# that executables *can* be run. 2150ac_fn_cxx_try_run () 2151{ 2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2153 if { { ac_try="$ac_link" 2154case "(($ac_try" in 2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2156 *) ac_try_echo=$ac_try;; 2157esac 2158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2159$as_echo "$ac_try_echo"; } >&5 2160 (eval "$ac_link") 2>&5 2161 ac_status=$? 2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2163 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2164 { { case "(($ac_try" in 2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2166 *) ac_try_echo=$ac_try;; 2167esac 2168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2169$as_echo "$ac_try_echo"; } >&5 2170 (eval "$ac_try") 2>&5 2171 ac_status=$? 2172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2173 test $ac_status = 0; }; }; then : 2174 ac_retval=0 2175else 2176 $as_echo "$as_me: program exited with status $ac_status" >&5 2177 $as_echo "$as_me: failed program was:" >&5 2178sed 's/^/| /' conftest.$ac_ext >&5 2179 2180 ac_retval=$ac_status 2181fi 2182 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2184 as_fn_set_status $ac_retval 2185 2186} # ac_fn_cxx_try_run 2187 2188# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2189# --------------------------------------------------------- 2190# Tests whether HEADER exists and can be compiled using the include files in 2191# INCLUDES, setting the cache variable VAR accordingly. 2192ac_fn_cxx_check_header_compile () 2193{ 2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2196$as_echo_n "checking for $2... " >&6; } 2197if eval \${$3+:} false; then : 2198 $as_echo_n "(cached) " >&6 2199else 2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2201/* end confdefs.h. */ 2202$4 2203#include <$2> 2204_ACEOF 2205if ac_fn_cxx_try_compile "$LINENO"; then : 2206 eval "$3=yes" 2207else 2208 eval "$3=no" 2209fi 2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211fi 2212eval ac_res=\$$3 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2214$as_echo "$ac_res" >&6; } 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 2217} # ac_fn_cxx_check_header_compile 2218 2219# ac_fn_c_try_cpp LINENO 2220# ---------------------- 2221# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2222ac_fn_c_try_cpp () 2223{ 2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2225 if { { ac_try="$ac_cpp conftest.$ac_ext" 2226case "(($ac_try" in 2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2228 *) ac_try_echo=$ac_try;; 2229esac 2230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2231$as_echo "$ac_try_echo"; } >&5 2232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2233 ac_status=$? 2234 if test -s conftest.err; then 2235 grep -v '^ *+' conftest.err >conftest.er1 2236 cat conftest.er1 >&5 2237 mv -f conftest.er1 conftest.err 2238 fi 2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2240 test $ac_status = 0; } > conftest.i && { 2241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2242 test ! -s conftest.err 2243 }; then : 2244 ac_retval=0 2245else 2246 $as_echo "$as_me: failed program was:" >&5 2247sed 's/^/| /' conftest.$ac_ext >&5 2248 2249 ac_retval=1 2250fi 2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2252 as_fn_set_status $ac_retval 2253 2254} # ac_fn_c_try_cpp 2255 2256# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2257# ---------------------------------------------- 2258# Tries to find the compile-time value of EXPR in a program that includes 2259# INCLUDES, setting VAR accordingly. Returns whether the value could be 2260# computed 2261ac_fn_cxx_compute_int () 2262{ 2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2264 if test "$cross_compiling" = yes; then 2265 # Depending upon the size, compute the lo and hi bounds. 2266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2267/* end confdefs.h. */ 2268$4 2269int 2270main () 2271{ 2272static int test_array [1 - 2 * !(($2) >= 0)]; 2273test_array [0] = 0; 2274return test_array [0]; 2275 2276 ; 2277 return 0; 2278} 2279_ACEOF 2280if ac_fn_cxx_try_compile "$LINENO"; then : 2281 ac_lo=0 ac_mid=0 2282 while :; do 2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2284/* end confdefs.h. */ 2285$4 2286int 2287main () 2288{ 2289static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2290test_array [0] = 0; 2291return test_array [0]; 2292 2293 ; 2294 return 0; 2295} 2296_ACEOF 2297if ac_fn_cxx_try_compile "$LINENO"; then : 2298 ac_hi=$ac_mid; break 2299else 2300 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2301 if test $ac_lo -le $ac_mid; then 2302 ac_lo= ac_hi= 2303 break 2304 fi 2305 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2306fi 2307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2308 done 2309else 2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2311/* end confdefs.h. */ 2312$4 2313int 2314main () 2315{ 2316static int test_array [1 - 2 * !(($2) < 0)]; 2317test_array [0] = 0; 2318return test_array [0]; 2319 2320 ; 2321 return 0; 2322} 2323_ACEOF 2324if ac_fn_cxx_try_compile "$LINENO"; then : 2325 ac_hi=-1 ac_mid=-1 2326 while :; do 2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2328/* end confdefs.h. */ 2329$4 2330int 2331main () 2332{ 2333static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2334test_array [0] = 0; 2335return test_array [0]; 2336 2337 ; 2338 return 0; 2339} 2340_ACEOF 2341if ac_fn_cxx_try_compile "$LINENO"; then : 2342 ac_lo=$ac_mid; break 2343else 2344 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2345 if test $ac_mid -le $ac_hi; then 2346 ac_lo= ac_hi= 2347 break 2348 fi 2349 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2350fi 2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2352 done 2353else 2354 ac_lo= ac_hi= 2355fi 2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2357fi 2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2359# Binary search between lo and hi bounds. 2360while test "x$ac_lo" != "x$ac_hi"; do 2361 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2363/* end confdefs.h. */ 2364$4 2365int 2366main () 2367{ 2368static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2369test_array [0] = 0; 2370return test_array [0]; 2371 2372 ; 2373 return 0; 2374} 2375_ACEOF 2376if ac_fn_cxx_try_compile "$LINENO"; then : 2377 ac_hi=$ac_mid 2378else 2379 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2380fi 2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2382done 2383case $ac_lo in #(( 2384?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2385'') ac_retval=1 ;; 2386esac 2387 else 2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2389/* end confdefs.h. */ 2390$4 2391static long int longval () { return $2; } 2392static unsigned long int ulongval () { return $2; } 2393#include <stdio.h> 2394#include <stdlib.h> 2395int 2396main () 2397{ 2398 2399 FILE *f = fopen ("conftest.val", "w"); 2400 if (! f) 2401 return 1; 2402 if (($2) < 0) 2403 { 2404 long int i = longval (); 2405 if (i != ($2)) 2406 return 1; 2407 fprintf (f, "%ld", i); 2408 } 2409 else 2410 { 2411 unsigned long int i = ulongval (); 2412 if (i != ($2)) 2413 return 1; 2414 fprintf (f, "%lu", i); 2415 } 2416 /* Do not output a trailing newline, as this causes \r\n confusion 2417 on some platforms. */ 2418 return ferror (f) || fclose (f) != 0; 2419 2420 ; 2421 return 0; 2422} 2423_ACEOF 2424if ac_fn_cxx_try_run "$LINENO"; then : 2425 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2426else 2427 ac_retval=1 2428fi 2429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2430 conftest.$ac_objext conftest.beam conftest.$ac_ext 2431rm -f conftest.val 2432 2433 fi 2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2435 as_fn_set_status $ac_retval 2436 2437} # ac_fn_cxx_compute_int 2438 2439# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2440# --------------------------------------------- 2441# Tests whether TYPE exists after having included INCLUDES, setting cache 2442# variable VAR accordingly. 2443ac_fn_cxx_check_type () 2444{ 2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2447$as_echo_n "checking for $2... " >&6; } 2448if eval \${$3+:} false; then : 2449 $as_echo_n "(cached) " >&6 2450else 2451 eval "$3=no" 2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2453/* end confdefs.h. */ 2454$4 2455int 2456main () 2457{ 2458if (sizeof ($2)) 2459 return 0; 2460 ; 2461 return 0; 2462} 2463_ACEOF 2464if ac_fn_cxx_try_compile "$LINENO"; then : 2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2466/* end confdefs.h. */ 2467$4 2468int 2469main () 2470{ 2471if (sizeof (($2))) 2472 return 0; 2473 ; 2474 return 0; 2475} 2476_ACEOF 2477if ac_fn_cxx_try_compile "$LINENO"; then : 2478 2479else 2480 eval "$3=yes" 2481fi 2482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2483fi 2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2485fi 2486eval ac_res=\$$3 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2488$as_echo "$ac_res" >&6; } 2489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2490 2491} # ac_fn_cxx_check_type 2492 2493# ac_fn_c_find_intX_t LINENO BITS VAR 2494# ----------------------------------- 2495# Finds a signed integer type with width BITS, setting cache variable VAR 2496# accordingly. 2497ac_fn_c_find_intX_t () 2498{ 2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2501$as_echo_n "checking for int$2_t... " >&6; } 2502if eval \${$3+:} false; then : 2503 $as_echo_n "(cached) " >&6 2504else 2505 eval "$3=no" 2506 # Order is important - never check a type that is potentially smaller 2507 # than half of the expected target width. 2508 for ac_type in int$2_t 'int' 'long int' \ 2509 'long long int' 'short int' 'signed char'; do 2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2511/* end confdefs.h. */ 2512$ac_includes_default 2513 enum { N = $2 / 2 - 1 }; 2514int 2515main () 2516{ 2517static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2518test_array [0] = 0; 2519return test_array [0]; 2520 2521 ; 2522 return 0; 2523} 2524_ACEOF 2525if ac_fn_cxx_try_compile "$LINENO"; then : 2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2527/* end confdefs.h. */ 2528$ac_includes_default 2529 enum { N = $2 / 2 - 1 }; 2530int 2531main () 2532{ 2533static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2534 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2535test_array [0] = 0; 2536return test_array [0]; 2537 2538 ; 2539 return 0; 2540} 2541_ACEOF 2542if ac_fn_cxx_try_compile "$LINENO"; then : 2543 2544else 2545 case $ac_type in #( 2546 int$2_t) : 2547 eval "$3=yes" ;; #( 2548 *) : 2549 eval "$3=\$ac_type" ;; 2550esac 2551fi 2552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2553fi 2554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2555 if eval test \"x\$"$3"\" = x"no"; then : 2556 2557else 2558 break 2559fi 2560 done 2561fi 2562eval ac_res=\$$3 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2564$as_echo "$ac_res" >&6; } 2565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2566 2567} # ac_fn_c_find_intX_t 2568 2569# ac_fn_cxx_try_link LINENO 2570# ------------------------- 2571# Try to link conftest.$ac_ext, and return whether this succeeded. 2572ac_fn_cxx_try_link () 2573{ 2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2575 rm -f conftest.$ac_objext conftest$ac_exeext 2576 if { { ac_try="$ac_link" 2577case "(($ac_try" in 2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2579 *) ac_try_echo=$ac_try;; 2580esac 2581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2582$as_echo "$ac_try_echo"; } >&5 2583 (eval "$ac_link") 2>conftest.err 2584 ac_status=$? 2585 if test -s conftest.err; then 2586 grep -v '^ *+' conftest.err >conftest.er1 2587 cat conftest.er1 >&5 2588 mv -f conftest.er1 conftest.err 2589 fi 2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2591 test $ac_status = 0; } && { 2592 test -z "$ac_cxx_werror_flag" || 2593 test ! -s conftest.err 2594 } && test -s conftest$ac_exeext && { 2595 test "$cross_compiling" = yes || 2596 test -x conftest$ac_exeext 2597 }; then : 2598 ac_retval=0 2599else 2600 $as_echo "$as_me: failed program was:" >&5 2601sed 's/^/| /' conftest.$ac_ext >&5 2602 2603 ac_retval=1 2604fi 2605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2607 # interfere with the next link command; also delete a directory that is 2608 # left behind by Apple's compiler. We do this before executing the actions. 2609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2611 as_fn_set_status $ac_retval 2612 2613} # ac_fn_cxx_try_link 2614 2615# ac_fn_c_find_uintX_t LINENO BITS VAR 2616# ------------------------------------ 2617# Finds an unsigned integer type with width BITS, setting cache variable VAR 2618# accordingly. 2619ac_fn_c_find_uintX_t () 2620{ 2621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2623$as_echo_n "checking for uint$2_t... " >&6; } 2624if eval \${$3+:} false; then : 2625 $as_echo_n "(cached) " >&6 2626else 2627 eval "$3=no" 2628 # Order is important - never check a type that is potentially smaller 2629 # than half of the expected target width. 2630 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2631 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2633/* end confdefs.h. */ 2634$ac_includes_default 2635int 2636main () 2637{ 2638static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2639test_array [0] = 0; 2640return test_array [0]; 2641 2642 ; 2643 return 0; 2644} 2645_ACEOF 2646if ac_fn_cxx_try_compile "$LINENO"; then : 2647 case $ac_type in #( 2648 uint$2_t) : 2649 eval "$3=yes" ;; #( 2650 *) : 2651 eval "$3=\$ac_type" ;; 2652esac 2653fi 2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2655 if eval test \"x\$"$3"\" = x"no"; then : 2656 2657else 2658 break 2659fi 2660 done 2661fi 2662eval ac_res=\$$3 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2664$as_echo "$ac_res" >&6; } 2665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2666 2667} # ac_fn_c_find_uintX_t 2668 2669# ac_fn_cxx_check_header_preproc LINENO HEADER VAR 2670# ------------------------------------------------ 2671# Tests whether HEADER is present, setting the cache variable VAR accordingly. 2672ac_fn_cxx_check_header_preproc () 2673{ 2674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2676$as_echo_n "checking for $2... " >&6; } 2677if eval \${$3+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2681/* end confdefs.h. */ 2682#include <$2> 2683_ACEOF 2684if ac_fn_cxx_try_cpp "$LINENO"; then : 2685 eval "$3=yes" 2686else 2687 eval "$3=no" 2688fi 2689rm -f conftest.err conftest.i conftest.$ac_ext 2690fi 2691eval ac_res=\$$3 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2693$as_echo "$ac_res" >&6; } 2694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2695 2696} # ac_fn_cxx_check_header_preproc 2697 2698# ac_fn_cxx_check_func LINENO FUNC VAR 2699# ------------------------------------ 2700# Tests whether FUNC exists, setting the cache variable VAR accordingly 2701ac_fn_cxx_check_func () 2702{ 2703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2705$as_echo_n "checking for $2... " >&6; } 2706if eval \${$3+:} false; then : 2707 $as_echo_n "(cached) " >&6 2708else 2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2710/* end confdefs.h. */ 2711/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2712 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2713#define $2 innocuous_$2 2714 2715/* System header to define __stub macros and hopefully few prototypes, 2716 which can conflict with char $2 (); below. 2717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2718 <limits.h> exists even on freestanding compilers. */ 2719 2720#ifdef __STDC__ 2721# include <limits.h> 2722#else 2723# include <assert.h> 2724#endif 2725 2726#undef $2 2727 2728/* Override any GCC internal prototype to avoid an error. 2729 Use char because int might match the return type of a GCC 2730 builtin and then its argument prototype would still apply. */ 2731#ifdef __cplusplus 2732extern "C" 2733#endif 2734char $2 (); 2735/* The GNU C library defines this for functions which it implements 2736 to always fail with ENOSYS. Some functions are actually named 2737 something starting with __ and the normal name is an alias. */ 2738#if defined __stub_$2 || defined __stub___$2 2739choke me 2740#endif 2741 2742int 2743main () 2744{ 2745return $2 (); 2746 ; 2747 return 0; 2748} 2749_ACEOF 2750if ac_fn_cxx_try_link "$LINENO"; then : 2751 eval "$3=yes" 2752else 2753 eval "$3=no" 2754fi 2755rm -f core conftest.err conftest.$ac_objext \ 2756 conftest$ac_exeext conftest.$ac_ext 2757fi 2758eval ac_res=\$$3 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2760$as_echo "$ac_res" >&6; } 2761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2762 2763} # ac_fn_cxx_check_func 2764 2765# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 2766# ----------------------------------------------- 2767# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2768# accordingly. 2769ac_fn_cxx_check_decl () 2770{ 2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2772 as_decl_name=`echo $2|sed 's/ *(.*//'` 2773 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2775$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2776if eval \${$3+:} false; then : 2777 $as_echo_n "(cached) " >&6 2778else 2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2780/* end confdefs.h. */ 2781$4 2782int 2783main () 2784{ 2785#ifndef $as_decl_name 2786#ifdef __cplusplus 2787 (void) $as_decl_use; 2788#else 2789 (void) $as_decl_name; 2790#endif 2791#endif 2792 2793 ; 2794 return 0; 2795} 2796_ACEOF 2797if ac_fn_cxx_try_compile "$LINENO"; then : 2798 eval "$3=yes" 2799else 2800 eval "$3=no" 2801fi 2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2803fi 2804eval ac_res=\$$3 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2806$as_echo "$ac_res" >&6; } 2807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2808 2809} # ac_fn_cxx_check_decl 2810 2811# ac_fn_c_try_link LINENO 2812# ----------------------- 2813# Try to link conftest.$ac_ext, and return whether this succeeded. 2814ac_fn_c_try_link () 2815{ 2816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2817 rm -f conftest.$ac_objext conftest$ac_exeext 2818 if { { ac_try="$ac_link" 2819case "(($ac_try" in 2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2821 *) ac_try_echo=$ac_try;; 2822esac 2823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2824$as_echo "$ac_try_echo"; } >&5 2825 (eval "$ac_link") 2>conftest.err 2826 ac_status=$? 2827 if test -s conftest.err; then 2828 grep -v '^ *+' conftest.err >conftest.er1 2829 cat conftest.er1 >&5 2830 mv -f conftest.er1 conftest.err 2831 fi 2832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2833 test $ac_status = 0; } && { 2834 test -z "$ac_c_werror_flag" || 2835 test ! -s conftest.err 2836 } && test -s conftest$ac_exeext && { 2837 test "$cross_compiling" = yes || 2838 test -x conftest$ac_exeext 2839 }; then : 2840 ac_retval=0 2841else 2842 $as_echo "$as_me: failed program was:" >&5 2843sed 's/^/| /' conftest.$ac_ext >&5 2844 2845 ac_retval=1 2846fi 2847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2849 # interfere with the next link command; also delete a directory that is 2850 # left behind by Apple's compiler. We do this before executing the actions. 2851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2853 as_fn_set_status $ac_retval 2854 2855} # ac_fn_c_try_link 2856 2857# ac_fn_c_check_header_preproc LINENO HEADER VAR 2858# ---------------------------------------------- 2859# Tests whether HEADER is present, setting the cache variable VAR accordingly. 2860ac_fn_c_check_header_preproc () 2861{ 2862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2864$as_echo_n "checking for $2... " >&6; } 2865if eval \${$3+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2869/* end confdefs.h. */ 2870#include <$2> 2871_ACEOF 2872if ac_fn_c_try_cpp "$LINENO"; then : 2873 eval "$3=yes" 2874else 2875 eval "$3=no" 2876fi 2877rm -f conftest.err conftest.i conftest.$ac_ext 2878fi 2879eval ac_res=\$$3 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2881$as_echo "$ac_res" >&6; } 2882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2883 2884} # ac_fn_c_check_header_preproc 2885 2886# ac_fn_c_check_func LINENO FUNC VAR 2887# ---------------------------------- 2888# Tests whether FUNC exists, setting the cache variable VAR accordingly 2889ac_fn_c_check_func () 2890{ 2891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2893$as_echo_n "checking for $2... " >&6; } 2894if eval \${$3+:} false; then : 2895 $as_echo_n "(cached) " >&6 2896else 2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2898/* end confdefs.h. */ 2899/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2900 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2901#define $2 innocuous_$2 2902 2903/* System header to define __stub macros and hopefully few prototypes, 2904 which can conflict with char $2 (); below. 2905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2906 <limits.h> exists even on freestanding compilers. */ 2907 2908#ifdef __STDC__ 2909# include <limits.h> 2910#else 2911# include <assert.h> 2912#endif 2913 2914#undef $2 2915 2916/* Override any GCC internal prototype to avoid an error. 2917 Use char because int might match the return type of a GCC 2918 builtin and then its argument prototype would still apply. */ 2919#ifdef __cplusplus 2920extern "C" 2921#endif 2922char $2 (); 2923/* The GNU C library defines this for functions which it implements 2924 to always fail with ENOSYS. Some functions are actually named 2925 something starting with __ and the normal name is an alias. */ 2926#if defined __stub_$2 || defined __stub___$2 2927choke me 2928#endif 2929 2930int 2931main () 2932{ 2933return $2 (); 2934 ; 2935 return 0; 2936} 2937_ACEOF 2938if ac_fn_c_try_link "$LINENO"; then : 2939 eval "$3=yes" 2940else 2941 eval "$3=no" 2942fi 2943rm -f core conftest.err conftest.$ac_objext \ 2944 conftest$ac_exeext conftest.$ac_ext 2945fi 2946eval ac_res=\$$3 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2948$as_echo "$ac_res" >&6; } 2949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2950 2951} # ac_fn_c_check_func 2952cat >config.log <<_ACEOF 2953This file contains any messages produced by compilers while 2954running configure, to aid debugging if configure makes a mistake. 2955 2956It was created by $as_me, which was 2957generated by GNU Autoconf 2.69. Invocation command line was 2958 2959 $ $0 $@ 2960 2961_ACEOF 2962exec 5>>config.log 2963{ 2964cat <<_ASUNAME 2965## --------- ## 2966## Platform. ## 2967## --------- ## 2968 2969hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2970uname -m = `(uname -m) 2>/dev/null || echo unknown` 2971uname -r = `(uname -r) 2>/dev/null || echo unknown` 2972uname -s = `(uname -s) 2>/dev/null || echo unknown` 2973uname -v = `(uname -v) 2>/dev/null || echo unknown` 2974 2975/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2976/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2977 2978/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2979/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2980/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2981/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2982/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2983/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2984/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2985 2986_ASUNAME 2987 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 $as_echo "PATH: $as_dir" 2994 done 2995IFS=$as_save_IFS 2996 2997} >&5 2998 2999cat >&5 <<_ACEOF 3000 3001 3002## ----------- ## 3003## Core tests. ## 3004## ----------- ## 3005 3006_ACEOF 3007 3008 3009# Keep a trace of the command line. 3010# Strip out --no-create and --no-recursion so they do not pile up. 3011# Strip out --silent because we don't want to record it for future runs. 3012# Also quote any args containing shell meta-characters. 3013# Make two passes to allow for proper duplicate-argument suppression. 3014ac_configure_args= 3015ac_configure_args0= 3016ac_configure_args1= 3017ac_must_keep_next=false 3018for ac_pass in 1 2 3019do 3020 for ac_arg 3021 do 3022 case $ac_arg in 3023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3025 | -silent | --silent | --silen | --sile | --sil) 3026 continue ;; 3027 *\'*) 3028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3029 esac 3030 case $ac_pass in 3031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3032 2) 3033 as_fn_append ac_configure_args1 " '$ac_arg'" 3034 if test $ac_must_keep_next = true; then 3035 ac_must_keep_next=false # Got value, back to normal. 3036 else 3037 case $ac_arg in 3038 *=* | --config-cache | -C | -disable-* | --disable-* \ 3039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3041 | -with-* | --with-* | -without-* | --without-* | --x) 3042 case "$ac_configure_args0 " in 3043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3044 esac 3045 ;; 3046 -* ) ac_must_keep_next=true ;; 3047 esac 3048 fi 3049 as_fn_append ac_configure_args " '$ac_arg'" 3050 ;; 3051 esac 3052 done 3053done 3054{ ac_configure_args0=; unset ac_configure_args0;} 3055{ ac_configure_args1=; unset ac_configure_args1;} 3056 3057# When interrupted or exit'd, cleanup temporary files, and complete 3058# config.log. We remove comments because anyway the quotes in there 3059# would cause problems or look ugly. 3060# WARNING: Use '\'' to represent an apostrophe within the trap. 3061# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3062trap 'exit_status=$? 3063 # Save into config.log some information that might help in debugging. 3064 { 3065 echo 3066 3067 $as_echo "## ---------------- ## 3068## Cache variables. ## 3069## ---------------- ##" 3070 echo 3071 # The following way of writing the cache mishandles newlines in values, 3072( 3073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3074 eval ac_val=\$$ac_var 3075 case $ac_val in #( 3076 *${as_nl}*) 3077 case $ac_var in #( 3078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3079$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3080 esac 3081 case $ac_var in #( 3082 _ | IFS | as_nl) ;; #( 3083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3084 *) { eval $ac_var=; unset $ac_var;} ;; 3085 esac ;; 3086 esac 3087 done 3088 (set) 2>&1 | 3089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3090 *${as_nl}ac_space=\ *) 3091 sed -n \ 3092 "s/'\''/'\''\\\\'\'''\''/g; 3093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3094 ;; #( 3095 *) 3096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3097 ;; 3098 esac | 3099 sort 3100) 3101 echo 3102 3103 $as_echo "## ----------------- ## 3104## Output variables. ## 3105## ----------------- ##" 3106 echo 3107 for ac_var in $ac_subst_vars 3108 do 3109 eval ac_val=\$$ac_var 3110 case $ac_val in 3111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3112 esac 3113 $as_echo "$ac_var='\''$ac_val'\''" 3114 done | sort 3115 echo 3116 3117 if test -n "$ac_subst_files"; then 3118 $as_echo "## ------------------- ## 3119## File substitutions. ## 3120## ------------------- ##" 3121 echo 3122 for ac_var in $ac_subst_files 3123 do 3124 eval ac_val=\$$ac_var 3125 case $ac_val in 3126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3127 esac 3128 $as_echo "$ac_var='\''$ac_val'\''" 3129 done | sort 3130 echo 3131 fi 3132 3133 if test -s confdefs.h; then 3134 $as_echo "## ----------- ## 3135## confdefs.h. ## 3136## ----------- ##" 3137 echo 3138 cat confdefs.h 3139 echo 3140 fi 3141 test "$ac_signal" != 0 && 3142 $as_echo "$as_me: caught signal $ac_signal" 3143 $as_echo "$as_me: exit $exit_status" 3144 } >&5 3145 rm -f core *.core core.conftest.* && 3146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3147 exit $exit_status 3148' 0 3149for ac_signal in 1 2 13 15; do 3150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3151done 3152ac_signal=0 3153 3154# confdefs.h avoids OS command line length limits that DEFS can exceed. 3155rm -f -r conftest* confdefs.h 3156 3157$as_echo "/* confdefs.h */" > confdefs.h 3158 3159# Predefined preprocessor variables. 3160 3161cat >>confdefs.h <<_ACEOF 3162#define PACKAGE_NAME "$PACKAGE_NAME" 3163_ACEOF 3164 3165cat >>confdefs.h <<_ACEOF 3166#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3167_ACEOF 3168 3169cat >>confdefs.h <<_ACEOF 3170#define PACKAGE_VERSION "$PACKAGE_VERSION" 3171_ACEOF 3172 3173cat >>confdefs.h <<_ACEOF 3174#define PACKAGE_STRING "$PACKAGE_STRING" 3175_ACEOF 3176 3177cat >>confdefs.h <<_ACEOF 3178#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3179_ACEOF 3180 3181cat >>confdefs.h <<_ACEOF 3182#define PACKAGE_URL "$PACKAGE_URL" 3183_ACEOF 3184 3185 3186# Let the site file select an alternate cache file if it wants to. 3187# Prefer an explicitly selected file to automatically selected ones. 3188ac_site_file1=NONE 3189ac_site_file2=NONE 3190if test -n "$CONFIG_SITE"; then 3191 # We do not want a PATH search for config.site. 3192 case $CONFIG_SITE in #(( 3193 -*) ac_site_file1=./$CONFIG_SITE;; 3194 */*) ac_site_file1=$CONFIG_SITE;; 3195 *) ac_site_file1=./$CONFIG_SITE;; 3196 esac 3197elif test "x$prefix" != xNONE; then 3198 ac_site_file1=$prefix/share/config.site 3199 ac_site_file2=$prefix/etc/config.site 3200else 3201 ac_site_file1=$ac_default_prefix/share/config.site 3202 ac_site_file2=$ac_default_prefix/etc/config.site 3203fi 3204for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3205do 3206 test "x$ac_site_file" = xNONE && continue 3207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3209$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3210 sed 's/^/| /' "$ac_site_file" >&5 3211 . "$ac_site_file" \ 3212 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3214as_fn_error $? "failed to load site script $ac_site_file 3215See \`config.log' for more details" "$LINENO" 5; } 3216 fi 3217done 3218 3219if test -r "$cache_file"; then 3220 # Some versions of bash will fail to source /dev/null (special files 3221 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3224$as_echo "$as_me: loading cache $cache_file" >&6;} 3225 case $cache_file in 3226 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3227 *) . "./$cache_file";; 3228 esac 3229 fi 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3232$as_echo "$as_me: creating cache $cache_file" >&6;} 3233 >$cache_file 3234fi 3235 3236# Check that the precious variables saved in the cache have kept the same 3237# value. 3238ac_cache_corrupted=false 3239for ac_var in $ac_precious_vars; do 3240 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3241 eval ac_new_set=\$ac_env_${ac_var}_set 3242 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3243 eval ac_new_val=\$ac_env_${ac_var}_value 3244 case $ac_old_set,$ac_new_set in 3245 set,) 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3247$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3248 ac_cache_corrupted=: ;; 3249 ,set) 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3251$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3252 ac_cache_corrupted=: ;; 3253 ,);; 3254 *) 3255 if test "x$ac_old_val" != "x$ac_new_val"; then 3256 # differences in whitespace do not lead to failure. 3257 ac_old_val_w=`echo x $ac_old_val` 3258 ac_new_val_w=`echo x $ac_new_val` 3259 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3261$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3262 ac_cache_corrupted=: 3263 else 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3265$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3266 eval $ac_var=\$ac_old_val 3267 fi 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3269$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3271$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3272 fi;; 3273 esac 3274 # Pass precious variables to config.status. 3275 if test "$ac_new_set" = set; then 3276 case $ac_new_val in 3277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3278 *) ac_arg=$ac_var=$ac_new_val ;; 3279 esac 3280 case " $ac_configure_args " in 3281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3282 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3283 esac 3284 fi 3285done 3286if $ac_cache_corrupted; then 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3290$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3291 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3292fi 3293## -------------------- ## 3294## Main body of script. ## 3295## -------------------- ## 3296 3297ac_ext=c 3298ac_cpp='$CPP $CPPFLAGS' 3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3301ac_compiler_gnu=$ac_cv_c_compiler_gnu 3302 3303 3304 3305 3306 3307 3308ac_config_headers="$ac_config_headers auto-host.h:config.in" 3309 3310 3311gcc_version=`cat $srcdir/BASE-VER` 3312 3313# Determine the host, build, and target systems 3314ac_aux_dir= 3315for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3316 if test -f "$ac_dir/install-sh"; then 3317 ac_aux_dir=$ac_dir 3318 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c" 3319 break 3320 elif test -f "$ac_dir/install.sh"; then 3321 ac_aux_dir=$ac_dir 3322 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c" 3323 break 3324 elif test -f "$ac_dir/shtool"; then 3325 ac_aux_dir=$ac_dir 3326 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c" 3327 break 3328 fi 3329done 3330if test -z "$ac_aux_dir"; then 3331 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3332fi 3333 3334# These three variables are undocumented and unsupported, 3335# and are intended to be withdrawn in a future Autoconf release. 3336# They can cause serious problems if a builder's source tree is in a directory 3337# whose full name contains unusual characters. 3338ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3339ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3340ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3341 3342 3343# Make sure we can run config.sub. 3344$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3345 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3346 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3348$as_echo_n "checking build system type... " >&6; } 3349if ${ac_cv_build+:} false; then : 3350 $as_echo_n "(cached) " >&6 3351else 3352 ac_build_alias=$build_alias 3353test "x$ac_build_alias" = x && 3354 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3355test "x$ac_build_alias" = x && 3356 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3357ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3358 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3359 3360fi 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3362$as_echo "$ac_cv_build" >&6; } 3363case $ac_cv_build in 3364*-*-*) ;; 3365*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3366esac 3367build=$ac_cv_build 3368ac_save_IFS=$IFS; IFS='-' 3369set x $ac_cv_build 3370shift 3371build_cpu=$1 3372build_vendor=$2 3373shift; shift 3374# Remember, the first character of IFS is used to create $*, 3375# except with old shells: 3376build_os=$* 3377IFS=$ac_save_IFS 3378case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3379 3380 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3382$as_echo_n "checking host system type... " >&6; } 3383if ${ac_cv_host+:} false; then : 3384 $as_echo_n "(cached) " >&6 3385else 3386 if test "x$host_alias" = x; then 3387 ac_cv_host=$ac_cv_build 3388else 3389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3390 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3391fi 3392 3393fi 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3395$as_echo "$ac_cv_host" >&6; } 3396case $ac_cv_host in 3397*-*-*) ;; 3398*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3399esac 3400host=$ac_cv_host 3401ac_save_IFS=$IFS; IFS='-' 3402set x $ac_cv_host 3403shift 3404host_cpu=$1 3405host_vendor=$2 3406shift; shift 3407# Remember, the first character of IFS is used to create $*, 3408# except with old shells: 3409host_os=$* 3410IFS=$ac_save_IFS 3411case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3412 3413 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3415$as_echo_n "checking target system type... " >&6; } 3416if ${ac_cv_target+:} false; then : 3417 $as_echo_n "(cached) " >&6 3418else 3419 if test "x$target_alias" = x; then 3420 ac_cv_target=$ac_cv_host 3421else 3422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3424fi 3425 3426fi 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3428$as_echo "$ac_cv_target" >&6; } 3429case $ac_cv_target in 3430*-*-*) ;; 3431*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3432esac 3433target=$ac_cv_target 3434ac_save_IFS=$IFS; IFS='-' 3435set x $ac_cv_target 3436shift 3437target_cpu=$1 3438target_vendor=$2 3439shift; shift 3440# Remember, the first character of IFS is used to create $*, 3441# except with old shells: 3442target_os=$* 3443IFS=$ac_save_IFS 3444case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3445 3446 3447# The aliases save the names the user supplied, while $host etc. 3448# will get canonicalized. 3449test -n "$target_alias" && 3450 test "$program_prefix$program_suffix$program_transform_name" = \ 3451 NONENONEs,x,x, && 3452 program_prefix=${target_alias}- 3453 3454# Determine the noncanonical host name, for Ada. 3455 case ${build_alias} in 3456 "") build_noncanonical=${build} ;; 3457 *) build_noncanonical=${build_alias} ;; 3458esac 3459 3460 case ${host_alias} in 3461 "") host_noncanonical=${build_noncanonical} ;; 3462 *) host_noncanonical=${host_alias} ;; 3463esac 3464 3465 3466 3467 3468# Determine the noncanonical target name, for directory use. 3469 case ${target_alias} in 3470 "") target_noncanonical=${host_noncanonical} ;; 3471 *) target_noncanonical=${target_alias} ;; 3472esac 3473 3474 3475 3476 3477# Used for constructing correct paths for offload compilers. 3478real_target_noncanonical=${target_noncanonical} 3479accel_dir_suffix= 3480 3481# Determine the target- and build-specific subdirectories 3482 3483# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 3484# have matching libraries, they should use host libraries: Makefile.tpl 3485# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 3486# However, they still use the build modules, because the corresponding 3487# host modules (e.g. bison) are only built for the host when bootstrap 3488# finishes. So: 3489# - build_subdir is where we find build modules, and never changes. 3490# - build_libsubdir is where we find build libraries, and can be overridden. 3491 3492# Prefix 'build-' so this never conflicts with target_subdir. 3493build_subdir="build-${build_noncanonical}" 3494 3495# Check whether --with-build-libsubdir was given. 3496if test "${with_build_libsubdir+set}" = set; then : 3497 withval=$with_build_libsubdir; build_libsubdir="$withval" 3498else 3499 build_libsubdir="$build_subdir" 3500fi 3501 3502# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 3503if ( test $srcdir = . && test -d gcc ) \ 3504 || test -d $srcdir/../host-${host_noncanonical}; then 3505 host_subdir="host-${host_noncanonical}" 3506else 3507 host_subdir=. 3508fi 3509# No prefix. 3510target_subdir=${target_noncanonical} 3511 3512 3513# Set program_transform_name 3514test "$program_prefix" != NONE && 3515 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3516# Use a double $ so make ignores it. 3517test "$program_suffix" != NONE && 3518 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3519# Double any \ or $. 3520# By default was `s,x,x', remove it if useless. 3521ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3522program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3523 3524 3525# Check for bogus environment variables. 3526# Test if LIBRARY_PATH contains the notation for the current directory 3527# since this would lead to problems installing/building glibc. 3528# LIBRARY_PATH contains the current directory if one of the following 3529# is true: 3530# - one of the terminals (":" and ";") is the first or last sign 3531# - two terminals occur directly after each other 3532# - the path contains an element with a dot in it 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5 3534$as_echo_n "checking LIBRARY_PATH variable... " >&6; } 3535case ${LIBRARY_PATH} in 3536 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 3537 library_path_setting="contains current directory" 3538 ;; 3539 *) 3540 library_path_setting="ok" 3541 ;; 3542esac 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5 3544$as_echo "$library_path_setting" >&6; } 3545if test "$library_path_setting" != "ok"; then 3546as_fn_error $? " 3547*** LIBRARY_PATH shouldn't contain the current directory when 3548*** building gcc. Please change the environment variable 3549*** and run configure again." "$LINENO" 5 3550fi 3551 3552# Test if GCC_EXEC_PREFIX contains the notation for the current directory 3553# since this would lead to problems installing/building glibc. 3554# GCC_EXEC_PREFIX contains the current directory if one of the following 3555# is true: 3556# - one of the terminals (":" and ";") is the first or last sign 3557# - two terminals occur directly after each other 3558# - the path contains an element with a dot in it 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5 3560$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; } 3561case ${GCC_EXEC_PREFIX} in 3562 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 3563 gcc_exec_prefix_setting="contains current directory" 3564 ;; 3565 *) 3566 gcc_exec_prefix_setting="ok" 3567 ;; 3568esac 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5 3570$as_echo "$gcc_exec_prefix_setting" >&6; } 3571if test "$gcc_exec_prefix_setting" != "ok"; then 3572as_fn_error $? " 3573*** GCC_EXEC_PREFIX shouldn't contain the current directory when 3574*** building gcc. Please change the environment variable 3575*** and run configure again." "$LINENO" 5 3576fi 3577 3578# ----------- 3579# Directories 3580# ----------- 3581 3582# Specify the local prefix 3583local_prefix= 3584 3585# Check whether --with-local-prefix was given. 3586if test "${with_local_prefix+set}" = set; then : 3587 withval=$with_local_prefix; case "${withval}" in 3588yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;; 3589no) ;; 3590*) local_prefix=$with_local_prefix ;; 3591esac 3592fi 3593 3594 3595# Default local prefix if it is empty 3596if test x$local_prefix = x; then 3597 local_prefix=/usr/local 3598fi 3599 3600 3601# Check whether --with-native-system-header-dir was given. 3602if test "${with_native_system_header_dir+set}" = set; then : 3603 withval=$with_native_system_header_dir; 3604 case ${with_native_system_header_dir} in 3605 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;; 3606 /* | [A-Za-z]:[\\/]*) ;; 3607 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;; 3608 esac 3609 configured_native_system_header_dir="${withval}" 3610 3611else 3612 configured_native_system_header_dir= 3613fi 3614 3615 3616 3617# Check whether --with-build-sysroot was given. 3618if test "${with_build_sysroot+set}" = set; then : 3619 withval=$with_build_sysroot; if test x"$withval" != x ; then 3620 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" 3621 fi 3622else 3623 SYSROOT_CFLAGS_FOR_TARGET= 3624fi 3625 3626 3627 3628if test "x$prefix" = xNONE; then 3629 test_prefix=/usr/local 3630else 3631 test_prefix=$prefix 3632fi 3633if test "x$exec_prefix" = xNONE; then 3634 test_exec_prefix=$test_prefix 3635else 3636 test_exec_prefix=$exec_prefix 3637fi 3638 3639 3640# Check whether --with-sysroot was given. 3641if test "${with_sysroot+set}" = set; then : 3642 withval=$with_sysroot; 3643 case ${with_sysroot} in 3644 /) ;; 3645 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;; 3646 esac 3647 case ${with_sysroot} in 3648 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;; 3649 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 3650 esac 3651 3652 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' 3653 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' 3654 3655 case ${TARGET_SYSTEM_ROOT} in 3656 "${test_prefix}"|"${test_prefix}/"*|\ 3657 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ 3658 '${prefix}'|'${prefix}/'*|\ 3659 '${exec_prefix}'|'${exec_prefix}/'*) 3660 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" 3661 TARGET_SYSTEM_ROOT_DEFINE="$t" 3662 ;; 3663 esac 3664 3665else 3666 3667 TARGET_SYSTEM_ROOT= 3668 TARGET_SYSTEM_ROOT_DEFINE= 3669 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include' 3670 3671fi 3672 3673 3674 3675 3676 3677# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only 3678# passed in by the toplevel make and thus we'd get different behavior 3679# depending on where we built the sources. 3680gcc_gxx_include_dir= 3681# Specify the g++ header file directory 3682 3683# Check whether --with-gxx-include-dir was given. 3684if test "${with_gxx_include_dir+set}" = set; then : 3685 withval=$with_gxx_include_dir; case "${withval}" in 3686yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;; 3687no) ;; 3688*) gcc_gxx_include_dir=$with_gxx_include_dir ;; 3689esac 3690fi 3691 3692 3693# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate 3694# the former in the latter and, upon success, compute gcc_gxx_include_dir as 3695# relative to the sysroot. 3696gcc_gxx_include_dir_add_sysroot=0 3697 3698# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO. 3699if test x${gcc_gxx_include_dir} = x; then 3700 if test x${enable_version_specific_runtime_libs} = xyes; then 3701 gcc_gxx_include_dir='${libsubdir}/include/c++' 3702 else 3703 libstdcxx_incdir='include/c++/$(version)' 3704 if test x$host != x$target; then 3705 libstdcxx_incdir="$target_alias/$libstdcxx_incdir" 3706 fi 3707 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir" 3708 fi 3709elif test "${with_sysroot+set}" = set; then 3710 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'` 3711 if test "${gcc_gxx_without_sysroot}"; then 3712 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}" 3713 gcc_gxx_include_dir_add_sysroot=1 3714 fi 3715fi 3716 3717 3718# Check whether --with-cpp_install_dir was given. 3719if test "${with_cpp_install_dir+set}" = set; then : 3720 withval=$with_cpp_install_dir; if test x$withval = xyes; then 3721 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5 3722elif test x$withval != xno; then 3723 cpp_install_dir=$withval 3724fi 3725fi 3726 3727 3728# We would like to our source tree to be readonly. However when releases or 3729# pre-releases are generated, the flex/bison generated files as well as the 3730# various formats of manuals need to be included along with the rest of the 3731# sources. Therefore we have --enable-generated-files-in-srcdir to do 3732# just that. 3733 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5 3735$as_echo_n "checking whether to place generated files in the source directory... " >&6; } 3736 # Check whether --enable-generated-files-in-srcdir was given. 3737if test "${enable_generated_files_in_srcdir+set}" = set; then : 3738 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval 3739else 3740 generated_files_in_srcdir=no 3741fi 3742 3743 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5 3745$as_echo "$generated_files_in_srcdir" >&6; } 3746 3747if test "$generated_files_in_srcdir" = "yes"; then 3748 GENINSRC='' 3749else 3750 GENINSRC='#' 3751fi 3752 3753 3754# ------------------- 3755# Find default linker 3756# ------------------- 3757 3758# With GNU ld 3759 3760# Check whether --with-gnu-ld was given. 3761if test "${with_gnu_ld+set}" = set; then : 3762 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld" 3763else 3764 gnu_ld_flag=no 3765fi 3766 3767 3768case $target in 3769 *darwin*) 3770 ld64_flag=yes # Darwin can only use a ld64-compatible linker. 3771 dsymutil_flag=yes # Darwin uses dsymutil to link debug. 3772 ;; 3773 *) 3774 ld64_flag=no 3775 dsymutil_flag=no 3776 ;; 3777esac 3778 3779# With pre-defined ld 3780 3781# Check whether --with-ld was given. 3782if test "${with_ld+set}" = set; then : 3783 withval=$with_ld; DEFAULT_LINKER="$with_ld" 3784fi 3785 3786if test x"${DEFAULT_LINKER+set}" = x"set"; then 3787 if test ! -x "$DEFAULT_LINKER"; then 3788 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5 3789 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 3790 gnu_ld_flag=yes 3791 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then 3792 ld64_flag=yes 3793 fi 3794 3795cat >>confdefs.h <<_ACEOF 3796#define DEFAULT_LINKER "$DEFAULT_LINKER" 3797_ACEOF 3798 3799fi 3800 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5 3802$as_echo_n "checking whether a default linker was specified... " >&6; } 3803if test x"${DEFAULT_LINKER+set}" = x"set"; then 3804 if test x"$gnu_ld_flag" = x"no"; then 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5 3806$as_echo "yes ($DEFAULT_LINKER)" >&6; } 3807 else 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5 3809$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; } 3810 fi 3811else 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3813$as_echo "no" >&6; } 3814fi 3815 3816# With demangler in GNU ld 3817 3818# Check whether --with-demangler-in-ld was given. 3819if test "${with_demangler_in_ld+set}" = set; then : 3820 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld" 3821else 3822 demangler_in_ld=yes 3823fi 3824 3825 3826# Allow the user to specify a dsymutil executable (used on Darwin only, so far) 3827 3828# Check whether --with-dsymutil was given. 3829if test "${with_dsymutil+set}" = set; then : 3830 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil" 3831fi 3832 3833 3834dsymutil_vers= 3835if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then 3836 if test ! -x "$DEFAULT_DSYMUTIL"; then 3837 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5 3838 else 3839 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then 3840 dsymutil_flag=yes 3841 fi 3842 fi 3843 3844cat >>confdefs.h <<_ACEOF 3845#define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL" 3846_ACEOF 3847 3848fi 3849 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5 3851$as_echo_n "checking whether a default dsymutil was specified... " >&6; } 3852if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5 3854$as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; } 3855else 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3857$as_echo "no" >&6; } 3858fi 3859 3860# ---------------------- 3861# Find default assembler 3862# ---------------------- 3863 3864# With GNU as 3865 3866# Check whether --with-gnu-as was given. 3867if test "${with_gnu_as+set}" = set; then : 3868 withval=$with_gnu_as; gas_flag="$with_gnu_as" 3869else 3870 gas_flag=no 3871fi 3872 3873 3874 3875# Check whether --with-as was given. 3876if test "${with_as+set}" = set; then : 3877 withval=$with_as; DEFAULT_ASSEMBLER="$with_as" 3878fi 3879 3880if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 3881 if test ! -x "$DEFAULT_ASSEMBLER"; then 3882 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5 3883 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 3884 gas_flag=yes 3885 fi 3886 3887cat >>confdefs.h <<_ACEOF 3888#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" 3889_ACEOF 3890 3891fi 3892 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5 3894$as_echo_n "checking whether a default assembler was specified... " >&6; } 3895if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 3896 if test x"$gas_flag" = x"no"; then 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5 3898$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; } 3899 else 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5 3901$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; } 3902 fi 3903else 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3905$as_echo "no" >&6; } 3906fi 3907 3908# --------------- 3909# Find C compiler 3910# --------------- 3911 3912# If a non-executable a.out is present (e.g. created by GNU as above even if 3913# invoked with -v only), the IRIX 6 native ld just overwrites the existing 3914# file, even when creating an executable, so an execution test fails. 3915# Remove possible default executable files to avoid this. 3916# 3917# FIXME: This really belongs into AC_PROG_CC and can be removed once 3918# Autoconf includes it. 3919rm -f a.out a.exe b.out 3920 3921# Find the native compiler 3922ac_ext=c 3923ac_cpp='$CPP $CPPFLAGS' 3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3926ac_compiler_gnu=$ac_cv_c_compiler_gnu 3927if test -n "$ac_tool_prefix"; then 3928 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3929set dummy ${ac_tool_prefix}gcc; ac_word=$2 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3931$as_echo_n "checking for $ac_word... " >&6; } 3932if ${ac_cv_prog_CC+:} false; then : 3933 $as_echo_n "(cached) " >&6 3934else 3935 if test -n "$CC"; then 3936 ac_cv_prog_CC="$CC" # Let the user override the test. 3937else 3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3939for as_dir in $PATH 3940do 3941 IFS=$as_save_IFS 3942 test -z "$as_dir" && as_dir=. 3943 for ac_exec_ext in '' $ac_executable_extensions; do 3944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3945 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3947 break 2 3948 fi 3949done 3950 done 3951IFS=$as_save_IFS 3952 3953fi 3954fi 3955CC=$ac_cv_prog_CC 3956if test -n "$CC"; then 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3958$as_echo "$CC" >&6; } 3959else 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3961$as_echo "no" >&6; } 3962fi 3963 3964 3965fi 3966if test -z "$ac_cv_prog_CC"; then 3967 ac_ct_CC=$CC 3968 # Extract the first word of "gcc", so it can be a program name with args. 3969set dummy gcc; ac_word=$2 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3971$as_echo_n "checking for $ac_word... " >&6; } 3972if ${ac_cv_prog_ac_ct_CC+:} false; then : 3973 $as_echo_n "(cached) " >&6 3974else 3975 if test -n "$ac_ct_CC"; then 3976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3977else 3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3979for as_dir in $PATH 3980do 3981 IFS=$as_save_IFS 3982 test -z "$as_dir" && as_dir=. 3983 for ac_exec_ext in '' $ac_executable_extensions; do 3984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3985 ac_cv_prog_ac_ct_CC="gcc" 3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3987 break 2 3988 fi 3989done 3990 done 3991IFS=$as_save_IFS 3992 3993fi 3994fi 3995ac_ct_CC=$ac_cv_prog_ac_ct_CC 3996if test -n "$ac_ct_CC"; then 3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3998$as_echo "$ac_ct_CC" >&6; } 3999else 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4001$as_echo "no" >&6; } 4002fi 4003 4004 if test "x$ac_ct_CC" = x; then 4005 CC="" 4006 else 4007 case $cross_compiling:$ac_tool_warned in 4008yes:) 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4011ac_tool_warned=yes ;; 4012esac 4013 CC=$ac_ct_CC 4014 fi 4015else 4016 CC="$ac_cv_prog_CC" 4017fi 4018 4019if test -z "$CC"; then 4020 if test -n "$ac_tool_prefix"; then 4021 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4022set dummy ${ac_tool_prefix}cc; ac_word=$2 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4024$as_echo_n "checking for $ac_word... " >&6; } 4025if ${ac_cv_prog_CC+:} false; then : 4026 $as_echo_n "(cached) " >&6 4027else 4028 if test -n "$CC"; then 4029 ac_cv_prog_CC="$CC" # Let the user override the test. 4030else 4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032for as_dir in $PATH 4033do 4034 IFS=$as_save_IFS 4035 test -z "$as_dir" && as_dir=. 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4038 ac_cv_prog_CC="${ac_tool_prefix}cc" 4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4040 break 2 4041 fi 4042done 4043 done 4044IFS=$as_save_IFS 4045 4046fi 4047fi 4048CC=$ac_cv_prog_CC 4049if test -n "$CC"; then 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4051$as_echo "$CC" >&6; } 4052else 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4054$as_echo "no" >&6; } 4055fi 4056 4057 4058 fi 4059fi 4060if test -z "$CC"; then 4061 # Extract the first word of "cc", so it can be a program name with args. 4062set dummy cc; ac_word=$2 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4064$as_echo_n "checking for $ac_word... " >&6; } 4065if ${ac_cv_prog_CC+:} false; then : 4066 $as_echo_n "(cached) " >&6 4067else 4068 if test -n "$CC"; then 4069 ac_cv_prog_CC="$CC" # Let the user override the test. 4070else 4071 ac_prog_rejected=no 4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073for as_dir in $PATH 4074do 4075 IFS=$as_save_IFS 4076 test -z "$as_dir" && as_dir=. 4077 for ac_exec_ext in '' $ac_executable_extensions; do 4078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4079 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4080 ac_prog_rejected=yes 4081 continue 4082 fi 4083 ac_cv_prog_CC="cc" 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4085 break 2 4086 fi 4087done 4088 done 4089IFS=$as_save_IFS 4090 4091if test $ac_prog_rejected = yes; then 4092 # We found a bogon in the path, so make sure we never use it. 4093 set dummy $ac_cv_prog_CC 4094 shift 4095 if test $# != 0; then 4096 # We chose a different compiler from the bogus one. 4097 # However, it has the same basename, so the bogon will be chosen 4098 # first if we set CC to just the basename; use the full file name. 4099 shift 4100 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4101 fi 4102fi 4103fi 4104fi 4105CC=$ac_cv_prog_CC 4106if test -n "$CC"; then 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4108$as_echo "$CC" >&6; } 4109else 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4111$as_echo "no" >&6; } 4112fi 4113 4114 4115fi 4116if test -z "$CC"; then 4117 if test -n "$ac_tool_prefix"; then 4118 for ac_prog in cl.exe 4119 do 4120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4121set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4123$as_echo_n "checking for $ac_word... " >&6; } 4124if ${ac_cv_prog_CC+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if test -n "$CC"; then 4128 ac_cv_prog_CC="$CC" # Let the user override the test. 4129else 4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_exec_ext in '' $ac_executable_extensions; do 4136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4137 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4139 break 2 4140 fi 4141done 4142 done 4143IFS=$as_save_IFS 4144 4145fi 4146fi 4147CC=$ac_cv_prog_CC 4148if test -n "$CC"; then 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4150$as_echo "$CC" >&6; } 4151else 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4153$as_echo "no" >&6; } 4154fi 4155 4156 4157 test -n "$CC" && break 4158 done 4159fi 4160if test -z "$CC"; then 4161 ac_ct_CC=$CC 4162 for ac_prog in cl.exe 4163do 4164 # Extract the first word of "$ac_prog", so it can be a program name with args. 4165set dummy $ac_prog; ac_word=$2 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4167$as_echo_n "checking for $ac_word... " >&6; } 4168if ${ac_cv_prog_ac_ct_CC+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 if test -n "$ac_ct_CC"; then 4172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4173else 4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4175for as_dir in $PATH 4176do 4177 IFS=$as_save_IFS 4178 test -z "$as_dir" && as_dir=. 4179 for ac_exec_ext in '' $ac_executable_extensions; do 4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4181 ac_cv_prog_ac_ct_CC="$ac_prog" 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4183 break 2 4184 fi 4185done 4186 done 4187IFS=$as_save_IFS 4188 4189fi 4190fi 4191ac_ct_CC=$ac_cv_prog_ac_ct_CC 4192if test -n "$ac_ct_CC"; then 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4194$as_echo "$ac_ct_CC" >&6; } 4195else 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197$as_echo "no" >&6; } 4198fi 4199 4200 4201 test -n "$ac_ct_CC" && break 4202done 4203 4204 if test "x$ac_ct_CC" = x; then 4205 CC="" 4206 else 4207 case $cross_compiling:$ac_tool_warned in 4208yes:) 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4211ac_tool_warned=yes ;; 4212esac 4213 CC=$ac_ct_CC 4214 fi 4215fi 4216 4217fi 4218 4219 4220test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4222as_fn_error $? "no acceptable C compiler found in \$PATH 4223See \`config.log' for more details" "$LINENO" 5; } 4224 4225# Provide some information about the compiler. 4226$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4227set X $ac_compile 4228ac_compiler=$2 4229for ac_option in --version -v -V -qversion; do 4230 { { ac_try="$ac_compiler $ac_option >&5" 4231case "(($ac_try" in 4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4233 *) ac_try_echo=$ac_try;; 4234esac 4235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4236$as_echo "$ac_try_echo"; } >&5 4237 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4238 ac_status=$? 4239 if test -s conftest.err; then 4240 sed '10a\ 4241... rest of stderr output deleted ... 4242 10q' conftest.err >conftest.er1 4243 cat conftest.er1 >&5 4244 fi 4245 rm -f conftest.er1 conftest.err 4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4247 test $ac_status = 0; } 4248done 4249 4250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251/* end confdefs.h. */ 4252 4253int 4254main () 4255{ 4256 4257 ; 4258 return 0; 4259} 4260_ACEOF 4261ac_clean_files_save=$ac_clean_files 4262ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4263# Try to create an executable without -o first, disregard a.out. 4264# It will help us diagnose broken compilers, and finding out an intuition 4265# of exeext. 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4267$as_echo_n "checking whether the C compiler works... " >&6; } 4268ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4269 4270# The possible output files: 4271ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4272 4273ac_rmfiles= 4274for ac_file in $ac_files 4275do 4276 case $ac_file in 4277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4278 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4279 esac 4280done 4281rm -f $ac_rmfiles 4282 4283if { { ac_try="$ac_link_default" 4284case "(($ac_try" in 4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4286 *) ac_try_echo=$ac_try;; 4287esac 4288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4289$as_echo "$ac_try_echo"; } >&5 4290 (eval "$ac_link_default") 2>&5 4291 ac_status=$? 4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4293 test $ac_status = 0; }; then : 4294 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4295# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4296# in a Makefile. We should not override ac_cv_exeext if it was cached, 4297# so that the user can short-circuit this test for compilers unknown to 4298# Autoconf. 4299for ac_file in $ac_files '' 4300do 4301 test -f "$ac_file" || continue 4302 case $ac_file in 4303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4304 ;; 4305 [ab].out ) 4306 # We found the default executable, but exeext='' is most 4307 # certainly right. 4308 break;; 4309 *.* ) 4310 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4311 then :; else 4312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4313 fi 4314 # We set ac_cv_exeext here because the later test for it is not 4315 # safe: cross compilers may not add the suffix if given an `-o' 4316 # argument, so we may need to know it at that point already. 4317 # Even if this section looks crufty: it has the advantage of 4318 # actually working. 4319 break;; 4320 * ) 4321 break;; 4322 esac 4323done 4324test "$ac_cv_exeext" = no && ac_cv_exeext= 4325 4326else 4327 ac_file='' 4328fi 4329if test -z "$ac_file"; then : 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4331$as_echo "no" >&6; } 4332$as_echo "$as_me: failed program was:" >&5 4333sed 's/^/| /' conftest.$ac_ext >&5 4334 4335{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4337as_fn_error 77 "C compiler cannot create executables 4338See \`config.log' for more details" "$LINENO" 5; } 4339else 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4341$as_echo "yes" >&6; } 4342fi 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4344$as_echo_n "checking for C compiler default output file name... " >&6; } 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4346$as_echo "$ac_file" >&6; } 4347ac_exeext=$ac_cv_exeext 4348 4349rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4350ac_clean_files=$ac_clean_files_save 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4352$as_echo_n "checking for suffix of executables... " >&6; } 4353if { { ac_try="$ac_link" 4354case "(($ac_try" in 4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4356 *) ac_try_echo=$ac_try;; 4357esac 4358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4359$as_echo "$ac_try_echo"; } >&5 4360 (eval "$ac_link") 2>&5 4361 ac_status=$? 4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4363 test $ac_status = 0; }; then : 4364 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4365# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4366# work properly (i.e., refer to `conftest.exe'), while it won't with 4367# `rm'. 4368for ac_file in conftest.exe conftest conftest.*; do 4369 test -f "$ac_file" || continue 4370 case $ac_file in 4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4373 break;; 4374 * ) break;; 4375 esac 4376done 4377else 4378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4380as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4381See \`config.log' for more details" "$LINENO" 5; } 4382fi 4383rm -f conftest conftest$ac_cv_exeext 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4385$as_echo "$ac_cv_exeext" >&6; } 4386 4387rm -f conftest.$ac_ext 4388EXEEXT=$ac_cv_exeext 4389ac_exeext=$EXEEXT 4390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392#include <stdio.h> 4393int 4394main () 4395{ 4396FILE *f = fopen ("conftest.out", "w"); 4397 return ferror (f) || fclose (f) != 0; 4398 4399 ; 4400 return 0; 4401} 4402_ACEOF 4403ac_clean_files="$ac_clean_files conftest.out" 4404# Check that the compiler produces executables we can run. If not, either 4405# the compiler is broken, or we cross compile. 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4407$as_echo_n "checking whether we are cross compiling... " >&6; } 4408if test "$cross_compiling" != yes; then 4409 { { ac_try="$ac_link" 4410case "(($ac_try" in 4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4412 *) ac_try_echo=$ac_try;; 4413esac 4414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4415$as_echo "$ac_try_echo"; } >&5 4416 (eval "$ac_link") 2>&5 4417 ac_status=$? 4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4419 test $ac_status = 0; } 4420 if { ac_try='./conftest$ac_cv_exeext' 4421 { { case "(($ac_try" in 4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4423 *) ac_try_echo=$ac_try;; 4424esac 4425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4426$as_echo "$ac_try_echo"; } >&5 4427 (eval "$ac_try") 2>&5 4428 ac_status=$? 4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4430 test $ac_status = 0; }; }; then 4431 cross_compiling=no 4432 else 4433 if test "$cross_compiling" = maybe; then 4434 cross_compiling=yes 4435 else 4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4438as_fn_error $? "cannot run C compiled programs. 4439If you meant to cross compile, use \`--host'. 4440See \`config.log' for more details" "$LINENO" 5; } 4441 fi 4442 fi 4443fi 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4445$as_echo "$cross_compiling" >&6; } 4446 4447rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4448ac_clean_files=$ac_clean_files_save 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4450$as_echo_n "checking for suffix of object files... " >&6; } 4451if ${ac_cv_objext+:} false; then : 4452 $as_echo_n "(cached) " >&6 4453else 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456 4457int 4458main () 4459{ 4460 4461 ; 4462 return 0; 4463} 4464_ACEOF 4465rm -f conftest.o conftest.obj 4466if { { ac_try="$ac_compile" 4467case "(($ac_try" in 4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4469 *) ac_try_echo=$ac_try;; 4470esac 4471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4472$as_echo "$ac_try_echo"; } >&5 4473 (eval "$ac_compile") 2>&5 4474 ac_status=$? 4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4476 test $ac_status = 0; }; then : 4477 for ac_file in conftest.o conftest.obj conftest.*; do 4478 test -f "$ac_file" || continue; 4479 case $ac_file in 4480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4482 break;; 4483 esac 4484done 4485else 4486 $as_echo "$as_me: failed program was:" >&5 4487sed 's/^/| /' conftest.$ac_ext >&5 4488 4489{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4491as_fn_error $? "cannot compute suffix of object files: cannot compile 4492See \`config.log' for more details" "$LINENO" 5; } 4493fi 4494rm -f conftest.$ac_cv_objext conftest.$ac_ext 4495fi 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4497$as_echo "$ac_cv_objext" >&6; } 4498OBJEXT=$ac_cv_objext 4499ac_objext=$OBJEXT 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4501$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4502if ${ac_cv_c_compiler_gnu+:} false; then : 4503 $as_echo_n "(cached) " >&6 4504else 4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4506/* end confdefs.h. */ 4507 4508int 4509main () 4510{ 4511#ifndef __GNUC__ 4512 choke me 4513#endif 4514 4515 ; 4516 return 0; 4517} 4518_ACEOF 4519if ac_fn_c_try_compile "$LINENO"; then : 4520 ac_compiler_gnu=yes 4521else 4522 ac_compiler_gnu=no 4523fi 4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4525ac_cv_c_compiler_gnu=$ac_compiler_gnu 4526 4527fi 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4529$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4530if test $ac_compiler_gnu = yes; then 4531 GCC=yes 4532else 4533 GCC= 4534fi 4535ac_test_CFLAGS=${CFLAGS+set} 4536ac_save_CFLAGS=$CFLAGS 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4538$as_echo_n "checking whether $CC accepts -g... " >&6; } 4539if ${ac_cv_prog_cc_g+:} false; then : 4540 $as_echo_n "(cached) " >&6 4541else 4542 ac_save_c_werror_flag=$ac_c_werror_flag 4543 ac_c_werror_flag=yes 4544 ac_cv_prog_cc_g=no 4545 CFLAGS="-g" 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548 4549int 4550main () 4551{ 4552 4553 ; 4554 return 0; 4555} 4556_ACEOF 4557if ac_fn_c_try_compile "$LINENO"; then : 4558 ac_cv_prog_cc_g=yes 4559else 4560 CFLAGS="" 4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4562/* end confdefs.h. */ 4563 4564int 4565main () 4566{ 4567 4568 ; 4569 return 0; 4570} 4571_ACEOF 4572if ac_fn_c_try_compile "$LINENO"; then : 4573 4574else 4575 ac_c_werror_flag=$ac_save_c_werror_flag 4576 CFLAGS="-g" 4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4578/* end confdefs.h. */ 4579 4580int 4581main () 4582{ 4583 4584 ; 4585 return 0; 4586} 4587_ACEOF 4588if ac_fn_c_try_compile "$LINENO"; then : 4589 ac_cv_prog_cc_g=yes 4590fi 4591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4592fi 4593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4594fi 4595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4596 ac_c_werror_flag=$ac_save_c_werror_flag 4597fi 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4599$as_echo "$ac_cv_prog_cc_g" >&6; } 4600if test "$ac_test_CFLAGS" = set; then 4601 CFLAGS=$ac_save_CFLAGS 4602elif test $ac_cv_prog_cc_g = yes; then 4603 if test "$GCC" = yes; then 4604 CFLAGS="-g -O2" 4605 else 4606 CFLAGS="-g" 4607 fi 4608else 4609 if test "$GCC" = yes; then 4610 CFLAGS="-O2" 4611 else 4612 CFLAGS= 4613 fi 4614fi 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4616$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4617if ${ac_cv_prog_cc_c89+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 ac_cv_prog_cc_c89=no 4621ac_save_CC=$CC 4622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4623/* end confdefs.h. */ 4624#include <stdarg.h> 4625#include <stdio.h> 4626struct stat; 4627/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4628struct buf { int x; }; 4629FILE * (*rcsopen) (struct buf *, struct stat *, int); 4630static char *e (p, i) 4631 char **p; 4632 int i; 4633{ 4634 return p[i]; 4635} 4636static char *f (char * (*g) (char **, int), char **p, ...) 4637{ 4638 char *s; 4639 va_list v; 4640 va_start (v,p); 4641 s = g (p, va_arg (v,int)); 4642 va_end (v); 4643 return s; 4644} 4645 4646/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4647 function prototypes and stuff, but not '\xHH' hex character constants. 4648 These don't provoke an error unfortunately, instead are silently treated 4649 as 'x'. The following induces an error, until -std is added to get 4650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4651 array size at least. It's necessary to write '\x00'==0 to get something 4652 that's true only with -std. */ 4653int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4654 4655/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4656 inside strings and character constants. */ 4657#define FOO(x) 'x' 4658int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4659 4660int test (int i, double x); 4661struct s1 {int (*f) (int a);}; 4662struct s2 {int (*f) (double a);}; 4663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4664int argc; 4665char **argv; 4666int 4667main () 4668{ 4669return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4670 ; 4671 return 0; 4672} 4673_ACEOF 4674for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4676do 4677 CC="$ac_save_CC $ac_arg" 4678 if ac_fn_c_try_compile "$LINENO"; then : 4679 ac_cv_prog_cc_c89=$ac_arg 4680fi 4681rm -f core conftest.err conftest.$ac_objext 4682 test "x$ac_cv_prog_cc_c89" != "xno" && break 4683done 4684rm -f conftest.$ac_ext 4685CC=$ac_save_CC 4686 4687fi 4688# AC_CACHE_VAL 4689case "x$ac_cv_prog_cc_c89" in 4690 x) 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4692$as_echo "none needed" >&6; } ;; 4693 xno) 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4695$as_echo "unsupported" >&6; } ;; 4696 *) 4697 CC="$CC $ac_cv_prog_cc_c89" 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4699$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4700esac 4701if test "x$ac_cv_prog_cc_c89" != xno; then : 4702 4703fi 4704 4705ac_ext=c 4706ac_cpp='$CPP $CPPFLAGS' 4707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4709ac_compiler_gnu=$ac_cv_c_compiler_gnu 4710 4711ac_ext=cpp 4712ac_cpp='$CXXCPP $CPPFLAGS' 4713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4716if test -z "$CXX"; then 4717 if test -n "$CCC"; then 4718 CXX=$CCC 4719 else 4720 if test -n "$ac_tool_prefix"; then 4721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4722 do 4723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4724set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4726$as_echo_n "checking for $ac_word... " >&6; } 4727if ${ac_cv_prog_CXX+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 if test -n "$CXX"; then 4731 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4732else 4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4734for as_dir in $PATH 4735do 4736 IFS=$as_save_IFS 4737 test -z "$as_dir" && as_dir=. 4738 for ac_exec_ext in '' $ac_executable_extensions; do 4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4740 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4742 break 2 4743 fi 4744done 4745 done 4746IFS=$as_save_IFS 4747 4748fi 4749fi 4750CXX=$ac_cv_prog_CXX 4751if test -n "$CXX"; then 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4753$as_echo "$CXX" >&6; } 4754else 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4756$as_echo "no" >&6; } 4757fi 4758 4759 4760 test -n "$CXX" && break 4761 done 4762fi 4763if test -z "$CXX"; then 4764 ac_ct_CXX=$CXX 4765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4766do 4767 # Extract the first word of "$ac_prog", so it can be a program name with args. 4768set dummy $ac_prog; ac_word=$2 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4770$as_echo_n "checking for $ac_word... " >&6; } 4771if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4772 $as_echo_n "(cached) " >&6 4773else 4774 if test -n "$ac_ct_CXX"; then 4775 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4776else 4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4778for as_dir in $PATH 4779do 4780 IFS=$as_save_IFS 4781 test -z "$as_dir" && as_dir=. 4782 for ac_exec_ext in '' $ac_executable_extensions; do 4783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4784 ac_cv_prog_ac_ct_CXX="$ac_prog" 4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4786 break 2 4787 fi 4788done 4789 done 4790IFS=$as_save_IFS 4791 4792fi 4793fi 4794ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4795if test -n "$ac_ct_CXX"; then 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4797$as_echo "$ac_ct_CXX" >&6; } 4798else 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4800$as_echo "no" >&6; } 4801fi 4802 4803 4804 test -n "$ac_ct_CXX" && break 4805done 4806 4807 if test "x$ac_ct_CXX" = x; then 4808 CXX="g++" 4809 else 4810 case $cross_compiling:$ac_tool_warned in 4811yes:) 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4814ac_tool_warned=yes ;; 4815esac 4816 CXX=$ac_ct_CXX 4817 fi 4818fi 4819 4820 fi 4821fi 4822# Provide some information about the compiler. 4823$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4824set X $ac_compile 4825ac_compiler=$2 4826for ac_option in --version -v -V -qversion; do 4827 { { ac_try="$ac_compiler $ac_option >&5" 4828case "(($ac_try" in 4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4830 *) ac_try_echo=$ac_try;; 4831esac 4832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4833$as_echo "$ac_try_echo"; } >&5 4834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4835 ac_status=$? 4836 if test -s conftest.err; then 4837 sed '10a\ 4838... rest of stderr output deleted ... 4839 10q' conftest.err >conftest.er1 4840 cat conftest.er1 >&5 4841 fi 4842 rm -f conftest.er1 conftest.err 4843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4844 test $ac_status = 0; } 4845done 4846 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4848$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4849if ${ac_cv_cxx_compiler_gnu+:} false; then : 4850 $as_echo_n "(cached) " >&6 4851else 4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4853/* end confdefs.h. */ 4854 4855int 4856main () 4857{ 4858#ifndef __GNUC__ 4859 choke me 4860#endif 4861 4862 ; 4863 return 0; 4864} 4865_ACEOF 4866if ac_fn_cxx_try_compile "$LINENO"; then : 4867 ac_compiler_gnu=yes 4868else 4869 ac_compiler_gnu=no 4870fi 4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4872ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4873 4874fi 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4876$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4877if test $ac_compiler_gnu = yes; then 4878 GXX=yes 4879else 4880 GXX= 4881fi 4882ac_test_CXXFLAGS=${CXXFLAGS+set} 4883ac_save_CXXFLAGS=$CXXFLAGS 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4885$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4886if ${ac_cv_prog_cxx_g+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4890 ac_cxx_werror_flag=yes 4891 ac_cv_prog_cxx_g=no 4892 CXXFLAGS="-g" 4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4894/* end confdefs.h. */ 4895 4896int 4897main () 4898{ 4899 4900 ; 4901 return 0; 4902} 4903_ACEOF 4904if ac_fn_cxx_try_compile "$LINENO"; then : 4905 ac_cv_prog_cxx_g=yes 4906else 4907 CXXFLAGS="" 4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4909/* end confdefs.h. */ 4910 4911int 4912main () 4913{ 4914 4915 ; 4916 return 0; 4917} 4918_ACEOF 4919if ac_fn_cxx_try_compile "$LINENO"; then : 4920 4921else 4922 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4923 CXXFLAGS="-g" 4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925/* end confdefs.h. */ 4926 4927int 4928main () 4929{ 4930 4931 ; 4932 return 0; 4933} 4934_ACEOF 4935if ac_fn_cxx_try_compile "$LINENO"; then : 4936 ac_cv_prog_cxx_g=yes 4937fi 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939fi 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4943 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4944fi 4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4946$as_echo "$ac_cv_prog_cxx_g" >&6; } 4947if test "$ac_test_CXXFLAGS" = set; then 4948 CXXFLAGS=$ac_save_CXXFLAGS 4949elif test $ac_cv_prog_cxx_g = yes; then 4950 if test "$GXX" = yes; then 4951 CXXFLAGS="-g -O2" 4952 else 4953 CXXFLAGS="-g" 4954 fi 4955else 4956 if test "$GXX" = yes; then 4957 CXXFLAGS="-O2" 4958 else 4959 CXXFLAGS= 4960 fi 4961fi 4962ac_ext=c 4963ac_cpp='$CPP $CPPFLAGS' 4964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4966ac_compiler_gnu=$ac_cv_c_compiler_gnu 4967 4968 4969 4970 4971if test -n "$ac_tool_prefix"; then 4972 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 4973set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4975$as_echo_n "checking for $ac_word... " >&6; } 4976if ${ac_cv_prog_GNATBIND+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 if test -n "$GNATBIND"; then 4980 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 4981else 4982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4983for as_dir in $PATH 4984do 4985 IFS=$as_save_IFS 4986 test -z "$as_dir" && as_dir=. 4987 for ac_exec_ext in '' $ac_executable_extensions; do 4988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4989 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4991 break 2 4992 fi 4993done 4994 done 4995IFS=$as_save_IFS 4996 4997fi 4998fi 4999GNATBIND=$ac_cv_prog_GNATBIND 5000if test -n "$GNATBIND"; then 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 5002$as_echo "$GNATBIND" >&6; } 5003else 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5005$as_echo "no" >&6; } 5006fi 5007 5008 5009fi 5010if test -z "$ac_cv_prog_GNATBIND"; then 5011 ac_ct_GNATBIND=$GNATBIND 5012 # Extract the first word of "gnatbind", so it can be a program name with args. 5013set dummy gnatbind; ac_word=$2 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5015$as_echo_n "checking for $ac_word... " >&6; } 5016if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018else 5019 if test -n "$ac_ct_GNATBIND"; then 5020 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. 5021else 5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5023for as_dir in $PATH 5024do 5025 IFS=$as_save_IFS 5026 test -z "$as_dir" && as_dir=. 5027 for ac_exec_ext in '' $ac_executable_extensions; do 5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5029 ac_cv_prog_ac_ct_GNATBIND="gnatbind" 5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5031 break 2 5032 fi 5033done 5034 done 5035IFS=$as_save_IFS 5036 5037fi 5038fi 5039ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND 5040if test -n "$ac_ct_GNATBIND"; then 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 5042$as_echo "$ac_ct_GNATBIND" >&6; } 5043else 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5045$as_echo "no" >&6; } 5046fi 5047 5048 if test "x$ac_ct_GNATBIND" = x; then 5049 GNATBIND="no" 5050 else 5051 case $cross_compiling:$ac_tool_warned in 5052yes:) 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5055ac_tool_warned=yes ;; 5056esac 5057 GNATBIND=$ac_ct_GNATBIND 5058 fi 5059else 5060 GNATBIND="$ac_cv_prog_GNATBIND" 5061fi 5062 5063if test -n "$ac_tool_prefix"; then 5064 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. 5065set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5067$as_echo_n "checking for $ac_word... " >&6; } 5068if ${ac_cv_prog_GNATMAKE+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070else 5071 if test -n "$GNATMAKE"; then 5072 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. 5073else 5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5075for as_dir in $PATH 5076do 5077 IFS=$as_save_IFS 5078 test -z "$as_dir" && as_dir=. 5079 for ac_exec_ext in '' $ac_executable_extensions; do 5080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5081 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" 5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5083 break 2 5084 fi 5085done 5086 done 5087IFS=$as_save_IFS 5088 5089fi 5090fi 5091GNATMAKE=$ac_cv_prog_GNATMAKE 5092if test -n "$GNATMAKE"; then 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 5094$as_echo "$GNATMAKE" >&6; } 5095else 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5097$as_echo "no" >&6; } 5098fi 5099 5100 5101fi 5102if test -z "$ac_cv_prog_GNATMAKE"; then 5103 ac_ct_GNATMAKE=$GNATMAKE 5104 # Extract the first word of "gnatmake", so it can be a program name with args. 5105set dummy gnatmake; ac_word=$2 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5107$as_echo_n "checking for $ac_word... " >&6; } 5108if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 if test -n "$ac_ct_GNATMAKE"; then 5112 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. 5113else 5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5115for as_dir in $PATH 5116do 5117 IFS=$as_save_IFS 5118 test -z "$as_dir" && as_dir=. 5119 for ac_exec_ext in '' $ac_executable_extensions; do 5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5121 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" 5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5123 break 2 5124 fi 5125done 5126 done 5127IFS=$as_save_IFS 5128 5129fi 5130fi 5131ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE 5132if test -n "$ac_ct_GNATMAKE"; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 5134$as_echo "$ac_ct_GNATMAKE" >&6; } 5135else 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5137$as_echo "no" >&6; } 5138fi 5139 5140 if test "x$ac_ct_GNATMAKE" = x; then 5141 GNATMAKE="no" 5142 else 5143 case $cross_compiling:$ac_tool_warned in 5144yes:) 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5147ac_tool_warned=yes ;; 5148esac 5149 GNATMAKE=$ac_ct_GNATMAKE 5150 fi 5151else 5152 GNATMAKE="$ac_cv_prog_GNATMAKE" 5153fi 5154 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 5156$as_echo_n "checking whether compiler driver understands Ada... " >&6; } 5157if ${acx_cv_cc_gcc_supports_ada+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 cat >conftest.adb <<EOF 5161procedure conftest is begin null; end conftest; 5162EOF 5163acx_cv_cc_gcc_supports_ada=no 5164# There is a bug in old released versions of GCC which causes the 5165# driver to exit successfully when the appropriate language module 5166# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 5167# Therefore we must check for the error message as well as an 5168# unsuccessful exit. 5169# Other compilers, like HP Tru64 UNIX cc, exit successfully when 5170# given a .adb file, but produce no object file. So we must check 5171# if an object file was really produced to guard against this. 5172errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure` 5173if test x"$errors" = x && test -f conftest.$ac_objext; then 5174 acx_cv_cc_gcc_supports_ada=yes 5175fi 5176rm -f conftest.* 5177fi 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 5179$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } 5180 5181if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 5182 have_gnat=yes 5183else 5184 have_gnat=no 5185fi 5186 5187 5188# Do configure tests with the C++ compiler, since that's what we build with. 5189ac_ext=cpp 5190ac_cpp='$CXXCPP $CPPFLAGS' 5191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5194 5195 5196# Remove the -O2: for historical reasons, unless bootstrapping we prefer 5197# optimizations to be activated explicitly by the toplevel. 5198case "$CC" in 5199 */prev-gcc/xgcc*) ;; 5200 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` 5201 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;; 5202esac 5203 5204 5205 5206# Determine PICFLAG for target gnatlib. 5207 5208 5209 5210 5211case "${target}" in 5212 # PIC is the default on some targets or must not be used. 5213 *-*-darwin*) 5214 # For darwin, common symbols are not allowed in MH_DYLIB files 5215 case "${CFLAGS}" in 5216 # If we are using a compiler supporting mdynamic-no-pic 5217 # and the option has been tested as safe to add, then cancel 5218 # it here, since the code generated is incompatible with shared 5219 # libs. 5220 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;; 5221 *) PICFLAG_FOR_TARGET=-fno-common ;; 5222 esac 5223 ;; 5224 alpha*-dec-osf5*) 5225 # PIC is the default. 5226 ;; 5227 hppa*64*-*-hpux*) 5228 # PIC is the default for 64-bit PA HP-UX. 5229 ;; 5230 i[34567]86-*-cygwin* | x86_64-*-cygwin*) 5231 ;; 5232 i[34567]86-*-mingw* | x86_64-*-mingw*) 5233 ;; 5234 i[34567]86-*-interix[3-9]*) 5235 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5236 # Instead, we relocate shared libraries at runtime. 5237 ;; 5238 i[34567]86-*-nto-qnx*) 5239 # QNX uses GNU C++, but need to define -shared option too, otherwise 5240 # it will coredump. 5241 PICFLAG_FOR_TARGET='-fPIC -shared' 5242 ;; 5243 i[34567]86-pc-msdosdjgpp*) 5244 # DJGPP does not support shared libraries at all. 5245 ;; 5246 ia64*-*-hpux*) 5247 # On IA64 HP-UX, PIC is the default but the pic flag 5248 # sets the default TLS model and affects inlining. 5249 PICFLAG_FOR_TARGET=-fPIC 5250 ;; 5251 mips-sgi-irix6*) 5252 # PIC is the default. 5253 ;; 5254 rs6000-ibm-aix* | powerpc-ibm-aix*) 5255 # All AIX code is PIC. 5256 ;; 5257 5258 # Some targets support both -fPIC and -fpic, but prefer the latter. 5259 # FIXME: Why? 5260 i[34567]86-*-* | x86_64-*-*) 5261 PICFLAG_FOR_TARGET=-fpic 5262 ;; 5263 # FIXME: Override -fPIC default in libgcc only? 5264 sh-*-linux* | sh[2346lbe]*-*-linux*) 5265 PICFLAG_FOR_TARGET=-fpic 5266 ;; 5267 # FIXME: Simplify to sh*-*-netbsd*? 5268 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ 5269 sh64-*-netbsd* | sh64l*-*-netbsd*) 5270 PICFLAG_FOR_TARGET=-fpic 5271 ;; 5272 # Default to -fPIC unless specified otherwise. 5273 *) 5274 PICFLAG_FOR_TARGET=-fPIC 5275 ;; 5276esac 5277 5278# If the user explicitly uses -fpic/-fPIC, keep that. 5279case "${CFLAGS_FOR_TARGET}" in 5280 *-fpic*) 5281 PICFLAG_FOR_TARGET=-fpic 5282 ;; 5283 *-fPIC*) 5284 PICFLAG_FOR_TARGET=-fPIC 5285 ;; 5286esac 5287 5288 5289 5290# ------------------------- 5291# Check C compiler features 5292# ------------------------- 5293 5294 5295ac_ext=cpp 5296ac_cpp='$CXXCPP $CPPFLAGS' 5297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5301$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5302if test -z "$CXXCPP"; then 5303 if ${ac_cv_prog_CXXCPP+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 # Double quotes because CXXCPP needs to be expanded 5307 for CXXCPP in "$CXX -E" "/lib/cpp" 5308 do 5309 ac_preproc_ok=false 5310for ac_cxx_preproc_warn_flag in '' yes 5311do 5312 # Use a header file that comes with gcc, so configuring glibc 5313 # with a fresh cross-compiler works. 5314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5315 # <limits.h> exists even on freestanding compilers. 5316 # On the NeXT, cc -E runs the code through the compiler's parser, 5317 # not just through cpp. "Syntax error" is here to catch this case. 5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5319/* end confdefs.h. */ 5320#ifdef __STDC__ 5321# include <limits.h> 5322#else 5323# include <assert.h> 5324#endif 5325 Syntax error 5326_ACEOF 5327if ac_fn_cxx_try_cpp "$LINENO"; then : 5328 5329else 5330 # Broken: fails on valid input. 5331continue 5332fi 5333rm -f conftest.err conftest.i conftest.$ac_ext 5334 5335 # OK, works on sane cases. Now check whether nonexistent headers 5336 # can be detected and how. 5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5338/* end confdefs.h. */ 5339#include <ac_nonexistent.h> 5340_ACEOF 5341if ac_fn_cxx_try_cpp "$LINENO"; then : 5342 # Broken: success on invalid input. 5343continue 5344else 5345 # Passes both tests. 5346ac_preproc_ok=: 5347break 5348fi 5349rm -f conftest.err conftest.i conftest.$ac_ext 5350 5351done 5352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5353rm -f conftest.i conftest.err conftest.$ac_ext 5354if $ac_preproc_ok; then : 5355 break 5356fi 5357 5358 done 5359 ac_cv_prog_CXXCPP=$CXXCPP 5360 5361fi 5362 CXXCPP=$ac_cv_prog_CXXCPP 5363else 5364 ac_cv_prog_CXXCPP=$CXXCPP 5365fi 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5367$as_echo "$CXXCPP" >&6; } 5368ac_preproc_ok=false 5369for ac_cxx_preproc_warn_flag in '' yes 5370do 5371 # Use a header file that comes with gcc, so configuring glibc 5372 # with a fresh cross-compiler works. 5373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5374 # <limits.h> exists even on freestanding compilers. 5375 # On the NeXT, cc -E runs the code through the compiler's parser, 5376 # not just through cpp. "Syntax error" is here to catch this case. 5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5378/* end confdefs.h. */ 5379#ifdef __STDC__ 5380# include <limits.h> 5381#else 5382# include <assert.h> 5383#endif 5384 Syntax error 5385_ACEOF 5386if ac_fn_cxx_try_cpp "$LINENO"; then : 5387 5388else 5389 # Broken: fails on valid input. 5390continue 5391fi 5392rm -f conftest.err conftest.i conftest.$ac_ext 5393 5394 # OK, works on sane cases. Now check whether nonexistent headers 5395 # can be detected and how. 5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5397/* end confdefs.h. */ 5398#include <ac_nonexistent.h> 5399_ACEOF 5400if ac_fn_cxx_try_cpp "$LINENO"; then : 5401 # Broken: success on invalid input. 5402continue 5403else 5404 # Passes both tests. 5405ac_preproc_ok=: 5406break 5407fi 5408rm -f conftest.err conftest.i conftest.$ac_ext 5409 5410done 5411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5412rm -f conftest.i conftest.err conftest.$ac_ext 5413if $ac_preproc_ok; then : 5414 5415else 5416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5418as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5419See \`config.log' for more details" "$LINENO" 5; } 5420fi 5421 5422ac_ext=cpp 5423ac_cpp='$CXXCPP $CPPFLAGS' 5424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5427 5428 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5430$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5431if ${ac_cv_path_GREP+:} false; then : 5432 $as_echo_n "(cached) " >&6 5433else 5434 if test -z "$GREP"; then 5435 ac_path_GREP_found=false 5436 # Loop through the user's path and test for each of PROGNAME-LIST 5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5438for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5439do 5440 IFS=$as_save_IFS 5441 test -z "$as_dir" && as_dir=. 5442 for ac_prog in grep ggrep; do 5443 for ac_exec_ext in '' $ac_executable_extensions; do 5444 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5445 as_fn_executable_p "$ac_path_GREP" || continue 5446# Check for GNU ac_path_GREP and select it if it is found. 5447 # Check for GNU $ac_path_GREP 5448case `"$ac_path_GREP" --version 2>&1` in 5449*GNU*) 5450 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5451*) 5452 ac_count=0 5453 $as_echo_n 0123456789 >"conftest.in" 5454 while : 5455 do 5456 cat "conftest.in" "conftest.in" >"conftest.tmp" 5457 mv "conftest.tmp" "conftest.in" 5458 cp "conftest.in" "conftest.nl" 5459 $as_echo 'GREP' >> "conftest.nl" 5460 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5462 as_fn_arith $ac_count + 1 && ac_count=$as_val 5463 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5464 # Best one so far, save it but keep looking for a better one 5465 ac_cv_path_GREP="$ac_path_GREP" 5466 ac_path_GREP_max=$ac_count 5467 fi 5468 # 10*(2^10) chars as input seems more than enough 5469 test $ac_count -gt 10 && break 5470 done 5471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5472esac 5473 5474 $ac_path_GREP_found && break 3 5475 done 5476 done 5477 done 5478IFS=$as_save_IFS 5479 if test -z "$ac_cv_path_GREP"; then 5480 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5481 fi 5482else 5483 ac_cv_path_GREP=$GREP 5484fi 5485 5486fi 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5488$as_echo "$ac_cv_path_GREP" >&6; } 5489 GREP="$ac_cv_path_GREP" 5490 5491 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5493$as_echo_n "checking for egrep... " >&6; } 5494if ${ac_cv_path_EGREP+:} false; then : 5495 $as_echo_n "(cached) " >&6 5496else 5497 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5498 then ac_cv_path_EGREP="$GREP -E" 5499 else 5500 if test -z "$EGREP"; then 5501 ac_path_EGREP_found=false 5502 # Loop through the user's path and test for each of PROGNAME-LIST 5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5504for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5505do 5506 IFS=$as_save_IFS 5507 test -z "$as_dir" && as_dir=. 5508 for ac_prog in egrep; do 5509 for ac_exec_ext in '' $ac_executable_extensions; do 5510 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5511 as_fn_executable_p "$ac_path_EGREP" || continue 5512# Check for GNU ac_path_EGREP and select it if it is found. 5513 # Check for GNU $ac_path_EGREP 5514case `"$ac_path_EGREP" --version 2>&1` in 5515*GNU*) 5516 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5517*) 5518 ac_count=0 5519 $as_echo_n 0123456789 >"conftest.in" 5520 while : 5521 do 5522 cat "conftest.in" "conftest.in" >"conftest.tmp" 5523 mv "conftest.tmp" "conftest.in" 5524 cp "conftest.in" "conftest.nl" 5525 $as_echo 'EGREP' >> "conftest.nl" 5526 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5528 as_fn_arith $ac_count + 1 && ac_count=$as_val 5529 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5530 # Best one so far, save it but keep looking for a better one 5531 ac_cv_path_EGREP="$ac_path_EGREP" 5532 ac_path_EGREP_max=$ac_count 5533 fi 5534 # 10*(2^10) chars as input seems more than enough 5535 test $ac_count -gt 10 && break 5536 done 5537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5538esac 5539 5540 $ac_path_EGREP_found && break 3 5541 done 5542 done 5543 done 5544IFS=$as_save_IFS 5545 if test -z "$ac_cv_path_EGREP"; then 5546 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5547 fi 5548else 5549 ac_cv_path_EGREP=$EGREP 5550fi 5551 5552 fi 5553fi 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5555$as_echo "$ac_cv_path_EGREP" >&6; } 5556 EGREP="$ac_cv_path_EGREP" 5557 5558 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5560$as_echo_n "checking for ANSI C header files... " >&6; } 5561if ${ac_cv_header_stdc+:} false; then : 5562 $as_echo_n "(cached) " >&6 5563else 5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5565/* end confdefs.h. */ 5566#include <stdlib.h> 5567#include <stdarg.h> 5568#include <string.h> 5569#include <float.h> 5570 5571int 5572main () 5573{ 5574 5575 ; 5576 return 0; 5577} 5578_ACEOF 5579if ac_fn_cxx_try_compile "$LINENO"; then : 5580 ac_cv_header_stdc=yes 5581else 5582 ac_cv_header_stdc=no 5583fi 5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5585 5586if test $ac_cv_header_stdc = yes; then 5587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5589/* end confdefs.h. */ 5590#include <string.h> 5591 5592_ACEOF 5593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5594 $EGREP "memchr" >/dev/null 2>&1; then : 5595 5596else 5597 ac_cv_header_stdc=no 5598fi 5599rm -f conftest* 5600 5601fi 5602 5603if test $ac_cv_header_stdc = yes; then 5604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607#include <stdlib.h> 5608 5609_ACEOF 5610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5611 $EGREP "free" >/dev/null 2>&1; then : 5612 5613else 5614 ac_cv_header_stdc=no 5615fi 5616rm -f conftest* 5617 5618fi 5619 5620if test $ac_cv_header_stdc = yes; then 5621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5622 if test "$cross_compiling" = yes; then : 5623 : 5624else 5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5626/* end confdefs.h. */ 5627#include <ctype.h> 5628#include <stdlib.h> 5629#if ((' ' & 0x0FF) == 0x020) 5630# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5631# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5632#else 5633# define ISLOWER(c) \ 5634 (('a' <= (c) && (c) <= 'i') \ 5635 || ('j' <= (c) && (c) <= 'r') \ 5636 || ('s' <= (c) && (c) <= 'z')) 5637# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5638#endif 5639 5640#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5641int 5642main () 5643{ 5644 int i; 5645 for (i = 0; i < 256; i++) 5646 if (XOR (islower (i), ISLOWER (i)) 5647 || toupper (i) != TOUPPER (i)) 5648 return 2; 5649 return 0; 5650} 5651_ACEOF 5652if ac_fn_cxx_try_run "$LINENO"; then : 5653 5654else 5655 ac_cv_header_stdc=no 5656fi 5657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5658 conftest.$ac_objext conftest.beam conftest.$ac_ext 5659fi 5660 5661fi 5662fi 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5664$as_echo "$ac_cv_header_stdc" >&6; } 5665if test $ac_cv_header_stdc = yes; then 5666 5667$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5668 5669fi 5670 5671# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5672for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5673 inttypes.h stdint.h unistd.h 5674do : 5675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5676ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5677" 5678if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5679 cat >>confdefs.h <<_ACEOF 5680#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5681_ACEOF 5682 5683fi 5684 5685done 5686 5687 5688 5689 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5690if test "x$ac_cv_header_minix_config_h" = xyes; then : 5691 MINIX=yes 5692else 5693 MINIX= 5694fi 5695 5696 5697 if test "$MINIX" = yes; then 5698 5699$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5700 5701 5702$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5703 5704 5705$as_echo "#define _MINIX 1" >>confdefs.h 5706 5707 fi 5708 5709 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5711$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5712if ${ac_cv_safe_to_define___extensions__+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5716/* end confdefs.h. */ 5717 5718# define __EXTENSIONS__ 1 5719 $ac_includes_default 5720int 5721main () 5722{ 5723 5724 ; 5725 return 0; 5726} 5727_ACEOF 5728if ac_fn_cxx_try_compile "$LINENO"; then : 5729 ac_cv_safe_to_define___extensions__=yes 5730else 5731 ac_cv_safe_to_define___extensions__=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5734fi 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5736$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5737 test $ac_cv_safe_to_define___extensions__ = yes && 5738 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5739 5740 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5741 5742 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5743 5744 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5745 5746 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5747 5748 5749ac_ext=c 5750ac_cpp='$CPP $CPPFLAGS' 5751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5753ac_compiler_gnu=$ac_cv_c_compiler_gnu 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5755$as_echo_n "checking how to run the C preprocessor... " >&6; } 5756# On Suns, sometimes $CPP names a directory. 5757if test -n "$CPP" && test -d "$CPP"; then 5758 CPP= 5759fi 5760if test -z "$CPP"; then 5761 if ${ac_cv_prog_CPP+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 # Double quotes because CPP needs to be expanded 5765 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5766 do 5767 ac_preproc_ok=false 5768for ac_c_preproc_warn_flag in '' yes 5769do 5770 # Use a header file that comes with gcc, so configuring glibc 5771 # with a fresh cross-compiler works. 5772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5773 # <limits.h> exists even on freestanding compilers. 5774 # On the NeXT, cc -E runs the code through the compiler's parser, 5775 # not just through cpp. "Syntax error" is here to catch this case. 5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778#ifdef __STDC__ 5779# include <limits.h> 5780#else 5781# include <assert.h> 5782#endif 5783 Syntax error 5784_ACEOF 5785if ac_fn_c_try_cpp "$LINENO"; then : 5786 5787else 5788 # Broken: fails on valid input. 5789continue 5790fi 5791rm -f conftest.err conftest.i conftest.$ac_ext 5792 5793 # OK, works on sane cases. Now check whether nonexistent headers 5794 # can be detected and how. 5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796/* end confdefs.h. */ 5797#include <ac_nonexistent.h> 5798_ACEOF 5799if ac_fn_c_try_cpp "$LINENO"; then : 5800 # Broken: success on invalid input. 5801continue 5802else 5803 # Passes both tests. 5804ac_preproc_ok=: 5805break 5806fi 5807rm -f conftest.err conftest.i conftest.$ac_ext 5808 5809done 5810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5811rm -f conftest.i conftest.err conftest.$ac_ext 5812if $ac_preproc_ok; then : 5813 break 5814fi 5815 5816 done 5817 ac_cv_prog_CPP=$CPP 5818 5819fi 5820 CPP=$ac_cv_prog_CPP 5821else 5822 ac_cv_prog_CPP=$CPP 5823fi 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5825$as_echo "$CPP" >&6; } 5826ac_preproc_ok=false 5827for ac_c_preproc_warn_flag in '' yes 5828do 5829 # Use a header file that comes with gcc, so configuring glibc 5830 # with a fresh cross-compiler works. 5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5832 # <limits.h> exists even on freestanding compilers. 5833 # On the NeXT, cc -E runs the code through the compiler's parser, 5834 # not just through cpp. "Syntax error" is here to catch this case. 5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836/* end confdefs.h. */ 5837#ifdef __STDC__ 5838# include <limits.h> 5839#else 5840# include <assert.h> 5841#endif 5842 Syntax error 5843_ACEOF 5844if ac_fn_c_try_cpp "$LINENO"; then : 5845 5846else 5847 # Broken: fails on valid input. 5848continue 5849fi 5850rm -f conftest.err conftest.i conftest.$ac_ext 5851 5852 # OK, works on sane cases. Now check whether nonexistent headers 5853 # can be detected and how. 5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5855/* end confdefs.h. */ 5856#include <ac_nonexistent.h> 5857_ACEOF 5858if ac_fn_c_try_cpp "$LINENO"; then : 5859 # Broken: success on invalid input. 5860continue 5861else 5862 # Passes both tests. 5863ac_preproc_ok=: 5864break 5865fi 5866rm -f conftest.err conftest.i conftest.$ac_ext 5867 5868done 5869# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5870rm -f conftest.i conftest.err conftest.$ac_ext 5871if $ac_preproc_ok; then : 5872 5873else 5874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5876as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5877See \`config.log' for more details" "$LINENO" 5; } 5878fi 5879 5880ac_ext=cpp 5881ac_cpp='$CXXCPP $CPPFLAGS' 5882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5885 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5887$as_echo_n "checking for inline... " >&6; } 5888if ${ac_cv_c_inline+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 ac_cv_c_inline=no 5892for ac_kw in inline __inline__ __inline; do 5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5894/* end confdefs.h. */ 5895#ifndef __cplusplus 5896typedef int foo_t; 5897static $ac_kw foo_t static_foo () {return 0; } 5898$ac_kw foo_t foo () {return 0; } 5899#endif 5900 5901_ACEOF 5902if ac_fn_cxx_try_compile "$LINENO"; then : 5903 ac_cv_c_inline=$ac_kw 5904fi 5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5906 test "$ac_cv_c_inline" != no && break 5907done 5908 5909fi 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5911$as_echo "$ac_cv_c_inline" >&6; } 5912 5913case $ac_cv_c_inline in 5914 inline | yes) ;; 5915 *) 5916 case $ac_cv_c_inline in 5917 no) ac_val=;; 5918 *) ac_val=$ac_cv_c_inline;; 5919 esac 5920 cat >>confdefs.h <<_ACEOF 5921#ifndef __cplusplus 5922#define inline $ac_val 5923#endif 5924_ACEOF 5925 ;; 5926esac 5927 5928 5929# Check whether --enable-largefile was given. 5930if test "${enable_largefile+set}" = set; then : 5931 enableval=$enable_largefile; 5932fi 5933 5934if test "$enable_largefile" != no; then 5935 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5937$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5938if ${ac_cv_sys_largefile_CC+:} false; then : 5939 $as_echo_n "(cached) " >&6 5940else 5941 ac_cv_sys_largefile_CC=no 5942 if test "$GCC" != yes; then 5943 ac_save_CC=$CC 5944 while :; do 5945 # IRIX 6.2 and later do not support large files by default, 5946 # so use the C compiler's -n32 option if that helps. 5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5948/* end confdefs.h. */ 5949#include <sys/types.h> 5950 /* Check that off_t can represent 2**63 - 1 correctly. 5951 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5952 since some C++ compilers masquerading as C compilers 5953 incorrectly reject 9223372036854775807. */ 5954#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5956 && LARGE_OFF_T % 2147483647 == 1) 5957 ? 1 : -1]; 5958int 5959main () 5960{ 5961 5962 ; 5963 return 0; 5964} 5965_ACEOF 5966 if ac_fn_cxx_try_compile "$LINENO"; then : 5967 break 5968fi 5969rm -f core conftest.err conftest.$ac_objext 5970 CC="$CC -n32" 5971 if ac_fn_cxx_try_compile "$LINENO"; then : 5972 ac_cv_sys_largefile_CC=' -n32'; break 5973fi 5974rm -f core conftest.err conftest.$ac_objext 5975 break 5976 done 5977 CC=$ac_save_CC 5978 rm -f conftest.$ac_ext 5979 fi 5980fi 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5982$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5983 if test "$ac_cv_sys_largefile_CC" != no; then 5984 CC=$CC$ac_cv_sys_largefile_CC 5985 fi 5986 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5988$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5989if ${ac_cv_sys_file_offset_bits+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 while :; do 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995#include <sys/types.h> 5996 /* Check that off_t can represent 2**63 - 1 correctly. 5997 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5998 since some C++ compilers masquerading as C compilers 5999 incorrectly reject 9223372036854775807. */ 6000#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6002 && LARGE_OFF_T % 2147483647 == 1) 6003 ? 1 : -1]; 6004int 6005main () 6006{ 6007 6008 ; 6009 return 0; 6010} 6011_ACEOF 6012if ac_fn_cxx_try_compile "$LINENO"; then : 6013 ac_cv_sys_file_offset_bits=no; break 6014fi 6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017/* end confdefs.h. */ 6018#define _FILE_OFFSET_BITS 64 6019#include <sys/types.h> 6020 /* Check that off_t can represent 2**63 - 1 correctly. 6021 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6022 since some C++ compilers masquerading as C compilers 6023 incorrectly reject 9223372036854775807. */ 6024#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6026 && LARGE_OFF_T % 2147483647 == 1) 6027 ? 1 : -1]; 6028int 6029main () 6030{ 6031 6032 ; 6033 return 0; 6034} 6035_ACEOF 6036if ac_fn_cxx_try_compile "$LINENO"; then : 6037 ac_cv_sys_file_offset_bits=64; break 6038fi 6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6040 ac_cv_sys_file_offset_bits=unknown 6041 break 6042done 6043fi 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6045$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6046case $ac_cv_sys_file_offset_bits in #( 6047 no | unknown) ;; 6048 *) 6049cat >>confdefs.h <<_ACEOF 6050#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6051_ACEOF 6052;; 6053esac 6054rm -rf conftest* 6055 if test $ac_cv_sys_file_offset_bits = unknown; then 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6057$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6058if ${ac_cv_sys_large_files+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060else 6061 while :; do 6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6063/* end confdefs.h. */ 6064#include <sys/types.h> 6065 /* Check that off_t can represent 2**63 - 1 correctly. 6066 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6067 since some C++ compilers masquerading as C compilers 6068 incorrectly reject 9223372036854775807. */ 6069#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6071 && LARGE_OFF_T % 2147483647 == 1) 6072 ? 1 : -1]; 6073int 6074main () 6075{ 6076 6077 ; 6078 return 0; 6079} 6080_ACEOF 6081if ac_fn_cxx_try_compile "$LINENO"; then : 6082 ac_cv_sys_large_files=no; break 6083fi 6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086/* end confdefs.h. */ 6087#define _LARGE_FILES 1 6088#include <sys/types.h> 6089 /* Check that off_t can represent 2**63 - 1 correctly. 6090 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6091 since some C++ compilers masquerading as C compilers 6092 incorrectly reject 9223372036854775807. */ 6093#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6095 && LARGE_OFF_T % 2147483647 == 1) 6096 ? 1 : -1]; 6097int 6098main () 6099{ 6100 6101 ; 6102 return 0; 6103} 6104_ACEOF 6105if ac_fn_cxx_try_compile "$LINENO"; then : 6106 ac_cv_sys_large_files=1; break 6107fi 6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6109 ac_cv_sys_large_files=unknown 6110 break 6111done 6112fi 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6114$as_echo "$ac_cv_sys_large_files" >&6; } 6115case $ac_cv_sys_large_files in #( 6116 no | unknown) ;; 6117 *) 6118cat >>confdefs.h <<_ACEOF 6119#define _LARGE_FILES $ac_cv_sys_large_files 6120_ACEOF 6121;; 6122esac 6123rm -rf conftest* 6124 fi 6125 6126 6127fi 6128 6129 6130# sizeof(char) is 1 by definition. 6131# The cast to long int works around a bug in the HP C Compiler 6132# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6133# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6134# This bug is HP SR number 8606223364. 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6136$as_echo_n "checking size of void *... " >&6; } 6137if ${ac_cv_sizeof_void_p+:} false; then : 6138 $as_echo_n "(cached) " >&6 6139else 6140 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 6141 6142else 6143 if test "$ac_cv_type_void_p" = yes; then 6144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6146as_fn_error 77 "cannot compute sizeof (void *) 6147See \`config.log' for more details" "$LINENO" 5; } 6148 else 6149 ac_cv_sizeof_void_p=0 6150 fi 6151fi 6152 6153fi 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6155$as_echo "$ac_cv_sizeof_void_p" >&6; } 6156 6157 6158 6159cat >>confdefs.h <<_ACEOF 6160#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 6161_ACEOF 6162 6163 6164# The cast to long int works around a bug in the HP C Compiler 6165# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6166# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6167# This bug is HP SR number 8606223364. 6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 6169$as_echo_n "checking size of short... " >&6; } 6170if ${ac_cv_sizeof_short+:} false; then : 6171 $as_echo_n "(cached) " >&6 6172else 6173 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 6174 6175else 6176 if test "$ac_cv_type_short" = yes; then 6177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6179as_fn_error 77 "cannot compute sizeof (short) 6180See \`config.log' for more details" "$LINENO" 5; } 6181 else 6182 ac_cv_sizeof_short=0 6183 fi 6184fi 6185 6186fi 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 6188$as_echo "$ac_cv_sizeof_short" >&6; } 6189 6190 6191 6192cat >>confdefs.h <<_ACEOF 6193#define SIZEOF_SHORT $ac_cv_sizeof_short 6194_ACEOF 6195 6196 6197# The cast to long int works around a bug in the HP C Compiler 6198# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6199# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6200# This bug is HP SR number 8606223364. 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6202$as_echo_n "checking size of int... " >&6; } 6203if ${ac_cv_sizeof_int+:} false; then : 6204 $as_echo_n "(cached) " >&6 6205else 6206 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6207 6208else 6209 if test "$ac_cv_type_int" = yes; then 6210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6212as_fn_error 77 "cannot compute sizeof (int) 6213See \`config.log' for more details" "$LINENO" 5; } 6214 else 6215 ac_cv_sizeof_int=0 6216 fi 6217fi 6218 6219fi 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6221$as_echo "$ac_cv_sizeof_int" >&6; } 6222 6223 6224 6225cat >>confdefs.h <<_ACEOF 6226#define SIZEOF_INT $ac_cv_sizeof_int 6227_ACEOF 6228 6229 6230# The cast to long int works around a bug in the HP C Compiler 6231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6233# This bug is HP SR number 8606223364. 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6235$as_echo_n "checking size of long... " >&6; } 6236if ${ac_cv_sizeof_long+:} false; then : 6237 $as_echo_n "(cached) " >&6 6238else 6239 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6240 6241else 6242 if test "$ac_cv_type_long" = yes; then 6243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6245as_fn_error 77 "cannot compute sizeof (long) 6246See \`config.log' for more details" "$LINENO" 5; } 6247 else 6248 ac_cv_sizeof_long=0 6249 fi 6250fi 6251 6252fi 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6254$as_echo "$ac_cv_sizeof_long" >&6; } 6255 6256 6257 6258cat >>confdefs.h <<_ACEOF 6259#define SIZEOF_LONG $ac_cv_sizeof_long 6260_ACEOF 6261 6262 6263ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 6264if test "x$ac_cv_type_long_long" = xyes; then : 6265 6266cat >>confdefs.h <<_ACEOF 6267#define HAVE_LONG_LONG 1 6268_ACEOF 6269 6270# The cast to long int works around a bug in the HP C Compiler 6271# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6272# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6273# This bug is HP SR number 8606223364. 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 6275$as_echo_n "checking size of long long... " >&6; } 6276if ${ac_cv_sizeof_long_long+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278else 6279 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 6280 6281else 6282 if test "$ac_cv_type_long_long" = yes; then 6283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6285as_fn_error 77 "cannot compute sizeof (long long) 6286See \`config.log' for more details" "$LINENO" 5; } 6287 else 6288 ac_cv_sizeof_long_long=0 6289 fi 6290fi 6291 6292fi 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 6294$as_echo "$ac_cv_sizeof_long_long" >&6; } 6295 6296 6297 6298cat >>confdefs.h <<_ACEOF 6299#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6300_ACEOF 6301 6302 6303fi 6304 6305ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 6306case $ac_cv_c_int8_t in #( 6307 no|yes) ;; #( 6308 *) 6309 6310cat >>confdefs.h <<_ACEOF 6311#define int8_t $ac_cv_c_int8_t 6312_ACEOF 6313;; 6314esac 6315 6316ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 6317case $ac_cv_c_int16_t in #( 6318 no|yes) ;; #( 6319 *) 6320 6321cat >>confdefs.h <<_ACEOF 6322#define int16_t $ac_cv_c_int16_t 6323_ACEOF 6324;; 6325esac 6326 6327ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 6328case $ac_cv_c_int32_t in #( 6329 no|yes) ;; #( 6330 *) 6331 6332cat >>confdefs.h <<_ACEOF 6333#define int32_t $ac_cv_c_int32_t 6334_ACEOF 6335;; 6336esac 6337 6338ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 6339case $ac_cv_c_int64_t in #( 6340 no|yes) ;; #( 6341 *) 6342 6343cat >>confdefs.h <<_ACEOF 6344#define int64_t $ac_cv_c_int64_t 6345_ACEOF 6346;; 6347esac 6348 6349 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 6351$as_echo_n "checking for unsigned long long int... " >&6; } 6352if ${ac_cv_type_unsigned_long_long_int+:} false; then : 6353 $as_echo_n "(cached) " >&6 6354else 6355 ac_cv_type_unsigned_long_long_int=yes 6356 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358/* end confdefs.h. */ 6359 6360 /* For now, do not test the preprocessor; as of 2007 there are too many 6361 implementations with broken preprocessors. Perhaps this can 6362 be revisited in 2012. In the meantime, code should not expect 6363 #if to work with literals wider than 32 bits. */ 6364 /* Test literals. */ 6365 long long int ll = 9223372036854775807ll; 6366 long long int nll = -9223372036854775807LL; 6367 unsigned long long int ull = 18446744073709551615ULL; 6368 /* Test constant expressions. */ 6369 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 6370 ? 1 : -1)]; 6371 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 6372 ? 1 : -1)]; 6373 int i = 63; 6374int 6375main () 6376{ 6377/* Test availability of runtime routines for shift and division. */ 6378 long long int llmax = 9223372036854775807ll; 6379 unsigned long long int ullmax = 18446744073709551615ull; 6380 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 6381 | (llmax / ll) | (llmax % ll) 6382 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 6383 | (ullmax / ull) | (ullmax % ull)); 6384 ; 6385 return 0; 6386} 6387 6388_ACEOF 6389if ac_fn_cxx_try_link "$LINENO"; then : 6390 6391else 6392 ac_cv_type_unsigned_long_long_int=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext \ 6395 conftest$ac_exeext conftest.$ac_ext 6396 fi 6397fi 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 6399$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 6400 if test $ac_cv_type_unsigned_long_long_int = yes; then 6401 6402$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 6403 6404 fi 6405 6406 6407 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 6409$as_echo_n "checking for long long int... " >&6; } 6410if ${ac_cv_type_long_long_int+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 ac_cv_type_long_long_int=yes 6414 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6415 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 6416 if test $ac_cv_type_long_long_int = yes; then 6417 if test "$cross_compiling" = yes; then : 6418 : 6419else 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421/* end confdefs.h. */ 6422#include <limits.h> 6423 #ifndef LLONG_MAX 6424 # define HALF \ 6425 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 6426 # define LLONG_MAX (HALF - 1 + HALF) 6427 #endif 6428int 6429main () 6430{ 6431long long int n = 1; 6432 int i; 6433 for (i = 0; ; i++) 6434 { 6435 long long int m = n << i; 6436 if (m >> i != n) 6437 return 1; 6438 if (LLONG_MAX / 2 < m) 6439 break; 6440 } 6441 return 0; 6442 ; 6443 return 0; 6444} 6445_ACEOF 6446if ac_fn_cxx_try_run "$LINENO"; then : 6447 6448else 6449 ac_cv_type_long_long_int=no 6450fi 6451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6452 conftest.$ac_objext conftest.beam conftest.$ac_ext 6453fi 6454 6455 fi 6456 fi 6457fi 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 6459$as_echo "$ac_cv_type_long_long_int" >&6; } 6460 if test $ac_cv_type_long_long_int = yes; then 6461 6462$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 6463 6464 fi 6465 6466 6467 6468 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 6469if test "x$ac_cv_type_intmax_t" = xyes; then : 6470 6471$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 6472 6473else 6474 test $ac_cv_type_long_long_int = yes \ 6475 && ac_type='long long int' \ 6476 || ac_type='long int' 6477 6478cat >>confdefs.h <<_ACEOF 6479#define intmax_t $ac_type 6480_ACEOF 6481 6482fi 6483 6484 6485 6486 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 6487if test "x$ac_cv_type_intptr_t" = xyes; then : 6488 6489$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 6490 6491else 6492 for ac_type in 'int' 'long int' 'long long int'; do 6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6494/* end confdefs.h. */ 6495$ac_includes_default 6496int 6497main () 6498{ 6499static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6500test_array [0] = 0; 6501return test_array [0]; 6502 6503 ; 6504 return 0; 6505} 6506_ACEOF 6507if ac_fn_cxx_try_compile "$LINENO"; then : 6508 6509cat >>confdefs.h <<_ACEOF 6510#define intptr_t $ac_type 6511_ACEOF 6512 6513 ac_type= 6514fi 6515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6516 test -z "$ac_type" && break 6517 done 6518fi 6519 6520 6521ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 6522case $ac_cv_c_uint8_t in #( 6523 no|yes) ;; #( 6524 *) 6525 6526$as_echo "#define _UINT8_T 1" >>confdefs.h 6527 6528 6529cat >>confdefs.h <<_ACEOF 6530#define uint8_t $ac_cv_c_uint8_t 6531_ACEOF 6532;; 6533 esac 6534 6535ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 6536case $ac_cv_c_uint16_t in #( 6537 no|yes) ;; #( 6538 *) 6539 6540 6541cat >>confdefs.h <<_ACEOF 6542#define uint16_t $ac_cv_c_uint16_t 6543_ACEOF 6544;; 6545 esac 6546 6547ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 6548case $ac_cv_c_uint32_t in #( 6549 no|yes) ;; #( 6550 *) 6551 6552$as_echo "#define _UINT32_T 1" >>confdefs.h 6553 6554 6555cat >>confdefs.h <<_ACEOF 6556#define uint32_t $ac_cv_c_uint32_t 6557_ACEOF 6558;; 6559 esac 6560 6561ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 6562case $ac_cv_c_uint64_t in #( 6563 no|yes) ;; #( 6564 *) 6565 6566$as_echo "#define _UINT64_T 1" >>confdefs.h 6567 6568 6569cat >>confdefs.h <<_ACEOF 6570#define uint64_t $ac_cv_c_uint64_t 6571_ACEOF 6572;; 6573 esac 6574 6575 6576 6577 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 6578if test "x$ac_cv_type_uintmax_t" = xyes; then : 6579 6580$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 6581 6582else 6583 test $ac_cv_type_unsigned_long_long_int = yes \ 6584 && ac_type='unsigned long long int' \ 6585 || ac_type='unsigned long int' 6586 6587cat >>confdefs.h <<_ACEOF 6588#define uintmax_t $ac_type 6589_ACEOF 6590 6591fi 6592 6593 6594 6595 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 6596if test "x$ac_cv_type_uintptr_t" = xyes; then : 6597 6598$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 6599 6600else 6601 for ac_type in 'unsigned int' 'unsigned long int' \ 6602 'unsigned long long int'; do 6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6604/* end confdefs.h. */ 6605$ac_includes_default 6606int 6607main () 6608{ 6609static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6610test_array [0] = 0; 6611return test_array [0]; 6612 6613 ; 6614 return 0; 6615} 6616_ACEOF 6617if ac_fn_cxx_try_compile "$LINENO"; then : 6618 6619cat >>confdefs.h <<_ACEOF 6620#define uintptr_t $ac_type 6621_ACEOF 6622 6623 ac_type= 6624fi 6625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6626 test -z "$ac_type" && break 6627 done 6628fi 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then 6644 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5 6645fi 6646 6647# check what underlying integer type int64_t uses 6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5 6649$as_echo_n "checking for int64_t underlying type... " >&6; } 6650if ${ac_cv_int64_t_type+:} false; then : 6651 $as_echo_n "(cached) " >&6 6652else 6653 6654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656 6657#ifdef HAVE_STDINT_H 6658#include <stdint.h> 6659#endif 6660template <typename T> struct X { }; 6661template <> 6662struct X<long> { typedef long t; }; 6663 6664int 6665main () 6666{ 6667X<int64_t>::t x; 6668 ; 6669 return 0; 6670} 6671_ACEOF 6672if ac_fn_cxx_try_compile "$LINENO"; then : 6673 ac_cv_int64_t_type=long 6674else 6675 ac_cv_int64_t_type="long long" 6676fi 6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6678fi 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5 6680$as_echo "$ac_cv_int64_t_type" >&6; } 6681if test "$ac_cv_int64_t_type" = "long"; then 6682 6683$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h 6684 6685else 6686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6687/* end confdefs.h. */ 6688 6689#ifdef HAVE_STDINT_H 6690#include <stdint.h> 6691#endif 6692template <typename T> struct X { }; 6693template <> 6694struct X<long long> { typedef long long t; }; 6695 6696int 6697main () 6698{ 6699X<int64_t>::t x; 6700 ; 6701 return 0; 6702} 6703_ACEOF 6704if ac_fn_cxx_try_compile "$LINENO"; then : 6705 6706else 6707 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5 6708fi 6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6710fi 6711 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5 6713$as_echo_n "checking for std::swap in <utility>... " >&6; } 6714if ${ac_cv_std_swap_in_utility+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 6718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719/* end confdefs.h. */ 6720 6721#include <utility> 6722 6723int 6724main () 6725{ 6726int a, b; std::swap(a,b); 6727 ; 6728 return 0; 6729} 6730_ACEOF 6731if ac_fn_cxx_try_compile "$LINENO"; then : 6732 ac_cv_std_swap_in_utility=yes 6733else 6734 ac_cv_std_swap_in_utility=no 6735fi 6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6737fi 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5 6739$as_echo "$ac_cv_std_swap_in_utility" >&6; } 6740if test $ac_cv_std_swap_in_utility = yes; then 6741 6742$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h 6743 6744fi 6745 6746# Check whether compiler is affected by placement new aliasing bug (PR 29286). 6747# If the host compiler is affected by the bug, and we build with optimization 6748# enabled (which happens e.g. when cross-compiling), the pool allocator may 6749# get miscompiled. Use -fno-strict-aliasing to work around this problem. 6750# Since there is no reliable feature check for the presence of this bug, 6751# we simply use a GCC version number check. (This should never trigger for 6752# stages 2 or 3 of a native bootstrap.) 6753aliasing_flags= 6754if test "$GCC" = yes; then 6755 saved_CXXFLAGS="$CXXFLAGS" 6756 6757 # The following test compilation will succeed if and only if $CXX accepts 6758 # -fno-strict-aliasing *and* is older than GCC 4.3. 6759 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5 6761$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; } 6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763/* end confdefs.h. */ 6764 6765#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) 6766#error compiler not affected by placement new aliasing bug 6767#endif 6768 6769_ACEOF 6770if ac_fn_cxx_try_compile "$LINENO"; then : 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6772$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing' 6773else 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6775$as_echo "no" >&6; } 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6778 6779 CXXFLAGS="$saved_CXXFLAGS" 6780fi 6781 6782 6783 6784 6785# --------------------- 6786# Warnings and checking 6787# --------------------- 6788 6789# Check $CC warning features (if it's GCC). 6790# We want to use -pedantic, but we don't want warnings about 6791# * 'long long' 6792# * variadic macros 6793# * overlong strings 6794# * C++11 narrowing conversions in { } 6795# So, we only use -pedantic if we can disable those warnings. 6796 6797# In stage 1, disable -Wformat warnings from old GCCs about new % codes 6798# Check whether --enable-build-format-warnings was given. 6799if test "${enable_build_format_warnings+set}" = set; then : 6800 enableval=$enable_build_format_warnings; 6801else 6802 enable_build_format_warnings=yes 6803fi 6804 6805if test $enable_build_format_warnings = no; then : 6806 wf_opt=-Wno-format 6807else 6808 wf_opt= 6809fi 6810ac_ext=cpp 6811ac_cpp='$CXXCPP $CPPFLAGS' 6812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6815 6816loose_warn= 6817save_CXXFLAGS="$CXXFLAGS" 6818for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do 6819 # Do the check with the no- prefix removed since gcc silently 6820 # accepts any -Wno-* option on purpose 6821 case $real_option in 6822 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 6823 *) option=$real_option ;; 6824 esac 6825 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 6826 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 6828$as_echo_n "checking whether $CXX supports $option... " >&6; } 6829if eval \${$as_acx_Woption+:} false; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 CXXFLAGS="$option" 6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6834/* end confdefs.h. */ 6835 6836int 6837main () 6838{ 6839 6840 ; 6841 return 0; 6842} 6843_ACEOF 6844if ac_fn_cxx_try_compile "$LINENO"; then : 6845 eval "$as_acx_Woption=yes" 6846else 6847 eval "$as_acx_Woption=no" 6848fi 6849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6850 6851fi 6852eval ac_res=\$$as_acx_Woption 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6854$as_echo "$ac_res" >&6; } 6855 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 6856 loose_warn="$loose_warn${loose_warn:+ }$real_option" 6857fi 6858 done 6859CXXFLAGS="$save_CXXFLAGS" 6860ac_ext=cpp 6861ac_cpp='$CXXCPP $CPPFLAGS' 6862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6865 6866 6867 6868ac_ext=c 6869ac_cpp='$CPP $CPPFLAGS' 6870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6872ac_compiler_gnu=$ac_cv_c_compiler_gnu 6873 6874c_loose_warn= 6875save_CFLAGS="$CFLAGS" 6876for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do 6877 # Do the check with the no- prefix removed since gcc silently 6878 # accepts any -Wno-* option on purpose 6879 case $real_option in 6880 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 6881 *) option=$real_option ;; 6882 esac 6883 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 6884 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 6886$as_echo_n "checking whether $CC supports $option... " >&6; } 6887if eval \${$as_acx_Woption+:} false; then : 6888 $as_echo_n "(cached) " >&6 6889else 6890 CFLAGS="$option" 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892/* end confdefs.h. */ 6893 6894int 6895main () 6896{ 6897 6898 ; 6899 return 0; 6900} 6901_ACEOF 6902if ac_fn_c_try_compile "$LINENO"; then : 6903 eval "$as_acx_Woption=yes" 6904else 6905 eval "$as_acx_Woption=no" 6906fi 6907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6908 6909fi 6910eval ac_res=\$$as_acx_Woption 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6912$as_echo "$ac_res" >&6; } 6913 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 6914 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option" 6915fi 6916 done 6917CFLAGS="$save_CFLAGS" 6918ac_ext=cpp 6919ac_cpp='$CXXCPP $CPPFLAGS' 6920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6923 6924 6925ac_ext=cpp 6926ac_cpp='$CXXCPP $CPPFLAGS' 6927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6930 6931strict_warn= 6932save_CXXFLAGS="$CXXFLAGS" 6933for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do 6934 # Do the check with the no- prefix removed since gcc silently 6935 # accepts any -Wno-* option on purpose 6936 case $real_option in 6937 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 6938 *) option=$real_option ;; 6939 esac 6940 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 6941 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 6943$as_echo_n "checking whether $CXX supports $option... " >&6; } 6944if eval \${$as_acx_Woption+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 CXXFLAGS="$option" 6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6949/* end confdefs.h. */ 6950 6951int 6952main () 6953{ 6954 6955 ; 6956 return 0; 6957} 6958_ACEOF 6959if ac_fn_cxx_try_compile "$LINENO"; then : 6960 eval "$as_acx_Woption=yes" 6961else 6962 eval "$as_acx_Woption=no" 6963fi 6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6965 6966fi 6967eval ac_res=\$$as_acx_Woption 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6969$as_echo "$ac_res" >&6; } 6970 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 6971 strict_warn="$strict_warn${strict_warn:+ }$real_option" 6972fi 6973 done 6974CXXFLAGS="$save_CXXFLAGS" 6975ac_ext=cpp 6976ac_cpp='$CXXCPP $CPPFLAGS' 6977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6980 6981 6982ac_ext=c 6983ac_cpp='$CPP $CPPFLAGS' 6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6986ac_compiler_gnu=$ac_cv_c_compiler_gnu 6987 6988c_strict_warn= 6989save_CFLAGS="$CFLAGS" 6990for real_option in -Wold-style-definition -Wc++-compat; do 6991 # Do the check with the no- prefix removed since gcc silently 6992 # accepts any -Wno-* option on purpose 6993 case $real_option in 6994 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 6995 *) option=$real_option ;; 6996 esac 6997 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 6998 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7000$as_echo_n "checking whether $CC supports $option... " >&6; } 7001if eval \${$as_acx_Woption+:} false; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 CFLAGS="$option" 7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7006/* end confdefs.h. */ 7007 7008int 7009main () 7010{ 7011 7012 ; 7013 return 0; 7014} 7015_ACEOF 7016if ac_fn_c_try_compile "$LINENO"; then : 7017 eval "$as_acx_Woption=yes" 7018else 7019 eval "$as_acx_Woption=no" 7020fi 7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7022 7023fi 7024eval ac_res=\$$as_acx_Woption 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7026$as_echo "$ac_res" >&6; } 7027 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7028 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option" 7029fi 7030 done 7031CFLAGS="$save_CFLAGS" 7032ac_ext=cpp 7033ac_cpp='$CXXCPP $CPPFLAGS' 7034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7037 7038 7039ac_ext=cpp 7040ac_cpp='$CXXCPP $CPPFLAGS' 7041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7044 7045# Do the check with the no- prefix removed from the warning options 7046# since gcc silently accepts any -Wno-* option on purpose 7047if test "$GXX" = yes; then : 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5 7049$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; } 7050if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 save_CXXFLAGS="$CXXFLAGS" 7054CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" 7055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057 7058int 7059main () 7060{ 7061 7062 ; 7063 return 0; 7064} 7065_ACEOF 7066if ac_fn_cxx_try_compile "$LINENO"; then : 7067 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes 7068else 7069 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no 7070fi 7071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7072CXXFLAGS="$save_CXXFLAGS" 7073fi 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5 7075$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; } 7076if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then : 7077 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" 7078fi 7079 7080fi 7081ac_ext=cpp 7082ac_cpp='$CXXCPP $CPPFLAGS' 7083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7086 7087 7088ac_ext=cpp 7089ac_cpp='$CXXCPP $CPPFLAGS' 7090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7093 7094# Check whether --enable-werror-always was given. 7095if test "${enable_werror_always+set}" = set; then : 7096 enableval=$enable_werror_always; 7097else 7098 enable_werror_always=no 7099fi 7100 7101if test $enable_werror_always = yes; then : 7102 strict_warn="$strict_warn${strict_warn:+ }-Werror" 7103fi 7104 7105ac_ext=cpp 7106ac_cpp='$CXXCPP $CPPFLAGS' 7107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7110 7111 7112 7113# The above macros do nothing if the compiler is not GCC. However, the 7114# Makefile has more goo to add other flags, so these variables are used 7115# to enable warnings only for GCC. 7116warn_cflags= 7117warn_cxxflags= 7118if test "x$GCC" = "xyes"; then 7119 warn_cflags='$(GCC_WARN_CFLAGS)' 7120 warn_cxxflags='$(GCC_WARN_CXXFLAGS)' 7121fi 7122 7123 7124 7125# Disable exceptions and RTTI if building with g++ 7126ac_ext=c 7127ac_cpp='$CPP $CPPFLAGS' 7128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7130ac_compiler_gnu=$ac_cv_c_compiler_gnu 7131 7132noexception_flags= 7133save_CFLAGS="$CFLAGS" 7134for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do 7135 # Do the check with the no- prefix removed since gcc silently 7136 # accepts any -Wno-* option on purpose 7137 case $real_option in 7138 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7139 *) option=$real_option ;; 7140 esac 7141 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7142 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7144$as_echo_n "checking whether $CC supports $option... " >&6; } 7145if eval \${$as_acx_Woption+:} false; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 CFLAGS="$option" 7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151 7152int 7153main () 7154{ 7155 7156 ; 7157 return 0; 7158} 7159_ACEOF 7160if ac_fn_c_try_compile "$LINENO"; then : 7161 eval "$as_acx_Woption=yes" 7162else 7163 eval "$as_acx_Woption=no" 7164fi 7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7166 7167fi 7168eval ac_res=\$$as_acx_Woption 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7170$as_echo "$ac_res" >&6; } 7171 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7172 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option" 7173fi 7174 done 7175CFLAGS="$save_CFLAGS" 7176ac_ext=cpp 7177ac_cpp='$CXXCPP $CPPFLAGS' 7178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7181 7182 7183 7184# Enable expensive internal checks 7185is_release= 7186if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then 7187 is_release=yes 7188fi 7189 7190# Check whether --enable-checking was given. 7191if test "${enable_checking+set}" = set; then : 7192 enableval=$enable_checking; ac_checking_flags="${enableval}" 7193else 7194 7195# Determine the default checks. 7196if test x$is_release = x ; then 7197 ac_checking_flags=yes,extra 7198else 7199 ac_checking_flags=release 7200fi 7201fi 7202 7203IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 7204for check in release $ac_checking_flags 7205do 7206 case $check in 7207 # these set all the flags to specific states 7208 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ; 7209 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ; 7210 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ; 7211 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 7212 ac_tree_checking=1 ; ac_valgrind_checking= ; 7213 ac_types_checking=1 ;; 7214 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ; 7215 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ; 7216 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ; 7217 ac_rtlflag_checking= ; ac_runtime_checking= ; 7218 ac_tree_checking= ; ac_valgrind_checking= ; 7219 ac_types_checking= ;; 7220 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ; 7221 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ; 7222 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ; 7223 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 7224 ac_tree_checking=1 ; ac_valgrind_checking= ; 7225 ac_types_checking=1 ;; 7226 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ; 7227 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ; 7228 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ; 7229 ac_rtlflag_checking= ; ac_runtime_checking=1 ; 7230 ac_tree_checking= ; ac_valgrind_checking= ; 7231 ac_types_checking= ;; 7232 # these enable particular checks 7233 assert) ac_assert_checking=1 ;; 7234 df) ac_df_checking=1 ;; 7235 extra) ac_extra_checking=1 ;; 7236 fold) ac_fold_checking=1 ;; 7237 gc) ac_gc_checking=1 ;; 7238 gcac) ac_gc_always_collect=1 ;; 7239 gimple) ac_gimple_checking=1 ;; 7240 misc) ac_checking=1 ;; 7241 rtl) ac_rtl_checking=1 ;; 7242 rtlflag) ac_rtlflag_checking=1 ;; 7243 runtime) ac_runtime_checking=1 ;; 7244 tree) ac_tree_checking=1 ;; 7245 types) ac_types_checking=1 ;; 7246 valgrind) ac_valgrind_checking=1 ;; 7247 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;; 7248 esac 7249done 7250IFS="$ac_save_IFS" 7251 7252nocommon_flag="" 7253if test x$ac_checking != x ; then 7254 7255$as_echo "#define CHECKING_P 1" >>confdefs.h 7256 7257 nocommon_flag=-fno-common 7258else 7259 $as_echo "#define CHECKING_P 0" >>confdefs.h 7260 7261fi 7262 7263if test x$ac_extra_checking != x ; then 7264 7265$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h 7266 7267else 7268 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h 7269 7270fi 7271if test x$ac_df_checking != x ; then 7272 7273$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h 7274 7275fi 7276if test x$ac_assert_checking != x ; then 7277 7278$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h 7279 7280fi 7281if test x$ac_gimple_checking != x ; then 7282 7283$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h 7284 7285fi 7286 7287if test x$ac_runtime_checking != x ; then 7288 7289$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h 7290 7291fi 7292if test x$ac_tree_checking != x ; then 7293 7294$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h 7295 7296 TREECHECKING=yes 7297fi 7298if test x$ac_types_checking != x ; then 7299 7300$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h 7301 7302fi 7303 7304if test x$ac_rtl_checking != x ; then 7305 7306$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h 7307 7308fi 7309if test x$ac_rtlflag_checking != x ; then 7310 7311$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h 7312 7313fi 7314if test x$ac_gc_checking != x ; then 7315 7316$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h 7317 7318fi 7319if test x$ac_gc_always_collect != x ; then 7320 7321$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h 7322 7323fi 7324if test x$ac_fold_checking != x ; then 7325 7326$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h 7327 7328fi 7329valgrind_path_defines= 7330valgrind_command= 7331 7332ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default" 7333if test "x$ac_cv_header_valgrind_h" = xyes; then : 7334 have_valgrind_h=yes 7335else 7336 have_valgrind_h=no 7337fi 7338 7339 7340 7341# It is certainly possible that there's valgrind but no valgrind.h. 7342# GCC relies on making annotations so we must have both. 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5 7344$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; } 7345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347#include <valgrind/memcheck.h> 7348#ifndef VALGRIND_DISCARD 7349#error VALGRIND_DISCARD not defined 7350#endif 7351_ACEOF 7352if ac_fn_cxx_try_cpp "$LINENO"; then : 7353 gcc_cv_header_valgrind_memcheck_h=yes 7354else 7355 gcc_cv_header_valgrind_memcheck_h=no 7356fi 7357rm -f conftest.err conftest.i conftest.$ac_ext 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5 7359$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; } 7360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5 7361$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; } 7362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7363/* end confdefs.h. */ 7364#include <memcheck.h> 7365#ifndef VALGRIND_DISCARD 7366#error VALGRIND_DISCARD not defined 7367#endif 7368_ACEOF 7369if ac_fn_cxx_try_cpp "$LINENO"; then : 7370 gcc_cv_header_memcheck_h=yes 7371else 7372 gcc_cv_header_memcheck_h=no 7373fi 7374rm -f conftest.err conftest.i conftest.$ac_ext 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5 7376$as_echo "$gcc_cv_header_memcheck_h" >&6; } 7377if test $gcc_cv_header_valgrind_memcheck_h = yes; then 7378 7379$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h 7380 7381fi 7382if test $gcc_cv_header_memcheck_h = yes; then 7383 7384$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h 7385 7386fi 7387 7388if test x$ac_valgrind_checking != x ; then 7389 7390# Prepare PATH_SEPARATOR. 7391# The user is always right. 7392if test "${PATH_SEPARATOR+set}" != set; then 7393 echo "#! /bin/sh" >conf$$.sh 7394 echo "exit 0" >>conf$$.sh 7395 chmod +x conf$$.sh 7396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7397 PATH_SEPARATOR=';' 7398 else 7399 PATH_SEPARATOR=: 7400 fi 7401 rm -f conf$$.sh 7402fi 7403 7404# Find out how to test for executable files. Don't use a zero-byte file, 7405# as systems may use methods other than mode bits to determine executability. 7406cat >conf$$.file <<_ASEOF 7407#! /bin/sh 7408exit 0 7409_ASEOF 7410chmod +x conf$$.file 7411if test -x conf$$.file >/dev/null 2>&1; then 7412 ac_executable_p="test -x" 7413else 7414 ac_executable_p="test -f" 7415fi 7416rm -f conf$$.file 7417 7418# Extract the first word of "valgrind", so it can be a program name with args. 7419set dummy valgrind; ac_word=$2 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7421$as_echo_n "checking for $ac_word... " >&6; } 7422if ${ac_cv_path_valgrind_path+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 case "$valgrind_path" in 7426 [\\/]* | ?:[\\/]*) 7427 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path. 7428 ;; 7429 *) 7430 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7431 for ac_dir in $PATH; do 7432 IFS="$ac_save_IFS" 7433 test -z "$ac_dir" && ac_dir=. 7434 for ac_exec_ext in '' $ac_executable_extensions; do 7435 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7436 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then 7437 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext" 7438 break 2 7439 fi 7440 fi 7441 done 7442 done 7443 IFS="$ac_save_IFS" 7444 ;; 7445esac 7446fi 7447valgrind_path="$ac_cv_path_valgrind_path" 7448if test -n "$valgrind_path"; then 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5 7450$as_echo "$valgrind_path" >&6; } 7451else 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7453$as_echo "no" >&6; } 7454fi 7455 7456 if test "x$valgrind_path" = "x" \ 7457 || (test $have_valgrind_h = no \ 7458 && test $gcc_cv_header_memcheck_h = no \ 7459 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7460 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7461 fi 7462 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"' 7463 valgrind_command="$valgrind_path -q" 7464 7465$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h 7466 7467fi 7468 7469 7470 7471# Enable code coverage collection 7472# Check whether --enable-coverage was given. 7473if test "${enable_coverage+set}" = set; then : 7474 enableval=$enable_coverage; case "${enableval}" in 7475 yes|noopt) 7476 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions" 7477 ;; 7478 opt) 7479 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions" 7480 ;; 7481 no) 7482 # a.k.a. --disable-coverage 7483 coverage_flags="" 7484 ;; 7485 *) 7486 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5 7487 ;; 7488esac 7489else 7490 coverage_flags="" 7491fi 7492 7493 7494 7495# Check whether --enable-gather-detailed-mem-stats was given. 7496if test "${enable_gather_detailed_mem_stats+set}" = set; then : 7497 enableval=$enable_gather_detailed_mem_stats; 7498else 7499 enable_gather_detailed_mem_stats=no 7500fi 7501 7502gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi` 7503 7504cat >>confdefs.h <<_ACEOF 7505#define GATHER_STATISTICS $gather_stats 7506_ACEOF 7507 7508 7509# Check whether --enable-valgrind-annotations was given. 7510if test "${enable_valgrind_annotations+set}" = set; then : 7511 enableval=$enable_valgrind_annotations; 7512else 7513 enable_valgrind_annotations=no 7514fi 7515 7516if test x$enable_valgrind_annotations != xno \ 7517 || test x$ac_valgrind_checking != x; then 7518 if (test $have_valgrind_h = no \ 7519 && test $gcc_cv_header_memcheck_h = no \ 7520 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7521 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7522 fi 7523 7524$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h 7525 7526fi 7527 7528# ------------------------------- 7529# Miscenalleous configure options 7530# ------------------------------- 7531 7532# With stabs 7533 7534# Check whether --with-stabs was given. 7535if test "${with_stabs+set}" = set; then : 7536 withval=$with_stabs; stabs="$with_stabs" 7537else 7538 stabs=no 7539fi 7540 7541 7542# Determine whether or not multilibs are enabled. 7543# Check whether --enable-multilib was given. 7544if test "${enable_multilib+set}" = set; then : 7545 enableval=$enable_multilib; 7546else 7547 enable_multilib=yes 7548fi 7549 7550 7551 7552# Determine whether or not multiarch is enabled. 7553# Check whether --enable-multiarch was given. 7554if test "${enable_multiarch+set}" = set; then : 7555 enableval=$enable_multiarch; case "${enableval}" in 7556yes|no|auto) enable_multiarch=$enableval;; 7557*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;; 7558esac 7559else 7560 enable_multiarch=auto 7561fi 7562 7563if test x${enable_multiarch} = xauto; then 7564 if test x${with_native_system_header_dir} != x; then 7565 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)" 7566 enable_multiarch=no 7567 fi 7568 if test x$host != x$target && test "x$with_sysroot" = x; then 7569 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)" 7570 enable_multiarch=no 7571 fi 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5 7574$as_echo_n "checking for multiarch configuration... " >&6; } 7575 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5 7577$as_echo "$enable_multiarch$ma_msg_suffix" >&6; } 7578 7579# needed for setting the multiarch name for soft-float/hard-float ABIs 7580 7581 7582 7583# default stack clash protection guard size as power of twos in bytes. 7584# Please keep these in sync with params.def. 7585stk_clash_min=12 7586stk_clash_max=30 7587 7588# Keep the default value when the option is not used to 0, this allows us to 7589# distinguish between the cases where the user specifially set a value via 7590# configure and when the normal default value is used. 7591 7592# Check whether --with-stack-clash-protection-guard-size was given. 7593if test "${with_stack_clash_protection_guard_size+set}" = set; then : 7594 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size" 7595else 7596 DEFAULT_STK_CLASH_GUARD_SIZE=0 7597fi 7598 7599if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \ 7600 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \ 7601 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then 7602 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 7603fi 7604 7605 7606cat >>confdefs.h <<_ACEOF 7607#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE 7608_ACEOF 7609 7610 7611# Enable __cxa_atexit for C++. 7612# Check whether --enable-__cxa_atexit was given. 7613if test "${enable___cxa_atexit+set}" = set; then : 7614 enableval=$enable___cxa_atexit; 7615fi 7616 7617 7618# Enable C extension for decimal float if target supports it. 7619 7620# Check whether --enable-decimal-float was given. 7621if test "${enable_decimal_float+set}" = set; then : 7622 enableval=$enable_decimal_float; 7623 case $enable_decimal_float in 7624 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;; 7625 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float. 7626Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; 7627 esac 7628 7629else 7630 7631 case $target in 7632 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ 7633 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ 7634 i?86*-*-mingw* | x86_64*-*-mingw* | \ 7635 i?86*-*-cygwin* | x86_64*-*-cygwin*) 7636 enable_decimal_float=yes 7637 ;; 7638 *) 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5 7640$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;} 7641 enable_decimal_float=no 7642 ;; 7643 esac 7644 7645fi 7646 7647 7648# x86's use BID format instead of DPD 7649case x$enable_decimal_float in 7650 xyes) 7651 case $target in 7652 i?86*-*-* | x86_64*-*-*) 7653 enable_decimal_float=bid 7654 ;; 7655 *) 7656 enable_decimal_float=dpd 7657 ;; 7658 esac 7659 default_decimal_float=$enable_decimal_float 7660 ;; 7661 xno) 7662 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper 7663 # dependency on libdecnumber. 7664 default_decimal_float=dpd 7665 ;; 7666esac 7667 7668 7669 7670 7671dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi` 7672 7673cat >>confdefs.h <<_ACEOF 7674#define ENABLE_DECIMAL_FLOAT $dfp 7675_ACEOF 7676 7677 7678# Use default_decimal_float for dependency. 7679enable_decimal_float=$default_decimal_float 7680 7681bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi` 7682 7683cat >>confdefs.h <<_ACEOF 7684#define ENABLE_DECIMAL_BID_FORMAT $bid 7685_ACEOF 7686 7687 7688# Enable C extension for fixed-point arithmetic. 7689# Check whether --enable-fixed-point was given. 7690if test "${enable_fixed_point+set}" = set; then : 7691 enableval=$enable_fixed_point; 7692else 7693 7694 case $target in 7695 arm*) 7696 enable_fixed_point=yes 7697 ;; 7698 7699 mips*-*-*) 7700 enable_fixed_point=yes 7701 ;; 7702 *) 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5 7704$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;} 7705 enable_fixed_point=no 7706 ;; 7707 esac 7708 7709fi 7710 7711 7712 7713fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi` 7714 7715cat >>confdefs.h <<_ACEOF 7716#define ENABLE_FIXED_POINT $fixedpoint 7717_ACEOF 7718 7719 7720# Enable threads 7721# Pass with no value to take the default 7722# Pass with a value to specify a thread package 7723# Check whether --enable-threads was given. 7724if test "${enable_threads+set}" = set; then : 7725 enableval=$enable_threads; 7726else 7727 enable_threads='' 7728fi 7729 7730 7731# Check whether --enable-tls was given. 7732if test "${enable_tls+set}" = set; then : 7733 enableval=$enable_tls; 7734 case $enable_tls in 7735 yes | no) ;; 7736 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls. 7737Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 7738 esac 7739 7740else 7741 enable_tls='' 7742fi 7743 7744 7745# Check whether --enable-vtable-verify was given. 7746if test "${enable_vtable_verify+set}" = set; then : 7747 enableval=$enable_vtable_verify; 7748else 7749 enable_vtable_verify=no 7750fi 7751 7752vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi` 7753 7754cat >>confdefs.h <<_ACEOF 7755#define ENABLE_VTABLE_VERIFY $vtable_verify 7756_ACEOF 7757 7758 7759# Check whether --enable-analyzer was given. 7760if test "${enable_analyzer+set}" = set; then : 7761 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then 7762 analyzer=0 7763else 7764 analyzer=1 7765fi 7766else 7767 analyzer=1 7768fi 7769 7770 7771cat >>confdefs.h <<_ACEOF 7772#define ENABLE_ANALYZER $analyzer 7773_ACEOF 7774 7775 7776# Check whether --enable-objc-gc was given. 7777if test "${enable_objc_gc+set}" = set; then : 7778 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then 7779 objc_boehm_gc='' 7780else 7781 objc_boehm_gc=1 7782fi 7783else 7784 objc_boehm_gc='' 7785fi 7786 7787 7788 7789# Check whether --with-dwarf2 was given. 7790if test "${with_dwarf2+set}" = set; then : 7791 withval=$with_dwarf2; dwarf2="$with_dwarf2" 7792else 7793 dwarf2=no 7794fi 7795 7796 7797# Check whether --enable-shared was given. 7798if test "${enable_shared+set}" = set; then : 7799 enableval=$enable_shared; 7800 case $enable_shared in 7801 yes | no) ;; 7802 *) 7803 enable_shared=no 7804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 7805 for pkg in $enableval; do 7806 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then 7807 enable_shared=yes 7808 fi 7809 done 7810 IFS="$ac_save_ifs" 7811 ;; 7812 esac 7813 7814else 7815 enable_shared=yes 7816fi 7817 7818 7819 7820# Check whether --enable-gcov was given. 7821if test "${enable_gcov+set}" = set; then : 7822 enableval=$enable_gcov; 7823else 7824 enable_gcov=yes 7825fi 7826 7827 7828 7829 7830# Check whether --with-specs was given. 7831if test "${with_specs+set}" = set; then : 7832 withval=$with_specs; CONFIGURE_SPECS=$withval 7833else 7834 CONFIGURE_SPECS= 7835 7836fi 7837 7838 7839 7840 7841 7842# Check whether --with-pkgversion was given. 7843if test "${with_pkgversion+set}" = set; then : 7844 withval=$with_pkgversion; case "$withval" in 7845 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; 7846 no) PKGVERSION= ;; 7847 *) PKGVERSION="($withval) " ;; 7848 esac 7849else 7850 PKGVERSION="(GCC) " 7851 7852fi 7853 7854 7855 7856 7857 7858# Check whether --with-bugurl was given. 7859if test "${with_bugurl+set}" = set; then : 7860 withval=$with_bugurl; case "$withval" in 7861 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 7862 no) BUGURL= 7863 ;; 7864 *) BUGURL="$withval" 7865 ;; 7866 esac 7867else 7868 BUGURL="https://gcc.gnu.org/bugs/" 7869 7870fi 7871 7872 case ${BUGURL} in 7873 "") 7874 REPORT_BUGS_TO= 7875 REPORT_BUGS_TEXI= 7876 ;; 7877 *) 7878 REPORT_BUGS_TO="<$BUGURL>" 7879 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 7880 ;; 7881 esac; 7882 7883 7884 7885 7886# Allow overriding the default URL for documentation 7887 7888# Check whether --with-documentation-root-url was given. 7889if test "${with_documentation_root_url+set}" = set; then : 7890 withval=$with_documentation_root_url; case "$withval" in 7891 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;; 7892 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;; 7893 */) DOCUMENTATION_ROOT_URL="$withval" ;; 7894 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;; 7895 esac 7896else 7897 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/" 7898 7899fi 7900 7901 7902cat >>confdefs.h <<_ACEOF 7903#define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL" 7904_ACEOF 7905 7906 7907# Allow overriding the default URL for GCC changes 7908 7909# Check whether --with-changes-root-url was given. 7910if test "${with_changes_root_url+set}" = set; then : 7911 withval=$with_changes_root_url; case "$withval" in 7912 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;; 7913 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;; 7914 */) CHANGES_ROOT_URL="$withval" ;; 7915 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;; 7916 esac 7917else 7918 CHANGES_ROOT_URL="https://gcc.gnu.org/" 7919 7920fi 7921 7922 7923cat >>confdefs.h <<_ACEOF 7924#define CHANGES_ROOT_URL "$CHANGES_ROOT_URL" 7925_ACEOF 7926 7927 7928# Sanity check enable_languages in case someone does not run the toplevel 7929# configure # script. 7930# Check whether --enable-languages was given. 7931if test "${enable_languages+set}" = set; then : 7932 enableval=$enable_languages; case ,${enable_languages}, in 7933 ,,|,yes,) 7934 # go safe -- we cannot be much sure without the toplevel 7935 # configure's 7936 # analysis of which target libs are present and usable 7937 enable_languages=c 7938 ;; 7939 *,all,*) 7940 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5 7941 ;; 7942 *,c,*) 7943 ;; 7944 *) 7945 enable_languages=c,${enable_languages} 7946 ;; 7947esac 7948else 7949 enable_languages=c 7950fi 7951 7952 7953# If top-level libada has been disabled, then wire in install-gnatlib 7954# invocation with `make install', so that one can build and install 7955# the library manually with `make -C gcc all gnatlib gnattools install'. 7956if test x"$enable_libada" = xno; then 7957 gnat_install_lib=gnat-install-lib 7958else 7959 gnat_install_lib= 7960fi 7961 7962 7963if test x"$enable_as_accelerator_for" != x; then 7964 7965$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h 7966 7967 enable_as_accelerator=yes 7968 case "${target}" in 7969 *-intelmicemul-*) 7970 # In this case we expect offload compiler to be built as native, so we 7971 # need to rename the driver to avoid clashes with host's drivers. 7972 program_transform_name="s&^&${target}-&" ;; 7973 esac 7974 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#" 7975 program_transform_name=`echo $program_transform_name | sed $sedscript` 7976 accel_dir_suffix=/accel/${target_noncanonical} 7977 real_target_noncanonical=${enable_as_accelerator_for} 7978fi 7979 7980 7981 7982 7983for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do 7984 tgt=`echo $tgt | sed 's/=.*//'` 7985 7986 if echo "$tgt" | grep "^hsa" > /dev/null ; then 7987 enable_hsa=1 7988 else 7989 enable_offloading=1 7990 case "$tgt" in 7991 *-intelmic-* | *-intelmicemul-*) 7992 omp_device_property=omp-device-properties-i386 7993 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device" 7994 ;; 7995 amdgcn*) 7996 omp_device_property=omp-device-properties-gcn 7997 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device" 7998 ;; 7999 nvptx*) 8000 omp_device_property=omp-device-properties-nvptx 8001 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device" 8002 ;; 8003 *) 8004 as_fn_error $? "unknown offload target specified" "$LINENO" 5 8005 ;; 8006 esac 8007 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}" 8008 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}" 8009 fi 8010 8011 if test x"$offload_targets" = x; then 8012 offload_targets=$tgt 8013 else 8014 offload_targets="$offload_targets,$tgt" 8015 fi 8016done 8017 8018 8019 8020 8021cat >>confdefs.h <<_ACEOF 8022#define OFFLOAD_TARGETS "$offload_targets" 8023_ACEOF 8024 8025if test x"$enable_offloading" != x; then 8026 8027$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h 8028 8029else 8030 8031$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h 8032 8033fi 8034 8035if test x"$enable_hsa" = x1 ; then 8036 8037$as_echo "#define ENABLE_HSA 1" >>confdefs.h 8038 8039fi 8040 8041 8042# Check whether --with-multilib-list was given. 8043if test "${with_multilib_list+set}" = set; then : 8044 withval=$with_multilib_list; : 8045else 8046 with_multilib_list=default 8047fi 8048 8049 8050# ------------------------- 8051# Checks for other programs 8052# ------------------------- 8053 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8055$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8056set x ${MAKE-make} 8057ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8058if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 cat >conftest.make <<\_ACEOF 8062SHELL = /bin/sh 8063all: 8064 @echo '@@@%%%=$(MAKE)=@@@%%%' 8065_ACEOF 8066# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8067case `${MAKE-make} -f conftest.make 2>/dev/null` in 8068 *@@@%%%=?*=@@@%%%*) 8069 eval ac_cv_prog_make_${ac_make}_set=yes;; 8070 *) 8071 eval ac_cv_prog_make_${ac_make}_set=no;; 8072esac 8073rm -f conftest.make 8074fi 8075if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8077$as_echo "yes" >&6; } 8078 SET_MAKE= 8079else 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8081$as_echo "no" >&6; } 8082 SET_MAKE="MAKE=${MAKE-make}" 8083fi 8084 8085 8086# Find some useful tools 8087for ac_prog in gawk mawk nawk awk 8088do 8089 # Extract the first word of "$ac_prog", so it can be a program name with args. 8090set dummy $ac_prog; ac_word=$2 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8092$as_echo_n "checking for $ac_word... " >&6; } 8093if ${ac_cv_prog_AWK+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095else 8096 if test -n "$AWK"; then 8097 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8098else 8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8100for as_dir in $PATH 8101do 8102 IFS=$as_save_IFS 8103 test -z "$as_dir" && as_dir=. 8104 for ac_exec_ext in '' $ac_executable_extensions; do 8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8106 ac_cv_prog_AWK="$ac_prog" 8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8108 break 2 8109 fi 8110done 8111 done 8112IFS=$as_save_IFS 8113 8114fi 8115fi 8116AWK=$ac_cv_prog_AWK 8117if test -n "$AWK"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8119$as_echo "$AWK" >&6; } 8120else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122$as_echo "no" >&6; } 8123fi 8124 8125 8126 test -n "$AWK" && break 8127done 8128 8129# We need awk to create options.c and options.h. 8130# Bail out if it's missing. 8131case ${AWK} in 8132 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;; 8133esac 8134 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8136$as_echo_n "checking whether ln -s works... " >&6; } 8137if ${gcc_cv_prog_LN_S+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 rm -f conftestdata_t 8141echo >conftestdata_f 8142if ln -s conftestdata_f conftestdata_t 2>/dev/null 8143then 8144 gcc_cv_prog_LN_S="ln -s" 8145else 8146 if ln conftestdata_f conftestdata_t 2>/dev/null 8147 then 8148 gcc_cv_prog_LN_S=ln 8149 else 8150 if cp -p conftestdata_f conftestdata_t 2>/dev/null 8151 then 8152 gcc_cv_prog_LN_S="cp -p" 8153 else 8154 gcc_cv_prog_LN_S=cp 8155 fi 8156 fi 8157fi 8158rm -f conftestdata_f conftestdata_t 8159 8160fi 8161LN_S="$gcc_cv_prog_LN_S" 8162if test "$gcc_cv_prog_LN_S" = "ln -s"; then 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8164$as_echo "yes" >&6; } 8165else 8166 if test "$gcc_cv_prog_LN_S" = "ln"; then 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5 8168$as_echo "no, using ln" >&6; } 8169 else 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5 8171$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; } 8172 fi 8173fi 8174 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 8176$as_echo_n "checking whether ln works... " >&6; } 8177if ${acx_cv_prog_LN+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 rm -f conftestdata_t 8181echo >conftestdata_f 8182if ln conftestdata_f conftestdata_t 2>/dev/null 8183then 8184 acx_cv_prog_LN=ln 8185else 8186 acx_cv_prog_LN=no 8187fi 8188rm -f conftestdata_f conftestdata_t 8189 8190fi 8191if test $acx_cv_prog_LN = no; then 8192 LN="$LN_S" 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 8194$as_echo "no, using $LN" >&6; } 8195else 8196 LN="$acx_cv_prog_LN" 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8198$as_echo "yes" >&6; } 8199fi 8200 8201if test -n "$ac_tool_prefix"; then 8202 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8203set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8205$as_echo_n "checking for $ac_word... " >&6; } 8206if ${ac_cv_prog_RANLIB+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 if test -n "$RANLIB"; then 8210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8211else 8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8213for as_dir in $PATH 8214do 8215 IFS=$as_save_IFS 8216 test -z "$as_dir" && as_dir=. 8217 for ac_exec_ext in '' $ac_executable_extensions; do 8218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8219 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8221 break 2 8222 fi 8223done 8224 done 8225IFS=$as_save_IFS 8226 8227fi 8228fi 8229RANLIB=$ac_cv_prog_RANLIB 8230if test -n "$RANLIB"; then 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8232$as_echo "$RANLIB" >&6; } 8233else 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8235$as_echo "no" >&6; } 8236fi 8237 8238 8239fi 8240if test -z "$ac_cv_prog_RANLIB"; then 8241 ac_ct_RANLIB=$RANLIB 8242 # Extract the first word of "ranlib", so it can be a program name with args. 8243set dummy ranlib; ac_word=$2 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8245$as_echo_n "checking for $ac_word... " >&6; } 8246if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8247 $as_echo_n "(cached) " >&6 8248else 8249 if test -n "$ac_ct_RANLIB"; then 8250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8251else 8252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8253for as_dir in $PATH 8254do 8255 IFS=$as_save_IFS 8256 test -z "$as_dir" && as_dir=. 8257 for ac_exec_ext in '' $ac_executable_extensions; do 8258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8259 ac_cv_prog_ac_ct_RANLIB="ranlib" 8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8261 break 2 8262 fi 8263done 8264 done 8265IFS=$as_save_IFS 8266 8267fi 8268fi 8269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8270if test -n "$ac_ct_RANLIB"; then 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8272$as_echo "$ac_ct_RANLIB" >&6; } 8273else 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8275$as_echo "no" >&6; } 8276fi 8277 8278 if test "x$ac_ct_RANLIB" = x; then 8279 RANLIB=":" 8280 else 8281 case $cross_compiling:$ac_tool_warned in 8282yes:) 8283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8285ac_tool_warned=yes ;; 8286esac 8287 RANLIB=$ac_ct_RANLIB 8288 fi 8289else 8290 RANLIB="$ac_cv_prog_RANLIB" 8291fi 8292 8293ranlib_flags="" 8294 8295 8296# Find a good install program. We prefer a C program (faster), 8297# so one script is as good as another. But avoid the broken or 8298# incompatible versions: 8299# SysV /etc/install, /usr/sbin/install 8300# SunOS /usr/etc/install 8301# IRIX /sbin/install 8302# AIX /bin/install 8303# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8304# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8305# ./install, which can be erroneously created by make from ./install.sh. 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5 8307$as_echo_n "checking for a BSD compatible install... " >&6; } 8308if test -z "$INSTALL"; then 8309if ${ac_cv_path_install+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 8313 for ac_dir in $PATH; do 8314 # Account for people who put trailing slashes in PATH elements. 8315 case "$ac_dir/" in 8316 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 8317 *) 8318 # OSF1 and SCO ODT 3.0 have their own names for install. 8319 for ac_prog in ginstall scoinst install; do 8320 if test -f $ac_dir/$ac_prog; then 8321 if test $ac_prog = install && 8322 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 8323 # AIX install. It has an incompatible calling convention. 8324 # OSF/1 installbsd also uses dspmsg, but is usable. 8325 : 8326 else 8327 ac_cv_path_install="$ac_dir/$ac_prog -c" 8328 break 2 8329 fi 8330 fi 8331 done 8332 ;; 8333 esac 8334 done 8335 IFS="$ac_save_IFS" 8336 8337fi 8338 if test "${ac_cv_path_install+set}" = set; then 8339 INSTALL="$ac_cv_path_install" 8340 else 8341 # As a last resort, use the slow shell script. We don't cache a 8342 # path for INSTALL within a source directory, because that will 8343 # break other packages using the cache if that directory is 8344 # removed, or if the path is relative. 8345 INSTALL="$ac_install_sh" 8346 fi 8347fi 8348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8349$as_echo "$INSTALL" >&6; } 8350 8351# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8352# It thinks the first close brace ends the variable substitution. 8353test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8354 8355test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8356 8357 8358# See if cmp has --ignore-initial. 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5 8360$as_echo_n "checking for cmp's capabilities... " >&6; } 8361if ${gcc_cv_prog_cmp_skip+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 echo abfoo >t1 8365 echo cdfoo >t2 8366 gcc_cv_prog_cmp_skip=slowcompare 8367 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 8368 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 8369 : 8370 else 8371 gcc_cv_prog_cmp_skip=gnucompare 8372 fi 8373 fi 8374 if test $gcc_cv_prog_cmp_skip = slowcompare ; then 8375 if cmp t1 t2 2 2 > /dev/null 2>&1; then 8376 if cmp t1 t2 1 1 > /dev/null 2>&1; then 8377 : 8378 else 8379 gcc_cv_prog_cmp_skip=fastcompare 8380 fi 8381 fi 8382 fi 8383 rm t1 t2 8384 8385fi 8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 8387$as_echo "$gcc_cv_prog_cmp_skip" >&6; } 8388make_compare_target=$gcc_cv_prog_cmp_skip 8389 8390 8391 8392# See if we have the mktemp command. 8393# Extract the first word of "mktemp", so it can be a program name with args. 8394set dummy mktemp; ac_word=$2 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8396$as_echo_n "checking for $ac_word... " >&6; } 8397if ${ac_cv_prog_have_mktemp_command+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399else 8400 if test -n "$have_mktemp_command"; then 8401 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test. 8402else 8403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8404for as_dir in $PATH 8405do 8406 IFS=$as_save_IFS 8407 test -z "$as_dir" && as_dir=. 8408 for ac_exec_ext in '' $ac_executable_extensions; do 8409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8410 ac_cv_prog_have_mktemp_command="yes" 8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8412 break 2 8413 fi 8414done 8415 done 8416IFS=$as_save_IFS 8417 8418 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no" 8419fi 8420fi 8421have_mktemp_command=$ac_cv_prog_have_mktemp_command 8422if test -n "$have_mktemp_command"; then 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5 8424$as_echo "$have_mktemp_command" >&6; } 8425else 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8427$as_echo "no" >&6; } 8428fi 8429 8430 8431 8432# See if makeinfo has been installed and is modern enough 8433# that we can use it. 8434 8435 # Extract the first word of "makeinfo", so it can be a program name with args. 8436set dummy makeinfo; ac_word=$2 8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8438$as_echo_n "checking for $ac_word... " >&6; } 8439if ${ac_cv_prog_MAKEINFO+:} false; then : 8440 $as_echo_n "(cached) " >&6 8441else 8442 if test -n "$MAKEINFO"; then 8443 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 8444else 8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8446for as_dir in $PATH 8447do 8448 IFS=$as_save_IFS 8449 test -z "$as_dir" && as_dir=. 8450 for ac_exec_ext in '' $ac_executable_extensions; do 8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8452 ac_cv_prog_MAKEINFO="makeinfo" 8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8454 break 2 8455 fi 8456done 8457 done 8458IFS=$as_save_IFS 8459 8460fi 8461fi 8462MAKEINFO=$ac_cv_prog_MAKEINFO 8463if test -n "$MAKEINFO"; then 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 8465$as_echo "$MAKEINFO" >&6; } 8466else 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8468$as_echo "no" >&6; } 8469fi 8470 8471 8472 if test -n "$MAKEINFO"; then 8473 # Found it, now check the version. 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 8475$as_echo_n "checking for modern makeinfo... " >&6; } 8476if ${gcc_cv_prog_makeinfo_modern+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478else 8479 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 8480 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 8481 8482 case $ac_prog_version in 8483 '') gcc_cv_prog_makeinfo_modern=no;; 8484 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 8485 *) gcc_cv_prog_makeinfo_modern=no;; 8486 esac 8487 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 8490$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 8491 else 8492 gcc_cv_prog_makeinfo_modern=no 8493 fi 8494 if test $gcc_cv_prog_makeinfo_modern = no; then 8495 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 8496 fi 8497 8498if test $gcc_cv_prog_makeinfo_modern = no; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8500*** Makeinfo is missing or too old. 8501*** Info documentation will not be built." >&5 8502$as_echo "$as_me: WARNING: 8503*** Makeinfo is missing or too old. 8504*** Info documentation will not be built." >&2;} 8505 BUILD_INFO= 8506else 8507 BUILD_INFO=info 8508fi 8509 8510 8511# Is pod2man recent enough to regenerate manpages? 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5 8513$as_echo_n "checking for recent Pod::Man... " >&6; } 8514if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8516$as_echo "yes" >&6; } 8517 GENERATED_MANPAGES=generated-manpages 8518else 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8520$as_echo "no" >&6; } 8521 GENERATED_MANPAGES= 8522fi 8523 8524 8525MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing" 8526 8527# How about lex? 8528for ac_prog in flex 8529do 8530 # Extract the first word of "$ac_prog", so it can be a program name with args. 8531set dummy $ac_prog; ac_word=$2 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8533$as_echo_n "checking for $ac_word... " >&6; } 8534if ${ac_cv_prog_FLEX+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 if test -n "$FLEX"; then 8538 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 8539else 8540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8541for as_dir in $PATH 8542do 8543 IFS=$as_save_IFS 8544 test -z "$as_dir" && as_dir=. 8545 for ac_exec_ext in '' $ac_executable_extensions; do 8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8547 ac_cv_prog_FLEX="$ac_prog" 8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8549 break 2 8550 fi 8551done 8552 done 8553IFS=$as_save_IFS 8554 8555fi 8556fi 8557FLEX=$ac_cv_prog_FLEX 8558if test -n "$FLEX"; then 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 8560$as_echo "$FLEX" >&6; } 8561else 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8563$as_echo "no" >&6; } 8564fi 8565 8566 8567 test -n "$FLEX" && break 8568done 8569test -n "$FLEX" || FLEX="$MISSING flex" 8570 8571 8572# Bison? 8573for ac_prog in bison 8574do 8575 # Extract the first word of "$ac_prog", so it can be a program name with args. 8576set dummy $ac_prog; ac_word=$2 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8578$as_echo_n "checking for $ac_word... " >&6; } 8579if ${ac_cv_prog_BISON+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 if test -n "$BISON"; then 8583 ac_cv_prog_BISON="$BISON" # Let the user override the test. 8584else 8585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8586for as_dir in $PATH 8587do 8588 IFS=$as_save_IFS 8589 test -z "$as_dir" && as_dir=. 8590 for ac_exec_ext in '' $ac_executable_extensions; do 8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8592 ac_cv_prog_BISON="$ac_prog" 8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8594 break 2 8595 fi 8596done 8597 done 8598IFS=$as_save_IFS 8599 8600fi 8601fi 8602BISON=$ac_cv_prog_BISON 8603if test -n "$BISON"; then 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 8605$as_echo "$BISON" >&6; } 8606else 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8608$as_echo "no" >&6; } 8609fi 8610 8611 8612 test -n "$BISON" && break 8613done 8614test -n "$BISON" || BISON="$MISSING bison" 8615 8616 8617# Binutils are not build modules, unlike bison/flex/makeinfo. So we 8618# check for build == host before using them. 8619 8620# NM 8621if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \ 8622 && test -d ../binutils ; then 8623 NM='${objdir}/../binutils/nm-new' 8624else 8625 # Extract the first word of "nm", so it can be a program name with args. 8626set dummy nm; ac_word=$2 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8628$as_echo_n "checking for $ac_word... " >&6; } 8629if ${ac_cv_prog_NM+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 if test -n "$NM"; then 8633 ac_cv_prog_NM="$NM" # Let the user override the test. 8634else 8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8636for as_dir in $PATH 8637do 8638 IFS=$as_save_IFS 8639 test -z "$as_dir" && as_dir=. 8640 for ac_exec_ext in '' $ac_executable_extensions; do 8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8642 ac_cv_prog_NM="nm" 8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8644 break 2 8645 fi 8646done 8647 done 8648IFS=$as_save_IFS 8649 8650 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm" 8651fi 8652fi 8653NM=$ac_cv_prog_NM 8654if test -n "$NM"; then 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8656$as_echo "$NM" >&6; } 8657else 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8659$as_echo "no" >&6; } 8660fi 8661 8662 8663fi 8664 8665# AR 8666if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \ 8667 && test -d ../binutils ; then 8668 AR='${objdir}/../binutils/ar' 8669else 8670 # Extract the first word of "ar", so it can be a program name with args. 8671set dummy ar; ac_word=$2 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8673$as_echo_n "checking for $ac_word... " >&6; } 8674if ${ac_cv_prog_AR+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676else 8677 if test -n "$AR"; then 8678 ac_cv_prog_AR="$AR" # Let the user override the test. 8679else 8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8681for as_dir in $PATH 8682do 8683 IFS=$as_save_IFS 8684 test -z "$as_dir" && as_dir=. 8685 for ac_exec_ext in '' $ac_executable_extensions; do 8686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8687 ac_cv_prog_AR="ar" 8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8689 break 2 8690 fi 8691done 8692 done 8693IFS=$as_save_IFS 8694 8695 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar" 8696fi 8697fi 8698AR=$ac_cv_prog_AR 8699if test -n "$AR"; then 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8701$as_echo "$AR" >&6; } 8702else 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8704$as_echo "no" >&6; } 8705fi 8706 8707 8708fi 8709 8710# The jit documentation looks better if built with sphinx, but can be 8711# built with texinfo if sphinx is not available. 8712# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly. 8713# Extract the first word of "sphinx-build", so it can be a program name with args. 8714set dummy sphinx-build; ac_word=$2 8715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8716$as_echo_n "checking for $ac_word... " >&6; } 8717if ${ac_cv_prog_doc_build_sys+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 if test -n "$doc_build_sys"; then 8721 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test. 8722else 8723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8724for as_dir in $PATH 8725do 8726 IFS=$as_save_IFS 8727 test -z "$as_dir" && as_dir=. 8728 for ac_exec_ext in '' $ac_executable_extensions; do 8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8730 ac_cv_prog_doc_build_sys="sphinx" 8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8732 break 2 8733 fi 8734done 8735 done 8736IFS=$as_save_IFS 8737 8738 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo" 8739fi 8740fi 8741doc_build_sys=$ac_cv_prog_doc_build_sys 8742if test -n "$doc_build_sys"; then 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5 8744$as_echo "$doc_build_sys" >&6; } 8745else 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8747$as_echo "no" >&6; } 8748fi 8749 8750 8751 8752# -------------------- 8753# Checks for C headers 8754# -------------------- 8755 8756# Need to reject headers which give warnings, so that the -Werror bootstrap 8757# works later. *sigh* This needs to come before all header checks. 8758 8759ac_c_preproc_warn_flag=yes 8760 8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8762$as_echo_n "checking for ANSI C header files... " >&6; } 8763if ${ac_cv_header_stdc+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767/* end confdefs.h. */ 8768#include <stdlib.h> 8769#include <stdarg.h> 8770#include <string.h> 8771#include <float.h> 8772 8773int 8774main () 8775{ 8776 8777 ; 8778 return 0; 8779} 8780_ACEOF 8781if ac_fn_cxx_try_compile "$LINENO"; then : 8782 ac_cv_header_stdc=yes 8783else 8784 ac_cv_header_stdc=no 8785fi 8786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8787 8788if test $ac_cv_header_stdc = yes; then 8789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8791/* end confdefs.h. */ 8792#include <string.h> 8793 8794_ACEOF 8795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8796 $EGREP "memchr" >/dev/null 2>&1; then : 8797 8798else 8799 ac_cv_header_stdc=no 8800fi 8801rm -f conftest* 8802 8803fi 8804 8805if test $ac_cv_header_stdc = yes; then 8806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8808/* end confdefs.h. */ 8809#include <stdlib.h> 8810 8811_ACEOF 8812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8813 $EGREP "free" >/dev/null 2>&1; then : 8814 8815else 8816 ac_cv_header_stdc=no 8817fi 8818rm -f conftest* 8819 8820fi 8821 8822if test $ac_cv_header_stdc = yes; then 8823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8824 if test "$cross_compiling" = yes; then : 8825 : 8826else 8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8828/* end confdefs.h. */ 8829#include <ctype.h> 8830#include <stdlib.h> 8831#if ((' ' & 0x0FF) == 0x020) 8832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8834#else 8835# define ISLOWER(c) \ 8836 (('a' <= (c) && (c) <= 'i') \ 8837 || ('j' <= (c) && (c) <= 'r') \ 8838 || ('s' <= (c) && (c) <= 'z')) 8839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8840#endif 8841 8842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8843int 8844main () 8845{ 8846 int i; 8847 for (i = 0; i < 256; i++) 8848 if (XOR (islower (i), ISLOWER (i)) 8849 || toupper (i) != TOUPPER (i)) 8850 return 2; 8851 return 0; 8852} 8853_ACEOF 8854if ac_fn_cxx_try_run "$LINENO"; then : 8855 8856else 8857 ac_cv_header_stdc=no 8858fi 8859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8860 conftest.$ac_objext conftest.beam conftest.$ac_ext 8861fi 8862 8863fi 8864fi 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8866$as_echo "$ac_cv_header_stdc" >&6; } 8867if test $ac_cv_header_stdc = yes; then 8868 8869$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8870 8871fi 8872 8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 8874$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 8875if ${ac_cv_header_time+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8879/* end confdefs.h. */ 8880#include <sys/types.h> 8881#include <sys/time.h> 8882#include <time.h> 8883 8884int 8885main () 8886{ 8887if ((struct tm *) 0) 8888return 0; 8889 ; 8890 return 0; 8891} 8892_ACEOF 8893if ac_fn_cxx_try_compile "$LINENO"; then : 8894 ac_cv_header_time=yes 8895else 8896 ac_cv_header_time=no 8897fi 8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8899fi 8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 8901$as_echo "$ac_cv_header_time" >&6; } 8902if test $ac_cv_header_time = yes; then 8903 8904$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8905 8906fi 8907 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 8909$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 8910if ${gcc_cv_header_string+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8914/* end confdefs.h. */ 8915#include <string.h> 8916#include <strings.h> 8917int 8918main () 8919{ 8920 8921 ; 8922 return 0; 8923} 8924_ACEOF 8925if ac_fn_cxx_try_compile "$LINENO"; then : 8926 gcc_cv_header_string=yes 8927else 8928 gcc_cv_header_string=no 8929fi 8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8931fi 8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 8933$as_echo "$gcc_cv_header_string" >&6; } 8934if test $gcc_cv_header_string = yes; then 8935 8936$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 8937 8938fi 8939 8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 8941$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 8942if ${ac_cv_header_sys_wait_h+:} false; then : 8943 $as_echo_n "(cached) " >&6 8944else 8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8946/* end confdefs.h. */ 8947#include <sys/types.h> 8948#include <sys/wait.h> 8949#ifndef WEXITSTATUS 8950# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 8951#endif 8952#ifndef WIFEXITED 8953# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 8954#endif 8955 8956int 8957main () 8958{ 8959 int s; 8960 wait (&s); 8961 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 8962 ; 8963 return 0; 8964} 8965_ACEOF 8966if ac_fn_cxx_try_compile "$LINENO"; then : 8967 ac_cv_header_sys_wait_h=yes 8968else 8969 ac_cv_header_sys_wait_h=no 8970fi 8971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8972fi 8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 8974$as_echo "$ac_cv_header_sys_wait_h" >&6; } 8975if test $ac_cv_header_sys_wait_h = yes; then 8976 8977$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 8978 8979fi 8980 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 8982$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } 8983if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8987/* end confdefs.h. */ 8988#include <sys/types.h> 8989#include <termios.h> 8990#ifdef TIOCGWINSZ 8991 yes 8992#endif 8993 8994_ACEOF 8995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8996 $EGREP "yes" >/dev/null 2>&1; then : 8997 ac_cv_sys_tiocgwinsz_in_termios_h=yes 8998else 8999 ac_cv_sys_tiocgwinsz_in_termios_h=no 9000fi 9001rm -f conftest* 9002 9003fi 9004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 9005$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } 9006 9007if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 9009$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } 9010if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012else 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015#include <sys/types.h> 9016#include <sys/ioctl.h> 9017#ifdef TIOCGWINSZ 9018 yes 9019#endif 9020 9021_ACEOF 9022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9023 $EGREP "yes" >/dev/null 2>&1; then : 9024 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 9025else 9026 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 9027fi 9028rm -f conftest* 9029 9030fi 9031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 9032$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } 9033 9034 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 9035 9036$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h 9037 9038 fi 9039fi 9040 9041for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \ 9042 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \ 9043 sys/resource.h sys/param.h sys/times.h sys/stat.h \ 9044 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h 9045do : 9046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9047ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" 9048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9049 cat >>confdefs.h <<_ACEOF 9050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9051_ACEOF 9052 9053fi 9054done 9055 9056 9057# Check for thread headers. 9058ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h" 9059if test "x$ac_cv_header_thread_h" = xyes; then : 9060 have_thread_h=yes 9061else 9062 have_thread_h= 9063fi 9064 9065ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h" 9066if test "x$ac_cv_header_pthread_h" = xyes; then : 9067 have_pthread_h=yes 9068else 9069 have_pthread_h= 9070fi 9071 9072 9073# These tests can't be done till we know if we have limits.h. 9074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5 9075$as_echo_n "checking for CHAR_BIT... " >&6; } 9076if ${gcc_cv_decl_char_bit+:} false; then : 9077 $as_echo_n "(cached) " >&6 9078else 9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9080/* end confdefs.h. */ 9081#ifdef HAVE_LIMITS_H 9082#include <limits.h> 9083#endif 9084#ifdef CHAR_BIT 9085found 9086#endif 9087_ACEOF 9088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9089 $EGREP "found" >/dev/null 2>&1; then : 9090 gcc_cv_decl_char_bit=yes 9091else 9092 gcc_cv_decl_char_bit=no 9093fi 9094rm -f conftest* 9095 9096 9097fi 9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5 9099$as_echo "$gcc_cv_decl_char_bit" >&6; } 9100if test $gcc_cv_decl_char_bit = no; then 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5 9102$as_echo_n "checking number of bits in a byte... " >&6; } 9103if ${gcc_cv_c_nbby+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 i=8 9107 gcc_cv_c_nbby= 9108 while test $i -lt 65; do 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110/* end confdefs.h. */ 9111 9112int 9113main () 9114{ 9115switch(0) { 9116 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i): 9117 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)): 9118 ; } 9119 ; 9120 return 0; 9121} 9122_ACEOF 9123if ac_fn_cxx_try_compile "$LINENO"; then : 9124 gcc_cv_c_nbby=$i; break 9125fi 9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9127 i=`expr $i + 1` 9128 done 9129 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed 9130 9131fi 9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5 9133$as_echo "$gcc_cv_c_nbby" >&6; } 9134if test $gcc_cv_c_nbby = failed; then 9135 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5 9136else 9137 9138cat >>confdefs.h <<_ACEOF 9139#define CHAR_BIT $gcc_cv_c_nbby 9140_ACEOF 9141 9142fi 9143fi 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9145$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9146if ${ac_cv_c_bigendian+:} false; then : 9147 $as_echo_n "(cached) " >&6 9148else 9149 ac_cv_c_bigendian=unknown 9150 # See if we're dealing with a universal compiler. 9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9152/* end confdefs.h. */ 9153#ifndef __APPLE_CC__ 9154 not a universal capable compiler 9155 #endif 9156 typedef int dummy; 9157 9158_ACEOF 9159if ac_fn_cxx_try_compile "$LINENO"; then : 9160 9161 # Check for potential -arch flags. It is not universal unless 9162 # there are at least two -arch flags with different values. 9163 ac_arch= 9164 ac_prev= 9165 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9166 if test -n "$ac_prev"; then 9167 case $ac_word in 9168 i?86 | x86_64 | ppc | ppc64) 9169 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9170 ac_arch=$ac_word 9171 else 9172 ac_cv_c_bigendian=universal 9173 break 9174 fi 9175 ;; 9176 esac 9177 ac_prev= 9178 elif test "x$ac_word" = "x-arch"; then 9179 ac_prev=arch 9180 fi 9181 done 9182fi 9183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9184 if test $ac_cv_c_bigendian = unknown; then 9185 # See if sys/param.h defines the BYTE_ORDER macro. 9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187/* end confdefs.h. */ 9188#include <sys/types.h> 9189 #include <sys/param.h> 9190 9191int 9192main () 9193{ 9194#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9195 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9196 && LITTLE_ENDIAN) 9197 bogus endian macros 9198 #endif 9199 9200 ; 9201 return 0; 9202} 9203_ACEOF 9204if ac_fn_cxx_try_compile "$LINENO"; then : 9205 # It does; now see whether it defined to BIG_ENDIAN or not. 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207/* end confdefs.h. */ 9208#include <sys/types.h> 9209 #include <sys/param.h> 9210 9211int 9212main () 9213{ 9214#if BYTE_ORDER != BIG_ENDIAN 9215 not big endian 9216 #endif 9217 9218 ; 9219 return 0; 9220} 9221_ACEOF 9222if ac_fn_cxx_try_compile "$LINENO"; then : 9223 ac_cv_c_bigendian=yes 9224else 9225 ac_cv_c_bigendian=no 9226fi 9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9228fi 9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9230 fi 9231 if test $ac_cv_c_bigendian = unknown; then 9232 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9234/* end confdefs.h. */ 9235#include <limits.h> 9236 9237int 9238main () 9239{ 9240#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9241 bogus endian macros 9242 #endif 9243 9244 ; 9245 return 0; 9246} 9247_ACEOF 9248if ac_fn_cxx_try_compile "$LINENO"; then : 9249 # It does; now see whether it defined to _BIG_ENDIAN or not. 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251/* end confdefs.h. */ 9252#include <limits.h> 9253 9254int 9255main () 9256{ 9257#ifndef _BIG_ENDIAN 9258 not big endian 9259 #endif 9260 9261 ; 9262 return 0; 9263} 9264_ACEOF 9265if ac_fn_cxx_try_compile "$LINENO"; then : 9266 ac_cv_c_bigendian=yes 9267else 9268 ac_cv_c_bigendian=no 9269fi 9270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9271fi 9272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9273 fi 9274 if test $ac_cv_c_bigendian = unknown; then 9275 # Compile a test program. 9276 if test "$cross_compiling" = yes; then : 9277 # Try to guess by grepping values from an object file. 9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9279/* end confdefs.h. */ 9280short int ascii_mm[] = 9281 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9282 short int ascii_ii[] = 9283 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9284 int use_ascii (int i) { 9285 return ascii_mm[i] + ascii_ii[i]; 9286 } 9287 short int ebcdic_ii[] = 9288 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9289 short int ebcdic_mm[] = 9290 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9291 int use_ebcdic (int i) { 9292 return ebcdic_mm[i] + ebcdic_ii[i]; 9293 } 9294 extern int foo; 9295 9296int 9297main () 9298{ 9299return use_ascii (foo) == use_ebcdic (foo); 9300 ; 9301 return 0; 9302} 9303_ACEOF 9304if ac_fn_cxx_try_compile "$LINENO"; then : 9305 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9306 ac_cv_c_bigendian=yes 9307 fi 9308 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9309 if test "$ac_cv_c_bigendian" = unknown; then 9310 ac_cv_c_bigendian=no 9311 else 9312 # finding both strings is unlikely to happen, but who knows? 9313 ac_cv_c_bigendian=unknown 9314 fi 9315 fi 9316fi 9317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9318else 9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9320/* end confdefs.h. */ 9321$ac_includes_default 9322int 9323main () 9324{ 9325 9326 /* Are we little or big endian? From Harbison&Steele. */ 9327 union 9328 { 9329 long int l; 9330 char c[sizeof (long int)]; 9331 } u; 9332 u.l = 1; 9333 return u.c[sizeof (long int) - 1] == 1; 9334 9335 ; 9336 return 0; 9337} 9338_ACEOF 9339if ac_fn_cxx_try_run "$LINENO"; then : 9340 ac_cv_c_bigendian=no 9341else 9342 ac_cv_c_bigendian=yes 9343fi 9344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9345 conftest.$ac_objext conftest.beam conftest.$ac_ext 9346fi 9347 9348 fi 9349fi 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9351$as_echo "$ac_cv_c_bigendian" >&6; } 9352 case $ac_cv_c_bigendian in #( 9353 yes) 9354 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9355;; #( 9356 no) 9357 ;; #( 9358 universal) 9359 9360$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9361 9362 ;; #( 9363 *) 9364 as_fn_error $? "unknown endianness 9365 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9366 esac 9367 9368 9369# ---------------------- 9370# Checks for C++ headers 9371# ---------------------- 9372 9373ac_ext=cpp 9374ac_cpp='$CXXCPP $CPPFLAGS' 9375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 9379$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 9380if test -z "$CXXCPP"; then 9381 if ${ac_cv_prog_CXXCPP+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 # Double quotes because CXXCPP needs to be expanded 9385 for CXXCPP in "$CXX -E" "/lib/cpp" 9386 do 9387 ac_preproc_ok=false 9388for ac_cxx_preproc_warn_flag in '' yes 9389do 9390 # Use a header file that comes with gcc, so configuring glibc 9391 # with a fresh cross-compiler works. 9392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9393 # <limits.h> exists even on freestanding compilers. 9394 # On the NeXT, cc -E runs the code through the compiler's parser, 9395 # not just through cpp. "Syntax error" is here to catch this case. 9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9397/* end confdefs.h. */ 9398#ifdef __STDC__ 9399# include <limits.h> 9400#else 9401# include <assert.h> 9402#endif 9403 Syntax error 9404_ACEOF 9405if ac_fn_cxx_try_cpp "$LINENO"; then : 9406 9407else 9408 # Broken: fails on valid input. 9409continue 9410fi 9411rm -f conftest.err conftest.i conftest.$ac_ext 9412 9413 # OK, works on sane cases. Now check whether nonexistent headers 9414 # can be detected and how. 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416/* end confdefs.h. */ 9417#include <ac_nonexistent.h> 9418_ACEOF 9419if ac_fn_cxx_try_cpp "$LINENO"; then : 9420 # Broken: success on invalid input. 9421continue 9422else 9423 # Passes both tests. 9424ac_preproc_ok=: 9425break 9426fi 9427rm -f conftest.err conftest.i conftest.$ac_ext 9428 9429done 9430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9431rm -f conftest.i conftest.err conftest.$ac_ext 9432if $ac_preproc_ok; then : 9433 break 9434fi 9435 9436 done 9437 ac_cv_prog_CXXCPP=$CXXCPP 9438 9439fi 9440 CXXCPP=$ac_cv_prog_CXXCPP 9441else 9442 ac_cv_prog_CXXCPP=$CXXCPP 9443fi 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 9445$as_echo "$CXXCPP" >&6; } 9446ac_preproc_ok=false 9447for ac_cxx_preproc_warn_flag in '' yes 9448do 9449 # Use a header file that comes with gcc, so configuring glibc 9450 # with a fresh cross-compiler works. 9451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9452 # <limits.h> exists even on freestanding compilers. 9453 # On the NeXT, cc -E runs the code through the compiler's parser, 9454 # not just through cpp. "Syntax error" is here to catch this case. 9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9456/* end confdefs.h. */ 9457#ifdef __STDC__ 9458# include <limits.h> 9459#else 9460# include <assert.h> 9461#endif 9462 Syntax error 9463_ACEOF 9464if ac_fn_cxx_try_cpp "$LINENO"; then : 9465 9466else 9467 # Broken: fails on valid input. 9468continue 9469fi 9470rm -f conftest.err conftest.i conftest.$ac_ext 9471 9472 # OK, works on sane cases. Now check whether nonexistent headers 9473 # can be detected and how. 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476#include <ac_nonexistent.h> 9477_ACEOF 9478if ac_fn_cxx_try_cpp "$LINENO"; then : 9479 # Broken: success on invalid input. 9480continue 9481else 9482 # Passes both tests. 9483ac_preproc_ok=: 9484break 9485fi 9486rm -f conftest.err conftest.i conftest.$ac_ext 9487 9488done 9489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9490rm -f conftest.i conftest.err conftest.$ac_ext 9491if $ac_preproc_ok; then : 9492 9493else 9494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check 9497See \`config.log' for more details" >&5 9498$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check 9499See \`config.log' for more details" >&2;}; } 9500fi 9501 9502ac_ext=cpp 9503ac_cpp='$CXXCPP $CPPFLAGS' 9504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9507 9508 9509for ac_header in unordered_map 9510do : 9511 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map" 9512if test "x$ac_cv_header_unordered_map" = xyes; then : 9513 cat >>confdefs.h <<_ACEOF 9514#define HAVE_UNORDERED_MAP 1 9515_ACEOF 9516 9517fi 9518done 9519 9520for ac_header in tr1/unordered_map 9521do : 9522 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" 9523if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : 9524 cat >>confdefs.h <<_ACEOF 9525#define HAVE_TR1_UNORDERED_MAP 1 9526_ACEOF 9527 9528fi 9529done 9530 9531for ac_header in ext/hash_map 9532do : 9533 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" 9534if test "x$ac_cv_header_ext_hash_map" = xyes; then : 9535 cat >>confdefs.h <<_ACEOF 9536#define HAVE_EXT_HASH_MAP 1 9537_ACEOF 9538 9539fi 9540done 9541 9542 9543# -------- 9544# Dependency checking. 9545# -------- 9546 9547rm -rf .tst 2>/dev/null 9548mkdir .tst 2>/dev/null 9549if test -d .tst; then 9550 am__leading_dot=. 9551else 9552 am__leading_dot=_ 9553fi 9554rmdir .tst 2>/dev/null 9555 9556DEPDIR="${am__leading_dot}deps" 9557 9558ac_config_commands="$ac_config_commands depdir" 9559 9560 9561ac_config_commands="$ac_config_commands gccdepdir" 9562 9563 9564depcc="$CXX" am_compiler_list= 9565 9566am_depcomp=$ac_aux_dir/depcomp 9567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 9568$as_echo_n "checking dependency style of $depcc... " >&6; } 9569if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 9570 $as_echo_n "(cached) " >&6 9571else 9572 if test -f "$am_depcomp"; then 9573 # We make a subdir and do the tests there. Otherwise we can end up 9574 # making bogus files that we don't know about and never remove. For 9575 # instance it was reported that on HP-UX the gcc test will end up 9576 # making a dummy file named `D' -- because `-MD' means `put the output 9577 # in D'. 9578 mkdir conftest.dir 9579 # Copy depcomp to subdir because otherwise we won't find it if we're 9580 # using a relative directory. 9581 cp "$am_depcomp" conftest.dir 9582 cd conftest.dir 9583 # We will build objects and dependencies in a subdirectory because 9584 # it helps to detect inapplicable dependency modes. For instance 9585 # both Tru64's cc and ICC support -MD to output dependencies as a 9586 # side effect of compilation, but ICC will put the dependencies in 9587 # the current directory while Tru64 will put them in the object 9588 # directory. 9589 mkdir sub 9590 9591 am_cv_CXX_dependencies_compiler_type=none 9592 if test "$am_compiler_list" = ""; then 9593 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 9594 fi 9595 for depmode in $am_compiler_list; do 9596 if test $depmode = none; then break; fi 9597 9598 $as_echo "$as_me:$LINENO: trying $depmode" >&5 9599 # Setup a source with many dependencies, because some compilers 9600 # like to wrap large dependency lists on column 80 (with \), and 9601 # we should not choose a depcomp mode which is confused by this. 9602 # 9603 # We need to recreate these files for each test, as the compiler may 9604 # overwrite some of them when testing with obscure command lines. 9605 # This happens at least with the AIX C compiler. 9606 : > sub/conftest.c 9607 for i in 1 2 3 4 5 6; do 9608 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 9610 # Solaris 8's {/usr,}/bin/sh. 9611 touch sub/conftst$i.h 9612 done 9613 echo "include sub/conftest.Po" > confmf 9614 9615 # We check with `-c' and `-o' for the sake of the "dashmstdout" 9616 # mode. It turns out that the SunPro C++ compiler does not properly 9617 # handle `-M -o', and we need to detect this. 9618 depcmd="depmode=$depmode \ 9619 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 9620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9621 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" 9622 echo "| $depcmd" | sed -e 's/ */ /g' >&5 9623 if env $depcmd > conftest.err 2>&1 && 9624 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && 9625 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && 9626 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then 9627 # icc doesn't choke on unknown options, it will just issue warnings 9628 # or remarks (even with -Werror). So we grep stderr for any message 9629 # that says an option was ignored or not supported. 9630 # When given -MP, icc 7.0 and 7.1 complain thusly: 9631 # icc: Command line warning: ignoring option '-M'; no argument required 9632 # The diagnosis changed in icc 8.0: 9633 # icc: Command line remark: option '-MP' not supported 9634 if (grep 'ignoring option' conftest.err || 9635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9636 am_cv_CXX_dependencies_compiler_type=$depmode 9637 $as_echo "$as_me:$LINENO: success" >&5 9638 break 9639 fi 9640 fi 9641 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 9642 sed -e 's/^/| /' < conftest.err >&5 9643 done 9644 9645 cd .. 9646 rm -rf conftest.dir 9647else 9648 am_cv_CXX_dependencies_compiler_type=none 9649fi 9650 9651fi 9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 9653$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 9654if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone 9655then as_fn_error $? "no usable dependency style found" "$LINENO" 5 9656else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 9657 9658fi 9659 9660 9661# -------- 9662# UNSORTED 9663# -------- 9664 9665 9666# These libraries may be used by collect2. 9667# We may need a special search path to get them linked. 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5 9669$as_echo_n "checking for collect2 libraries... " >&6; } 9670if ${gcc_cv_collect2_libs+:} false; then : 9671 $as_echo_n "(cached) " >&6 9672else 9673 save_LIBS="$LIBS" 9674for libs in '' -lld -lmld \ 9675 '-L/usr/lib/cmplrs/cc2.11 -lmld' \ 9676 '-L/usr/lib/cmplrs/cc3.11 -lmld' 9677do 9678 LIBS="$libs" 9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9680/* end confdefs.h. */ 9681 9682/* Override any GCC internal prototype to avoid an error. 9683 Use char because int might match the return type of a GCC 9684 builtin and then its argument prototype would still apply. */ 9685#ifdef __cplusplus 9686extern "C" 9687#endif 9688char ldopen (); 9689int 9690main () 9691{ 9692return ldopen (); 9693 ; 9694 return 0; 9695} 9696_ACEOF 9697if ac_fn_cxx_try_link "$LINENO"; then : 9698 gcc_cv_collect2_libs="$libs"; break 9699fi 9700rm -f core conftest.err conftest.$ac_objext \ 9701 conftest$ac_exeext conftest.$ac_ext 9702done 9703LIBS="$save_LIBS" 9704test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required' 9705fi 9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5 9707$as_echo "$gcc_cv_collect2_libs" >&6; } 9708case $gcc_cv_collect2_libs in 9709 "none required") ;; 9710 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;; 9711esac 9712 9713 9714# When building Ada code on Alpha, we need exc_resume which is usually in 9715# -lexc. So test for it. 9716save_LIBS="$LIBS" 9717LIBS= 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5 9719$as_echo_n "checking for library containing exc_resume... " >&6; } 9720if ${ac_cv_search_exc_resume+:} false; then : 9721 $as_echo_n "(cached) " >&6 9722else 9723 ac_func_search_save_LIBS=$LIBS 9724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9725/* end confdefs.h. */ 9726 9727/* Override any GCC internal prototype to avoid an error. 9728 Use char because int might match the return type of a GCC 9729 builtin and then its argument prototype would still apply. */ 9730#ifdef __cplusplus 9731extern "C" 9732#endif 9733char exc_resume (); 9734int 9735main () 9736{ 9737return exc_resume (); 9738 ; 9739 return 0; 9740} 9741_ACEOF 9742for ac_lib in '' exc; do 9743 if test -z "$ac_lib"; then 9744 ac_res="none required" 9745 else 9746 ac_res=-l$ac_lib 9747 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9748 fi 9749 if ac_fn_cxx_try_link "$LINENO"; then : 9750 ac_cv_search_exc_resume=$ac_res 9751fi 9752rm -f core conftest.err conftest.$ac_objext \ 9753 conftest$ac_exeext 9754 if ${ac_cv_search_exc_resume+:} false; then : 9755 break 9756fi 9757done 9758if ${ac_cv_search_exc_resume+:} false; then : 9759 9760else 9761 ac_cv_search_exc_resume=no 9762fi 9763rm conftest.$ac_ext 9764LIBS=$ac_func_search_save_LIBS 9765fi 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5 9767$as_echo "$ac_cv_search_exc_resume" >&6; } 9768ac_res=$ac_cv_search_exc_resume 9769if test "$ac_res" != no; then : 9770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9771 9772fi 9773 9774GNAT_LIBEXC="$LIBS" 9775LIBS="$save_LIBS" 9776 9777 9778# To support -mcpu=native on Solaris/SPARC, we need libkstat. 9779save_LIBS="$LIBS" 9780LIBS= 9781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5 9782$as_echo_n "checking for library containing kstat_open... " >&6; } 9783if ${ac_cv_search_kstat_open+:} false; then : 9784 $as_echo_n "(cached) " >&6 9785else 9786 ac_func_search_save_LIBS=$LIBS 9787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788/* end confdefs.h. */ 9789 9790/* Override any GCC internal prototype to avoid an error. 9791 Use char because int might match the return type of a GCC 9792 builtin and then its argument prototype would still apply. */ 9793#ifdef __cplusplus 9794extern "C" 9795#endif 9796char kstat_open (); 9797int 9798main () 9799{ 9800return kstat_open (); 9801 ; 9802 return 0; 9803} 9804_ACEOF 9805for ac_lib in '' kstat; do 9806 if test -z "$ac_lib"; then 9807 ac_res="none required" 9808 else 9809 ac_res=-l$ac_lib 9810 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9811 fi 9812 if ac_fn_cxx_try_link "$LINENO"; then : 9813 ac_cv_search_kstat_open=$ac_res 9814fi 9815rm -f core conftest.err conftest.$ac_objext \ 9816 conftest$ac_exeext 9817 if ${ac_cv_search_kstat_open+:} false; then : 9818 break 9819fi 9820done 9821if ${ac_cv_search_kstat_open+:} false; then : 9822 9823else 9824 ac_cv_search_kstat_open=no 9825fi 9826rm conftest.$ac_ext 9827LIBS=$ac_func_search_save_LIBS 9828fi 9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5 9830$as_echo "$ac_cv_search_kstat_open" >&6; } 9831ac_res=$ac_cv_search_kstat_open 9832if test "$ac_res" != no; then : 9833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9834 9835fi 9836 9837EXTRA_GCC_LIBS="$LIBS" 9838LIBS="$save_LIBS" 9839 9840 9841# Some systems put ldexp and frexp in libm instead of libc; assume 9842# they're both in the same place. jcf-dump needs them. 9843save_LIBS="$LIBS" 9844LIBS= 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5 9846$as_echo_n "checking for library containing ldexp... " >&6; } 9847if ${ac_cv_search_ldexp+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 ac_func_search_save_LIBS=$LIBS 9851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853 9854/* Override any GCC internal prototype to avoid an error. 9855 Use char because int might match the return type of a GCC 9856 builtin and then its argument prototype would still apply. */ 9857#ifdef __cplusplus 9858extern "C" 9859#endif 9860char ldexp (); 9861int 9862main () 9863{ 9864return ldexp (); 9865 ; 9866 return 0; 9867} 9868_ACEOF 9869for ac_lib in '' m; do 9870 if test -z "$ac_lib"; then 9871 ac_res="none required" 9872 else 9873 ac_res=-l$ac_lib 9874 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9875 fi 9876 if ac_fn_cxx_try_link "$LINENO"; then : 9877 ac_cv_search_ldexp=$ac_res 9878fi 9879rm -f core conftest.err conftest.$ac_objext \ 9880 conftest$ac_exeext 9881 if ${ac_cv_search_ldexp+:} false; then : 9882 break 9883fi 9884done 9885if ${ac_cv_search_ldexp+:} false; then : 9886 9887else 9888 ac_cv_search_ldexp=no 9889fi 9890rm conftest.$ac_ext 9891LIBS=$ac_func_search_save_LIBS 9892fi 9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5 9894$as_echo "$ac_cv_search_ldexp" >&6; } 9895ac_res=$ac_cv_search_ldexp 9896if test "$ac_res" != no; then : 9897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9898 9899fi 9900 9901LDEXP_LIB="$LIBS" 9902LIBS="$save_LIBS" 9903 9904 9905# Some systems need dlopen 9906save_LIBS="$LIBS" 9907LIBS= 9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 9909$as_echo_n "checking for library containing dlopen... " >&6; } 9910if ${ac_cv_search_dlopen+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912else 9913 ac_func_search_save_LIBS=$LIBS 9914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9915/* end confdefs.h. */ 9916 9917/* Override any GCC internal prototype to avoid an error. 9918 Use char because int might match the return type of a GCC 9919 builtin and then its argument prototype would still apply. */ 9920#ifdef __cplusplus 9921extern "C" 9922#endif 9923char dlopen (); 9924int 9925main () 9926{ 9927return dlopen (); 9928 ; 9929 return 0; 9930} 9931_ACEOF 9932for ac_lib in '' dl; do 9933 if test -z "$ac_lib"; then 9934 ac_res="none required" 9935 else 9936 ac_res=-l$ac_lib 9937 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9938 fi 9939 if ac_fn_cxx_try_link "$LINENO"; then : 9940 ac_cv_search_dlopen=$ac_res 9941fi 9942rm -f core conftest.err conftest.$ac_objext \ 9943 conftest$ac_exeext 9944 if ${ac_cv_search_dlopen+:} false; then : 9945 break 9946fi 9947done 9948if ${ac_cv_search_dlopen+:} false; then : 9949 9950else 9951 ac_cv_search_dlopen=no 9952fi 9953rm conftest.$ac_ext 9954LIBS=$ac_func_search_save_LIBS 9955fi 9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 9957$as_echo "$ac_cv_search_dlopen" >&6; } 9958ac_res=$ac_cv_search_dlopen 9959if test "$ac_res" != no; then : 9960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9961 9962fi 9963 9964DL_LIB="$LIBS" 9965LIBS="$save_LIBS" 9966 9967 9968# Use <inttypes.h> only if it exists, 9969# doesn't clash with <sys/types.h>, declares intmax_t and defines 9970# PRId64 9971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 9972$as_echo_n "checking for inttypes.h... " >&6; } 9973if ${gcc_cv_header_inttypes_h+:} false; then : 9974 $as_echo_n "(cached) " >&6 9975else 9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9977/* end confdefs.h. */ 9978#define __STDC_FORMAT_MACROS 9979#include <sys/types.h> 9980#include <inttypes.h> 9981int 9982main () 9983{ 9984intmax_t i = -1; 9985#ifndef PRId64 9986choke me 9987#endif 9988 ; 9989 return 0; 9990} 9991_ACEOF 9992if ac_fn_cxx_try_compile "$LINENO"; then : 9993 gcc_cv_header_inttypes_h=yes 9994else 9995 gcc_cv_header_inttypes_h=no 9996fi 9997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9998fi 9999 10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5 10001$as_echo "$gcc_cv_header_inttypes_h" >&6; } 10002if test $gcc_cv_header_inttypes_h = yes; then 10003 10004$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h 10005 10006fi 10007 10008# Look for the ZSTD package. 10009ZSTD_INCLUDE= 10010ZSTD_LIB= 10011 10012 10013ZSTD_CPPFLAGS= 10014ZSTD_LDFLAGS= 10015 10016# Check whether --with-zstd was given. 10017if test "${with_zstd+set}" = set; then : 10018 withval=$with_zstd; 10019fi 10020 10021 10022# Check whether --with-zstd-include was given. 10023if test "${with_zstd_include+set}" = set; then : 10024 withval=$with_zstd_include; 10025fi 10026 10027 10028# Check whether --with-zstd-lib was given. 10029if test "${with_zstd_lib+set}" = set; then : 10030 withval=$with_zstd_lib; 10031fi 10032 10033case "x$with_zstd" in 10034 x) ;; 10035 xno) 10036 ZSTD_INCLUDE= 10037 ZSTD_LIB= 10038 ;; 10039 *) ZSTD_INCLUDE=$with_zstd/include 10040 ZSTD_LIB=$with_zstd/lib 10041 ;; 10042esac 10043 10044if test "x$with_zstd" != xno; then 10045if test "x$with_zstd_include" != x; then 10046 ZSTD_INCLUDE=$with_zstd_include 10047fi 10048if test "x$with_zstd_lib" != x; then 10049 ZSTD_LIB=$with_zstd_lib 10050fi 10051if test "x$ZSTD_INCLUDE" != x \ 10052 && test "x$ZSTD_INCLUDE" != xno; then 10053 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE 10054fi 10055if test "x$ZSTD_LIB" != x \ 10056 && test "x$ZSTD_LIB" != xno; then 10057 ZSTD_LDFLAGS=-L$ZSTD_LIB 10058fi 10059 10060CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS" 10061LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS" 10062 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5 10064$as_echo_n "checking for zstd.h... " >&6; } 10065if ${gcc_cv_header_zstd_h+:} false; then : 10066 $as_echo_n "(cached) " >&6 10067else 10068 # We require version 1.3.0 or later. This is the first version that has 10069# ZSTD_getFrameContentSize. 10070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071/* end confdefs.h. */ 10072#include <zstd.h> 10073#if ZSTD_VERSION_NUMBER < 10300 10074#error "need zstd 1.3.0 or better" 10075#endif 10076int 10077main () 10078{ 10079 10080 ; 10081 return 0; 10082} 10083_ACEOF 10084if ac_fn_cxx_try_compile "$LINENO"; then : 10085 gcc_cv_header_zstd_h=yes 10086else 10087 gcc_cv_header_zstd_h=no 10088fi 10089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10090fi 10091 10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5 10093$as_echo "$gcc_cv_header_zstd_h" >&6; } 10094if test $gcc_cv_header_zstd_h = yes; then 10095 10096$as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h 10097 10098elif test "x$with_zstd" != x; then 10099 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5 10100fi 10101 10102# LTO can use zstd compression algorithm 10103save_LIBS="$LIBS" 10104LIBS= 10105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5 10106$as_echo_n "checking for library containing ZSTD_compress... " >&6; } 10107if ${ac_cv_search_ZSTD_compress+:} false; then : 10108 $as_echo_n "(cached) " >&6 10109else 10110 ac_func_search_save_LIBS=$LIBS 10111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10112/* end confdefs.h. */ 10113 10114/* Override any GCC internal prototype to avoid an error. 10115 Use char because int might match the return type of a GCC 10116 builtin and then its argument prototype would still apply. */ 10117#ifdef __cplusplus 10118extern "C" 10119#endif 10120char ZSTD_compress (); 10121int 10122main () 10123{ 10124return ZSTD_compress (); 10125 ; 10126 return 0; 10127} 10128_ACEOF 10129for ac_lib in '' zstd; do 10130 if test -z "$ac_lib"; then 10131 ac_res="none required" 10132 else 10133 ac_res=-l$ac_lib 10134 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10135 fi 10136 if ac_fn_cxx_try_link "$LINENO"; then : 10137 ac_cv_search_ZSTD_compress=$ac_res 10138fi 10139rm -f core conftest.err conftest.$ac_objext \ 10140 conftest$ac_exeext 10141 if ${ac_cv_search_ZSTD_compress+:} false; then : 10142 break 10143fi 10144done 10145if ${ac_cv_search_ZSTD_compress+:} false; then : 10146 10147else 10148 ac_cv_search_ZSTD_compress=no 10149fi 10150rm conftest.$ac_ext 10151LIBS=$ac_func_search_save_LIBS 10152fi 10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5 10154$as_echo "$ac_cv_search_ZSTD_compress" >&6; } 10155ac_res=$ac_cv_search_ZSTD_compress 10156if test "$ac_res" != no; then : 10157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10158 10159fi 10160 10161ZSTD_LIB="$LIBS" 10162LIBS="$save_LIBS" 10163 10164fi 10165 10166 10167 10168for ac_func in times clock kill getrlimit setrlimit atoq \ 10169 popen sysconf strsignal getrusage nl_langinfo \ 10170 gettimeofday mbstowcs wcswidth mmap setlocale \ 10171 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 10172do : 10173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10174ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10175if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10176 cat >>confdefs.h <<_ACEOF 10177#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10178_ACEOF 10179 10180fi 10181done 10182 10183 10184if test x$ac_cv_func_mbstowcs = xyes; then 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5 10186$as_echo_n "checking whether mbstowcs works... " >&6; } 10187if ${gcc_cv_func_mbstowcs_works+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 if test "$cross_compiling" = yes; then : 10191 gcc_cv_func_mbstowcs_works=yes 10192else 10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10194/* end confdefs.h. */ 10195#include <stdlib.h> 10196int main() 10197{ 10198 mbstowcs(0, "", 0); 10199 return 0; 10200} 10201_ACEOF 10202if ac_fn_cxx_try_run "$LINENO"; then : 10203 gcc_cv_func_mbstowcs_works=yes 10204else 10205 gcc_cv_func_mbstowcs_works=no 10206fi 10207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10208 conftest.$ac_objext conftest.beam conftest.$ac_ext 10209fi 10210 10211fi 10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5 10213$as_echo "$gcc_cv_func_mbstowcs_works" >&6; } 10214 if test x$gcc_cv_func_mbstowcs_works = xyes; then 10215 10216$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h 10217 10218 fi 10219fi 10220 10221ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 10222if test "x$ac_cv_type_ssize_t" = xyes; then : 10223 10224else 10225 10226cat >>confdefs.h <<_ACEOF 10227#define ssize_t int 10228_ACEOF 10229 10230fi 10231 10232ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default" 10233if test "x$ac_cv_type_caddr_t" = xyes; then : 10234 10235else 10236 10237cat >>confdefs.h <<_ACEOF 10238#define caddr_t char * 10239_ACEOF 10240 10241fi 10242 10243 10244 10245ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" 10246if test "x$ac_cv_header_sys_mman_h" = xyes; then : 10247 gcc_header_sys_mman_h=yes 10248else 10249 gcc_header_sys_mman_h=no 10250fi 10251 10252ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 10253if test "x$ac_cv_func_mmap" = xyes; then : 10254 gcc_func_mmap=yes 10255else 10256 gcc_func_mmap=no 10257fi 10258 10259if test "$gcc_header_sys_mman_h" != yes \ 10260 || test "$gcc_func_mmap" != yes; then 10261 gcc_cv_func_mmap_file=no 10262 gcc_cv_func_mmap_dev_zero=no 10263 gcc_cv_func_mmap_anon=no 10264else 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5 10266$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; } 10267if ${gcc_cv_func_mmap_file+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 # Add a system to this blacklist if 10271 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 10272 # memory area containing the same data that you'd get if you applied 10273 # read() to the same fd. The only system known to have a problem here 10274 # is VMS, where text files have record structure. 10275 case "$host_os" in 10276 *vms* | ultrix*) 10277 gcc_cv_func_mmap_file=no ;; 10278 *) 10279 gcc_cv_func_mmap_file=yes;; 10280 esac 10281fi 10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5 10283$as_echo "$gcc_cv_func_mmap_file" >&6; } 10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5 10285$as_echo_n "checking whether mmap from /dev/zero works... " >&6; } 10286if ${gcc_cv_func_mmap_dev_zero+:} false; then : 10287 $as_echo_n "(cached) " >&6 10288else 10289 # Add a system to this blacklist if it has mmap() but /dev/zero 10290 # does not exist, or if mmapping /dev/zero does not give anonymous 10291 # zeroed pages with both the following properties: 10292 # 1. If you map N consecutive pages in with one call, and then 10293 # unmap any subset of those pages, the pages that were not 10294 # explicitly unmapped remain accessible. 10295 # 2. If you map two adjacent blocks of memory and then unmap them 10296 # both at once, they must both go away. 10297 # Systems known to be in this category are Windows (all variants), 10298 # VMS, and Darwin. 10299 case "$host_os" in 10300 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) 10301 gcc_cv_func_mmap_dev_zero=no ;; 10302 *) 10303 gcc_cv_func_mmap_dev_zero=yes;; 10304 esac 10305fi 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5 10307$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; } 10308 10309 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5 10311$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; } 10312if ${gcc_cv_decl_map_anon+:} false; then : 10313 $as_echo_n "(cached) " >&6 10314else 10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10316/* end confdefs.h. */ 10317#include <sys/types.h> 10318#include <sys/mman.h> 10319#include <unistd.h> 10320 10321#ifndef MAP_ANONYMOUS 10322#define MAP_ANONYMOUS MAP_ANON 10323#endif 10324 10325int 10326main () 10327{ 10328int n = MAP_ANONYMOUS; 10329 ; 10330 return 0; 10331} 10332_ACEOF 10333if ac_fn_cxx_try_compile "$LINENO"; then : 10334 gcc_cv_decl_map_anon=yes 10335else 10336 gcc_cv_decl_map_anon=no 10337fi 10338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10339fi 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5 10341$as_echo "$gcc_cv_decl_map_anon" >&6; } 10342 10343 if test $gcc_cv_decl_map_anon = no; then 10344 gcc_cv_func_mmap_anon=no 10345 else 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5 10347$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; } 10348if ${gcc_cv_func_mmap_anon+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350else 10351 # Add a system to this blacklist if it has mmap() and MAP_ANON or 10352 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 10353 # doesn't give anonymous zeroed pages with the same properties listed 10354 # above for use of /dev/zero. 10355 # Systems known to be in this category are Windows, VMS, and SCO Unix. 10356 case "$host_os" in 10357 *vms* | cygwin* | pe | mingw* | sco* | udk* ) 10358 gcc_cv_func_mmap_anon=no ;; 10359 *) 10360 gcc_cv_func_mmap_anon=yes;; 10361 esac 10362fi 10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5 10364$as_echo "$gcc_cv_func_mmap_anon" >&6; } 10365 fi 10366fi 10367 10368if test $gcc_cv_func_mmap_file = yes; then 10369 10370$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h 10371 10372fi 10373if test $gcc_cv_func_mmap_dev_zero = yes; then 10374 10375$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h 10376 10377fi 10378if test $gcc_cv_func_mmap_anon = yes; then 10379 10380$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h 10381 10382fi 10383 10384 10385case "${host}" in 10386*-*-*vms*) 10387 # Under VMS, vfork works very differently than on Unix. The standard test 10388 # won't work, and it isn't easily adaptable. It makes more sense to 10389 # just force it. 10390 ac_cv_func_vfork_works=yes 10391 ;; 10392esac 10393ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10394if test "x$ac_cv_type_pid_t" = xyes; then : 10395 10396else 10397 10398cat >>confdefs.h <<_ACEOF 10399#define pid_t int 10400_ACEOF 10401 10402fi 10403 10404for ac_header in vfork.h 10405do : 10406 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h" 10407if test "x$ac_cv_header_vfork_h" = xyes; then : 10408 cat >>confdefs.h <<_ACEOF 10409#define HAVE_VFORK_H 1 10410_ACEOF 10411 10412fi 10413done 10414 10415for ac_func in fork vfork 10416do : 10417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10418ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10419if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10420 cat >>confdefs.h <<_ACEOF 10421#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10422_ACEOF 10423 10424fi 10425done 10426 10427if test "x$ac_cv_func_fork" = xyes; then 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 10429$as_echo_n "checking for working fork... " >&6; } 10430if ${ac_cv_func_fork_works+:} false; then : 10431 $as_echo_n "(cached) " >&6 10432else 10433 if test "$cross_compiling" = yes; then : 10434 ac_cv_func_fork_works=cross 10435else 10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10437/* end confdefs.h. */ 10438$ac_includes_default 10439int 10440main () 10441{ 10442 10443 /* By Ruediger Kuhlmann. */ 10444 return fork () < 0; 10445 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450if ac_fn_cxx_try_run "$LINENO"; then : 10451 ac_cv_func_fork_works=yes 10452else 10453 ac_cv_func_fork_works=no 10454fi 10455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10456 conftest.$ac_objext conftest.beam conftest.$ac_ext 10457fi 10458 10459fi 10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 10461$as_echo "$ac_cv_func_fork_works" >&6; } 10462 10463else 10464 ac_cv_func_fork_works=$ac_cv_func_fork 10465fi 10466if test "x$ac_cv_func_fork_works" = xcross; then 10467 case $host in 10468 *-*-amigaos* | *-*-msdosdjgpp*) 10469 # Override, as these systems have only a dummy fork() stub 10470 ac_cv_func_fork_works=no 10471 ;; 10472 *) 10473 ac_cv_func_fork_works=yes 10474 ;; 10475 esac 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 10477$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 10478fi 10479ac_cv_func_vfork_works=$ac_cv_func_vfork 10480if test "x$ac_cv_func_vfork" = xyes; then 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 10482$as_echo_n "checking for working vfork... " >&6; } 10483if ${ac_cv_func_vfork_works+:} false; then : 10484 $as_echo_n "(cached) " >&6 10485else 10486 if test "$cross_compiling" = yes; then : 10487 ac_cv_func_vfork_works=cross 10488else 10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491/* Thanks to Paul Eggert for this test. */ 10492$ac_includes_default 10493#include <sys/wait.h> 10494#ifdef HAVE_VFORK_H 10495# include <vfork.h> 10496#endif 10497/* On some sparc systems, changes by the child to local and incoming 10498 argument registers are propagated back to the parent. The compiler 10499 is told about this with #include <vfork.h>, but some compilers 10500 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 10501 static variable whose address is put into a register that is 10502 clobbered by the vfork. */ 10503static void 10504#ifdef __cplusplus 10505sparc_address_test (int arg) 10506# else 10507sparc_address_test (arg) int arg; 10508#endif 10509{ 10510 static pid_t child; 10511 if (!child) { 10512 child = vfork (); 10513 if (child < 0) { 10514 perror ("vfork"); 10515 _exit(2); 10516 } 10517 if (!child) { 10518 arg = getpid(); 10519 write(-1, "", 0); 10520 _exit (arg); 10521 } 10522 } 10523} 10524 10525int 10526main () 10527{ 10528 pid_t parent = getpid (); 10529 pid_t child; 10530 10531 sparc_address_test (0); 10532 10533 child = vfork (); 10534 10535 if (child == 0) { 10536 /* Here is another test for sparc vfork register problems. This 10537 test uses lots of local variables, at least as many local 10538 variables as main has allocated so far including compiler 10539 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 10540 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 10541 reuse the register of parent for one of the local variables, 10542 since it will think that parent can't possibly be used any more 10543 in this routine. Assigning to the local variable will thus 10544 munge parent in the parent process. */ 10545 pid_t 10546 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 10547 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 10548 /* Convince the compiler that p..p7 are live; otherwise, it might 10549 use the same hardware register for all 8 local variables. */ 10550 if (p != p1 || p != p2 || p != p3 || p != p4 10551 || p != p5 || p != p6 || p != p7) 10552 _exit(1); 10553 10554 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 10555 from child file descriptors. If the child closes a descriptor 10556 before it execs or exits, this munges the parent's descriptor 10557 as well. Test for this by closing stdout in the child. */ 10558 _exit(close(fileno(stdout)) != 0); 10559 } else { 10560 int status; 10561 struct stat st; 10562 10563 while (wait(&status) != child) 10564 ; 10565 return ( 10566 /* Was there some problem with vforking? */ 10567 child < 0 10568 10569 /* Did the child fail? (This shouldn't happen.) */ 10570 || status 10571 10572 /* Did the vfork/compiler bug occur? */ 10573 || parent != getpid() 10574 10575 /* Did the file descriptor bug occur? */ 10576 || fstat(fileno(stdout), &st) != 0 10577 ); 10578 } 10579} 10580_ACEOF 10581if ac_fn_cxx_try_run "$LINENO"; then : 10582 ac_cv_func_vfork_works=yes 10583else 10584 ac_cv_func_vfork_works=no 10585fi 10586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10587 conftest.$ac_objext conftest.beam conftest.$ac_ext 10588fi 10589 10590fi 10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 10592$as_echo "$ac_cv_func_vfork_works" >&6; } 10593 10594fi; 10595if test "x$ac_cv_func_fork_works" = xcross; then 10596 ac_cv_func_vfork_works=$ac_cv_func_vfork 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 10598$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 10599fi 10600 10601if test "x$ac_cv_func_vfork_works" = xyes; then 10602 10603$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 10604 10605else 10606 10607$as_echo "#define vfork fork" >>confdefs.h 10608 10609fi 10610if test "x$ac_cv_func_fork_works" = xyes; then 10611 10612$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 10613 10614fi 10615 10616 10617 10618 if test "X$prefix" = "XNONE"; then 10619 acl_final_prefix="$ac_default_prefix" 10620 else 10621 acl_final_prefix="$prefix" 10622 fi 10623 if test "X$exec_prefix" = "XNONE"; then 10624 acl_final_exec_prefix='${prefix}' 10625 else 10626 acl_final_exec_prefix="$exec_prefix" 10627 fi 10628 acl_save_prefix="$prefix" 10629 prefix="$acl_final_prefix" 10630 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10631 prefix="$acl_save_prefix" 10632 10633 10634# Check whether --with-gnu-ld was given. 10635if test "${with_gnu_ld+set}" = set; then : 10636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10637else 10638 with_gnu_ld=no 10639fi 10640 10641# Prepare PATH_SEPARATOR. 10642# The user is always right. 10643if test "${PATH_SEPARATOR+set}" != set; then 10644 echo "#! /bin/sh" >conf$$.sh 10645 echo "exit 0" >>conf$$.sh 10646 chmod +x conf$$.sh 10647 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10648 PATH_SEPARATOR=';' 10649 else 10650 PATH_SEPARATOR=: 10651 fi 10652 rm -f conf$$.sh 10653fi 10654ac_prog=ld 10655if test "$GCC" = yes; then 10656 # Check if gcc -print-prog-name=ld gives a path. 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 10658$as_echo_n "checking for ld used by GCC... " >&6; } 10659 case $host in 10660 *-*-mingw*) 10661 # gcc leaves a trailing carriage return which upsets mingw 10662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10663 *) 10664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10665 esac 10666 case $ac_prog in 10667 # Accept absolute paths. 10668 [\\/]* | [A-Za-z]:[\\/]*) 10669 re_direlt='/[^/][^/]*/\.\./' 10670 # Canonicalize the path of ld 10671 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10672 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10673 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10674 done 10675 test -z "$LD" && LD="$ac_prog" 10676 ;; 10677 "") 10678 # If it fails, then pretend we aren't using GCC. 10679 ac_prog=ld 10680 ;; 10681 *) 10682 # If it is relative, then search for the first ld in PATH. 10683 with_gnu_ld=unknown 10684 ;; 10685 esac 10686elif test "$with_gnu_ld" = yes; then 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10688$as_echo_n "checking for GNU ld... " >&6; } 10689else 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10691$as_echo_n "checking for non-GNU ld... " >&6; } 10692fi 10693if ${acl_cv_path_LD+:} false; then : 10694 $as_echo_n "(cached) " >&6 10695else 10696 if test -z "$LD"; then 10697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10698 for ac_dir in $PATH; do 10699 test -z "$ac_dir" && ac_dir=. 10700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10701 acl_cv_path_LD="$ac_dir/$ac_prog" 10702 # Check to see if the program is GNU ld. I'd rather use --version, 10703 # but apparently some GNU ld's only accept -v. 10704 # Break only if it was the GNU/non-GNU ld that we prefer. 10705 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 10706 test "$with_gnu_ld" != no && break 10707 else 10708 test "$with_gnu_ld" != yes && break 10709 fi 10710 fi 10711 done 10712 IFS="$ac_save_ifs" 10713else 10714 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10715fi 10716fi 10717 10718LD="$acl_cv_path_LD" 10719if test -n "$LD"; then 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10721$as_echo "$LD" >&6; } 10722else 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10724$as_echo "no" >&6; } 10725fi 10726test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10728$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10729if ${acl_cv_prog_gnu_ld+:} false; then : 10730 $as_echo_n "(cached) " >&6 10731else 10732 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10733if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 10734 acl_cv_prog_gnu_ld=yes 10735else 10736 acl_cv_prog_gnu_ld=no 10737fi 10738fi 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 10740$as_echo "$acl_cv_prog_gnu_ld" >&6; } 10741with_gnu_ld=$acl_cv_prog_gnu_ld 10742 10743 10744 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 10746$as_echo_n "checking for shared library run path origin... " >&6; } 10747if ${acl_cv_rpath+:} false; then : 10748 $as_echo_n "(cached) " >&6 10749else 10750 10751 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10752 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10753 . ./conftest.sh 10754 rm -f ./conftest.sh 10755 acl_cv_rpath=done 10756 10757fi 10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 10759$as_echo "$acl_cv_rpath" >&6; } 10760 wl="$acl_cv_wl" 10761 libext="$acl_cv_libext" 10762 shlibext="$acl_cv_shlibext" 10763 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10764 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10765 hardcode_direct="$acl_cv_hardcode_direct" 10766 hardcode_minus_L="$acl_cv_hardcode_minus_L" 10767 # Check whether --enable-rpath was given. 10768if test "${enable_rpath+set}" = set; then : 10769 enableval=$enable_rpath; : 10770else 10771 enable_rpath=yes 10772fi 10773 10774 10775 10776 10777 10778 10779 10780 10781 use_additional=yes 10782 10783 acl_save_prefix="$prefix" 10784 prefix="$acl_final_prefix" 10785 acl_save_exec_prefix="$exec_prefix" 10786 exec_prefix="$acl_final_exec_prefix" 10787 10788 eval additional_includedir=\"$includedir\" 10789 eval additional_libdir=\"$libdir\" 10790 10791 exec_prefix="$acl_save_exec_prefix" 10792 prefix="$acl_save_prefix" 10793 10794 10795# Check whether --with-libiconv-prefix was given. 10796if test "${with_libiconv_prefix+set}" = set; then : 10797 withval=$with_libiconv_prefix; 10798 if test "X$withval" = "Xno"; then 10799 use_additional=no 10800 else 10801 if test "X$withval" = "X"; then 10802 10803 acl_save_prefix="$prefix" 10804 prefix="$acl_final_prefix" 10805 acl_save_exec_prefix="$exec_prefix" 10806 exec_prefix="$acl_final_exec_prefix" 10807 10808 eval additional_includedir=\"$includedir\" 10809 eval additional_libdir=\"$libdir\" 10810 10811 exec_prefix="$acl_save_exec_prefix" 10812 prefix="$acl_save_prefix" 10813 10814 else 10815 additional_includedir="$withval/include" 10816 additional_libdir="$withval/lib" 10817 fi 10818 fi 10819 10820fi 10821 10822 10823# Check whether --with-libiconv-type was given. 10824if test "${with_libiconv_type+set}" = set; then : 10825 withval=$with_libiconv_type; with_libiconv_type=$withval 10826else 10827 with_libiconv_type=auto 10828fi 10829 10830 lib_type=`eval echo \$with_libiconv_type` 10831 10832 LIBICONV= 10833 LTLIBICONV= 10834 INCICONV= 10835 rpathdirs= 10836 ltrpathdirs= 10837 names_already_handled= 10838 names_next_round='iconv ' 10839 while test -n "$names_next_round"; do 10840 names_this_round="$names_next_round" 10841 names_next_round= 10842 for name in $names_this_round; do 10843 already_handled= 10844 for n in $names_already_handled; do 10845 if test "$n" = "$name"; then 10846 already_handled=yes 10847 break 10848 fi 10849 done 10850 if test -z "$already_handled"; then 10851 names_already_handled="$names_already_handled $name" 10852 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10853 eval value=\"\$HAVE_LIB$uppername\" 10854 if test -n "$value"; then 10855 if test "$value" = yes; then 10856 eval value=\"\$LIB$uppername\" 10857 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10858 eval value=\"\$LTLIB$uppername\" 10859 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10860 else 10861 : 10862 fi 10863 else 10864 found_dir= 10865 found_la= 10866 found_so= 10867 found_a= 10868 if test $use_additional = yes; then 10869 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 10870 found_dir="$additional_libdir" 10871 found_so="$additional_libdir/lib$name.$shlibext" 10872 if test -f "$additional_libdir/lib$name.la"; then 10873 found_la="$additional_libdir/lib$name.la" 10874 fi 10875 elif test x$lib_type != xshared; then 10876 if test -f "$additional_libdir/lib$name.$libext"; then 10877 found_dir="$additional_libdir" 10878 found_a="$additional_libdir/lib$name.$libext" 10879 if test -f "$additional_libdir/lib$name.la"; then 10880 found_la="$additional_libdir/lib$name.la" 10881 fi 10882 fi 10883 fi 10884 fi 10885 if test "X$found_dir" = "X"; then 10886 for x in $LDFLAGS $LTLIBICONV; do 10887 10888 acl_save_prefix="$prefix" 10889 prefix="$acl_final_prefix" 10890 acl_save_exec_prefix="$exec_prefix" 10891 exec_prefix="$acl_final_exec_prefix" 10892 eval x=\"$x\" 10893 exec_prefix="$acl_save_exec_prefix" 10894 prefix="$acl_save_prefix" 10895 10896 case "$x" in 10897 -L*) 10898 dir=`echo "X$x" | sed -e 's/^X-L//'` 10899 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 10900 found_dir="$dir" 10901 found_so="$dir/lib$name.$shlibext" 10902 if test -f "$dir/lib$name.la"; then 10903 found_la="$dir/lib$name.la" 10904 fi 10905 elif test x$lib_type != xshared; then 10906 if test -f "$dir/lib$name.$libext"; then 10907 found_dir="$dir" 10908 found_a="$dir/lib$name.$libext" 10909 if test -f "$dir/lib$name.la"; then 10910 found_la="$dir/lib$name.la" 10911 fi 10912 fi 10913 fi 10914 ;; 10915 esac 10916 if test "X$found_dir" != "X"; then 10917 break 10918 fi 10919 done 10920 fi 10921 if test "X$found_dir" != "X"; then 10922 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 10923 if test "X$found_so" != "X"; then 10924 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 10925 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10926 else 10927 haveit= 10928 for x in $ltrpathdirs; do 10929 if test "X$x" = "X$found_dir"; then 10930 haveit=yes 10931 break 10932 fi 10933 done 10934 if test -z "$haveit"; then 10935 ltrpathdirs="$ltrpathdirs $found_dir" 10936 fi 10937 if test "$hardcode_direct" = yes; then 10938 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10939 else 10940 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10941 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10942 haveit= 10943 for x in $rpathdirs; do 10944 if test "X$x" = "X$found_dir"; then 10945 haveit=yes 10946 break 10947 fi 10948 done 10949 if test -z "$haveit"; then 10950 rpathdirs="$rpathdirs $found_dir" 10951 fi 10952 else 10953 haveit= 10954 for x in $LDFLAGS $LIBICONV; do 10955 10956 acl_save_prefix="$prefix" 10957 prefix="$acl_final_prefix" 10958 acl_save_exec_prefix="$exec_prefix" 10959 exec_prefix="$acl_final_exec_prefix" 10960 eval x=\"$x\" 10961 exec_prefix="$acl_save_exec_prefix" 10962 prefix="$acl_save_prefix" 10963 10964 if test "X$x" = "X-L$found_dir"; then 10965 haveit=yes 10966 break 10967 fi 10968 done 10969 if test -z "$haveit"; then 10970 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 10971 fi 10972 if test "$hardcode_minus_L" != no; then 10973 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10974 else 10975 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10976 fi 10977 fi 10978 fi 10979 fi 10980 else 10981 if test "X$found_a" != "X"; then 10982 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 10983 else 10984 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 10985 fi 10986 fi 10987 additional_includedir= 10988 case "$found_dir" in 10989 */lib | */lib/) 10990 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10991 additional_includedir="$basedir/include" 10992 ;; 10993 esac 10994 if test "X$additional_includedir" != "X"; then 10995 if test "X$additional_includedir" != "X/usr/include"; then 10996 haveit= 10997 if test "X$additional_includedir" = "X/usr/local/include"; then 10998 if test -n "$GCC"; then 10999 case $host_os in 11000 linux*) haveit=yes;; 11001 esac 11002 fi 11003 fi 11004 if test -z "$haveit"; then 11005 for x in $CPPFLAGS $INCICONV; do 11006 11007 acl_save_prefix="$prefix" 11008 prefix="$acl_final_prefix" 11009 acl_save_exec_prefix="$exec_prefix" 11010 exec_prefix="$acl_final_exec_prefix" 11011 eval x=\"$x\" 11012 exec_prefix="$acl_save_exec_prefix" 11013 prefix="$acl_save_prefix" 11014 11015 if test "X$x" = "X-I$additional_includedir"; then 11016 haveit=yes 11017 break 11018 fi 11019 done 11020 if test -z "$haveit"; then 11021 if test -d "$additional_includedir"; then 11022 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11023 fi 11024 fi 11025 fi 11026 fi 11027 fi 11028 if test -n "$found_la"; then 11029 save_libdir="$libdir" 11030 case "$found_la" in 11031 */* | *\\*) . "$found_la" ;; 11032 *) . "./$found_la" ;; 11033 esac 11034 libdir="$save_libdir" 11035 for dep in $dependency_libs; do 11036 case "$dep" in 11037 -L*) 11038 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11039 if test "X$additional_libdir" != "X/usr/lib"; then 11040 haveit= 11041 if test "X$additional_libdir" = "X/usr/local/lib"; then 11042 if test -n "$GCC"; then 11043 case $host_os in 11044 linux*) haveit=yes;; 11045 esac 11046 fi 11047 fi 11048 if test -z "$haveit"; then 11049 haveit= 11050 for x in $LDFLAGS $LIBICONV; do 11051 11052 acl_save_prefix="$prefix" 11053 prefix="$acl_final_prefix" 11054 acl_save_exec_prefix="$exec_prefix" 11055 exec_prefix="$acl_final_exec_prefix" 11056 eval x=\"$x\" 11057 exec_prefix="$acl_save_exec_prefix" 11058 prefix="$acl_save_prefix" 11059 11060 if test "X$x" = "X-L$additional_libdir"; then 11061 haveit=yes 11062 break 11063 fi 11064 done 11065 if test -z "$haveit"; then 11066 if test -d "$additional_libdir"; then 11067 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 11068 fi 11069 fi 11070 haveit= 11071 for x in $LDFLAGS $LTLIBICONV; do 11072 11073 acl_save_prefix="$prefix" 11074 prefix="$acl_final_prefix" 11075 acl_save_exec_prefix="$exec_prefix" 11076 exec_prefix="$acl_final_exec_prefix" 11077 eval x=\"$x\" 11078 exec_prefix="$acl_save_exec_prefix" 11079 prefix="$acl_save_prefix" 11080 11081 if test "X$x" = "X-L$additional_libdir"; then 11082 haveit=yes 11083 break 11084 fi 11085 done 11086 if test -z "$haveit"; then 11087 if test -d "$additional_libdir"; then 11088 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 11089 fi 11090 fi 11091 fi 11092 fi 11093 ;; 11094 -R*) 11095 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11096 if test "$enable_rpath" != no; then 11097 haveit= 11098 for x in $rpathdirs; do 11099 if test "X$x" = "X$dir"; then 11100 haveit=yes 11101 break 11102 fi 11103 done 11104 if test -z "$haveit"; then 11105 rpathdirs="$rpathdirs $dir" 11106 fi 11107 haveit= 11108 for x in $ltrpathdirs; do 11109 if test "X$x" = "X$dir"; then 11110 haveit=yes 11111 break 11112 fi 11113 done 11114 if test -z "$haveit"; then 11115 ltrpathdirs="$ltrpathdirs $dir" 11116 fi 11117 fi 11118 ;; 11119 -l*) 11120 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11121 ;; 11122 *.la) 11123 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11124 ;; 11125 *) 11126 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 11127 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 11128 ;; 11129 esac 11130 done 11131 fi 11132 else 11133 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 11134 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11135 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 11136 else 11137 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 11138 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 11139 fi 11140 fi 11141 fi 11142 fi 11143 done 11144 done 11145 if test "X$rpathdirs" != "X"; then 11146 if test -n "$hardcode_libdir_separator"; then 11147 alldirs= 11148 for found_dir in $rpathdirs; do 11149 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11150 done 11151 acl_save_libdir="$libdir" 11152 libdir="$alldirs" 11153 eval flag=\"$hardcode_libdir_flag_spec\" 11154 libdir="$acl_save_libdir" 11155 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11156 else 11157 for found_dir in $rpathdirs; do 11158 acl_save_libdir="$libdir" 11159 libdir="$found_dir" 11160 eval flag=\"$hardcode_libdir_flag_spec\" 11161 libdir="$acl_save_libdir" 11162 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11163 done 11164 fi 11165 fi 11166 if test "X$ltrpathdirs" != "X"; then 11167 for found_dir in $ltrpathdirs; do 11168 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 11169 done 11170 fi 11171 11172 11173 11174 11175 11176 11177 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 11179$as_echo_n "checking for iconv... " >&6; } 11180if ${am_cv_func_iconv+:} false; then : 11181 $as_echo_n "(cached) " >&6 11182else 11183 11184 am_cv_func_iconv="no, consider installing GNU libiconv" 11185 am_cv_lib_iconv=no 11186 am_save_CPPFLAGS="$CPPFLAGS" 11187 CPPFLAGS="$CPPFLAGS $INCICONV" 11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11189/* end confdefs.h. */ 11190#include <stdlib.h> 11191#include <iconv.h> 11192int 11193main () 11194{ 11195iconv_t cd = iconv_open("",""); 11196 iconv(cd,NULL,NULL,NULL,NULL); 11197 iconv_close(cd); 11198 ; 11199 return 0; 11200} 11201_ACEOF 11202if ac_fn_cxx_try_link "$LINENO"; then : 11203 am_cv_func_iconv=yes 11204fi 11205rm -f core conftest.err conftest.$ac_objext \ 11206 conftest$ac_exeext conftest.$ac_ext 11207 CPPFLAGS="$am_save_CPPFLAGS" 11208 11209 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then 11210 for _libs in .libs _libs; do 11211 am_save_CPPFLAGS="$CPPFLAGS" 11212 am_save_LIBS="$LIBS" 11213 CPPFLAGS="$CPPFLAGS -I../libiconv/include" 11214 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" 11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11216/* end confdefs.h. */ 11217#include <stdlib.h> 11218#include <iconv.h> 11219int 11220main () 11221{ 11222iconv_t cd = iconv_open("",""); 11223 iconv(cd,NULL,NULL,NULL,NULL); 11224 iconv_close(cd); 11225 ; 11226 return 0; 11227} 11228_ACEOF 11229if ac_fn_cxx_try_link "$LINENO"; then : 11230 INCICONV="-I../libiconv/include" 11231 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a 11232 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la 11233 am_cv_lib_iconv=yes 11234 am_cv_func_iconv=yes 11235fi 11236rm -f core conftest.err conftest.$ac_objext \ 11237 conftest$ac_exeext conftest.$ac_ext 11238 CPPFLAGS="$am_save_CPPFLAGS" 11239 LIBS="$am_save_LIBS" 11240 if test "$am_cv_func_iconv" = "yes"; then 11241 break 11242 fi 11243 done 11244 fi 11245 11246 if test "$am_cv_func_iconv" != yes; then 11247 am_save_CPPFLAGS="$CPPFLAGS" 11248 am_save_LIBS="$LIBS" 11249 CPPFLAGS="$CPPFLAGS $INCICONV" 11250 LIBS="$LIBS $LIBICONV" 11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11252/* end confdefs.h. */ 11253#include <stdlib.h> 11254#include <iconv.h> 11255int 11256main () 11257{ 11258iconv_t cd = iconv_open("",""); 11259 iconv(cd,NULL,NULL,NULL,NULL); 11260 iconv_close(cd); 11261 ; 11262 return 0; 11263} 11264_ACEOF 11265if ac_fn_cxx_try_link "$LINENO"; then : 11266 am_cv_lib_iconv=yes 11267 am_cv_func_iconv=yes 11268fi 11269rm -f core conftest.err conftest.$ac_objext \ 11270 conftest$ac_exeext conftest.$ac_ext 11271 CPPFLAGS="$am_save_CPPFLAGS" 11272 LIBS="$am_save_LIBS" 11273 fi 11274 11275fi 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 11277$as_echo "$am_cv_func_iconv" >&6; } 11278 if test "$am_cv_func_iconv" = yes; then 11279 11280$as_echo "#define HAVE_ICONV 1" >>confdefs.h 11281 11282 fi 11283 if test "$am_cv_lib_iconv" = yes; then 11284 11285 for element in $INCICONV; do 11286 haveit= 11287 for x in $CPPFLAGS; do 11288 11289 acl_save_prefix="$prefix" 11290 prefix="$acl_final_prefix" 11291 acl_save_exec_prefix="$exec_prefix" 11292 exec_prefix="$acl_final_exec_prefix" 11293 eval x=\"$x\" 11294 exec_prefix="$acl_save_exec_prefix" 11295 prefix="$acl_save_prefix" 11296 11297 if test "X$x" = "X$element"; then 11298 haveit=yes 11299 break 11300 fi 11301 done 11302 if test -z "$haveit"; then 11303 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11304 fi 11305 done 11306 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 11308$as_echo_n "checking how to link with libiconv... " >&6; } 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 11310$as_echo "$LIBICONV" >&6; } 11311 else 11312 LIBICONV= 11313 LTLIBICONV= 11314 fi 11315 11316 11317 11318 if test "$am_cv_func_iconv" = yes; then 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 11320$as_echo_n "checking for iconv declaration... " >&6; } 11321 if ${am_cv_proto_iconv+:} false; then : 11322 $as_echo_n "(cached) " >&6 11323else 11324 11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11326/* end confdefs.h. */ 11327 11328#include <stdlib.h> 11329#include <iconv.h> 11330extern 11331#ifdef __cplusplus 11332"C" 11333#endif 11334#if defined(__STDC__) || defined(__cplusplus) 11335size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 11336#else 11337size_t iconv(); 11338#endif 11339 11340int 11341main () 11342{ 11343 11344 ; 11345 return 0; 11346} 11347_ACEOF 11348if ac_fn_cxx_try_compile "$LINENO"; then : 11349 am_cv_proto_iconv_arg1="" 11350else 11351 am_cv_proto_iconv_arg1="const" 11352fi 11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11354 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);" 11355fi 11356 11357 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 11359 }$am_cv_proto_iconv" >&5 11360$as_echo "${ac_t:- 11361 }$am_cv_proto_iconv" >&6; } 11362 11363cat >>confdefs.h <<_ACEOF 11364#define ICONV_CONST $am_cv_proto_iconv_arg1 11365_ACEOF 11366 11367 fi 11368 11369 11370# Until we have in-tree GNU iconv: 11371LIBICONV_DEP= 11372if test -f "$LTLIBICONV"; then 11373 LIBICONV_DEP=$LTLIBICONV 11374fi 11375 11376 11377 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 11379$as_echo_n "checking for LC_MESSAGES... " >&6; } 11380if ${am_cv_val_LC_MESSAGES+:} false; then : 11381 $as_echo_n "(cached) " >&6 11382else 11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11384/* end confdefs.h. */ 11385#include <locale.h> 11386int 11387main () 11388{ 11389return LC_MESSAGES 11390 ; 11391 return 0; 11392} 11393_ACEOF 11394if ac_fn_cxx_try_link "$LINENO"; then : 11395 am_cv_val_LC_MESSAGES=yes 11396else 11397 am_cv_val_LC_MESSAGES=no 11398fi 11399rm -f core conftest.err conftest.$ac_objext \ 11400 conftest$ac_exeext conftest.$ac_ext 11401fi 11402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 11403$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 11404 if test $am_cv_val_LC_MESSAGES = yes; then 11405 11406$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 11407 11408 fi 11409 11410 11411 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 11413$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 11414if ${am_cv_langinfo_codeset+:} false; then : 11415 $as_echo_n "(cached) " >&6 11416else 11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11418/* end confdefs.h. */ 11419#include <langinfo.h> 11420int 11421main () 11422{ 11423char* cs = nl_langinfo(CODESET); 11424 ; 11425 return 0; 11426} 11427_ACEOF 11428if ac_fn_cxx_try_link "$LINENO"; then : 11429 am_cv_langinfo_codeset=yes 11430else 11431 am_cv_langinfo_codeset=no 11432fi 11433rm -f core conftest.err conftest.$ac_objext \ 11434 conftest$ac_exeext conftest.$ac_ext 11435 11436fi 11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 11438$as_echo "$am_cv_langinfo_codeset" >&6; } 11439 if test $am_cv_langinfo_codeset = yes; then 11440 11441$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 11442 11443 fi 11444 11445 11446# We will need to find libiberty.h and ansidecl.h 11447saved_CFLAGS="$CFLAGS" 11448CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" 11449saved_CXXFLAGS="$CXXFLAGS" 11450CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" 11451 11452# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the 11453# normal autoconf function for these. But force definition of 11454# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre 11455# basename handling in libiberty.h. 11456as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh` 11457ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" " 11458#undef HAVE_DECL_BASENAME 11459#define HAVE_DECL_BASENAME 1 11460#include \"ansidecl.h\" 11461#include \"system.h\" 11462" 11463if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11464 ac_have_decl=1 11465else 11466 ac_have_decl=0 11467fi 11468 11469cat >>confdefs.h <<_ACEOF 11470#define HAVE_DECL_BASENAME $ac_have_decl 11471_ACEOF 11472as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh` 11473ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" " 11474#undef HAVE_DECL_BASENAME 11475#define HAVE_DECL_BASENAME 1 11476#include \"ansidecl.h\" 11477#include \"system.h\" 11478" 11479if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11480 ac_have_decl=1 11481else 11482 ac_have_decl=0 11483fi 11484 11485cat >>confdefs.h <<_ACEOF 11486#define HAVE_DECL_STRSTR $ac_have_decl 11487_ACEOF 11488 11489 11490for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \ 11491 madvise stpcpy strnlen strsignal strverscmp \ 11492 strtol strtoul strtoll strtoull setenv unsetenv \ 11493 errno snprintf vsnprintf vasprintf malloc realloc calloc \ 11494 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 11495do 11496 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11498$as_echo_n "checking whether $ac_func is declared... " >&6; } 11499if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11500 $as_echo_n "(cached) " >&6 11501else 11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11503/* end confdefs.h. */ 11504#undef $ac_tr_decl 11505#define $ac_tr_decl 1 11506 11507#include "ansidecl.h" 11508#include "system.h" 11509 11510int 11511main () 11512{ 11513#ifndef $ac_func 11514char *(*pfn) = (char *(*)) $ac_func ; 11515#endif 11516 ; 11517 return 0; 11518} 11519_ACEOF 11520if ac_fn_cxx_try_compile "$LINENO"; then : 11521 eval "gcc_cv_have_decl_$ac_func=yes" 11522else 11523 eval "gcc_cv_have_decl_$ac_func=no" 11524fi 11525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11526fi 11527 11528if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11530$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11531#define $ac_tr_decl 1 11532_ACEOF 11533 11534else 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11536$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11537#define $ac_tr_decl 0 11538_ACEOF 11539 11540fi 11541 11542done 11543 11544 11545for ac_func in getrlimit setrlimit getrusage 11546do 11547 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11549$as_echo_n "checking whether $ac_func is declared... " >&6; } 11550if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11551 $as_echo_n "(cached) " >&6 11552else 11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11554/* end confdefs.h. */ 11555#undef $ac_tr_decl 11556#define $ac_tr_decl 1 11557 11558#include "ansidecl.h" 11559#include "system.h" 11560#ifdef HAVE_SYS_RESOURCE_H 11561#include <sys/resource.h> 11562#endif 11563 11564 11565int 11566main () 11567{ 11568#ifndef $ac_func 11569char *(*pfn) = (char *(*)) $ac_func ; 11570#endif 11571 ; 11572 return 0; 11573} 11574_ACEOF 11575if ac_fn_cxx_try_compile "$LINENO"; then : 11576 eval "gcc_cv_have_decl_$ac_func=yes" 11577else 11578 eval "gcc_cv_have_decl_$ac_func=no" 11579fi 11580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11581fi 11582 11583if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11585$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11586#define $ac_tr_decl 1 11587_ACEOF 11588 11589else 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11591$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11592#define $ac_tr_decl 0 11593_ACEOF 11594 11595fi 11596 11597done 11598 11599 11600for ac_func in mallinfo 11601do 11602 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11604$as_echo_n "checking whether $ac_func is declared... " >&6; } 11605if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11606 $as_echo_n "(cached) " >&6 11607else 11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11609/* end confdefs.h. */ 11610#undef $ac_tr_decl 11611#define $ac_tr_decl 1 11612 11613#include "ansidecl.h" 11614#include "system.h" 11615#ifdef HAVE_MALLOC_H 11616#include <malloc.h> 11617#endif 11618 11619 11620int 11621main () 11622{ 11623#ifndef $ac_func 11624char *(*pfn) = (char *(*)) $ac_func ; 11625#endif 11626 ; 11627 return 0; 11628} 11629_ACEOF 11630if ac_fn_cxx_try_compile "$LINENO"; then : 11631 eval "gcc_cv_have_decl_$ac_func=yes" 11632else 11633 eval "gcc_cv_have_decl_$ac_func=no" 11634fi 11635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11636fi 11637 11638if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11640$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11641#define $ac_tr_decl 1 11642_ACEOF 11643 11644else 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11646$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11647#define $ac_tr_decl 0 11648_ACEOF 11649 11650fi 11651 11652done 11653 11654 11655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11656/* end confdefs.h. */ 11657 11658#include "ansidecl.h" 11659#include "system.h" 11660#ifdef HAVE_SYS_RESOURCE_H 11661#include <sys/resource.h> 11662#endif 11663 11664int 11665main () 11666{ 11667rlim_t l = 0; 11668 ; 11669 return 0; 11670} 11671_ACEOF 11672if ac_fn_cxx_try_compile "$LINENO"; then : 11673 11674else 11675 11676$as_echo "#define rlim_t long" >>confdefs.h 11677 11678fi 11679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11680 11681# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible 11682# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname 11683# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs 11684# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME. 11685for ac_func in ldgetname 11686do 11687 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11689$as_echo_n "checking whether $ac_func is declared... " >&6; } 11690if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11691 $as_echo_n "(cached) " >&6 11692else 11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11694/* end confdefs.h. */ 11695#undef $ac_tr_decl 11696#define $ac_tr_decl 1 11697 11698#include "ansidecl.h" 11699#include "system.h" 11700#ifdef HAVE_LDFCN_H 11701#undef FREAD 11702#undef FWRITE 11703#include <ldfcn.h> 11704#endif 11705 11706 11707int 11708main () 11709{ 11710#ifndef $ac_func 11711char *(*pfn) = (char *(*)) $ac_func ; 11712#endif 11713 ; 11714 return 0; 11715} 11716_ACEOF 11717if ac_fn_cxx_try_compile "$LINENO"; then : 11718 eval "gcc_cv_have_decl_$ac_func=yes" 11719else 11720 eval "gcc_cv_have_decl_$ac_func=no" 11721fi 11722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11723fi 11724 11725if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11727$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11728#define $ac_tr_decl 1 11729_ACEOF 11730 11731else 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11733$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11734#define $ac_tr_decl 0 11735_ACEOF 11736 11737fi 11738 11739done 11740 11741 11742for ac_func in times 11743do 11744 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11746$as_echo_n "checking whether $ac_func is declared... " >&6; } 11747if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11748 $as_echo_n "(cached) " >&6 11749else 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11751/* end confdefs.h. */ 11752#undef $ac_tr_decl 11753#define $ac_tr_decl 1 11754 11755#include "ansidecl.h" 11756#include "system.h" 11757#ifdef HAVE_SYS_TIMES_H 11758#include <sys/times.h> 11759#endif 11760 11761 11762int 11763main () 11764{ 11765#ifndef $ac_func 11766char *(*pfn) = (char *(*)) $ac_func ; 11767#endif 11768 ; 11769 return 0; 11770} 11771_ACEOF 11772if ac_fn_cxx_try_compile "$LINENO"; then : 11773 eval "gcc_cv_have_decl_$ac_func=yes" 11774else 11775 eval "gcc_cv_have_decl_$ac_func=no" 11776fi 11777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11778fi 11779 11780if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11782$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11783#define $ac_tr_decl 1 11784_ACEOF 11785 11786else 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11789#define $ac_tr_decl 0 11790_ACEOF 11791 11792fi 11793 11794done 11795 11796 11797for ac_func in sigaltstack 11798do 11799 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11801$as_echo_n "checking whether $ac_func is declared... " >&6; } 11802if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11803 $as_echo_n "(cached) " >&6 11804else 11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11806/* end confdefs.h. */ 11807#undef $ac_tr_decl 11808#define $ac_tr_decl 1 11809 11810#include "ansidecl.h" 11811#include "system.h" 11812#include <signal.h> 11813 11814 11815int 11816main () 11817{ 11818#ifndef $ac_func 11819char *(*pfn) = (char *(*)) $ac_func ; 11820#endif 11821 ; 11822 return 0; 11823} 11824_ACEOF 11825if ac_fn_cxx_try_compile "$LINENO"; then : 11826 eval "gcc_cv_have_decl_$ac_func=yes" 11827else 11828 eval "gcc_cv_have_decl_$ac_func=no" 11829fi 11830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11831fi 11832 11833if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11835$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11836#define $ac_tr_decl 1 11837_ACEOF 11838 11839else 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11841$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11842#define $ac_tr_decl 0 11843_ACEOF 11844 11845fi 11846 11847done 11848 11849 11850# More time-related stuff. 11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5 11852$as_echo_n "checking for struct tms... " >&6; } 11853if ${ac_cv_struct_tms+:} false; then : 11854 $as_echo_n "(cached) " >&6 11855else 11856 11857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11858/* end confdefs.h. */ 11859 11860#include "ansidecl.h" 11861#include "system.h" 11862#ifdef HAVE_SYS_TIMES_H 11863#include <sys/times.h> 11864#endif 11865 11866int 11867main () 11868{ 11869struct tms tms; 11870 ; 11871 return 0; 11872} 11873_ACEOF 11874if ac_fn_cxx_try_compile "$LINENO"; then : 11875 ac_cv_struct_tms=yes 11876else 11877 ac_cv_struct_tms=no 11878fi 11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11880fi 11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5 11882$as_echo "$ac_cv_struct_tms" >&6; } 11883if test $ac_cv_struct_tms = yes; then 11884 11885$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h 11886 11887fi 11888 11889# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE. 11890# revisit after autoconf 2.50. 11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 11892$as_echo_n "checking for clock_t... " >&6; } 11893if ${gcc_cv_type_clock_t+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 11897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11898/* end confdefs.h. */ 11899 11900#include "ansidecl.h" 11901#include "system.h" 11902 11903int 11904main () 11905{ 11906clock_t x; 11907 ; 11908 return 0; 11909} 11910_ACEOF 11911if ac_fn_cxx_try_compile "$LINENO"; then : 11912 gcc_cv_type_clock_t=yes 11913else 11914 gcc_cv_type_clock_t=no 11915fi 11916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11917fi 11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5 11919$as_echo "$gcc_cv_type_clock_t" >&6; } 11920if test $gcc_cv_type_clock_t = yes; then 11921 11922$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h 11923 11924fi 11925 11926# Check if F_SETLKW is supported by fcntl. 11927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5 11928$as_echo_n "checking for F_SETLKW... " >&6; } 11929if ${ac_cv_f_setlkw+:} false; then : 11930 $as_echo_n "(cached) " >&6 11931else 11932 11933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11934/* end confdefs.h. */ 11935 11936#include <fcntl.h> 11937int 11938main () 11939{ 11940 11941struct flock fl; 11942fl.l_whence = 0; 11943fl.l_start = 0; 11944fl.l_len = 0; 11945fl.l_pid = 0; 11946return fcntl (1, F_SETLKW, &fl); 11947 ; 11948 return 0; 11949} 11950_ACEOF 11951if ac_fn_cxx_try_compile "$LINENO"; then : 11952 ac_cv_f_setlkw=yes 11953else 11954 ac_cv_f_setlkw=no 11955fi 11956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11957fi 11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5 11959$as_echo "$ac_cv_f_setlkw" >&6; } 11960if test $ac_cv_f_setlkw = yes; then 11961 11962$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h 11963 11964fi 11965 11966# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. 11967CFLAGS="$saved_CFLAGS" 11968CXXFLAGS="$saved_CXXFLAGS" 11969 11970# mkdir takes a single argument on some systems. 11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5 11972$as_echo_n "checking if mkdir takes one argument... " >&6; } 11973if ${gcc_cv_mkdir_takes_one_arg+:} false; then : 11974 $as_echo_n "(cached) " >&6 11975else 11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978 11979#include <sys/types.h> 11980#ifdef HAVE_SYS_STAT_H 11981# include <sys/stat.h> 11982#endif 11983#ifdef HAVE_UNISTD_H 11984# include <unistd.h> 11985#endif 11986#ifdef HAVE_DIRECT_H 11987# include <direct.h> 11988#endif 11989int 11990main () 11991{ 11992mkdir ("foo", 0); 11993 ; 11994 return 0; 11995} 11996_ACEOF 11997if ac_fn_cxx_try_compile "$LINENO"; then : 11998 gcc_cv_mkdir_takes_one_arg=no 11999else 12000 gcc_cv_mkdir_takes_one_arg=yes 12001fi 12002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12003fi 12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5 12005$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; } 12006if test $gcc_cv_mkdir_takes_one_arg = yes ; then 12007 12008$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h 12009 12010fi 12011 12012 12013# File extensions 12014manext='.1' 12015objext='.o' 12016 12017 12018 12019# With Setjmp/Longjmp based exception handling. 12020# Check whether --enable-sjlj-exceptions was given. 12021if test "${enable_sjlj_exceptions+set}" = set; then : 12022 enableval=$enable_sjlj_exceptions; case $target in 12023 *-*-hpux10*) 12024 if test $enableval != yes; then 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5 12026$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;} 12027 enableval=yes 12028 fi 12029 ;; 12030esac 12031force_sjlj_exceptions=yes 12032else 12033 case $target in 12034 *-*-hpux10*) 12035 force_sjlj_exceptions=yes 12036 enableval=yes 12037 ;; 12038 lm32*-*-*) 12039 force_sjlj_exceptions=yes 12040 enableval=yes 12041 ;; 12042 *) 12043 force_sjlj_exceptions=no 12044 ;; 12045esac 12046fi 12047 12048if test $force_sjlj_exceptions = yes; then 12049 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi` 12050 12051cat >>confdefs.h <<_ACEOF 12052#define CONFIG_SJLJ_EXCEPTIONS $sjlj 12053_ACEOF 12054 12055fi 12056 12057# -------------------------------------------------------- 12058# Build, host, and target specific configuration fragments 12059# -------------------------------------------------------- 12060 12061# Collect build-machine-specific information. 12062. ${srcdir}/config.build || exit 1 12063 12064# Collect host-machine-specific information. 12065. ${srcdir}/config.host || exit 1 12066 12067target_gtfiles= 12068 12069# Collect target-machine-specific information. 12070. ${srcdir}/config.gcc || exit 1 12071 12072extra_objs="${host_extra_objs} ${extra_objs}" 12073extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}" 12074 12075# Default the target-machine variables that were not explicitly set. 12076if test x"$tm_file" = x 12077then tm_file=$cpu_type/$cpu_type.h; fi 12078 12079if test x"$extra_headers" = x 12080then extra_headers=; fi 12081 12082if test x$md_file = x 12083then md_file=$cpu_type/$cpu_type.md; fi 12084 12085if test x$out_file = x 12086then out_file=$cpu_type/$cpu_type.c; fi 12087 12088if test x"$tmake_file" = x 12089then tmake_file=$cpu_type/t-$cpu_type 12090fi 12091 12092# Support --enable-initfini-array. 12093if test x$enable_initfini_array != xno; then 12094 tm_file="${tm_file} initfini-array.h" 12095fi 12096 12097if test x"$dwarf2" = xyes 12098then tm_file="$tm_file tm-dwarf2.h" 12099fi 12100 12101# Say what files are being used for the output code and MD file. 12102echo "Using \`$srcdir/config/$out_file' for machine-specific logic." 12103echo "Using \`$srcdir/config/$md_file' as machine description file." 12104 12105# If any of the xm_file variables contain nonexistent files, warn 12106# about them and drop them. 12107 12108bx= 12109for x in $build_xm_file; do 12110 if test -f $srcdir/config/$x 12111 then bx="$bx $x" 12112 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12113$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12114 fi 12115done 12116build_xm_file="$bx" 12117 12118hx= 12119for x in $host_xm_file; do 12120 if test -f $srcdir/config/$x 12121 then hx="$hx $x" 12122 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12123$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12124 fi 12125done 12126host_xm_file="$hx" 12127 12128tx= 12129for x in $xm_file; do 12130 if test -f $srcdir/config/$x 12131 then tx="$tx $x" 12132 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 12133$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 12134 fi 12135done 12136xm_file="$tx" 12137 12138count=a 12139for f in $tm_file; do 12140 count=${count}x 12141done 12142if test $count = ax; then 12143 echo "Using \`$srcdir/config/$tm_file' as target machine macro file." 12144else 12145 echo "Using the following target machine macro files:" 12146 for f in $tm_file; do 12147 echo " $srcdir/config/$f" 12148 done 12149fi 12150 12151if test x$use_long_long_for_widest_fast_int = xyes; then 12152 12153$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h 12154 12155fi 12156 12157gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi` 12158 12159cat >>confdefs.h <<_ACEOF 12160#define HAVE_GNU_LD $gnu_ld_bool 12161_ACEOF 12162 12163 12164gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi` 12165 12166cat >>confdefs.h <<_ACEOF 12167#define HAVE_GNU_AS $gnu_as_bool 12168_ACEOF 12169 12170 12171count=a 12172for f in $host_xm_file; do 12173 count=${count}x 12174done 12175if test $count = a; then 12176 : 12177elif test $count = ax; then 12178 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." 12179else 12180 echo "Using the following host machine macro files:" 12181 for f in $host_xm_file; do 12182 echo " $srcdir/config/$f" 12183 done 12184fi 12185echo "Using ${out_host_hook_obj} for host machine hooks." 12186 12187if test "$host_xm_file" != "$build_xm_file"; then 12188 count=a 12189 for f in $build_xm_file; do 12190 count=${count}x 12191 done 12192 if test $count = a; then 12193 : 12194 elif test $count = ax; then 12195 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." 12196 else 12197 echo "Using the following build machine macro files:" 12198 for f in $build_xm_file; do 12199 echo " $srcdir/config/$f" 12200 done 12201 fi 12202fi 12203 12204if test -n "$configured_native_system_header_dir"; then 12205 native_system_header_dir=$configured_native_system_header_dir 12206fi 12207NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir" 12208 12209 12210case ${host} in 12211 powerpc*-*-darwin*) 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5 12213$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; } 12214if ${gcc_cv_mcontext_underscores+:} false; then : 12215 $as_echo_n "(cached) " >&6 12216else 12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12218/* end confdefs.h. */ 12219 12220#include <sys/cdefs.h> 12221#include <sys/signal.h> 12222#include <ucontext.h> 12223int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; } 12224 12225_ACEOF 12226if ac_fn_cxx_try_compile "$LINENO"; then : 12227 gcc_cv_mcontext_underscores=no 12228else 12229 gcc_cv_mcontext_underscores=yes 12230fi 12231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12232fi 12233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5 12234$as_echo "$gcc_cv_mcontext_underscores" >&6; } 12235 if test $gcc_cv_mcontext_underscores = yes; then 12236 12237$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h 12238 12239 fi 12240 ;; 12241esac 12242 12243# --------- 12244# Threading 12245# --------- 12246 12247# Check if a valid thread package 12248case ${enable_threads} in 12249 "" | no) 12250 # No threads 12251 target_thread_file='single' 12252 ;; 12253 yes) 12254 # default 12255 target_thread_file='single' 12256 ;; 12257 aix | dce | lynx | mipssde | posix | rtems | \ 12258 single | tpf | vxworks | win32) 12259 target_thread_file=${enable_threads} 12260 ;; 12261 *) 12262 echo "${enable_threads} is an unknown thread package" 1>&2 12263 exit 1 12264 ;; 12265esac 12266 12267if test x${thread_file} = x; then 12268 # No thread file set by target-specific clauses in config.gcc, 12269 # so use file chosen by default logic above 12270 thread_file=${target_thread_file} 12271fi 12272 12273# -------- 12274# UNSORTED 12275# -------- 12276 12277use_cxa_atexit=no 12278if test x$enable___cxa_atexit = xyes || \ 12279 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then 12280 if test x$host = x$target; then 12281 case $host in 12282 # mingw32 doesn't have __cxa_atexit but uses atexit registration 12283 # keyed to flag_use_cxa_atexit 12284 *-*-mingw32*) 12285 use_cxa_atexit=yes 12286 ;; 12287 powerpc-ibm-aix*) 12288 use_cxa_atexit=yes 12289 ;; 12290 *) 12291 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit" 12292if test "x$ac_cv_func___cxa_atexit" = xyes; then : 12293 use_cxa_atexit=yes 12294else 12295 echo "__cxa_atexit can't be enabled on this target" 12296fi 12297 12298 ;; 12299 esac 12300 else 12301 # We can't check for __cxa_atexit when building a cross, so assume 12302 # it is available 12303 use_cxa_atexit=yes 12304 fi 12305 if test x$use_cxa_atexit = xyes; then 12306 12307$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h 12308 12309 fi 12310fi 12311 12312# Look for a file containing extra machine modes. 12313if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then 12314 extra_modes_file='$(srcdir)'/config/${extra_modes} 12315 12316 12317cat >>confdefs.h <<_ACEOF 12318#define EXTRA_MODES_FILE "config/$extra_modes" 12319_ACEOF 12320 12321fi 12322 12323# Convert extra_options into a form suitable for Makefile use. 12324extra_opt_files= 12325all_opt_files= 12326for f in $extra_options; do 12327 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f" 12328 all_opt_files="$all_opt_files $srcdir/config/$f" 12329done 12330 12331 12332# auto-host.h is the file containing items generated by autoconf and is 12333# the first file included by config.h. 12334# If host=build, it is correct to have bconfig include auto-host.h 12335# as well. If host!=build, we are in error and need to do more 12336# work to find out the build config parameters. 12337if test x$host = x$build 12338then 12339 build_auto=auto-host.h 12340 HAVE_AUTO_BUILD='# ' 12341else 12342 # We create a subdir, then run autoconf in the subdir. 12343 # To prevent recursion we set host and build for the new 12344 # invocation of configure to the build for this invocation 12345 # of configure. 12346 tempdir=build.$$ 12347 rm -rf $tempdir 12348 mkdir $tempdir 12349 cd $tempdir 12350 case ${srcdir} in 12351 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};; 12352 *) realsrcdir=../${srcdir};; 12353 esac 12354 # Clearing GMPINC is necessary to prevent host headers being 12355 # used by the build compiler. Defining GENERATOR_FILE stops 12356 # system.h from including gmp.h. 12357 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ 12358 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \ 12359 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \ 12360 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \ 12361 ${realsrcdir}/configure \ 12362 --enable-languages=${enable_languages-all} \ 12363 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \ 12364 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \ 12365 --target=$target_alias --host=$build_alias \ 12366 --build=$build_alias || exit # retaining $tempdir 12367 12368 # We just finished tests for the build machine, so rename 12369 # the file auto-build.h in the gcc directory. 12370 mv auto-host.h ../auto-build.h 12371 cd .. 12372 rm -rf $tempdir 12373 build_auto=auto-build.h 12374 HAVE_AUTO_BUILD= 12375fi 12376 12377 12378 12379tm_file="${tm_file} defaults.h" 12380tm_p_file="${tm_p_file} tm-preds.h" 12381tm_d_file="${tm_d_file} defaults.h" 12382host_xm_file="auto-host.h ansidecl.h ${host_xm_file}" 12383build_xm_file="${build_auto} ansidecl.h ${build_xm_file}" 12384# We don't want ansidecl.h in target files, write code there in ISO/GNU C. 12385# put this back in temporarily. 12386xm_file="auto-host.h ansidecl.h ${xm_file}" 12387 12388# -------- 12389# UNSORTED 12390# -------- 12391 12392# Compile in configure arguments. 12393if test -f configargs.h ; then 12394 # Being re-configured. 12395 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'` 12396 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'` 12397 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then 12398 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" 12399 fi 12400else 12401 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS" 12402fi 12403 12404# Double all backslashes and backslash all quotes to turn 12405# gcc_config_arguments into a C string. 12406sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out 12407$gcc_config_arguments 12408EOF 12409gcc_config_arguments_str=`cat conftest.out` 12410rm -f conftest.out 12411 12412cat > configargs.h <<EOF 12413/* Generated automatically. */ 12414static const char configuration_arguments[] = "$gcc_config_arguments_str"; 12415static const char thread_model[] = "$thread_file"; 12416 12417static const struct { 12418 const char *name, *value; 12419} configure_default_options[] = $configure_default_options; 12420EOF 12421 12422gcc_BASEVER=`cat $srcdir/BASE-VER` 12423gcc_DEVPHASE=`cat $srcdir/DEV-PHASE` 12424gcc_DATESTAMP=`cat $srcdir/DATESTAMP` 12425if test -f $srcdir/REVISION ; then 12426 gcc_REVISION=`cat $srcdir/REVISION` 12427else 12428 gcc_REVISION="" 12429fi 12430cat > plugin-version.h <<EOF 12431#include "configargs.h" 12432 12433#define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'` 12434#define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'` 12435#define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'` 12436#define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR) 12437 12438static char basever[] = "$gcc_BASEVER"; 12439static char datestamp[] = "$gcc_DATESTAMP"; 12440static char devphase[] = "$gcc_DEVPHASE"; 12441static char revision[] = "$gcc_REVISION"; 12442 12443/* FIXME plugins: We should make the version information more precise. 12444 One way to do is to add a checksum. */ 12445 12446static struct plugin_gcc_version gcc_version = {basever, datestamp, 12447 devphase, revision, 12448 configuration_arguments}; 12449EOF 12450 12451# Determine what GCC version number to use in filesystem paths. 12452 12453 get_gcc_base_ver="cat" 12454 12455# Check whether --with-gcc-major-version-only was given. 12456if test "${with_gcc_major_version_only+set}" = set; then : 12457 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 12458 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 12459 fi 12460 12461fi 12462 12463 12464 12465 12466# Internationalization 12467# If we haven't got the data from the intl directory, 12468# assume NLS is disabled. 12469USE_NLS=no 12470LIBINTL= 12471LIBINTL_DEP= 12472INCINTL= 12473XGETTEXT= 12474GMSGFMT= 12475POSUB= 12476 12477if test -f ../intl/config.intl; then 12478 . ../intl/config.intl 12479fi 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12481$as_echo_n "checking whether NLS is requested... " >&6; } 12482if test x"$USE_NLS" != xyes; then 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12484$as_echo "no" >&6; } 12485else 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12487$as_echo "yes" >&6; } 12488 12489$as_echo "#define ENABLE_NLS 1" >>confdefs.h 12490 12491 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 12493$as_echo_n "checking for catalogs to be installed... " >&6; } 12494 # Look for .po and .gmo files in the source directory. 12495 CATALOGS= 12496 XLINGUAS= 12497 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 12498 # If there aren't any .gmo files the shell will give us the 12499 # literal string "../path/to/srcdir/po/*.gmo" which has to be 12500 # weeded out. 12501 case "$cat" in *\**) 12502 continue;; 12503 esac 12504 # The quadruple backslash is collapsed to a double backslash 12505 # by the backticks, then collapsed again by the double quotes, 12506 # leaving us with one backslash in the sed expression (right 12507 # before the dot that mustn't act as a wildcard). 12508 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 12509 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 12510 # The user is allowed to set LINGUAS to a list of languages to 12511 # install catalogs for. If it's empty that means "all of them." 12512 if test "x$LINGUAS" = x; then 12513 CATALOGS="$CATALOGS $cat" 12514 XLINGUAS="$XLINGUAS $lang" 12515 else 12516 case "$LINGUAS" in *$lang*) 12517 CATALOGS="$CATALOGS $cat" 12518 XLINGUAS="$XLINGUAS $lang" 12519 ;; 12520 esac 12521 fi 12522 done 12523 LINGUAS="$XLINGUAS" 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 12525$as_echo "$LINGUAS" >&6; } 12526 12527 12528 DATADIRNAME=share 12529 12530 INSTOBJEXT=.mo 12531 12532 GENCAT=gencat 12533 12534 CATOBJEXT=.gmo 12535 12536fi 12537 12538# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get 12539# -liconv on the link line twice. 12540case "$LIBINTL" in *$LIBICONV*) 12541 LIBICONV= ;; 12542esac 12543 12544# Check whether --enable-secureplt was given. 12545if test "${enable_secureplt+set}" = set; then : 12546 enableval=$enable_secureplt; 12547fi 12548 12549 12550# Check whether --enable-mingw-wildcard was given. 12551if test "${enable_mingw_wildcard+set}" = set; then : 12552 enableval=$enable_mingw_wildcard; 12553else 12554 enable_mingw_wildcard=platform 12555fi 12556 12557if test x"$enable_mingw_wildcard" != xplatform ; then : 12558 12559cat >>confdefs.h <<_ACEOF 12560#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?) 12561_ACEOF 12562 12563fi 12564 12565# Check whether --enable-large-address-aware was given. 12566if test "${enable_large_address_aware+set}" = set; then : 12567 enableval=$enable_large_address_aware; 12568fi 12569 12570if test x"$enable_large_address_aware" = xyes; then : 12571 12572$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h 12573 12574fi 12575 12576# Check whether --enable-leading-mingw64-underscores was given. 12577if test "${enable_leading_mingw64_underscores+set}" = set; then : 12578 enableval=$enable_leading_mingw64_underscores; 12579fi 12580 12581if test x"$enable_leading_mingw64_underscores" = xyes ; then : 12582 12583$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h 12584 12585fi 12586 12587# Check whether --enable-cld was given. 12588if test "${enable_cld+set}" = set; then : 12589 enableval=$enable_cld; 12590else 12591 enable_cld=no 12592fi 12593 12594 12595# Check whether --enable-frame-pointer was given. 12596if test "${enable_frame_pointer+set}" = set; then : 12597 enableval=$enable_frame_pointer; 12598else 12599 12600case $target_os in 12601linux* | gnu* | darwin[8912]* | cygwin* | mingw*) 12602 # Enable -fomit-frame-pointer by default for these systems with DWARF2. 12603 enable_frame_pointer=no 12604 ;; 12605*) 12606 enable_frame_pointer=yes 12607 ;; 12608esac 12609 12610fi 12611 12612 12613case $target in 12614i[34567]86-*-* | x86_64-*-*) 12615 if test "x$enable_cld" = xyes; then 12616 tm_defines="${tm_defines} USE_IX86_CLD=1" 12617 fi 12618 if test "x$enable_frame_pointer" = xyes; then 12619 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" 12620 fi 12621 ;; 12622esac 12623 12624# Windows32 Registry support for specifying GCC installation paths. 12625# Check whether --enable-win32-registry was given. 12626if test "${enable_win32_registry+set}" = set; then : 12627 enableval=$enable_win32_registry; 12628fi 12629 12630 12631case $host_os in 12632 win32 | pe | cygwin* | mingw32*) 12633 if test "x$enable_win32_registry" != xno; then 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5 12635$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; } 12636if ${ac_cv_search_RegOpenKeyExA+:} false; then : 12637 $as_echo_n "(cached) " >&6 12638else 12639 ac_func_search_save_LIBS=$LIBS 12640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12641/* end confdefs.h. */ 12642 12643/* Override any GCC internal prototype to avoid an error. 12644 Use char because int might match the return type of a GCC 12645 builtin and then its argument prototype would still apply. */ 12646#ifdef __cplusplus 12647extern "C" 12648#endif 12649char RegOpenKeyExA (); 12650int 12651main () 12652{ 12653return RegOpenKeyExA (); 12654 ; 12655 return 0; 12656} 12657_ACEOF 12658for ac_lib in '' advapi32; do 12659 if test -z "$ac_lib"; then 12660 ac_res="none required" 12661 else 12662 ac_res=-l$ac_lib 12663 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12664 fi 12665 if ac_fn_cxx_try_link "$LINENO"; then : 12666 ac_cv_search_RegOpenKeyExA=$ac_res 12667fi 12668rm -f core conftest.err conftest.$ac_objext \ 12669 conftest$ac_exeext 12670 if ${ac_cv_search_RegOpenKeyExA+:} false; then : 12671 break 12672fi 12673done 12674if ${ac_cv_search_RegOpenKeyExA+:} false; then : 12675 12676else 12677 ac_cv_search_RegOpenKeyExA=no 12678fi 12679rm conftest.$ac_ext 12680LIBS=$ac_func_search_save_LIBS 12681fi 12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5 12683$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; } 12684ac_res=$ac_cv_search_RegOpenKeyExA 12685if test "$ac_res" != no; then : 12686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12687 12688else 12689 enable_win32_registry=no 12690fi 12691 12692 fi 12693 12694 if test "x$enable_win32_registry" != xno; then 12695 12696$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h 12697 12698 12699 if test "x$enable_win32_registry" != xyes \ 12700 && test "x$enable_win32_registry" != x; then 12701 12702cat >>confdefs.h <<_ACEOF 12703#define WIN32_REGISTRY_KEY "$enable_win32_registry" 12704_ACEOF 12705 12706 fi 12707 fi 12708 ;; 12709esac 12710 12711# Get an absolute path to the GCC top-level source directory 12712holddir=`${PWDCMD-pwd}` 12713cd $srcdir 12714topdir=`${PWDCMD-pwd}` 12715cd $holddir 12716 12717# Conditionalize the makefile for this host machine. 12718xmake_file= 12719for f in ${host_xmake_file} 12720do 12721 if test -f ${srcdir}/config/$f 12722 then 12723 xmake_file="${xmake_file} \$(srcdir)/config/$f" 12724 fi 12725done 12726 12727# Conditionalize the makefile for this target machine. 12728tmake_file_= 12729for f in ${tmake_file} 12730do 12731 if test -f ${srcdir}/config/$f 12732 then 12733 tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 12734 fi 12735done 12736tmake_file="${tmake_file_}${omp_device_property_tmake_file}" 12737 12738out_object_file=`basename $out_file .c`.o 12739common_out_object_file=`basename $common_out_file .c`.o 12740 12741tm_file_list="options.h" 12742tm_include_list="options.h insn-constants.h" 12743for f in $tm_file; do 12744 case $f in 12745 ./* ) 12746 f=`echo $f | sed 's/^..//'` 12747 tm_file_list="${tm_file_list} $f" 12748 tm_include_list="${tm_include_list} $f" 12749 ;; 12750 defaults.h ) 12751 tm_file_list="${tm_file_list} \$(srcdir)/$f" 12752 tm_include_list="${tm_include_list} $f" 12753 ;; 12754 * ) 12755 tm_file_list="${tm_file_list} \$(srcdir)/config/$f" 12756 tm_include_list="${tm_include_list} config/$f" 12757 ;; 12758 esac 12759done 12760 12761tm_p_file_list= 12762tm_p_include_list= 12763for f in $tm_p_file; do 12764 case $f in 12765 tm-preds.h ) 12766 tm_p_file_list="${tm_p_file_list} $f" 12767 tm_p_include_list="${tm_p_include_list} $f" 12768 ;; 12769 * ) 12770 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f" 12771 tm_p_include_list="${tm_p_include_list} config/$f" 12772 esac 12773done 12774 12775tm_d_file_list= 12776tm_d_include_list="options.h insn-constants.h" 12777for f in $tm_d_file; do 12778 case $f in 12779 defaults.h ) 12780 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f" 12781 tm_d_include_list="${tm_d_include_list} $f" 12782 ;; 12783 * ) 12784 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f" 12785 tm_d_include_list="${tm_d_include_list} config/$f" 12786 ;; 12787 esac 12788done 12789 12790xm_file_list= 12791xm_include_list= 12792for f in $xm_file; do 12793 case $f in 12794 ansidecl.h ) 12795 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f" 12796 xm_include_list="${xm_include_list} $f" 12797 ;; 12798 auto-host.h ) 12799 xm_file_list="${xm_file_list} $f" 12800 xm_include_list="${xm_include_list} $f" 12801 ;; 12802 * ) 12803 xm_file_list="${xm_file_list} \$(srcdir)/config/$f" 12804 xm_include_list="${xm_include_list} config/$f" 12805 ;; 12806 esac 12807done 12808 12809host_xm_file_list= 12810host_xm_include_list= 12811for f in $host_xm_file; do 12812 case $f in 12813 ansidecl.h ) 12814 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f" 12815 host_xm_include_list="${host_xm_include_list} $f" 12816 ;; 12817 auto-host.h ) 12818 host_xm_file_list="${host_xm_file_list} $f" 12819 host_xm_include_list="${host_xm_include_list} $f" 12820 ;; 12821 * ) 12822 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" 12823 host_xm_include_list="${host_xm_include_list} config/$f" 12824 ;; 12825 esac 12826done 12827 12828build_xm_file_list= 12829for f in $build_xm_file; do 12830 case $f in 12831 ansidecl.h ) 12832 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f" 12833 build_xm_include_list="${build_xm_include_list} $f" 12834 ;; 12835 auto-build.h | auto-host.h ) 12836 build_xm_file_list="${build_xm_file_list} $f" 12837 build_xm_include_list="${build_xm_include_list} $f" 12838 ;; 12839 * ) 12840 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" 12841 build_xm_include_list="${build_xm_include_list} config/$f" 12842 ;; 12843 esac 12844done 12845 12846# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a 12847# cross-compiler which does not use the native headers and libraries. 12848# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR. 12849CROSS= 12850ALL=all.internal 12851SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' 12852BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR 12853 12854if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x || 12855 test x$build != x$host || test "x$with_build_sysroot" != x; then 12856 if test "x$with_build_sysroot" != x; then 12857 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' 12858 else 12859 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 12860 fi 12861 12862 if test x$host != x$target 12863 then 12864 CROSS="-DCROSS_DIRECTORY_STRUCTURE" 12865 ALL=all.cross 12866 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR 12867 elif test "x$TARGET_SYSTEM_ROOT" != x; then 12868 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 12869 fi 12870 12871 if test "x$with_build_sysroot" != "x"; then 12872 target_header_dir="${with_build_sysroot}${native_system_header_dir}" 12873 elif test "x$with_sysroot" = x; then 12874 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include" 12875 elif test "x$with_sysroot" = xyes; then 12876 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}" 12877 else 12878 target_header_dir="${with_sysroot}${native_system_header_dir}" 12879 fi 12880else 12881 target_header_dir=${native_system_header_dir} 12882fi 12883 12884# If this is a cross-compiler that does not 12885# have its own set of headers then define 12886# inhibit_libc 12887 12888# If this is using newlib, without having the headers available now, 12889# then define inhibit_libc in LIBGCC2_CFLAGS. 12890# This prevents libgcc2 from containing any code which requires libc 12891# support. 12892: ${inhibit_libc=false} 12893if { { test x$host != x$target && test "x$with_sysroot" = x ; } || 12894 test x$with_newlib = xyes ; } && 12895 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then 12896 inhibit_libc=true 12897fi 12898 12899 12900# When building gcc with a cross-compiler, we need to adjust things so 12901# that the generator programs are still built with the native compiler. 12902# Also, we cannot run fixincludes. 12903 12904# These are the normal (build=host) settings: 12905CC_FOR_BUILD='$(CC)' 12906CXX_FOR_BUILD='$(CXX)' 12907BUILD_CFLAGS='$(ALL_CFLAGS)' 12908BUILD_CXXFLAGS='$(ALL_CXXFLAGS)' 12909BUILD_LDFLAGS='$(LDFLAGS)' 12910STMP_FIXINC=stmp-fixinc 12911 12912# And these apply if build != host, or we are generating coverage data 12913if test x$build != x$host || test "x$coverage_flags" != x 12914then 12915 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' 12916 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)' 12917 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)' 12918fi 12919 12920# Expand extra_headers to include complete path. 12921# This substitutes for lots of t-* files. 12922extra_headers_list= 12923# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers. 12924for file in ${extra_headers} ; do 12925 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}" 12926done 12927 12928# If use_gcc_tgmath is set, append ginclude/tgmath.h. 12929if test x"$use_gcc_tgmath" = xyes 12930then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h" 12931fi 12932 12933# Define collect2 in Makefile. 12934case $host_can_use_collect2 in 12935 no) collect2= ;; 12936 *) collect2='collect2$(exeext)' ;; 12937esac 12938 12939 12940# Add a definition of USE_COLLECT2 if system wants one. 12941case $use_collect2 in 12942 no) use_collect2= ;; 12943 "") ;; 12944 *) 12945 host_xm_defines="${host_xm_defines} USE_COLLECT2" 12946 xm_defines="${xm_defines} USE_COLLECT2" 12947 case $host_can_use_collect2 in 12948 no) 12949 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5 12950 ;; 12951 esac 12952 ;; 12953esac 12954 12955 12956cat >>confdefs.h <<_ACEOF 12957#define LTOPLUGINSONAME "${host_lto_plugin_soname}" 12958_ACEOF 12959 12960 12961# --------------------------- 12962# Assembler & linker features 12963# --------------------------- 12964 12965# During stage 2, ld is actually gcc/collect-ld, which is a small script to 12966# discern between when to use prev-ld/ld-new and when to use ld/ld-new. 12967# However when ld-new is first executed from the build tree, libtool will 12968# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers 12969# to the build tree. While doing this we need to use the previous-stage 12970# linker, or we have an infinite loop. The presence of a shell script as 12971# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses 12972# the gcc/collect-ld script. So we need to know how libtool works, or 12973# exec-tool will fail. 12974 12975 12976case `pwd` in 12977 *\ * | *\ *) 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 12979$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 12980esac 12981 12982 12983 12984macro_version='2.2.7a' 12985macro_revision='1.3134' 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999ltmain="$ac_aux_dir/ltmain.sh" 13000 13001# Backslashify metacharacters that are still active within 13002# double-quoted strings. 13003sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13004 13005# Same as above, but do not quote variable references. 13006double_quote_subst='s/\(["`\\]\)/\\\1/g' 13007 13008# Sed substitution to delay expansion of an escaped shell variable in a 13009# double_quote_subst'ed string. 13010delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13011 13012# Sed substitution to delay expansion of an escaped single quote. 13013delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13014 13015# Sed substitution to avoid accidental globbing in evaled expressions 13016no_glob_subst='s/\*/\\\*/g' 13017 13018ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13019ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13020ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13021 13022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13023$as_echo_n "checking how to print strings... " >&6; } 13024# Test print first, because it will be a builtin if present. 13025if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 13026 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13027 ECHO='print -r --' 13028elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13029 ECHO='printf %s\n' 13030else 13031 # Use this function as a fallback that always works. 13032 func_fallback_echo () 13033 { 13034 eval 'cat <<_LTECHO_EOF 13035$1 13036_LTECHO_EOF' 13037 } 13038 ECHO='func_fallback_echo' 13039fi 13040 13041# func_echo_all arg... 13042# Invoke $ECHO with all args, space-separated. 13043func_echo_all () 13044{ 13045 $ECHO "" 13046} 13047 13048case "$ECHO" in 13049 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13050$as_echo "printf" >&6; } ;; 13051 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13052$as_echo "print -r" >&6; } ;; 13053 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13054$as_echo "cat" >&6; } ;; 13055esac 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13071$as_echo_n "checking for a sed that does not truncate output... " >&6; } 13072if ${ac_cv_path_SED+:} false; then : 13073 $as_echo_n "(cached) " >&6 13074else 13075 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13076 for ac_i in 1 2 3 4 5 6 7; do 13077 ac_script="$ac_script$as_nl$ac_script" 13078 done 13079 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13080 { ac_script=; unset ac_script;} 13081 if test -z "$SED"; then 13082 ac_path_SED_found=false 13083 # Loop through the user's path and test for each of PROGNAME-LIST 13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13085for as_dir in $PATH 13086do 13087 IFS=$as_save_IFS 13088 test -z "$as_dir" && as_dir=. 13089 for ac_prog in sed gsed; do 13090 for ac_exec_ext in '' $ac_executable_extensions; do 13091 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13092 as_fn_executable_p "$ac_path_SED" || continue 13093# Check for GNU ac_path_SED and select it if it is found. 13094 # Check for GNU $ac_path_SED 13095case `"$ac_path_SED" --version 2>&1` in 13096*GNU*) 13097 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13098*) 13099 ac_count=0 13100 $as_echo_n 0123456789 >"conftest.in" 13101 while : 13102 do 13103 cat "conftest.in" "conftest.in" >"conftest.tmp" 13104 mv "conftest.tmp" "conftest.in" 13105 cp "conftest.in" "conftest.nl" 13106 $as_echo '' >> "conftest.nl" 13107 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13109 as_fn_arith $ac_count + 1 && ac_count=$as_val 13110 if test $ac_count -gt ${ac_path_SED_max-0}; then 13111 # Best one so far, save it but keep looking for a better one 13112 ac_cv_path_SED="$ac_path_SED" 13113 ac_path_SED_max=$ac_count 13114 fi 13115 # 10*(2^10) chars as input seems more than enough 13116 test $ac_count -gt 10 && break 13117 done 13118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13119esac 13120 13121 $ac_path_SED_found && break 3 13122 done 13123 done 13124 done 13125IFS=$as_save_IFS 13126 if test -z "$ac_cv_path_SED"; then 13127 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13128 fi 13129else 13130 ac_cv_path_SED=$SED 13131fi 13132 13133fi 13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13135$as_echo "$ac_cv_path_SED" >&6; } 13136 SED="$ac_cv_path_SED" 13137 rm -f conftest.sed 13138 13139test -z "$SED" && SED=sed 13140Xsed="$SED -e 1s/^X//" 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13153$as_echo_n "checking for fgrep... " >&6; } 13154if ${ac_cv_path_FGREP+:} false; then : 13155 $as_echo_n "(cached) " >&6 13156else 13157 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13158 then ac_cv_path_FGREP="$GREP -F" 13159 else 13160 if test -z "$FGREP"; then 13161 ac_path_FGREP_found=false 13162 # Loop through the user's path and test for each of PROGNAME-LIST 13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13165do 13166 IFS=$as_save_IFS 13167 test -z "$as_dir" && as_dir=. 13168 for ac_prog in fgrep; do 13169 for ac_exec_ext in '' $ac_executable_extensions; do 13170 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13171 as_fn_executable_p "$ac_path_FGREP" || continue 13172# Check for GNU ac_path_FGREP and select it if it is found. 13173 # Check for GNU $ac_path_FGREP 13174case `"$ac_path_FGREP" --version 2>&1` in 13175*GNU*) 13176 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13177*) 13178 ac_count=0 13179 $as_echo_n 0123456789 >"conftest.in" 13180 while : 13181 do 13182 cat "conftest.in" "conftest.in" >"conftest.tmp" 13183 mv "conftest.tmp" "conftest.in" 13184 cp "conftest.in" "conftest.nl" 13185 $as_echo 'FGREP' >> "conftest.nl" 13186 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13188 as_fn_arith $ac_count + 1 && ac_count=$as_val 13189 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13190 # Best one so far, save it but keep looking for a better one 13191 ac_cv_path_FGREP="$ac_path_FGREP" 13192 ac_path_FGREP_max=$ac_count 13193 fi 13194 # 10*(2^10) chars as input seems more than enough 13195 test $ac_count -gt 10 && break 13196 done 13197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13198esac 13199 13200 $ac_path_FGREP_found && break 3 13201 done 13202 done 13203 done 13204IFS=$as_save_IFS 13205 if test -z "$ac_cv_path_FGREP"; then 13206 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13207 fi 13208else 13209 ac_cv_path_FGREP=$FGREP 13210fi 13211 13212 fi 13213fi 13214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13215$as_echo "$ac_cv_path_FGREP" >&6; } 13216 FGREP="$ac_cv_path_FGREP" 13217 13218 13219test -z "$GREP" && GREP=grep 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239# Check whether --with-gnu-ld was given. 13240if test "${with_gnu_ld+set}" = set; then : 13241 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13242else 13243 with_gnu_ld=no 13244fi 13245 13246ac_prog=ld 13247if test "$GCC" = yes; then 13248 # Check if gcc -print-prog-name=ld gives a path. 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13250$as_echo_n "checking for ld used by $CC... " >&6; } 13251 case $host in 13252 *-*-mingw*) 13253 # gcc leaves a trailing carriage return which upsets mingw 13254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13255 *) 13256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13257 esac 13258 case $ac_prog in 13259 # Accept absolute paths. 13260 [\\/]* | ?:[\\/]*) 13261 re_direlt='/[^/][^/]*/\.\./' 13262 # Canonicalize the pathname of ld 13263 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13264 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13265 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13266 done 13267 test -z "$LD" && LD="$ac_prog" 13268 ;; 13269 "") 13270 # If it fails, then pretend we aren't using GCC. 13271 ac_prog=ld 13272 ;; 13273 *) 13274 # If it is relative, then search for the first ld in PATH. 13275 with_gnu_ld=unknown 13276 ;; 13277 esac 13278elif test "$with_gnu_ld" = yes; then 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13280$as_echo_n "checking for GNU ld... " >&6; } 13281else 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13283$as_echo_n "checking for non-GNU ld... " >&6; } 13284fi 13285if ${lt_cv_path_LD+:} false; then : 13286 $as_echo_n "(cached) " >&6 13287else 13288 if test -z "$LD"; then 13289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13290 for ac_dir in $PATH; do 13291 IFS="$lt_save_ifs" 13292 test -z "$ac_dir" && ac_dir=. 13293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13294 lt_cv_path_LD="$ac_dir/$ac_prog" 13295 # Check to see if the program is GNU ld. I'd rather use --version, 13296 # but apparently some variants of GNU ld only accept -v. 13297 # Break only if it was the GNU/non-GNU ld that we prefer. 13298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13299 *GNU* | *'with BFD'*) 13300 test "$with_gnu_ld" != no && break 13301 ;; 13302 *) 13303 test "$with_gnu_ld" != yes && break 13304 ;; 13305 esac 13306 fi 13307 done 13308 IFS="$lt_save_ifs" 13309else 13310 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13311fi 13312fi 13313 13314LD="$lt_cv_path_LD" 13315if test -n "$LD"; then 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13317$as_echo "$LD" >&6; } 13318else 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13320$as_echo "no" >&6; } 13321fi 13322test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13324$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13325if ${lt_cv_prog_gnu_ld+:} false; then : 13326 $as_echo_n "(cached) " >&6 13327else 13328 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13329case `$LD -v 2>&1 </dev/null` in 13330*GNU* | *'with BFD'*) 13331 lt_cv_prog_gnu_ld=yes 13332 ;; 13333*) 13334 lt_cv_prog_gnu_ld=no 13335 ;; 13336esac 13337fi 13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13339$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13340with_gnu_ld=$lt_cv_prog_gnu_ld 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 13351$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 13352if ${lt_cv_path_NM+:} false; then : 13353 $as_echo_n "(cached) " >&6 13354else 13355 if test -n "$NM"; then 13356 # Let the user override the test. 13357 lt_cv_path_NM="$NM" 13358else 13359 lt_nm_to_check="${ac_tool_prefix}nm" 13360 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 13361 lt_nm_to_check="$lt_nm_to_check nm" 13362 fi 13363 for lt_tmp_nm in $lt_nm_to_check; do 13364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13365 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 13366 IFS="$lt_save_ifs" 13367 test -z "$ac_dir" && ac_dir=. 13368 tmp_nm="$ac_dir/$lt_tmp_nm" 13369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 13370 # Check to see if the nm accepts a BSD-compat flag. 13371 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 13372 # nm: unknown option "B" ignored 13373 # Tru64's nm complains that /dev/null is an invalid object file 13374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 13375 */dev/null* | *'Invalid file or object type'*) 13376 lt_cv_path_NM="$tmp_nm -B" 13377 break 13378 ;; 13379 *) 13380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 13381 */dev/null*) 13382 lt_cv_path_NM="$tmp_nm -p" 13383 break 13384 ;; 13385 *) 13386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 13387 continue # so that we can try to find one that supports BSD flags 13388 ;; 13389 esac 13390 ;; 13391 esac 13392 fi 13393 done 13394 IFS="$lt_save_ifs" 13395 done 13396 : ${lt_cv_path_NM=no} 13397fi 13398fi 13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 13400$as_echo "$lt_cv_path_NM" >&6; } 13401if test "$lt_cv_path_NM" != "no"; then 13402 NM="$lt_cv_path_NM" 13403else 13404 # Didn't find any BSD compatible name lister, look for dumpbin. 13405 if test -n "$DUMPBIN"; then : 13406 # Let the user override the test. 13407 else 13408 if test -n "$ac_tool_prefix"; then 13409 for ac_prog in dumpbin "link -dump" 13410 do 13411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13412set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13414$as_echo_n "checking for $ac_word... " >&6; } 13415if ${ac_cv_prog_DUMPBIN+:} false; then : 13416 $as_echo_n "(cached) " >&6 13417else 13418 if test -n "$DUMPBIN"; then 13419 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 13420else 13421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13422for as_dir in $PATH 13423do 13424 IFS=$as_save_IFS 13425 test -z "$as_dir" && as_dir=. 13426 for ac_exec_ext in '' $ac_executable_extensions; do 13427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13428 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 13429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13430 break 2 13431 fi 13432done 13433 done 13434IFS=$as_save_IFS 13435 13436fi 13437fi 13438DUMPBIN=$ac_cv_prog_DUMPBIN 13439if test -n "$DUMPBIN"; then 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 13441$as_echo "$DUMPBIN" >&6; } 13442else 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13444$as_echo "no" >&6; } 13445fi 13446 13447 13448 test -n "$DUMPBIN" && break 13449 done 13450fi 13451if test -z "$DUMPBIN"; then 13452 ac_ct_DUMPBIN=$DUMPBIN 13453 for ac_prog in dumpbin "link -dump" 13454do 13455 # Extract the first word of "$ac_prog", so it can be a program name with args. 13456set dummy $ac_prog; ac_word=$2 13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13458$as_echo_n "checking for $ac_word... " >&6; } 13459if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 13460 $as_echo_n "(cached) " >&6 13461else 13462 if test -n "$ac_ct_DUMPBIN"; then 13463 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 13464else 13465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13466for as_dir in $PATH 13467do 13468 IFS=$as_save_IFS 13469 test -z "$as_dir" && as_dir=. 13470 for ac_exec_ext in '' $ac_executable_extensions; do 13471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13472 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 13473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13474 break 2 13475 fi 13476done 13477 done 13478IFS=$as_save_IFS 13479 13480fi 13481fi 13482ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 13483if test -n "$ac_ct_DUMPBIN"; then 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 13485$as_echo "$ac_ct_DUMPBIN" >&6; } 13486else 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13488$as_echo "no" >&6; } 13489fi 13490 13491 13492 test -n "$ac_ct_DUMPBIN" && break 13493done 13494 13495 if test "x$ac_ct_DUMPBIN" = x; then 13496 DUMPBIN=":" 13497 else 13498 case $cross_compiling:$ac_tool_warned in 13499yes:) 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13502ac_tool_warned=yes ;; 13503esac 13504 DUMPBIN=$ac_ct_DUMPBIN 13505 fi 13506fi 13507 13508 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 13509 *COFF*) 13510 DUMPBIN="$DUMPBIN -symbols" 13511 ;; 13512 *) 13513 DUMPBIN=: 13514 ;; 13515 esac 13516 fi 13517 13518 if test "$DUMPBIN" != ":"; then 13519 NM="$DUMPBIN" 13520 fi 13521fi 13522test -z "$NM" && NM=nm 13523 13524 13525 13526 13527 13528 13529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 13530$as_echo_n "checking the name lister ($NM) interface... " >&6; } 13531if ${lt_cv_nm_interface+:} false; then : 13532 $as_echo_n "(cached) " >&6 13533else 13534 lt_cv_nm_interface="BSD nm" 13535 echo "int some_variable = 0;" > conftest.$ac_ext 13536 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 13537 (eval "$ac_compile" 2>conftest.err) 13538 cat conftest.err >&5 13539 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 13540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 13541 cat conftest.err >&5 13542 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 13543 cat conftest.out >&5 13544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 13545 lt_cv_nm_interface="MS dumpbin" 13546 fi 13547 rm -f conftest* 13548fi 13549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 13550$as_echo "$lt_cv_nm_interface" >&6; } 13551 13552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13553$as_echo_n "checking whether ln -s works... " >&6; } 13554LN_S=$as_ln_s 13555if test "$LN_S" = "ln -s"; then 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13557$as_echo "yes" >&6; } 13558else 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13560$as_echo "no, using $LN_S" >&6; } 13561fi 13562 13563# find the maximum length of command line arguments 13564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 13565$as_echo_n "checking the maximum length of command line arguments... " >&6; } 13566if ${lt_cv_sys_max_cmd_len+:} false; then : 13567 $as_echo_n "(cached) " >&6 13568else 13569 i=0 13570 teststring="ABCD" 13571 13572 case $build_os in 13573 msdosdjgpp*) 13574 # On DJGPP, this test can blow up pretty badly due to problems in libc 13575 # (any single argument exceeding 2000 bytes causes a buffer overrun 13576 # during glob expansion). Even if it were fixed, the result of this 13577 # check would be larger than it should be. 13578 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13579 ;; 13580 13581 gnu*) 13582 # Under GNU Hurd, this test is not required because there is 13583 # no limit to the length of command line arguments. 13584 # Libtool will interpret -1 as no limit whatsoever 13585 lt_cv_sys_max_cmd_len=-1; 13586 ;; 13587 13588 cygwin* | mingw* | cegcc*) 13589 # On Win9x/ME, this test blows up -- it succeeds, but takes 13590 # about 5 minutes as the teststring grows exponentially. 13591 # Worse, since 9x/ME are not pre-emptively multitasking, 13592 # you end up with a "frozen" computer, even though with patience 13593 # the test eventually succeeds (with a max line length of 256k). 13594 # Instead, let's just punt: use the minimum linelength reported by 13595 # all of the supported platforms: 8192 (on NT/2K/XP). 13596 lt_cv_sys_max_cmd_len=8192; 13597 ;; 13598 13599 mint*) 13600 # On MiNT this can take a long time and run out of memory. 13601 lt_cv_sys_max_cmd_len=8192; 13602 ;; 13603 13604 amigaos*) 13605 # On AmigaOS with pdksh, this test takes hours, literally. 13606 # So we just punt and use a minimum line length of 8192. 13607 lt_cv_sys_max_cmd_len=8192; 13608 ;; 13609 13610 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 13611 # This has been around since 386BSD, at least. Likely further. 13612 if test -x /sbin/sysctl; then 13613 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13614 elif test -x /usr/sbin/sysctl; then 13615 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13616 else 13617 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13618 fi 13619 # And add a safety zone 13620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13622 ;; 13623 13624 interix*) 13625 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13626 lt_cv_sys_max_cmd_len=196608 13627 ;; 13628 13629 osf*) 13630 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13631 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13632 # nice to cause kernel panics so lets avoid the loop below. 13633 # First set a reasonable default. 13634 lt_cv_sys_max_cmd_len=16384 13635 # 13636 if test -x /sbin/sysconfig; then 13637 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13638 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13639 esac 13640 fi 13641 ;; 13642 sco3.2v5*) 13643 lt_cv_sys_max_cmd_len=102400 13644 ;; 13645 sysv5* | sco5v6* | sysv4.2uw2*) 13646 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13647 if test -n "$kargmax"; then 13648 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13649 else 13650 lt_cv_sys_max_cmd_len=32768 13651 fi 13652 ;; 13653 *) 13654 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13655 if test -n "$lt_cv_sys_max_cmd_len"; then 13656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13658 else 13659 # Make teststring a little bigger before we do anything with it. 13660 # a 1K string should be a reasonable start. 13661 for i in 1 2 3 4 5 6 7 8 ; do 13662 teststring=$teststring$teststring 13663 done 13664 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13665 # If test is not a shell built-in, we'll probably end up computing a 13666 # maximum length that is only half of the actual maximum length, but 13667 # we can't tell. 13668 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 13669 = "X$teststring$teststring"; } >/dev/null 2>&1 && 13670 test $i != 17 # 1/2 MB should be enough 13671 do 13672 i=`expr $i + 1` 13673 teststring=$teststring$teststring 13674 done 13675 # Only check the string length outside the loop. 13676 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 13677 teststring= 13678 # Add a significant safety factor because C++ compilers can tack on 13679 # massive amounts of additional arguments before passing them to the 13680 # linker. It appears as though 1/2 is a usable value. 13681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 13682 fi 13683 ;; 13684 esac 13685 13686fi 13687 13688if test -n $lt_cv_sys_max_cmd_len ; then 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 13690$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 13691else 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13693$as_echo "none" >&6; } 13694fi 13695max_cmd_len=$lt_cv_sys_max_cmd_len 13696 13697 13698 13699 13700 13701 13702: ${CP="cp -f"} 13703: ${MV="mv -f"} 13704: ${RM="rm -f"} 13705 13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 13707$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 13708# Try some XSI features 13709xsi_shell=no 13710( _lt_dummy="a/b/c" 13711 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 13712 = c,a/b,, \ 13713 && eval 'test $(( 1 + 1 )) -eq 2 \ 13714 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 13715 && xsi_shell=yes 13716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 13717$as_echo "$xsi_shell" >&6; } 13718 13719 13720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 13721$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 13722lt_shell_append=no 13723( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 13724 >/dev/null 2>&1 \ 13725 && lt_shell_append=yes 13726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 13727$as_echo "$lt_shell_append" >&6; } 13728 13729 13730if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13731 lt_unset=unset 13732else 13733 lt_unset=false 13734fi 13735 13736 13737 13738 13739 13740# test EBCDIC or ASCII 13741case `echo X|tr X '\101'` in 13742 A) # ASCII based system 13743 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 13744 lt_SP2NL='tr \040 \012' 13745 lt_NL2SP='tr \015\012 \040\040' 13746 ;; 13747 *) # EBCDIC based system 13748 lt_SP2NL='tr \100 \n' 13749 lt_NL2SP='tr \r\n \100\100' 13750 ;; 13751esac 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 13762$as_echo_n "checking for $LD option to reload object files... " >&6; } 13763if ${lt_cv_ld_reload_flag+:} false; then : 13764 $as_echo_n "(cached) " >&6 13765else 13766 lt_cv_ld_reload_flag='-r' 13767fi 13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 13769$as_echo "$lt_cv_ld_reload_flag" >&6; } 13770reload_flag=$lt_cv_ld_reload_flag 13771case $reload_flag in 13772"" | " "*) ;; 13773*) reload_flag=" $reload_flag" ;; 13774esac 13775reload_cmds='$LD$reload_flag -o $output$reload_objs' 13776case $host_os in 13777 darwin*) 13778 if test "$GCC" = yes; then 13779 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 13780 else 13781 reload_cmds='$LD$reload_flag -o $output$reload_objs' 13782 fi 13783 ;; 13784esac 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794if test -n "$ac_tool_prefix"; then 13795 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 13796set dummy ${ac_tool_prefix}objdump; ac_word=$2 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13798$as_echo_n "checking for $ac_word... " >&6; } 13799if ${ac_cv_prog_OBJDUMP+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 if test -n "$OBJDUMP"; then 13803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 13804else 13805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13806for as_dir in $PATH 13807do 13808 IFS=$as_save_IFS 13809 test -z "$as_dir" && as_dir=. 13810 for ac_exec_ext in '' $ac_executable_extensions; do 13811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13812 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 13813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13814 break 2 13815 fi 13816done 13817 done 13818IFS=$as_save_IFS 13819 13820fi 13821fi 13822OBJDUMP=$ac_cv_prog_OBJDUMP 13823if test -n "$OBJDUMP"; then 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 13825$as_echo "$OBJDUMP" >&6; } 13826else 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13828$as_echo "no" >&6; } 13829fi 13830 13831 13832fi 13833if test -z "$ac_cv_prog_OBJDUMP"; then 13834 ac_ct_OBJDUMP=$OBJDUMP 13835 # Extract the first word of "objdump", so it can be a program name with args. 13836set dummy objdump; ac_word=$2 13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13838$as_echo_n "checking for $ac_word... " >&6; } 13839if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 13840 $as_echo_n "(cached) " >&6 13841else 13842 if test -n "$ac_ct_OBJDUMP"; then 13843 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 13844else 13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13846for as_dir in $PATH 13847do 13848 IFS=$as_save_IFS 13849 test -z "$as_dir" && as_dir=. 13850 for ac_exec_ext in '' $ac_executable_extensions; do 13851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13852 ac_cv_prog_ac_ct_OBJDUMP="objdump" 13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13854 break 2 13855 fi 13856done 13857 done 13858IFS=$as_save_IFS 13859 13860fi 13861fi 13862ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 13863if test -n "$ac_ct_OBJDUMP"; then 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 13865$as_echo "$ac_ct_OBJDUMP" >&6; } 13866else 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13868$as_echo "no" >&6; } 13869fi 13870 13871 if test "x$ac_ct_OBJDUMP" = x; then 13872 OBJDUMP="false" 13873 else 13874 case $cross_compiling:$ac_tool_warned in 13875yes:) 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13878ac_tool_warned=yes ;; 13879esac 13880 OBJDUMP=$ac_ct_OBJDUMP 13881 fi 13882else 13883 OBJDUMP="$ac_cv_prog_OBJDUMP" 13884fi 13885 13886test -z "$OBJDUMP" && OBJDUMP=objdump 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 13897$as_echo_n "checking how to recognize dependent libraries... " >&6; } 13898if ${lt_cv_deplibs_check_method+:} false; then : 13899 $as_echo_n "(cached) " >&6 13900else 13901 lt_cv_file_magic_cmd='$MAGIC_CMD' 13902lt_cv_file_magic_test_file= 13903lt_cv_deplibs_check_method='unknown' 13904# Need to set the preceding variable on all platforms that support 13905# interlibrary dependencies. 13906# 'none' -- dependencies not supported. 13907# `unknown' -- same as none, but documents that we really don't know. 13908# 'pass_all' -- all dependencies passed with no checks. 13909# 'test_compile' -- check by making test program. 13910# 'file_magic [[regex]]' -- check by looking for files in library path 13911# which responds to the $file_magic_cmd with a given extended regex. 13912# If you have `file' or equivalent on your system and you're not sure 13913# whether `pass_all' will *always* work, you probably want this one. 13914 13915case $host_os in 13916aix[4-9]*) 13917 lt_cv_deplibs_check_method=pass_all 13918 ;; 13919 13920beos*) 13921 lt_cv_deplibs_check_method=pass_all 13922 ;; 13923 13924bsdi[45]*) 13925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 13926 lt_cv_file_magic_cmd='/usr/bin/file -L' 13927 lt_cv_file_magic_test_file=/shlib/libc.so 13928 ;; 13929 13930cygwin*) 13931 # func_win32_libid is a shell function defined in ltmain.sh 13932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13933 lt_cv_file_magic_cmd='func_win32_libid' 13934 ;; 13935 13936mingw* | pw32*) 13937 # Base MSYS/MinGW do not provide the 'file' command needed by 13938 # func_win32_libid shell function, so use a weaker test based on 'objdump', 13939 # unless we find 'file', for example because we are cross-compiling. 13940 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 13941 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 13942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13943 lt_cv_file_magic_cmd='func_win32_libid' 13944 else 13945 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 13946 lt_cv_file_magic_cmd='$OBJDUMP -f' 13947 fi 13948 ;; 13949 13950cegcc*) 13951 # use the weaker test based on 'objdump'. See mingw*. 13952 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13953 lt_cv_file_magic_cmd='$OBJDUMP -f' 13954 ;; 13955 13956darwin* | rhapsody*) 13957 lt_cv_deplibs_check_method=pass_all 13958 ;; 13959 13960freebsd* | dragonfly*) 13961 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13962 case $host_cpu in 13963 i*86 ) 13964 # Not sure whether the presence of OpenBSD here was a mistake. 13965 # Let's accept both of them until this is cleared up. 13966 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13967 lt_cv_file_magic_cmd=/usr/bin/file 13968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13969 ;; 13970 esac 13971 else 13972 lt_cv_deplibs_check_method=pass_all 13973 fi 13974 ;; 13975 13976gnu*) 13977 lt_cv_deplibs_check_method=pass_all 13978 ;; 13979 13980haiku*) 13981 lt_cv_deplibs_check_method=pass_all 13982 ;; 13983 13984hpux10.20* | hpux11*) 13985 lt_cv_file_magic_cmd=/usr/bin/file 13986 case $host_cpu in 13987 ia64*) 13988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13989 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13990 ;; 13991 hppa*64*) 13992 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]' 13993 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13994 ;; 13995 *) 13996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13997 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13998 ;; 13999 esac 14000 ;; 14001 14002interix[3-9]*) 14003 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 14004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 14005 ;; 14006 14007irix5* | irix6* | nonstopux*) 14008 case $LD in 14009 *-32|*"-32 ") libmagic=32-bit;; 14010 *-n32|*"-n32 ") libmagic=N32;; 14011 *-64|*"-64 ") libmagic=64-bit;; 14012 *) libmagic=never-match;; 14013 esac 14014 lt_cv_deplibs_check_method=pass_all 14015 ;; 14016 14017# This must be Linux ELF. 14018linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 14019 lt_cv_deplibs_check_method=pass_all 14020 ;; 14021 14022netbsd*) 14023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14025 else 14026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 14027 fi 14028 ;; 14029 14030newos6*) 14031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 14032 lt_cv_file_magic_cmd=/usr/bin/file 14033 lt_cv_file_magic_test_file=/usr/lib/libnls.so 14034 ;; 14035 14036*nto* | *qnx*) 14037 lt_cv_deplibs_check_method=pass_all 14038 ;; 14039 14040openbsd*) 14041 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 14043 else 14044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14045 fi 14046 ;; 14047 14048osf3* | osf4* | osf5*) 14049 lt_cv_deplibs_check_method=pass_all 14050 ;; 14051 14052rdos*) 14053 lt_cv_deplibs_check_method=pass_all 14054 ;; 14055 14056solaris*) 14057 lt_cv_deplibs_check_method=pass_all 14058 ;; 14059 14060sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14061 lt_cv_deplibs_check_method=pass_all 14062 ;; 14063 14064sysv4 | sysv4.3*) 14065 case $host_vendor in 14066 motorola) 14067 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]' 14068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 14069 ;; 14070 ncr) 14071 lt_cv_deplibs_check_method=pass_all 14072 ;; 14073 sequent) 14074 lt_cv_file_magic_cmd='/bin/file' 14075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 14076 ;; 14077 sni) 14078 lt_cv_file_magic_cmd='/bin/file' 14079 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 14080 lt_cv_file_magic_test_file=/lib/libc.so 14081 ;; 14082 siemens) 14083 lt_cv_deplibs_check_method=pass_all 14084 ;; 14085 pc) 14086 lt_cv_deplibs_check_method=pass_all 14087 ;; 14088 esac 14089 ;; 14090 14091tpf*) 14092 lt_cv_deplibs_check_method=pass_all 14093 ;; 14094esac 14095 14096fi 14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 14098$as_echo "$lt_cv_deplibs_check_method" >&6; } 14099file_magic_cmd=$lt_cv_file_magic_cmd 14100deplibs_check_method=$lt_cv_deplibs_check_method 14101test -z "$deplibs_check_method" && deplibs_check_method=unknown 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114if test -n "$ac_tool_prefix"; then 14115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 14116set dummy ${ac_tool_prefix}ar; ac_word=$2 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14118$as_echo_n "checking for $ac_word... " >&6; } 14119if ${ac_cv_prog_AR+:} false; then : 14120 $as_echo_n "(cached) " >&6 14121else 14122 if test -n "$AR"; then 14123 ac_cv_prog_AR="$AR" # Let the user override the test. 14124else 14125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14126for as_dir in $PATH 14127do 14128 IFS=$as_save_IFS 14129 test -z "$as_dir" && as_dir=. 14130 for ac_exec_ext in '' $ac_executable_extensions; do 14131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14132 ac_cv_prog_AR="${ac_tool_prefix}ar" 14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14134 break 2 14135 fi 14136done 14137 done 14138IFS=$as_save_IFS 14139 14140fi 14141fi 14142AR=$ac_cv_prog_AR 14143if test -n "$AR"; then 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 14145$as_echo "$AR" >&6; } 14146else 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14148$as_echo "no" >&6; } 14149fi 14150 14151 14152fi 14153if test -z "$ac_cv_prog_AR"; then 14154 ac_ct_AR=$AR 14155 # Extract the first word of "ar", so it can be a program name with args. 14156set dummy ar; ac_word=$2 14157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14158$as_echo_n "checking for $ac_word... " >&6; } 14159if ${ac_cv_prog_ac_ct_AR+:} false; then : 14160 $as_echo_n "(cached) " >&6 14161else 14162 if test -n "$ac_ct_AR"; then 14163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 14164else 14165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14166for as_dir in $PATH 14167do 14168 IFS=$as_save_IFS 14169 test -z "$as_dir" && as_dir=. 14170 for ac_exec_ext in '' $ac_executable_extensions; do 14171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14172 ac_cv_prog_ac_ct_AR="ar" 14173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14174 break 2 14175 fi 14176done 14177 done 14178IFS=$as_save_IFS 14179 14180fi 14181fi 14182ac_ct_AR=$ac_cv_prog_ac_ct_AR 14183if test -n "$ac_ct_AR"; then 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 14185$as_echo "$ac_ct_AR" >&6; } 14186else 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14188$as_echo "no" >&6; } 14189fi 14190 14191 if test "x$ac_ct_AR" = x; then 14192 AR="false" 14193 else 14194 case $cross_compiling:$ac_tool_warned in 14195yes:) 14196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14198ac_tool_warned=yes ;; 14199esac 14200 AR=$ac_ct_AR 14201 fi 14202else 14203 AR="$ac_cv_prog_AR" 14204fi 14205 14206test -z "$AR" && AR=ar 14207test -z "$AR_FLAGS" && AR_FLAGS=cru 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219if test -n "$ac_tool_prefix"; then 14220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 14221set dummy ${ac_tool_prefix}strip; ac_word=$2 14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14223$as_echo_n "checking for $ac_word... " >&6; } 14224if ${ac_cv_prog_STRIP+:} false; then : 14225 $as_echo_n "(cached) " >&6 14226else 14227 if test -n "$STRIP"; then 14228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 14229else 14230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14231for as_dir in $PATH 14232do 14233 IFS=$as_save_IFS 14234 test -z "$as_dir" && as_dir=. 14235 for ac_exec_ext in '' $ac_executable_extensions; do 14236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14237 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14239 break 2 14240 fi 14241done 14242 done 14243IFS=$as_save_IFS 14244 14245fi 14246fi 14247STRIP=$ac_cv_prog_STRIP 14248if test -n "$STRIP"; then 14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14250$as_echo "$STRIP" >&6; } 14251else 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14253$as_echo "no" >&6; } 14254fi 14255 14256 14257fi 14258if test -z "$ac_cv_prog_STRIP"; then 14259 ac_ct_STRIP=$STRIP 14260 # Extract the first word of "strip", so it can be a program name with args. 14261set dummy strip; ac_word=$2 14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14263$as_echo_n "checking for $ac_word... " >&6; } 14264if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14265 $as_echo_n "(cached) " >&6 14266else 14267 if test -n "$ac_ct_STRIP"; then 14268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14269else 14270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14271for as_dir in $PATH 14272do 14273 IFS=$as_save_IFS 14274 test -z "$as_dir" && as_dir=. 14275 for ac_exec_ext in '' $ac_executable_extensions; do 14276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14277 ac_cv_prog_ac_ct_STRIP="strip" 14278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14279 break 2 14280 fi 14281done 14282 done 14283IFS=$as_save_IFS 14284 14285fi 14286fi 14287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14288if test -n "$ac_ct_STRIP"; then 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14290$as_echo "$ac_ct_STRIP" >&6; } 14291else 14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14293$as_echo "no" >&6; } 14294fi 14295 14296 if test "x$ac_ct_STRIP" = x; then 14297 STRIP=":" 14298 else 14299 case $cross_compiling:$ac_tool_warned in 14300yes:) 14301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14303ac_tool_warned=yes ;; 14304esac 14305 STRIP=$ac_ct_STRIP 14306 fi 14307else 14308 STRIP="$ac_cv_prog_STRIP" 14309fi 14310 14311test -z "$STRIP" && STRIP=: 14312 14313 14314 14315 14316 14317 14318if test -n "$ac_tool_prefix"; then 14319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14320set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14322$as_echo_n "checking for $ac_word... " >&6; } 14323if ${ac_cv_prog_RANLIB+:} false; then : 14324 $as_echo_n "(cached) " >&6 14325else 14326 if test -n "$RANLIB"; then 14327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14328else 14329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14330for as_dir in $PATH 14331do 14332 IFS=$as_save_IFS 14333 test -z "$as_dir" && as_dir=. 14334 for ac_exec_ext in '' $ac_executable_extensions; do 14335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14336 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14338 break 2 14339 fi 14340done 14341 done 14342IFS=$as_save_IFS 14343 14344fi 14345fi 14346RANLIB=$ac_cv_prog_RANLIB 14347if test -n "$RANLIB"; then 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14349$as_echo "$RANLIB" >&6; } 14350else 14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14352$as_echo "no" >&6; } 14353fi 14354 14355 14356fi 14357if test -z "$ac_cv_prog_RANLIB"; then 14358 ac_ct_RANLIB=$RANLIB 14359 # Extract the first word of "ranlib", so it can be a program name with args. 14360set dummy ranlib; ac_word=$2 14361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14362$as_echo_n "checking for $ac_word... " >&6; } 14363if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 14364 $as_echo_n "(cached) " >&6 14365else 14366 if test -n "$ac_ct_RANLIB"; then 14367 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 14368else 14369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14370for as_dir in $PATH 14371do 14372 IFS=$as_save_IFS 14373 test -z "$as_dir" && as_dir=. 14374 for ac_exec_ext in '' $ac_executable_extensions; do 14375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14376 ac_cv_prog_ac_ct_RANLIB="ranlib" 14377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14378 break 2 14379 fi 14380done 14381 done 14382IFS=$as_save_IFS 14383 14384fi 14385fi 14386ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 14387if test -n "$ac_ct_RANLIB"; then 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 14389$as_echo "$ac_ct_RANLIB" >&6; } 14390else 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14392$as_echo "no" >&6; } 14393fi 14394 14395 if test "x$ac_ct_RANLIB" = x; then 14396 RANLIB=":" 14397 else 14398 case $cross_compiling:$ac_tool_warned in 14399yes:) 14400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14402ac_tool_warned=yes ;; 14403esac 14404 RANLIB=$ac_ct_RANLIB 14405 fi 14406else 14407 RANLIB="$ac_cv_prog_RANLIB" 14408fi 14409 14410test -z "$RANLIB" && RANLIB=: 14411 14412 14413 14414 14415 14416 14417# Determine commands to create old-style static archives. 14418old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 14419old_postinstall_cmds='chmod 644 $oldlib' 14420old_postuninstall_cmds= 14421 14422if test -n "$RANLIB"; then 14423 case $host_os in 14424 openbsd*) 14425 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 14426 ;; 14427 *) 14428 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 14429 ;; 14430 esac 14431 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 14432fi 14433 14434case $host_os in 14435 darwin*) 14436 lock_old_archive_extraction=yes ;; 14437 *) 14438 lock_old_archive_extraction=no ;; 14439esac 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479# If no C compiler was specified, use CC. 14480LTCC=${LTCC-"$CC"} 14481 14482# If no C compiler flags were specified, use CFLAGS. 14483LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14484 14485# Allow CC to be a program name with arguments. 14486compiler=$CC 14487 14488 14489# Check for command to grab the raw symbol name followed by C symbol from nm. 14490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 14491$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 14492if ${lt_cv_sys_global_symbol_pipe+:} false; then : 14493 $as_echo_n "(cached) " >&6 14494else 14495 14496# These are sane defaults that work on at least a few old systems. 14497# [They come from Ultrix. What could be older than Ultrix?!! ;)] 14498 14499# Character class describing NM global symbol codes. 14500symcode='[BCDEGRST]' 14501 14502# Regexp to match symbols that can be accessed directly from C. 14503sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 14504 14505# Define system-specific variables. 14506case $host_os in 14507aix*) 14508 symcode='[BCDT]' 14509 ;; 14510cygwin* | mingw* | pw32* | cegcc*) 14511 symcode='[ABCDGISTW]' 14512 ;; 14513hpux*) 14514 if test "$host_cpu" = ia64; then 14515 symcode='[ABCDEGRST]' 14516 fi 14517 ;; 14518irix* | nonstopux*) 14519 symcode='[BCDEGRST]' 14520 ;; 14521osf*) 14522 symcode='[BCDEGQRST]' 14523 ;; 14524solaris*) 14525 symcode='[BDRT]' 14526 ;; 14527sco3.2v5*) 14528 symcode='[DT]' 14529 ;; 14530sysv4.2uw2*) 14531 symcode='[DT]' 14532 ;; 14533sysv5* | sco5v6* | unixware* | OpenUNIX*) 14534 symcode='[ABDT]' 14535 ;; 14536sysv4) 14537 symcode='[DFNSTU]' 14538 ;; 14539esac 14540 14541# If we're using GNU nm, then use its standard symbol codes. 14542case `$NM -V 2>&1` in 14543*GNU* | *'with BFD'*) 14544 symcode='[ABCDGIRSTW]' ;; 14545esac 14546 14547# Transform an extracted symbol line into a proper C declaration. 14548# Some systems (esp. on ia64) link data and code symbols differently, 14549# so use this general approach. 14550lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 14551 14552# Transform an extracted symbol line into symbol name and symbol address 14553lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 14554lt_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'" 14555 14556# Handle CRLF in mingw tool chain 14557opt_cr= 14558case $build_os in 14559mingw*) 14560 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 14561 ;; 14562esac 14563 14564# Try without a prefix underscore, then with it. 14565for ac_symprfx in "" "_"; do 14566 14567 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 14568 symxfrm="\\1 $ac_symprfx\\2 \\2" 14569 14570 # Write the raw and C identifiers. 14571 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14572 # Fake it for dumpbin and say T for any non-static function 14573 # and D for any global variable. 14574 # Also find C++ and __fastcall symbols from MSVC++, 14575 # which start with @ or ?. 14576 lt_cv_sys_global_symbol_pipe="$AWK '"\ 14577" {last_section=section; section=\$ 3};"\ 14578" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 14579" \$ 0!~/External *\|/{next};"\ 14580" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 14581" {if(hide[section]) next};"\ 14582" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 14583" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 14584" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 14585" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 14586" ' prfx=^$ac_symprfx" 14587 else 14588 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 14589 fi 14590 14591 # Check to see that the pipe works correctly. 14592 pipe_works=no 14593 14594 rm -f conftest* 14595 cat > conftest.$ac_ext <<_LT_EOF 14596#ifdef __cplusplus 14597extern "C" { 14598#endif 14599char nm_test_var; 14600void nm_test_func(void); 14601void nm_test_func(void){} 14602#ifdef __cplusplus 14603} 14604#endif 14605int main(){nm_test_var='a';nm_test_func();return(0);} 14606_LT_EOF 14607 14608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14609 (eval $ac_compile) 2>&5 14610 ac_status=$? 14611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14612 test $ac_status = 0; }; then 14613 # Now try to grab the symbols. 14614 nlist=conftest.nm 14615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 14616 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 14617 ac_status=$? 14618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14619 test $ac_status = 0; } && test -s "$nlist"; then 14620 # Try sorting and uniquifying the output. 14621 if sort "$nlist" | uniq > "$nlist"T; then 14622 mv -f "$nlist"T "$nlist" 14623 else 14624 rm -f "$nlist"T 14625 fi 14626 14627 # Make sure that we snagged all the symbols we need. 14628 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 14629 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 14630 cat <<_LT_EOF > conftest.$ac_ext 14631#ifdef __cplusplus 14632extern "C" { 14633#endif 14634 14635_LT_EOF 14636 # Now generate the symbol file. 14637 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14638 14639 cat <<_LT_EOF >> conftest.$ac_ext 14640 14641/* The mapping between symbol names and symbols. */ 14642const struct { 14643 const char *name; 14644 void *address; 14645} 14646lt__PROGRAM__LTX_preloaded_symbols[] = 14647{ 14648 { "@PROGRAM@", (void *) 0 }, 14649_LT_EOF 14650 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14651 cat <<\_LT_EOF >> conftest.$ac_ext 14652 {0, (void *) 0} 14653}; 14654 14655/* This works around a problem in FreeBSD linker */ 14656#ifdef FREEBSD_WORKAROUND 14657static const void *lt_preloaded_setup() { 14658 return lt__PROGRAM__LTX_preloaded_symbols; 14659} 14660#endif 14661 14662#ifdef __cplusplus 14663} 14664#endif 14665_LT_EOF 14666 # Now try linking the two files. 14667 mv conftest.$ac_objext conftstm.$ac_objext 14668 lt_save_LIBS="$LIBS" 14669 lt_save_CFLAGS="$CFLAGS" 14670 LIBS="conftstm.$ac_objext" 14671 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14673 (eval $ac_link) 2>&5 14674 ac_status=$? 14675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14676 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 14677 pipe_works=yes 14678 fi 14679 LIBS="$lt_save_LIBS" 14680 CFLAGS="$lt_save_CFLAGS" 14681 else 14682 echo "cannot find nm_test_func in $nlist" >&5 14683 fi 14684 else 14685 echo "cannot find nm_test_var in $nlist" >&5 14686 fi 14687 else 14688 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14689 fi 14690 else 14691 echo "$progname: failed program was:" >&5 14692 cat conftest.$ac_ext >&5 14693 fi 14694 rm -rf conftest* conftst* 14695 14696 # Do not use the global_symbol_pipe unless it works. 14697 if test "$pipe_works" = yes; then 14698 break 14699 else 14700 lt_cv_sys_global_symbol_pipe= 14701 fi 14702done 14703 14704fi 14705 14706if test -z "$lt_cv_sys_global_symbol_pipe"; then 14707 lt_cv_sys_global_symbol_to_cdecl= 14708fi 14709if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14711$as_echo "failed" >&6; } 14712else 14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14714$as_echo "ok" >&6; } 14715fi 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738# Check whether --enable-libtool-lock was given. 14739if test "${enable_libtool_lock+set}" = set; then : 14740 enableval=$enable_libtool_lock; 14741fi 14742 14743test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 14744 14745# Some flags need to be propagated to the compiler or linker for good 14746# libtool support. 14747case $host in 14748ia64-*-hpux*) 14749 # Find out which ABI we are using. 14750 echo 'int i;' > conftest.$ac_ext 14751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14752 (eval $ac_compile) 2>&5 14753 ac_status=$? 14754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14755 test $ac_status = 0; }; then 14756 case `/usr/bin/file conftest.$ac_objext` in 14757 *ELF-32*) 14758 HPUX_IA64_MODE="32" 14759 ;; 14760 *ELF-64*) 14761 HPUX_IA64_MODE="64" 14762 ;; 14763 esac 14764 fi 14765 rm -rf conftest* 14766 ;; 14767*-*-irix6*) 14768 # Find out which ABI we are using. 14769 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14771 (eval $ac_compile) 2>&5 14772 ac_status=$? 14773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14774 test $ac_status = 0; }; then 14775 if test "$lt_cv_prog_gnu_ld" = yes; then 14776 case `/usr/bin/file conftest.$ac_objext` in 14777 *32-bit*) 14778 LD="${LD-ld} -melf32bsmip" 14779 ;; 14780 *N32*) 14781 LD="${LD-ld} -melf32bmipn32" 14782 ;; 14783 *64-bit*) 14784 LD="${LD-ld} -melf64bmip" 14785 ;; 14786 esac 14787 else 14788 case `/usr/bin/file conftest.$ac_objext` in 14789 *32-bit*) 14790 LD="${LD-ld} -32" 14791 ;; 14792 *N32*) 14793 LD="${LD-ld} -n32" 14794 ;; 14795 *64-bit*) 14796 LD="${LD-ld} -64" 14797 ;; 14798 esac 14799 fi 14800 fi 14801 rm -rf conftest* 14802 ;; 14803 14804x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14805s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14806 # Find out which ABI we are using. 14807 echo 'int i;' > conftest.$ac_ext 14808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14809 (eval $ac_compile) 2>&5 14810 ac_status=$? 14811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14812 test $ac_status = 0; }; then 14813 case `/usr/bin/file conftest.o` in 14814 *32-bit*) 14815 case $host in 14816 x86_64-*kfreebsd*-gnu) 14817 LD="${LD-ld} -m elf_i386_fbsd" 14818 ;; 14819 x86_64-*linux*) 14820 case `/usr/bin/file conftest.o` in 14821 *x86-64*) 14822 LD="${LD-ld} -m elf32_x86_64" 14823 ;; 14824 *) 14825 LD="${LD-ld} -m elf_i386" 14826 ;; 14827 esac 14828 ;; 14829 powerpc64le-*linux*) 14830 LD="${LD-ld} -m elf32lppclinux" 14831 ;; 14832 powerpc64-*linux*) 14833 LD="${LD-ld} -m elf32ppclinux" 14834 ;; 14835 s390x-*linux*) 14836 LD="${LD-ld} -m elf_s390" 14837 ;; 14838 sparc64-*linux*) 14839 LD="${LD-ld} -m elf32_sparc" 14840 ;; 14841 esac 14842 ;; 14843 *64-bit*) 14844 case $host in 14845 x86_64-*kfreebsd*-gnu) 14846 LD="${LD-ld} -m elf_x86_64_fbsd" 14847 ;; 14848 x86_64-*linux*) 14849 LD="${LD-ld} -m elf_x86_64" 14850 ;; 14851 powerpcle-*linux*) 14852 LD="${LD-ld} -m elf64lppc" 14853 ;; 14854 powerpc-*linux*) 14855 LD="${LD-ld} -m elf64ppc" 14856 ;; 14857 s390*-*linux*|s390*-*tpf*) 14858 LD="${LD-ld} -m elf64_s390" 14859 ;; 14860 sparc*-*linux*) 14861 LD="${LD-ld} -m elf64_sparc" 14862 ;; 14863 esac 14864 ;; 14865 esac 14866 fi 14867 rm -rf conftest* 14868 ;; 14869 14870*-*-sco3.2v5*) 14871 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14872 SAVE_CFLAGS="$CFLAGS" 14873 CFLAGS="$CFLAGS -belf" 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14875$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 14876if ${lt_cv_cc_needs_belf+:} false; then : 14877 $as_echo_n "(cached) " >&6 14878else 14879 ac_ext=c 14880ac_cpp='$CPP $CPPFLAGS' 14881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14883ac_compiler_gnu=$ac_cv_c_compiler_gnu 14884 14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14886/* end confdefs.h. */ 14887 14888int 14889main () 14890{ 14891 14892 ; 14893 return 0; 14894} 14895_ACEOF 14896if ac_fn_c_try_link "$LINENO"; then : 14897 lt_cv_cc_needs_belf=yes 14898else 14899 lt_cv_cc_needs_belf=no 14900fi 14901rm -f core conftest.err conftest.$ac_objext \ 14902 conftest$ac_exeext conftest.$ac_ext 14903 ac_ext=c 14904ac_cpp='$CPP $CPPFLAGS' 14905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14907ac_compiler_gnu=$ac_cv_c_compiler_gnu 14908 14909fi 14910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14911$as_echo "$lt_cv_cc_needs_belf" >&6; } 14912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 14913 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14914 CFLAGS="$SAVE_CFLAGS" 14915 fi 14916 ;; 14917sparc*-*solaris*) 14918 # Find out which ABI we are using. 14919 echo 'int i;' > conftest.$ac_ext 14920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14921 (eval $ac_compile) 2>&5 14922 ac_status=$? 14923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14924 test $ac_status = 0; }; then 14925 case `/usr/bin/file conftest.o` in 14926 *64-bit*) 14927 case $lt_cv_prog_gnu_ld in 14928 yes*) LD="${LD-ld} -m elf64_sparc" ;; 14929 *) 14930 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14931 LD="${LD-ld} -64" 14932 fi 14933 ;; 14934 esac 14935 ;; 14936 esac 14937 fi 14938 rm -rf conftest* 14939 ;; 14940esac 14941 14942need_locks="$enable_libtool_lock" 14943 14944 14945 case $host_os in 14946 rhapsody* | darwin*) 14947 if test -n "$ac_tool_prefix"; then 14948 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14949set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14951$as_echo_n "checking for $ac_word... " >&6; } 14952if ${ac_cv_prog_DSYMUTIL+:} false; then : 14953 $as_echo_n "(cached) " >&6 14954else 14955 if test -n "$DSYMUTIL"; then 14956 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14957else 14958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14959for as_dir in $PATH 14960do 14961 IFS=$as_save_IFS 14962 test -z "$as_dir" && as_dir=. 14963 for ac_exec_ext in '' $ac_executable_extensions; do 14964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14965 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14967 break 2 14968 fi 14969done 14970 done 14971IFS=$as_save_IFS 14972 14973fi 14974fi 14975DSYMUTIL=$ac_cv_prog_DSYMUTIL 14976if test -n "$DSYMUTIL"; then 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14978$as_echo "$DSYMUTIL" >&6; } 14979else 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14981$as_echo "no" >&6; } 14982fi 14983 14984 14985fi 14986if test -z "$ac_cv_prog_DSYMUTIL"; then 14987 ac_ct_DSYMUTIL=$DSYMUTIL 14988 # Extract the first word of "dsymutil", so it can be a program name with args. 14989set dummy dsymutil; ac_word=$2 14990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14991$as_echo_n "checking for $ac_word... " >&6; } 14992if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 14993 $as_echo_n "(cached) " >&6 14994else 14995 if test -n "$ac_ct_DSYMUTIL"; then 14996 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14997else 14998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14999for as_dir in $PATH 15000do 15001 IFS=$as_save_IFS 15002 test -z "$as_dir" && as_dir=. 15003 for ac_exec_ext in '' $ac_executable_extensions; do 15004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15005 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15007 break 2 15008 fi 15009done 15010 done 15011IFS=$as_save_IFS 15012 15013fi 15014fi 15015ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15016if test -n "$ac_ct_DSYMUTIL"; then 15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15018$as_echo "$ac_ct_DSYMUTIL" >&6; } 15019else 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15021$as_echo "no" >&6; } 15022fi 15023 15024 if test "x$ac_ct_DSYMUTIL" = x; then 15025 DSYMUTIL=":" 15026 else 15027 case $cross_compiling:$ac_tool_warned in 15028yes:) 15029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15031ac_tool_warned=yes ;; 15032esac 15033 DSYMUTIL=$ac_ct_DSYMUTIL 15034 fi 15035else 15036 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15037fi 15038 15039 if test -n "$ac_tool_prefix"; then 15040 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 15041set dummy ${ac_tool_prefix}nmedit; ac_word=$2 15042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15043$as_echo_n "checking for $ac_word... " >&6; } 15044if ${ac_cv_prog_NMEDIT+:} false; then : 15045 $as_echo_n "(cached) " >&6 15046else 15047 if test -n "$NMEDIT"; then 15048 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 15049else 15050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15051for as_dir in $PATH 15052do 15053 IFS=$as_save_IFS 15054 test -z "$as_dir" && as_dir=. 15055 for ac_exec_ext in '' $ac_executable_extensions; do 15056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15057 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 15058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15059 break 2 15060 fi 15061done 15062 done 15063IFS=$as_save_IFS 15064 15065fi 15066fi 15067NMEDIT=$ac_cv_prog_NMEDIT 15068if test -n "$NMEDIT"; then 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 15070$as_echo "$NMEDIT" >&6; } 15071else 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15073$as_echo "no" >&6; } 15074fi 15075 15076 15077fi 15078if test -z "$ac_cv_prog_NMEDIT"; then 15079 ac_ct_NMEDIT=$NMEDIT 15080 # Extract the first word of "nmedit", so it can be a program name with args. 15081set dummy nmedit; ac_word=$2 15082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15083$as_echo_n "checking for $ac_word... " >&6; } 15084if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 15085 $as_echo_n "(cached) " >&6 15086else 15087 if test -n "$ac_ct_NMEDIT"; then 15088 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 15089else 15090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15091for as_dir in $PATH 15092do 15093 IFS=$as_save_IFS 15094 test -z "$as_dir" && as_dir=. 15095 for ac_exec_ext in '' $ac_executable_extensions; do 15096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15097 ac_cv_prog_ac_ct_NMEDIT="nmedit" 15098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15099 break 2 15100 fi 15101done 15102 done 15103IFS=$as_save_IFS 15104 15105fi 15106fi 15107ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 15108if test -n "$ac_ct_NMEDIT"; then 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 15110$as_echo "$ac_ct_NMEDIT" >&6; } 15111else 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15113$as_echo "no" >&6; } 15114fi 15115 15116 if test "x$ac_ct_NMEDIT" = x; then 15117 NMEDIT=":" 15118 else 15119 case $cross_compiling:$ac_tool_warned in 15120yes:) 15121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15123ac_tool_warned=yes ;; 15124esac 15125 NMEDIT=$ac_ct_NMEDIT 15126 fi 15127else 15128 NMEDIT="$ac_cv_prog_NMEDIT" 15129fi 15130 15131 if test -n "$ac_tool_prefix"; then 15132 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 15133set dummy ${ac_tool_prefix}lipo; ac_word=$2 15134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15135$as_echo_n "checking for $ac_word... " >&6; } 15136if ${ac_cv_prog_LIPO+:} false; then : 15137 $as_echo_n "(cached) " >&6 15138else 15139 if test -n "$LIPO"; then 15140 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 15141else 15142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15143for as_dir in $PATH 15144do 15145 IFS=$as_save_IFS 15146 test -z "$as_dir" && as_dir=. 15147 for ac_exec_ext in '' $ac_executable_extensions; do 15148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15149 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 15150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15151 break 2 15152 fi 15153done 15154 done 15155IFS=$as_save_IFS 15156 15157fi 15158fi 15159LIPO=$ac_cv_prog_LIPO 15160if test -n "$LIPO"; then 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 15162$as_echo "$LIPO" >&6; } 15163else 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15165$as_echo "no" >&6; } 15166fi 15167 15168 15169fi 15170if test -z "$ac_cv_prog_LIPO"; then 15171 ac_ct_LIPO=$LIPO 15172 # Extract the first word of "lipo", so it can be a program name with args. 15173set dummy lipo; ac_word=$2 15174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15175$as_echo_n "checking for $ac_word... " >&6; } 15176if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 15177 $as_echo_n "(cached) " >&6 15178else 15179 if test -n "$ac_ct_LIPO"; then 15180 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 15181else 15182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15183for as_dir in $PATH 15184do 15185 IFS=$as_save_IFS 15186 test -z "$as_dir" && as_dir=. 15187 for ac_exec_ext in '' $ac_executable_extensions; do 15188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15189 ac_cv_prog_ac_ct_LIPO="lipo" 15190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15191 break 2 15192 fi 15193done 15194 done 15195IFS=$as_save_IFS 15196 15197fi 15198fi 15199ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 15200if test -n "$ac_ct_LIPO"; then 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 15202$as_echo "$ac_ct_LIPO" >&6; } 15203else 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15205$as_echo "no" >&6; } 15206fi 15207 15208 if test "x$ac_ct_LIPO" = x; then 15209 LIPO=":" 15210 else 15211 case $cross_compiling:$ac_tool_warned in 15212yes:) 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15215ac_tool_warned=yes ;; 15216esac 15217 LIPO=$ac_ct_LIPO 15218 fi 15219else 15220 LIPO="$ac_cv_prog_LIPO" 15221fi 15222 15223 if test -n "$ac_tool_prefix"; then 15224 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 15225set dummy ${ac_tool_prefix}otool; ac_word=$2 15226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15227$as_echo_n "checking for $ac_word... " >&6; } 15228if ${ac_cv_prog_OTOOL+:} false; then : 15229 $as_echo_n "(cached) " >&6 15230else 15231 if test -n "$OTOOL"; then 15232 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 15233else 15234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15235for as_dir in $PATH 15236do 15237 IFS=$as_save_IFS 15238 test -z "$as_dir" && as_dir=. 15239 for ac_exec_ext in '' $ac_executable_extensions; do 15240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15241 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15243 break 2 15244 fi 15245done 15246 done 15247IFS=$as_save_IFS 15248 15249fi 15250fi 15251OTOOL=$ac_cv_prog_OTOOL 15252if test -n "$OTOOL"; then 15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15254$as_echo "$OTOOL" >&6; } 15255else 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15257$as_echo "no" >&6; } 15258fi 15259 15260 15261fi 15262if test -z "$ac_cv_prog_OTOOL"; then 15263 ac_ct_OTOOL=$OTOOL 15264 # Extract the first word of "otool", so it can be a program name with args. 15265set dummy otool; ac_word=$2 15266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15267$as_echo_n "checking for $ac_word... " >&6; } 15268if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 15269 $as_echo_n "(cached) " >&6 15270else 15271 if test -n "$ac_ct_OTOOL"; then 15272 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15273else 15274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15275for as_dir in $PATH 15276do 15277 IFS=$as_save_IFS 15278 test -z "$as_dir" && as_dir=. 15279 for ac_exec_ext in '' $ac_executable_extensions; do 15280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15281 ac_cv_prog_ac_ct_OTOOL="otool" 15282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15283 break 2 15284 fi 15285done 15286 done 15287IFS=$as_save_IFS 15288 15289fi 15290fi 15291ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15292if test -n "$ac_ct_OTOOL"; then 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15294$as_echo "$ac_ct_OTOOL" >&6; } 15295else 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15297$as_echo "no" >&6; } 15298fi 15299 15300 if test "x$ac_ct_OTOOL" = x; then 15301 OTOOL=":" 15302 else 15303 case $cross_compiling:$ac_tool_warned in 15304yes:) 15305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15307ac_tool_warned=yes ;; 15308esac 15309 OTOOL=$ac_ct_OTOOL 15310 fi 15311else 15312 OTOOL="$ac_cv_prog_OTOOL" 15313fi 15314 15315 if test -n "$ac_tool_prefix"; then 15316 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15317set dummy ${ac_tool_prefix}otool64; ac_word=$2 15318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15319$as_echo_n "checking for $ac_word... " >&6; } 15320if ${ac_cv_prog_OTOOL64+:} false; then : 15321 $as_echo_n "(cached) " >&6 15322else 15323 if test -n "$OTOOL64"; then 15324 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15325else 15326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15327for as_dir in $PATH 15328do 15329 IFS=$as_save_IFS 15330 test -z "$as_dir" && as_dir=. 15331 for ac_exec_ext in '' $ac_executable_extensions; do 15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15333 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15335 break 2 15336 fi 15337done 15338 done 15339IFS=$as_save_IFS 15340 15341fi 15342fi 15343OTOOL64=$ac_cv_prog_OTOOL64 15344if test -n "$OTOOL64"; then 15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15346$as_echo "$OTOOL64" >&6; } 15347else 15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15349$as_echo "no" >&6; } 15350fi 15351 15352 15353fi 15354if test -z "$ac_cv_prog_OTOOL64"; then 15355 ac_ct_OTOOL64=$OTOOL64 15356 # Extract the first word of "otool64", so it can be a program name with args. 15357set dummy otool64; ac_word=$2 15358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15359$as_echo_n "checking for $ac_word... " >&6; } 15360if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 15361 $as_echo_n "(cached) " >&6 15362else 15363 if test -n "$ac_ct_OTOOL64"; then 15364 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15365else 15366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15367for as_dir in $PATH 15368do 15369 IFS=$as_save_IFS 15370 test -z "$as_dir" && as_dir=. 15371 for ac_exec_ext in '' $ac_executable_extensions; do 15372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15373 ac_cv_prog_ac_ct_OTOOL64="otool64" 15374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15375 break 2 15376 fi 15377done 15378 done 15379IFS=$as_save_IFS 15380 15381fi 15382fi 15383ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15384if test -n "$ac_ct_OTOOL64"; then 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15386$as_echo "$ac_ct_OTOOL64" >&6; } 15387else 15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15389$as_echo "no" >&6; } 15390fi 15391 15392 if test "x$ac_ct_OTOOL64" = x; then 15393 OTOOL64=":" 15394 else 15395 case $cross_compiling:$ac_tool_warned in 15396yes:) 15397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15399ac_tool_warned=yes ;; 15400esac 15401 OTOOL64=$ac_ct_OTOOL64 15402 fi 15403else 15404 OTOOL64="$ac_cv_prog_OTOOL64" 15405fi 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15434$as_echo_n "checking for -single_module linker flag... " >&6; } 15435if ${lt_cv_apple_cc_single_mod+:} false; then : 15436 $as_echo_n "(cached) " >&6 15437else 15438 lt_cv_apple_cc_single_mod=no 15439 if test -z "${LT_MULTI_MODULE}"; then 15440 # By default we will add the -single_module flag. You can override 15441 # by either setting the environment variable LT_MULTI_MODULE 15442 # non-empty at configure time, or by adding -multi_module to the 15443 # link flags. 15444 rm -rf libconftest.dylib* 15445 echo "int foo(void){return 1;}" > conftest.c 15446 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15447-dynamiclib -Wl,-single_module conftest.c" >&5 15448 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15449 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15450 _lt_result=$? 15451 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 15452 lt_cv_apple_cc_single_mod=yes 15453 else 15454 cat conftest.err >&5 15455 fi 15456 rm -rf libconftest.dylib* 15457 rm -f conftest.* 15458 fi 15459fi 15460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15461$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15463$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 15464if ${lt_cv_ld_exported_symbols_list+:} false; then : 15465 $as_echo_n "(cached) " >&6 15466else 15467 lt_cv_ld_exported_symbols_list=no 15468 save_LDFLAGS=$LDFLAGS 15469 echo "_main" > conftest.sym 15470 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15472/* end confdefs.h. */ 15473 15474int 15475main () 15476{ 15477 15478 ; 15479 return 0; 15480} 15481_ACEOF 15482if ac_fn_c_try_link "$LINENO"; then : 15483 lt_cv_ld_exported_symbols_list=yes 15484else 15485 lt_cv_ld_exported_symbols_list=no 15486fi 15487rm -f core conftest.err conftest.$ac_objext \ 15488 conftest$ac_exeext conftest.$ac_ext 15489 LDFLAGS="$save_LDFLAGS" 15490 15491fi 15492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15493$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15495$as_echo_n "checking for -force_load linker flag... " >&6; } 15496if ${lt_cv_ld_force_load+:} false; then : 15497 $as_echo_n "(cached) " >&6 15498else 15499 lt_cv_ld_force_load=no 15500 cat > conftest.c << _LT_EOF 15501int forced_loaded() { return 2;} 15502_LT_EOF 15503 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15504 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15505 echo "$AR cru libconftest.a conftest.o" >&5 15506 $AR cru libconftest.a conftest.o 2>&5 15507 cat > conftest.c << _LT_EOF 15508int main() { return 0;} 15509_LT_EOF 15510 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15511 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15512 _lt_result=$? 15513 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 15514 lt_cv_ld_force_load=yes 15515 else 15516 cat conftest.err >&5 15517 fi 15518 rm -f conftest.err libconftest.a conftest conftest.c 15519 rm -rf conftest.dSYM 15520 15521fi 15522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15523$as_echo "$lt_cv_ld_force_load" >&6; } 15524 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 15525 # build without first building modern cctools / linker. 15526 case $host_cpu-$host_os in 15527 *-rhapsody* | *-darwin1.[012]) 15528 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 15529 *-darwin1.*) 15530 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 15531 *-darwin*) 15532 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 15533 # deployment target is forced to an earlier version. 15534 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 15535 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 15536 ;; 15537 10.[012][,.]*) 15538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15539 ;; 15540 *) 15541 ;; 15542 esac 15543 ;; 15544 esac 15545 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 15546 _lt_dar_single_mod='$single_module' 15547 fi 15548 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 15549 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 15550 else 15551 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 15552 fi 15553 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 15554 _lt_dsymutil='~$DSYMUTIL $lib || :' 15555 else 15556 _lt_dsymutil= 15557 fi 15558 ;; 15559 esac 15560 15561 15562for ac_header in dlfcn.h 15563do : 15564 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" 15565if test "x$ac_cv_header_dlfcn_h" = xyes; then : 15566 cat >>confdefs.h <<_ACEOF 15567#define HAVE_DLFCN_H 1 15568_ACEOF 15569 15570fi 15571done 15572 15573 15574 15575 15576 15577# Set options 15578 15579 15580 15581 enable_dlopen=no 15582 15583 15584 enable_win32_dll=no 15585 15586 15587 # Check whether --enable-shared was given. 15588if test "${enable_shared+set}" = set; then : 15589 enableval=$enable_shared; p=${PACKAGE-default} 15590 case $enableval in 15591 yes) enable_shared=yes ;; 15592 no) enable_shared=no ;; 15593 *) 15594 enable_shared=no 15595 # Look at the argument we got. We use all the common list separators. 15596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15597 for pkg in $enableval; do 15598 IFS="$lt_save_ifs" 15599 if test "X$pkg" = "X$p"; then 15600 enable_shared=yes 15601 fi 15602 done 15603 IFS="$lt_save_ifs" 15604 ;; 15605 esac 15606else 15607 enable_shared=yes 15608fi 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 # Check whether --enable-static was given. 15619if test "${enable_static+set}" = set; then : 15620 enableval=$enable_static; p=${PACKAGE-default} 15621 case $enableval in 15622 yes) enable_static=yes ;; 15623 no) enable_static=no ;; 15624 *) 15625 enable_static=no 15626 # Look at the argument we got. We use all the common list separators. 15627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15628 for pkg in $enableval; do 15629 IFS="$lt_save_ifs" 15630 if test "X$pkg" = "X$p"; then 15631 enable_static=yes 15632 fi 15633 done 15634 IFS="$lt_save_ifs" 15635 ;; 15636 esac 15637else 15638 enable_static=yes 15639fi 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650# Check whether --with-pic was given. 15651if test "${with_pic+set}" = set; then : 15652 withval=$with_pic; pic_mode="$withval" 15653else 15654 pic_mode=default 15655fi 15656 15657 15658test -z "$pic_mode" && pic_mode=default 15659 15660 15661 15662 15663 15664 15665 15666 # Check whether --enable-fast-install was given. 15667if test "${enable_fast_install+set}" = set; then : 15668 enableval=$enable_fast_install; p=${PACKAGE-default} 15669 case $enableval in 15670 yes) enable_fast_install=yes ;; 15671 no) enable_fast_install=no ;; 15672 *) 15673 enable_fast_install=no 15674 # Look at the argument we got. We use all the common list separators. 15675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15676 for pkg in $enableval; do 15677 IFS="$lt_save_ifs" 15678 if test "X$pkg" = "X$p"; then 15679 enable_fast_install=yes 15680 fi 15681 done 15682 IFS="$lt_save_ifs" 15683 ;; 15684 esac 15685else 15686 enable_fast_install=yes 15687fi 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699# This can be used to rebuild libtool when needed 15700LIBTOOL_DEPS="$ltmain" 15701 15702# Always use our own libtool. 15703LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730test -z "$LN_S" && LN_S="ln -s" 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745if test -n "${ZSH_VERSION+set}" ; then 15746 setopt NO_GLOB_SUBST 15747fi 15748 15749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15750$as_echo_n "checking for objdir... " >&6; } 15751if ${lt_cv_objdir+:} false; then : 15752 $as_echo_n "(cached) " >&6 15753else 15754 rm -f .libs 2>/dev/null 15755mkdir .libs 2>/dev/null 15756if test -d .libs; then 15757 lt_cv_objdir=.libs 15758else 15759 # MS-DOS does not allow filenames that begin with a dot. 15760 lt_cv_objdir=_libs 15761fi 15762rmdir .libs 2>/dev/null 15763fi 15764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15765$as_echo "$lt_cv_objdir" >&6; } 15766objdir=$lt_cv_objdir 15767 15768 15769 15770 15771 15772cat >>confdefs.h <<_ACEOF 15773#define LT_OBJDIR "$lt_cv_objdir/" 15774_ACEOF 15775 15776 15777 15778 15779case $host_os in 15780aix3*) 15781 # AIX sometimes has problems with the GCC collect2 program. For some 15782 # reason, if we set the COLLECT_NAMES environment variable, the problems 15783 # vanish in a puff of smoke. 15784 if test "X${COLLECT_NAMES+set}" != Xset; then 15785 COLLECT_NAMES= 15786 export COLLECT_NAMES 15787 fi 15788 ;; 15789esac 15790 15791# Global variables: 15792ofile=libtool 15793can_build_shared=yes 15794 15795# All known linkers require a `.a' archive for static linking (except MSVC, 15796# which needs '.lib'). 15797libext=a 15798 15799with_gnu_ld="$lt_cv_prog_gnu_ld" 15800 15801old_CC="$CC" 15802old_CFLAGS="$CFLAGS" 15803 15804# Set sane defaults for various variables 15805test -z "$CC" && CC=cc 15806test -z "$LTCC" && LTCC=$CC 15807test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15808test -z "$LD" && LD=ld 15809test -z "$ac_objext" && ac_objext=o 15810 15811for cc_temp in $compiler""; do 15812 case $cc_temp in 15813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15815 \-*) ;; 15816 *) break;; 15817 esac 15818done 15819cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15820 15821 15822# Only perform the check for file, if the check method requires it 15823test -z "$MAGIC_CMD" && MAGIC_CMD=file 15824case $deplibs_check_method in 15825file_magic*) 15826 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15828$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 15829if ${lt_cv_path_MAGIC_CMD+:} false; then : 15830 $as_echo_n "(cached) " >&6 15831else 15832 case $MAGIC_CMD in 15833[\\/*] | ?:[\\/]*) 15834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 15835 ;; 15836*) 15837 lt_save_MAGIC_CMD="$MAGIC_CMD" 15838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15840 for ac_dir in $ac_dummy; do 15841 IFS="$lt_save_ifs" 15842 test -z "$ac_dir" && ac_dir=. 15843 if test -f $ac_dir/${ac_tool_prefix}file; then 15844 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 15845 if test -n "$file_magic_test_file"; then 15846 case $deplibs_check_method in 15847 "file_magic "*) 15848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15851 $EGREP "$file_magic_regex" > /dev/null; then 15852 : 15853 else 15854 cat <<_LT_EOF 1>&2 15855 15856*** Warning: the command libtool uses to detect shared libraries, 15857*** $file_magic_cmd, produces output that libtool cannot recognize. 15858*** The result is that libtool may fail to recognize shared libraries 15859*** as such. This will affect the creation of libtool libraries that 15860*** depend on shared libraries, but programs linked with such libtool 15861*** libraries will work regardless of this problem. Nevertheless, you 15862*** may want to report the problem to your system manager and/or to 15863*** bug-libtool@gnu.org 15864 15865_LT_EOF 15866 fi ;; 15867 esac 15868 fi 15869 break 15870 fi 15871 done 15872 IFS="$lt_save_ifs" 15873 MAGIC_CMD="$lt_save_MAGIC_CMD" 15874 ;; 15875esac 15876fi 15877 15878MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15879if test -n "$MAGIC_CMD"; then 15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15881$as_echo "$MAGIC_CMD" >&6; } 15882else 15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15884$as_echo "no" >&6; } 15885fi 15886 15887 15888 15889 15890 15891if test -z "$lt_cv_path_MAGIC_CMD"; then 15892 if test -n "$ac_tool_prefix"; then 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15894$as_echo_n "checking for file... " >&6; } 15895if ${lt_cv_path_MAGIC_CMD+:} false; then : 15896 $as_echo_n "(cached) " >&6 15897else 15898 case $MAGIC_CMD in 15899[\\/*] | ?:[\\/]*) 15900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 15901 ;; 15902*) 15903 lt_save_MAGIC_CMD="$MAGIC_CMD" 15904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15906 for ac_dir in $ac_dummy; do 15907 IFS="$lt_save_ifs" 15908 test -z "$ac_dir" && ac_dir=. 15909 if test -f $ac_dir/file; then 15910 lt_cv_path_MAGIC_CMD="$ac_dir/file" 15911 if test -n "$file_magic_test_file"; then 15912 case $deplibs_check_method in 15913 "file_magic "*) 15914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15917 $EGREP "$file_magic_regex" > /dev/null; then 15918 : 15919 else 15920 cat <<_LT_EOF 1>&2 15921 15922*** Warning: the command libtool uses to detect shared libraries, 15923*** $file_magic_cmd, produces output that libtool cannot recognize. 15924*** The result is that libtool may fail to recognize shared libraries 15925*** as such. This will affect the creation of libtool libraries that 15926*** depend on shared libraries, but programs linked with such libtool 15927*** libraries will work regardless of this problem. Nevertheless, you 15928*** may want to report the problem to your system manager and/or to 15929*** bug-libtool@gnu.org 15930 15931_LT_EOF 15932 fi ;; 15933 esac 15934 fi 15935 break 15936 fi 15937 done 15938 IFS="$lt_save_ifs" 15939 MAGIC_CMD="$lt_save_MAGIC_CMD" 15940 ;; 15941esac 15942fi 15943 15944MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15945if test -n "$MAGIC_CMD"; then 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15947$as_echo "$MAGIC_CMD" >&6; } 15948else 15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15950$as_echo "no" >&6; } 15951fi 15952 15953 15954 else 15955 MAGIC_CMD=: 15956 fi 15957fi 15958 15959 fi 15960 ;; 15961esac 15962 15963# Use C for the default configuration in the libtool script 15964 15965lt_save_CC="$CC" 15966ac_ext=c 15967ac_cpp='$CPP $CPPFLAGS' 15968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15970ac_compiler_gnu=$ac_cv_c_compiler_gnu 15971 15972 15973# Source file extension for C test sources. 15974ac_ext=c 15975 15976# Object file extension for compiled C test sources. 15977objext=o 15978objext=$objext 15979 15980# Code to be used in simple compile tests 15981lt_simple_compile_test_code="int some_variable = 0;" 15982 15983# Code to be used in simple link tests 15984lt_simple_link_test_code='int main(){return(0);}' 15985 15986 15987 15988 15989 15990 15991 15992# If no C compiler was specified, use CC. 15993LTCC=${LTCC-"$CC"} 15994 15995# If no C compiler flags were specified, use CFLAGS. 15996LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15997 15998# Allow CC to be a program name with arguments. 15999compiler=$CC 16000 16001# Save the default compiler, since it gets overwritten when the other 16002# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 16003compiler_DEFAULT=$CC 16004 16005# save warnings/boilerplate of simple test code 16006ac_outfile=conftest.$ac_objext 16007echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16008eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16009_lt_compiler_boilerplate=`cat conftest.err` 16010$RM conftest* 16011 16012ac_outfile=conftest.$ac_objext 16013echo "$lt_simple_link_test_code" >conftest.$ac_ext 16014eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16015_lt_linker_boilerplate=`cat conftest.err` 16016$RM -r conftest* 16017 16018 16019## CAVEAT EMPTOR: 16020## There is no encapsulation within the following macros, do not change 16021## the running order or otherwise move them around unless you know exactly 16022## what you are doing... 16023if test -n "$compiler"; then 16024 16025lt_prog_compiler_no_builtin_flag= 16026 16027if test "$GCC" = yes; then 16028 case $cc_basename in 16029 nvcc*) 16030 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 16031 *) 16032 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 16033 esac 16034 16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16036$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16037if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 16038 $as_echo_n "(cached) " >&6 16039else 16040 lt_cv_prog_compiler_rtti_exceptions=no 16041 ac_outfile=conftest.$ac_objext 16042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16043 lt_compiler_flag="-fno-rtti -fno-exceptions" 16044 # Insert the option either (1) after the last *FLAGS variable, or 16045 # (2) before a word containing "conftest.", or (3) at the end. 16046 # Note that $ac_compile itself does not contain backslashes and begins 16047 # with a dollar sign (not a hyphen), so the echo should work correctly. 16048 # The option is referenced via a variable to avoid confusing sed. 16049 lt_compile=`echo "$ac_compile" | $SED \ 16050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16052 -e 's:$: $lt_compiler_flag:'` 16053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16054 (eval "$lt_compile" 2>conftest.err) 16055 ac_status=$? 16056 cat conftest.err >&5 16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16058 if (exit $ac_status) && test -s "$ac_outfile"; then 16059 # The compiler can only warn and ignore the option if not recognized 16060 # So say no if there are warnings other than the usual output. 16061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16064 lt_cv_prog_compiler_rtti_exceptions=yes 16065 fi 16066 fi 16067 $RM conftest* 16068 16069fi 16070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16071$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16072 16073if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16074 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 16075else 16076 : 16077fi 16078 16079fi 16080 16081 16082 16083 16084 16085 16086 lt_prog_compiler_wl= 16087lt_prog_compiler_pic= 16088lt_prog_compiler_static= 16089 16090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16091$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16092 16093 if test "$GCC" = yes; then 16094 lt_prog_compiler_wl='-Wl,' 16095 lt_prog_compiler_static='-static' 16096 16097 case $host_os in 16098 aix*) 16099 # All AIX code is PIC. 16100 if test "$host_cpu" = ia64; then 16101 # AIX 5 now supports IA64 processor 16102 lt_prog_compiler_static='-Bstatic' 16103 fi 16104 lt_prog_compiler_pic='-fPIC' 16105 ;; 16106 16107 amigaos*) 16108 case $host_cpu in 16109 powerpc) 16110 # see comment about AmigaOS4 .so support 16111 lt_prog_compiler_pic='-fPIC' 16112 ;; 16113 m68k) 16114 # FIXME: we need at least 68020 code to build shared libraries, but 16115 # adding the `-m68020' flag to GCC prevents building anything better, 16116 # like `-m68040'. 16117 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16118 ;; 16119 esac 16120 ;; 16121 16122 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16123 # PIC is the default for these OSes. 16124 ;; 16125 16126 mingw* | cygwin* | pw32* | os2* | cegcc*) 16127 # This hack is so that the source file can tell whether it is being 16128 # built for inclusion in a dll (and should export symbols for example). 16129 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16130 # (--disable-auto-import) libraries 16131 lt_prog_compiler_pic='-DDLL_EXPORT' 16132 ;; 16133 16134 darwin* | rhapsody*) 16135 # PIC is the default on this platform 16136 # Common symbols not allowed in MH_DYLIB files 16137 lt_prog_compiler_pic='-fno-common' 16138 ;; 16139 16140 haiku*) 16141 # PIC is the default for Haiku. 16142 # The "-static" flag exists, but is broken. 16143 lt_prog_compiler_static= 16144 ;; 16145 16146 hpux*) 16147 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16148 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16149 # sets the default TLS model and affects inlining. 16150 case $host_cpu in 16151 hppa*64*) 16152 # +Z the default 16153 ;; 16154 *) 16155 lt_prog_compiler_pic='-fPIC' 16156 ;; 16157 esac 16158 ;; 16159 16160 interix[3-9]*) 16161 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16162 # Instead, we relocate shared libraries at runtime. 16163 ;; 16164 16165 msdosdjgpp*) 16166 # Just because we use GCC doesn't mean we suddenly get shared libraries 16167 # on systems that don't support them. 16168 lt_prog_compiler_can_build_shared=no 16169 enable_shared=no 16170 ;; 16171 16172 *nto* | *qnx*) 16173 # QNX uses GNU C++, but need to define -shared option too, otherwise 16174 # it will coredump. 16175 lt_prog_compiler_pic='-fPIC -shared' 16176 ;; 16177 16178 sysv4*MP*) 16179 if test -d /usr/nec; then 16180 lt_prog_compiler_pic=-Kconform_pic 16181 fi 16182 ;; 16183 16184 *) 16185 lt_prog_compiler_pic='-fPIC' 16186 ;; 16187 esac 16188 16189 case $cc_basename in 16190 nvcc*) # Cuda Compiler Driver 2.2 16191 lt_prog_compiler_wl='-Xlinker ' 16192 lt_prog_compiler_pic='-Xcompiler -fPIC' 16193 ;; 16194 esac 16195 else 16196 # PORTME Check for flag to pass linker flags through the system compiler. 16197 case $host_os in 16198 aix*) 16199 lt_prog_compiler_wl='-Wl,' 16200 if test "$host_cpu" = ia64; then 16201 # AIX 5 now supports IA64 processor 16202 lt_prog_compiler_static='-Bstatic' 16203 else 16204 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16205 fi 16206 ;; 16207 16208 mingw* | cygwin* | pw32* | os2* | cegcc*) 16209 # This hack is so that the source file can tell whether it is being 16210 # built for inclusion in a dll (and should export symbols for example). 16211 lt_prog_compiler_pic='-DDLL_EXPORT' 16212 ;; 16213 16214 hpux9* | hpux10* | hpux11*) 16215 lt_prog_compiler_wl='-Wl,' 16216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16217 # not for PA HP-UX. 16218 case $host_cpu in 16219 hppa*64*|ia64*) 16220 # +Z the default 16221 ;; 16222 *) 16223 lt_prog_compiler_pic='+Z' 16224 ;; 16225 esac 16226 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16227 lt_prog_compiler_static='${wl}-a ${wl}archive' 16228 ;; 16229 16230 irix5* | irix6* | nonstopux*) 16231 lt_prog_compiler_wl='-Wl,' 16232 # PIC (with -KPIC) is the default. 16233 lt_prog_compiler_static='-non_shared' 16234 ;; 16235 16236 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16237 case $cc_basename in 16238 # old Intel for x86_64 which still supported -KPIC. 16239 ecc*) 16240 lt_prog_compiler_wl='-Wl,' 16241 lt_prog_compiler_pic='-KPIC' 16242 lt_prog_compiler_static='-static' 16243 ;; 16244 # icc used to be incompatible with GCC. 16245 # ICC 10 doesn't accept -KPIC any more. 16246 icc* | ifort*) 16247 lt_prog_compiler_wl='-Wl,' 16248 lt_prog_compiler_pic='-fPIC' 16249 lt_prog_compiler_static='-static' 16250 ;; 16251 # Lahey Fortran 8.1. 16252 lf95*) 16253 lt_prog_compiler_wl='-Wl,' 16254 lt_prog_compiler_pic='--shared' 16255 lt_prog_compiler_static='--static' 16256 ;; 16257 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16258 # Portland Group compilers (*not* the Pentium gcc compiler, 16259 # which looks to be a dead project) 16260 lt_prog_compiler_wl='-Wl,' 16261 lt_prog_compiler_pic='-fpic' 16262 lt_prog_compiler_static='-Bstatic' 16263 ;; 16264 ccc*) 16265 lt_prog_compiler_wl='-Wl,' 16266 # All Alpha code is PIC. 16267 lt_prog_compiler_static='-non_shared' 16268 ;; 16269 xl* | bgxl* | bgf* | mpixl*) 16270 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16271 lt_prog_compiler_wl='-Wl,' 16272 lt_prog_compiler_pic='-qpic' 16273 lt_prog_compiler_static='-qstaticlink' 16274 ;; 16275 *) 16276 case `$CC -V 2>&1 | sed 5q` in 16277 *Sun\ F* | *Sun*Fortran*) 16278 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16279 lt_prog_compiler_pic='-KPIC' 16280 lt_prog_compiler_static='-Bstatic' 16281 lt_prog_compiler_wl='' 16282 ;; 16283 *Sun\ C*) 16284 # Sun C 5.9 16285 lt_prog_compiler_pic='-KPIC' 16286 lt_prog_compiler_static='-Bstatic' 16287 lt_prog_compiler_wl='-Wl,' 16288 ;; 16289 esac 16290 ;; 16291 esac 16292 ;; 16293 16294 newsos6) 16295 lt_prog_compiler_pic='-KPIC' 16296 lt_prog_compiler_static='-Bstatic' 16297 ;; 16298 16299 *nto* | *qnx*) 16300 # QNX uses GNU C++, but need to define -shared option too, otherwise 16301 # it will coredump. 16302 lt_prog_compiler_pic='-fPIC -shared' 16303 ;; 16304 16305 osf3* | osf4* | osf5*) 16306 lt_prog_compiler_wl='-Wl,' 16307 # All OSF/1 code is PIC. 16308 lt_prog_compiler_static='-non_shared' 16309 ;; 16310 16311 rdos*) 16312 lt_prog_compiler_static='-non_shared' 16313 ;; 16314 16315 solaris*) 16316 lt_prog_compiler_pic='-KPIC' 16317 lt_prog_compiler_static='-Bstatic' 16318 case $cc_basename in 16319 f77* | f90* | f95*) 16320 lt_prog_compiler_wl='-Qoption ld ';; 16321 *) 16322 lt_prog_compiler_wl='-Wl,';; 16323 esac 16324 ;; 16325 16326 sunos4*) 16327 lt_prog_compiler_wl='-Qoption ld ' 16328 lt_prog_compiler_pic='-PIC' 16329 lt_prog_compiler_static='-Bstatic' 16330 ;; 16331 16332 sysv4 | sysv4.2uw2* | sysv4.3*) 16333 lt_prog_compiler_wl='-Wl,' 16334 lt_prog_compiler_pic='-KPIC' 16335 lt_prog_compiler_static='-Bstatic' 16336 ;; 16337 16338 sysv4*MP*) 16339 if test -d /usr/nec ;then 16340 lt_prog_compiler_pic='-Kconform_pic' 16341 lt_prog_compiler_static='-Bstatic' 16342 fi 16343 ;; 16344 16345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16346 lt_prog_compiler_wl='-Wl,' 16347 lt_prog_compiler_pic='-KPIC' 16348 lt_prog_compiler_static='-Bstatic' 16349 ;; 16350 16351 unicos*) 16352 lt_prog_compiler_wl='-Wl,' 16353 lt_prog_compiler_can_build_shared=no 16354 ;; 16355 16356 uts4*) 16357 lt_prog_compiler_pic='-pic' 16358 lt_prog_compiler_static='-Bstatic' 16359 ;; 16360 16361 *) 16362 lt_prog_compiler_can_build_shared=no 16363 ;; 16364 esac 16365 fi 16366 16367case $host_os in 16368 # For platforms which do not support PIC, -DPIC is meaningless: 16369 *djgpp*) 16370 lt_prog_compiler_pic= 16371 ;; 16372 *) 16373 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16374 ;; 16375esac 16376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 16377$as_echo "$lt_prog_compiler_pic" >&6; } 16378 16379 16380 16381 16382 16383 16384# 16385# Check to make sure the PIC flag actually works. 16386# 16387if test -n "$lt_prog_compiler_pic"; then 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16389$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16390if ${lt_cv_prog_compiler_pic_works+:} false; then : 16391 $as_echo_n "(cached) " >&6 16392else 16393 lt_cv_prog_compiler_pic_works=no 16394 ac_outfile=conftest.$ac_objext 16395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 16397 # Insert the option either (1) after the last *FLAGS variable, or 16398 # (2) before a word containing "conftest.", or (3) at the end. 16399 # Note that $ac_compile itself does not contain backslashes and begins 16400 # with a dollar sign (not a hyphen), so the echo should work correctly. 16401 # The option is referenced via a variable to avoid confusing sed. 16402 lt_compile=`echo "$ac_compile" | $SED \ 16403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16405 -e 's:$: $lt_compiler_flag:'` 16406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16407 (eval "$lt_compile" 2>conftest.err) 16408 ac_status=$? 16409 cat conftest.err >&5 16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16411 if (exit $ac_status) && test -s "$ac_outfile"; then 16412 # The compiler can only warn and ignore the option if not recognized 16413 # So say no if there are warnings other than the usual output. 16414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16417 lt_cv_prog_compiler_pic_works=yes 16418 fi 16419 fi 16420 $RM conftest* 16421 16422fi 16423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16424$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 16425 16426if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 16427 case $lt_prog_compiler_pic in 16428 "" | " "*) ;; 16429 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16430 esac 16431else 16432 lt_prog_compiler_pic= 16433 lt_prog_compiler_can_build_shared=no 16434fi 16435 16436fi 16437 16438 16439 16440 16441 16442 16443# 16444# Check to make sure the static flag actually works. 16445# 16446wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16448$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16449if ${lt_cv_prog_compiler_static_works+:} false; then : 16450 $as_echo_n "(cached) " >&6 16451else 16452 lt_cv_prog_compiler_static_works=no 16453 save_LDFLAGS="$LDFLAGS" 16454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16455 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16457 # The linker can only warn and ignore the option if not recognized 16458 # So say no if there are warnings 16459 if test -s conftest.err; then 16460 # Append any errors to the config.log. 16461 cat conftest.err 1>&5 16462 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16464 if diff conftest.exp conftest.er2 >/dev/null; then 16465 lt_cv_prog_compiler_static_works=yes 16466 fi 16467 else 16468 lt_cv_prog_compiler_static_works=yes 16469 fi 16470 fi 16471 $RM -r conftest* 16472 LDFLAGS="$save_LDFLAGS" 16473 16474fi 16475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16476$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 16477 16478if test x"$lt_cv_prog_compiler_static_works" = xyes; then 16479 : 16480else 16481 lt_prog_compiler_static= 16482fi 16483 16484 16485 16486 16487 16488 16489 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16491$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16492if ${lt_cv_prog_compiler_c_o+:} false; then : 16493 $as_echo_n "(cached) " >&6 16494else 16495 lt_cv_prog_compiler_c_o=no 16496 $RM -r conftest 2>/dev/null 16497 mkdir conftest 16498 cd conftest 16499 mkdir out 16500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16501 16502 lt_compiler_flag="-o out/conftest2.$ac_objext" 16503 # Insert the option either (1) after the last *FLAGS variable, or 16504 # (2) before a word containing "conftest.", or (3) at the end. 16505 # Note that $ac_compile itself does not contain backslashes and begins 16506 # with a dollar sign (not a hyphen), so the echo should work correctly. 16507 lt_compile=`echo "$ac_compile" | $SED \ 16508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16510 -e 's:$: $lt_compiler_flag:'` 16511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16512 (eval "$lt_compile" 2>out/conftest.err) 16513 ac_status=$? 16514 cat out/conftest.err >&5 16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16516 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16517 then 16518 # The compiler can only warn and ignore the option if not recognized 16519 # So say no if there are warnings 16520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16521 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16522 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16523 lt_cv_prog_compiler_c_o=yes 16524 fi 16525 fi 16526 chmod u+w . 2>&5 16527 $RM conftest* 16528 # SGI C++ compiler will create directory out/ii_files/ for 16529 # template instantiation 16530 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16531 $RM out/* && rmdir out 16532 cd .. 16533 $RM -r conftest 16534 $RM conftest* 16535 16536fi 16537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16538$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16539 16540 16541 16542 16543 16544 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16546$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16547if ${lt_cv_prog_compiler_c_o+:} false; then : 16548 $as_echo_n "(cached) " >&6 16549else 16550 lt_cv_prog_compiler_c_o=no 16551 $RM -r conftest 2>/dev/null 16552 mkdir conftest 16553 cd conftest 16554 mkdir out 16555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16556 16557 lt_compiler_flag="-o out/conftest2.$ac_objext" 16558 # Insert the option either (1) after the last *FLAGS variable, or 16559 # (2) before a word containing "conftest.", or (3) at the end. 16560 # Note that $ac_compile itself does not contain backslashes and begins 16561 # with a dollar sign (not a hyphen), so the echo should work correctly. 16562 lt_compile=`echo "$ac_compile" | $SED \ 16563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16565 -e 's:$: $lt_compiler_flag:'` 16566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16567 (eval "$lt_compile" 2>out/conftest.err) 16568 ac_status=$? 16569 cat out/conftest.err >&5 16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16571 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16572 then 16573 # The compiler can only warn and ignore the option if not recognized 16574 # So say no if there are warnings 16575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16578 lt_cv_prog_compiler_c_o=yes 16579 fi 16580 fi 16581 chmod u+w . 2>&5 16582 $RM conftest* 16583 # SGI C++ compiler will create directory out/ii_files/ for 16584 # template instantiation 16585 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16586 $RM out/* && rmdir out 16587 cd .. 16588 $RM -r conftest 16589 $RM conftest* 16590 16591fi 16592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16593$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16594 16595 16596 16597 16598hard_links="nottested" 16599if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 16600 # do not overwrite the value of need_locks provided by the user 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16602$as_echo_n "checking if we can lock with hard links... " >&6; } 16603 hard_links=yes 16604 $RM conftest* 16605 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16606 touch conftest.a 16607 ln conftest.a conftest.b 2>&5 || hard_links=no 16608 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16610$as_echo "$hard_links" >&6; } 16611 if test "$hard_links" = no; then 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16613$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16614 need_locks=warn 16615 fi 16616else 16617 need_locks=no 16618fi 16619 16620 16621 16622 16623 16624 16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16626$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16627 16628 runpath_var= 16629 allow_undefined_flag= 16630 always_export_symbols=no 16631 archive_cmds= 16632 archive_expsym_cmds= 16633 compiler_needs_object=no 16634 enable_shared_with_static_runtimes=no 16635 export_dynamic_flag_spec= 16636 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16637 hardcode_automatic=no 16638 hardcode_direct=no 16639 hardcode_direct_absolute=no 16640 hardcode_libdir_flag_spec= 16641 hardcode_libdir_flag_spec_ld= 16642 hardcode_libdir_separator= 16643 hardcode_minus_L=no 16644 hardcode_shlibpath_var=unsupported 16645 inherit_rpath=no 16646 link_all_deplibs=unknown 16647 module_cmds= 16648 module_expsym_cmds= 16649 old_archive_from_new_cmds= 16650 old_archive_from_expsyms_cmds= 16651 thread_safe_flag_spec= 16652 whole_archive_flag_spec= 16653 # include_expsyms should be a list of space-separated symbols to be *always* 16654 # included in the symbol list 16655 include_expsyms= 16656 # exclude_expsyms can be an extended regexp of symbols to exclude 16657 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16659 # as well as any symbol that contains `d'. 16660 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16662 # platforms (ab)use it in PIC code, but their linkers get confused if 16663 # the symbol is explicitly referenced. Since portable code cannot 16664 # rely on this symbol name, it's probably fine to never include it in 16665 # preloaded symbol tables. 16666 # Exclude shared library initialization/finalization symbols. 16667 extract_expsyms_cmds= 16668 16669 case $host_os in 16670 cygwin* | mingw* | pw32* | cegcc*) 16671 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16672 # When not using gcc, we currently assume that we are using 16673 # Microsoft Visual C++. 16674 if test "$GCC" != yes; then 16675 with_gnu_ld=no 16676 fi 16677 ;; 16678 interix*) 16679 # we just hope/assume this is gcc and not c89 (= MSVC++) 16680 with_gnu_ld=yes 16681 ;; 16682 openbsd*) 16683 with_gnu_ld=no 16684 ;; 16685 esac 16686 16687 ld_shlibs=yes 16688 16689 # On some targets, GNU ld is compatible enough with the native linker 16690 # that we're better off using the native interface for both. 16691 lt_use_gnu_ld_interface=no 16692 if test "$with_gnu_ld" = yes; then 16693 case $host_os in 16694 aix*) 16695 # The AIX port of GNU ld has always aspired to compatibility 16696 # with the native linker. However, as the warning in the GNU ld 16697 # block says, versions before 2.19.5* couldn't really create working 16698 # shared libraries, regardless of the interface used. 16699 case `$LD -v 2>&1` in 16700 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16701 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16702 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16703 *) 16704 lt_use_gnu_ld_interface=yes 16705 ;; 16706 esac 16707 ;; 16708 *) 16709 lt_use_gnu_ld_interface=yes 16710 ;; 16711 esac 16712 fi 16713 16714 if test "$lt_use_gnu_ld_interface" = yes; then 16715 # If archive_cmds runs LD, not CC, wlarc should be empty 16716 wlarc='${wl}' 16717 16718 # Set some defaults for GNU ld with shared library support. These 16719 # are reset later if shared libraries are not supported. Putting them 16720 # here allows them to be overridden if necessary. 16721 runpath_var=LD_RUN_PATH 16722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16723 export_dynamic_flag_spec='${wl}--export-dynamic' 16724 # ancient GNU ld didn't support --whole-archive et. al. 16725 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16726 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16727 else 16728 whole_archive_flag_spec= 16729 fi 16730 supports_anon_versioning=no 16731 case `$LD -v 2>&1` in 16732 *GNU\ gold*) supports_anon_versioning=yes ;; 16733 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16736 *\ 2.11.*) ;; # other 2.11 versions 16737 *) supports_anon_versioning=yes ;; 16738 esac 16739 16740 # See if GNU ld supports shared libraries. 16741 case $host_os in 16742 aix[3-9]*) 16743 # On AIX/PPC, the GNU linker is very broken 16744 if test "$host_cpu" != ia64; then 16745 ld_shlibs=no 16746 cat <<_LT_EOF 1>&2 16747 16748*** Warning: the GNU linker, at least up to release 2.19, is reported 16749*** to be unable to reliably create shared libraries on AIX. 16750*** Therefore, libtool is disabling shared libraries support. If you 16751*** really care for shared libraries, you may want to install binutils 16752*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16753*** You will then need to restart the configuration process. 16754 16755_LT_EOF 16756 fi 16757 ;; 16758 16759 amigaos*) 16760 case $host_cpu in 16761 powerpc) 16762 # see comment about AmigaOS4 .so support 16763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16764 archive_expsym_cmds='' 16765 ;; 16766 m68k) 16767 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)' 16768 hardcode_libdir_flag_spec='-L$libdir' 16769 hardcode_minus_L=yes 16770 ;; 16771 esac 16772 ;; 16773 16774 beos*) 16775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16776 allow_undefined_flag=unsupported 16777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16778 # support --undefined. This deserves some investigation. FIXME 16779 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16780 else 16781 ld_shlibs=no 16782 fi 16783 ;; 16784 16785 cygwin* | mingw* | pw32* | cegcc*) 16786 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16787 # as there is no search path for DLLs. 16788 hardcode_libdir_flag_spec='-L$libdir' 16789 export_dynamic_flag_spec='${wl}--export-all-symbols' 16790 allow_undefined_flag=unsupported 16791 always_export_symbols=no 16792 enable_shared_with_static_runtimes=yes 16793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16794 16795 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16797 # If the export-symbols file already is a .def file (1st line 16798 # is EXPORTS), use it as is; otherwise, prepend... 16799 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16800 cp $export_symbols $output_objdir/$soname.def; 16801 else 16802 echo EXPORTS > $output_objdir/$soname.def; 16803 cat $export_symbols >> $output_objdir/$soname.def; 16804 fi~ 16805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16806 else 16807 ld_shlibs=no 16808 fi 16809 ;; 16810 16811 haiku*) 16812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16813 link_all_deplibs=yes 16814 ;; 16815 16816 interix[3-9]*) 16817 hardcode_direct=no 16818 hardcode_shlibpath_var=no 16819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16820 export_dynamic_flag_spec='${wl}-E' 16821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16822 # Instead, shared libraries are loaded at an image base (0x10000000 by 16823 # default) and relocated if they conflict, which is a slow very memory 16824 # consuming and fragmenting process. To avoid this, we pick a random, 16825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16826 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16828 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' 16829 ;; 16830 16831 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 16832 tmp_diet=no 16833 if test "$host_os" = linux-dietlibc; then 16834 case $cc_basename in 16835 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16836 esac 16837 fi 16838 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16839 && test "$tmp_diet" = no 16840 then 16841 tmp_addflag=' $pic_flag' 16842 tmp_sharedflag='-shared' 16843 case $cc_basename,$host_cpu in 16844 pgcc*) # Portland Group C compiler 16845 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' 16846 tmp_addflag=' $pic_flag' 16847 ;; 16848 pgf77* | pgf90* | pgf95* | pgfortran*) 16849 # Portland Group f77 and f90 compilers 16850 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' 16851 tmp_addflag=' $pic_flag -Mnomain' ;; 16852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16853 tmp_addflag=' -i_dynamic' ;; 16854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16855 tmp_addflag=' -i_dynamic -nofor_main' ;; 16856 ifc* | ifort*) # Intel Fortran compiler 16857 tmp_addflag=' -nofor_main' ;; 16858 lf95*) # Lahey Fortran 8.1 16859 whole_archive_flag_spec= 16860 tmp_sharedflag='--shared' ;; 16861 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16862 tmp_sharedflag='-qmkshrobj' 16863 tmp_addflag= ;; 16864 nvcc*) # Cuda Compiler Driver 2.2 16865 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' 16866 compiler_needs_object=yes 16867 ;; 16868 esac 16869 case `$CC -V 2>&1 | sed 5q` in 16870 *Sun\ C*) # Sun C 5.9 16871 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' 16872 compiler_needs_object=yes 16873 tmp_sharedflag='-G' ;; 16874 *Sun\ F*) # Sun Fortran 8.3 16875 tmp_sharedflag='-G' ;; 16876 esac 16877 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16878 16879 if test "x$supports_anon_versioning" = xyes; then 16880 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16881 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16882 echo "local: *; };" >> $output_objdir/$libname.ver~ 16883 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16884 fi 16885 16886 case $cc_basename in 16887 xlf* | bgf* | bgxlf* | mpixlf*) 16888 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16889 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16890 hardcode_libdir_flag_spec= 16891 hardcode_libdir_flag_spec_ld='-rpath $libdir' 16892 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 16893 if test "x$supports_anon_versioning" = xyes; then 16894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16896 echo "local: *; };" >> $output_objdir/$libname.ver~ 16897 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16898 fi 16899 ;; 16900 esac 16901 else 16902 ld_shlibs=no 16903 fi 16904 ;; 16905 16906 netbsd*) 16907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16908 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16909 wlarc= 16910 else 16911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16913 fi 16914 ;; 16915 16916 solaris*) 16917 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16918 ld_shlibs=no 16919 cat <<_LT_EOF 1>&2 16920 16921*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16922*** create shared libraries on Solaris systems. Therefore, libtool 16923*** is disabling shared libraries support. We urge you to upgrade GNU 16924*** binutils to release 2.9.1 or newer. Another option is to modify 16925*** your PATH or compiler configuration so that the native linker is 16926*** used, and then restart. 16927 16928_LT_EOF 16929 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16932 else 16933 ld_shlibs=no 16934 fi 16935 ;; 16936 16937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16938 case `$LD -v 2>&1` in 16939 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16940 ld_shlibs=no 16941 cat <<_LT_EOF 1>&2 16942 16943*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16944*** reliably create shared libraries on SCO systems. Therefore, libtool 16945*** is disabling shared libraries support. We urge you to upgrade GNU 16946*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16947*** your PATH or compiler configuration so that the native linker is 16948*** used, and then restart. 16949 16950_LT_EOF 16951 ;; 16952 *) 16953 # For security reasons, it is highly recommended that you always 16954 # use absolute paths for naming shared libraries, and exclude the 16955 # DT_RUNPATH tag from executables and libraries. But doing so 16956 # requires that you compile everything twice, which is a pain. 16957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16961 else 16962 ld_shlibs=no 16963 fi 16964 ;; 16965 esac 16966 ;; 16967 16968 sunos4*) 16969 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16970 wlarc= 16971 hardcode_direct=yes 16972 hardcode_shlibpath_var=no 16973 ;; 16974 16975 *) 16976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16979 else 16980 ld_shlibs=no 16981 fi 16982 ;; 16983 esac 16984 16985 if test "$ld_shlibs" = no; then 16986 runpath_var= 16987 hardcode_libdir_flag_spec= 16988 export_dynamic_flag_spec= 16989 whole_archive_flag_spec= 16990 fi 16991 else 16992 # PORTME fill in a description of your system's linker (not GNU ld) 16993 case $host_os in 16994 aix3*) 16995 allow_undefined_flag=unsupported 16996 always_export_symbols=yes 16997 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' 16998 # Note: this linker hardcodes the directories in LIBPATH if there 16999 # are no directories specified by -L. 17000 hardcode_minus_L=yes 17001 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17002 # Neither direct hardcoding nor static linking is supported with a 17003 # broken collect2. 17004 hardcode_direct=unsupported 17005 fi 17006 ;; 17007 17008 aix[4-9]*) 17009 if test "$host_cpu" = ia64; then 17010 # On IA64, the linker does run time linking by default, so we don't 17011 # have to do anything special. 17012 aix_use_runtimelinking=no 17013 exp_sym_flag='-Bexport' 17014 no_entry_flag="" 17015 else 17016 # If we're using GNU nm, then we don't want the "-C" option. 17017 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17018 # Also, AIX nm treats weak defined symbols like other global 17019 # defined symbols, whereas GNU nm marks them as "W". 17020 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17021 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' 17022 else 17023 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' 17024 fi 17025 aix_use_runtimelinking=no 17026 17027 # Test if we are trying to use run time linking or normal 17028 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17029 # need to do runtime linking. 17030 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17031 for ld_flag in $LDFLAGS; do 17032 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17033 aix_use_runtimelinking=yes 17034 break 17035 fi 17036 done 17037 ;; 17038 esac 17039 17040 exp_sym_flag='-bexport' 17041 no_entry_flag='-bnoentry' 17042 fi 17043 17044 # When large executables or shared objects are built, AIX ld can 17045 # have problems creating the table of contents. If linking a library 17046 # or program results in "error TOC overflow" add -mminimal-toc to 17047 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17048 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17049 17050 archive_cmds='' 17051 hardcode_direct=yes 17052 hardcode_direct_absolute=yes 17053 hardcode_libdir_separator=':' 17054 link_all_deplibs=yes 17055 file_list_spec='${wl}-f,' 17056 17057 if test "$GCC" = yes; then 17058 case $host_os in aix4.[012]|aix4.[012].*) 17059 # We only want to do this on AIX 4.2 and lower, the check 17060 # below for broken collect2 doesn't work under 4.3+ 17061 collect2name=`${CC} -print-prog-name=collect2` 17062 if test -f "$collect2name" && 17063 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17064 then 17065 # We have reworked collect2 17066 : 17067 else 17068 # We have old collect2 17069 hardcode_direct=unsupported 17070 # It fails to find uninstalled libraries when the uninstalled 17071 # path is not listed in the libpath. Setting hardcode_minus_L 17072 # to unsupported forces relinking 17073 hardcode_minus_L=yes 17074 hardcode_libdir_flag_spec='-L$libdir' 17075 hardcode_libdir_separator= 17076 fi 17077 ;; 17078 esac 17079 shared_flag='-shared' 17080 if test "$aix_use_runtimelinking" = yes; then 17081 shared_flag="$shared_flag "'${wl}-G' 17082 fi 17083 else 17084 # not using gcc 17085 if test "$host_cpu" = ia64; then 17086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17087 # chokes on -Wl,-G. The following line is correct: 17088 shared_flag='-G' 17089 else 17090 if test "$aix_use_runtimelinking" = yes; then 17091 shared_flag='${wl}-G' 17092 else 17093 shared_flag='${wl}-bM:SRE' 17094 fi 17095 fi 17096 fi 17097 17098 export_dynamic_flag_spec='${wl}-bexpall' 17099 # It seems that -bexpall does not export symbols beginning with 17100 # underscore (_), so it is better to generate a list of symbols to export. 17101 always_export_symbols=yes 17102 if test "$aix_use_runtimelinking" = yes; then 17103 # Warning - without using the other runtime loading flags (-brtl), 17104 # -berok will link without error, but may produce a broken library. 17105 allow_undefined_flag='-berok' 17106 # Determine the default libpath from the value encoded in an 17107 # empty executable. 17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17109/* end confdefs.h. */ 17110 17111int 17112main () 17113{ 17114 17115 ; 17116 return 0; 17117} 17118_ACEOF 17119if ac_fn_c_try_link "$LINENO"; then : 17120 17121lt_aix_libpath_sed=' 17122 /Import File Strings/,/^$/ { 17123 /^0/ { 17124 s/^0 *\(.*\)$/\1/ 17125 p 17126 } 17127 }' 17128aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17129# Check for a 64-bit object if we didn't find anything. 17130if test -z "$aix_libpath"; then 17131 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17132fi 17133fi 17134rm -f core conftest.err conftest.$ac_objext \ 17135 conftest$ac_exeext conftest.$ac_ext 17136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17137 17138 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 17139 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" 17140 else 17141 if test "$host_cpu" = ia64; then 17142 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 17143 allow_undefined_flag="-z nodefs" 17144 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" 17145 else 17146 # Determine the default libpath from the value encoded in an 17147 # empty executable. 17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17149/* end confdefs.h. */ 17150 17151int 17152main () 17153{ 17154 17155 ; 17156 return 0; 17157} 17158_ACEOF 17159if ac_fn_c_try_link "$LINENO"; then : 17160 17161lt_aix_libpath_sed=' 17162 /Import File Strings/,/^$/ { 17163 /^0/ { 17164 s/^0 *\(.*\)$/\1/ 17165 p 17166 } 17167 }' 17168aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17169# Check for a 64-bit object if we didn't find anything. 17170if test -z "$aix_libpath"; then 17171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17172fi 17173fi 17174rm -f core conftest.err conftest.$ac_objext \ 17175 conftest$ac_exeext conftest.$ac_ext 17176if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17177 17178 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 17179 # Warning - without using the other run time loading flags, 17180 # -berok will link without error, but may produce a broken library. 17181 no_undefined_flag=' ${wl}-bernotok' 17182 allow_undefined_flag=' ${wl}-berok' 17183 if test "$with_gnu_ld" = yes; then 17184 # We only use this code for GNU lds that support --whole-archive. 17185 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 17186 else 17187 # Exported symbols can be pulled into shared objects from archives 17188 whole_archive_flag_spec='$convenience' 17189 fi 17190 archive_cmds_need_lc=yes 17191 # This is similar to how AIX traditionally builds its shared libraries. 17192 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' 17193 fi 17194 fi 17195 ;; 17196 17197 amigaos*) 17198 case $host_cpu in 17199 powerpc) 17200 # see comment about AmigaOS4 .so support 17201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17202 archive_expsym_cmds='' 17203 ;; 17204 m68k) 17205 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)' 17206 hardcode_libdir_flag_spec='-L$libdir' 17207 hardcode_minus_L=yes 17208 ;; 17209 esac 17210 ;; 17211 17212 bsdi[45]*) 17213 export_dynamic_flag_spec=-rdynamic 17214 ;; 17215 17216 cygwin* | mingw* | pw32* | cegcc*) 17217 # When not using gcc, we currently assume that we are using 17218 # Microsoft Visual C++. 17219 # hardcode_libdir_flag_spec is actually meaningless, as there is 17220 # no search path for DLLs. 17221 hardcode_libdir_flag_spec=' ' 17222 allow_undefined_flag=unsupported 17223 # Tell ltmain to make .lib files, not .a files. 17224 libext=lib 17225 # Tell ltmain to make .dll files, not .so files. 17226 shrext_cmds=".dll" 17227 # FIXME: Setting linknames here is a bad hack. 17228 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17229 # The linker will automatically build a .lib file if we build a DLL. 17230 old_archive_from_new_cmds='true' 17231 # FIXME: Should let the user specify the lib program. 17232 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17233 fix_srcfile_path='`cygpath -w "$srcfile"`' 17234 enable_shared_with_static_runtimes=yes 17235 ;; 17236 17237 darwin* | rhapsody*) 17238 17239 17240 archive_cmds_need_lc=no 17241 hardcode_direct=no 17242 hardcode_automatic=yes 17243 hardcode_shlibpath_var=unsupported 17244 if test "$lt_cv_ld_force_load" = "yes"; then 17245 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\"`' 17246 else 17247 whole_archive_flag_spec='' 17248 fi 17249 link_all_deplibs=yes 17250 allow_undefined_flag="$_lt_dar_allow_undefined" 17251 case $cc_basename in 17252 ifort*) _lt_dar_can_shared=yes ;; 17253 *) _lt_dar_can_shared=$GCC ;; 17254 esac 17255 if test "$_lt_dar_can_shared" = "yes"; then 17256 output_verbose_link_cmd=func_echo_all 17257 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17258 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17259 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}" 17260 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}" 17261 17262 else 17263 ld_shlibs=no 17264 fi 17265 17266 ;; 17267 17268 dgux*) 17269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17270 hardcode_libdir_flag_spec='-L$libdir' 17271 hardcode_shlibpath_var=no 17272 ;; 17273 17274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17275 # support. Future versions do this automatically, but an explicit c++rt0.o 17276 # does not break anything, and helps significantly (at the cost of a little 17277 # extra space). 17278 freebsd2.2*) 17279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17280 hardcode_libdir_flag_spec='-R$libdir' 17281 hardcode_direct=yes 17282 hardcode_shlibpath_var=no 17283 ;; 17284 17285 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17286 freebsd2.*) 17287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17288 hardcode_direct=yes 17289 hardcode_minus_L=yes 17290 hardcode_shlibpath_var=no 17291 ;; 17292 17293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17294 freebsd* | dragonfly*) 17295 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17296 hardcode_libdir_flag_spec='-R$libdir' 17297 hardcode_direct=yes 17298 hardcode_shlibpath_var=no 17299 ;; 17300 17301 hpux9*) 17302 if test "$GCC" = yes; then 17303 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' 17304 else 17305 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' 17306 fi 17307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17308 hardcode_libdir_separator=: 17309 hardcode_direct=yes 17310 17311 # hardcode_minus_L: Not really in the search PATH, 17312 # but as the default location of the library. 17313 hardcode_minus_L=yes 17314 export_dynamic_flag_spec='${wl}-E' 17315 ;; 17316 17317 hpux10*) 17318 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 17319 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17320 else 17321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17322 fi 17323 if test "$with_gnu_ld" = no; then 17324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17325 hardcode_libdir_flag_spec_ld='+b $libdir' 17326 hardcode_libdir_separator=: 17327 hardcode_direct=yes 17328 hardcode_direct_absolute=yes 17329 export_dynamic_flag_spec='${wl}-E' 17330 # hardcode_minus_L: Not really in the search PATH, 17331 # but as the default location of the library. 17332 hardcode_minus_L=yes 17333 fi 17334 ;; 17335 17336 hpux11*) 17337 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 17338 case $host_cpu in 17339 hppa*64*) 17340 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17341 ;; 17342 ia64*) 17343 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17344 ;; 17345 *) 17346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17347 ;; 17348 esac 17349 else 17350 case $host_cpu in 17351 hppa*64*) 17352 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17353 ;; 17354 ia64*) 17355 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17356 ;; 17357 *) 17358 17359 # Older versions of the 11.00 compiler do not understand -b yet 17360 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17362$as_echo_n "checking if $CC understands -b... " >&6; } 17363if ${lt_cv_prog_compiler__b+:} false; then : 17364 $as_echo_n "(cached) " >&6 17365else 17366 lt_cv_prog_compiler__b=no 17367 save_LDFLAGS="$LDFLAGS" 17368 LDFLAGS="$LDFLAGS -b" 17369 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17371 # The linker can only warn and ignore the option if not recognized 17372 # So say no if there are warnings 17373 if test -s conftest.err; then 17374 # Append any errors to the config.log. 17375 cat conftest.err 1>&5 17376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17378 if diff conftest.exp conftest.er2 >/dev/null; then 17379 lt_cv_prog_compiler__b=yes 17380 fi 17381 else 17382 lt_cv_prog_compiler__b=yes 17383 fi 17384 fi 17385 $RM -r conftest* 17386 LDFLAGS="$save_LDFLAGS" 17387 17388fi 17389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17390$as_echo "$lt_cv_prog_compiler__b" >&6; } 17391 17392if test x"$lt_cv_prog_compiler__b" = xyes; then 17393 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17394else 17395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17396fi 17397 17398 ;; 17399 esac 17400 fi 17401 if test "$with_gnu_ld" = no; then 17402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17403 hardcode_libdir_separator=: 17404 17405 case $host_cpu in 17406 hppa*64*|ia64*) 17407 hardcode_direct=no 17408 hardcode_shlibpath_var=no 17409 ;; 17410 *) 17411 hardcode_direct=yes 17412 hardcode_direct_absolute=yes 17413 export_dynamic_flag_spec='${wl}-E' 17414 17415 # hardcode_minus_L: Not really in the search PATH, 17416 # but as the default location of the library. 17417 hardcode_minus_L=yes 17418 ;; 17419 esac 17420 fi 17421 ;; 17422 17423 irix5* | irix6* | nonstopux*) 17424 if test "$GCC" = yes; then 17425 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' 17426 # Try to use the -exported_symbol ld option, if it does not 17427 # work, assume that -exports_file does not work either and 17428 # implicitly export all symbols. 17429 save_LDFLAGS="$LDFLAGS" 17430 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17432/* end confdefs.h. */ 17433int foo(void) {} 17434_ACEOF 17435if ac_fn_c_try_link "$LINENO"; then : 17436 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' 17437 17438fi 17439rm -f core conftest.err conftest.$ac_objext \ 17440 conftest$ac_exeext conftest.$ac_ext 17441 LDFLAGS="$save_LDFLAGS" 17442 else 17443 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' 17444 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' 17445 fi 17446 archive_cmds_need_lc='no' 17447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17448 hardcode_libdir_separator=: 17449 inherit_rpath=yes 17450 link_all_deplibs=yes 17451 ;; 17452 17453 netbsd*) 17454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17456 else 17457 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17458 fi 17459 hardcode_libdir_flag_spec='-R$libdir' 17460 hardcode_direct=yes 17461 hardcode_shlibpath_var=no 17462 ;; 17463 17464 newsos6) 17465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17466 hardcode_direct=yes 17467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17468 hardcode_libdir_separator=: 17469 hardcode_shlibpath_var=no 17470 ;; 17471 17472 *nto* | *qnx*) 17473 ;; 17474 17475 openbsd*) 17476 if test -f /usr/libexec/ld.so; then 17477 hardcode_direct=yes 17478 hardcode_shlibpath_var=no 17479 hardcode_direct_absolute=yes 17480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17482 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 17484 export_dynamic_flag_spec='${wl}-E' 17485 else 17486 case $host_os in 17487 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17489 hardcode_libdir_flag_spec='-R$libdir' 17490 ;; 17491 *) 17492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 17494 ;; 17495 esac 17496 fi 17497 else 17498 ld_shlibs=no 17499 fi 17500 ;; 17501 17502 os2*) 17503 hardcode_libdir_flag_spec='-L$libdir' 17504 hardcode_minus_L=yes 17505 allow_undefined_flag=unsupported 17506 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' 17507 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17508 ;; 17509 17510 osf3*) 17511 if test "$GCC" = yes; then 17512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 17513 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' 17514 else 17515 allow_undefined_flag=' -expect_unresolved \*' 17516 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' 17517 fi 17518 archive_cmds_need_lc='no' 17519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17520 hardcode_libdir_separator=: 17521 ;; 17522 17523 osf4* | osf5*) # as osf3* with the addition of -msym flag 17524 if test "$GCC" = yes; then 17525 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 17526 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' 17527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17528 else 17529 allow_undefined_flag=' -expect_unresolved \*' 17530 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' 17531 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~ 17532 $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' 17533 17534 # Both c and cxx compiler support -rpath directly 17535 hardcode_libdir_flag_spec='-rpath $libdir' 17536 fi 17537 archive_cmds_need_lc='no' 17538 hardcode_libdir_separator=: 17539 ;; 17540 17541 solaris*) 17542 no_undefined_flag=' -z defs' 17543 if test "$GCC" = yes; then 17544 wlarc='${wl}' 17545 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17547 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17548 else 17549 case `$CC -V 2>&1` in 17550 *"Compilers 5.0"*) 17551 wlarc='' 17552 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17554 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17555 ;; 17556 *) 17557 wlarc='${wl}' 17558 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17560 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17561 ;; 17562 esac 17563 fi 17564 hardcode_libdir_flag_spec='-R$libdir' 17565 hardcode_shlibpath_var=no 17566 case $host_os in 17567 solaris2.[0-5] | solaris2.[0-5].*) ;; 17568 *) 17569 # The compiler driver will combine and reorder linker options, 17570 # but understands `-z linker_flag'. GCC discards it without `$wl', 17571 # but is careful enough not to reorder. 17572 # Supported since Solaris 2.6 (maybe 2.5.1?) 17573 if test "$GCC" = yes; then 17574 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17575 else 17576 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17577 fi 17578 ;; 17579 esac 17580 link_all_deplibs=yes 17581 ;; 17582 17583 sunos4*) 17584 if test "x$host_vendor" = xsequent; then 17585 # Use $CC to link under sequent, because it throws in some extra .o 17586 # files that make .init and .fini sections work. 17587 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17588 else 17589 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17590 fi 17591 hardcode_libdir_flag_spec='-L$libdir' 17592 hardcode_direct=yes 17593 hardcode_minus_L=yes 17594 hardcode_shlibpath_var=no 17595 ;; 17596 17597 sysv4) 17598 case $host_vendor in 17599 sni) 17600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17601 hardcode_direct=yes # is this really true??? 17602 ;; 17603 siemens) 17604 ## LD is ld it makes a PLAMLIB 17605 ## CC just makes a GrossModule. 17606 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17607 reload_cmds='$CC -r -o $output$reload_objs' 17608 hardcode_direct=no 17609 ;; 17610 motorola) 17611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17612 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17613 ;; 17614 esac 17615 runpath_var='LD_RUN_PATH' 17616 hardcode_shlibpath_var=no 17617 ;; 17618 17619 sysv4.3*) 17620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17621 hardcode_shlibpath_var=no 17622 export_dynamic_flag_spec='-Bexport' 17623 ;; 17624 17625 sysv4*MP*) 17626 if test -d /usr/nec; then 17627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17628 hardcode_shlibpath_var=no 17629 runpath_var=LD_RUN_PATH 17630 hardcode_runpath_var=yes 17631 ld_shlibs=yes 17632 fi 17633 ;; 17634 17635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17636 no_undefined_flag='${wl}-z,text' 17637 archive_cmds_need_lc=no 17638 hardcode_shlibpath_var=no 17639 runpath_var='LD_RUN_PATH' 17640 17641 if test "$GCC" = yes; then 17642 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17643 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17644 else 17645 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17646 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17647 fi 17648 ;; 17649 17650 sysv5* | sco3.2v5* | sco5v6*) 17651 # Note: We can NOT use -z defs as we might desire, because we do not 17652 # link with -lc, and that would cause any symbols used from libc to 17653 # always be unresolved, which means just about no library would 17654 # ever link correctly. If we're not using GNU ld we use -z text 17655 # though, which does catch some bad symbols but isn't as heavy-handed 17656 # as -z defs. 17657 no_undefined_flag='${wl}-z,text' 17658 allow_undefined_flag='${wl}-z,nodefs' 17659 archive_cmds_need_lc=no 17660 hardcode_shlibpath_var=no 17661 hardcode_libdir_flag_spec='${wl}-R,$libdir' 17662 hardcode_libdir_separator=':' 17663 link_all_deplibs=yes 17664 export_dynamic_flag_spec='${wl}-Bexport' 17665 runpath_var='LD_RUN_PATH' 17666 17667 if test "$GCC" = yes; then 17668 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17669 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17670 else 17671 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17672 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17673 fi 17674 ;; 17675 17676 uts4*) 17677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17678 hardcode_libdir_flag_spec='-L$libdir' 17679 hardcode_shlibpath_var=no 17680 ;; 17681 17682 *) 17683 ld_shlibs=no 17684 ;; 17685 esac 17686 17687 if test x$host_vendor = xsni; then 17688 case $host in 17689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17690 export_dynamic_flag_spec='${wl}-Blargedynsym' 17691 ;; 17692 esac 17693 fi 17694 fi 17695 17696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17697$as_echo "$ld_shlibs" >&6; } 17698test "$ld_shlibs" = no && can_build_shared=no 17699 17700with_gnu_ld=$with_gnu_ld 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716# 17717# Do we need to explicitly link libc? 17718# 17719case "x$archive_cmds_need_lc" in 17720x|xyes) 17721 # Assume -lc should be added 17722 archive_cmds_need_lc=yes 17723 17724 if test "$enable_shared" = yes && test "$GCC" = yes; then 17725 case $archive_cmds in 17726 *'~'*) 17727 # FIXME: we may have to deal with multi-command sequences. 17728 ;; 17729 '$CC '*) 17730 # Test whether the compiler implicitly links with -lc since on some 17731 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17732 # to ld, don't add -lc before -lgcc. 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17734$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17735if ${lt_cv_archive_cmds_need_lc+:} false; then : 17736 $as_echo_n "(cached) " >&6 17737else 17738 $RM conftest* 17739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17740 17741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17742 (eval $ac_compile) 2>&5 17743 ac_status=$? 17744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17745 test $ac_status = 0; } 2>conftest.err; then 17746 soname=conftest 17747 lib=conftest 17748 libobjs=conftest.$ac_objext 17749 deplibs= 17750 wl=$lt_prog_compiler_wl 17751 pic_flag=$lt_prog_compiler_pic 17752 compiler_flags=-v 17753 linker_flags=-v 17754 verstring= 17755 output_objdir=. 17756 libname=conftest 17757 lt_save_allow_undefined_flag=$allow_undefined_flag 17758 allow_undefined_flag= 17759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17760 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17761 ac_status=$? 17762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17763 test $ac_status = 0; } 17764 then 17765 lt_cv_archive_cmds_need_lc=no 17766 else 17767 lt_cv_archive_cmds_need_lc=yes 17768 fi 17769 allow_undefined_flag=$lt_save_allow_undefined_flag 17770 else 17771 cat conftest.err 1>&5 17772 fi 17773 $RM conftest* 17774 17775fi 17776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17777$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 17778 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17779 ;; 17780 esac 17781 fi 17782 ;; 17783esac 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17942$as_echo_n "checking dynamic linker characteristics... " >&6; } 17943 17944if test "$GCC" = yes; then 17945 case $host_os in 17946 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 17947 *) lt_awk_arg="/^libraries:/" ;; 17948 esac 17949 case $host_os in 17950 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 17951 *) lt_sed_strip_eq="s,=/,/,g" ;; 17952 esac 17953 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17954 case $lt_search_path_spec in 17955 *\;*) 17956 # if the path contains ";" then we assume it to be the separator 17957 # otherwise default to the standard path separator (i.e. ":") - it is 17958 # assumed that no part of a normal pathname contains ";" but that should 17959 # okay in the real world where ";" in dirpaths is itself problematic. 17960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17961 ;; 17962 *) 17963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17964 ;; 17965 esac 17966 # Ok, now we have the path, separated by spaces, we can step through it 17967 # and add multilib dir if necessary. 17968 lt_tmp_lt_search_path_spec= 17969 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17970 for lt_sys_path in $lt_search_path_spec; do 17971 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 17972 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 17973 else 17974 test -d "$lt_sys_path" && \ 17975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17976 fi 17977 done 17978 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17979BEGIN {RS=" "; FS="/|\n";} { 17980 lt_foo=""; 17981 lt_count=0; 17982 for (lt_i = NF; lt_i > 0; lt_i--) { 17983 if ($lt_i != "" && $lt_i != ".") { 17984 if ($lt_i == "..") { 17985 lt_count++; 17986 } else { 17987 if (lt_count == 0) { 17988 lt_foo="/" $lt_i lt_foo; 17989 } else { 17990 lt_count--; 17991 } 17992 } 17993 } 17994 } 17995 if (lt_foo != "") { lt_freq[lt_foo]++; } 17996 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17997}'` 17998 # AWK program above erroneously prepends '/' to C:/dos/paths 17999 # for these hosts. 18000 case $host_os in 18001 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18002 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 18003 esac 18004 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18005else 18006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18007fi 18008library_names_spec= 18009libname_spec='lib$name' 18010soname_spec= 18011shrext_cmds=".so" 18012postinstall_cmds= 18013postuninstall_cmds= 18014finish_cmds= 18015finish_eval= 18016shlibpath_var= 18017shlibpath_overrides_runpath=unknown 18018version_type=none 18019dynamic_linker="$host_os ld.so" 18020sys_lib_dlsearch_path_spec="/lib /usr/lib" 18021need_lib_prefix=unknown 18022hardcode_into_libs=no 18023 18024# when you set need_version to no, make sure it does not cause -set_version 18025# flags to be left without arguments 18026need_version=unknown 18027 18028case $host_os in 18029aix3*) 18030 version_type=linux 18031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18032 shlibpath_var=LIBPATH 18033 18034 # AIX 3 has no versioning support, so we append a major version to the name. 18035 soname_spec='${libname}${release}${shared_ext}$major' 18036 ;; 18037 18038aix[4-9]*) 18039 version_type=linux 18040 need_lib_prefix=no 18041 need_version=no 18042 hardcode_into_libs=yes 18043 if test "$host_cpu" = ia64; then 18044 # AIX 5 supports IA64 18045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18046 shlibpath_var=LD_LIBRARY_PATH 18047 else 18048 # With GCC up to 2.95.x, collect2 would create an import file 18049 # for dependence libraries. The import file would start with 18050 # the line `#! .'. This would cause the generated library to 18051 # depend on `.', always an invalid library. This was fixed in 18052 # development snapshots of GCC prior to 3.0. 18053 case $host_os in 18054 aix4 | aix4.[01] | aix4.[01].*) 18055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18056 echo ' yes ' 18057 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 18058 : 18059 else 18060 can_build_shared=no 18061 fi 18062 ;; 18063 esac 18064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18065 # soname into executable. Probably we can add versioning support to 18066 # collect2, so additional links can be useful in future. 18067 if test "$aix_use_runtimelinking" = yes; then 18068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18069 # instead of lib<name>.a to let people know that these are not 18070 # typical AIX shared libraries. 18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18072 else 18073 # We preserve .a as extension for shared libraries through AIX4.2 18074 # and later when we are not doing run time linking. 18075 library_names_spec='${libname}${release}.a $libname.a' 18076 soname_spec='${libname}${release}${shared_ext}$major' 18077 fi 18078 shlibpath_var=LIBPATH 18079 fi 18080 ;; 18081 18082amigaos*) 18083 case $host_cpu in 18084 powerpc) 18085 # Since July 2007 AmigaOS4 officially supports .so libraries. 18086 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18088 ;; 18089 m68k) 18090 library_names_spec='$libname.ixlibrary $libname.a' 18091 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18092 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' 18093 ;; 18094 esac 18095 ;; 18096 18097beos*) 18098 library_names_spec='${libname}${shared_ext}' 18099 dynamic_linker="$host_os ld.so" 18100 shlibpath_var=LIBRARY_PATH 18101 ;; 18102 18103bsdi[45]*) 18104 version_type=linux 18105 need_version=no 18106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18107 soname_spec='${libname}${release}${shared_ext}$major' 18108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18109 shlibpath_var=LD_LIBRARY_PATH 18110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18112 # the default ld.so.conf also contains /usr/contrib/lib and 18113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18114 # libtool to hard-code these into programs 18115 ;; 18116 18117cygwin* | mingw* | pw32* | cegcc*) 18118 version_type=windows 18119 shrext_cmds=".dll" 18120 need_version=no 18121 need_lib_prefix=no 18122 18123 case $GCC,$host_os in 18124 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 18125 library_names_spec='$libname.dll.a' 18126 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18127 postinstall_cmds='base_file=`basename \${file}`~ 18128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 18129 dldir=$destdir/`dirname \$dlpath`~ 18130 test -d \$dldir || mkdir -p \$dldir~ 18131 $install_prog $dir/$dlname \$dldir/$dlname~ 18132 chmod a+x \$dldir/$dlname~ 18133 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18134 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18135 fi' 18136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18137 dlpath=$dir/\$dldll~ 18138 $RM \$dlpath' 18139 shlibpath_overrides_runpath=yes 18140 18141 case $host_os in 18142 cygwin*) 18143 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18144 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18145 18146 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18147 ;; 18148 mingw* | cegcc*) 18149 # MinGW DLLs use traditional 'lib' prefix 18150 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18151 ;; 18152 pw32*) 18153 # pw32 DLLs use 'pw' prefix rather than 'lib' 18154 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18155 ;; 18156 esac 18157 ;; 18158 18159 *) 18160 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18161 ;; 18162 esac 18163 dynamic_linker='Win32 ld.exe' 18164 # FIXME: first we should search . and the directory the executable is in 18165 shlibpath_var=PATH 18166 ;; 18167 18168darwin* | rhapsody*) 18169 dynamic_linker="$host_os dyld" 18170 version_type=darwin 18171 need_lib_prefix=no 18172 need_version=no 18173 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18174 soname_spec='${libname}${release}${major}$shared_ext' 18175 shlibpath_overrides_runpath=yes 18176 shlibpath_var=DYLD_LIBRARY_PATH 18177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18178 18179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18181 ;; 18182 18183dgux*) 18184 version_type=linux 18185 need_lib_prefix=no 18186 need_version=no 18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18188 soname_spec='${libname}${release}${shared_ext}$major' 18189 shlibpath_var=LD_LIBRARY_PATH 18190 ;; 18191 18192freebsd* | dragonfly*) 18193 # DragonFly does not have aout. When/if they implement a new 18194 # versioning mechanism, adjust this. 18195 if test -x /usr/bin/objformat; then 18196 objformat=`/usr/bin/objformat` 18197 else 18198 case $host_os in 18199 freebsd[23].*) objformat=aout ;; 18200 *) objformat=elf ;; 18201 esac 18202 fi 18203 version_type=freebsd-$objformat 18204 case $version_type in 18205 freebsd-elf*) 18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18207 need_version=no 18208 need_lib_prefix=no 18209 ;; 18210 freebsd-*) 18211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18212 need_version=yes 18213 ;; 18214 esac 18215 shlibpath_var=LD_LIBRARY_PATH 18216 case $host_os in 18217 freebsd2.*) 18218 shlibpath_overrides_runpath=yes 18219 ;; 18220 freebsd3.[01]* | freebsdelf3.[01]*) 18221 shlibpath_overrides_runpath=yes 18222 hardcode_into_libs=yes 18223 ;; 18224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18226 shlibpath_overrides_runpath=no 18227 hardcode_into_libs=yes 18228 ;; 18229 *) # from 4.6 on, and DragonFly 18230 shlibpath_overrides_runpath=yes 18231 hardcode_into_libs=yes 18232 ;; 18233 esac 18234 ;; 18235 18236gnu*) 18237 version_type=linux 18238 need_lib_prefix=no 18239 need_version=no 18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18241 soname_spec='${libname}${release}${shared_ext}$major' 18242 shlibpath_var=LD_LIBRARY_PATH 18243 hardcode_into_libs=yes 18244 ;; 18245 18246haiku*) 18247 version_type=linux 18248 need_lib_prefix=no 18249 need_version=no 18250 dynamic_linker="$host_os runtime_loader" 18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18252 soname_spec='${libname}${release}${shared_ext}$major' 18253 shlibpath_var=LIBRARY_PATH 18254 shlibpath_overrides_runpath=yes 18255 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 18256 hardcode_into_libs=yes 18257 ;; 18258 18259hpux9* | hpux10* | hpux11*) 18260 # Give a soname corresponding to the major version so that dld.sl refuses to 18261 # link against other versions. 18262 version_type=sunos 18263 need_lib_prefix=no 18264 need_version=no 18265 case $host_cpu in 18266 ia64*) 18267 shrext_cmds='.so' 18268 hardcode_into_libs=yes 18269 dynamic_linker="$host_os dld.so" 18270 shlibpath_var=LD_LIBRARY_PATH 18271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18273 soname_spec='${libname}${release}${shared_ext}$major' 18274 if test "X$HPUX_IA64_MODE" = X32; then 18275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18276 else 18277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18278 fi 18279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18280 ;; 18281 hppa*64*) 18282 shrext_cmds='.sl' 18283 hardcode_into_libs=yes 18284 dynamic_linker="$host_os dld.sl" 18285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18288 soname_spec='${libname}${release}${shared_ext}$major' 18289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18291 ;; 18292 *) 18293 shrext_cmds='.sl' 18294 dynamic_linker="$host_os dld.sl" 18295 shlibpath_var=SHLIB_PATH 18296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18298 soname_spec='${libname}${release}${shared_ext}$major' 18299 ;; 18300 esac 18301 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18302 postinstall_cmds='chmod 555 $lib' 18303 # or fails outright, so override atomically: 18304 install_override_mode=555 18305 ;; 18306 18307interix[3-9]*) 18308 version_type=linux 18309 need_lib_prefix=no 18310 need_version=no 18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18312 soname_spec='${libname}${release}${shared_ext}$major' 18313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18314 shlibpath_var=LD_LIBRARY_PATH 18315 shlibpath_overrides_runpath=no 18316 hardcode_into_libs=yes 18317 ;; 18318 18319irix5* | irix6* | nonstopux*) 18320 case $host_os in 18321 nonstopux*) version_type=nonstopux ;; 18322 *) 18323 if test "$lt_cv_prog_gnu_ld" = yes; then 18324 version_type=linux 18325 else 18326 version_type=irix 18327 fi ;; 18328 esac 18329 need_lib_prefix=no 18330 need_version=no 18331 soname_spec='${libname}${release}${shared_ext}$major' 18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18333 case $host_os in 18334 irix5* | nonstopux*) 18335 libsuff= shlibsuff= 18336 ;; 18337 *) 18338 case $LD in # libtool.m4 will add one of these switches to LD 18339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18340 libsuff= shlibsuff= libmagic=32-bit;; 18341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18342 libsuff=32 shlibsuff=N32 libmagic=N32;; 18343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18344 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18345 *) libsuff= shlibsuff= libmagic=never-match;; 18346 esac 18347 ;; 18348 esac 18349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18350 shlibpath_overrides_runpath=no 18351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18353 hardcode_into_libs=yes 18354 ;; 18355 18356# No shared lib support for Linux oldld, aout, or coff. 18357linux*oldld* | linux*aout* | linux*coff*) 18358 dynamic_linker=no 18359 ;; 18360 18361# This must be Linux ELF. 18362 18363# uclinux* changes (here and below) have been submitted to the libtool 18364# project, but have not yet been accepted: they are GCC-local changes 18365# for the time being. (See 18366# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 18367linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 18368 version_type=linux 18369 need_lib_prefix=no 18370 need_version=no 18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18372 soname_spec='${libname}${release}${shared_ext}$major' 18373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18374 shlibpath_var=LD_LIBRARY_PATH 18375 shlibpath_overrides_runpath=no 18376 18377 # Some binutils ld are patched to set DT_RUNPATH 18378 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18379 $as_echo_n "(cached) " >&6 18380else 18381 lt_cv_shlibpath_overrides_runpath=no 18382 save_LDFLAGS=$LDFLAGS 18383 save_libdir=$libdir 18384 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18385 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18387/* end confdefs.h. */ 18388 18389int 18390main () 18391{ 18392 18393 ; 18394 return 0; 18395} 18396_ACEOF 18397if ac_fn_c_try_link "$LINENO"; then : 18398 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18399 lt_cv_shlibpath_overrides_runpath=yes 18400fi 18401fi 18402rm -f core conftest.err conftest.$ac_objext \ 18403 conftest$ac_exeext conftest.$ac_ext 18404 LDFLAGS=$save_LDFLAGS 18405 libdir=$save_libdir 18406 18407fi 18408 18409 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18410 18411 # This implies no fast_install, which is unacceptable. 18412 # Some rework will be needed to allow for fast_install 18413 # before this can be enabled. 18414 hardcode_into_libs=yes 18415 18416 # Append ld.so.conf contents to the search path 18417 if test -f /etc/ld.so.conf; then 18418 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' ' '` 18419 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18420 fi 18421 18422 # We used to test for /lib/ld.so.1 and disable shared libraries on 18423 # powerpc, because MkLinux only supported shared libraries with the 18424 # GNU dynamic linker. Since this was broken with cross compilers, 18425 # most powerpc-linux boxes support dynamic linking these days and 18426 # people can always --disable-shared, the test was removed, and we 18427 # assume the GNU/Linux dynamic linker is in use. 18428 dynamic_linker='GNU/Linux ld.so' 18429 ;; 18430 18431netbsd*) 18432 version_type=sunos 18433 need_lib_prefix=no 18434 need_version=no 18435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18438 dynamic_linker='NetBSD (a.out) ld.so' 18439 else 18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18441 soname_spec='${libname}${release}${shared_ext}$major' 18442 dynamic_linker='NetBSD ld.elf_so' 18443 fi 18444 shlibpath_var=LD_LIBRARY_PATH 18445 shlibpath_overrides_runpath=yes 18446 hardcode_into_libs=yes 18447 ;; 18448 18449newsos6) 18450 version_type=linux 18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18452 shlibpath_var=LD_LIBRARY_PATH 18453 shlibpath_overrides_runpath=yes 18454 ;; 18455 18456*nto* | *qnx*) 18457 version_type=qnx 18458 need_lib_prefix=no 18459 need_version=no 18460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18461 soname_spec='${libname}${release}${shared_ext}$major' 18462 shlibpath_var=LD_LIBRARY_PATH 18463 shlibpath_overrides_runpath=no 18464 hardcode_into_libs=yes 18465 dynamic_linker='ldqnx.so' 18466 ;; 18467 18468openbsd*) 18469 version_type=sunos 18470 sys_lib_dlsearch_path_spec="/usr/lib" 18471 need_lib_prefix=no 18472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18473 case $host_os in 18474 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18475 *) need_version=no ;; 18476 esac 18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18479 shlibpath_var=LD_LIBRARY_PATH 18480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18481 case $host_os in 18482 openbsd2.[89] | openbsd2.[89].*) 18483 shlibpath_overrides_runpath=no 18484 ;; 18485 *) 18486 shlibpath_overrides_runpath=yes 18487 ;; 18488 esac 18489 else 18490 shlibpath_overrides_runpath=yes 18491 fi 18492 ;; 18493 18494os2*) 18495 libname_spec='$name' 18496 shrext_cmds=".dll" 18497 need_lib_prefix=no 18498 library_names_spec='$libname${shared_ext} $libname.a' 18499 dynamic_linker='OS/2 ld.exe' 18500 shlibpath_var=LIBPATH 18501 ;; 18502 18503osf3* | osf4* | osf5*) 18504 version_type=osf 18505 need_lib_prefix=no 18506 need_version=no 18507 soname_spec='${libname}${release}${shared_ext}$major' 18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18509 shlibpath_var=LD_LIBRARY_PATH 18510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18511 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18512 ;; 18513 18514rdos*) 18515 dynamic_linker=no 18516 ;; 18517 18518solaris*) 18519 version_type=linux 18520 need_lib_prefix=no 18521 need_version=no 18522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18523 soname_spec='${libname}${release}${shared_ext}$major' 18524 shlibpath_var=LD_LIBRARY_PATH 18525 shlibpath_overrides_runpath=yes 18526 hardcode_into_libs=yes 18527 # ldd complains unless libraries are executable 18528 postinstall_cmds='chmod +x $lib' 18529 ;; 18530 18531sunos4*) 18532 version_type=sunos 18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18534 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18535 shlibpath_var=LD_LIBRARY_PATH 18536 shlibpath_overrides_runpath=yes 18537 if test "$with_gnu_ld" = yes; then 18538 need_lib_prefix=no 18539 fi 18540 need_version=yes 18541 ;; 18542 18543sysv4 | sysv4.3*) 18544 version_type=linux 18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18546 soname_spec='${libname}${release}${shared_ext}$major' 18547 shlibpath_var=LD_LIBRARY_PATH 18548 case $host_vendor in 18549 sni) 18550 shlibpath_overrides_runpath=no 18551 need_lib_prefix=no 18552 runpath_var=LD_RUN_PATH 18553 ;; 18554 siemens) 18555 need_lib_prefix=no 18556 ;; 18557 motorola) 18558 need_lib_prefix=no 18559 need_version=no 18560 shlibpath_overrides_runpath=no 18561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18562 ;; 18563 esac 18564 ;; 18565 18566sysv4*MP*) 18567 if test -d /usr/nec ;then 18568 version_type=linux 18569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18570 soname_spec='$libname${shared_ext}.$major' 18571 shlibpath_var=LD_LIBRARY_PATH 18572 fi 18573 ;; 18574 18575sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18576 version_type=freebsd-elf 18577 need_lib_prefix=no 18578 need_version=no 18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18580 soname_spec='${libname}${release}${shared_ext}$major' 18581 shlibpath_var=LD_LIBRARY_PATH 18582 shlibpath_overrides_runpath=yes 18583 hardcode_into_libs=yes 18584 if test "$with_gnu_ld" = yes; then 18585 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18586 else 18587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18588 case $host_os in 18589 sco3.2v5*) 18590 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18591 ;; 18592 esac 18593 fi 18594 sys_lib_dlsearch_path_spec='/usr/lib' 18595 ;; 18596 18597tpf*) 18598 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18599 version_type=linux 18600 need_lib_prefix=no 18601 need_version=no 18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18603 shlibpath_var=LD_LIBRARY_PATH 18604 shlibpath_overrides_runpath=no 18605 hardcode_into_libs=yes 18606 ;; 18607 18608uts4*) 18609 version_type=linux 18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18611 soname_spec='${libname}${release}${shared_ext}$major' 18612 shlibpath_var=LD_LIBRARY_PATH 18613 ;; 18614 18615*) 18616 dynamic_linker=no 18617 ;; 18618esac 18619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18620$as_echo "$dynamic_linker" >&6; } 18621test "$dynamic_linker" = no && can_build_shared=no 18622 18623variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18624if test "$GCC" = yes; then 18625 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18626fi 18627 18628if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18629 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18630fi 18631if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18632 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18633fi 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18727$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18728hardcode_action= 18729if test -n "$hardcode_libdir_flag_spec" || 18730 test -n "$runpath_var" || 18731 test "X$hardcode_automatic" = "Xyes" ; then 18732 18733 # We can hardcode non-existent directories. 18734 if test "$hardcode_direct" != no && 18735 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18736 # have to relink, otherwise we might link with an installed library 18737 # when we should be linking with a yet-to-be-installed one 18738 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 18739 test "$hardcode_minus_L" != no; then 18740 # Linking always hardcodes the temporary library directory. 18741 hardcode_action=relink 18742 else 18743 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18744 hardcode_action=immediate 18745 fi 18746else 18747 # We cannot hardcode anything, or else we can only hardcode existing 18748 # directories. 18749 hardcode_action=unsupported 18750fi 18751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18752$as_echo "$hardcode_action" >&6; } 18753 18754if test "$hardcode_action" = relink || 18755 test "$inherit_rpath" = yes; then 18756 # Fast installation is not supported 18757 enable_fast_install=no 18758elif test "$shlibpath_overrides_runpath" = yes || 18759 test "$enable_shared" = no; then 18760 # Fast installation is not necessary 18761 enable_fast_install=needless 18762fi 18763 18764 18765 18766 18767 18768 18769 if test "x$enable_dlopen" != xyes; then 18770 enable_dlopen=unknown 18771 enable_dlopen_self=unknown 18772 enable_dlopen_self_static=unknown 18773else 18774 lt_cv_dlopen=no 18775 lt_cv_dlopen_libs= 18776 18777 case $host_os in 18778 beos*) 18779 lt_cv_dlopen="load_add_on" 18780 lt_cv_dlopen_libs= 18781 lt_cv_dlopen_self=yes 18782 ;; 18783 18784 mingw* | pw32* | cegcc*) 18785 lt_cv_dlopen="LoadLibrary" 18786 lt_cv_dlopen_libs= 18787 ;; 18788 18789 cygwin*) 18790 lt_cv_dlopen="dlopen" 18791 lt_cv_dlopen_libs= 18792 ;; 18793 18794 darwin*) 18795 # if libdl is installed we need to link against it 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18797$as_echo_n "checking for dlopen in -ldl... " >&6; } 18798if ${ac_cv_lib_dl_dlopen+:} false; then : 18799 $as_echo_n "(cached) " >&6 18800else 18801 ac_check_lib_save_LIBS=$LIBS 18802LIBS="-ldl $LIBS" 18803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18804/* end confdefs.h. */ 18805 18806/* Override any GCC internal prototype to avoid an error. 18807 Use char because int might match the return type of a GCC 18808 builtin and then its argument prototype would still apply. */ 18809#ifdef __cplusplus 18810extern "C" 18811#endif 18812char dlopen (); 18813int 18814main () 18815{ 18816return dlopen (); 18817 ; 18818 return 0; 18819} 18820_ACEOF 18821if ac_fn_c_try_link "$LINENO"; then : 18822 ac_cv_lib_dl_dlopen=yes 18823else 18824 ac_cv_lib_dl_dlopen=no 18825fi 18826rm -f core conftest.err conftest.$ac_objext \ 18827 conftest$ac_exeext conftest.$ac_ext 18828LIBS=$ac_check_lib_save_LIBS 18829fi 18830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18831$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18832if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18834else 18835 18836 lt_cv_dlopen="dyld" 18837 lt_cv_dlopen_libs= 18838 lt_cv_dlopen_self=yes 18839 18840fi 18841 18842 ;; 18843 18844 *) 18845 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18846if test "x$ac_cv_func_shl_load" = xyes; then : 18847 lt_cv_dlopen="shl_load" 18848else 18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18850$as_echo_n "checking for shl_load in -ldld... " >&6; } 18851if ${ac_cv_lib_dld_shl_load+:} false; then : 18852 $as_echo_n "(cached) " >&6 18853else 18854 ac_check_lib_save_LIBS=$LIBS 18855LIBS="-ldld $LIBS" 18856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18857/* end confdefs.h. */ 18858 18859/* Override any GCC internal prototype to avoid an error. 18860 Use char because int might match the return type of a GCC 18861 builtin and then its argument prototype would still apply. */ 18862#ifdef __cplusplus 18863extern "C" 18864#endif 18865char shl_load (); 18866int 18867main () 18868{ 18869return shl_load (); 18870 ; 18871 return 0; 18872} 18873_ACEOF 18874if ac_fn_c_try_link "$LINENO"; then : 18875 ac_cv_lib_dld_shl_load=yes 18876else 18877 ac_cv_lib_dld_shl_load=no 18878fi 18879rm -f core conftest.err conftest.$ac_objext \ 18880 conftest$ac_exeext conftest.$ac_ext 18881LIBS=$ac_check_lib_save_LIBS 18882fi 18883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18884$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18885if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 18887else 18888 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18889if test "x$ac_cv_func_dlopen" = xyes; then : 18890 lt_cv_dlopen="dlopen" 18891else 18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18893$as_echo_n "checking for dlopen in -ldl... " >&6; } 18894if ${ac_cv_lib_dl_dlopen+:} false; then : 18895 $as_echo_n "(cached) " >&6 18896else 18897 ac_check_lib_save_LIBS=$LIBS 18898LIBS="-ldl $LIBS" 18899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18900/* end confdefs.h. */ 18901 18902/* Override any GCC internal prototype to avoid an error. 18903 Use char because int might match the return type of a GCC 18904 builtin and then its argument prototype would still apply. */ 18905#ifdef __cplusplus 18906extern "C" 18907#endif 18908char dlopen (); 18909int 18910main () 18911{ 18912return dlopen (); 18913 ; 18914 return 0; 18915} 18916_ACEOF 18917if ac_fn_c_try_link "$LINENO"; then : 18918 ac_cv_lib_dl_dlopen=yes 18919else 18920 ac_cv_lib_dl_dlopen=no 18921fi 18922rm -f core conftest.err conftest.$ac_objext \ 18923 conftest$ac_exeext conftest.$ac_ext 18924LIBS=$ac_check_lib_save_LIBS 18925fi 18926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18927$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18928if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18930else 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18932$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18933if ${ac_cv_lib_svld_dlopen+:} false; then : 18934 $as_echo_n "(cached) " >&6 18935else 18936 ac_check_lib_save_LIBS=$LIBS 18937LIBS="-lsvld $LIBS" 18938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18939/* end confdefs.h. */ 18940 18941/* Override any GCC internal prototype to avoid an error. 18942 Use char because int might match the return type of a GCC 18943 builtin and then its argument prototype would still apply. */ 18944#ifdef __cplusplus 18945extern "C" 18946#endif 18947char dlopen (); 18948int 18949main () 18950{ 18951return dlopen (); 18952 ; 18953 return 0; 18954} 18955_ACEOF 18956if ac_fn_c_try_link "$LINENO"; then : 18957 ac_cv_lib_svld_dlopen=yes 18958else 18959 ac_cv_lib_svld_dlopen=no 18960fi 18961rm -f core conftest.err conftest.$ac_objext \ 18962 conftest$ac_exeext conftest.$ac_ext 18963LIBS=$ac_check_lib_save_LIBS 18964fi 18965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18966$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18967if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18969else 18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18971$as_echo_n "checking for dld_link in -ldld... " >&6; } 18972if ${ac_cv_lib_dld_dld_link+:} false; then : 18973 $as_echo_n "(cached) " >&6 18974else 18975 ac_check_lib_save_LIBS=$LIBS 18976LIBS="-ldld $LIBS" 18977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18978/* end confdefs.h. */ 18979 18980/* Override any GCC internal prototype to avoid an error. 18981 Use char because int might match the return type of a GCC 18982 builtin and then its argument prototype would still apply. */ 18983#ifdef __cplusplus 18984extern "C" 18985#endif 18986char dld_link (); 18987int 18988main () 18989{ 18990return dld_link (); 18991 ; 18992 return 0; 18993} 18994_ACEOF 18995if ac_fn_c_try_link "$LINENO"; then : 18996 ac_cv_lib_dld_dld_link=yes 18997else 18998 ac_cv_lib_dld_dld_link=no 18999fi 19000rm -f core conftest.err conftest.$ac_objext \ 19001 conftest$ac_exeext conftest.$ac_ext 19002LIBS=$ac_check_lib_save_LIBS 19003fi 19004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19005$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 19006if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 19007 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 19008fi 19009 19010 19011fi 19012 19013 19014fi 19015 19016 19017fi 19018 19019 19020fi 19021 19022 19023fi 19024 19025 ;; 19026 esac 19027 19028 if test "x$lt_cv_dlopen" != xno; then 19029 enable_dlopen=yes 19030 else 19031 enable_dlopen=no 19032 fi 19033 19034 case $lt_cv_dlopen in 19035 dlopen) 19036 save_CPPFLAGS="$CPPFLAGS" 19037 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19038 19039 save_LDFLAGS="$LDFLAGS" 19040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19041 19042 save_LIBS="$LIBS" 19043 LIBS="$lt_cv_dlopen_libs $LIBS" 19044 19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19046$as_echo_n "checking whether a program can dlopen itself... " >&6; } 19047if ${lt_cv_dlopen_self+:} false; then : 19048 $as_echo_n "(cached) " >&6 19049else 19050 if test "$cross_compiling" = yes; then : 19051 lt_cv_dlopen_self=cross 19052else 19053 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19054 lt_status=$lt_dlunknown 19055 cat > conftest.$ac_ext <<_LT_EOF 19056#line 19056 "configure" 19057#include "confdefs.h" 19058 19059#if HAVE_DLFCN_H 19060#include <dlfcn.h> 19061#endif 19062 19063#include <stdio.h> 19064 19065#ifdef RTLD_GLOBAL 19066# define LT_DLGLOBAL RTLD_GLOBAL 19067#else 19068# ifdef DL_GLOBAL 19069# define LT_DLGLOBAL DL_GLOBAL 19070# else 19071# define LT_DLGLOBAL 0 19072# endif 19073#endif 19074 19075/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19076 find out it does not work in some platform. */ 19077#ifndef LT_DLLAZY_OR_NOW 19078# ifdef RTLD_LAZY 19079# define LT_DLLAZY_OR_NOW RTLD_LAZY 19080# else 19081# ifdef DL_LAZY 19082# define LT_DLLAZY_OR_NOW DL_LAZY 19083# else 19084# ifdef RTLD_NOW 19085# define LT_DLLAZY_OR_NOW RTLD_NOW 19086# else 19087# ifdef DL_NOW 19088# define LT_DLLAZY_OR_NOW DL_NOW 19089# else 19090# define LT_DLLAZY_OR_NOW 0 19091# endif 19092# endif 19093# endif 19094# endif 19095#endif 19096 19097/* When -fvisbility=hidden is used, assume the code has been annotated 19098 correspondingly for the symbols needed. */ 19099#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19100void fnord () __attribute__((visibility("default"))); 19101#endif 19102 19103void fnord () { int i=42; } 19104int main () 19105{ 19106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19107 int status = $lt_dlunknown; 19108 19109 if (self) 19110 { 19111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19112 else 19113 { 19114 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19115 else puts (dlerror ()); 19116 } 19117 /* dlclose (self); */ 19118 } 19119 else 19120 puts (dlerror ()); 19121 19122 return status; 19123} 19124_LT_EOF 19125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19126 (eval $ac_link) 2>&5 19127 ac_status=$? 19128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19129 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 19130 (./conftest; exit; ) >&5 2>/dev/null 19131 lt_status=$? 19132 case x$lt_status in 19133 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19134 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19135 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19136 esac 19137 else : 19138 # compilation failed 19139 lt_cv_dlopen_self=no 19140 fi 19141fi 19142rm -fr conftest* 19143 19144 19145fi 19146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19147$as_echo "$lt_cv_dlopen_self" >&6; } 19148 19149 if test "x$lt_cv_dlopen_self" = xyes; then 19150 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19152$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 19153if ${lt_cv_dlopen_self_static+:} false; then : 19154 $as_echo_n "(cached) " >&6 19155else 19156 if test "$cross_compiling" = yes; then : 19157 lt_cv_dlopen_self_static=cross 19158else 19159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19160 lt_status=$lt_dlunknown 19161 cat > conftest.$ac_ext <<_LT_EOF 19162#line 19162 "configure" 19163#include "confdefs.h" 19164 19165#if HAVE_DLFCN_H 19166#include <dlfcn.h> 19167#endif 19168 19169#include <stdio.h> 19170 19171#ifdef RTLD_GLOBAL 19172# define LT_DLGLOBAL RTLD_GLOBAL 19173#else 19174# ifdef DL_GLOBAL 19175# define LT_DLGLOBAL DL_GLOBAL 19176# else 19177# define LT_DLGLOBAL 0 19178# endif 19179#endif 19180 19181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19182 find out it does not work in some platform. */ 19183#ifndef LT_DLLAZY_OR_NOW 19184# ifdef RTLD_LAZY 19185# define LT_DLLAZY_OR_NOW RTLD_LAZY 19186# else 19187# ifdef DL_LAZY 19188# define LT_DLLAZY_OR_NOW DL_LAZY 19189# else 19190# ifdef RTLD_NOW 19191# define LT_DLLAZY_OR_NOW RTLD_NOW 19192# else 19193# ifdef DL_NOW 19194# define LT_DLLAZY_OR_NOW DL_NOW 19195# else 19196# define LT_DLLAZY_OR_NOW 0 19197# endif 19198# endif 19199# endif 19200# endif 19201#endif 19202 19203/* When -fvisbility=hidden is used, assume the code has been annotated 19204 correspondingly for the symbols needed. */ 19205#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19206void fnord () __attribute__((visibility("default"))); 19207#endif 19208 19209void fnord () { int i=42; } 19210int main () 19211{ 19212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19213 int status = $lt_dlunknown; 19214 19215 if (self) 19216 { 19217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19218 else 19219 { 19220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19221 else puts (dlerror ()); 19222 } 19223 /* dlclose (self); */ 19224 } 19225 else 19226 puts (dlerror ()); 19227 19228 return status; 19229} 19230_LT_EOF 19231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19232 (eval $ac_link) 2>&5 19233 ac_status=$? 19234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19235 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 19236 (./conftest; exit; ) >&5 2>/dev/null 19237 lt_status=$? 19238 case x$lt_status in 19239 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19240 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19241 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19242 esac 19243 else : 19244 # compilation failed 19245 lt_cv_dlopen_self_static=no 19246 fi 19247fi 19248rm -fr conftest* 19249 19250 19251fi 19252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19253$as_echo "$lt_cv_dlopen_self_static" >&6; } 19254 fi 19255 19256 CPPFLAGS="$save_CPPFLAGS" 19257 LDFLAGS="$save_LDFLAGS" 19258 LIBS="$save_LIBS" 19259 ;; 19260 esac 19261 19262 case $lt_cv_dlopen_self in 19263 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19264 *) enable_dlopen_self=unknown ;; 19265 esac 19266 19267 case $lt_cv_dlopen_self_static in 19268 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19269 *) enable_dlopen_self_static=unknown ;; 19270 esac 19271fi 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289striplib= 19290old_striplib= 19291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19292$as_echo_n "checking whether stripping libraries is possible... " >&6; } 19293if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19294 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19295 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19297$as_echo "yes" >&6; } 19298else 19299# FIXME - insert some real tests, host_os isn't really good enough 19300 case $host_os in 19301 darwin*) 19302 if test -n "$STRIP" ; then 19303 striplib="$STRIP -x" 19304 old_striplib="$STRIP -S" 19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19306$as_echo "yes" >&6; } 19307 else 19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19309$as_echo "no" >&6; } 19310 fi 19311 ;; 19312 *) 19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19314$as_echo "no" >&6; } 19315 ;; 19316 esac 19317fi 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 # Report which library types will actually be built 19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19332$as_echo_n "checking if libtool supports shared libraries... " >&6; } 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19334$as_echo "$can_build_shared" >&6; } 19335 19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19337$as_echo_n "checking whether to build shared libraries... " >&6; } 19338 test "$can_build_shared" = "no" && enable_shared=no 19339 19340 # On AIX, shared libraries and static libraries use the same namespace, and 19341 # are all built from PIC. 19342 case $host_os in 19343 aix3*) 19344 test "$enable_shared" = yes && enable_static=no 19345 if test -n "$RANLIB"; then 19346 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19347 postinstall_cmds='$RANLIB $lib' 19348 fi 19349 ;; 19350 19351 aix[4-9]*) 19352 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 19353 test "$enable_shared" = yes && enable_static=no 19354 fi 19355 ;; 19356 esac 19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19358$as_echo "$enable_shared" >&6; } 19359 19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19361$as_echo_n "checking whether to build static libraries... " >&6; } 19362 # Make sure either enable_shared or enable_static is yes. 19363 test "$enable_shared" = yes || enable_static=yes 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19365$as_echo "$enable_static" >&6; } 19366 19367 19368 19369 19370fi 19371ac_ext=cpp 19372ac_cpp='$CXXCPP $CPPFLAGS' 19373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19376 19377CC="$lt_save_CC" 19378 19379 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 19380 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 19381 (test "X$CXX" != "Xg++"))) ; then 19382 ac_ext=cpp 19383ac_cpp='$CXXCPP $CPPFLAGS' 19384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 19388$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 19389if test -z "$CXXCPP"; then 19390 if ${ac_cv_prog_CXXCPP+:} false; then : 19391 $as_echo_n "(cached) " >&6 19392else 19393 # Double quotes because CXXCPP needs to be expanded 19394 for CXXCPP in "$CXX -E" "/lib/cpp" 19395 do 19396 ac_preproc_ok=false 19397for ac_cxx_preproc_warn_flag in '' yes 19398do 19399 # Use a header file that comes with gcc, so configuring glibc 19400 # with a fresh cross-compiler works. 19401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19402 # <limits.h> exists even on freestanding compilers. 19403 # On the NeXT, cc -E runs the code through the compiler's parser, 19404 # not just through cpp. "Syntax error" is here to catch this case. 19405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19406/* end confdefs.h. */ 19407#ifdef __STDC__ 19408# include <limits.h> 19409#else 19410# include <assert.h> 19411#endif 19412 Syntax error 19413_ACEOF 19414if ac_fn_cxx_try_cpp "$LINENO"; then : 19415 19416else 19417 # Broken: fails on valid input. 19418continue 19419fi 19420rm -f conftest.err conftest.i conftest.$ac_ext 19421 19422 # OK, works on sane cases. Now check whether nonexistent headers 19423 # can be detected and how. 19424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19425/* end confdefs.h. */ 19426#include <ac_nonexistent.h> 19427_ACEOF 19428if ac_fn_cxx_try_cpp "$LINENO"; then : 19429 # Broken: success on invalid input. 19430continue 19431else 19432 # Passes both tests. 19433ac_preproc_ok=: 19434break 19435fi 19436rm -f conftest.err conftest.i conftest.$ac_ext 19437 19438done 19439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19440rm -f conftest.i conftest.err conftest.$ac_ext 19441if $ac_preproc_ok; then : 19442 break 19443fi 19444 19445 done 19446 ac_cv_prog_CXXCPP=$CXXCPP 19447 19448fi 19449 CXXCPP=$ac_cv_prog_CXXCPP 19450else 19451 ac_cv_prog_CXXCPP=$CXXCPP 19452fi 19453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 19454$as_echo "$CXXCPP" >&6; } 19455ac_preproc_ok=false 19456for ac_cxx_preproc_warn_flag in '' yes 19457do 19458 # Use a header file that comes with gcc, so configuring glibc 19459 # with a fresh cross-compiler works. 19460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19461 # <limits.h> exists even on freestanding compilers. 19462 # On the NeXT, cc -E runs the code through the compiler's parser, 19463 # not just through cpp. "Syntax error" is here to catch this case. 19464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19465/* end confdefs.h. */ 19466#ifdef __STDC__ 19467# include <limits.h> 19468#else 19469# include <assert.h> 19470#endif 19471 Syntax error 19472_ACEOF 19473if ac_fn_cxx_try_cpp "$LINENO"; then : 19474 19475else 19476 # Broken: fails on valid input. 19477continue 19478fi 19479rm -f conftest.err conftest.i conftest.$ac_ext 19480 19481 # OK, works on sane cases. Now check whether nonexistent headers 19482 # can be detected and how. 19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19484/* end confdefs.h. */ 19485#include <ac_nonexistent.h> 19486_ACEOF 19487if ac_fn_cxx_try_cpp "$LINENO"; then : 19488 # Broken: success on invalid input. 19489continue 19490else 19491 # Passes both tests. 19492ac_preproc_ok=: 19493break 19494fi 19495rm -f conftest.err conftest.i conftest.$ac_ext 19496 19497done 19498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19499rm -f conftest.i conftest.err conftest.$ac_ext 19500if $ac_preproc_ok; then : 19501 19502else 19503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19505as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 19506See \`config.log' for more details" "$LINENO" 5; } 19507fi 19508 19509ac_ext=cpp 19510ac_cpp='$CXXCPP $CPPFLAGS' 19511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19514 19515else 19516 _lt_caught_CXX_error=yes 19517fi 19518 19519ac_ext=cpp 19520ac_cpp='$CXXCPP $CPPFLAGS' 19521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19524 19525archive_cmds_need_lc_CXX=no 19526allow_undefined_flag_CXX= 19527always_export_symbols_CXX=no 19528archive_expsym_cmds_CXX= 19529compiler_needs_object_CXX=no 19530export_dynamic_flag_spec_CXX= 19531hardcode_direct_CXX=no 19532hardcode_direct_absolute_CXX=no 19533hardcode_libdir_flag_spec_CXX= 19534hardcode_libdir_flag_spec_ld_CXX= 19535hardcode_libdir_separator_CXX= 19536hardcode_minus_L_CXX=no 19537hardcode_shlibpath_var_CXX=unsupported 19538hardcode_automatic_CXX=no 19539inherit_rpath_CXX=no 19540module_cmds_CXX= 19541module_expsym_cmds_CXX= 19542link_all_deplibs_CXX=unknown 19543old_archive_cmds_CXX=$old_archive_cmds 19544reload_flag_CXX=$reload_flag 19545reload_cmds_CXX=$reload_cmds 19546no_undefined_flag_CXX= 19547whole_archive_flag_spec_CXX= 19548enable_shared_with_static_runtimes_CXX=no 19549 19550# Source file extension for C++ test sources. 19551ac_ext=cpp 19552 19553# Object file extension for compiled C++ test sources. 19554objext=o 19555objext_CXX=$objext 19556 19557# No sense in running all these tests if we already determined that 19558# the CXX compiler isn't working. Some variables (like enable_shared) 19559# are currently assumed to apply to all compilers on this platform, 19560# and will be corrupted by setting them based on a non-working compiler. 19561if test "$_lt_caught_CXX_error" != yes; then 19562 # Code to be used in simple compile tests 19563 lt_simple_compile_test_code="int some_variable = 0;" 19564 19565 # Code to be used in simple link tests 19566 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 19567 19568 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19569 19570 19571 19572 19573 19574 19575# If no C compiler was specified, use CC. 19576LTCC=${LTCC-"$CC"} 19577 19578# If no C compiler flags were specified, use CFLAGS. 19579LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19580 19581# Allow CC to be a program name with arguments. 19582compiler=$CC 19583 19584 19585 # save warnings/boilerplate of simple test code 19586 ac_outfile=conftest.$ac_objext 19587echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19588eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19589_lt_compiler_boilerplate=`cat conftest.err` 19590$RM conftest* 19591 19592 ac_outfile=conftest.$ac_objext 19593echo "$lt_simple_link_test_code" >conftest.$ac_ext 19594eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19595_lt_linker_boilerplate=`cat conftest.err` 19596$RM -r conftest* 19597 19598 19599 # Allow CC to be a program name with arguments. 19600 lt_save_CC=$CC 19601 lt_save_LD=$LD 19602 lt_save_GCC=$GCC 19603 GCC=$GXX 19604 lt_save_with_gnu_ld=$with_gnu_ld 19605 lt_save_path_LD=$lt_cv_path_LD 19606 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 19607 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 19608 else 19609 $as_unset lt_cv_prog_gnu_ld 19610 fi 19611 if test -n "${lt_cv_path_LDCXX+set}"; then 19612 lt_cv_path_LD=$lt_cv_path_LDCXX 19613 else 19614 $as_unset lt_cv_path_LD 19615 fi 19616 test -z "${LDCXX+set}" || LD=$LDCXX 19617 CC=${CXX-"c++"} 19618 compiler=$CC 19619 compiler_CXX=$CC 19620 for cc_temp in $compiler""; do 19621 case $cc_temp in 19622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19624 \-*) ;; 19625 *) break;; 19626 esac 19627done 19628cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19629 19630 19631 if test -n "$compiler"; then 19632 # We don't want -fno-exception when compiling C++ code, so set the 19633 # no_builtin_flag separately 19634 if test "$GXX" = yes; then 19635 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 19636 else 19637 lt_prog_compiler_no_builtin_flag_CXX= 19638 fi 19639 19640 if test "$GXX" = yes; then 19641 # Set up default GNU C++ configuration 19642 19643 19644 19645# Check whether --with-gnu-ld was given. 19646if test "${with_gnu_ld+set}" = set; then : 19647 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 19648else 19649 with_gnu_ld=no 19650fi 19651 19652ac_prog=ld 19653if test "$GCC" = yes; then 19654 # Check if gcc -print-prog-name=ld gives a path. 19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 19656$as_echo_n "checking for ld used by $CC... " >&6; } 19657 case $host in 19658 *-*-mingw*) 19659 # gcc leaves a trailing carriage return which upsets mingw 19660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19661 *) 19662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19663 esac 19664 case $ac_prog in 19665 # Accept absolute paths. 19666 [\\/]* | ?:[\\/]*) 19667 re_direlt='/[^/][^/]*/\.\./' 19668 # Canonicalize the pathname of ld 19669 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 19670 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 19671 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 19672 done 19673 test -z "$LD" && LD="$ac_prog" 19674 ;; 19675 "") 19676 # If it fails, then pretend we aren't using GCC. 19677 ac_prog=ld 19678 ;; 19679 *) 19680 # If it is relative, then search for the first ld in PATH. 19681 with_gnu_ld=unknown 19682 ;; 19683 esac 19684elif test "$with_gnu_ld" = yes; then 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 19686$as_echo_n "checking for GNU ld... " >&6; } 19687else 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 19689$as_echo_n "checking for non-GNU ld... " >&6; } 19690fi 19691if ${lt_cv_path_LD+:} false; then : 19692 $as_echo_n "(cached) " >&6 19693else 19694 if test -z "$LD"; then 19695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 19696 for ac_dir in $PATH; do 19697 IFS="$lt_save_ifs" 19698 test -z "$ac_dir" && ac_dir=. 19699 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19700 lt_cv_path_LD="$ac_dir/$ac_prog" 19701 # Check to see if the program is GNU ld. I'd rather use --version, 19702 # but apparently some variants of GNU ld only accept -v. 19703 # Break only if it was the GNU/non-GNU ld that we prefer. 19704 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 19705 *GNU* | *'with BFD'*) 19706 test "$with_gnu_ld" != no && break 19707 ;; 19708 *) 19709 test "$with_gnu_ld" != yes && break 19710 ;; 19711 esac 19712 fi 19713 done 19714 IFS="$lt_save_ifs" 19715else 19716 lt_cv_path_LD="$LD" # Let the user override the test with a path. 19717fi 19718fi 19719 19720LD="$lt_cv_path_LD" 19721if test -n "$LD"; then 19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 19723$as_echo "$LD" >&6; } 19724else 19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19726$as_echo "no" >&6; } 19727fi 19728test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 19729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 19730$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 19731if ${lt_cv_prog_gnu_ld+:} false; then : 19732 $as_echo_n "(cached) " >&6 19733else 19734 # I'd rather use --version here, but apparently some GNU lds only accept -v. 19735case `$LD -v 2>&1 </dev/null` in 19736*GNU* | *'with BFD'*) 19737 lt_cv_prog_gnu_ld=yes 19738 ;; 19739*) 19740 lt_cv_prog_gnu_ld=no 19741 ;; 19742esac 19743fi 19744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 19745$as_echo "$lt_cv_prog_gnu_ld" >&6; } 19746with_gnu_ld=$lt_cv_prog_gnu_ld 19747 19748 19749 19750 19751 19752 19753 19754 # Check if GNU C++ uses GNU ld as the underlying linker, since the 19755 # archiving commands below assume that GNU ld is being used. 19756 if test "$with_gnu_ld" = yes; then 19757 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19758 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' 19759 19760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19762 19763 # If archive_cmds runs LD, not CC, wlarc should be empty 19764 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 19765 # investigate it a little bit more. (MM) 19766 wlarc='${wl}' 19767 19768 # ancient GNU ld didn't support --whole-archive et. al. 19769 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 19770 $GREP 'no-whole-archive' > /dev/null; then 19771 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19772 else 19773 whole_archive_flag_spec_CXX= 19774 fi 19775 else 19776 with_gnu_ld=no 19777 wlarc= 19778 19779 # A generic and very simple default shared library creation 19780 # command for GNU C++ for the case where it uses the native 19781 # linker, instead of GNU ld. If possible, this setting should 19782 # overridden to take advantage of the native linker features on 19783 # the platform it is being used on. 19784 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19785 fi 19786 19787 # Commands to make compiler produce verbose output that lists 19788 # what "hidden" libraries, object files and flags are used when 19789 # linking a shared library. 19790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 19791 19792 else 19793 GXX=no 19794 with_gnu_ld=no 19795 wlarc= 19796 fi 19797 19798 # PORTME: fill in a description of your system's C++ link characteristics 19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19800$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19801 ld_shlibs_CXX=yes 19802 case $host_os in 19803 aix3*) 19804 # FIXME: insert proper C++ library support 19805 ld_shlibs_CXX=no 19806 ;; 19807 aix[4-9]*) 19808 if test "$host_cpu" = ia64; then 19809 # On IA64, the linker does run time linking by default, so we don't 19810 # have to do anything special. 19811 aix_use_runtimelinking=no 19812 exp_sym_flag='-Bexport' 19813 no_entry_flag="" 19814 else 19815 aix_use_runtimelinking=no 19816 19817 # Test if we are trying to use run time linking or normal 19818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19819 # need to do runtime linking. 19820 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19821 for ld_flag in $LDFLAGS; do 19822 case $ld_flag in 19823 *-brtl*) 19824 aix_use_runtimelinking=yes 19825 break 19826 ;; 19827 esac 19828 done 19829 ;; 19830 esac 19831 19832 exp_sym_flag='-bexport' 19833 no_entry_flag='-bnoentry' 19834 fi 19835 19836 # When large executables or shared objects are built, AIX ld can 19837 # have problems creating the table of contents. If linking a library 19838 # or program results in "error TOC overflow" add -mminimal-toc to 19839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19841 19842 archive_cmds_CXX='' 19843 hardcode_direct_CXX=yes 19844 hardcode_direct_absolute_CXX=yes 19845 hardcode_libdir_separator_CXX=':' 19846 link_all_deplibs_CXX=yes 19847 file_list_spec_CXX='${wl}-f,' 19848 19849 if test "$GXX" = yes; then 19850 case $host_os in aix4.[012]|aix4.[012].*) 19851 # We only want to do this on AIX 4.2 and lower, the check 19852 # below for broken collect2 doesn't work under 4.3+ 19853 collect2name=`${CC} -print-prog-name=collect2` 19854 if test -f "$collect2name" && 19855 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19856 then 19857 # We have reworked collect2 19858 : 19859 else 19860 # We have old collect2 19861 hardcode_direct_CXX=unsupported 19862 # It fails to find uninstalled libraries when the uninstalled 19863 # path is not listed in the libpath. Setting hardcode_minus_L 19864 # to unsupported forces relinking 19865 hardcode_minus_L_CXX=yes 19866 hardcode_libdir_flag_spec_CXX='-L$libdir' 19867 hardcode_libdir_separator_CXX= 19868 fi 19869 esac 19870 shared_flag='-shared' 19871 if test "$aix_use_runtimelinking" = yes; then 19872 shared_flag="$shared_flag "'${wl}-G' 19873 fi 19874 else 19875 # not using gcc 19876 if test "$host_cpu" = ia64; then 19877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19878 # chokes on -Wl,-G. The following line is correct: 19879 shared_flag='-G' 19880 else 19881 if test "$aix_use_runtimelinking" = yes; then 19882 shared_flag='${wl}-G' 19883 else 19884 shared_flag='${wl}-bM:SRE' 19885 fi 19886 fi 19887 fi 19888 19889 export_dynamic_flag_spec_CXX='${wl}-bexpall' 19890 # It seems that -bexpall does not export symbols beginning with 19891 # underscore (_), so it is better to generate a list of symbols to 19892 # export. 19893 always_export_symbols_CXX=yes 19894 if test "$aix_use_runtimelinking" = yes; then 19895 # Warning - without using the other runtime loading flags (-brtl), 19896 # -berok will link without error, but may produce a broken library. 19897 allow_undefined_flag_CXX='-berok' 19898 # Determine the default libpath from the value encoded in an empty 19899 # executable. 19900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19901/* end confdefs.h. */ 19902 19903int 19904main () 19905{ 19906 19907 ; 19908 return 0; 19909} 19910_ACEOF 19911if ac_fn_cxx_try_link "$LINENO"; then : 19912 19913lt_aix_libpath_sed=' 19914 /Import File Strings/,/^$/ { 19915 /^0/ { 19916 s/^0 *\(.*\)$/\1/ 19917 p 19918 } 19919 }' 19920aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19921# Check for a 64-bit object if we didn't find anything. 19922if test -z "$aix_libpath"; then 19923 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19924fi 19925fi 19926rm -f core conftest.err conftest.$ac_objext \ 19927 conftest$ac_exeext conftest.$ac_ext 19928if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19929 19930 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 19931 19932 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" 19933 else 19934 if test "$host_cpu" = ia64; then 19935 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 19936 allow_undefined_flag_CXX="-z nodefs" 19937 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" 19938 else 19939 # Determine the default libpath from the value encoded in an 19940 # empty executable. 19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19942/* end confdefs.h. */ 19943 19944int 19945main () 19946{ 19947 19948 ; 19949 return 0; 19950} 19951_ACEOF 19952if ac_fn_cxx_try_link "$LINENO"; then : 19953 19954lt_aix_libpath_sed=' 19955 /Import File Strings/,/^$/ { 19956 /^0/ { 19957 s/^0 *\(.*\)$/\1/ 19958 p 19959 } 19960 }' 19961aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19962# Check for a 64-bit object if we didn't find anything. 19963if test -z "$aix_libpath"; then 19964 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19965fi 19966fi 19967rm -f core conftest.err conftest.$ac_objext \ 19968 conftest$ac_exeext conftest.$ac_ext 19969if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19970 19971 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 19972 # Warning - without using the other run time loading flags, 19973 # -berok will link without error, but may produce a broken library. 19974 no_undefined_flag_CXX=' ${wl}-bernotok' 19975 allow_undefined_flag_CXX=' ${wl}-berok' 19976 if test "$with_gnu_ld" = yes; then 19977 # We only use this code for GNU lds that support --whole-archive. 19978 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 19979 else 19980 # Exported symbols can be pulled into shared objects from archives 19981 whole_archive_flag_spec_CXX='$convenience' 19982 fi 19983 archive_cmds_need_lc_CXX=yes 19984 # This is similar to how AIX traditionally builds its shared 19985 # libraries. 19986 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' 19987 fi 19988 fi 19989 ;; 19990 19991 beos*) 19992 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19993 allow_undefined_flag_CXX=unsupported 19994 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19995 # support --undefined. This deserves some investigation. FIXME 19996 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19997 else 19998 ld_shlibs_CXX=no 19999 fi 20000 ;; 20001 20002 chorus*) 20003 case $cc_basename in 20004 *) 20005 # FIXME: insert proper C++ library support 20006 ld_shlibs_CXX=no 20007 ;; 20008 esac 20009 ;; 20010 20011 cygwin* | mingw* | pw32* | cegcc*) 20012 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 20013 # as there is no search path for DLLs. 20014 hardcode_libdir_flag_spec_CXX='-L$libdir' 20015 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 20016 allow_undefined_flag_CXX=unsupported 20017 always_export_symbols_CXX=no 20018 enable_shared_with_static_runtimes_CXX=yes 20019 20020 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 20021 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' 20022 # If the export-symbols file already is a .def file (1st line 20023 # is EXPORTS), use it as is; otherwise, prepend... 20024 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 20025 cp $export_symbols $output_objdir/$soname.def; 20026 else 20027 echo EXPORTS > $output_objdir/$soname.def; 20028 cat $export_symbols >> $output_objdir/$soname.def; 20029 fi~ 20030 $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' 20031 else 20032 ld_shlibs_CXX=no 20033 fi 20034 ;; 20035 darwin* | rhapsody*) 20036 20037 20038 archive_cmds_need_lc_CXX=no 20039 hardcode_direct_CXX=no 20040 hardcode_automatic_CXX=yes 20041 hardcode_shlibpath_var_CXX=unsupported 20042 if test "$lt_cv_ld_force_load" = "yes"; then 20043 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\"`' 20044 else 20045 whole_archive_flag_spec_CXX='' 20046 fi 20047 link_all_deplibs_CXX=yes 20048 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 20049 case $cc_basename in 20050 ifort*) _lt_dar_can_shared=yes ;; 20051 *) _lt_dar_can_shared=$GCC ;; 20052 esac 20053 if test "$_lt_dar_can_shared" = "yes"; then 20054 output_verbose_link_cmd=func_echo_all 20055 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}" 20056 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 20057 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}" 20058 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}" 20059 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 20060 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}" 20061 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}" 20062 fi 20063 20064 else 20065 ld_shlibs_CXX=no 20066 fi 20067 20068 ;; 20069 20070 dgux*) 20071 case $cc_basename in 20072 ec++*) 20073 # FIXME: insert proper C++ library support 20074 ld_shlibs_CXX=no 20075 ;; 20076 ghcx*) 20077 # Green Hills C++ Compiler 20078 # FIXME: insert proper C++ library support 20079 ld_shlibs_CXX=no 20080 ;; 20081 *) 20082 # FIXME: insert proper C++ library support 20083 ld_shlibs_CXX=no 20084 ;; 20085 esac 20086 ;; 20087 20088 freebsd2.*) 20089 # C++ shared libraries reported to be fairly broken before 20090 # switch to ELF 20091 ld_shlibs_CXX=no 20092 ;; 20093 20094 freebsd-elf*) 20095 archive_cmds_need_lc_CXX=no 20096 ;; 20097 20098 freebsd* | dragonfly*) 20099 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 20100 # conventions 20101 ld_shlibs_CXX=yes 20102 ;; 20103 20104 gnu*) 20105 ;; 20106 20107 haiku*) 20108 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20109 link_all_deplibs_CXX=yes 20110 ;; 20111 20112 hpux9*) 20113 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 20114 hardcode_libdir_separator_CXX=: 20115 export_dynamic_flag_spec_CXX='${wl}-E' 20116 hardcode_direct_CXX=yes 20117 hardcode_minus_L_CXX=yes # Not in the search PATH, 20118 # but as the default 20119 # location of the library. 20120 20121 case $cc_basename in 20122 CC*) 20123 # FIXME: insert proper C++ library support 20124 ld_shlibs_CXX=no 20125 ;; 20126 aCC*) 20127 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' 20128 # Commands to make compiler produce verbose output that lists 20129 # what "hidden" libraries, object files and flags are used when 20130 # linking a shared library. 20131 # 20132 # There doesn't appear to be a way to prevent this compiler from 20133 # explicitly linking system object files so we need to strip them 20134 # from the output so that they don't get included in the library 20135 # dependencies. 20136 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"' 20137 ;; 20138 *) 20139 if test "$GXX" = yes; then 20140 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' 20141 else 20142 # FIXME: insert proper C++ library support 20143 ld_shlibs_CXX=no 20144 fi 20145 ;; 20146 esac 20147 ;; 20148 20149 hpux10*|hpux11*) 20150 if test $with_gnu_ld = no; then 20151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 20152 hardcode_libdir_separator_CXX=: 20153 20154 case $host_cpu in 20155 hppa*64*|ia64*) 20156 ;; 20157 *) 20158 export_dynamic_flag_spec_CXX='${wl}-E' 20159 ;; 20160 esac 20161 fi 20162 case $host_cpu in 20163 hppa*64*|ia64*) 20164 hardcode_direct_CXX=no 20165 hardcode_shlibpath_var_CXX=no 20166 ;; 20167 *) 20168 hardcode_direct_CXX=yes 20169 hardcode_direct_absolute_CXX=yes 20170 hardcode_minus_L_CXX=yes # Not in the search PATH, 20171 # but as the default 20172 # location of the library. 20173 ;; 20174 esac 20175 20176 case $cc_basename in 20177 CC*) 20178 # FIXME: insert proper C++ library support 20179 ld_shlibs_CXX=no 20180 ;; 20181 aCC*) 20182 case $host_cpu in 20183 hppa*64*) 20184 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20185 ;; 20186 ia64*) 20187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20188 ;; 20189 *) 20190 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20191 ;; 20192 esac 20193 # Commands to make compiler produce verbose output that lists 20194 # what "hidden" libraries, object files and flags are used when 20195 # linking a shared library. 20196 # 20197 # There doesn't appear to be a way to prevent this compiler from 20198 # explicitly linking system object files so we need to strip them 20199 # from the output so that they don't get included in the library 20200 # dependencies. 20201 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"' 20202 ;; 20203 *) 20204 if test "$GXX" = yes; then 20205 if test $with_gnu_ld = no; then 20206 case $host_cpu in 20207 hppa*64*) 20208 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20209 ;; 20210 ia64*) 20211 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20212 ;; 20213 *) 20214 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' 20215 ;; 20216 esac 20217 fi 20218 else 20219 # FIXME: insert proper C++ library support 20220 ld_shlibs_CXX=no 20221 fi 20222 ;; 20223 esac 20224 ;; 20225 20226 interix[3-9]*) 20227 hardcode_direct_CXX=no 20228 hardcode_shlibpath_var_CXX=no 20229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20230 export_dynamic_flag_spec_CXX='${wl}-E' 20231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20232 # Instead, shared libraries are loaded at an image base (0x10000000 by 20233 # default) and relocated if they conflict, which is a slow very memory 20234 # consuming and fragmenting process. To avoid this, we pick a random, 20235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20236 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20237 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' 20238 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' 20239 ;; 20240 irix5* | irix6*) 20241 case $cc_basename in 20242 CC*) 20243 # SGI C++ 20244 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' 20245 20246 # Archives containing C++ object files must be created using 20247 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 20248 # necessary to make sure instantiated templates are included 20249 # in the archive. 20250 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 20251 ;; 20252 *) 20253 if test "$GXX" = yes; then 20254 if test "$with_gnu_ld" = no; then 20255 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' 20256 else 20257 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' 20258 fi 20259 fi 20260 link_all_deplibs_CXX=yes 20261 ;; 20262 esac 20263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20264 hardcode_libdir_separator_CXX=: 20265 inherit_rpath_CXX=yes 20266 ;; 20267 20268 linux* | k*bsd*-gnu | kopensolaris*-gnu) 20269 case $cc_basename in 20270 KCC*) 20271 # Kuck and Associates, Inc. (KAI) C++ Compiler 20272 20273 # KCC will only create a shared library if the output file 20274 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20275 # to its proper name (with version) after linking. 20276 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' 20277 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' 20278 # Commands to make compiler produce verbose output that lists 20279 # what "hidden" libraries, object files and flags are used when 20280 # linking a shared library. 20281 # 20282 # There doesn't appear to be a way to prevent this compiler from 20283 # explicitly linking system object files so we need to strip them 20284 # from the output so that they don't get included in the library 20285 # dependencies. 20286 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"' 20287 20288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20289 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20290 20291 # Archives containing C++ object files must be created using 20292 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 20293 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 20294 ;; 20295 icpc* | ecpc* ) 20296 # Intel C++ 20297 with_gnu_ld=yes 20298 # version 8.0 and above of icpc choke on multiply defined symbols 20299 # if we add $predep_objects and $postdep_objects, however 7.1 and 20300 # earlier do not add the objects themselves. 20301 case `$CC -V 2>&1` in 20302 *"Version 7."*) 20303 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20304 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' 20305 ;; 20306 *) # Version 8.0 or newer 20307 tmp_idyn= 20308 case $host_cpu in 20309 ia64*) tmp_idyn=' -i_dynamic';; 20310 esac 20311 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20312 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' 20313 ;; 20314 esac 20315 archive_cmds_need_lc_CXX=no 20316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20318 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 20319 ;; 20320 pgCC* | pgcpp*) 20321 # Portland Group C++ compiler 20322 case `$CC -V` in 20323 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 20324 prelink_cmds_CXX='tpldir=Template.dir~ 20325 rm -rf $tpldir~ 20326 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 20327 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 20328 old_archive_cmds_CXX='tpldir=Template.dir~ 20329 rm -rf $tpldir~ 20330 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 20331 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 20332 $RANLIB $oldlib' 20333 archive_cmds_CXX='tpldir=Template.dir~ 20334 rm -rf $tpldir~ 20335 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20336 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 20337 archive_expsym_cmds_CXX='tpldir=Template.dir~ 20338 rm -rf $tpldir~ 20339 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20340 $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' 20341 ;; 20342 *) # Version 6 and above use weak symbols 20343 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 20344 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' 20345 ;; 20346 esac 20347 20348 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 20349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20350 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' 20351 ;; 20352 cxx*) 20353 # Compaq C++ 20354 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20355 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' 20356 20357 runpath_var=LD_RUN_PATH 20358 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20359 hardcode_libdir_separator_CXX=: 20360 20361 # Commands to make compiler produce verbose output that lists 20362 # what "hidden" libraries, object files and flags are used when 20363 # linking a shared library. 20364 # 20365 # There doesn't appear to be a way to prevent this compiler from 20366 # explicitly linking system object files so we need to strip them 20367 # from the output so that they don't get included in the library 20368 # dependencies. 20369 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' 20370 ;; 20371 xl* | mpixl* | bgxl*) 20372 # IBM XL 8.0 on PPC, with GNU ld 20373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20374 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20375 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20376 if test "x$supports_anon_versioning" = xyes; then 20377 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 20378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20379 echo "local: *; };" >> $output_objdir/$libname.ver~ 20380 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 20381 fi 20382 ;; 20383 *) 20384 case `$CC -V 2>&1 | sed 5q` in 20385 *Sun\ C*) 20386 # Sun C++ 5.9 20387 no_undefined_flag_CXX=' -zdefs' 20388 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20389 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' 20390 hardcode_libdir_flag_spec_CXX='-R$libdir' 20391 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' 20392 compiler_needs_object_CXX=yes 20393 20394 # Not sure whether something based on 20395 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 20396 # would be better. 20397 output_verbose_link_cmd='func_echo_all' 20398 20399 # Archives containing C++ object files must be created using 20400 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20401 # necessary to make sure instantiated templates are included 20402 # in the archive. 20403 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20404 ;; 20405 esac 20406 ;; 20407 esac 20408 ;; 20409 20410 lynxos*) 20411 # FIXME: insert proper C++ library support 20412 ld_shlibs_CXX=no 20413 ;; 20414 20415 m88k*) 20416 # FIXME: insert proper C++ library support 20417 ld_shlibs_CXX=no 20418 ;; 20419 20420 mvs*) 20421 case $cc_basename in 20422 cxx*) 20423 # FIXME: insert proper C++ library support 20424 ld_shlibs_CXX=no 20425 ;; 20426 *) 20427 # FIXME: insert proper C++ library support 20428 ld_shlibs_CXX=no 20429 ;; 20430 esac 20431 ;; 20432 20433 netbsd*) 20434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20435 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 20436 wlarc= 20437 hardcode_libdir_flag_spec_CXX='-R$libdir' 20438 hardcode_direct_CXX=yes 20439 hardcode_shlibpath_var_CXX=no 20440 fi 20441 # Workaround some broken pre-1.5 toolchains 20442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 20443 ;; 20444 20445 *nto* | *qnx*) 20446 ld_shlibs_CXX=yes 20447 ;; 20448 20449 openbsd2*) 20450 # C++ shared libraries are fairly broken 20451 ld_shlibs_CXX=no 20452 ;; 20453 20454 openbsd*) 20455 if test -f /usr/libexec/ld.so; then 20456 hardcode_direct_CXX=yes 20457 hardcode_shlibpath_var_CXX=no 20458 hardcode_direct_absolute_CXX=yes 20459 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20460 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20462 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 20463 export_dynamic_flag_spec_CXX='${wl}-E' 20464 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 20465 fi 20466 output_verbose_link_cmd=func_echo_all 20467 else 20468 ld_shlibs_CXX=no 20469 fi 20470 ;; 20471 20472 osf3* | osf4* | osf5*) 20473 case $cc_basename in 20474 KCC*) 20475 # Kuck and Associates, Inc. (KAI) C++ Compiler 20476 20477 # KCC will only create a shared library if the output file 20478 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20479 # to its proper name (with version) after linking. 20480 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' 20481 20482 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20483 hardcode_libdir_separator_CXX=: 20484 20485 # Archives containing C++ object files must be created using 20486 # the KAI C++ compiler. 20487 case $host in 20488 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 20489 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 20490 esac 20491 ;; 20492 RCC*) 20493 # Rational C++ 2.4.1 20494 # FIXME: insert proper C++ library support 20495 ld_shlibs_CXX=no 20496 ;; 20497 cxx*) 20498 case $host in 20499 osf3*) 20500 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 20501 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' 20502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20503 ;; 20504 *) 20505 allow_undefined_flag_CXX=' -expect_unresolved \*' 20506 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' 20507 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 20508 echo "-hidden">> $lib.exp~ 20509 $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~ 20510 $RM $lib.exp' 20511 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20512 ;; 20513 esac 20514 20515 hardcode_libdir_separator_CXX=: 20516 20517 # Commands to make compiler produce verbose output that lists 20518 # what "hidden" libraries, object files and flags are used when 20519 # linking a shared library. 20520 # 20521 # There doesn't appear to be a way to prevent this compiler from 20522 # explicitly linking system object files so we need to strip them 20523 # from the output so that they don't get included in the library 20524 # dependencies. 20525 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"' 20526 ;; 20527 *) 20528 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 20529 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 20530 case $host in 20531 osf3*) 20532 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' 20533 ;; 20534 *) 20535 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' 20536 ;; 20537 esac 20538 20539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20540 hardcode_libdir_separator_CXX=: 20541 20542 # Commands to make compiler produce verbose output that lists 20543 # what "hidden" libraries, object files and flags are used when 20544 # linking a shared library. 20545 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20546 20547 else 20548 # FIXME: insert proper C++ library support 20549 ld_shlibs_CXX=no 20550 fi 20551 ;; 20552 esac 20553 ;; 20554 20555 psos*) 20556 # FIXME: insert proper C++ library support 20557 ld_shlibs_CXX=no 20558 ;; 20559 20560 sunos4*) 20561 case $cc_basename in 20562 CC*) 20563 # Sun C++ 4.x 20564 # FIXME: insert proper C++ library support 20565 ld_shlibs_CXX=no 20566 ;; 20567 lcc*) 20568 # Lucid 20569 # FIXME: insert proper C++ library support 20570 ld_shlibs_CXX=no 20571 ;; 20572 *) 20573 # FIXME: insert proper C++ library support 20574 ld_shlibs_CXX=no 20575 ;; 20576 esac 20577 ;; 20578 20579 solaris*) 20580 case $cc_basename in 20581 CC*) 20582 # Sun C++ 4.2, 5.x and Centerline C++ 20583 archive_cmds_need_lc_CXX=yes 20584 no_undefined_flag_CXX=' -zdefs' 20585 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20586 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20587 $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' 20588 20589 hardcode_libdir_flag_spec_CXX='-R$libdir' 20590 hardcode_shlibpath_var_CXX=no 20591 case $host_os in 20592 solaris2.[0-5] | solaris2.[0-5].*) ;; 20593 *) 20594 # The compiler driver will combine and reorder linker options, 20595 # but understands `-z linker_flag'. 20596 # Supported since Solaris 2.6 (maybe 2.5.1?) 20597 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 20598 ;; 20599 esac 20600 link_all_deplibs_CXX=yes 20601 20602 output_verbose_link_cmd='func_echo_all' 20603 20604 # Archives containing C++ object files must be created using 20605 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20606 # necessary to make sure instantiated templates are included 20607 # in the archive. 20608 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20609 ;; 20610 gcx*) 20611 # Green Hills C++ Compiler 20612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20613 20614 # The C++ compiler must be used to create the archive. 20615 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 20616 ;; 20617 *) 20618 # GNU C++ compiler with Solaris linker 20619 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 20620 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 20621 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 20622 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20623 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20624 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20625 20626 # Commands to make compiler produce verbose output that lists 20627 # what "hidden" libraries, object files and flags are used when 20628 # linking a shared library. 20629 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20630 else 20631 # g++ 2.7 appears to require `-G' NOT `-shared' on this 20632 # platform. 20633 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20634 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20635 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20636 20637 # Commands to make compiler produce verbose output that lists 20638 # what "hidden" libraries, object files and flags are used when 20639 # linking a shared library. 20640 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20641 fi 20642 20643 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 20644 case $host_os in 20645 solaris2.[0-5] | solaris2.[0-5].*) ;; 20646 *) 20647 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 20648 ;; 20649 esac 20650 fi 20651 ;; 20652 esac 20653 ;; 20654 20655 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20656 no_undefined_flag_CXX='${wl}-z,text' 20657 archive_cmds_need_lc_CXX=no 20658 hardcode_shlibpath_var_CXX=no 20659 runpath_var='LD_RUN_PATH' 20660 20661 case $cc_basename in 20662 CC*) 20663 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20664 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20665 ;; 20666 *) 20667 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20668 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20669 ;; 20670 esac 20671 ;; 20672 20673 sysv5* | sco3.2v5* | sco5v6*) 20674 # Note: We can NOT use -z defs as we might desire, because we do not 20675 # link with -lc, and that would cause any symbols used from libc to 20676 # always be unresolved, which means just about no library would 20677 # ever link correctly. If we're not using GNU ld we use -z text 20678 # though, which does catch some bad symbols but isn't as heavy-handed 20679 # as -z defs. 20680 no_undefined_flag_CXX='${wl}-z,text' 20681 allow_undefined_flag_CXX='${wl}-z,nodefs' 20682 archive_cmds_need_lc_CXX=no 20683 hardcode_shlibpath_var_CXX=no 20684 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 20685 hardcode_libdir_separator_CXX=':' 20686 link_all_deplibs_CXX=yes 20687 export_dynamic_flag_spec_CXX='${wl}-Bexport' 20688 runpath_var='LD_RUN_PATH' 20689 20690 case $cc_basename in 20691 CC*) 20692 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20693 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20694 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 20695 '"$old_archive_cmds_CXX" 20696 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 20697 '"$reload_cmds_CXX" 20698 ;; 20699 *) 20700 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20701 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20702 ;; 20703 esac 20704 ;; 20705 20706 tandem*) 20707 case $cc_basename in 20708 NCC*) 20709 # NonStop-UX NCC 3.20 20710 # FIXME: insert proper C++ library support 20711 ld_shlibs_CXX=no 20712 ;; 20713 *) 20714 # FIXME: insert proper C++ library support 20715 ld_shlibs_CXX=no 20716 ;; 20717 esac 20718 ;; 20719 20720 vxworks*) 20721 # FIXME: insert proper C++ library support 20722 ld_shlibs_CXX=no 20723 ;; 20724 20725 *) 20726 # FIXME: insert proper C++ library support 20727 ld_shlibs_CXX=no 20728 ;; 20729 esac 20730 20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 20732$as_echo "$ld_shlibs_CXX" >&6; } 20733 test "$ld_shlibs_CXX" = no && can_build_shared=no 20734 20735 GCC_CXX="$GXX" 20736 LD_CXX="$LD" 20737 20738 ## CAVEAT EMPTOR: 20739 ## There is no encapsulation within the following macros, do not change 20740 ## the running order or otherwise move them around unless you know exactly 20741 ## what you are doing... 20742 # Dependencies to place before and after the object being linked: 20743predep_objects_CXX= 20744postdep_objects_CXX= 20745predeps_CXX= 20746postdeps_CXX= 20747compiler_lib_search_path_CXX= 20748 20749cat > conftest.$ac_ext <<_LT_EOF 20750class Foo 20751{ 20752public: 20753 Foo (void) { a = 0; } 20754private: 20755 int a; 20756}; 20757_LT_EOF 20758 20759if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20760 (eval $ac_compile) 2>&5 20761 ac_status=$? 20762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20763 test $ac_status = 0; }; then 20764 # Parse the compiler output and extract the necessary 20765 # objects, libraries and library flags. 20766 20767 # Sentinel used to keep track of whether or not we are before 20768 # the conftest object file. 20769 pre_test_object_deps_done=no 20770 20771 for p in `eval "$output_verbose_link_cmd"`; do 20772 case $p in 20773 20774 -L* | -R* | -l*) 20775 # Some compilers place space between "-{L,R}" and the path. 20776 # Remove the space. 20777 if test $p = "-L" || 20778 test $p = "-R"; then 20779 prev=$p 20780 continue 20781 else 20782 prev= 20783 fi 20784 20785 if test "$pre_test_object_deps_done" = no; then 20786 case $p in 20787 -L* | -R*) 20788 # Internal compiler library paths should come after those 20789 # provided the user. The postdeps already come after the 20790 # user supplied libs so there is no need to process them. 20791 if test -z "$compiler_lib_search_path_CXX"; then 20792 compiler_lib_search_path_CXX="${prev}${p}" 20793 else 20794 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 20795 fi 20796 ;; 20797 # The "-l" case would never come before the object being 20798 # linked, so don't bother handling this case. 20799 esac 20800 else 20801 if test -z "$postdeps_CXX"; then 20802 postdeps_CXX="${prev}${p}" 20803 else 20804 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 20805 fi 20806 fi 20807 ;; 20808 20809 *.$objext) 20810 # This assumes that the test object file only shows up 20811 # once in the compiler output. 20812 if test "$p" = "conftest.$objext"; then 20813 pre_test_object_deps_done=yes 20814 continue 20815 fi 20816 20817 if test "$pre_test_object_deps_done" = no; then 20818 if test -z "$predep_objects_CXX"; then 20819 predep_objects_CXX="$p" 20820 else 20821 predep_objects_CXX="$predep_objects_CXX $p" 20822 fi 20823 else 20824 if test -z "$postdep_objects_CXX"; then 20825 postdep_objects_CXX="$p" 20826 else 20827 postdep_objects_CXX="$postdep_objects_CXX $p" 20828 fi 20829 fi 20830 ;; 20831 20832 *) ;; # Ignore the rest. 20833 20834 esac 20835 done 20836 20837 # Clean up. 20838 rm -f a.out a.exe 20839else 20840 echo "libtool.m4: error: problem compiling CXX test program" 20841fi 20842 20843$RM -f confest.$objext 20844 20845# PORTME: override above test on systems where it is broken 20846case $host_os in 20847interix[3-9]*) 20848 # Interix 3.5 installs completely hosed .la files for C++, so rather than 20849 # hack all around it, let's just trust "g++" to DTRT. 20850 predep_objects_CXX= 20851 postdep_objects_CXX= 20852 postdeps_CXX= 20853 ;; 20854 20855linux*) 20856 case `$CC -V 2>&1 | sed 5q` in 20857 *Sun\ C*) 20858 # Sun C++ 5.9 20859 20860 # The more standards-conforming stlport4 library is 20861 # incompatible with the Cstd library. Avoid specifying 20862 # it if it's in CXXFLAGS. Ignore libCrun as 20863 # -library=stlport4 depends on it. 20864 case " $CXX $CXXFLAGS " in 20865 *" -library=stlport4 "*) 20866 solaris_use_stlport4=yes 20867 ;; 20868 esac 20869 20870 if test "$solaris_use_stlport4" != yes; then 20871 postdeps_CXX='-library=Cstd -library=Crun' 20872 fi 20873 ;; 20874 esac 20875 ;; 20876 20877solaris*) 20878 case $cc_basename in 20879 CC*) 20880 # The more standards-conforming stlport4 library is 20881 # incompatible with the Cstd library. Avoid specifying 20882 # it if it's in CXXFLAGS. Ignore libCrun as 20883 # -library=stlport4 depends on it. 20884 case " $CXX $CXXFLAGS " in 20885 *" -library=stlport4 "*) 20886 solaris_use_stlport4=yes 20887 ;; 20888 esac 20889 20890 # Adding this requires a known-good setup of shared libraries for 20891 # Sun compiler versions before 5.6, else PIC objects from an old 20892 # archive will be linked into the output, leading to subtle bugs. 20893 if test "$solaris_use_stlport4" != yes; then 20894 postdeps_CXX='-library=Cstd -library=Crun' 20895 fi 20896 ;; 20897 esac 20898 ;; 20899esac 20900 20901 20902case " $postdeps_CXX " in 20903*" -lc "*) archive_cmds_need_lc_CXX=no ;; 20904esac 20905 compiler_lib_search_dirs_CXX= 20906if test -n "${compiler_lib_search_path_CXX}"; then 20907 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 20908fi 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 lt_prog_compiler_wl_CXX= 20941lt_prog_compiler_pic_CXX= 20942lt_prog_compiler_static_CXX= 20943 20944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 20945$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 20946 20947 # C++ specific cases for pic, static, wl, etc. 20948 if test "$GXX" = yes; then 20949 lt_prog_compiler_wl_CXX='-Wl,' 20950 lt_prog_compiler_static_CXX='-static' 20951 20952 case $host_os in 20953 aix*) 20954 # All AIX code is PIC. 20955 if test "$host_cpu" = ia64; then 20956 # AIX 5 now supports IA64 processor 20957 lt_prog_compiler_static_CXX='-Bstatic' 20958 fi 20959 lt_prog_compiler_pic_CXX='-fPIC' 20960 ;; 20961 20962 amigaos*) 20963 case $host_cpu in 20964 powerpc) 20965 # see comment about AmigaOS4 .so support 20966 lt_prog_compiler_pic_CXX='-fPIC' 20967 ;; 20968 m68k) 20969 # FIXME: we need at least 68020 code to build shared libraries, but 20970 # adding the `-m68020' flag to GCC prevents building anything better, 20971 # like `-m68040'. 20972 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 20973 ;; 20974 esac 20975 ;; 20976 20977 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 20978 # PIC is the default for these OSes. 20979 ;; 20980 mingw* | cygwin* | os2* | pw32* | cegcc*) 20981 # This hack is so that the source file can tell whether it is being 20982 # built for inclusion in a dll (and should export symbols for example). 20983 # Although the cygwin gcc ignores -fPIC, still need this for old-style 20984 # (--disable-auto-import) libraries 20985 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20986 ;; 20987 darwin* | rhapsody*) 20988 # PIC is the default on this platform 20989 # Common symbols not allowed in MH_DYLIB files 20990 lt_prog_compiler_pic_CXX='-fno-common' 20991 ;; 20992 *djgpp*) 20993 # DJGPP does not support shared libraries at all 20994 lt_prog_compiler_pic_CXX= 20995 ;; 20996 haiku*) 20997 # PIC is the default for Haiku. 20998 # The "-static" flag exists, but is broken. 20999 lt_prog_compiler_static_CXX= 21000 ;; 21001 interix[3-9]*) 21002 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 21003 # Instead, we relocate shared libraries at runtime. 21004 ;; 21005 sysv4*MP*) 21006 if test -d /usr/nec; then 21007 lt_prog_compiler_pic_CXX=-Kconform_pic 21008 fi 21009 ;; 21010 hpux*) 21011 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 21012 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 21013 # sets the default TLS model and affects inlining. 21014 case $host_cpu in 21015 hppa*64*) 21016 ;; 21017 *) 21018 lt_prog_compiler_pic_CXX='-fPIC' 21019 ;; 21020 esac 21021 ;; 21022 *qnx* | *nto*) 21023 # QNX uses GNU C++, but need to define -shared option too, otherwise 21024 # it will coredump. 21025 lt_prog_compiler_pic_CXX='-fPIC -shared' 21026 ;; 21027 *) 21028 lt_prog_compiler_pic_CXX='-fPIC' 21029 ;; 21030 esac 21031 else 21032 case $host_os in 21033 aix[4-9]*) 21034 # All AIX code is PIC. 21035 if test "$host_cpu" = ia64; then 21036 # AIX 5 now supports IA64 processor 21037 lt_prog_compiler_static_CXX='-Bstatic' 21038 else 21039 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 21040 fi 21041 ;; 21042 chorus*) 21043 case $cc_basename in 21044 cxch68*) 21045 # Green Hills C++ Compiler 21046 # _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" 21047 ;; 21048 esac 21049 ;; 21050 dgux*) 21051 case $cc_basename in 21052 ec++*) 21053 lt_prog_compiler_pic_CXX='-KPIC' 21054 ;; 21055 ghcx*) 21056 # Green Hills C++ Compiler 21057 lt_prog_compiler_pic_CXX='-pic' 21058 ;; 21059 *) 21060 ;; 21061 esac 21062 ;; 21063 freebsd* | dragonfly*) 21064 # FreeBSD uses GNU C++ 21065 ;; 21066 hpux9* | hpux10* | hpux11*) 21067 case $cc_basename in 21068 CC*) 21069 lt_prog_compiler_wl_CXX='-Wl,' 21070 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 21071 if test "$host_cpu" != ia64; then 21072 lt_prog_compiler_pic_CXX='+Z' 21073 fi 21074 ;; 21075 aCC*) 21076 lt_prog_compiler_wl_CXX='-Wl,' 21077 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 21078 case $host_cpu in 21079 hppa*64*|ia64*) 21080 # +Z the default 21081 ;; 21082 *) 21083 lt_prog_compiler_pic_CXX='+Z' 21084 ;; 21085 esac 21086 ;; 21087 *) 21088 ;; 21089 esac 21090 ;; 21091 interix*) 21092 # This is c89, which is MS Visual C++ (no shared libs) 21093 # Anyone wants to do a port? 21094 ;; 21095 irix5* | irix6* | nonstopux*) 21096 case $cc_basename in 21097 CC*) 21098 lt_prog_compiler_wl_CXX='-Wl,' 21099 lt_prog_compiler_static_CXX='-non_shared' 21100 # CC pic flag -KPIC is the default. 21101 ;; 21102 *) 21103 ;; 21104 esac 21105 ;; 21106 linux* | k*bsd*-gnu | kopensolaris*-gnu) 21107 case $cc_basename in 21108 KCC*) 21109 # KAI C++ Compiler 21110 lt_prog_compiler_wl_CXX='--backend -Wl,' 21111 lt_prog_compiler_pic_CXX='-fPIC' 21112 ;; 21113 ecpc* ) 21114 # old Intel C++ for x86_64 which still supported -KPIC. 21115 lt_prog_compiler_wl_CXX='-Wl,' 21116 lt_prog_compiler_pic_CXX='-KPIC' 21117 lt_prog_compiler_static_CXX='-static' 21118 ;; 21119 icpc* ) 21120 # Intel C++, used to be incompatible with GCC. 21121 # ICC 10 doesn't accept -KPIC any more. 21122 lt_prog_compiler_wl_CXX='-Wl,' 21123 lt_prog_compiler_pic_CXX='-fPIC' 21124 lt_prog_compiler_static_CXX='-static' 21125 ;; 21126 pgCC* | pgcpp*) 21127 # Portland Group C++ compiler 21128 lt_prog_compiler_wl_CXX='-Wl,' 21129 lt_prog_compiler_pic_CXX='-fpic' 21130 lt_prog_compiler_static_CXX='-Bstatic' 21131 ;; 21132 cxx*) 21133 # Compaq C++ 21134 # Make sure the PIC flag is empty. It appears that all Alpha 21135 # Linux and Compaq Tru64 Unix objects are PIC. 21136 lt_prog_compiler_pic_CXX= 21137 lt_prog_compiler_static_CXX='-non_shared' 21138 ;; 21139 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 21140 # IBM XL 8.0, 9.0 on PPC and BlueGene 21141 lt_prog_compiler_wl_CXX='-Wl,' 21142 lt_prog_compiler_pic_CXX='-qpic' 21143 lt_prog_compiler_static_CXX='-qstaticlink' 21144 ;; 21145 *) 21146 case `$CC -V 2>&1 | sed 5q` in 21147 *Sun\ C*) 21148 # Sun C++ 5.9 21149 lt_prog_compiler_pic_CXX='-KPIC' 21150 lt_prog_compiler_static_CXX='-Bstatic' 21151 lt_prog_compiler_wl_CXX='-Qoption ld ' 21152 ;; 21153 esac 21154 ;; 21155 esac 21156 ;; 21157 lynxos*) 21158 ;; 21159 m88k*) 21160 ;; 21161 mvs*) 21162 case $cc_basename in 21163 cxx*) 21164 lt_prog_compiler_pic_CXX='-W c,exportall' 21165 ;; 21166 *) 21167 ;; 21168 esac 21169 ;; 21170 netbsd*) 21171 ;; 21172 *qnx* | *nto*) 21173 # QNX uses GNU C++, but need to define -shared option too, otherwise 21174 # it will coredump. 21175 lt_prog_compiler_pic_CXX='-fPIC -shared' 21176 ;; 21177 osf3* | osf4* | osf5*) 21178 case $cc_basename in 21179 KCC*) 21180 lt_prog_compiler_wl_CXX='--backend -Wl,' 21181 ;; 21182 RCC*) 21183 # Rational C++ 2.4.1 21184 lt_prog_compiler_pic_CXX='-pic' 21185 ;; 21186 cxx*) 21187 # Digital/Compaq C++ 21188 lt_prog_compiler_wl_CXX='-Wl,' 21189 # Make sure the PIC flag is empty. It appears that all Alpha 21190 # Linux and Compaq Tru64 Unix objects are PIC. 21191 lt_prog_compiler_pic_CXX= 21192 lt_prog_compiler_static_CXX='-non_shared' 21193 ;; 21194 *) 21195 ;; 21196 esac 21197 ;; 21198 psos*) 21199 ;; 21200 solaris*) 21201 case $cc_basename in 21202 CC*) 21203 # Sun C++ 4.2, 5.x and Centerline C++ 21204 lt_prog_compiler_pic_CXX='-KPIC' 21205 lt_prog_compiler_static_CXX='-Bstatic' 21206 lt_prog_compiler_wl_CXX='-Qoption ld ' 21207 ;; 21208 gcx*) 21209 # Green Hills C++ Compiler 21210 lt_prog_compiler_pic_CXX='-PIC' 21211 ;; 21212 *) 21213 ;; 21214 esac 21215 ;; 21216 sunos4*) 21217 case $cc_basename in 21218 CC*) 21219 # Sun C++ 4.x 21220 lt_prog_compiler_pic_CXX='-pic' 21221 lt_prog_compiler_static_CXX='-Bstatic' 21222 ;; 21223 lcc*) 21224 # Lucid 21225 lt_prog_compiler_pic_CXX='-pic' 21226 ;; 21227 *) 21228 ;; 21229 esac 21230 ;; 21231 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21232 case $cc_basename in 21233 CC*) 21234 lt_prog_compiler_wl_CXX='-Wl,' 21235 lt_prog_compiler_pic_CXX='-KPIC' 21236 lt_prog_compiler_static_CXX='-Bstatic' 21237 ;; 21238 esac 21239 ;; 21240 tandem*) 21241 case $cc_basename in 21242 NCC*) 21243 # NonStop-UX NCC 3.20 21244 lt_prog_compiler_pic_CXX='-KPIC' 21245 ;; 21246 *) 21247 ;; 21248 esac 21249 ;; 21250 vxworks*) 21251 ;; 21252 *) 21253 lt_prog_compiler_can_build_shared_CXX=no 21254 ;; 21255 esac 21256 fi 21257 21258case $host_os in 21259 # For platforms which do not support PIC, -DPIC is meaningless: 21260 *djgpp*) 21261 lt_prog_compiler_pic_CXX= 21262 ;; 21263 *) 21264 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 21265 ;; 21266esac 21267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 21268$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 21269 21270 21271 21272# 21273# Check to make sure the PIC flag actually works. 21274# 21275if test -n "$lt_prog_compiler_pic_CXX"; then 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 21277$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 21278if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 21279 $as_echo_n "(cached) " >&6 21280else 21281 lt_cv_prog_compiler_pic_works_CXX=no 21282 ac_outfile=conftest.$ac_objext 21283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21284 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 21285 # Insert the option either (1) after the last *FLAGS variable, or 21286 # (2) before a word containing "conftest.", or (3) at the end. 21287 # Note that $ac_compile itself does not contain backslashes and begins 21288 # with a dollar sign (not a hyphen), so the echo should work correctly. 21289 # The option is referenced via a variable to avoid confusing sed. 21290 lt_compile=`echo "$ac_compile" | $SED \ 21291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21293 -e 's:$: $lt_compiler_flag:'` 21294 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21295 (eval "$lt_compile" 2>conftest.err) 21296 ac_status=$? 21297 cat conftest.err >&5 21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21299 if (exit $ac_status) && test -s "$ac_outfile"; then 21300 # The compiler can only warn and ignore the option if not recognized 21301 # So say no if there are warnings other than the usual output. 21302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 21303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 21305 lt_cv_prog_compiler_pic_works_CXX=yes 21306 fi 21307 fi 21308 $RM conftest* 21309 21310fi 21311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 21312$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 21313 21314if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 21315 case $lt_prog_compiler_pic_CXX in 21316 "" | " "*) ;; 21317 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 21318 esac 21319else 21320 lt_prog_compiler_pic_CXX= 21321 lt_prog_compiler_can_build_shared_CXX=no 21322fi 21323 21324fi 21325 21326 21327 21328# 21329# Check to make sure the static flag actually works. 21330# 21331wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 21332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21333$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 21334if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 21335 $as_echo_n "(cached) " >&6 21336else 21337 lt_cv_prog_compiler_static_works_CXX=no 21338 save_LDFLAGS="$LDFLAGS" 21339 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21340 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21342 # The linker can only warn and ignore the option if not recognized 21343 # So say no if there are warnings 21344 if test -s conftest.err; then 21345 # Append any errors to the config.log. 21346 cat conftest.err 1>&5 21347 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 21348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21349 if diff conftest.exp conftest.er2 >/dev/null; then 21350 lt_cv_prog_compiler_static_works_CXX=yes 21351 fi 21352 else 21353 lt_cv_prog_compiler_static_works_CXX=yes 21354 fi 21355 fi 21356 $RM -r conftest* 21357 LDFLAGS="$save_LDFLAGS" 21358 21359fi 21360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 21361$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 21362 21363if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 21364 : 21365else 21366 lt_prog_compiler_static_CXX= 21367fi 21368 21369 21370 21371 21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21374if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21375 $as_echo_n "(cached) " >&6 21376else 21377 lt_cv_prog_compiler_c_o_CXX=no 21378 $RM -r conftest 2>/dev/null 21379 mkdir conftest 21380 cd conftest 21381 mkdir out 21382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21383 21384 lt_compiler_flag="-o out/conftest2.$ac_objext" 21385 # Insert the option either (1) after the last *FLAGS variable, or 21386 # (2) before a word containing "conftest.", or (3) at the end. 21387 # Note that $ac_compile itself does not contain backslashes and begins 21388 # with a dollar sign (not a hyphen), so the echo should work correctly. 21389 lt_compile=`echo "$ac_compile" | $SED \ 21390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21392 -e 's:$: $lt_compiler_flag:'` 21393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21394 (eval "$lt_compile" 2>out/conftest.err) 21395 ac_status=$? 21396 cat out/conftest.err >&5 21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21398 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21399 then 21400 # The compiler can only warn and ignore the option if not recognized 21401 # So say no if there are warnings 21402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21405 lt_cv_prog_compiler_c_o_CXX=yes 21406 fi 21407 fi 21408 chmod u+w . 2>&5 21409 $RM conftest* 21410 # SGI C++ compiler will create directory out/ii_files/ for 21411 # template instantiation 21412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21413 $RM out/* && rmdir out 21414 cd .. 21415 $RM -r conftest 21416 $RM conftest* 21417 21418fi 21419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21420$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21421 21422 21423 21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21425$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21426if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21427 $as_echo_n "(cached) " >&6 21428else 21429 lt_cv_prog_compiler_c_o_CXX=no 21430 $RM -r conftest 2>/dev/null 21431 mkdir conftest 21432 cd conftest 21433 mkdir out 21434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21435 21436 lt_compiler_flag="-o out/conftest2.$ac_objext" 21437 # Insert the option either (1) after the last *FLAGS variable, or 21438 # (2) before a word containing "conftest.", or (3) at the end. 21439 # Note that $ac_compile itself does not contain backslashes and begins 21440 # with a dollar sign (not a hyphen), so the echo should work correctly. 21441 lt_compile=`echo "$ac_compile" | $SED \ 21442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21444 -e 's:$: $lt_compiler_flag:'` 21445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21446 (eval "$lt_compile" 2>out/conftest.err) 21447 ac_status=$? 21448 cat out/conftest.err >&5 21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21450 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21451 then 21452 # The compiler can only warn and ignore the option if not recognized 21453 # So say no if there are warnings 21454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21457 lt_cv_prog_compiler_c_o_CXX=yes 21458 fi 21459 fi 21460 chmod u+w . 2>&5 21461 $RM conftest* 21462 # SGI C++ compiler will create directory out/ii_files/ for 21463 # template instantiation 21464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21465 $RM out/* && rmdir out 21466 cd .. 21467 $RM -r conftest 21468 $RM conftest* 21469 21470fi 21471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21472$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21473 21474 21475 21476 21477hard_links="nottested" 21478if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 21479 # do not overwrite the value of need_locks provided by the user 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 21481$as_echo_n "checking if we can lock with hard links... " >&6; } 21482 hard_links=yes 21483 $RM conftest* 21484 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21485 touch conftest.a 21486 ln conftest.a conftest.b 2>&5 || hard_links=no 21487 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 21489$as_echo "$hard_links" >&6; } 21490 if test "$hard_links" = no; then 21491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 21492$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 21493 need_locks=warn 21494 fi 21495else 21496 need_locks=no 21497fi 21498 21499 21500 21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21502$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 21503 21504 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21505 case $host_os in 21506 aix[4-9]*) 21507 # If we're using GNU nm, then we don't want the "-C" option. 21508 # -C means demangle to AIX nm, but means don't demangle with GNU nm 21509 # Also, AIX nm treats weak defined symbols like other global defined 21510 # symbols, whereas GNU nm marks them as "W". 21511 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 21512 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' 21513 else 21514 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' 21515 fi 21516 ;; 21517 pw32*) 21518 export_symbols_cmds_CXX="$ltdll_cmds" 21519 ;; 21520 cygwin* | mingw* | cegcc*) 21521 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' 21522 ;; 21523 *) 21524 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21525 ;; 21526 esac 21527 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 21528 21529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21530$as_echo "$ld_shlibs_CXX" >&6; } 21531test "$ld_shlibs_CXX" = no && can_build_shared=no 21532 21533with_gnu_ld_CXX=$with_gnu_ld 21534 21535 21536 21537 21538 21539 21540# 21541# Do we need to explicitly link libc? 21542# 21543case "x$archive_cmds_need_lc_CXX" in 21544x|xyes) 21545 # Assume -lc should be added 21546 archive_cmds_need_lc_CXX=yes 21547 21548 if test "$enable_shared" = yes && test "$GCC" = yes; then 21549 case $archive_cmds_CXX in 21550 *'~'*) 21551 # FIXME: we may have to deal with multi-command sequences. 21552 ;; 21553 '$CC '*) 21554 # Test whether the compiler implicitly links with -lc since on some 21555 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21556 # to ld, don't add -lc before -lgcc. 21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 21558$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 21559if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 21560 $as_echo_n "(cached) " >&6 21561else 21562 $RM conftest* 21563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21564 21565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21566 (eval $ac_compile) 2>&5 21567 ac_status=$? 21568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21569 test $ac_status = 0; } 2>conftest.err; then 21570 soname=conftest 21571 lib=conftest 21572 libobjs=conftest.$ac_objext 21573 deplibs= 21574 wl=$lt_prog_compiler_wl_CXX 21575 pic_flag=$lt_prog_compiler_pic_CXX 21576 compiler_flags=-v 21577 linker_flags=-v 21578 verstring= 21579 output_objdir=. 21580 libname=conftest 21581 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 21582 allow_undefined_flag_CXX= 21583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21584 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21585 ac_status=$? 21586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21587 test $ac_status = 0; } 21588 then 21589 lt_cv_archive_cmds_need_lc_CXX=no 21590 else 21591 lt_cv_archive_cmds_need_lc_CXX=yes 21592 fi 21593 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 21594 else 21595 cat conftest.err 1>&5 21596 fi 21597 $RM conftest* 21598 21599fi 21600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 21601$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 21602 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 21603 ;; 21604 esac 21605 fi 21606 ;; 21607esac 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21673$as_echo_n "checking dynamic linker characteristics... " >&6; } 21674 21675library_names_spec= 21676libname_spec='lib$name' 21677soname_spec= 21678shrext_cmds=".so" 21679postinstall_cmds= 21680postuninstall_cmds= 21681finish_cmds= 21682finish_eval= 21683shlibpath_var= 21684shlibpath_overrides_runpath=unknown 21685version_type=none 21686dynamic_linker="$host_os ld.so" 21687sys_lib_dlsearch_path_spec="/lib /usr/lib" 21688need_lib_prefix=unknown 21689hardcode_into_libs=no 21690 21691# when you set need_version to no, make sure it does not cause -set_version 21692# flags to be left without arguments 21693need_version=unknown 21694 21695case $host_os in 21696aix3*) 21697 version_type=linux 21698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21699 shlibpath_var=LIBPATH 21700 21701 # AIX 3 has no versioning support, so we append a major version to the name. 21702 soname_spec='${libname}${release}${shared_ext}$major' 21703 ;; 21704 21705aix[4-9]*) 21706 version_type=linux 21707 need_lib_prefix=no 21708 need_version=no 21709 hardcode_into_libs=yes 21710 if test "$host_cpu" = ia64; then 21711 # AIX 5 supports IA64 21712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 21713 shlibpath_var=LD_LIBRARY_PATH 21714 else 21715 # With GCC up to 2.95.x, collect2 would create an import file 21716 # for dependence libraries. The import file would start with 21717 # the line `#! .'. This would cause the generated library to 21718 # depend on `.', always an invalid library. This was fixed in 21719 # development snapshots of GCC prior to 3.0. 21720 case $host_os in 21721 aix4 | aix4.[01] | aix4.[01].*) 21722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21723 echo ' yes ' 21724 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 21725 : 21726 else 21727 can_build_shared=no 21728 fi 21729 ;; 21730 esac 21731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21732 # soname into executable. Probably we can add versioning support to 21733 # collect2, so additional links can be useful in future. 21734 if test "$aix_use_runtimelinking" = yes; then 21735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21736 # instead of lib<name>.a to let people know that these are not 21737 # typical AIX shared libraries. 21738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21739 else 21740 # We preserve .a as extension for shared libraries through AIX4.2 21741 # and later when we are not doing run time linking. 21742 library_names_spec='${libname}${release}.a $libname.a' 21743 soname_spec='${libname}${release}${shared_ext}$major' 21744 fi 21745 shlibpath_var=LIBPATH 21746 fi 21747 ;; 21748 21749amigaos*) 21750 case $host_cpu in 21751 powerpc) 21752 # Since July 2007 AmigaOS4 officially supports .so libraries. 21753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21755 ;; 21756 m68k) 21757 library_names_spec='$libname.ixlibrary $libname.a' 21758 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21759 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' 21760 ;; 21761 esac 21762 ;; 21763 21764beos*) 21765 library_names_spec='${libname}${shared_ext}' 21766 dynamic_linker="$host_os ld.so" 21767 shlibpath_var=LIBRARY_PATH 21768 ;; 21769 21770bsdi[45]*) 21771 version_type=linux 21772 need_version=no 21773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21774 soname_spec='${libname}${release}${shared_ext}$major' 21775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21776 shlibpath_var=LD_LIBRARY_PATH 21777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21779 # the default ld.so.conf also contains /usr/contrib/lib and 21780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21781 # libtool to hard-code these into programs 21782 ;; 21783 21784cygwin* | mingw* | pw32* | cegcc*) 21785 version_type=windows 21786 shrext_cmds=".dll" 21787 need_version=no 21788 need_lib_prefix=no 21789 21790 case $GCC,$host_os in 21791 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 21792 library_names_spec='$libname.dll.a' 21793 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21794 postinstall_cmds='base_file=`basename \${file}`~ 21795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21796 dldir=$destdir/`dirname \$dlpath`~ 21797 test -d \$dldir || mkdir -p \$dldir~ 21798 $install_prog $dir/$dlname \$dldir/$dlname~ 21799 chmod a+x \$dldir/$dlname~ 21800 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21801 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21802 fi' 21803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21804 dlpath=$dir/\$dldll~ 21805 $RM \$dlpath' 21806 shlibpath_overrides_runpath=yes 21807 21808 case $host_os in 21809 cygwin*) 21810 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21812 21813 ;; 21814 mingw* | cegcc*) 21815 # MinGW DLLs use traditional 'lib' prefix 21816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21817 ;; 21818 pw32*) 21819 # pw32 DLLs use 'pw' prefix rather than 'lib' 21820 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21821 ;; 21822 esac 21823 ;; 21824 21825 *) 21826 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 21827 ;; 21828 esac 21829 dynamic_linker='Win32 ld.exe' 21830 # FIXME: first we should search . and the directory the executable is in 21831 shlibpath_var=PATH 21832 ;; 21833 21834darwin* | rhapsody*) 21835 dynamic_linker="$host_os dyld" 21836 version_type=darwin 21837 need_lib_prefix=no 21838 need_version=no 21839 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 21840 soname_spec='${libname}${release}${major}$shared_ext' 21841 shlibpath_overrides_runpath=yes 21842 shlibpath_var=DYLD_LIBRARY_PATH 21843 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21844 21845 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21846 ;; 21847 21848dgux*) 21849 version_type=linux 21850 need_lib_prefix=no 21851 need_version=no 21852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 21853 soname_spec='${libname}${release}${shared_ext}$major' 21854 shlibpath_var=LD_LIBRARY_PATH 21855 ;; 21856 21857freebsd* | dragonfly*) 21858 # DragonFly does not have aout. When/if they implement a new 21859 # versioning mechanism, adjust this. 21860 if test -x /usr/bin/objformat; then 21861 objformat=`/usr/bin/objformat` 21862 else 21863 case $host_os in 21864 freebsd[23].*) objformat=aout ;; 21865 *) objformat=elf ;; 21866 esac 21867 fi 21868 version_type=freebsd-$objformat 21869 case $version_type in 21870 freebsd-elf*) 21871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21872 need_version=no 21873 need_lib_prefix=no 21874 ;; 21875 freebsd-*) 21876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 21877 need_version=yes 21878 ;; 21879 esac 21880 shlibpath_var=LD_LIBRARY_PATH 21881 case $host_os in 21882 freebsd2.*) 21883 shlibpath_overrides_runpath=yes 21884 ;; 21885 freebsd3.[01]* | freebsdelf3.[01]*) 21886 shlibpath_overrides_runpath=yes 21887 hardcode_into_libs=yes 21888 ;; 21889 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21890 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21891 shlibpath_overrides_runpath=no 21892 hardcode_into_libs=yes 21893 ;; 21894 *) # from 4.6 on, and DragonFly 21895 shlibpath_overrides_runpath=yes 21896 hardcode_into_libs=yes 21897 ;; 21898 esac 21899 ;; 21900 21901gnu*) 21902 version_type=linux 21903 need_lib_prefix=no 21904 need_version=no 21905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21906 soname_spec='${libname}${release}${shared_ext}$major' 21907 shlibpath_var=LD_LIBRARY_PATH 21908 hardcode_into_libs=yes 21909 ;; 21910 21911haiku*) 21912 version_type=linux 21913 need_lib_prefix=no 21914 need_version=no 21915 dynamic_linker="$host_os runtime_loader" 21916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21917 soname_spec='${libname}${release}${shared_ext}$major' 21918 shlibpath_var=LIBRARY_PATH 21919 shlibpath_overrides_runpath=yes 21920 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 21921 hardcode_into_libs=yes 21922 ;; 21923 21924hpux9* | hpux10* | hpux11*) 21925 # Give a soname corresponding to the major version so that dld.sl refuses to 21926 # link against other versions. 21927 version_type=sunos 21928 need_lib_prefix=no 21929 need_version=no 21930 case $host_cpu in 21931 ia64*) 21932 shrext_cmds='.so' 21933 hardcode_into_libs=yes 21934 dynamic_linker="$host_os dld.so" 21935 shlibpath_var=LD_LIBRARY_PATH 21936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21938 soname_spec='${libname}${release}${shared_ext}$major' 21939 if test "X$HPUX_IA64_MODE" = X32; then 21940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21941 else 21942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21943 fi 21944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21945 ;; 21946 hppa*64*) 21947 shrext_cmds='.sl' 21948 hardcode_into_libs=yes 21949 dynamic_linker="$host_os dld.sl" 21950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21953 soname_spec='${libname}${release}${shared_ext}$major' 21954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21956 ;; 21957 *) 21958 shrext_cmds='.sl' 21959 dynamic_linker="$host_os dld.sl" 21960 shlibpath_var=SHLIB_PATH 21961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21963 soname_spec='${libname}${release}${shared_ext}$major' 21964 ;; 21965 esac 21966 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21967 postinstall_cmds='chmod 555 $lib' 21968 # or fails outright, so override atomically: 21969 install_override_mode=555 21970 ;; 21971 21972interix[3-9]*) 21973 version_type=linux 21974 need_lib_prefix=no 21975 need_version=no 21976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21977 soname_spec='${libname}${release}${shared_ext}$major' 21978 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21979 shlibpath_var=LD_LIBRARY_PATH 21980 shlibpath_overrides_runpath=no 21981 hardcode_into_libs=yes 21982 ;; 21983 21984irix5* | irix6* | nonstopux*) 21985 case $host_os in 21986 nonstopux*) version_type=nonstopux ;; 21987 *) 21988 if test "$lt_cv_prog_gnu_ld" = yes; then 21989 version_type=linux 21990 else 21991 version_type=irix 21992 fi ;; 21993 esac 21994 need_lib_prefix=no 21995 need_version=no 21996 soname_spec='${libname}${release}${shared_ext}$major' 21997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 21998 case $host_os in 21999 irix5* | nonstopux*) 22000 libsuff= shlibsuff= 22001 ;; 22002 *) 22003 case $LD in # libtool.m4 will add one of these switches to LD 22004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22005 libsuff= shlibsuff= libmagic=32-bit;; 22006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22007 libsuff=32 shlibsuff=N32 libmagic=N32;; 22008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22009 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22010 *) libsuff= shlibsuff= libmagic=never-match;; 22011 esac 22012 ;; 22013 esac 22014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22015 shlibpath_overrides_runpath=no 22016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 22017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 22018 hardcode_into_libs=yes 22019 ;; 22020 22021# No shared lib support for Linux oldld, aout, or coff. 22022linux*oldld* | linux*aout* | linux*coff*) 22023 dynamic_linker=no 22024 ;; 22025 22026# This must be Linux ELF. 22027 22028# uclinux* changes (here and below) have been submitted to the libtool 22029# project, but have not yet been accepted: they are GCC-local changes 22030# for the time being. (See 22031# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 22032linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 22033 version_type=linux 22034 need_lib_prefix=no 22035 need_version=no 22036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22037 soname_spec='${libname}${release}${shared_ext}$major' 22038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22039 shlibpath_var=LD_LIBRARY_PATH 22040 shlibpath_overrides_runpath=no 22041 22042 # Some binutils ld are patched to set DT_RUNPATH 22043 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 22044 $as_echo_n "(cached) " >&6 22045else 22046 lt_cv_shlibpath_overrides_runpath=no 22047 save_LDFLAGS=$LDFLAGS 22048 save_libdir=$libdir 22049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 22050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22052/* end confdefs.h. */ 22053 22054int 22055main () 22056{ 22057 22058 ; 22059 return 0; 22060} 22061_ACEOF 22062if ac_fn_cxx_try_link "$LINENO"; then : 22063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 22064 lt_cv_shlibpath_overrides_runpath=yes 22065fi 22066fi 22067rm -f core conftest.err conftest.$ac_objext \ 22068 conftest$ac_exeext conftest.$ac_ext 22069 LDFLAGS=$save_LDFLAGS 22070 libdir=$save_libdir 22071 22072fi 22073 22074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 22075 22076 # This implies no fast_install, which is unacceptable. 22077 # Some rework will be needed to allow for fast_install 22078 # before this can be enabled. 22079 hardcode_into_libs=yes 22080 22081 # Append ld.so.conf contents to the search path 22082 if test -f /etc/ld.so.conf; then 22083 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' ' '` 22084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22085 fi 22086 22087 # We used to test for /lib/ld.so.1 and disable shared libraries on 22088 # powerpc, because MkLinux only supported shared libraries with the 22089 # GNU dynamic linker. Since this was broken with cross compilers, 22090 # most powerpc-linux boxes support dynamic linking these days and 22091 # people can always --disable-shared, the test was removed, and we 22092 # assume the GNU/Linux dynamic linker is in use. 22093 dynamic_linker='GNU/Linux ld.so' 22094 ;; 22095 22096netbsd*) 22097 version_type=sunos 22098 need_lib_prefix=no 22099 need_version=no 22100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22103 dynamic_linker='NetBSD (a.out) ld.so' 22104 else 22105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22106 soname_spec='${libname}${release}${shared_ext}$major' 22107 dynamic_linker='NetBSD ld.elf_so' 22108 fi 22109 shlibpath_var=LD_LIBRARY_PATH 22110 shlibpath_overrides_runpath=yes 22111 hardcode_into_libs=yes 22112 ;; 22113 22114newsos6) 22115 version_type=linux 22116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22117 shlibpath_var=LD_LIBRARY_PATH 22118 shlibpath_overrides_runpath=yes 22119 ;; 22120 22121*nto* | *qnx*) 22122 version_type=qnx 22123 need_lib_prefix=no 22124 need_version=no 22125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22126 soname_spec='${libname}${release}${shared_ext}$major' 22127 shlibpath_var=LD_LIBRARY_PATH 22128 shlibpath_overrides_runpath=no 22129 hardcode_into_libs=yes 22130 dynamic_linker='ldqnx.so' 22131 ;; 22132 22133openbsd*) 22134 version_type=sunos 22135 sys_lib_dlsearch_path_spec="/usr/lib" 22136 need_lib_prefix=no 22137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 22138 case $host_os in 22139 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 22140 *) need_version=no ;; 22141 esac 22142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22144 shlibpath_var=LD_LIBRARY_PATH 22145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 22146 case $host_os in 22147 openbsd2.[89] | openbsd2.[89].*) 22148 shlibpath_overrides_runpath=no 22149 ;; 22150 *) 22151 shlibpath_overrides_runpath=yes 22152 ;; 22153 esac 22154 else 22155 shlibpath_overrides_runpath=yes 22156 fi 22157 ;; 22158 22159os2*) 22160 libname_spec='$name' 22161 shrext_cmds=".dll" 22162 need_lib_prefix=no 22163 library_names_spec='$libname${shared_ext} $libname.a' 22164 dynamic_linker='OS/2 ld.exe' 22165 shlibpath_var=LIBPATH 22166 ;; 22167 22168osf3* | osf4* | osf5*) 22169 version_type=osf 22170 need_lib_prefix=no 22171 need_version=no 22172 soname_spec='${libname}${release}${shared_ext}$major' 22173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22174 shlibpath_var=LD_LIBRARY_PATH 22175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 22177 ;; 22178 22179rdos*) 22180 dynamic_linker=no 22181 ;; 22182 22183solaris*) 22184 version_type=linux 22185 need_lib_prefix=no 22186 need_version=no 22187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22188 soname_spec='${libname}${release}${shared_ext}$major' 22189 shlibpath_var=LD_LIBRARY_PATH 22190 shlibpath_overrides_runpath=yes 22191 hardcode_into_libs=yes 22192 # ldd complains unless libraries are executable 22193 postinstall_cmds='chmod +x $lib' 22194 ;; 22195 22196sunos4*) 22197 version_type=sunos 22198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22200 shlibpath_var=LD_LIBRARY_PATH 22201 shlibpath_overrides_runpath=yes 22202 if test "$with_gnu_ld" = yes; then 22203 need_lib_prefix=no 22204 fi 22205 need_version=yes 22206 ;; 22207 22208sysv4 | sysv4.3*) 22209 version_type=linux 22210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22211 soname_spec='${libname}${release}${shared_ext}$major' 22212 shlibpath_var=LD_LIBRARY_PATH 22213 case $host_vendor in 22214 sni) 22215 shlibpath_overrides_runpath=no 22216 need_lib_prefix=no 22217 runpath_var=LD_RUN_PATH 22218 ;; 22219 siemens) 22220 need_lib_prefix=no 22221 ;; 22222 motorola) 22223 need_lib_prefix=no 22224 need_version=no 22225 shlibpath_overrides_runpath=no 22226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22227 ;; 22228 esac 22229 ;; 22230 22231sysv4*MP*) 22232 if test -d /usr/nec ;then 22233 version_type=linux 22234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 22235 soname_spec='$libname${shared_ext}.$major' 22236 shlibpath_var=LD_LIBRARY_PATH 22237 fi 22238 ;; 22239 22240sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22241 version_type=freebsd-elf 22242 need_lib_prefix=no 22243 need_version=no 22244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22245 soname_spec='${libname}${release}${shared_ext}$major' 22246 shlibpath_var=LD_LIBRARY_PATH 22247 shlibpath_overrides_runpath=yes 22248 hardcode_into_libs=yes 22249 if test "$with_gnu_ld" = yes; then 22250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22251 else 22252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22253 case $host_os in 22254 sco3.2v5*) 22255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22256 ;; 22257 esac 22258 fi 22259 sys_lib_dlsearch_path_spec='/usr/lib' 22260 ;; 22261 22262tpf*) 22263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22264 version_type=linux 22265 need_lib_prefix=no 22266 need_version=no 22267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22268 shlibpath_var=LD_LIBRARY_PATH 22269 shlibpath_overrides_runpath=no 22270 hardcode_into_libs=yes 22271 ;; 22272 22273uts4*) 22274 version_type=linux 22275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22276 soname_spec='${libname}${release}${shared_ext}$major' 22277 shlibpath_var=LD_LIBRARY_PATH 22278 ;; 22279 22280*) 22281 dynamic_linker=no 22282 ;; 22283esac 22284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22285$as_echo "$dynamic_linker" >&6; } 22286test "$dynamic_linker" = no && can_build_shared=no 22287 22288variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22289if test "$GCC" = yes; then 22290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22291fi 22292 22293if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 22294 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 22295fi 22296if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 22297 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 22298fi 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22338$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22339hardcode_action_CXX= 22340if test -n "$hardcode_libdir_flag_spec_CXX" || 22341 test -n "$runpath_var_CXX" || 22342 test "X$hardcode_automatic_CXX" = "Xyes" ; then 22343 22344 # We can hardcode non-existent directories. 22345 if test "$hardcode_direct_CXX" != no && 22346 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22347 # have to relink, otherwise we might link with an installed library 22348 # when we should be linking with a yet-to-be-installed one 22349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 22350 test "$hardcode_minus_L_CXX" != no; then 22351 # Linking always hardcodes the temporary library directory. 22352 hardcode_action_CXX=relink 22353 else 22354 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22355 hardcode_action_CXX=immediate 22356 fi 22357else 22358 # We cannot hardcode anything, or else we can only hardcode existing 22359 # directories. 22360 hardcode_action_CXX=unsupported 22361fi 22362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 22363$as_echo "$hardcode_action_CXX" >&6; } 22364 22365if test "$hardcode_action_CXX" = relink || 22366 test "$inherit_rpath_CXX" = yes; then 22367 # Fast installation is not supported 22368 enable_fast_install=no 22369elif test "$shlibpath_overrides_runpath" = yes || 22370 test "$enable_shared" = no; then 22371 # Fast installation is not necessary 22372 enable_fast_install=needless 22373fi 22374 22375 22376 22377 22378 22379 22380 22381 fi # test -n "$compiler" 22382 22383 CC=$lt_save_CC 22384 LDCXX=$LD 22385 LD=$lt_save_LD 22386 GCC=$lt_save_GCC 22387 with_gnu_ld=$lt_save_with_gnu_ld 22388 lt_cv_path_LDCXX=$lt_cv_path_LD 22389 lt_cv_path_LD=$lt_save_path_LD 22390 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 22391 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 22392fi # test "$_lt_caught_CXX_error" != yes 22393 22394ac_ext=cpp 22395ac_cpp='$CXXCPP $CPPFLAGS' 22396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 22412 22413 22414 22415# Only expand once: 22416 22417 22418 22419 22420 22421# Identify the assembler which will work hand-in-glove with the newly 22422# built GCC, so that we can examine its features. This is the assembler 22423# which will be driven by the driver program. 22424# 22425# If build != host, and we aren't building gas in-tree, we identify a 22426# build->target assembler and hope that it will have the same features 22427# as the host->target assembler we'll be using. 22428gcc_cv_gas_major_version= 22429gcc_cv_gas_minor_version= 22430gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas 22431 22432if ${gcc_cv_as+:} false; then : 22433 22434else 22435 22436if test -x "$DEFAULT_ASSEMBLER"; then 22437 gcc_cv_as="$DEFAULT_ASSEMBLER" 22438elif test -f $gcc_cv_as_gas_srcdir/configure.ac \ 22439 && test -f ../gas/Makefile \ 22440 && test x$build = x$host; then 22441 gcc_cv_as=../gas/as-new$build_exeext 22442elif test -x as$build_exeext; then 22443 # Build using assembler in the current directory. 22444 gcc_cv_as=./as$build_exeext 22445elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then 22446 gcc_cv_as="$AS_FOR_TARGET" 22447else 22448 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args. 22449set dummy $AS_FOR_TARGET; ac_word=$2 22450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22451$as_echo_n "checking for $ac_word... " >&6; } 22452if ${ac_cv_path_gcc_cv_as+:} false; then : 22453 $as_echo_n "(cached) " >&6 22454else 22455 case $gcc_cv_as in 22456 [\\/]* | ?:[\\/]*) 22457 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 22458 ;; 22459 *) 22460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22461for as_dir in $PATH 22462do 22463 IFS=$as_save_IFS 22464 test -z "$as_dir" && as_dir=. 22465 for ac_exec_ext in '' $ac_executable_extensions; do 22466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22467 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 22468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22469 break 2 22470 fi 22471done 22472 done 22473IFS=$as_save_IFS 22474 22475 ;; 22476esac 22477fi 22478gcc_cv_as=$ac_cv_path_gcc_cv_as 22479if test -n "$gcc_cv_as"; then 22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5 22481$as_echo "$gcc_cv_as" >&6; } 22482else 22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22484$as_echo "no" >&6; } 22485fi 22486 22487 22488fi 22489fi 22490 22491ORIGINAL_AS_FOR_TARGET=$gcc_cv_as 22492 22493case "$ORIGINAL_AS_FOR_TARGET" in 22494 ./as | ./as$build_exeext) ;; 22495 *) ac_config_files="$ac_config_files as:exec-tool.in" 22496 ;; 22497esac 22498 22499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5 22500$as_echo_n "checking what assembler to use... " >&6; } 22501if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then 22502 # Single tree build which includes gas. We want to prefer it 22503 # over whatever linker top-level may have detected, since 22504 # we'll use what we're building after installation anyway. 22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5 22506$as_echo "newly built gas" >&6; } 22507 in_tree_gas=yes 22508 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 22509for f in $gcc_cv_as_bfd_srcdir/configure \ 22510 $gcc_cv_as_gas_srcdir/configure \ 22511 $gcc_cv_as_gas_srcdir/configure.ac \ 22512 $gcc_cv_as_gas_srcdir/Makefile.in ; do 22513 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f` 22514 if test x$gcc_cv_gas_version != x; then 22515 break 22516 fi 22517done 22518case $gcc_cv_gas_version in 22519 VERSION=[0-9]*) ;; 22520 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;; 22521esac 22522gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` 22523gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 22524gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"` 22525case $gcc_cv_gas_patch_version in 22526 "") gcc_cv_gas_patch_version="0" ;; 22527esac 22528gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \ 22529 + $gcc_cv_gas_minor_version \) \* 1000 \ 22530 + $gcc_cv_gas_patch_version` 22531 22532 in_tree_gas_is_elf=no 22533 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \ 22534 || (grep 'obj_format = multi' ../gas/Makefile \ 22535 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null 22536 then 22537 in_tree_gas_is_elf=yes 22538 fi 22539else 22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5 22541$as_echo "$gcc_cv_as" >&6; } 22542 in_tree_gas=no 22543fi 22544 22545default_ld= 22546# Check whether --enable-ld was given. 22547if test "${enable_ld+set}" = set; then : 22548 enableval=$enable_ld; case "${enableval}" in 22549 no) 22550 default_ld=ld.gold 22551 ;; 22552 esac 22553fi 22554 22555 22556install_gold_as_default=no 22557# Check whether --enable-gold was given. 22558if test "${enable_gold+set}" = set; then : 22559 enableval=$enable_gold; case "${enableval}" in 22560 default) 22561 install_gold_as_default=yes 22562 ;; 22563 yes) 22564 if test x${default_ld} != x; then 22565 install_gold_as_default=yes 22566 fi 22567 ;; 22568 no) 22569 ;; 22570 *) 22571 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 22572 ;; 22573 esac 22574fi 22575 22576 22577# Identify the linker which will work hand-in-glove with the newly 22578# built GCC, so that we can examine its features. This is the linker 22579# which will be driven by the driver program. 22580# 22581# If build != host, and we aren't building gas in-tree, we identify a 22582# build->target linker and hope that it will have the same features 22583# as the host->target linker we'll be using. 22584gcc_cv_gld_major_version= 22585gcc_cv_gld_minor_version= 22586gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld 22587gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold 22588gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 22589 22590if ${gcc_cv_ld+:} false; then : 22591 22592else 22593 22594if test -x "$DEFAULT_LINKER"; then 22595 gcc_cv_ld="$DEFAULT_LINKER" 22596elif test $install_gold_as_default = yes \ 22597 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \ 22598 && test -f ../gold/Makefile \ 22599 && test x$build = x$host; then 22600 gcc_cv_ld=../gold/ld-new$build_exeext 22601elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \ 22602 && test -f ../ld/Makefile \ 22603 && test x$build = x$host; then 22604 gcc_cv_ld=../ld/ld-new$build_exeext 22605elif test -x collect-ld$build_exeext; then 22606 # Build using linker in the current directory. 22607 gcc_cv_ld=./collect-ld$build_exeext 22608elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then 22609 gcc_cv_ld="$LD_FOR_TARGET" 22610else 22611 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args. 22612set dummy $LD_FOR_TARGET; ac_word=$2 22613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22614$as_echo_n "checking for $ac_word... " >&6; } 22615if ${ac_cv_path_gcc_cv_ld+:} false; then : 22616 $as_echo_n "(cached) " >&6 22617else 22618 case $gcc_cv_ld in 22619 [\\/]* | ?:[\\/]*) 22620 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 22621 ;; 22622 *) 22623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22624for as_dir in $PATH 22625do 22626 IFS=$as_save_IFS 22627 test -z "$as_dir" && as_dir=. 22628 for ac_exec_ext in '' $ac_executable_extensions; do 22629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22630 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 22631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22632 break 2 22633 fi 22634done 22635 done 22636IFS=$as_save_IFS 22637 22638 ;; 22639esac 22640fi 22641gcc_cv_ld=$ac_cv_path_gcc_cv_ld 22642if test -n "$gcc_cv_ld"; then 22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5 22644$as_echo "$gcc_cv_ld" >&6; } 22645else 22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22647$as_echo "no" >&6; } 22648fi 22649 22650 22651fi 22652fi 22653 22654ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld 22655PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"` 22656# if the PLUGIN_LD is set ld-new, just have it as ld 22657# as that is the installed named. 22658if test x$PLUGIN_LD_SUFFIX = xld-new \ 22659 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then 22660 PLUGIN_LD_SUFFIX=ld 22661fi 22662 22663# Check whether --with-plugin-ld was given. 22664if test "${with_plugin_ld+set}" = set; then : 22665 withval=$with_plugin_ld; if test x"$withval" != x; then 22666 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval" 22667 PLUGIN_LD_SUFFIX="$withval" 22668 fi 22669fi 22670 22671 22672 22673cat >>confdefs.h <<_ACEOF 22674#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX" 22675_ACEOF 22676 22677 22678# Check to see if we are using gold instead of ld 22679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5 22680$as_echo_n "checking whether we are using gold... " >&6; } 22681ld_is_gold=no 22682if test x$gcc_cv_ld != x; then 22683 if $gcc_cv_ld --version 2>/dev/null | sed 1q \ 22684 | grep "GNU gold" > /dev/null; then 22685 ld_is_gold=yes 22686 fi 22687fi 22688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5 22689$as_echo "$ld_is_gold" >&6; } 22690 22691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5 22692$as_echo_n "checking gold linker with split stack support as non default... " >&6; } 22693# Check to see if default ld is not gold, but gold is 22694# available and has support for split stack. If gcc was configured 22695# with gold then no checking is done. 22696# 22697if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then 22698 22699# For platforms other than powerpc64*, enable as appropriate. 22700 22701 gold_non_default=no 22702 ld_gold=`which ${gcc_cv_ld}.gold` 22703# Make sure this gold has minimal split stack support 22704 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then 22705 ld_vers=`$ld_gold --version | sed 1q` 22706 gold_vers=`echo $ld_vers | sed -n \ 22707 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 22708 case $target in 22709# check that the gold version contains the complete split stack support 22710# on powerpc64 big and little endian 22711 powerpc64*-*-*) 22712 case "$gold_vers" in 22713 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes 22714 ;; 22715 *) gold_non_default=no 22716 ;; 22717 esac 22718 ;; 22719 esac 22720 fi 22721 if test $gold_non_default = yes; then 22722 22723$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h 22724 22725 fi 22726fi 22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5 22728$as_echo "$gold_non_default" >&6; } 22729 22730ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld 22731 22732case "$ORIGINAL_LD_FOR_TARGET" in 22733 ./collect-ld | ./collect-ld$build_exeext) ;; 22734 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in" 22735 ;; 22736esac 22737 22738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5 22739$as_echo_n "checking what linker to use... " >&6; } 22740if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \ 22741 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then 22742 # Single tree build which includes ld. We want to prefer it 22743 # over whatever linker top-level may have detected, since 22744 # we'll use what we're building after installation anyway. 22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5 22746$as_echo "newly built ld" >&6; } 22747 in_tree_ld=yes 22748 in_tree_ld_is_elf=no 22749 if (grep 'EMUL = .*elf' ../ld/Makefile \ 22750 || grep 'EMUL = .*linux' ../ld/Makefile \ 22751 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then 22752 in_tree_ld_is_elf=yes 22753 elif test "$ld_is_gold" = yes; then 22754 in_tree_ld_is_elf=yes 22755 fi 22756 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 22757 do 22758 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f` 22759 if test x$gcc_cv_gld_version != x; then 22760 break 22761 fi 22762 done 22763 case $gcc_cv_gld_version in 22764 VERSION=[0-9]*) ;; 22765 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;; 22766 esac 22767 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"` 22768 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 22769 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext 22770 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext 22771else 22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5 22773$as_echo "$gcc_cv_ld" >&6; } 22774 in_tree_ld=no 22775 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext` 22776 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext 22777 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext 22778fi 22779 22780 22781 22782 22783# Figure out what nm we will be using. 22784gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils 22785if ${gcc_cv_nm+:} false; then : 22786 22787else 22788 22789if test -f $gcc_cv_binutils_srcdir/configure.ac \ 22790 && test -f ../binutils/Makefile \ 22791 && test x$build = x$host; then 22792 gcc_cv_nm=../binutils/nm-new$build_exeext 22793elif test -x nm$build_exeext; then 22794 gcc_cv_nm=./nm$build_exeext 22795elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then 22796 gcc_cv_nm="$NM_FOR_TARGET" 22797else 22798 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args. 22799set dummy $NM_FOR_TARGET; ac_word=$2 22800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22801$as_echo_n "checking for $ac_word... " >&6; } 22802if ${ac_cv_path_gcc_cv_nm+:} false; then : 22803 $as_echo_n "(cached) " >&6 22804else 22805 case $gcc_cv_nm in 22806 [\\/]* | ?:[\\/]*) 22807 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 22808 ;; 22809 *) 22810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22811for as_dir in $PATH 22812do 22813 IFS=$as_save_IFS 22814 test -z "$as_dir" && as_dir=. 22815 for ac_exec_ext in '' $ac_executable_extensions; do 22816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22817 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 22818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22819 break 2 22820 fi 22821done 22822 done 22823IFS=$as_save_IFS 22824 22825 ;; 22826esac 22827fi 22828gcc_cv_nm=$ac_cv_path_gcc_cv_nm 22829if test -n "$gcc_cv_nm"; then 22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5 22831$as_echo "$gcc_cv_nm" >&6; } 22832else 22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22834$as_echo "no" >&6; } 22835fi 22836 22837 22838fi 22839fi 22840 22841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5 22842$as_echo_n "checking what nm to use... " >&6; } 22843if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then 22844 # Single tree build which includes binutils. 22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5 22846$as_echo "newly built nm" >&6; } 22847 in_tree_nm=yes 22848else 22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5 22850$as_echo "$gcc_cv_nm" >&6; } 22851 in_tree_nm=no 22852fi 22853 22854ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm 22855 22856case "$ORIGINAL_NM_FOR_TARGET" in 22857 ./nm | ./nm$build_exeext) ;; 22858 *) ac_config_files="$ac_config_files nm:exec-tool.in" 22859 ;; 22860esac 22861 22862 22863# Figure out what objdump we will be using. 22864if ${gcc_cv_objdump+:} false; then : 22865 22866else 22867 22868if test -f $gcc_cv_binutils_srcdir/configure.ac \ 22869 && test -f ../binutils/Makefile \ 22870 && test x$build = x$host; then 22871 # Single tree build which includes binutils. 22872 gcc_cv_objdump=../binutils/objdump$build_exeext 22873elif test -x objdump$build_exeext; then 22874 gcc_cv_objdump=./objdump$build_exeext 22875elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then 22876 gcc_cv_objdump="$OBJDUMP_FOR_TARGET" 22877else 22878 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args. 22879set dummy $OBJDUMP_FOR_TARGET; ac_word=$2 22880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22881$as_echo_n "checking for $ac_word... " >&6; } 22882if ${ac_cv_path_gcc_cv_objdump+:} false; then : 22883 $as_echo_n "(cached) " >&6 22884else 22885 case $gcc_cv_objdump in 22886 [\\/]* | ?:[\\/]*) 22887 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 22888 ;; 22889 *) 22890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22891for as_dir in $PATH 22892do 22893 IFS=$as_save_IFS 22894 test -z "$as_dir" && as_dir=. 22895 for ac_exec_ext in '' $ac_executable_extensions; do 22896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22897 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 22898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22899 break 2 22900 fi 22901done 22902 done 22903IFS=$as_save_IFS 22904 22905 ;; 22906esac 22907fi 22908gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 22909if test -n "$gcc_cv_objdump"; then 22910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5 22911$as_echo "$gcc_cv_objdump" >&6; } 22912else 22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22914$as_echo "no" >&6; } 22915fi 22916 22917 22918fi 22919fi 22920 22921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5 22922$as_echo_n "checking what objdump to use... " >&6; } 22923if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then 22924 # Single tree build which includes binutils. 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5 22926$as_echo "newly built objdump" >&6; } 22927elif test x$gcc_cv_objdump = x; then 22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22929$as_echo "not found" >&6; } 22930else 22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5 22932$as_echo "$gcc_cv_objdump" >&6; } 22933fi 22934 22935# Figure out what readelf we will be using. 22936if ${gcc_cv_readelf+:} false; then : 22937 22938else 22939 22940if test -f $gcc_cv_binutils_srcdir/configure.ac \ 22941 && test -f ../binutils/Makefile \ 22942 && test x$build = x$host; then 22943 # Single tree build which includes binutils. 22944 gcc_cv_readelf=../binutils/readelf$build_exeext 22945elif test -x readelf$build_exeext; then 22946 gcc_cv_readelf=./readelf$build_exeext 22947elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then 22948 gcc_cv_readelf="$READELF_FOR_TARGET" 22949else 22950 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args. 22951set dummy $READELF_FOR_TARGET; ac_word=$2 22952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22953$as_echo_n "checking for $ac_word... " >&6; } 22954if ${ac_cv_path_gcc_cv_readelf+:} false; then : 22955 $as_echo_n "(cached) " >&6 22956else 22957 case $gcc_cv_readelf in 22958 [\\/]* | ?:[\\/]*) 22959 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path. 22960 ;; 22961 *) 22962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22963for as_dir in $PATH 22964do 22965 IFS=$as_save_IFS 22966 test -z "$as_dir" && as_dir=. 22967 for ac_exec_ext in '' $ac_executable_extensions; do 22968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22969 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext" 22970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22971 break 2 22972 fi 22973done 22974 done 22975IFS=$as_save_IFS 22976 22977 ;; 22978esac 22979fi 22980gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf 22981if test -n "$gcc_cv_readelf"; then 22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5 22983$as_echo "$gcc_cv_readelf" >&6; } 22984else 22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22986$as_echo "no" >&6; } 22987fi 22988 22989 22990fi 22991fi 22992 22993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5 22994$as_echo_n "checking what readelf to use... " >&6; } 22995if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then 22996 # Single tree build which includes binutils. 22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5 22998$as_echo "newly built readelf" >&6; } 22999elif test x$gcc_cv_readelf = x; then 23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23001$as_echo "not found" >&6; } 23002else 23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5 23004$as_echo "$gcc_cv_readelf" >&6; } 23005fi 23006 23007# Figure out what otool we will be using. 23008if ${gcc_cv_otool+:} false; then : 23009 23010else 23011 23012if test -x otool$build_exeext; then 23013 gcc_cv_otool=./otool$build_exeext 23014elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then 23015 gcc_cv_otool="$OTOOL_FOR_TARGET" 23016else 23017 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args. 23018set dummy $OTOOL_FOR_TARGET; ac_word=$2 23019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23020$as_echo_n "checking for $ac_word... " >&6; } 23021if ${ac_cv_path_gcc_cv_otool+:} false; then : 23022 $as_echo_n "(cached) " >&6 23023else 23024 case $gcc_cv_otool in 23025 [\\/]* | ?:[\\/]*) 23026 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path. 23027 ;; 23028 *) 23029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23030for as_dir in $PATH 23031do 23032 IFS=$as_save_IFS 23033 test -z "$as_dir" && as_dir=. 23034 for ac_exec_ext in '' $ac_executable_extensions; do 23035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23036 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext" 23037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23038 break 2 23039 fi 23040done 23041 done 23042IFS=$as_save_IFS 23043 23044 ;; 23045esac 23046fi 23047gcc_cv_otool=$ac_cv_path_gcc_cv_otool 23048if test -n "$gcc_cv_otool"; then 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5 23050$as_echo "$gcc_cv_otool" >&6; } 23051else 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23053$as_echo "no" >&6; } 23054fi 23055 23056 23057fi 23058fi 23059 23060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5 23061$as_echo_n "checking what otool to use... " >&6; } 23062if test x$gcc_cv_otool = x; then 23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23064$as_echo "not found" >&6; } 23065else 23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5 23067$as_echo "$gcc_cv_otool" >&6; } 23068fi 23069 23070# Figure out the dsymutil we will use. 23071if ${gcc_cv_dsymutil+:} false; then : 23072 23073else 23074 23075if test -x "$DEFAULT_DSYMUTIL"; then 23076 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL" 23077elif test -x dsymutil$build_exeext; then 23078 gcc_cv_dsymutil=./dsymutil$build_exeext 23079elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then 23080 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET 23081elif ( set dummy $DSYMUTIL; test -x $2 ); then 23082 gcc_cv_dsymutil=$DSYMUTIL 23083else 23084 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args. 23085set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2 23086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23087$as_echo_n "checking for $ac_word... " >&6; } 23088if ${ac_cv_path_gcc_cv_dsymutil+:} false; then : 23089 $as_echo_n "(cached) " >&6 23090else 23091 case $gcc_cv_dsymutil in 23092 [\\/]* | ?:[\\/]*) 23093 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path. 23094 ;; 23095 *) 23096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23097for as_dir in $PATH 23098do 23099 IFS=$as_save_IFS 23100 test -z "$as_dir" && as_dir=. 23101 for ac_exec_ext in '' $ac_executable_extensions; do 23102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23103 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext" 23104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23105 break 2 23106 fi 23107done 23108 done 23109IFS=$as_save_IFS 23110 23111 ;; 23112esac 23113fi 23114gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil 23115if test -n "$gcc_cv_dsymutil"; then 23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5 23117$as_echo "$gcc_cv_dsymutil" >&6; } 23118else 23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23120$as_echo "no" >&6; } 23121fi 23122 23123 23124fi 23125fi 23126 23127ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil 23128 23129case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in 23130 ./dsymutil | ./dsymutil$build_exeext) ;; 23131 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in" 23132 ;; 23133esac 23134 23135# Figure out what assembler alignment features are present. 23136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5 23137$as_echo_n "checking assembler flags... " >&6; } 23138if ${gcc_cv_as_flags+:} false; then : 23139 $as_echo_n "(cached) " >&6 23140else 23141 case "$target" in 23142 i[34567]86-*-linux*) 23143 gcc_cv_as_flags=--32 23144 ;; 23145 x86_64-*-linux-gnux32) 23146 gcc_cv_as_flags=--x32 23147 ;; 23148 x86_64-*-linux*) 23149 gcc_cv_as_flags=--64 23150 ;; 23151 powerpc*-*-darwin*) 23152 gcc_cv_as_flags="-arch ppc" 23153 ;; 23154 *) 23155 gcc_cv_as_flags=" " 23156 ;; 23157 esac 23158fi 23159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5 23160$as_echo "$gcc_cv_as_flags" >&6; } 23161 23162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5 23163$as_echo_n "checking assembler for .balign and .p2align... " >&6; } 23164if ${gcc_cv_as_balign_and_p2align+:} false; then : 23165 $as_echo_n "(cached) " >&6 23166else 23167 gcc_cv_as_balign_and_p2align=no 23168 if test $in_tree_gas = yes; then 23169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0` 23170 then gcc_cv_as_balign_and_p2align=yes 23171fi 23172 elif test x$gcc_cv_as != x; then 23173 $as_echo '.balign 4 23174.p2align 2' > conftest.s 23175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23177 (eval $ac_try) 2>&5 23178 ac_status=$? 23179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23180 test $ac_status = 0; }; } 23181 then 23182 gcc_cv_as_balign_and_p2align=yes 23183 else 23184 echo "configure: failed program was" >&5 23185 cat conftest.s >&5 23186 fi 23187 rm -f conftest.o conftest.s 23188 fi 23189fi 23190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5 23191$as_echo "$gcc_cv_as_balign_and_p2align" >&6; } 23192if test $gcc_cv_as_balign_and_p2align = yes; then 23193 23194$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h 23195 23196fi 23197 23198 23199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5 23200$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; } 23201if ${gcc_cv_as_max_skip_p2align+:} false; then : 23202 $as_echo_n "(cached) " >&6 23203else 23204 gcc_cv_as_max_skip_p2align=no 23205 if test $in_tree_gas = yes; then 23206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0` 23207 then gcc_cv_as_max_skip_p2align=yes 23208fi 23209 elif test x$gcc_cv_as != x; then 23210 $as_echo '.p2align 4,,7' > conftest.s 23211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23213 (eval $ac_try) 2>&5 23214 ac_status=$? 23215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23216 test $ac_status = 0; }; } 23217 then 23218 gcc_cv_as_max_skip_p2align=yes 23219 else 23220 echo "configure: failed program was" >&5 23221 cat conftest.s >&5 23222 fi 23223 rm -f conftest.o conftest.s 23224 fi 23225fi 23226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5 23227$as_echo "$gcc_cv_as_max_skip_p2align" >&6; } 23228if test $gcc_cv_as_max_skip_p2align = yes; then 23229 23230$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h 23231 23232fi 23233 23234 23235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5 23236$as_echo_n "checking assembler for .literal16... " >&6; } 23237if ${gcc_cv_as_literal16+:} false; then : 23238 $as_echo_n "(cached) " >&6 23239else 23240 gcc_cv_as_literal16=no 23241 if test $in_tree_gas = yes; then 23242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0` 23243 then gcc_cv_as_literal16=yes 23244fi 23245 elif test x$gcc_cv_as != x; then 23246 $as_echo '.literal16' > conftest.s 23247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23249 (eval $ac_try) 2>&5 23250 ac_status=$? 23251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23252 test $ac_status = 0; }; } 23253 then 23254 gcc_cv_as_literal16=yes 23255 else 23256 echo "configure: failed program was" >&5 23257 cat conftest.s >&5 23258 fi 23259 rm -f conftest.o conftest.s 23260 fi 23261fi 23262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5 23263$as_echo "$gcc_cv_as_literal16" >&6; } 23264if test $gcc_cv_as_literal16 = yes; then 23265 23266$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h 23267 23268fi 23269 23270 23271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5 23272$as_echo_n "checking assembler for working .subsection -1... " >&6; } 23273if ${gcc_cv_as_subsection_m1+:} false; then : 23274 $as_echo_n "(cached) " >&6 23275else 23276 gcc_cv_as_subsection_m1=no 23277 if test $in_tree_gas = yes; then 23278 if test $in_tree_gas_is_elf = yes \ 23279 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0` 23280 then gcc_cv_as_subsection_m1=yes 23281fi 23282 elif test x$gcc_cv_as != x; then 23283 $as_echo 'conftest_label1: .word 0 23284.subsection -1 23285conftest_label2: .word 0 23286.previous' > conftest.s 23287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23289 (eval $ac_try) 2>&5 23290 ac_status=$? 23291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23292 test $ac_status = 0; }; } 23293 then 23294 if test x$gcc_cv_nm != x; then 23295 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 23296 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 23297 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1 23298 then : 23299 else gcc_cv_as_subsection_m1=yes 23300 fi 23301 rm -f conftest.nm1 conftest.nm2 23302 fi 23303 else 23304 echo "configure: failed program was" >&5 23305 cat conftest.s >&5 23306 fi 23307 rm -f conftest.o conftest.s 23308 fi 23309fi 23310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5 23311$as_echo "$gcc_cv_as_subsection_m1" >&6; } 23312if test $gcc_cv_as_subsection_m1 = yes; then 23313 23314$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h 23315 23316fi 23317 23318 23319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5 23320$as_echo_n "checking assembler for .weak... " >&6; } 23321if ${gcc_cv_as_weak+:} false; then : 23322 $as_echo_n "(cached) " >&6 23323else 23324 gcc_cv_as_weak=no 23325 if test $in_tree_gas = yes; then 23326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0` 23327 then gcc_cv_as_weak=yes 23328fi 23329 elif test x$gcc_cv_as != x; then 23330 $as_echo ' .weak foobar' > conftest.s 23331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23333 (eval $ac_try) 2>&5 23334 ac_status=$? 23335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23336 test $ac_status = 0; }; } 23337 then 23338 gcc_cv_as_weak=yes 23339 else 23340 echo "configure: failed program was" >&5 23341 cat conftest.s >&5 23342 fi 23343 rm -f conftest.o conftest.s 23344 fi 23345fi 23346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5 23347$as_echo "$gcc_cv_as_weak" >&6; } 23348if test $gcc_cv_as_weak = yes; then 23349 23350$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h 23351 23352fi 23353 23354 23355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5 23356$as_echo_n "checking assembler for .weakref... " >&6; } 23357if ${gcc_cv_as_weakref+:} false; then : 23358 $as_echo_n "(cached) " >&6 23359else 23360 gcc_cv_as_weakref=no 23361 if test $in_tree_gas = yes; then 23362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 23363 then gcc_cv_as_weakref=yes 23364fi 23365 elif test x$gcc_cv_as != x; then 23366 $as_echo ' .weakref foobar, barfnot' > conftest.s 23367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23369 (eval $ac_try) 2>&5 23370 ac_status=$? 23371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23372 test $ac_status = 0; }; } 23373 then 23374 gcc_cv_as_weakref=yes 23375 else 23376 echo "configure: failed program was" >&5 23377 cat conftest.s >&5 23378 fi 23379 rm -f conftest.o conftest.s 23380 fi 23381fi 23382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5 23383$as_echo "$gcc_cv_as_weakref" >&6; } 23384if test $gcc_cv_as_weakref = yes; then 23385 23386$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h 23387 23388fi 23389 23390 23391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5 23392$as_echo_n "checking assembler for .nsubspa comdat... " >&6; } 23393if ${gcc_cv_as_nsubspa_comdat+:} false; then : 23394 $as_echo_n "(cached) " >&6 23395else 23396 gcc_cv_as_nsubspa_comdat=no 23397 if test $in_tree_gas = yes; then 23398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 23399 then gcc_cv_as_nsubspa_comdat=yes 23400fi 23401 elif test x$gcc_cv_as != x; then 23402 $as_echo ' .SPACE $TEXT$ 23403 .NSUBSPA $CODE$,COMDAT' > conftest.s 23404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23406 (eval $ac_try) 2>&5 23407 ac_status=$? 23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23409 test $ac_status = 0; }; } 23410 then 23411 gcc_cv_as_nsubspa_comdat=yes 23412 else 23413 echo "configure: failed program was" >&5 23414 cat conftest.s >&5 23415 fi 23416 rm -f conftest.o conftest.s 23417 fi 23418fi 23419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5 23420$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; } 23421if test $gcc_cv_as_nsubspa_comdat = yes; then 23422 23423$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h 23424 23425fi 23426 23427 23428# .hidden needs to be supported in both the assembler and the linker, 23429# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN. 23430# This is irritatingly difficult to feature test for; we have to check the 23431# date string after the version number. If we've got an in-tree 23432# ld, we don't know its patchlevel version, so we set the baseline at 2.13 23433# to be safe. 23434# The gcc_GAS_CHECK_FEATURE call just sets a cache variable. 23435case "${target}" in 23436 *-*-aix*) 23437 conftest_s=' .globl foobar,hidden' 23438 ;; 23439 *) 23440 conftest_s=' .hidden foobar 23441foobar:' 23442 ;; 23443esac 23444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5 23445$as_echo_n "checking assembler for .hidden... " >&6; } 23446if ${gcc_cv_as_hidden+:} false; then : 23447 $as_echo_n "(cached) " >&6 23448else 23449 gcc_cv_as_hidden=no 23450 if test $in_tree_gas = yes; then 23451 if test $in_tree_gas_is_elf = yes \ 23452 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0` 23453 then gcc_cv_as_hidden=yes 23454fi 23455 elif test x$gcc_cv_as != x; then 23456 $as_echo "$conftest_s" > conftest.s 23457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23459 (eval $ac_try) 2>&5 23460 ac_status=$? 23461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23462 test $ac_status = 0; }; } 23463 then 23464 gcc_cv_as_hidden=yes 23465 else 23466 echo "configure: failed program was" >&5 23467 cat conftest.s >&5 23468 fi 23469 rm -f conftest.o conftest.s 23470 fi 23471fi 23472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5 23473$as_echo "$gcc_cv_as_hidden" >&6; } 23474 23475 23476case "${target}" in 23477 *-*-darwin*) 23478 # Darwin as has some visibility support, though with a different syntax. 23479 gcc_cv_as_hidden=yes 23480 ;; 23481esac 23482 23483# gnu_indirect_function type is an extension proposed at 23484# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime 23485# selection of function implementation 23486# Check whether --enable-gnu-indirect-function was given. 23487if test "${enable_gnu_indirect_function+set}" = set; then : 23488 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in 23489 yes | no) ;; 23490 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function. 23491Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 23492 esac 23493else 23494 enable_gnu_indirect_function="$default_gnu_indirect_function" 23495fi 23496 23497 23498gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi` 23499 23500cat >>confdefs.h <<_ACEOF 23501#define HAVE_GNU_INDIRECT_FUNCTION $gif 23502_ACEOF 23503 23504 23505 23506if test $in_tree_ld != yes ; then 23507 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` 23508 if echo "$ld_ver" | grep GNU > /dev/null; then 23509 if test x"$ld_is_gold" = xyes; then 23510 # GNU gold --version looks like this: 23511 # 23512 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11 23513 # 23514 # We extract the binutils version which is more familiar and specific 23515 # than the gold version. 23516 ld_vers=`echo $ld_ver | sed -n \ 23517 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 23518 else 23519 # GNU ld --version looks like this: 23520 # 23521 # GNU ld (GNU Binutils) 2.21.51.20110225 23522 ld_vers=`echo $ld_ver | sed -n \ 23523 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 23524 fi 23525 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'` 23526 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 23527 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 23528 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 23529 else 23530 case "${target}" in 23531 *-*-solaris2*) 23532 # Solaris 2 ld -V output looks like this for a regular version: 23533 # 23534 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699 23535 # 23536 # but test versions add stuff at the end: 23537 # 23538 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10 23539 # 23540 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version 23541 # numbers can be used in ld.so.1 feature checks even if a different 23542 # linker is configured. 23543 ld_ver=`$gcc_cv_ld -V 2>&1` 23544 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then 23545 ld_vers=`echo $ld_ver | sed -n \ 23546 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'` 23547 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 23548 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 23549 fi 23550 ;; 23551 esac 23552 fi 23553fi 23554 23555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5 23556$as_echo_n "checking linker for .hidden support... " >&6; } 23557if ${gcc_cv_ld_hidden+:} false; then : 23558 $as_echo_n "(cached) " >&6 23559else 23560 if test $in_tree_ld = yes ; then 23561 gcc_cv_ld_hidden=no 23562 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 \ 23563 && test $in_tree_ld_is_elf = yes; then 23564 gcc_cv_ld_hidden=yes 23565 fi 23566else 23567 gcc_cv_ld_hidden=yes 23568 if test x"$ld_is_gold" = xyes; then 23569 : 23570 elif echo "$ld_ver" | grep GNU > /dev/null; then 23571 case "${target}" in 23572 mmix-knuth-mmixware) 23573 # The linker emits by default mmo, not ELF, so "no" is appropriate. 23574 gcc_cv_ld_hidden=no 23575 ;; 23576 esac 23577 if test 0"$ld_date" -lt 20020404; then 23578 if test -n "$ld_date"; then 23579 # If there was date string, but was earlier than 2002-04-04, fail 23580 gcc_cv_ld_hidden=no 23581 elif test -z "$ld_vers"; then 23582 # If there was no date string nor ld version number, something is wrong 23583 gcc_cv_ld_hidden=no 23584 else 23585 test -z "$ld_vers_patch" && ld_vers_patch=0 23586 if test "$ld_vers_major" -lt 2; then 23587 gcc_cv_ld_hidden=no 23588 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then 23589 gcc_cv_ld_hidden="no" 23590 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then 23591 gcc_cv_ld_hidden=no 23592 fi 23593 fi 23594 fi 23595 else 23596 case "${target}" in 23597 *-*-aix[789]*) 23598 gcc_cv_ld_hidden=yes 23599 ;; 23600 *-*-darwin*) 23601 # Darwin ld has some visibility support. 23602 gcc_cv_ld_hidden=yes 23603 ;; 23604 hppa64*-*-hpux* | ia64*-*-hpux*) 23605 gcc_cv_ld_hidden=yes 23606 ;; 23607 *-*-solaris2*) 23608 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but 23609 # .symbolic was only added in Solaris 9 12/02. 23610 gcc_cv_ld_hidden=yes 23611 ;; 23612 *) 23613 gcc_cv_ld_hidden=no 23614 ;; 23615 esac 23616 fi 23617fi 23618fi 23619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5 23620$as_echo "$gcc_cv_ld_hidden" >&6; } 23621libgcc_visibility=no 23622 23623 23624if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then 23625 libgcc_visibility=yes 23626 23627$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h 23628 23629fi 23630 23631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5 23632$as_echo_n "checking linker read-only and read-write section mixing... " >&6; } 23633gcc_cv_ld_ro_rw_mix=unknown 23634if test $in_tree_ld = yes ; then 23635 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 \ 23636 && test $in_tree_ld_is_elf = yes; then 23637 gcc_cv_ld_ro_rw_mix=read-write 23638 fi 23639elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 23640 echo '.section myfoosect, "a"' > conftest1.s 23641 echo '.section myfoosect, "aw"' > conftest2.s 23642 echo '.byte 1' >> conftest2.s 23643 echo '.section myfoosect, "a"' > conftest3.s 23644 echo '.byte 0' >> conftest3.s 23645 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \ 23646 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \ 23647 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \ 23648 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \ 23649 conftest2.o conftest3.o > /dev/null 2>&1; then 23650 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \ 23651 | sed -e '/myfoosect/!d' -e N` 23652 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then 23653 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then 23654 gcc_cv_ld_ro_rw_mix=read-only 23655 else 23656 gcc_cv_ld_ro_rw_mix=read-write 23657 fi 23658 fi 23659 fi 23660 rm -f conftest.* conftest[123].* 23661fi 23662if test x$gcc_cv_ld_ro_rw_mix = xread-write; then 23663 23664$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h 23665 23666fi 23667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5 23668$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; } 23669 23670# Check whether --enable-initfini-array was given. 23671if test "${enable_initfini_array+set}" = set; then : 23672 enableval=$enable_initfini_array; 23673else 23674 23675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 23676$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } 23677if ${gcc_cv_initfini_array+:} false; then : 23678 $as_echo_n "(cached) " >&6 23679else 23680 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then 23681 case "${target}" in 23682 ia64-*) 23683 if test "$cross_compiling" = yes; then : 23684 gcc_cv_initfini_array=no 23685else 23686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23687/* end confdefs.h. */ 23688 23689#ifndef __ELF__ 23690#error Not an ELF OS 23691#endif 23692/* We turn on .preinit_array/.init_array/.fini_array support for ia64 23693 if it can be used. */ 23694static int x = -1; 23695int main (void) { return x; } 23696int foo (void) { x = 0; } 23697int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; 23698 23699_ACEOF 23700if ac_fn_cxx_try_run "$LINENO"; then : 23701 gcc_cv_initfini_array=yes 23702else 23703 gcc_cv_initfini_array=no 23704fi 23705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23706 conftest.$ac_objext conftest.beam conftest.$ac_ext 23707fi 23708;; 23709 *) 23710 gcc_cv_initfini_array=no 23711 if test $in_tree_ld = yes ; then 23712 if test "$gcc_cv_gld_major_version" -eq 2 \ 23713 -a "$gcc_cv_gld_minor_version" -ge 22 \ 23714 -o "$gcc_cv_gld_major_version" -gt 2 \ 23715 && test $in_tree_ld_is_elf = yes; then 23716 gcc_cv_initfini_array=yes 23717 fi 23718 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 23719 case $target:$gas in 23720 *:yes) 23721 sh_flags='"a"' 23722 sh_type='%progbits' 23723 ;; 23724 i?86-*-solaris2*:no | x86_64-*-solaris2*:no) 23725 sh_flags='"a"' 23726 sh_type='@progbits' 23727 ;; 23728 sparc*-*-solaris2*:no) 23729 sh_flags='#alloc' 23730 sh_type='#progbits' 23731 sh_quote='"' 23732 ;; 23733 esac 23734 case "$target:$gnu_ld" in 23735 *:yes) 23736 cat > conftest.s <<EOF 23737.section .dtors,$sh_flags,$sh_type 23738.balign 4 23739.byte 'A', 'A', 'A', 'A' 23740.section .ctors,$sh_flags,$sh_type 23741.balign 4 23742.byte 'B', 'B', 'B', 'B' 23743.section .fini_array.65530,$sh_flags,$sh_type 23744.balign 4 23745.byte 'C', 'C', 'C', 'C' 23746.section .init_array.65530,$sh_flags,$sh_type 23747.balign 4 23748.byte 'D', 'D', 'D', 'D' 23749.section .dtors.64528,$sh_flags,$sh_type 23750.balign 4 23751.byte 'E', 'E', 'E', 'E' 23752.section .ctors.64528,$sh_flags,$sh_type 23753.balign 4 23754.byte 'F', 'F', 'F', 'F' 23755.section .fini_array.01005,$sh_flags,$sh_type 23756.balign 4 23757.byte 'G', 'G', 'G', 'G' 23758.section .init_array.01005,$sh_flags,$sh_type 23759.balign 4 23760.byte 'H', 'H', 'H', 'H' 23761.text 23762.globl _start 23763_start: 23764EOF 23765 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 23766 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 23767 && $gcc_cv_objdump -s -j .init_array conftest \ 23768 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \ 23769 && $gcc_cv_objdump -s -j .fini_array conftest \ 23770 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then 23771 gcc_cv_initfini_array=yes 23772 fi 23773 ;; 23774 *-*-solaris2*:no) 23775 # When Solaris ld added constructor priority support, it was 23776 # decided to only handle .init_array.N/.fini_array.N since 23777 # there was no need for backwards compatibility with 23778 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate 23779 # sections with correct execution order resp. to 23780 # .init_array/.fini_array, while gld merges them into 23781 # .init_array/.fini_array. 23782 cat > conftest.s <<EOF 23783.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type 23784.align 4 23785.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C' 23786.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type 23787.align 4 23788.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D' 23789.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type 23790.align 4 23791.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G' 23792.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type 23793.align 4 23794.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H' 23795.text 23796.globl _start 23797_start: 23798EOF 23799 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 23800 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 23801 && $gcc_cv_objdump -s -j .init_array conftest \ 23802 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \ 23803 && $gcc_cv_objdump -s -j .fini_array conftest \ 23804 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then 23805 gcc_cv_initfini_array=yes 23806 fi 23807 ;; 23808 esac 23809 rm -f conftest conftest.* 23810 fi 23811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23812/* end confdefs.h. */ 23813 23814#ifndef __ELF__ 23815# error Not an ELF OS 23816#endif 23817#include <stdlib.h> 23818#if defined __GLIBC_PREREQ 23819# if __GLIBC_PREREQ (2, 4) 23820# else 23821# error GLIBC 2.4 required 23822# endif 23823#else 23824# if defined __sun__ && defined __svr4__ 23825 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ 23826# else 23827# error The C library not known to support .init_array/.fini_array 23828# endif 23829#endif 23830 23831_ACEOF 23832if ac_fn_cxx_try_cpp "$LINENO"; then : 23833 23834else 23835 gcc_cv_initfini_array=no 23836fi 23837rm -f conftest.err conftest.i conftest.$ac_ext;; 23838 esac 23839 else 23840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5 23841$as_echo_n "checking cross compile... guessing... " >&6; } 23842 gcc_cv_initfini_array=no 23843 fi 23844fi 23845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5 23846$as_echo "$gcc_cv_initfini_array" >&6; } 23847 enable_initfini_array=$gcc_cv_initfini_array 23848 23849fi 23850 23851 23852cat >>confdefs.h <<_ACEOF 23853#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi` 23854_ACEOF 23855 23856 23857 23858# Check if we have .[us]leb128, and support symbol arithmetic with it. 23859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5 23860$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; } 23861if ${gcc_cv_as_leb128+:} false; then : 23862 $as_echo_n "(cached) " >&6 23863else 23864 gcc_cv_as_leb128=no 23865 if test $in_tree_gas = yes; then 23866 if test $in_tree_gas_is_elf = yes \ 23867 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 23868 then gcc_cv_as_leb128=yes 23869fi 23870 elif test x$gcc_cv_as != x; then 23871 $as_echo ' .data 23872 .uleb128 L2 - L1 23873L1: 23874 .uleb128 1280 23875 .sleb128 -1010 23876L2:' > conftest.s 23877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23879 (eval $ac_try) 2>&5 23880 ac_status=$? 23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23882 test $ac_status = 0; }; } 23883 then 23884 # GAS versions before 2.11 do not support uleb128, 23885 # despite appearing to. 23886 # ??? There exists an elf-specific test that will crash 23887 # the assembler. Perhaps it's better to figure out whether 23888 # arbitrary sections are supported and try the test. 23889 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q` 23890 if echo "$as_ver" | grep GNU > /dev/null; then 23891 as_vers=`echo $as_ver | sed -n \ 23892 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 23893 as_major=`expr "$as_vers" : '\([0-9]*\)'` 23894 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'` 23895 if test $as_major -eq 2 && test $as_minor -lt 11 23896 then : 23897 else gcc_cv_as_leb128=yes 23898 fi 23899 fi 23900 else 23901 echo "configure: failed program was" >&5 23902 cat conftest.s >&5 23903 fi 23904 rm -f conftest.o conftest.s 23905 fi 23906fi 23907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5 23908$as_echo "$gcc_cv_as_leb128" >&6; } 23909if test $gcc_cv_as_leb128 = yes; then 23910 23911$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h 23912 23913fi 23914if test $gcc_cv_as_leb128 != yes; then 23915 23916$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h 23917 23918fi 23919 23920# Determine if an .eh_frame section is read-only. 23921gcc_fn_eh_frame_ro () { 23922 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \ 23923 $gcc_cv_objdump -h conftest.o 2>/dev/null | \ 23924 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null 23925} 23926 23927# Check if we have assembler support for unwind directives. 23928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5 23929$as_echo_n "checking assembler for cfi directives... " >&6; } 23930if ${gcc_cv_as_cfi_directive+:} false; then : 23931 $as_echo_n "(cached) " >&6 23932else 23933 gcc_cv_as_cfi_directive=no 23934 if test x$gcc_cv_as != x; then 23935 $as_echo ' .text 23936 .cfi_startproc 23937 .cfi_offset 0, 0 23938 .cfi_same_value 1 23939 .cfi_def_cfa 1, 2 23940 .cfi_escape 1, 2, 3, 4, 5 23941 .cfi_endproc' > conftest.s 23942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23944 (eval $ac_try) 2>&5 23945 ac_status=$? 23946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23947 test $ac_status = 0; }; } 23948 then 23949 case "$target" in 23950 *-*-solaris*) 23951 # If the linker used on Solaris (like Sun ld) isn't capable of merging 23952 # read-only and read-write sections, we need to make sure that the 23953 # assembler used emits read-write .eh_frame sections. 23954 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then 23955 gcc_cv_as_cfi_directive=yes 23956 elif test "x$gcc_cv_objdump" = x; then 23957 # No objdump, err on the side of caution. 23958 gcc_cv_as_cfi_directive=no 23959 else 23960 if test x$gas = xyes; then 23961 as_32_opt="--32" 23962 as_64_opt="--64" 23963 else 23964 as_32_opt="-m32" 23965 as_64_opt="-m64" 23966 fi 23967 case "$target" in 23968 sparc*-*-solaris2.*) 23969 # On Solaris/SPARC, .eh_frame sections should always be read-write. 23970 if gcc_fn_eh_frame_ro $as_32_opt \ 23971 || gcc_fn_eh_frame_ro $as_64_opt; then 23972 gcc_cv_as_cfi_directive=no 23973 else 23974 gcc_cv_as_cfi_directive=yes 23975 fi 23976 ;; 23977 i?86-*-solaris2.* | x86_64-*-solaris2.*) 23978 # On Solaris/x86, make sure that GCC and assembler agree on using 23979 # read-only .eh_frame sections for 64-bit. 23980 if gcc_fn_eh_frame_ro $as_32_opt; then 23981 gcc_cv_as_cfi_directive=no 23982 elif gcc_fn_eh_frame_ro $as_64_opt; then 23983 gcc_cv_as_cfi_directive=yes 23984 else 23985 gcc_cv_as_cfi_directive=no 23986 fi 23987 ;; 23988 esac 23989 fi 23990 ;; 23991 *-*-*) 23992 gcc_cv_as_cfi_directive=yes 23993 ;; 23994esac 23995 else 23996 echo "configure: failed program was" >&5 23997 cat conftest.s >&5 23998 fi 23999 rm -f conftest.o conftest.s 24000 fi 24001fi 24002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5 24003$as_echo "$gcc_cv_as_cfi_directive" >&6; } 24004 24005 24006if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then 24007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5 24008$as_echo_n "checking assembler for working cfi advance... " >&6; } 24009if ${gcc_cv_as_cfi_advance_working+:} false; then : 24010 $as_echo_n "(cached) " >&6 24011else 24012 gcc_cv_as_cfi_advance_working=no 24013 if test x$gcc_cv_as != x; then 24014 $as_echo ' .text 24015 .cfi_startproc 24016 .cfi_adjust_cfa_offset 64 24017 .skip 75040, 0 24018 .cfi_adjust_cfa_offset 128 24019 .cfi_endproc' > conftest.s 24020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24022 (eval $ac_try) 2>&5 24023 ac_status=$? 24024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24025 test $ac_status = 0; }; } 24026 then 24027 24028if $gcc_cv_readelf --debug-dump=frames conftest.o 2>/dev/null \ 24029 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then 24030 gcc_cv_as_cfi_advance_working=yes 24031fi 24032 24033 else 24034 echo "configure: failed program was" >&5 24035 cat conftest.s >&5 24036 fi 24037 rm -f conftest.o conftest.s 24038 fi 24039fi 24040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5 24041$as_echo "$gcc_cv_as_cfi_advance_working" >&6; } 24042 24043 24044else 24045 # no objdump, err on the side of caution 24046 gcc_cv_as_cfi_advance_working=no 24047fi 24048 24049 24050cat >>confdefs.h <<_ACEOF 24051#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \ 24052 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi` 24053_ACEOF 24054 24055 24056 24057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5 24058$as_echo_n "checking assembler for cfi personality directive... " >&6; } 24059if ${gcc_cv_as_cfi_personality_directive+:} false; then : 24060 $as_echo_n "(cached) " >&6 24061else 24062 gcc_cv_as_cfi_personality_directive=no 24063 if test x$gcc_cv_as != x; then 24064 $as_echo ' .text 24065 .cfi_startproc 24066 .cfi_personality 0, symbol 24067 .cfi_endproc' > conftest.s 24068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24070 (eval $ac_try) 2>&5 24071 ac_status=$? 24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24073 test $ac_status = 0; }; } 24074 then 24075 gcc_cv_as_cfi_personality_directive=yes 24076 else 24077 echo "configure: failed program was" >&5 24078 cat conftest.s >&5 24079 fi 24080 rm -f conftest.o conftest.s 24081 fi 24082fi 24083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5 24084$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; } 24085 24086 24087 24088cat >>confdefs.h <<_ACEOF 24089#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi` 24090_ACEOF 24091 24092 24093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5 24094$as_echo_n "checking assembler for cfi sections directive... " >&6; } 24095if ${gcc_cv_as_cfi_sections_directive+:} false; then : 24096 $as_echo_n "(cached) " >&6 24097else 24098 gcc_cv_as_cfi_sections_directive=no 24099 if test x$gcc_cv_as != x; then 24100 $as_echo ' .text 24101 .cfi_sections .debug_frame, .eh_frame 24102 .cfi_startproc 24103 .cfi_endproc' > conftest.s 24104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24106 (eval $ac_try) 2>&5 24107 ac_status=$? 24108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24109 test $ac_status = 0; }; } 24110 then 24111 case $target_os in 24112 win32 | pe | cygwin* | mingw32*) 24113 # Need to check that we generated the correct relocation for the 24114 # .debug_frame section. This was fixed for binutils 2.21. 24115 gcc_cv_as_cfi_sections_directive=no 24116 if test "x$gcc_cv_objdump" != x; then 24117 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \ 24118 grep secrel > /dev/null; then 24119 gcc_cv_as_cfi_sections_directive=yes 24120 fi 24121 fi 24122 ;; 24123 *) 24124 gcc_cv_as_cfi_sections_directive=yes 24125 ;; 24126esac 24127 else 24128 echo "configure: failed program was" >&5 24129 cat conftest.s >&5 24130 fi 24131 rm -f conftest.o conftest.s 24132 fi 24133fi 24134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5 24135$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; } 24136 24137 24138 24139 24140cat >>confdefs.h <<_ACEOF 24141#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi` 24142_ACEOF 24143 24144 24145# GAS versions up to and including 2.11.0 may mis-optimize 24146# .eh_frame data. 24147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5 24148$as_echo_n "checking assembler for eh_frame optimization... " >&6; } 24149if ${gcc_cv_as_eh_frame+:} false; then : 24150 $as_echo_n "(cached) " >&6 24151else 24152 gcc_cv_as_eh_frame=no 24153 if test $in_tree_gas = yes; then 24154 if test $in_tree_gas_is_elf = yes \ 24155 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 24156 then gcc_cv_as_eh_frame=yes 24157fi 24158 elif test x$gcc_cv_as != x; then 24159 $as_echo ' .text 24160.LFB1: 24161 .4byte 0 24162.L1: 24163 .4byte 0 24164.LFE1: 24165 .section .eh_frame,"aw",@progbits 24166__FRAME_BEGIN__: 24167 .4byte .LECIE1-.LSCIE1 24168.LSCIE1: 24169 .4byte 0x0 24170 .byte 0x1 24171 .ascii "z\0" 24172 .byte 0x1 24173 .byte 0x78 24174 .byte 0x1a 24175 .byte 0x0 24176 .byte 0x4 24177 .4byte 1 24178 .p2align 1 24179.LECIE1: 24180.LSFDE1: 24181 .4byte .LEFDE1-.LASFDE1 24182.LASFDE1: 24183 .4byte .LASFDE1-__FRAME_BEGIN__ 24184 .4byte .LFB1 24185 .4byte .LFE1-.LFB1 24186 .byte 0x4 24187 .4byte .LFE1-.LFB1 24188 .byte 0x4 24189 .4byte .L1-.LFB1 24190.LEFDE1:' > conftest.s 24191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24193 (eval $ac_try) 2>&5 24194 ac_status=$? 24195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24196 test $ac_status = 0; }; } 24197 then 24198 cat > conftest.lit <<EOF 24199 0000 10000000 00000000 017a0001 781a0004 .........z..x... 24200 0010 01000000 12000000 18000000 00000000 ................ 24201 0020 08000000 04080000 0044 .........D 24202EOF 24203cat > conftest.big <<EOF 24204 0000 00000010 00000000 017a0001 781a0004 .........z..x... 24205 0010 00000001 00000012 00000018 00000000 ................ 24206 0020 00000008 04000000 0844 .........D 24207EOF 24208 # If the assembler didn't choke, and we can objdump, 24209 # and we got the correct data, then succeed. 24210 # The text in the here-document typically retains its unix-style line 24211 # endings, while the output of objdump will use host line endings. 24212 # Therefore, use diff -b for the comparisons. 24213 if test x$gcc_cv_objdump != x \ 24214 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ 24215 | tail -3 > conftest.got \ 24216 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \ 24217 || diff -b conftest.big conftest.got > /dev/null 2>&1; } 24218 then 24219 gcc_cv_as_eh_frame=yes 24220 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null' 24221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24222 (eval $ac_try) 2>&5 24223 ac_status=$? 24224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24225 test $ac_status = 0; }; }; then 24226 gcc_cv_as_eh_frame=buggy 24227 else 24228 # Uh oh, what do we do now? 24229 gcc_cv_as_eh_frame=no 24230 fi 24231 else 24232 echo "configure: failed program was" >&5 24233 cat conftest.s >&5 24234 fi 24235 rm -f conftest.o conftest.s 24236 fi 24237fi 24238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5 24239$as_echo "$gcc_cv_as_eh_frame" >&6; } 24240 24241 24242 24243if test $gcc_cv_as_eh_frame = buggy; then 24244 24245$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h 24246 24247fi 24248 24249# Test if the assembler supports the section flag 'e' or #exclude for 24250# specifying an excluded section. 24251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5 24252$as_echo_n "checking assembler for section exclude flag... " >&6; } 24253if ${gcc_cv_as_section_exclude_e+:} false; then : 24254 $as_echo_n "(cached) " >&6 24255else 24256 gcc_cv_as_section_exclude_e=no 24257 if test $in_tree_gas = yes; then 24258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51` 24259 then gcc_cv_as_section_exclude_e=yes 24260fi 24261 elif test x$gcc_cv_as != x; then 24262 $as_echo '.section foo1,"e" 24263 .byte 0,0,0,0' > conftest.s 24264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24266 (eval $ac_try) 2>&5 24267 ac_status=$? 24268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24269 test $ac_status = 0; }; } 24270 then 24271 gcc_cv_as_section_exclude_e=yes 24272 else 24273 echo "configure: failed program was" >&5 24274 cat conftest.s >&5 24275 fi 24276 rm -f conftest.o conftest.s 24277 fi 24278fi 24279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5 24280$as_echo "$gcc_cv_as_section_exclude_e" >&6; } 24281 24282 24283if test $gcc_cv_as_section_exclude_e = no; then 24284 case "${target}" in 24285 # Solaris as uses #exclude instead. 24286 *-*-solaris2*) 24287 case "${target}" in 24288 sparc*-*-solaris2*) 24289 conftest_s='.section "foo1", #exclude' 24290 ;; 24291 i?86-*-solaris2* | x86_64-*-solaris2*) 24292 conftest_s='.section foo1, #exclude' 24293 ;; 24294 esac 24295 ;; 24296 esac 24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5 24298$as_echo_n "checking assembler for section exclude flag... " >&6; } 24299if ${gcc_cv_as_section_exclude_hash+:} false; then : 24300 $as_echo_n "(cached) " >&6 24301else 24302 gcc_cv_as_section_exclude_hash=no 24303 if test x$gcc_cv_as != x; then 24304 $as_echo "$conftest_s 24305 .byte 0,0,0,0" > conftest.s 24306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24308 (eval $ac_try) 2>&5 24309 ac_status=$? 24310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24311 test $ac_status = 0; }; } 24312 then 24313 gcc_cv_as_section_exclude_hash=yes 24314 else 24315 echo "configure: failed program was" >&5 24316 cat conftest.s >&5 24317 fi 24318 rm -f conftest.o conftest.s 24319 fi 24320fi 24321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5 24322$as_echo "$gcc_cv_as_section_exclude_hash" >&6; } 24323 24324 24325fi 24326 24327cat >>confdefs.h <<_ACEOF 24328#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` 24329_ACEOF 24330 24331 24332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 24333$as_echo_n "checking assembler for section merging support... " >&6; } 24334if ${gcc_cv_as_shf_merge+:} false; then : 24335 $as_echo_n "(cached) " >&6 24336else 24337 gcc_cv_as_shf_merge=no 24338 if test $in_tree_gas = yes; then 24339 if test $in_tree_gas_is_elf = yes \ 24340 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 24341 then gcc_cv_as_shf_merge=yes 24342fi 24343 elif test x$gcc_cv_as != x; then 24344 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s 24345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24347 (eval $ac_try) 2>&5 24348 ac_status=$? 24349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24350 test $ac_status = 0; }; } 24351 then 24352 gcc_cv_as_shf_merge=yes 24353 else 24354 echo "configure: failed program was" >&5 24355 cat conftest.s >&5 24356 fi 24357 rm -f conftest.o conftest.s 24358 fi 24359fi 24360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 24361$as_echo "$gcc_cv_as_shf_merge" >&6; } 24362 24363 24364if test $gcc_cv_as_shf_merge = no; then 24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 24366$as_echo_n "checking assembler for section merging support... " >&6; } 24367if ${gcc_cv_as_shf_merge+:} false; then : 24368 $as_echo_n "(cached) " >&6 24369else 24370 gcc_cv_as_shf_merge=no 24371 if test $in_tree_gas = yes; then 24372 if test $in_tree_gas_is_elf = yes \ 24373 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 24374 then gcc_cv_as_shf_merge=yes 24375fi 24376 elif test x$gcc_cv_as != x; then 24377 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s 24378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24380 (eval $ac_try) 2>&5 24381 ac_status=$? 24382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24383 test $ac_status = 0; }; } 24384 then 24385 gcc_cv_as_shf_merge=yes 24386 else 24387 echo "configure: failed program was" >&5 24388 cat conftest.s >&5 24389 fi 24390 rm -f conftest.o conftest.s 24391 fi 24392fi 24393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 24394$as_echo "$gcc_cv_as_shf_merge" >&6; } 24395 24396 24397fi 24398 24399cat >>confdefs.h <<_ACEOF 24400#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi` 24401_ACEOF 24402 24403 24404gcc_cv_ld_aligned_shf_merge=yes 24405case "$target" in 24406 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for 24407 # alignment > 1. 24408 sparc*-*-solaris2.11*) 24409 if test x"$gnu_ld" = xno \ 24410 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then 24411 gcc_cv_ld_aligned_shf_merge=no 24412 fi 24413 ;; 24414esac 24415 24416cat >>confdefs.h <<_ACEOF 24417#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi` 24418_ACEOF 24419 24420 24421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5 24422$as_echo_n "checking assembler for stabs directive... " >&6; } 24423if ${gcc_cv_as_stabs_directive+:} false; then : 24424 $as_echo_n "(cached) " >&6 24425else 24426 gcc_cv_as_stabs_directive=no 24427 if test x$gcc_cv_as != x; then 24428 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s 24429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24431 (eval $ac_try) 2>&5 24432 ac_status=$? 24433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24434 test $ac_status = 0; }; } 24435 then 24436 gcc_cv_as_stabs_directive=yes 24437 else 24438 echo "configure: failed program was" >&5 24439 cat conftest.s >&5 24440 fi 24441 rm -f conftest.o conftest.s 24442 fi 24443fi 24444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5 24445$as_echo "$gcc_cv_as_stabs_directive" >&6; } 24446if test $gcc_cv_as_stabs_directive = yes; then 24447 24448$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h 24449 24450fi 24451 24452 24453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5 24454$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; } 24455if ${gcc_cv_as_comdat_group+:} false; then : 24456 $as_echo_n "(cached) " >&6 24457else 24458 gcc_cv_as_comdat_group=no 24459 if test $in_tree_gas = yes; then 24460 if test $in_tree_gas_is_elf = yes \ 24461 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 24462 then gcc_cv_as_comdat_group=yes 24463fi 24464 elif test x$gcc_cv_as != x; then 24465 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s 24466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24468 (eval $ac_try) 2>&5 24469 ac_status=$? 24470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24471 test $ac_status = 0; }; } 24472 then 24473 gcc_cv_as_comdat_group=yes 24474 else 24475 echo "configure: failed program was" >&5 24476 cat conftest.s >&5 24477 fi 24478 rm -f conftest.o conftest.s 24479 fi 24480fi 24481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5 24482$as_echo "$gcc_cv_as_comdat_group" >&6; } 24483 24484 24485if test $gcc_cv_as_comdat_group = yes; then 24486 gcc_cv_as_comdat_group_percent=no 24487 gcc_cv_as_comdat_group_group=no 24488else 24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5 24490$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; } 24491if ${gcc_cv_as_comdat_group_percent+:} false; then : 24492 $as_echo_n "(cached) " >&6 24493else 24494 gcc_cv_as_comdat_group_percent=no 24495 if test $in_tree_gas = yes; then 24496 if test $in_tree_gas_is_elf = yes \ 24497 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 24498 then gcc_cv_as_comdat_group_percent=yes 24499fi 24500 elif test x$gcc_cv_as != x; then 24501 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s 24502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24504 (eval $ac_try) 2>&5 24505 ac_status=$? 24506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24507 test $ac_status = 0; }; } 24508 then 24509 gcc_cv_as_comdat_group_percent=yes 24510 else 24511 echo "configure: failed program was" >&5 24512 cat conftest.s >&5 24513 fi 24514 rm -f conftest.o conftest.s 24515 fi 24516fi 24517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5 24518$as_echo "$gcc_cv_as_comdat_group_percent" >&6; } 24519 24520 24521 if test $gcc_cv_as_comdat_group_percent = yes; then 24522 gcc_cv_as_comdat_group_group=no 24523 else 24524 case "${target}" in 24525 # Sun as uses a completely different syntax. 24526 *-*-solaris2*) 24527 case "${target}" in 24528 sparc*-*-solaris2*) 24529 conftest_s=' 24530 .group foo,".text%foo",#comdat 24531 .section ".text%foo", #alloc,#execinstr,#progbits 24532 .globl foo 24533 foo: 24534 ' 24535 ;; 24536 i?86-*-solaris2* | x86_64-*-solaris2*) 24537 conftest_s=' 24538 .group foo,.text%foo,#comdat 24539 .section .text%foo, "ax", @progbits 24540 .globl foo 24541 foo: 24542 ' 24543 ;; 24544 esac 24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5 24546$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; } 24547if ${gcc_cv_as_comdat_group_group+:} false; then : 24548 $as_echo_n "(cached) " >&6 24549else 24550 gcc_cv_as_comdat_group_group=no 24551 if test x$gcc_cv_as != x; then 24552 $as_echo "$conftest_s" > conftest.s 24553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24555 (eval $ac_try) 2>&5 24556 ac_status=$? 24557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24558 test $ac_status = 0; }; } 24559 then 24560 gcc_cv_as_comdat_group_group=yes 24561 else 24562 echo "configure: failed program was" >&5 24563 cat conftest.s >&5 24564 fi 24565 rm -f conftest.o conftest.s 24566 fi 24567fi 24568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5 24569$as_echo "$gcc_cv_as_comdat_group_group" >&6; } 24570 24571 24572 ;; 24573 esac 24574 if test -z "${gcc_cv_as_comdat_group_group+set}"; then 24575 gcc_cv_as_comdat_group_group=no 24576 fi 24577 fi 24578fi 24579if test x"$ld_is_gold" = xyes; then 24580 comdat_group=yes 24581elif test $in_tree_ld = yes ; then 24582 comdat_group=no 24583 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 \ 24584 && test $in_tree_ld_is_elf = yes; then 24585 comdat_group=yes 24586 fi 24587elif echo "$ld_ver" | grep GNU > /dev/null; then 24588 comdat_group=yes 24589 if test 0"$ld_date" -lt 20050308; then 24590 if test -n "$ld_date"; then 24591 # If there was date string, but was earlier than 2005-03-08, fail 24592 comdat_group=no 24593 elif test "$ld_vers_major" -lt 2; then 24594 comdat_group=no 24595 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 24596 comdat_group=no 24597 fi 24598 fi 24599else 24600 case "${target}" in 24601 *-*-solaris2.1[1-9]*) 24602 comdat_group=no 24603 # Sun ld has COMDAT group support since Solaris 9, but it doesn't 24604 # interoperate with GNU as until Solaris 11 build 130, i.e. ld 24605 # version 1.688. 24606 # 24607 # If using Sun as for COMDAT group as emitted by GCC, one needs at 24608 # least ld version 1.2267. 24609 if test "$ld_vers_major" -gt 1; then 24610 comdat_group=yes 24611 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then 24612 comdat_group=yes 24613 elif test "$ld_vers_minor" -ge 2267; then 24614 comdat_group=yes 24615 fi 24616 ;; 24617 *) 24618 # Assume linkers other than GNU ld don't support COMDAT group. 24619 comdat_group=no 24620 ;; 24621 esac 24622fi 24623# Allow overriding the automatic COMDAT group tests above. 24624# Check whether --enable-comdat was given. 24625if test "${enable_comdat+set}" = set; then : 24626 enableval=$enable_comdat; comdat_group="$enable_comdat" 24627fi 24628 24629if test $comdat_group = no; then 24630 gcc_cv_as_comdat_group=no 24631 gcc_cv_as_comdat_group_percent=no 24632 gcc_cv_as_comdat_group_group=no 24633fi 24634 24635cat >>confdefs.h <<_ACEOF 24636#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \ 24637 || test $gcc_cv_as_comdat_group_percent = yes \ 24638 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi` 24639_ACEOF 24640 24641 24642# Restrict this test to Solaris/x86: other targets define this statically. 24643case "${target}" in 24644 i?86-*-solaris2* | x86_64-*-solaris2*) 24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5 24646$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; } 24647 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then 24648 hidden_linkonce=yes 24649 else 24650 case "${target}" in 24651 # Full support for hidden thunks in linkonce sections only appeared in 24652 # Solaris 11/OpenSolaris. 24653 *-*-solaris2.1[1-9]*) 24654 hidden_linkonce=yes 24655 ;; 24656 *) 24657 hidden_linkonce=no 24658 ;; 24659 esac 24660 fi 24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5 24662$as_echo "$hidden_linkonce" >&6; } 24663 24664cat >>confdefs.h <<_ACEOF 24665#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi` 24666_ACEOF 24667 24668 ;; 24669esac 24670 24671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5 24672$as_echo_n "checking assembler for line table is_stmt support... " >&6; } 24673if ${gcc_cv_as_is_stmt+:} false; then : 24674 $as_echo_n "(cached) " >&6 24675else 24676 gcc_cv_as_is_stmt=no 24677 if test $in_tree_gas = yes; then 24678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92` 24679 then gcc_cv_as_is_stmt=yes 24680fi 24681 elif test x$gcc_cv_as != x; then 24682 $as_echo ' .text 24683 .file 1 "conf.c" 24684 .loc 1 1 0 is_stmt 1' > conftest.s 24685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24687 (eval $ac_try) 2>&5 24688 ac_status=$? 24689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24690 test $ac_status = 0; }; } 24691 then 24692 gcc_cv_as_is_stmt=yes 24693 else 24694 echo "configure: failed program was" >&5 24695 cat conftest.s >&5 24696 fi 24697 rm -f conftest.o conftest.s 24698 fi 24699fi 24700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5 24701$as_echo "$gcc_cv_as_is_stmt" >&6; } 24702if test $gcc_cv_as_is_stmt = yes; then 24703 24704$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h 24705 24706fi 24707 24708 24709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5 24710$as_echo_n "checking assembler for line table discriminator support... " >&6; } 24711if ${gcc_cv_as_discriminator+:} false; then : 24712 $as_echo_n "(cached) " >&6 24713else 24714 gcc_cv_as_discriminator=no 24715 if test $in_tree_gas = yes; then 24716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51` 24717 then gcc_cv_as_discriminator=yes 24718fi 24719 elif test x$gcc_cv_as != x; then 24720 $as_echo ' .text 24721 .file 1 "conf.c" 24722 .loc 1 1 0 discriminator 1' > conftest.s 24723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24725 (eval $ac_try) 2>&5 24726 ac_status=$? 24727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24728 test $ac_status = 0; }; } 24729 then 24730 gcc_cv_as_discriminator=yes 24731 else 24732 echo "configure: failed program was" >&5 24733 cat conftest.s >&5 24734 fi 24735 rm -f conftest.o conftest.s 24736 fi 24737fi 24738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5 24739$as_echo "$gcc_cv_as_discriminator" >&6; } 24740if test $gcc_cv_as_discriminator = yes; then 24741 24742$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h 24743 24744fi 24745 24746 24747# Catch the newlib flag of the same name so we can gate GCC features on it. 24748# Check whether --enable-newlib-nano-formatted-io was given. 24749if test "${enable_newlib_nano_formatted_io+set}" = set; then : 24750 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in 24751 yes|no) 24752 ;; 24753 *) 24754 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5 24755 ;; 24756esac 24757fi 24758 24759 24760# Thread-local storage - the check is heavily parameterized. 24761conftest_s= 24762tls_first_major= 24763tls_first_minor= 24764tls_as_opt= 24765case "$target" in 24766 alpha*-*-*) 24767 conftest_s=' 24768 .section ".tdata","awT",@progbits 24769foo: .long 25 24770 .text 24771 ldq $27,__tls_get_addr($29) !literal!1 24772 lda $16,foo($29) !tlsgd!1 24773 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1 24774 ldq $27,__tls_get_addr($29) !literal!2 24775 lda $16,foo($29) !tlsldm!2 24776 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2 24777 ldq $1,foo($29) !gotdtprel 24778 ldah $2,foo($29) !dtprelhi 24779 lda $3,foo($2) !dtprello 24780 lda $4,foo($29) !dtprel 24781 ldq $1,foo($29) !gottprel 24782 ldah $2,foo($29) !tprelhi 24783 lda $3,foo($2) !tprello 24784 lda $4,foo($29) !tprel' 24785 tls_first_major=2 24786 tls_first_minor=13 24787 tls_as_opt=--fatal-warnings 24788 ;; 24789 arc*-*-*) 24790 conftest_s=' 24791 add_s r0,r0, @foo@tpoff' 24792 tls_first_major=2 24793 tls_first_minor=23 24794 ;; 24795 cris-*-*|crisv32-*-*) 24796 conftest_s=' 24797 .section ".tdata","awT",@progbits 24798x: .long 25 24799 .text 24800 move.d x:IE,$r10 24801 nop' 24802 tls_first_major=2 24803 tls_first_minor=20 24804 tls_as_opt=--fatal-warnings 24805 ;; 24806 frv*-*-*) 24807 conftest_s=' 24808 .section ".tdata","awT",@progbits 24809x: .long 25 24810 .text 24811 call #gettlsoff(x)' 24812 tls_first_major=2 24813 tls_first_minor=14 24814 ;; 24815 hppa*-*-linux* | hppa*-*-netbsd*) 24816 conftest_s=' 24817t1: .reg %r20 24818t2: .reg %r21 24819gp: .reg %r19 24820 .section ".tdata","awT",@progbits 24821foo: .long 25 24822 .text 24823 .align 4 24824 addil LT%foo-$tls_gdidx$,gp 24825 ldo RT%foo-$tls_gdidx$(%r1),%arg0 24826 b __tls_get_addr 24827 nop 24828 addil LT%foo-$tls_ldidx$,gp 24829 b __tls_get_addr 24830 ldo RT%foo-$tls_ldidx$(%r1),%arg0 24831 addil LR%foo-$tls_dtpoff$,%ret0 24832 ldo RR%foo-$tls_dtpoff$(%r1),%t1 24833 mfctl %cr27,%t1 24834 addil LT%foo-$tls_ieoff$,gp 24835 ldw RT%foo-$tls_ieoff$(%r1),%t2 24836 add %t1,%t2,%t3 24837 mfctl %cr27,%t1 24838 addil LR%foo-$tls_leoff$,%t1 24839 ldo RR%foo-$tls_leoff$(%r1),%t2' 24840 tls_first_major=2 24841 tls_first_minor=15 24842 tls_as_opt=--fatal-warnings 24843 ;; 24844 arm*-*-*) 24845 conftest_s=' 24846 .section ".tdata","awT",%progbits 24847foo: .long 25 24848 .text 24849.word foo(gottpoff) 24850.word foo(tpoff) 24851.word foo(tlsgd) 24852.word foo(tlsldm) 24853.word foo(tlsldo)' 24854 tls_first_major=2 24855 tls_first_minor=17 24856 ;; 24857 i[34567]86-*-* | x86_64-*-*) 24858 case "$target" in 24859 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*) 24860 on_solaris=yes 24861 ;; 24862 *) 24863 on_solaris=no 24864 ;; 24865 esac 24866 if test x$on_solaris = xyes && test x$gas_flag = xno; then 24867 conftest_s=' 24868 .section .tdata,"awt",@progbits' 24869 tls_first_major=0 24870 tls_first_minor=0 24871 tls_section_flag=t 24872 24873$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h 24874 24875 else 24876 conftest_s=' 24877 .section ".tdata","awT",@progbits' 24878 tls_first_major=2 24879 tls_first_minor=14 24880 tls_section_flag=T 24881 tls_as_opt="--fatal-warnings" 24882 fi 24883 case "$target" in 24884 i[34567]86-*-*) 24885 if test x$on_solaris = xyes; then 24886 case $gas_flag in 24887 yes) tls_as_opt="$tls_as_opt --32" ;; 24888 esac 24889 fi 24890 conftest_s="$conftest_s 24891foo: .long 25 24892 .text 24893 movl %gs:0, %eax 24894 leal foo@tlsgd(,%ebx,1), %eax 24895 leal foo@tlsldm(%ebx), %eax 24896 leal foo@dtpoff(%eax), %edx 24897 movl foo@gottpoff(%ebx), %eax 24898 subl foo@gottpoff(%ebx), %eax 24899 addl foo@gotntpoff(%ebx), %eax 24900 movl foo@indntpoff, %eax 24901 movl \$foo@tpoff, %eax 24902 subl \$foo@tpoff, %eax 24903 leal foo@ntpoff(%ecx), %eax" 24904 ;; 24905 x86_64-*-*) 24906 if test x$on_solaris = xyes; then 24907 case $gas_flag in 24908 yes) tls_as_opt="$tls_as_opt --64" ;; 24909 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;; 24910 esac 24911 fi 24912 conftest_s="$conftest_s 24913foo: .long 25 24914 .text 24915 movq %fs:0, %rax 24916 leaq foo@tlsgd(%rip), %rdi 24917 leaq foo@tlsld(%rip), %rdi 24918 leaq foo@dtpoff(%rax), %rdx 24919 movq foo@gottpoff(%rip), %rax 24920 movq \$foo@tpoff, %rax" 24921 ;; 24922 esac 24923 ;; 24924 ia64-*-*) 24925 conftest_s=' 24926 .section ".tdata","awT",@progbits 24927foo: data8 25 24928 .text 24929 addl r16 = @ltoff(@dtpmod(foo#)), gp 24930 addl r17 = @ltoff(@dtprel(foo#)), gp 24931 addl r18 = @ltoff(@tprel(foo#)), gp 24932 addl r19 = @dtprel(foo#), gp 24933 adds r21 = @dtprel(foo#), r13 24934 movl r23 = @dtprel(foo#) 24935 addl r20 = @tprel(foo#), gp 24936 adds r22 = @tprel(foo#), r13 24937 movl r24 = @tprel(foo#)' 24938 tls_first_major=2 24939 tls_first_minor=13 24940 tls_as_opt=--fatal-warnings 24941 ;; 24942 microblaze*-*-*) 24943 conftest_s=' 24944 .section .tdata,"awT",@progbits 24945x: 24946 .word 2 24947 .text 24948 addik r5,r20,x@TLSGD 24949 addik r5,r20,x@TLSLDM' 24950 tls_first_major=2 24951 tls_first_minor=20 24952 tls_as_opt='--fatal-warnings' 24953 ;; 24954 mips*-*-*) 24955 conftest_s=' 24956 .section .tdata,"awT",@progbits 24957x: 24958 .word 2 24959 .text 24960 addiu $4, $28, %tlsgd(x) 24961 addiu $4, $28, %tlsldm(x) 24962 lui $4, %dtprel_hi(x) 24963 addiu $4, $4, %dtprel_lo(x) 24964 lw $4, %gottprel(x)($28) 24965 lui $4, %tprel_hi(x) 24966 addiu $4, $4, %tprel_lo(x)' 24967 tls_first_major=2 24968 tls_first_minor=16 24969 tls_as_opt='-32 --fatal-warnings' 24970 ;; 24971 m68k-*-*|m5407-*-*) 24972 conftest_s=' 24973 .section .tdata,"awT",@progbits 24974x: 24975 .word 2 24976 .text 24977foo: 24978 move.l x@TLSGD(%a5),%a0 24979 move.l x@TLSLDM(%a5),%a0 24980 move.l x@TLSLDO(%a5),%a0 24981 move.l x@TLSIE(%a5),%a0 24982 move.l x@TLSLE(%a5),%a0' 24983 tls_first_major=2 24984 tls_first_minor=19 24985 tls_as_opt='--fatal-warnings' 24986 ;; 24987 nios2-*-*) 24988 conftest_s=' 24989 .section ".tdata","awT",@progbits' 24990 tls_first_major=2 24991 tls_first_minor=23 24992 tls_as_opt="--fatal-warnings" 24993 ;; 24994 aarch64*-*-*) 24995 conftest_s=' 24996 .section ".tdata","awT",%progbits 24997foo: .long 25 24998 .text 24999 adrp x0, :tlsgd:x 25000 add x0, x0, #:tlsgd_lo12:x 25001 bl __tls_get_addr 25002 nop' 25003 tls_first_major=2 25004 tls_first_minor=20 25005 tls_as_opt='--fatal-warnings' 25006 ;; 25007 or1k*-*-*) 25008 conftest_s=' 25009 .section ".tdata","awT",@progbits 25010foo: .long 25 25011 .text 25012 l.movhi r3, tpoffha(foo) 25013 l.add r3, r3, r10 25014 l.lwz r4, tpofflo(foo)(r3)' 25015 tls_first_major=2 25016 tls_first_minor=30 25017 tls_as_opt=--fatal-warnings 25018 ;; 25019 powerpc-ibm-aix*) 25020 conftest_s=' 25021 .extern __get_tpointer 25022 .toc 25023LC..1: 25024 .tc a[TC],a[TL]@le 25025 .csect .text[PR] 25026.tlstest: 25027 lwz 9,LC..1(2) 25028 bla __get_tpointer 25029 lwzx 3,9,3 25030 .globl a 25031 .csect a[TL],4 25032a: 25033 .space 4' 25034 tls_first_major=0 25035 tls_first_minor=0 25036 ;; 25037 powerpc64*-*-*) 25038 conftest_s=' 25039 .section ".tdata","awT",@progbits 25040 .align 3 25041ld0: .space 8 25042ld1: .space 8 25043x1: .space 8 25044x2: .space 8 25045x3: .space 8 25046 .text 25047 addi 3,2,ld0@got@tlsgd 25048 bl .__tls_get_addr 25049 nop 25050 addi 3,2,ld1@toc 25051 bl .__tls_get_addr 25052 nop 25053 addi 3,2,x1@got@tlsld 25054 bl .__tls_get_addr 25055 nop 25056 addi 9,3,x1@dtprel 25057 bl .__tls_get_addr 25058 nop 25059 addis 9,3,x2@dtprel@ha 25060 addi 9,9,x2@dtprel@l 25061 bl .__tls_get_addr 25062 nop 25063 ld 9,x3@got@dtprel(2) 25064 add 9,9,3 25065 bl .__tls_get_addr 25066 nop' 25067 tls_first_major=2 25068 tls_first_minor=14 25069 tls_as_opt="-a64 --fatal-warnings" 25070 ;; 25071 powerpc*-*-*) 25072 conftest_s=' 25073 .section ".tdata","awT",@progbits 25074 .align 2 25075ld0: .space 4 25076ld1: .space 4 25077x1: .space 4 25078x2: .space 4 25079x3: .space 4 25080 .text 25081 addi 3,31,ld0@got@tlsgd 25082 bl __tls_get_addr 25083 addi 3,31,x1@got@tlsld 25084 bl __tls_get_addr 25085 addi 9,3,x1@dtprel 25086 addis 9,3,x2@dtprel@ha 25087 addi 9,9,x2@dtprel@l 25088 lwz 9,x3@got@tprel(31) 25089 add 9,9,x@tls 25090 addi 9,2,x1@tprel 25091 addis 9,2,x2@tprel@ha 25092 addi 9,9,x2@tprel@l' 25093 tls_first_major=2 25094 tls_first_minor=14 25095 tls_as_opt="-a32 --fatal-warnings" 25096 ;; 25097 riscv*-*-*) 25098 conftest_s=' 25099 .section .tdata,"awT",@progbits 25100x: .word 2 25101 .text 25102 la.tls.gd a0,x 25103 call __tls_get_addr' 25104 tls_first_major=2 25105 tls_first_minor=21 25106 tls_as_opt='--fatal-warnings' 25107 ;; 25108 s390-*-*) 25109 conftest_s=' 25110 .section ".tdata","awT",@progbits 25111foo: .long 25 25112 .text 25113 .long foo@TLSGD 25114 .long foo@TLSLDM 25115 .long foo@DTPOFF 25116 .long foo@NTPOFF 25117 .long foo@GOTNTPOFF 25118 .long foo@INDNTPOFF 25119 l %r1,foo@GOTNTPOFF(%r12) 25120 l %r1,0(%r1):tls_load:foo 25121 bas %r14,0(%r1,%r13):tls_gdcall:foo 25122 bas %r14,0(%r1,%r13):tls_ldcall:foo' 25123 tls_first_major=2 25124 tls_first_minor=14 25125 tls_as_opt="-m31 --fatal-warnings" 25126 ;; 25127 s390x-*-*) 25128 conftest_s=' 25129 .section ".tdata","awT",@progbits 25130foo: .long 25 25131 .text 25132 .quad foo@TLSGD 25133 .quad foo@TLSLDM 25134 .quad foo@DTPOFF 25135 .quad foo@NTPOFF 25136 .quad foo@GOTNTPOFF 25137 lg %r1,foo@GOTNTPOFF(%r12) 25138 larl %r1,foo@INDNTPOFF 25139 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo 25140 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo' 25141 tls_first_major=2 25142 tls_first_minor=14 25143 tls_as_opt="-m64 -Aesame --fatal-warnings" 25144 ;; 25145 sh-*-* | sh[34]-*-* | sh*l*-*-*) 25146 conftest_s=' 25147 .section ".tdata","awT",@progbits 25148foo: .long 25 25149 .text 25150 .long foo@TLSGD 25151 .long foo@TLSLDM 25152 .long foo@DTPOFF 25153 .long foo@GOTTPOFF 25154 .long foo@TPOFF' 25155 tls_first_major=2 25156 tls_first_minor=13 25157 tls_as_opt=--fatal-warnings 25158 ;; 25159 sparc*-*-*) 25160 case "$target" in 25161 sparc*-sun-solaris2.*) 25162 on_solaris=yes 25163 ;; 25164 *) 25165 on_solaris=no 25166 ;; 25167 esac 25168 if test x$on_solaris = xyes && test x$gas_flag = xno; then 25169 conftest_s=' 25170 .section ".tdata",#alloc,#write,#tls' 25171 tls_first_major=0 25172 tls_first_minor=0 25173 else 25174 conftest_s=' 25175 .section ".tdata","awT",@progbits' 25176 tls_first_major=2 25177 tls_first_minor=14 25178 tls_as_opt="-32 --fatal-warnings" 25179 fi 25180 conftest_s="$conftest_s 25181foo: .long 25 25182 .text 25183 sethi %tgd_hi22(foo), %o0 25184 add %o0, %tgd_lo10(foo), %o1 25185 add %l7, %o1, %o0, %tgd_add(foo) 25186 call __tls_get_addr, %tgd_call(foo) 25187 sethi %tldm_hi22(foo), %l1 25188 add %l1, %tldm_lo10(foo), %l2 25189 add %l7, %l2, %o0, %tldm_add(foo) 25190 call __tls_get_addr, %tldm_call(foo) 25191 sethi %tldo_hix22(foo), %l3 25192 xor %l3, %tldo_lox10(foo), %l4 25193 add %o0, %l4, %l5, %tldo_add(foo) 25194 sethi %tie_hi22(foo), %o3 25195 add %o3, %tie_lo10(foo), %o3 25196 ld [%l7 + %o3], %o2, %tie_ld(foo) 25197 add %g7, %o2, %o4, %tie_add(foo) 25198 sethi %tle_hix22(foo), %l1 25199 xor %l1, %tle_lox10(foo), %o5 25200 ld [%g7 + %o5], %o1" 25201 ;; 25202 tilepro*-*-*) 25203 conftest_s=' 25204 .section ".tdata","awT",@progbits 25205foo: .long 25 25206 .text 25207 addli r0, zero, tls_gd(foo) 25208 auli r0, zero, tls_gd_ha16(foo) 25209 addli r0, r0, tls_gd_lo16(foo) 25210 jal __tls_get_addr 25211 addli r0, zero, tls_ie(foo) 25212 auli r0, r0, tls_ie_ha16(foo) 25213 addli r0, r0, tls_ie_lo16(foo)' 25214 tls_first_major=2 25215 tls_first_minor=22 25216 tls_as_opt="--fatal-warnings" 25217 ;; 25218 tilegx*-*-*) 25219 conftest_s=' 25220 .section ".tdata","awT",@progbits 25221foo: .long 25 25222 .text 25223 shl16insli r0, zero, hw0_last_tls_gd(foo) 25224 shl16insli r0, zero, hw1_last_tls_gd(foo) 25225 shl16insli r0, r0, hw0_tls_gd(foo) 25226 jal __tls_get_addr 25227 shl16insli r0, zero, hw1_last_tls_ie(foo) 25228 shl16insli r0, r0, hw0_tls_ie(foo)' 25229 tls_first_major=2 25230 tls_first_minor=22 25231 tls_as_opt="--fatal-warnings" 25232 ;; 25233 xtensa*-*-*) 25234 conftest_s=' 25235 .section ".tdata","awT",@progbits 25236foo: .long 25 25237 .text 25238 movi a8, foo@TLSFUNC 25239 movi a10, foo@TLSARG 25240 callx8.tls a8, foo@TLSCALL' 25241 tls_first_major=2 25242 tls_first_minor=19 25243 ;; 25244esac 25245set_have_as_tls=no 25246if test "x$enable_tls" = xno ; then 25247 : # TLS explicitly disabled. 25248elif test "x$enable_tls" = xyes ; then 25249 set_have_as_tls=yes # TLS explicitly enabled. 25250elif test -z "$tls_first_major"; then 25251 : # If we don't have a check, assume no support. 25252else 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5 25254$as_echo_n "checking assembler for thread-local storage support... " >&6; } 25255if ${gcc_cv_as_tls+:} false; then : 25256 $as_echo_n "(cached) " >&6 25257else 25258 gcc_cv_as_tls=no 25259 if test $in_tree_gas = yes; then 25260 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0` 25261 then gcc_cv_as_tls=yes 25262fi 25263 elif test x$gcc_cv_as != x; then 25264 $as_echo "$conftest_s" > conftest.s 25265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5' 25266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25267 (eval $ac_try) 2>&5 25268 ac_status=$? 25269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25270 test $ac_status = 0; }; } 25271 then 25272 gcc_cv_as_tls=yes 25273 else 25274 echo "configure: failed program was" >&5 25275 cat conftest.s >&5 25276 fi 25277 rm -f conftest.o conftest.s 25278 fi 25279fi 25280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5 25281$as_echo "$gcc_cv_as_tls" >&6; } 25282if test $gcc_cv_as_tls = yes; then 25283 set_have_as_tls=yes 25284fi 25285 25286fi 25287if test $set_have_as_tls = yes ; then 25288 25289$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h 25290 25291fi 25292 25293# Target-specific assembler checks. 25294 25295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5 25296$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; } 25297gcc_cv_ld_static_dynamic=no 25298gcc_cv_ld_static_option='-Bstatic' 25299gcc_cv_ld_dynamic_option='-Bdynamic' 25300if test $in_tree_ld = yes ; then 25301 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 25302 gcc_cv_ld_static_dynamic=yes 25303 fi 25304elif test x$gcc_cv_ld != x; then 25305 # Check if linker supports -Bstatic/-Bdynamic option 25306 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \ 25307 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then 25308 gcc_cv_ld_static_dynamic=yes 25309 else 25310 case "$target" in 25311 # AIX ld uses -b flags 25312 *-*-aix4.[23]* | *-*-aix[5-9]*) 25313 gcc_cv_ld_static_dynamic=yes 25314 gcc_cv_ld_static_option="-bstatic" 25315 gcc_cv_ld_dynamic_option="-bdynamic" 25316 ;; 25317 # HP-UX ld uses -a flags to select between shared and archive. 25318 *-*-hpux*) 25319 if test x"$gnu_ld" = xno; then 25320 gcc_cv_ld_static_dynamic=yes 25321 gcc_cv_ld_static_option="-aarchive_shared" 25322 gcc_cv_ld_dynamic_option="-adefault" 25323 fi 25324 ;; 25325 # Solaris 2 ld always supports -Bstatic/-Bdynamic. 25326 *-*-solaris2*) 25327 gcc_cv_ld_static_dynamic=yes 25328 ;; 25329 esac 25330 fi 25331fi 25332if test x"$gcc_cv_ld_static_dynamic" = xyes; then 25333 25334$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h 25335 25336 25337cat >>confdefs.h <<_ACEOF 25338#define LD_STATIC_OPTION "$gcc_cv_ld_static_option" 25339_ACEOF 25340 25341 25342cat >>confdefs.h <<_ACEOF 25343#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option" 25344_ACEOF 25345 25346fi 25347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5 25348$as_echo "$gcc_cv_ld_static_dynamic" >&6; } 25349 25350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5 25351$as_echo_n "checking linker --version-script option... " >&6; } 25352gcc_cv_ld_version_script=no 25353ld_version_script_option='' 25354if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then 25355 gcc_cv_ld_version_script=yes 25356 ld_version_script_option='--version-script' 25357elif test x$gcc_cv_ld != x; then 25358 case "$target" in 25359 # Solaris 2 ld always supports -M. It also supports a subset of 25360 # --version-script since Solaris 11.4, but requires 25361 # -z gnu-version-script-compat to activate. 25362 *-*-solaris2*) 25363 gcc_cv_ld_version_script=yes 25364 ld_version_script_option='-M' 25365 ;; 25366 esac 25367fi 25368# Don't AC_DEFINE result, only used in jit/Make-lang.in so far. 25369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5 25370$as_echo "$gcc_cv_ld_version_script" >&6; } 25371 25372 25373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5 25374$as_echo_n "checking linker soname option... " >&6; } 25375gcc_cv_ld_soname=no 25376if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then 25377 gcc_cv_ld_soname=yes 25378 ld_soname_option='-soname' 25379elif test x$gcc_cv_ld != x; then 25380 case "$target" in 25381 *-*-darwin*) 25382 gcc_cv_ld_soname=yes 25383 ld_soname_option='-install_name' 25384 ;; 25385 # Solaris 2 ld always supports -h. It also supports --soname for GNU 25386 # ld compatiblity since some Solaris 10 update. 25387 *-*-solaris2*) 25388 gcc_cv_ld_soname=yes 25389 ld_soname_option='-h' 25390 ;; 25391 esac 25392fi 25393# Don't AC_DEFINE result, only used in jit/Make-lang.in so far. 25394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5 25395$as_echo "$gcc_cv_ld_soname" >&6; } 25396 25397 25398if test x"$demangler_in_ld" = xyes; then 25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5 25400$as_echo_n "checking linker --demangle support... " >&6; } 25401 gcc_cv_ld_demangle=no 25402 if test $in_tree_ld = yes; then 25403 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 \ 25404 gcc_cv_ld_demangle=yes 25405 fi 25406 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then 25407 # Check if the GNU linker supports --demangle option 25408 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then 25409 gcc_cv_ld_demangle=yes 25410 fi 25411 fi 25412 if test x"$gcc_cv_ld_demangle" = xyes; then 25413 25414$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h 25415 25416 fi 25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5 25418$as_echo "$gcc_cv_ld_demangle" >&6; } 25419fi 25420 25421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5 25422$as_echo_n "checking linker plugin support... " >&6; } 25423gcc_cv_lto_plugin=0 25424if test -f liblto_plugin.la; then 25425 save_ld_ver="$ld_ver" 25426 save_ld_vers_major="$ld_vers_major" 25427 save_ld_vers_minor="$ld_vers_minor" 25428 save_ld_is_gold="$ld_is_gold" 25429 25430 ld_is_gold=no 25431 25432 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then 25433 ld_ver="GNU ld" 25434 # FIXME: ld_is_gold? 25435 ld_vers_major="$gcc_cv_gld_major_version" 25436 ld_vers_minor="$gcc_cv_gld_minor_version" 25437 else 25438 # Determine plugin linker version. 25439 # FIXME: Partial duplicate from above, generalize. 25440 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q` 25441 if echo "$ld_ver" | grep GNU > /dev/null; then 25442 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then 25443 ld_is_gold=yes 25444 ld_vers=`echo $ld_ver | sed -n \ 25445 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 25446 else 25447 ld_vers=`echo $ld_ver | sed -n \ 25448 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 25449 fi 25450 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 25451 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 25452 fi 25453 fi 25454 25455 # Determine plugin support. 25456 if echo "$ld_ver" | grep GNU > /dev/null; then 25457 # Require GNU ld or gold 2.21+ for plugin support by default. 25458 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then 25459 gcc_cv_lto_plugin=2 25460 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20. 25461 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then 25462 gcc_cv_lto_plugin=1 25463 fi 25464 fi 25465 25466 ld_ver="$save_ld_ver" 25467 ld_vers_major="$save_ld_vers_major" 25468 ld_vers_minor="$save_ld_vers_minor" 25469 ld_is_gold="$save_ld_is_gold" 25470fi 25471 25472cat >>confdefs.h <<_ACEOF 25473#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin 25474_ACEOF 25475 25476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5 25477$as_echo "$gcc_cv_lto_plugin" >&6; } 25478 25479# Target OS-specific assembler checks. 25480 25481case "$target_os" in 25482 darwin*) 25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5 25484$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; } 25485if ${gcc_cv_as_mmacosx_version_min+:} false; then : 25486 $as_echo_n "(cached) " >&6 25487else 25488 gcc_cv_as_mmacosx_version_min=no 25489 if test x$gcc_cv_as != x; then 25490 $as_echo '.text' > conftest.s 25491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5' 25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25493 (eval $ac_try) 2>&5 25494 ac_status=$? 25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25496 test $ac_status = 0; }; } 25497 then 25498 gcc_cv_as_mmacosx_version_min=yes 25499 else 25500 echo "configure: failed program was" >&5 25501 cat conftest.s >&5 25502 fi 25503 rm -f conftest.o conftest.s 25504 fi 25505fi 25506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5 25507$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; } 25508if test $gcc_cv_as_mmacosx_version_min = yes; then 25509 25510$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h 25511 25512fi 25513 25514 ;; 25515esac 25516 25517# Target CPU-specific assembler checks. 25518 25519case "$target" in 25520 aarch64*-*-*) 25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5 25522$as_echo_n "checking assembler for -mabi option... " >&6; } 25523if ${gcc_cv_as_aarch64_mabi+:} false; then : 25524 $as_echo_n "(cached) " >&6 25525else 25526 gcc_cv_as_aarch64_mabi=no 25527 if test x$gcc_cv_as != x; then 25528 $as_echo '.text' > conftest.s 25529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5' 25530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25531 (eval $ac_try) 2>&5 25532 ac_status=$? 25533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25534 test $ac_status = 0; }; } 25535 then 25536 gcc_cv_as_aarch64_mabi=yes 25537 else 25538 echo "configure: failed program was" >&5 25539 cat conftest.s >&5 25540 fi 25541 rm -f conftest.o conftest.s 25542 fi 25543fi 25544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5 25545$as_echo "$gcc_cv_as_aarch64_mabi" >&6; } 25546 25547 25548 if test x$gcc_cv_as_aarch64_mabi = xyes; then 25549 25550$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h 25551 25552 else 25553 if test x$with_abi = xilp32; then 25554 as_fn_error $? "Assembler does not support -mabi=ilp32.\ 25555 Upgrade the Assembler." "$LINENO" 5 25556 fi 25557 if test x"$with_multilib_list" = xdefault; then 25558 TM_MULTILIB_CONFIG=lp64 25559 else 25560 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'` 25561 for aarch64_multilib in ${aarch64_multilibs}; do 25562 case ${aarch64_multilib} in 25563 ilp32) 25564 as_fn_error $? "Assembler does not support -mabi=ilp32.\ 25565 Upgrade the Assembler." "$LINENO" 5 25566 ;; 25567 *) 25568 ;; 25569 esac 25570 done 25571 fi 25572 fi 25573 # Check if we have binutils support for relocations types needed by -fpic 25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5 25575$as_echo_n "checking assembler for -fpic relocs... " >&6; } 25576if ${gcc_cv_as_aarch64_picreloc+:} false; then : 25577 $as_echo_n "(cached) " >&6 25578else 25579 gcc_cv_as_aarch64_picreloc=no 25580 if test x$gcc_cv_as != x; then 25581 $as_echo ' 25582 .text 25583 ldr x0, [x2, #:gotpage_lo15:globalsym] 25584 ' > conftest.s 25585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25587 (eval $ac_try) 2>&5 25588 ac_status=$? 25589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25590 test $ac_status = 0; }; } 25591 then 25592 gcc_cv_as_aarch64_picreloc=yes 25593 else 25594 echo "configure: failed program was" >&5 25595 cat conftest.s >&5 25596 fi 25597 rm -f conftest.o conftest.s 25598 fi 25599fi 25600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5 25601$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; } 25602if test $gcc_cv_as_aarch64_picreloc = yes; then 25603 25604$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h 25605 25606fi 25607 25608 # Enable Branch Target Identification Mechanism and Return Address 25609 # Signing by default. 25610 # Check whether --enable-standard-branch-protection was given. 25611if test "${enable_standard_branch_protection+set}" = set; then : 25612 enableval=$enable_standard_branch_protection; 25613 case $enableval in 25614 yes) 25615 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1" 25616 ;; 25617 no) 25618 ;; 25619 *) 25620 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\ 25621 Valid choices are 'yes' and 'no'." "$LINENO" 5 25622 ;; 25623 esac 25624 25625fi 25626 25627 # Enable default workaround for AArch64 Cortex-A53 erratum 835769. 25628 # Check whether --enable-fix-cortex-a53-835769 was given. 25629if test "${enable_fix_cortex_a53_835769+set}" = set; then : 25630 enableval=$enable_fix_cortex_a53_835769; 25631 case $enableval in 25632 yes) 25633 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1" 25634 ;; 25635 no) 25636 ;; 25637 *) 25638 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\ 25639 Valid choices are 'yes' and 'no'." "$LINENO" 5 25640 ;; 25641 25642 esac 25643 25644fi 25645 25646 # Enable default workaround for AArch64 Cortex-A53 erratum 843419. 25647 # Check whether --enable-fix-cortex-a53-843419 was given. 25648if test "${enable_fix_cortex_a53_843419+set}" = set; then : 25649 enableval=$enable_fix_cortex_a53_843419; 25650 case $enableval in 25651 yes) 25652 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1" 25653 ;; 25654 no) 25655 ;; 25656 *) 25657 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\ 25658 Valid choices are 'yes' and 'no'." "$LINENO" 5 25659 ;; 25660 25661 esac 25662 25663fi 25664 25665 ;; 25666 25667 # All TARGET_ABI_OSF targets. 25668 alpha*-*-linux* | alpha*-*-*bsd*) 25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5 25670$as_echo_n "checking assembler for explicit relocation support... " >&6; } 25671if ${gcc_cv_as_alpha_explicit_relocs+:} false; then : 25672 $as_echo_n "(cached) " >&6 25673else 25674 gcc_cv_as_alpha_explicit_relocs=no 25675 if test $in_tree_gas = yes; then 25676 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 25677 then gcc_cv_as_alpha_explicit_relocs=yes 25678fi 25679 elif test x$gcc_cv_as != x; then 25680 $as_echo ' .set nomacro 25681 .text 25682 extbl $3, $2, $3 !lituse_bytoff!1 25683 ldq $2, a($29) !literal!1 25684 ldq $4, b($29) !literal!2 25685 ldq_u $3, 0($2) !lituse_base!1 25686 ldq $27, f($29) !literal!5 25687 jsr $26, ($27), f !lituse_jsr!5 25688 ldah $29, 0($26) !gpdisp!3 25689 lda $0, c($29) !gprel 25690 ldah $1, d($29) !gprelhigh 25691 lda $1, d($1) !gprellow 25692 lda $29, 0($29) !gpdisp!3' > conftest.s 25693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25695 (eval $ac_try) 2>&5 25696 ac_status=$? 25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25698 test $ac_status = 0; }; } 25699 then 25700 gcc_cv_as_alpha_explicit_relocs=yes 25701 else 25702 echo "configure: failed program was" >&5 25703 cat conftest.s >&5 25704 fi 25705 rm -f conftest.o conftest.s 25706 fi 25707fi 25708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5 25709$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; } 25710if test $gcc_cv_as_alpha_explicit_relocs = yes; then 25711 25712$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h 25713 25714fi 25715 25716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5 25717$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; } 25718if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then : 25719 $as_echo_n "(cached) " >&6 25720else 25721 gcc_cv_as_alpha_jsrdirect_relocs=no 25722 if test $in_tree_gas = yes; then 25723 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90` 25724 then gcc_cv_as_alpha_jsrdirect_relocs=yes 25725fi 25726 elif test x$gcc_cv_as != x; then 25727 $as_echo ' .set nomacro 25728 .text 25729 ldq $27, a($29) !literal!1 25730 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s 25731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25733 (eval $ac_try) 2>&5 25734 ac_status=$? 25735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25736 test $ac_status = 0; }; } 25737 then 25738 gcc_cv_as_alpha_jsrdirect_relocs=yes 25739 else 25740 echo "configure: failed program was" >&5 25741 cat conftest.s >&5 25742 fi 25743 rm -f conftest.o conftest.s 25744 fi 25745fi 25746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5 25747$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; } 25748if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then 25749 25750$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h 25751 25752fi 25753 25754 ;; 25755 25756 avr-*-*) 25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5 25758$as_echo_n "checking assembler for --mlink-relax option... " >&6; } 25759if ${gcc_cv_as_avr_mlink_relax+:} false; then : 25760 $as_echo_n "(cached) " >&6 25761else 25762 gcc_cv_as_avr_mlink_relax=no 25763 if test x$gcc_cv_as != x; then 25764 $as_echo '.text' > conftest.s 25765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5' 25766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25767 (eval $ac_try) 2>&5 25768 ac_status=$? 25769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25770 test $ac_status = 0; }; } 25771 then 25772 gcc_cv_as_avr_mlink_relax=yes 25773 else 25774 echo "configure: failed program was" >&5 25775 cat conftest.s >&5 25776 fi 25777 rm -f conftest.o conftest.s 25778 fi 25779fi 25780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5 25781$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; } 25782if test $gcc_cv_as_avr_mlink_relax = yes; then 25783 25784$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h 25785 25786fi 25787 25788 25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5 25790$as_echo_n "checking assembler for -mrmw option... " >&6; } 25791if ${gcc_cv_as_avr_mrmw+:} false; then : 25792 $as_echo_n "(cached) " >&6 25793else 25794 gcc_cv_as_avr_mrmw=no 25795 if test x$gcc_cv_as != x; then 25796 $as_echo '.text' > conftest.s 25797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5' 25798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25799 (eval $ac_try) 2>&5 25800 ac_status=$? 25801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25802 test $ac_status = 0; }; } 25803 then 25804 gcc_cv_as_avr_mrmw=yes 25805 else 25806 echo "configure: failed program was" >&5 25807 cat conftest.s >&5 25808 fi 25809 rm -f conftest.o conftest.s 25810 fi 25811fi 25812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5 25813$as_echo "$gcc_cv_as_avr_mrmw" >&6; } 25814if test $gcc_cv_as_avr_mrmw = yes; then 25815 25816$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h 25817 25818fi 25819 25820 25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5 25822$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; } 25823if ${gcc_cv_as_avr_mgccisr+:} false; then : 25824 $as_echo_n "(cached) " >&6 25825else 25826 gcc_cv_as_avr_mgccisr=no 25827 if test x$gcc_cv_as != x; then 25828 $as_echo '.text 25829 __gcc_isr 1 25830 __gcc_isr 2 25831 __gcc_isr 0,r24 25832 ' > conftest.s 25833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5' 25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25835 (eval $ac_try) 2>&5 25836 ac_status=$? 25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25838 test $ac_status = 0; }; } 25839 then 25840 gcc_cv_as_avr_mgccisr=yes 25841 else 25842 echo "configure: failed program was" >&5 25843 cat conftest.s >&5 25844 fi 25845 rm -f conftest.o conftest.s 25846 fi 25847fi 25848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5 25849$as_echo "$gcc_cv_as_avr_mgccisr" >&6; } 25850if test $gcc_cv_as_avr_mgccisr = yes; then 25851 25852$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h 25853 25854fi 25855 25856 25857 # Check how default linker description file implements .rodata for 25858 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to 25859 # RAM so avr-gcc skips __do_copy_data for .rodata objects. 25860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5 25861$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; } 25862 cat > conftest.s <<EOF 25863 .section .rodata,"a",@progbits 25864 .global xxvaryy 25865 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy". 25866 xxvaryy: 25867 .word 1 25868EOF 25869 rm -f conftest.nm 25870 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o' 25871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25872 (eval $ac_try) 2>&5 25873 ac_status=$? 25874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25875 test $ac_status = 0; }; } 25876 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf' 25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25878 (eval $ac_try) 2>&5 25879 ac_status=$? 25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25881 test $ac_status = 0; }; } 25882 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm' 25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25884 (eval $ac_try) 2>&5 25885 ac_status=$? 25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25887 test $ac_status = 0; }; } 25888 if test -s conftest.nm 25889 then 25890 if grep ' R xxvaryy' conftest.nm > /dev/null; then 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25892$as_echo "yes" >&6; } 25893 25894$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h 25895 25896 else 25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5 25898$as_echo "no: avrxmega3 .rodata located in RAM" >&6; } 25899 echo "$as_me: nm output was" >&5 25900 cat conftest.nm >&5 25901 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`" 25902 { $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 25903$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;} 25904 fi 25905 else 25906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 25907$as_echo "test failed" >&6; } 25908 echo "$as_me: failed program was" >&5 25909 cat conftest.s >&5 25910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5 25911$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;} 25912 fi 25913 rm -f conftest.s conftest.o conftest.elf conftest.nm 25914 ;; 25915 25916 cris-*-*) 25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5 25918$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; } 25919if ${gcc_cv_as_cris_no_mul_bug+:} false; then : 25920 $as_echo_n "(cached) " >&6 25921else 25922 gcc_cv_as_cris_no_mul_bug=no 25923 if test $in_tree_gas = yes; then 25924 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 25925 then gcc_cv_as_cris_no_mul_bug=yes 25926fi 25927 elif test x$gcc_cv_as != x; then 25928 $as_echo '.text' > conftest.s 25929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5' 25930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25931 (eval $ac_try) 2>&5 25932 ac_status=$? 25933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25934 test $ac_status = 0; }; } 25935 then 25936 gcc_cv_as_cris_no_mul_bug=yes 25937 else 25938 echo "configure: failed program was" >&5 25939 cat conftest.s >&5 25940 fi 25941 rm -f conftest.o conftest.s 25942 fi 25943fi 25944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5 25945$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; } 25946if test $gcc_cv_as_cris_no_mul_bug = yes; then 25947 25948$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h 25949 25950fi 25951 25952 ;; 25953 25954 sparc*-*-*) 25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5 25956$as_echo_n "checking assembler for -relax option... " >&6; } 25957if ${gcc_cv_as_sparc_relax+:} false; then : 25958 $as_echo_n "(cached) " >&6 25959else 25960 gcc_cv_as_sparc_relax=no 25961 if test x$gcc_cv_as != x; then 25962 $as_echo '.text' > conftest.s 25963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5' 25964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25965 (eval $ac_try) 2>&5 25966 ac_status=$? 25967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25968 test $ac_status = 0; }; } 25969 then 25970 gcc_cv_as_sparc_relax=yes 25971 else 25972 echo "configure: failed program was" >&5 25973 cat conftest.s >&5 25974 fi 25975 rm -f conftest.o conftest.s 25976 fi 25977fi 25978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5 25979$as_echo "$gcc_cv_as_sparc_relax" >&6; } 25980if test $gcc_cv_as_sparc_relax = yes; then 25981 25982$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h 25983 25984fi 25985 25986 25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5 25988$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; } 25989if ${gcc_cv_as_sparc_gotdata_op+:} false; then : 25990 $as_echo_n "(cached) " >&6 25991else 25992 gcc_cv_as_sparc_gotdata_op=no 25993 if test x$gcc_cv_as != x; then 25994 $as_echo '.text 25995.align 4 25996foo: 25997 nop 25998bar: 25999 sethi %gdop_hix22(foo), %g1 26000 xor %g1, %gdop_lox10(foo), %g1 26001 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s 26002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26004 (eval $ac_try) 2>&5 26005 ac_status=$? 26006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26007 test $ac_status = 0; }; } 26008 then 26009 if test x$gcc_cv_ld != x \ 26010 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 26011 if test x$gcc_cv_objdump != x; then 26012 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \ 26013 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then 26014 gcc_cv_as_sparc_gotdata_op=no 26015 else 26016 gcc_cv_as_sparc_gotdata_op=yes 26017 fi 26018 fi 26019 fi 26020 rm -f conftest 26021 else 26022 echo "configure: failed program was" >&5 26023 cat conftest.s >&5 26024 fi 26025 rm -f conftest.o conftest.s 26026 fi 26027fi 26028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5 26029$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; } 26030if test $gcc_cv_as_sparc_gotdata_op = yes; then 26031 26032$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h 26033 26034fi 26035 26036 26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5 26038$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; } 26039if ${gcc_cv_as_sparc_ua_pcrel+:} false; then : 26040 $as_echo_n "(cached) " >&6 26041else 26042 gcc_cv_as_sparc_ua_pcrel=no 26043 if test x$gcc_cv_as != x; then 26044 $as_echo '.text 26045foo: 26046 nop 26047.data 26048.align 4 26049.byte 0 26050.uaword %r_disp32(foo)' > conftest.s 26051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26053 (eval $ac_try) 2>&5 26054 ac_status=$? 26055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26056 test $ac_status = 0; }; } 26057 then 26058 if test x$gcc_cv_ld != x \ 26059 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 26060 gcc_cv_as_sparc_ua_pcrel=yes 26061 fi 26062 rm -f conftest 26063 else 26064 echo "configure: failed program was" >&5 26065 cat conftest.s >&5 26066 fi 26067 rm -f conftest.o conftest.s 26068 fi 26069fi 26070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5 26071$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; } 26072if test $gcc_cv_as_sparc_ua_pcrel = yes; then 26073 26074$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h 26075 26076 26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 26078$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; } 26079if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then : 26080 $as_echo_n "(cached) " >&6 26081else 26082 gcc_cv_as_sparc_ua_pcrel_hidden=no 26083 if test x$gcc_cv_as != x; then 26084 $as_echo '.data 26085.align 4 26086.byte 0x31 26087.uaword %r_disp32(foo) 26088.byte 0x32, 0x33, 0x34 26089.global foo 26090.hidden foo 26091foo: 26092.skip 4' > conftest.s 26093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 26094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26095 (eval $ac_try) 2>&5 26096 ac_status=$? 26097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26098 test $ac_status = 0; }; } 26099 then 26100 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 26101 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \ 26102 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \ 26103 | grep ' 31000000 07323334' > /dev/null 2>&1; then 26104 if $gcc_cv_objdump -R conftest 2> /dev/null \ 26105 | grep 'DISP32' > /dev/null 2>&1; then 26106 : 26107 else 26108 gcc_cv_as_sparc_ua_pcrel_hidden=yes 26109 fi 26110 fi 26111 rm -f conftest 26112 else 26113 echo "configure: failed program was" >&5 26114 cat conftest.s >&5 26115 fi 26116 rm -f conftest.o conftest.s 26117 fi 26118fi 26119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5 26120$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; } 26121if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then 26122 26123$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h 26124 26125fi 26126 26127 26128fi 26129 # unaligned pcrel relocs 26130 26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5 26132$as_echo_n "checking assembler for offsetable %lo()... " >&6; } 26133if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then : 26134 $as_echo_n "(cached) " >&6 26135else 26136 gcc_cv_as_sparc_offsetable_lo10=no 26137 if test x$gcc_cv_as != x; then 26138 $as_echo '.text 26139 or %g1, %lo(ab) + 12, %g1 26140 or %g1, %lo(ab + 12), %g1' > conftest.s 26141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5' 26142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26143 (eval $ac_try) 2>&5 26144 ac_status=$? 26145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26146 test $ac_status = 0; }; } 26147 then 26148 if test x$gcc_cv_objdump != x \ 26149 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \ 26150 | grep ' 82106000 82106000' > /dev/null 2>&1; then 26151 gcc_cv_as_sparc_offsetable_lo10=yes 26152 fi 26153 else 26154 echo "configure: failed program was" >&5 26155 cat conftest.s >&5 26156 fi 26157 rm -f conftest.o conftest.s 26158 fi 26159fi 26160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5 26161$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; } 26162if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then 26163 26164$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h 26165 26166fi 26167 26168 26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5 26170$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; } 26171if ${gcc_cv_as_sparc_fmaf+:} false; then : 26172 $as_echo_n "(cached) " >&6 26173else 26174 gcc_cv_as_sparc_fmaf=no 26175 if test x$gcc_cv_as != x; then 26176 $as_echo '.text 26177 .register %g2, #scratch 26178 .register %g3, #scratch 26179 .align 4 26180 fmaddd %f0, %f2, %f4, %f6 26181 addxccc %g1, %g2, %g3 26182 fsrl32 %f2, %f4, %f8 26183 fnaddd %f10, %f12, %f14' > conftest.s 26184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5' 26185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26186 (eval $ac_try) 2>&5 26187 ac_status=$? 26188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26189 test $ac_status = 0; }; } 26190 then 26191 gcc_cv_as_sparc_fmaf=yes 26192 else 26193 echo "configure: failed program was" >&5 26194 cat conftest.s >&5 26195 fi 26196 rm -f conftest.o conftest.s 26197 fi 26198fi 26199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5 26200$as_echo "$gcc_cv_as_sparc_fmaf" >&6; } 26201if test $gcc_cv_as_sparc_fmaf = yes; then 26202 26203$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h 26204 26205fi 26206 26207 26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5 26209$as_echo_n "checking assembler for SPARC4 instructions... " >&6; } 26210if ${gcc_cv_as_sparc_sparc4+:} false; then : 26211 $as_echo_n "(cached) " >&6 26212else 26213 gcc_cv_as_sparc_sparc4=no 26214 if test x$gcc_cv_as != x; then 26215 $as_echo '.text 26216 .register %g2, #scratch 26217 .register %g3, #scratch 26218 .align 4 26219 cxbe %g2, %g3, 1f 262201: cwbneg %g2, %g3, 1f 262211: sha1 26222 md5 26223 aes_kexpand0 %f4, %f6, %f8 26224 des_round %f38, %f40, %f42, %f44 26225 camellia_f %f54, %f56, %f58, %f60 26226 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s 26227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5' 26228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26229 (eval $ac_try) 2>&5 26230 ac_status=$? 26231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26232 test $ac_status = 0; }; } 26233 then 26234 gcc_cv_as_sparc_sparc4=yes 26235 else 26236 echo "configure: failed program was" >&5 26237 cat conftest.s >&5 26238 fi 26239 rm -f conftest.o conftest.s 26240 fi 26241fi 26242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5 26243$as_echo "$gcc_cv_as_sparc_sparc4" >&6; } 26244if test $gcc_cv_as_sparc_sparc4 = yes; then 26245 26246$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h 26247 26248fi 26249 26250 26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5 26252$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; } 26253if ${gcc_cv_as_sparc_sparc5+:} false; then : 26254 $as_echo_n "(cached) " >&6 26255else 26256 gcc_cv_as_sparc_sparc5=no 26257 if test x$gcc_cv_as != x; then 26258 $as_echo '.text 26259 .register %g2, #scratch 26260 .register %g3, #scratch 26261 .align 4 26262 subxc %g1, %g2, %g3 26263 fpadd8 %f0, %f2, %f4' > conftest.s 26264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5' 26265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26266 (eval $ac_try) 2>&5 26267 ac_status=$? 26268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26269 test $ac_status = 0; }; } 26270 then 26271 gcc_cv_as_sparc_sparc5=yes 26272 else 26273 echo "configure: failed program was" >&5 26274 cat conftest.s >&5 26275 fi 26276 rm -f conftest.o conftest.s 26277 fi 26278fi 26279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5 26280$as_echo "$gcc_cv_as_sparc_sparc5" >&6; } 26281if test $gcc_cv_as_sparc_sparc5 = yes; then 26282 26283$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h 26284 26285fi 26286 26287 26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5 26289$as_echo_n "checking assembler for SPARC6 instructions... " >&6; } 26290if ${gcc_cv_as_sparc_sparc6+:} false; then : 26291 $as_echo_n "(cached) " >&6 26292else 26293 gcc_cv_as_sparc_sparc6=no 26294 if test x$gcc_cv_as != x; then 26295 $as_echo '.text 26296 .register %g2, #scratch 26297 .register %g3, #scratch 26298 .align 4 26299 rd %entropy, %g1 26300 fpsll64x %f0, %f2, %f4' > conftest.s 26301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5' 26302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26303 (eval $ac_try) 2>&5 26304 ac_status=$? 26305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26306 test $ac_status = 0; }; } 26307 then 26308 gcc_cv_as_sparc_sparc6=yes 26309 else 26310 echo "configure: failed program was" >&5 26311 cat conftest.s >&5 26312 fi 26313 rm -f conftest.o conftest.s 26314 fi 26315fi 26316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5 26317$as_echo "$gcc_cv_as_sparc_sparc6" >&6; } 26318if test $gcc_cv_as_sparc_sparc6 = yes; then 26319 26320$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h 26321 26322fi 26323 26324 26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5 26326$as_echo_n "checking assembler for LEON instructions... " >&6; } 26327if ${gcc_cv_as_sparc_leon+:} false; then : 26328 $as_echo_n "(cached) " >&6 26329else 26330 gcc_cv_as_sparc_leon=no 26331 if test x$gcc_cv_as != x; then 26332 $as_echo '.text 26333 .register %g2, #scratch 26334 .register %g3, #scratch 26335 .align 4 26336 smac %g2, %g3, %g1 26337 umac %g2, %g3, %g1 26338 casa [%g2] 0xb, %g3, %g1' > conftest.s 26339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5' 26340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26341 (eval $ac_try) 2>&5 26342 ac_status=$? 26343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26344 test $ac_status = 0; }; } 26345 then 26346 gcc_cv_as_sparc_leon=yes 26347 else 26348 echo "configure: failed program was" >&5 26349 cat conftest.s >&5 26350 fi 26351 rm -f conftest.o conftest.s 26352 fi 26353fi 26354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5 26355$as_echo "$gcc_cv_as_sparc_leon" >&6; } 26356if test $gcc_cv_as_sparc_leon = yes; then 26357 26358$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h 26359 26360fi 26361 26362 ;; 26363 26364 i[34567]86-*-* | x86_64-*-*) 26365 case $target_os in 26366 cygwin*) 26367 # Full C++ conformance when using a shared libstdc++-v3 requires some 26368 # support from the Cygwin DLL, which in more recent versions exports 26369 # wrappers to aid in interposing and redirecting operators new, delete, 26370 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we 26371 # are configuring for a version of Cygwin that exports the wrappers. 26372 if test x$host = x$target && test x$host_cpu = xi686; then 26373 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj" 26374if test "x$ac_cv_func___wrap__Znaj" = xyes; then : 26375 gcc_ac_cygwin_dll_wrappers=yes 26376else 26377 gcc_ac_cygwin_dll_wrappers=no 26378fi 26379 26380 else 26381 # Can't check presence of libc functions during cross-compile, so 26382 # we just have to assume we're building for an up-to-date target. 26383 gcc_ac_cygwin_dll_wrappers=yes 26384 fi 26385 26386cat >>confdefs.h <<_ACEOF 26387#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi` 26388_ACEOF 26389 26390 esac 26391 case $target_os in 26392 cygwin* | pe | mingw32*) 26393 # Recent binutils allows the three-operand form of ".comm" on PE. This 26394 # definition is used unconditionally to initialise the default state of 26395 # the target option variable that governs usage of the feature. 26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5 26397$as_echo_n "checking assembler for .comm with alignment... " >&6; } 26398if ${gcc_cv_as_comm_has_align+:} false; then : 26399 $as_echo_n "(cached) " >&6 26400else 26401 gcc_cv_as_comm_has_align=no 26402 if test $in_tree_gas = yes; then 26403 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52` 26404 then gcc_cv_as_comm_has_align=yes 26405fi 26406 elif test x$gcc_cv_as != x; then 26407 $as_echo '.comm foo,1,32' > conftest.s 26408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26410 (eval $ac_try) 2>&5 26411 ac_status=$? 26412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26413 test $ac_status = 0; }; } 26414 then 26415 gcc_cv_as_comm_has_align=yes 26416 else 26417 echo "configure: failed program was" >&5 26418 cat conftest.s >&5 26419 fi 26420 rm -f conftest.o conftest.s 26421 fi 26422fi 26423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5 26424$as_echo "$gcc_cv_as_comm_has_align" >&6; } 26425 26426 26427 26428cat >>confdefs.h <<_ACEOF 26429#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi` 26430_ACEOF 26431 26432 # Used for DWARF 2 in PE 26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5 26434$as_echo_n "checking assembler for .secrel32 relocs... " >&6; } 26435if ${gcc_cv_as_ix86_pe_secrel32+:} false; then : 26436 $as_echo_n "(cached) " >&6 26437else 26438 gcc_cv_as_ix86_pe_secrel32=no 26439 if test $in_tree_gas = yes; then 26440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 26441 then gcc_cv_as_ix86_pe_secrel32=yes 26442fi 26443 elif test x$gcc_cv_as != x; then 26444 $as_echo '.text 26445foo: nop 26446.data 26447 .secrel32 foo' > conftest.s 26448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26450 (eval $ac_try) 2>&5 26451 ac_status=$? 26452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26453 test $ac_status = 0; }; } 26454 then 26455 if test x$gcc_cv_ld != x \ 26456 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then 26457 gcc_cv_as_ix86_pe_secrel32=yes 26458 fi 26459 rm -f conftest 26460 else 26461 echo "configure: failed program was" >&5 26462 cat conftest.s >&5 26463 fi 26464 rm -f conftest.o conftest.s 26465 fi 26466fi 26467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5 26468$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; } 26469if test $gcc_cv_as_ix86_pe_secrel32 = yes; then 26470 26471$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h 26472 26473fi 26474 26475 # Test if the assembler supports the extended form of the .section 26476 # directive that specifies section alignment. LTO support uses this, 26477 # but normally only after installation, so we warn but don't fail the 26478 # configure if LTO is enabled but the assembler does not support it. 26479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5 26480$as_echo_n "checking assembler for .section with alignment... " >&6; } 26481if ${gcc_cv_as_section_has_align+:} false; then : 26482 $as_echo_n "(cached) " >&6 26483else 26484 gcc_cv_as_section_has_align=no 26485 if test $in_tree_gas = yes; then 26486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1` 26487 then gcc_cv_as_section_has_align=yes 26488fi 26489 elif test x$gcc_cv_as != x; then 26490 $as_echo '.section lto_test,"dr0"' > conftest.s 26491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5' 26492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26493 (eval $ac_try) 2>&5 26494 ac_status=$? 26495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26496 test $ac_status = 0; }; } 26497 then 26498 gcc_cv_as_section_has_align=yes 26499 else 26500 echo "configure: failed program was" >&5 26501 cat conftest.s >&5 26502 fi 26503 rm -f conftest.o conftest.s 26504 fi 26505fi 26506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5 26507$as_echo "$gcc_cv_as_section_has_align" >&6; } 26508 26509 26510 if test x$gcc_cv_as_section_has_align != xyes; then 26511 case ",$enable_languages," in 26512 *,lto,*) 26513 { $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 26514$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;} 26515 ;; 26516 esac 26517 fi 26518 ;; 26519 esac 26520 case $target_os in 26521 darwin2* | darwin19*) 26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5 26523$as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; } 26524if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then : 26525 $as_echo_n "(cached) " >&6 26526else 26527 gcc_cv_as_mllvm_x86_pad_for_align=no 26528 if test x$gcc_cv_as != x; then 26529 $as_echo '.text' > conftest.s 26530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5' 26531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26532 (eval $ac_try) 2>&5 26533 ac_status=$? 26534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26535 test $ac_status = 0; }; } 26536 then 26537 gcc_cv_as_mllvm_x86_pad_for_align=yes 26538 else 26539 echo "configure: failed program was" >&5 26540 cat conftest.s >&5 26541 fi 26542 rm -f conftest.o conftest.s 26543 fi 26544fi 26545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5 26546$as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; } 26547if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then 26548 26549$as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h 26550 26551fi 26552 26553 ;; 26554 esac 26555 26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5 26557$as_echo_n "checking assembler for -xbrace_comment... " >&6; } 26558if ${gcc_cv_as_ix86_xbrace_comment+:} false; then : 26559 $as_echo_n "(cached) " >&6 26560else 26561 gcc_cv_as_ix86_xbrace_comment=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 -xbrace_comment=no -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_ix86_xbrace_comment=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_ix86_xbrace_comment" >&5 26580$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; } 26581if test $gcc_cv_as_ix86_xbrace_comment = yes; then 26582 26583$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h 26584 26585fi 26586 26587 26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5 26589$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; } 26590if ${gcc_cv_as_ix86_filds+:} false; then : 26591 $as_echo_n "(cached) " >&6 26592else 26593 gcc_cv_as_ix86_filds=no 26594 if test x$gcc_cv_as != x; then 26595 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s 26596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26598 (eval $ac_try) 2>&5 26599 ac_status=$? 26600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26601 test $ac_status = 0; }; } 26602 then 26603 gcc_cv_as_ix86_filds=yes 26604 else 26605 echo "configure: failed program was" >&5 26606 cat conftest.s >&5 26607 fi 26608 rm -f conftest.o conftest.s 26609 fi 26610fi 26611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5 26612$as_echo "$gcc_cv_as_ix86_filds" >&6; } 26613if test $gcc_cv_as_ix86_filds = yes; then 26614 26615$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h 26616 26617fi 26618 26619 26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5 26621$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; } 26622if ${gcc_cv_as_ix86_fildq+:} false; then : 26623 $as_echo_n "(cached) " >&6 26624else 26625 gcc_cv_as_ix86_fildq=no 26626 if test x$gcc_cv_as != x; then 26627 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s 26628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26630 (eval $ac_try) 2>&5 26631 ac_status=$? 26632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26633 test $ac_status = 0; }; } 26634 then 26635 gcc_cv_as_ix86_fildq=yes 26636 else 26637 echo "configure: failed program was" >&5 26638 cat conftest.s >&5 26639 fi 26640 rm -f conftest.o conftest.s 26641 fi 26642fi 26643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5 26644$as_echo "$gcc_cv_as_ix86_fildq" >&6; } 26645if test $gcc_cv_as_ix86_fildq = yes; then 26646 26647$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h 26648 26649fi 26650 26651 26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5 26653$as_echo_n "checking assembler for cmov syntax... " >&6; } 26654if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then : 26655 $as_echo_n "(cached) " >&6 26656else 26657 gcc_cv_as_ix86_cmov_sun_syntax=no 26658 if test x$gcc_cv_as != x; then 26659 $as_echo 'cmovl.l %edx, %eax' > conftest.s 26660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26662 (eval $ac_try) 2>&5 26663 ac_status=$? 26664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26665 test $ac_status = 0; }; } 26666 then 26667 gcc_cv_as_ix86_cmov_sun_syntax=yes 26668 else 26669 echo "configure: failed program was" >&5 26670 cat conftest.s >&5 26671 fi 26672 rm -f conftest.o conftest.s 26673 fi 26674fi 26675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5 26676$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; } 26677if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then 26678 26679$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h 26680 26681fi 26682 26683 26684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5 26685$as_echo_n "checking assembler for ffreep mnemonic... " >&6; } 26686if ${gcc_cv_as_ix86_ffreep+:} false; then : 26687 $as_echo_n "(cached) " >&6 26688else 26689 gcc_cv_as_ix86_ffreep=no 26690 if test x$gcc_cv_as != x; then 26691 $as_echo 'ffreep %st(1)' > conftest.s 26692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26694 (eval $ac_try) 2>&5 26695 ac_status=$? 26696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26697 test $ac_status = 0; }; } 26698 then 26699 gcc_cv_as_ix86_ffreep=yes 26700 else 26701 echo "configure: failed program was" >&5 26702 cat conftest.s >&5 26703 fi 26704 rm -f conftest.o conftest.s 26705 fi 26706fi 26707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5 26708$as_echo "$gcc_cv_as_ix86_ffreep" >&6; } 26709if test $gcc_cv_as_ix86_ffreep = yes; then 26710 26711$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h 26712 26713fi 26714 26715 26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5 26717$as_echo_n "checking assembler for .quad directive... " >&6; } 26718if ${gcc_cv_as_ix86_quad+:} false; then : 26719 $as_echo_n "(cached) " >&6 26720else 26721 gcc_cv_as_ix86_quad=no 26722 if test x$gcc_cv_as != x; then 26723 $as_echo '.quad 0' > conftest.s 26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26726 (eval $ac_try) 2>&5 26727 ac_status=$? 26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26729 test $ac_status = 0; }; } 26730 then 26731 gcc_cv_as_ix86_quad=yes 26732 else 26733 echo "configure: failed program was" >&5 26734 cat conftest.s >&5 26735 fi 26736 rm -f conftest.o conftest.s 26737 fi 26738fi 26739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5 26740$as_echo "$gcc_cv_as_ix86_quad" >&6; } 26741if test $gcc_cv_as_ix86_quad = yes; then 26742 26743$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h 26744 26745fi 26746 26747 26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5 26749$as_echo_n "checking assembler for sahf mnemonic... " >&6; } 26750if ${gcc_cv_as_ix86_sahf+:} false; then : 26751 $as_echo_n "(cached) " >&6 26752else 26753 gcc_cv_as_ix86_sahf=no 26754 if test x$gcc_cv_as != x; then 26755 $as_echo '.code64 26756 sahf' > conftest.s 26757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26759 (eval $ac_try) 2>&5 26760 ac_status=$? 26761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26762 test $ac_status = 0; }; } 26763 then 26764 gcc_cv_as_ix86_sahf=yes 26765 else 26766 echo "configure: failed program was" >&5 26767 cat conftest.s >&5 26768 fi 26769 rm -f conftest.o conftest.s 26770 fi 26771fi 26772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5 26773$as_echo "$gcc_cv_as_ix86_sahf" >&6; } 26774if test $gcc_cv_as_ix86_sahf = yes; then 26775 26776$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h 26777 26778fi 26779 26780 26781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5 26782$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; } 26783if ${gcc_cv_as_ix86_interunit_movq+:} false; then : 26784 $as_echo_n "(cached) " >&6 26785else 26786 gcc_cv_as_ix86_interunit_movq=no 26787 if test x$gcc_cv_as != x; then 26788 $as_echo '.code64 26789 movq %mm0, %rax 26790 movq %rax, %xmm0' > conftest.s 26791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26793 (eval $ac_try) 2>&5 26794 ac_status=$? 26795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26796 test $ac_status = 0; }; } 26797 then 26798 gcc_cv_as_ix86_interunit_movq=yes 26799 else 26800 echo "configure: failed program was" >&5 26801 cat conftest.s >&5 26802 fi 26803 rm -f conftest.o conftest.s 26804 fi 26805fi 26806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5 26807$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; } 26808 26809 26810 26811cat >>confdefs.h <<_ACEOF 26812#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi` 26813_ACEOF 26814 26815 26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5 26817$as_echo_n "checking assembler for hle prefixes... " >&6; } 26818if ${gcc_cv_as_ix86_hle+:} false; then : 26819 $as_echo_n "(cached) " >&6 26820else 26821 gcc_cv_as_ix86_hle=no 26822 if test x$gcc_cv_as != x; then 26823 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s 26824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26826 (eval $ac_try) 2>&5 26827 ac_status=$? 26828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26829 test $ac_status = 0; }; } 26830 then 26831 gcc_cv_as_ix86_hle=yes 26832 else 26833 echo "configure: failed program was" >&5 26834 cat conftest.s >&5 26835 fi 26836 rm -f conftest.o conftest.s 26837 fi 26838fi 26839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5 26840$as_echo "$gcc_cv_as_ix86_hle" >&6; } 26841if test $gcc_cv_as_ix86_hle = yes; then 26842 26843$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h 26844 26845fi 26846 26847 26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5 26849$as_echo_n "checking assembler for swap suffix... " >&6; } 26850if ${gcc_cv_as_ix86_swap+:} false; then : 26851 $as_echo_n "(cached) " >&6 26852else 26853 gcc_cv_as_ix86_swap=no 26854 if test x$gcc_cv_as != x; then 26855 $as_echo 'movl.s %esp, %ebp' > conftest.s 26856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26858 (eval $ac_try) 2>&5 26859 ac_status=$? 26860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26861 test $ac_status = 0; }; } 26862 then 26863 gcc_cv_as_ix86_swap=yes 26864 else 26865 echo "configure: failed program was" >&5 26866 cat conftest.s >&5 26867 fi 26868 rm -f conftest.o conftest.s 26869 fi 26870fi 26871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5 26872$as_echo "$gcc_cv_as_ix86_swap" >&6; } 26873if test $gcc_cv_as_ix86_swap = yes; then 26874 26875$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h 26876 26877fi 26878 26879 26880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5 26881$as_echo_n "checking assembler for different section symbol subtraction... " >&6; } 26882if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then : 26883 $as_echo_n "(cached) " >&6 26884else 26885 gcc_cv_as_ix86_diff_sect_delta=no 26886 if test x$gcc_cv_as != x; then 26887 $as_echo '.section .rodata 26888.L1: 26889 .long .L2-.L1 26890 .long .L3-.L1 26891 .text 26892.L3: nop 26893.L2: nop' > conftest.s 26894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26896 (eval $ac_try) 2>&5 26897 ac_status=$? 26898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26899 test $ac_status = 0; }; } 26900 then 26901 gcc_cv_as_ix86_diff_sect_delta=yes 26902 else 26903 echo "configure: failed program was" >&5 26904 cat conftest.s >&5 26905 fi 26906 rm -f conftest.o conftest.s 26907 fi 26908fi 26909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5 26910$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; } 26911if test $gcc_cv_as_ix86_diff_sect_delta = yes; then 26912 26913$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h 26914 26915fi 26916 26917 26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5 26919$as_echo_n "checking assembler for rep and lock prefix... " >&6; } 26920if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then : 26921 $as_echo_n "(cached) " >&6 26922else 26923 gcc_cv_as_ix86_rep_lock_prefix=no 26924 if test x$gcc_cv_as != x; then 26925 $as_echo 'rep movsl 26926 rep ret 26927 rep nop 26928 rep bsf %ecx, %eax 26929 rep bsr %ecx, %eax 26930 lock addl %edi, (%eax,%esi) 26931 lock orl $0, (%esp)' > conftest.s 26932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26934 (eval $ac_try) 2>&5 26935 ac_status=$? 26936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26937 test $ac_status = 0; }; } 26938 then 26939 gcc_cv_as_ix86_rep_lock_prefix=yes 26940 else 26941 echo "configure: failed program was" >&5 26942 cat conftest.s >&5 26943 fi 26944 rm -f conftest.o conftest.s 26945 fi 26946fi 26947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5 26948$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; } 26949if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then 26950 26951$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h 26952 26953fi 26954 26955 26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5 26957$as_echo_n "checking assembler for ud2 mnemonic... " >&6; } 26958if ${gcc_cv_as_ix86_ud2+:} false; then : 26959 $as_echo_n "(cached) " >&6 26960else 26961 gcc_cv_as_ix86_ud2=no 26962 if test x$gcc_cv_as != x; then 26963 $as_echo 'ud2' > conftest.s 26964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26966 (eval $ac_try) 2>&5 26967 ac_status=$? 26968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26969 test $ac_status = 0; }; } 26970 then 26971 gcc_cv_as_ix86_ud2=yes 26972 else 26973 echo "configure: failed program was" >&5 26974 cat conftest.s >&5 26975 fi 26976 rm -f conftest.o conftest.s 26977 fi 26978fi 26979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5 26980$as_echo "$gcc_cv_as_ix86_ud2" >&6; } 26981if test $gcc_cv_as_ix86_ud2 = yes; then 26982 26983$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h 26984 26985fi 26986 26987 26988 # Enforce 32-bit output with gas and gld. 26989 if test x$gas = xyes; then 26990 as_ix86_gas_32_opt="--32" 26991 fi 26992 if echo "$ld_ver" | grep GNU > /dev/null; then 26993 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then 26994 ld_ix86_gld_32_opt="-melf_i386_sol2" 26995 else 26996 ld_ix86_gld_32_opt="-melf_i386" 26997 fi 26998 fi 26999 27000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5 27001$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; } 27002if ${gcc_cv_as_ix86_tlsgdplt+:} false; then : 27003 $as_echo_n "(cached) " >&6 27004else 27005 gcc_cv_as_ix86_tlsgdplt=no 27006 if test x$gcc_cv_as != x; then 27007 $as_echo 'call tls_gd@tlsgdplt' > conftest.s 27008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27010 (eval $ac_try) 2>&5 27011 ac_status=$? 27012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27013 test $ac_status = 0; }; } 27014 then 27015 if test x$gcc_cv_ld != x \ 27016 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then 27017 gcc_cv_as_ix86_tlsgdplt=yes 27018 fi 27019 rm -f conftest 27020 else 27021 echo "configure: failed program was" >&5 27022 cat conftest.s >&5 27023 fi 27024 rm -f conftest.o conftest.s 27025 fi 27026fi 27027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5 27028$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; } 27029if test $gcc_cv_as_ix86_tlsgdplt = yes; then 27030 27031$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h 27032 27033fi 27034 27035 27036 conftest_s=' 27037 .section .tdata,"aw'$tls_section_flag'",@progbits 27038tls_ld: 27039 .section .text,"ax",@progbits 27040 call tls_ld@tlsldmplt' 27041 27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5 27043$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; } 27044if ${gcc_cv_as_ix86_tlsldmplt+:} false; then : 27045 $as_echo_n "(cached) " >&6 27046else 27047 gcc_cv_as_ix86_tlsldmplt=no 27048 if test x$gcc_cv_as != x; then 27049 $as_echo "$conftest_s" > conftest.s 27050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27052 (eval $ac_try) 2>&5 27053 ac_status=$? 27054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27055 test $ac_status = 0; }; } 27056 then 27057 if test x$gcc_cv_ld != x \ 27058 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then 27059 gcc_cv_as_ix86_tlsldmplt=yes 27060 fi 27061 rm -f conftest 27062 else 27063 echo "configure: failed program was" >&5 27064 cat conftest.s >&5 27065 fi 27066 rm -f conftest.o conftest.s 27067 fi 27068fi 27069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5 27070$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; } 27071 27072 27073 27074cat >>confdefs.h <<_ACEOF 27075#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi` 27076_ACEOF 27077 27078 27079 conftest_s=' 27080 .section .text,"ax",@progbits 27081 .globl _start 27082 .type _start, @function 27083_start: 27084 leal value@tlsldm(%ebx), %eax 27085 call ___tls_get_addr@plt 27086 27087 .section .tdata,"aw'$tls_section_flag'",@progbits 27088 .type value, @object 27089value:' 27090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5 27091$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; } 27092if ${gcc_cv_as_ix86_tlsldm+:} false; then : 27093 $as_echo_n "(cached) " >&6 27094else 27095 gcc_cv_as_ix86_tlsldm=no 27096 if test x$gcc_cv_as != x; then 27097 $as_echo "$conftest_s" > conftest.s 27098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27100 (eval $ac_try) 2>&5 27101 ac_status=$? 27102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27103 test $ac_status = 0; }; } 27104 then 27105 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 27106 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then 27107 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \ 27108 || dis conftest 2>/dev/null | grep nop > /dev/null; then 27109 gcc_cv_as_ix86_tlsldm=yes 27110 fi 27111 fi 27112 rm -f conftest 27113 else 27114 echo "configure: failed program was" >&5 27115 cat conftest.s >&5 27116 fi 27117 rm -f conftest.o conftest.s 27118 fi 27119fi 27120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5 27121$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; } 27122 27123 27124 27125cat >>confdefs.h <<_ACEOF 27126#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi` 27127_ACEOF 27128 27129 27130 conftest_s=' 27131 .data 27132bar: 27133 .byte 1 27134 .text 27135 .global _start 27136_start: 27137 cmpl $0, bar@GOT 27138 jmp *_start@GOT' 27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5 27140$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; } 27141if ${gcc_cv_as_ix86_got32x+:} false; then : 27142 $as_echo_n "(cached) " >&6 27143else 27144 gcc_cv_as_ix86_got32x=no 27145 if test x$gcc_cv_as != x; then 27146 $as_echo "$conftest_s" > conftest.s 27147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27149 (eval $ac_try) 2>&5 27150 ac_status=$? 27151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27152 test $ac_status = 0; }; } 27153 then 27154 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 27155 && test x$gcc_cv_readelf != x \ 27156 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \ 27157 | grep R_386_GOT32X > /dev/null 2>&1 \ 27158 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then 27159 if $gcc_cv_objdump -dw conftest 2>&1 \ 27160 | grep 0xffffff > /dev/null 2>&1; then 27161 gcc_cv_as_ix86_got32x=no 27162 else 27163 gcc_cv_as_ix86_got32x=yes 27164 fi 27165 fi 27166 rm -f conftest 27167 else 27168 echo "configure: failed program was" >&5 27169 cat conftest.s >&5 27170 fi 27171 rm -f conftest.o conftest.s 27172 fi 27173fi 27174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5 27175$as_echo "$gcc_cv_as_ix86_got32x" >&6; } 27176 27177 27178 27179cat >>confdefs.h <<_ACEOF 27180#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi` 27181_ACEOF 27182 27183 27184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5 27185$as_echo_n "checking assembler for GOTOFF in data... " >&6; } 27186if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then : 27187 $as_echo_n "(cached) " >&6 27188else 27189 gcc_cv_as_ix86_gotoff_in_data=no 27190 if test $in_tree_gas = yes; then 27191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 27192 then gcc_cv_as_ix86_gotoff_in_data=yes 27193fi 27194 elif test x$gcc_cv_as != x; then 27195 $as_echo ' .text 27196.L0: 27197 nop 27198 .data 27199 .long .L0@GOTOFF' > conftest.s 27200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 27201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27202 (eval $ac_try) 2>&5 27203 ac_status=$? 27204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27205 test $ac_status = 0; }; } 27206 then 27207 gcc_cv_as_ix86_gotoff_in_data=yes 27208 else 27209 echo "configure: failed program was" >&5 27210 cat conftest.s >&5 27211 fi 27212 rm -f conftest.o conftest.s 27213 fi 27214fi 27215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5 27216$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; } 27217 27218 27219 27220cat >>confdefs.h <<_ACEOF 27221#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi` 27222_ACEOF 27223 27224 27225 conftest_s=' 27226 .section .text,"ax",@progbits 27227 .globl _start 27228 .type _start, @function 27229_start: 27230 leal ld@tlsldm(%ecx), %eax 27231 call *___tls_get_addr@GOT(%ecx) 27232 leal gd@tlsgd(%ecx), %eax 27233 call *___tls_get_addr@GOT(%ecx) 27234 27235 .section .tdata,"aw'$tls_section_flag'",@progbits 27236 .type ld, @object 27237ld: 27238 .byte 0 27239 .globl gd 27240 .type gd, @object 27241gd: 27242 .byte 0' 27243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5 27244$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; } 27245if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then : 27246 $as_echo_n "(cached) " >&6 27247else 27248 gcc_cv_as_ix86_tls_get_addr_via_got=no 27249 if test x$gcc_cv_as != x; then 27250 $as_echo "$conftest_s" > conftest.s 27251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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 if test x$gcc_cv_ld != x \ 27259 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then 27260 gcc_cv_as_ix86_tls_get_addr_via_got=yes 27261 fi 27262 rm -f conftest 27263 else 27264 echo "configure: failed program was" >&5 27265 cat conftest.s >&5 27266 fi 27267 rm -f conftest.o conftest.s 27268 fi 27269fi 27270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5 27271$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; } 27272 27273 27274 27275cat >>confdefs.h <<_ACEOF 27276#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` 27277_ACEOF 27278 27279 ;; 27280 27281 ia64*-*-*) 27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5 27283$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; } 27284if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then : 27285 $as_echo_n "(cached) " >&6 27286else 27287 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no 27288 if test $in_tree_gas = yes; then 27289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 27290 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes 27291fi 27292 elif test x$gcc_cv_as != x; then 27293 $as_echo ' .text 27294 addl r15 = @ltoffx(x#), gp 27295 ;; 27296 ld8.mov r16 = [r15], x# 27297' > conftest.s 27298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27300 (eval $ac_try) 2>&5 27301 ac_status=$? 27302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27303 test $ac_status = 0; }; } 27304 then 27305 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes 27306 else 27307 echo "configure: failed program was" >&5 27308 cat conftest.s >&5 27309 fi 27310 rm -f conftest.o conftest.s 27311 fi 27312fi 27313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5 27314$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; } 27315if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then 27316 27317$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h 27318 27319fi 27320 27321 27322 ;; 27323 27324 powerpc*-*-*) 27325 27326 case $target in 27327 *-*-darwin*) 27328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5 27329$as_echo_n "checking assembler for .machine directive support... " >&6; } 27330if ${gcc_cv_as_machine_directive+:} false; then : 27331 $as_echo_n "(cached) " >&6 27332else 27333 gcc_cv_as_machine_directive=no 27334 if test x$gcc_cv_as != x; then 27335 $as_echo ' .machine ppc7400' > conftest.s 27336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27338 (eval $ac_try) 2>&5 27339 ac_status=$? 27340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27341 test $ac_status = 0; }; } 27342 then 27343 gcc_cv_as_machine_directive=yes 27344 else 27345 echo "configure: failed program was" >&5 27346 cat conftest.s >&5 27347 fi 27348 rm -f conftest.o conftest.s 27349 fi 27350fi 27351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5 27352$as_echo "$gcc_cv_as_machine_directive" >&6; } 27353 27354 27355 if test x$gcc_cv_as_machine_directive != xyes; then 27356 echo "*** This target requires an assembler supporting \".machine\"" >&2 27357 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2 27358 test x$build = x$target && exit 1 27359 fi 27360 ;; 27361 esac 27362 27363 case $target in 27364 *-*-aix*) conftest_s=' .machine "pwr5" 27365 .csect .text[PR] 27366 mfcr 3,128';; 27367 *-*-darwin*) conftest_s=' .text 27368 mfcr r3,128';; 27369 *) conftest_s=' .machine power4 27370 .text 27371 mfcr 3,128';; 27372 esac 27373 27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5 27375$as_echo_n "checking assembler for mfcr field support... " >&6; } 27376if ${gcc_cv_as_powerpc_mfcrf+:} false; then : 27377 $as_echo_n "(cached) " >&6 27378else 27379 gcc_cv_as_powerpc_mfcrf=no 27380 if test $in_tree_gas = yes; then 27381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 27382 then gcc_cv_as_powerpc_mfcrf=yes 27383fi 27384 elif test x$gcc_cv_as != x; then 27385 $as_echo "$conftest_s" > conftest.s 27386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27388 (eval $ac_try) 2>&5 27389 ac_status=$? 27390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27391 test $ac_status = 0; }; } 27392 then 27393 gcc_cv_as_powerpc_mfcrf=yes 27394 else 27395 echo "configure: failed program was" >&5 27396 cat conftest.s >&5 27397 fi 27398 rm -f conftest.o conftest.s 27399 fi 27400fi 27401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5 27402$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; } 27403if test $gcc_cv_as_powerpc_mfcrf = yes; then 27404 27405$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h 27406 27407fi 27408 27409 27410 case $target in 27411 *-*-aix*) conftest_s=' .csect .text[PR] 27412LCF..0: 27413 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';; 27414 *-*-darwin*) 27415 conftest_s=' .text 27416LCF0: 27417 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';; 27418 *) conftest_s=' .text 27419.LCF0: 27420 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';; 27421 esac 27422 27423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5 27424$as_echo_n "checking assembler for rel16 relocs... " >&6; } 27425if ${gcc_cv_as_powerpc_rel16+:} false; then : 27426 $as_echo_n "(cached) " >&6 27427else 27428 gcc_cv_as_powerpc_rel16=no 27429 if test $in_tree_gas = yes; then 27430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 27431 then gcc_cv_as_powerpc_rel16=yes 27432fi 27433 elif test x$gcc_cv_as != x; then 27434 $as_echo "$conftest_s" > conftest.s 27435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' 27436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27437 (eval $ac_try) 2>&5 27438 ac_status=$? 27439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27440 test $ac_status = 0; }; } 27441 then 27442 gcc_cv_as_powerpc_rel16=yes 27443 else 27444 echo "configure: failed program was" >&5 27445 cat conftest.s >&5 27446 fi 27447 rm -f conftest.o conftest.s 27448 fi 27449fi 27450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5 27451$as_echo "$gcc_cv_as_powerpc_rel16" >&6; } 27452if test $gcc_cv_as_powerpc_rel16 = yes; then 27453 27454$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h 27455 27456fi 27457 27458 27459 case $target in 27460 *-*-aix*) conftest_s=' .machine "pwr7" 27461 .csect .text[PR] 27462 lxvd2x 1,2,3';; 27463 *) conftest_s=' .machine power7 27464 .text 27465 lxvd2x 1,2,3';; 27466 esac 27467 27468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5 27469$as_echo_n "checking assembler for vector-scalar support... " >&6; } 27470if ${gcc_cv_as_powerpc_vsx+:} false; then : 27471 $as_echo_n "(cached) " >&6 27472else 27473 gcc_cv_as_powerpc_vsx=no 27474 if test $in_tree_gas = yes; then 27475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2` 27476 then gcc_cv_as_powerpc_vsx=yes 27477fi 27478 elif test x$gcc_cv_as != x; then 27479 $as_echo "$conftest_s" > conftest.s 27480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' 27481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27482 (eval $ac_try) 2>&5 27483 ac_status=$? 27484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27485 test $ac_status = 0; }; } 27486 then 27487 gcc_cv_as_powerpc_vsx=yes 27488 else 27489 echo "configure: failed program was" >&5 27490 cat conftest.s >&5 27491 fi 27492 rm -f conftest.o conftest.s 27493 fi 27494fi 27495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5 27496$as_echo "$gcc_cv_as_powerpc_vsx" >&6; } 27497if test $gcc_cv_as_powerpc_vsx = yes; then 27498 27499$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h 27500 27501fi 27502 27503 27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 27505$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 27506if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then : 27507 $as_echo_n "(cached) " >&6 27508else 27509 gcc_cv_as_powerpc_gnu_attribute=no 27510 if test $in_tree_gas = yes; then 27511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 27512 then gcc_cv_as_powerpc_gnu_attribute=yes 27513fi 27514 elif test x$gcc_cv_as != x; then 27515 $as_echo '.gnu_attribute 4,1' > conftest.s 27516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27518 (eval $ac_try) 2>&5 27519 ac_status=$? 27520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27521 test $ac_status = 0; }; } 27522 then 27523 gcc_cv_as_powerpc_gnu_attribute=yes 27524 else 27525 echo "configure: failed program was" >&5 27526 cat conftest.s >&5 27527 fi 27528 rm -f conftest.o conftest.s 27529 fi 27530fi 27531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5 27532$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; } 27533if test $gcc_cv_as_powerpc_gnu_attribute = yes; then 27534 27535$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 27536 27537fi 27538 27539 27540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5 27541$as_echo_n "checking assembler for prologue entry point marker support... " >&6; } 27542if ${gcc_cv_as_powerpc_entry_markers+:} false; then : 27543 $as_echo_n "(cached) " >&6 27544else 27545 gcc_cv_as_powerpc_entry_markers=no 27546 if test $in_tree_gas = yes; then 27547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0` 27548 then gcc_cv_as_powerpc_entry_markers=yes 27549fi 27550 elif test x$gcc_cv_as != x; then 27551 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s 27552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5' 27553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27554 (eval $ac_try) 2>&5 27555 ac_status=$? 27556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27557 test $ac_status = 0; }; } 27558 then 27559 gcc_cv_as_powerpc_entry_markers=yes 27560 else 27561 echo "configure: failed program was" >&5 27562 cat conftest.s >&5 27563 fi 27564 rm -f conftest.o conftest.s 27565 fi 27566fi 27567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5 27568$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; } 27569if test $gcc_cv_as_powerpc_entry_markers = yes; then 27570 27571$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h 27572 27573fi 27574 27575 27576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5 27577$as_echo_n "checking assembler for plt sequence marker support... " >&6; } 27578if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then : 27579 $as_echo_n "(cached) " >&6 27580else 27581 gcc_cv_as_powerpc_pltseq_markers=no 27582 if test $in_tree_gas = yes; then 27583 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0` 27584 then gcc_cv_as_powerpc_pltseq_markers=yes 27585fi 27586 elif test x$gcc_cv_as != x; then 27587 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s 27588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5' 27589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27590 (eval $ac_try) 2>&5 27591 ac_status=$? 27592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27593 test $ac_status = 0; }; } 27594 then 27595 gcc_cv_as_powerpc_pltseq_markers=yes 27596 else 27597 echo "configure: failed program was" >&5 27598 cat conftest.s >&5 27599 fi 27600 rm -f conftest.o conftest.s 27601 fi 27602fi 27603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5 27604$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; } 27605if test $gcc_cv_as_powerpc_pltseq_markers = yes; then 27606 27607$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h 27608 27609fi 27610 27611 27612 case $target in 27613 *-*-aix*) 27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5 27615$as_echo_n "checking assembler for AIX .ref support... " >&6; } 27616if ${gcc_cv_as_aix_ref+:} false; then : 27617 $as_echo_n "(cached) " >&6 27618else 27619 gcc_cv_as_aix_ref=no 27620 if test $in_tree_gas = yes; then 27621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0` 27622 then gcc_cv_as_aix_ref=yes 27623fi 27624 elif test x$gcc_cv_as != x; then 27625 $as_echo ' .csect stuff[rw] 27626 stuff: 27627 .long 1 27628 .extern sym 27629 .ref sym 27630 ' > conftest.s 27631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_aix_ref=yes 27639 else 27640 echo "configure: failed program was" >&5 27641 cat conftest.s >&5 27642 fi 27643 rm -f conftest.o conftest.s 27644 fi 27645fi 27646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5 27647$as_echo "$gcc_cv_as_aix_ref" >&6; } 27648if test $gcc_cv_as_aix_ref = yes; then 27649 27650$as_echo "#define HAVE_AS_REF 1" >>confdefs.h 27651 27652fi 27653 27654 27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5 27656$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; } 27657if ${gcc_cv_as_aix_dwloc+:} false; then : 27658 $as_echo_n "(cached) " >&6 27659else 27660 gcc_cv_as_aix_dwloc=no 27661 if test $in_tree_gas = yes; then 27662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0` 27663 then gcc_cv_as_aix_dwloc=yes 27664fi 27665 elif test x$gcc_cv_as != x; then 27666 $as_echo ' .dwsect 0xA0000 27667 Lframe..0: 27668 .vbyte 4,Lframe..0 27669 ' > conftest.s 27670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27672 (eval $ac_try) 2>&5 27673 ac_status=$? 27674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27675 test $ac_status = 0; }; } 27676 then 27677 gcc_cv_as_aix_dwloc=yes 27678 else 27679 echo "configure: failed program was" >&5 27680 cat conftest.s >&5 27681 fi 27682 rm -f conftest.o conftest.s 27683 fi 27684fi 27685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5 27686$as_echo "$gcc_cv_as_aix_dwloc" >&6; } 27687if test $gcc_cv_as_aix_dwloc = yes; then 27688 27689$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h 27690 27691fi 27692 27693 ;; 27694 esac 27695 ;; 27696 27697 mips*-*-*) 27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5 27699$as_echo_n "checking assembler for explicit relocation support... " >&6; } 27700if ${gcc_cv_as_mips_explicit_relocs+:} false; then : 27701 $as_echo_n "(cached) " >&6 27702else 27703 gcc_cv_as_mips_explicit_relocs=no 27704 if test $in_tree_gas = yes; then 27705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 27706 then gcc_cv_as_mips_explicit_relocs=yes 27707fi 27708 elif test x$gcc_cv_as != x; then 27709 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s 27710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27712 (eval $ac_try) 2>&5 27713 ac_status=$? 27714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27715 test $ac_status = 0; }; } 27716 then 27717 gcc_cv_as_mips_explicit_relocs=yes 27718 else 27719 echo "configure: failed program was" >&5 27720 cat conftest.s >&5 27721 fi 27722 rm -f conftest.o conftest.s 27723 fi 27724fi 27725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5 27726$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; } 27727if test $gcc_cv_as_mips_explicit_relocs = yes; then 27728 if test x$target_cpu_default = x 27729 then target_cpu_default=MASK_EXPLICIT_RELOCS 27730 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS" 27731 fi 27732fi 27733 27734 27735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5 27736$as_echo_n "checking assembler for -mno-shared support... " >&6; } 27737if ${gcc_cv_as_mips_no_shared+:} false; then : 27738 $as_echo_n "(cached) " >&6 27739else 27740 gcc_cv_as_mips_no_shared=no 27741 if test $in_tree_gas = yes; then 27742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 27743 then gcc_cv_as_mips_no_shared=yes 27744fi 27745 elif test x$gcc_cv_as != x; then 27746 $as_echo 'nop' > conftest.s 27747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5' 27748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27749 (eval $ac_try) 2>&5 27750 ac_status=$? 27751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27752 test $ac_status = 0; }; } 27753 then 27754 gcc_cv_as_mips_no_shared=yes 27755 else 27756 echo "configure: failed program was" >&5 27757 cat conftest.s >&5 27758 fi 27759 rm -f conftest.o conftest.s 27760 fi 27761fi 27762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5 27763$as_echo "$gcc_cv_as_mips_no_shared" >&6; } 27764if test $gcc_cv_as_mips_no_shared = yes; then 27765 27766$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h 27767 27768fi 27769 27770 27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 27772$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 27773if ${gcc_cv_as_mips_gnu_attribute+:} false; then : 27774 $as_echo_n "(cached) " >&6 27775else 27776 gcc_cv_as_mips_gnu_attribute=no 27777 if test $in_tree_gas = yes; then 27778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 27779 then gcc_cv_as_mips_gnu_attribute=yes 27780fi 27781 elif test x$gcc_cv_as != x; then 27782 $as_echo '.gnu_attribute 4,1' > conftest.s 27783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27785 (eval $ac_try) 2>&5 27786 ac_status=$? 27787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27788 test $ac_status = 0; }; } 27789 then 27790 gcc_cv_as_mips_gnu_attribute=yes 27791 else 27792 echo "configure: failed program was" >&5 27793 cat conftest.s >&5 27794 fi 27795 rm -f conftest.o conftest.s 27796 fi 27797fi 27798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5 27799$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; } 27800if test $gcc_cv_as_mips_gnu_attribute = yes; then 27801 27802$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 27803 27804fi 27805 27806 27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5 27808$as_echo_n "checking assembler for .module support... " >&6; } 27809if ${gcc_cv_as_mips_dot_module+:} false; then : 27810 $as_echo_n "(cached) " >&6 27811else 27812 gcc_cv_as_mips_dot_module=no 27813 if test x$gcc_cv_as != x; then 27814 $as_echo '.module mips2 27815 .module fp=xx' > conftest.s 27816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5' 27817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27818 (eval $ac_try) 2>&5 27819 ac_status=$? 27820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27821 test $ac_status = 0; }; } 27822 then 27823 gcc_cv_as_mips_dot_module=yes 27824 else 27825 echo "configure: failed program was" >&5 27826 cat conftest.s >&5 27827 fi 27828 rm -f conftest.o conftest.s 27829 fi 27830fi 27831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5 27832$as_echo "$gcc_cv_as_mips_dot_module" >&6; } 27833if test $gcc_cv_as_mips_dot_module = yes; then 27834 27835$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h 27836 27837fi 27838 27839 if test x$gcc_cv_as_mips_dot_module = xno \ 27840 && test x$with_fp_32 != x; then 27841 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5 27842 fi 27843 27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5 27845$as_echo_n "checking assembler for .micromips support... " >&6; } 27846if ${gcc_cv_as_micromips_support+:} false; then : 27847 $as_echo_n "(cached) " >&6 27848else 27849 gcc_cv_as_micromips_support=no 27850 if test x$gcc_cv_as != x; then 27851 $as_echo '.set micromips' > conftest.s 27852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 27853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27854 (eval $ac_try) 2>&5 27855 ac_status=$? 27856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27857 test $ac_status = 0; }; } 27858 then 27859 gcc_cv_as_micromips_support=yes 27860 else 27861 echo "configure: failed program was" >&5 27862 cat conftest.s >&5 27863 fi 27864 rm -f conftest.o conftest.s 27865 fi 27866fi 27867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5 27868$as_echo "$gcc_cv_as_micromips_support" >&6; } 27869if test $gcc_cv_as_micromips_support = yes; then 27870 27871$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h 27872 27873fi 27874 27875 27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5 27877$as_echo_n "checking assembler for .dtprelword support... " >&6; } 27878if ${gcc_cv_as_mips_dtprelword+:} false; then : 27879 $as_echo_n "(cached) " >&6 27880else 27881 gcc_cv_as_mips_dtprelword=no 27882 if test $in_tree_gas = yes; then 27883 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 27884 then gcc_cv_as_mips_dtprelword=yes 27885fi 27886 elif test x$gcc_cv_as != x; then 27887 $as_echo '.section .tdata,"awT",@progbits 27888x: 27889 .word 2 27890 .text 27891 .dtprelword x+0x8000' > conftest.s 27892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27894 (eval $ac_try) 2>&5 27895 ac_status=$? 27896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27897 test $ac_status = 0; }; } 27898 then 27899 gcc_cv_as_mips_dtprelword=yes 27900 else 27901 echo "configure: failed program was" >&5 27902 cat conftest.s >&5 27903 fi 27904 rm -f conftest.o conftest.s 27905 fi 27906fi 27907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5 27908$as_echo "$gcc_cv_as_mips_dtprelword" >&6; } 27909if test $gcc_cv_as_mips_dtprelword = yes; then 27910 27911$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h 27912 27913fi 27914 27915 27916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5 27917$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; } 27918if ${gcc_cv_as_mips_dspr1_mult+:} false; then : 27919 $as_echo_n "(cached) " >&6 27920else 27921 gcc_cv_as_mips_dspr1_mult=no 27922 if test x$gcc_cv_as != x; then 27923 $as_echo ' .set mips32r2 27924 .set nodspr2 27925 .set dsp 27926 madd $ac3,$4,$5 27927 maddu $ac3,$4,$5 27928 msub $ac3,$4,$5 27929 msubu $ac3,$4,$5 27930 mult $ac3,$4,$5 27931 multu $ac3,$4,$5' > conftest.s 27932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27934 (eval $ac_try) 2>&5 27935 ac_status=$? 27936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27937 test $ac_status = 0; }; } 27938 then 27939 gcc_cv_as_mips_dspr1_mult=yes 27940 else 27941 echo "configure: failed program was" >&5 27942 cat conftest.s >&5 27943 fi 27944 rm -f conftest.o conftest.s 27945 fi 27946fi 27947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5 27948$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; } 27949if test $gcc_cv_as_mips_dspr1_mult = yes; then 27950 27951$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h 27952 27953fi 27954 27955 27956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5 27957$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; } 27958 gcc_cv_as_ld_jalr_reloc=no 27959 if test $gcc_cv_as_mips_explicit_relocs = yes; then 27960 if test $in_tree_ld = yes ; then 27961 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 \ 27962 && test $in_tree_ld_is_elf = yes; then 27963 gcc_cv_as_ld_jalr_reloc=yes 27964 fi 27965 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then 27966 echo ' .ent x' > conftest.s 27967 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s 27968 echo ' lw $25,%call16(y)($28)' >> conftest.s 27969 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s 27970 echo '1: jalr $25' >> conftest.s 27971 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s 27972 echo '1: jalr $25' >> conftest.s 27973 echo ' .end x' >> conftest.s 27974 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \ 27975 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then 27976 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \ 27977 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then 27978 gcc_cv_as_ld_jalr_reloc=yes 27979 fi 27980 fi 27981 rm -f conftest.* 27982 fi 27983 fi 27984 if test $gcc_cv_as_ld_jalr_reloc = yes; then 27985 if test x$target_cpu_default = x; then 27986 target_cpu_default=MASK_RELAX_PIC_CALLS 27987 else 27988 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" 27989 fi 27990 fi 27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5 27992$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; } 27993 27994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5 27995$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; } 27996if ${gcc_cv_ld_mips_personality_relaxation+:} false; then : 27997 $as_echo_n "(cached) " >&6 27998else 27999 gcc_cv_ld_mips_personality_relaxation=no 28000 if test $in_tree_ld = yes ; then 28001 if test "$gcc_cv_gld_major_version" -eq 2 \ 28002 -a "$gcc_cv_gld_minor_version" -ge 21 \ 28003 -o "$gcc_cv_gld_major_version" -gt 2; then 28004 gcc_cv_ld_mips_personality_relaxation=yes 28005 fi 28006 elif test x$gcc_cv_as != x \ 28007 -a x$gcc_cv_ld != x \ 28008 -a x$gcc_cv_readelf != x ; then 28009 cat > conftest.s <<EOF 28010 .cfi_startproc 28011 .cfi_personality 0x80,indirect_ptr 28012 .ent test 28013test: 28014 nop 28015 .end test 28016 .cfi_endproc 28017 28018 .section .data,"aw",@progbits 28019indirect_ptr: 28020 .dc.a personality 28021EOF 28022 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \ 28023 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then 28024 if $gcc_cv_readelf -d conftest 2>&1 \ 28025 | grep TEXTREL > /dev/null 2>&1; then 28026 : 28027 elif $gcc_cv_readelf --relocs conftest 2>&1 \ 28028 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then 28029 : 28030 else 28031 gcc_cv_ld_mips_personality_relaxation=yes 28032 fi 28033 fi 28034 fi 28035 rm -f conftest.s conftest.o conftest 28036fi 28037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5 28038$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; } 28039 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then 28040 28041$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h 28042 28043 fi 28044 28045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5 28046$as_echo_n "checking assembler for -mnan= support... " >&6; } 28047if ${gcc_cv_as_mips_nan+:} false; then : 28048 $as_echo_n "(cached) " >&6 28049else 28050 gcc_cv_as_mips_nan=no 28051 if test x$gcc_cv_as != x; then 28052 $as_echo '' > conftest.s 28053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5' 28054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28055 (eval $ac_try) 2>&5 28056 ac_status=$? 28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28058 test $ac_status = 0; }; } 28059 then 28060 gcc_cv_as_mips_nan=yes 28061 else 28062 echo "configure: failed program was" >&5 28063 cat conftest.s >&5 28064 fi 28065 rm -f conftest.o conftest.s 28066 fi 28067fi 28068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5 28069$as_echo "$gcc_cv_as_mips_nan" >&6; } 28070if test $gcc_cv_as_mips_nan = yes; then 28071 28072$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h 28073 28074fi 28075 28076 if test x$gcc_cv_as_mips_nan = xno \ 28077 && test x$with_nan != x; then 28078 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5 28079 fi 28080 ;; 28081 msp430-*-*) 28082 # Earlier GAS versions generically support .gnu_attribute, but the 28083 # msp430 assembler will not do anything with it. 28084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28085$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28086if ${gcc_cv_as_msp430_gnu_attribute+:} false; then : 28087 $as_echo_n "(cached) " >&6 28088else 28089 gcc_cv_as_msp430_gnu_attribute=no 28090 if test $in_tree_gas = yes; then 28091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50` 28092 then gcc_cv_as_msp430_gnu_attribute=yes 28093fi 28094 elif test x$gcc_cv_as != x; then 28095 $as_echo '.gnu_attribute 4,1' > conftest.s 28096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28098 (eval $ac_try) 2>&5 28099 ac_status=$? 28100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28101 test $ac_status = 0; }; } 28102 then 28103 gcc_cv_as_msp430_gnu_attribute=yes 28104 else 28105 echo "configure: failed program was" >&5 28106 cat conftest.s >&5 28107 fi 28108 rm -f conftest.o conftest.s 28109 fi 28110fi 28111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5 28112$as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; } 28113if test $gcc_cv_as_msp430_gnu_attribute = yes; then 28114 28115$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28116 28117fi 28118 28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5 28120$as_echo_n "checking assembler for .mspabi_attribute support... " >&6; } 28121if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then : 28122 $as_echo_n "(cached) " >&6 28123else 28124 gcc_cv_as_msp430_mspabi_attribute=no 28125 if test $in_tree_gas = yes; then 28126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50` 28127 then gcc_cv_as_msp430_mspabi_attribute=yes 28128fi 28129 elif test x$gcc_cv_as != x; then 28130 $as_echo '.mspabi_attribute 4,1' > conftest.s 28131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28133 (eval $ac_try) 2>&5 28134 ac_status=$? 28135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28136 test $ac_status = 0; }; } 28137 then 28138 gcc_cv_as_msp430_mspabi_attribute=yes 28139 else 28140 echo "configure: failed program was" >&5 28141 cat conftest.s >&5 28142 fi 28143 rm -f conftest.o conftest.s 28144 fi 28145fi 28146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5 28147$as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; } 28148if test $gcc_cv_as_msp430_mspabi_attribute = yes; then 28149 28150$as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h 28151 28152fi 28153 28154 if test x$enable_newlib_nano_formatted_io = xyes; then 28155 28156$as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h 28157 28158 fi 28159 ;; 28160 nios2-*-*) 28161 # Versions 2.33 and earlier lacked support for the %gotoff relocation 28162 # syntax that is documented in the ABI specification. 28163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5 28164$as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; } 28165if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then : 28166 $as_echo_n "(cached) " >&6 28167else 28168 gcc_cv_as_nios2_gotoff_relocation=no 28169 if test x$gcc_cv_as != x; then 28170 $as_echo ' .extern foo 28171 .data 28172 .long %gotoff(foo)' > conftest.s 28173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28175 (eval $ac_try) 2>&5 28176 ac_status=$? 28177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28178 test $ac_status = 0; }; } 28179 then 28180 gcc_cv_as_nios2_gotoff_relocation=yes 28181 else 28182 echo "configure: failed program was" >&5 28183 cat conftest.s >&5 28184 fi 28185 rm -f conftest.o conftest.s 28186 fi 28187fi 28188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5 28189$as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; } 28190if test $gcc_cv_as_nios2_gotoff_relocation = yes; then 28191 28192$as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h 28193 28194fi 28195 28196 ;; 28197 riscv*-*-*) 28198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5 28199$as_echo_n "checking assembler for .attribute support... " >&6; } 28200if ${gcc_cv_as_riscv_attribute+:} false; then : 28201 $as_echo_n "(cached) " >&6 28202else 28203 gcc_cv_as_riscv_attribute=no 28204 if test $in_tree_gas = yes; then 28205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0` 28206 then gcc_cv_as_riscv_attribute=yes 28207fi 28208 elif test x$gcc_cv_as != x; then 28209 $as_echo '.attribute stack_align,4' > conftest.s 28210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28212 (eval $ac_try) 2>&5 28213 ac_status=$? 28214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28215 test $ac_status = 0; }; } 28216 then 28217 gcc_cv_as_riscv_attribute=yes 28218 else 28219 echo "configure: failed program was" >&5 28220 cat conftest.s >&5 28221 fi 28222 rm -f conftest.o conftest.s 28223 fi 28224fi 28225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5 28226$as_echo "$gcc_cv_as_riscv_attribute" >&6; } 28227if test $gcc_cv_as_riscv_attribute = yes; then 28228 28229$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h 28230 28231fi 28232 28233 ;; 28234 s390*-*-*) 28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 28236$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 28237if ${gcc_cv_as_s390_gnu_attribute+:} false; then : 28238 $as_echo_n "(cached) " >&6 28239else 28240 gcc_cv_as_s390_gnu_attribute=no 28241 if test $in_tree_gas = yes; then 28242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 28243 then gcc_cv_as_s390_gnu_attribute=yes 28244fi 28245 elif test x$gcc_cv_as != x; then 28246 $as_echo '.gnu_attribute 8,1' > conftest.s 28247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28249 (eval $ac_try) 2>&5 28250 ac_status=$? 28251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28252 test $ac_status = 0; }; } 28253 then 28254 gcc_cv_as_s390_gnu_attribute=yes 28255 else 28256 echo "configure: failed program was" >&5 28257 cat conftest.s >&5 28258 fi 28259 rm -f conftest.o conftest.s 28260 fi 28261fi 28262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5 28263$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; } 28264if test $gcc_cv_as_s390_gnu_attribute = yes; then 28265 28266$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 28267 28268fi 28269 28270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5 28271$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; } 28272if ${gcc_cv_as_s390_machine_machinemode+:} false; then : 28273 $as_echo_n "(cached) " >&6 28274else 28275 gcc_cv_as_s390_machine_machinemode=no 28276 if test $in_tree_gas = yes; then 28277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0` 28278 then gcc_cv_as_s390_machine_machinemode=yes 28279fi 28280 elif test x$gcc_cv_as != x; then 28281 $as_echo ' .machinemode push 28282 .machinemode pop 28283 .machine push 28284 .machine pop' > conftest.s 28285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28287 (eval $ac_try) 2>&5 28288 ac_status=$? 28289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28290 test $ac_status = 0; }; } 28291 then 28292 gcc_cv_as_s390_machine_machinemode=yes 28293 else 28294 echo "configure: failed program was" >&5 28295 cat conftest.s >&5 28296 fi 28297 rm -f conftest.o conftest.s 28298 fi 28299fi 28300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5 28301$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; } 28302if test $gcc_cv_as_s390_machine_machinemode = yes; then 28303 28304$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h 28305 28306fi 28307 28308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5 28309$as_echo_n "checking assembler for architecture modifiers support... " >&6; } 28310if ${gcc_cv_as_s390_architecture_modifiers+:} false; then : 28311 $as_echo_n "(cached) " >&6 28312else 28313 gcc_cv_as_s390_architecture_modifiers=no 28314 if test $in_tree_gas = yes; then 28315 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0` 28316 then gcc_cv_as_s390_architecture_modifiers=yes 28317fi 28318 elif test x$gcc_cv_as != x; then 28319 $as_echo ' .machine z13+vx ' > conftest.s 28320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28322 (eval $ac_try) 2>&5 28323 ac_status=$? 28324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28325 test $ac_status = 0; }; } 28326 then 28327 gcc_cv_as_s390_architecture_modifiers=yes 28328 else 28329 echo "configure: failed program was" >&5 28330 cat conftest.s >&5 28331 fi 28332 rm -f conftest.o conftest.s 28333 fi 28334fi 28335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5 28336$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; } 28337if test $gcc_cv_as_s390_architecture_modifiers = yes; then 28338 28339$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h 28340 28341fi 28342 28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5 28344$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; } 28345if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then : 28346 $as_echo_n "(cached) " >&6 28347else 28348 gcc_cv_as_s390_vector_loadstore_alignment_hints=no 28349 if test $in_tree_gas = yes; then 28350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0` 28351 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes 28352fi 28353 elif test x$gcc_cv_as != x; then 28354 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s 28355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28357 (eval $ac_try) 2>&5 28358 ac_status=$? 28359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28360 test $ac_status = 0; }; } 28361 then 28362 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes 28363 else 28364 echo "configure: failed program was" >&5 28365 cat conftest.s >&5 28366 fi 28367 rm -f conftest.o conftest.s 28368 fi 28369fi 28370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5 28371$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; } 28372if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then 28373 28374$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h 28375 28376fi 28377 28378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5 28379$as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; } 28380if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then : 28381 $as_echo_n "(cached) " >&6 28382else 28383 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no 28384 if test x$gcc_cv_as != x; then 28385 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s 28386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5' 28387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28388 (eval $ac_try) 2>&5 28389 ac_status=$? 28390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28391 test $ac_status = 0; }; } 28392 then 28393 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes 28394 else 28395 echo "configure: failed program was" >&5 28396 cat conftest.s >&5 28397 fi 28398 rm -f conftest.o conftest.s 28399 fi 28400fi 28401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5 28402$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; } 28403if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then 28404 28405$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h 28406 28407fi 28408 28409 28410 ;; 28411esac 28412 28413# Mips and HP-UX need the GNU assembler. 28414# Linux on IA64 might be able to use the Intel assembler. 28415 28416case "$target" in 28417 mips*-*-* | *-*-hpux* ) 28418 if test x$gas_flag = xyes \ 28419 || test x"$host" != x"$build" \ 28420 || test ! -x "$gcc_cv_as" \ 28421 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then 28422 : 28423 else 28424 echo "*** This configuration requires the GNU assembler" >&2 28425 exit 1 28426 fi 28427 ;; 28428esac 28429 28430# ??? Not all targets support dwarf2 debug_line, even within a version 28431# of gas. Moreover, we need to emit a valid instruction to trigger any 28432# info to the output file. So, as supported targets are added to gas 2.11, 28433# add some instruction here to (also) show we expect this might work. 28434# ??? Once 2.11 is released, probably need to add first known working 28435# version to the per-target configury. 28436case "$cpu_type" in 28437 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \ 28438 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \ 28439 | tilegx | tilepro | visium | xstormy16 | xtensa) 28440 insn="nop" 28441 ;; 28442 ia64 | s390) 28443 insn="nop 0" 28444 ;; 28445 mmix) 28446 insn="swym 0" 28447 ;; 28448esac 28449if test x"$insn" != x; then 28450 conftest_s="\ 28451 .file 1 \"conftest.s\" 28452 .loc 1 3 0 28453 $insn" 28454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5 28455$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; } 28456if ${gcc_cv_as_dwarf2_debug_line+:} false; then : 28457 $as_echo_n "(cached) " >&6 28458else 28459 gcc_cv_as_dwarf2_debug_line=no 28460 if test $in_tree_gas = yes; then 28461 if test $in_tree_gas_is_elf = yes \ 28462 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 28463 then gcc_cv_as_dwarf2_debug_line=yes 28464fi 28465 elif test x$gcc_cv_as != x; then 28466 $as_echo "$conftest_s" > conftest.s 28467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28469 (eval $ac_try) 2>&5 28470 ac_status=$? 28471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28472 test $ac_status = 0; }; } 28473 then 28474 if test x$gcc_cv_objdump != x \ 28475 && $gcc_cv_objdump -h conftest.o 2> /dev/null \ 28476 | grep debug_line > /dev/null 2>&1; then 28477 gcc_cv_as_dwarf2_debug_line=yes 28478 elif test x$gcc_cv_otool != x \ 28479 && $gcc_cv_otool -l conftest.o 2> /dev/null \ 28480 | grep debug_line > /dev/null 2>&1; then 28481 gcc_cv_as_dwarf2_debug_line=yes 28482 fi 28483 else 28484 echo "configure: failed program was" >&5 28485 cat conftest.s >&5 28486 fi 28487 rm -f conftest.o conftest.s 28488 fi 28489fi 28490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5 28491$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; } 28492 28493 28494 28495# The .debug_line file table must be in the exact order that 28496# we specified the files, since these indices are also used 28497# by DW_AT_decl_file. Approximate this test by testing if 28498# the assembler bitches if the same index is assigned twice. 28499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5 28500$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; } 28501if ${gcc_cv_as_dwarf2_file_buggy+:} false; then : 28502 $as_echo_n "(cached) " >&6 28503else 28504 gcc_cv_as_dwarf2_file_buggy=no 28505 if test x$gcc_cv_as != x; then 28506 $as_echo ' .file 1 "foo.s" 28507 .file 1 "bar.s"' > conftest.s 28508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28510 (eval $ac_try) 2>&5 28511 ac_status=$? 28512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28513 test $ac_status = 0; }; } 28514 then 28515 gcc_cv_as_dwarf2_file_buggy=yes 28516 else 28517 echo "configure: failed program was" >&5 28518 cat conftest.s >&5 28519 fi 28520 rm -f conftest.o conftest.s 28521 fi 28522fi 28523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5 28524$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; } 28525 28526 28527 28528 if test $gcc_cv_as_dwarf2_debug_line = yes \ 28529 && test $gcc_cv_as_dwarf2_file_buggy = no; then 28530 28531$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h 28532 28533 28534 if test $gcc_cv_as_leb128 = yes; then 28535 conftest_s="\ 28536 .file 1 \"conftest.s\" 28537 .loc 1 3 0 view .LVU1 28538 $insn 28539 .data 28540 .uleb128 .LVU1 28541 .uleb128 .LVU1 28542" 28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5 28544$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; } 28545if ${gcc_cv_as_dwarf2_debug_view+:} false; then : 28546 $as_echo_n "(cached) " >&6 28547else 28548 gcc_cv_as_dwarf2_debug_view=no 28549 if test $in_tree_gas = yes; then 28550 if test $in_tree_gas_is_elf = yes \ 28551 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0` 28552 then gcc_cv_as_dwarf2_debug_view=yes 28553fi 28554 elif test x$gcc_cv_as != x; then 28555 $as_echo "$conftest_s" > conftest.s 28556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28558 (eval $ac_try) 2>&5 28559 ac_status=$? 28560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28561 test $ac_status = 0; }; } 28562 then 28563 gcc_cv_as_dwarf2_debug_view=yes 28564 else 28565 echo "configure: failed program was" >&5 28566 cat conftest.s >&5 28567 fi 28568 rm -f conftest.o conftest.s 28569 fi 28570fi 28571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5 28572$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; } 28573if test $gcc_cv_as_dwarf2_debug_view = yes; then 28574 28575$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h 28576 28577fi 28578 28579 fi 28580 fi 28581 28582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5 28583$as_echo_n "checking assembler for --gdwarf2 option... " >&6; } 28584if ${gcc_cv_as_gdwarf2_flag+:} false; then : 28585 $as_echo_n "(cached) " >&6 28586else 28587 gcc_cv_as_gdwarf2_flag=no 28588 if test $in_tree_gas = yes; then 28589 if test $in_tree_gas_is_elf = yes \ 28590 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 28591 then gcc_cv_as_gdwarf2_flag=yes 28592fi 28593 elif test x$gcc_cv_as != x; then 28594 $as_echo "$insn" > conftest.s 28595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5' 28596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28597 (eval $ac_try) 2>&5 28598 ac_status=$? 28599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28600 test $ac_status = 0; }; } 28601 then 28602 gcc_cv_as_gdwarf2_flag=yes 28603 else 28604 echo "configure: failed program was" >&5 28605 cat conftest.s >&5 28606 fi 28607 rm -f conftest.o conftest.s 28608 fi 28609fi 28610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5 28611$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; } 28612if test $gcc_cv_as_gdwarf2_flag = yes; then 28613 28614$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h 28615 28616fi 28617 28618 28619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5 28620$as_echo_n "checking assembler for --gstabs option... " >&6; } 28621if ${gcc_cv_as_gstabs_flag+:} false; then : 28622 $as_echo_n "(cached) " >&6 28623else 28624 gcc_cv_as_gstabs_flag=no 28625 if test $in_tree_gas = yes; then 28626 if test $in_tree_gas_is_elf = yes \ 28627 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 28628 then gcc_cv_as_gstabs_flag=yes 28629fi 28630 elif test x$gcc_cv_as != x; then 28631 $as_echo "$insn" > conftest.s 28632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5' 28633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28634 (eval $ac_try) 2>&5 28635 ac_status=$? 28636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28637 test $ac_status = 0; }; } 28638 then 28639 gcc_cv_as_gstabs_flag=yes 28640 else 28641 echo "configure: failed program was" >&5 28642 cat conftest.s >&5 28643 fi 28644 rm -f conftest.o conftest.s 28645 fi 28646fi 28647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5 28648$as_echo "$gcc_cv_as_gstabs_flag" >&6; } 28649if test $gcc_cv_as_gstabs_flag = yes; then 28650 28651$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h 28652 28653fi 28654 28655 28656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5 28657$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; } 28658if ${gcc_cv_as_debug_prefix_map_flag+:} false; then : 28659 $as_echo_n "(cached) " >&6 28660else 28661 gcc_cv_as_debug_prefix_map_flag=no 28662 if test $in_tree_gas = yes; then 28663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 28664 then gcc_cv_as_debug_prefix_map_flag=yes 28665fi 28666 elif test x$gcc_cv_as != x; then 28667 $as_echo "$insn" > conftest.s 28668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5' 28669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28670 (eval $ac_try) 2>&5 28671 ac_status=$? 28672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28673 test $ac_status = 0; }; } 28674 then 28675 gcc_cv_as_debug_prefix_map_flag=yes 28676 else 28677 echo "configure: failed program was" >&5 28678 cat conftest.s >&5 28679 fi 28680 rm -f conftest.o conftest.s 28681 fi 28682fi 28683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5 28684$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; } 28685if test $gcc_cv_as_debug_prefix_map_flag = yes; then 28686 28687$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h 28688 28689fi 28690 28691fi 28692 28693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5 28694$as_echo_n "checking assembler for compressed debug sections... " >&6; } 28695if ${gcc_cv_as_compress_debug+:} false; then : 28696 $as_echo_n "(cached) " >&6 28697else 28698 gcc_cv_as_compress_debug=no 28699 if test x$gcc_cv_as != x; then 28700 $as_echo '' > conftest.s 28701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28703 (eval $ac_try) 2>&5 28704 ac_status=$? 28705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28706 test $ac_status = 0; }; } 28707 then 28708 # gas compiled without zlib cannot compress debug sections and warns 28709 # about it, but still exits successfully. So check for this, too. 28710 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null 28711 then 28712 gcc_cv_as_compress_debug=0 28713 # Since binutils 2.26, gas supports --compress-debug-sections=type, 28714 # defaulting to the ELF gABI format. 28715 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1 28716 then 28717 gcc_cv_as_compress_debug=2 28718 gcc_cv_as_compress_debug_option="--compress-debug-sections" 28719 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections" 28720 # Before binutils 2.26, gas only supported --compress-debug-options and 28721 # emitted the traditional GNU format. 28722 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1 28723 then 28724 gcc_cv_as_compress_debug=1 28725 gcc_cv_as_compress_debug_option="--compress-debug-sections" 28726 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections" 28727 else 28728 gcc_cv_as_compress_debug=0 28729 fi 28730 else 28731 echo "configure: failed program was" >&5 28732 cat conftest.s >&5 28733 fi 28734 rm -f conftest.o conftest.s 28735 fi 28736fi 28737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5 28738$as_echo "$gcc_cv_as_compress_debug" >&6; } 28739 28740 28741 28742cat >>confdefs.h <<_ACEOF 28743#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug 28744_ACEOF 28745 28746 28747cat >>confdefs.h <<_ACEOF 28748#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option" 28749_ACEOF 28750 28751 28752cat >>confdefs.h <<_ACEOF 28753#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option" 28754_ACEOF 28755 28756 28757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5 28758$as_echo_n "checking assembler for .lcomm with alignment... " >&6; } 28759if ${gcc_cv_as_lcomm_with_alignment+:} false; then : 28760 $as_echo_n "(cached) " >&6 28761else 28762 gcc_cv_as_lcomm_with_alignment=no 28763 if test x$gcc_cv_as != x; then 28764 $as_echo '.lcomm bar,4,16' > conftest.s 28765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28767 (eval $ac_try) 2>&5 28768 ac_status=$? 28769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28770 test $ac_status = 0; }; } 28771 then 28772 gcc_cv_as_lcomm_with_alignment=yes 28773 else 28774 echo "configure: failed program was" >&5 28775 cat conftest.s >&5 28776 fi 28777 rm -f conftest.o conftest.s 28778 fi 28779fi 28780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5 28781$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; } 28782if test $gcc_cv_as_lcomm_with_alignment = yes; then 28783 28784$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h 28785 28786fi 28787 28788 28789if test x$with_sysroot = x && test x$host = x$target \ 28790 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \ 28791 && test "$prefix" != "NONE"; then 28792 28793cat >>confdefs.h <<_ACEOF 28794#define PREFIX_INCLUDE_DIR "$prefix/include" 28795_ACEOF 28796 28797fi 28798 28799# Determine the version of glibc, if any, used on the target. 28800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5 28801$as_echo_n "checking for target glibc version... " >&6; } 28802 28803# Check whether --with-glibc-version was given. 28804if test "${with_glibc_version+set}" = set; then : 28805 withval=$with_glibc_version; 28806if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then 28807 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'` 28808 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'` 28809else 28810 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5 28811fi 28812else 28813 28814glibc_version_major=0 28815glibc_version_minor=0 28816if test -f $target_header_dir/features.h \ 28817 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \ 28818 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then 28819 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'` 28820 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'` 28821fi 28822fi 28823 28824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5 28825$as_echo "$glibc_version_major.$glibc_version_minor" >&6; } 28826 28827cat >>confdefs.h <<_ACEOF 28828#define TARGET_GLIBC_MAJOR $glibc_version_major 28829_ACEOF 28830 28831 28832cat >>confdefs.h <<_ACEOF 28833#define TARGET_GLIBC_MINOR $glibc_version_minor 28834_ACEOF 28835 28836 28837# Check whether --enable-gnu-unique-object was given. 28838if test "${enable_gnu_unique_object+set}" = set; then : 28839 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in 28840 yes | no) ;; 28841 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object. 28842Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 28843 esac 28844else 28845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5 28846$as_echo_n "checking assembler for gnu_unique_object... " >&6; } 28847if ${gcc_cv_as_gnu_unique_object+:} false; then : 28848 $as_echo_n "(cached) " >&6 28849else 28850 gcc_cv_as_gnu_unique_object=no 28851 if test $in_tree_gas = yes; then 28852 if test $in_tree_gas_is_elf = yes \ 28853 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52` 28854 then gcc_cv_as_gnu_unique_object=yes 28855fi 28856 elif test x$gcc_cv_as != x; then 28857 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s 28858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28860 (eval $ac_try) 2>&5 28861 ac_status=$? 28862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28863 test $ac_status = 0; }; } 28864 then 28865 gcc_cv_as_gnu_unique_object=yes 28866 else 28867 echo "configure: failed program was" >&5 28868 cat conftest.s >&5 28869 fi 28870 rm -f conftest.o conftest.s 28871 fi 28872fi 28873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5 28874$as_echo "$gcc_cv_as_gnu_unique_object" >&6; } 28875if test $gcc_cv_as_gnu_unique_object = yes; then 28876 # We need to unquote above to to use the definition from config.gcc. 28877# Also check for ld.so support, i.e. glibc 2.11 or higher. 28878 28879if test $glibc_version_major -gt 2 \ 28880 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then : 28881 enable_gnu_unique_object=yes 28882fi 28883 28884fi 28885 28886fi 28887 28888if test x$enable_gnu_unique_object = xyes; then 28889 28890$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h 28891 28892fi 28893 28894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5 28895$as_echo_n "checking assembler for tolerance to line number 0... " >&6; } 28896if ${gcc_cv_as_line_zero+:} false; then : 28897 $as_echo_n "(cached) " >&6 28898else 28899 gcc_cv_as_line_zero=no 28900 if test $in_tree_gas = yes; then 28901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91` 28902 then gcc_cv_as_line_zero=yes 28903fi 28904 elif test "x$gcc_cv_as" != x; then 28905 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s 28906 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out' 28907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28908 (eval $ac_try) 2>&5 28909 ac_status=$? 28910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28911 test $ac_status = 0; }; } && 28912 test "x`cat conftest.out`" = x 28913 then 28914 gcc_cv_as_line_zero=yes 28915 else 28916 echo "configure: failed program was" >&5 28917 cat conftest.s >&5 28918 echo "configure: error output was" >&5 28919 cat conftest.out >&5 28920 fi 28921 rm -f conftest.o conftest.s conftest.out 28922 fi 28923fi 28924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5 28925$as_echo "$gcc_cv_as_line_zero" >&6; } 28926if test "x$gcc_cv_as_line_zero" = xyes; then 28927 28928$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h 28929 28930fi 28931 28932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5 28933$as_echo_n "checking support for thin archives... " >&6; } 28934thin_archive_support=no 28935echo 'int main (void) { return 0; }' > conftest.c 28936if ($AR --version | sed 1q | grep "GNU ar" \ 28937 && $CC $CFLAGS -c conftest.c \ 28938 && $AR rcT conftest.a conftest.o \ 28939 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then 28940 thin_archive_support=yes 28941fi 28942rm -f conftest.c conftest.o conftest.a conftest 28943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5 28944$as_echo "$thin_archive_support" >&6; } 28945 28946 28947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5 28948$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; } 28949gcc_cv_ld_eh_frame_hdr=no 28950if test $in_tree_ld = yes ; then 28951 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 \ 28952 && test $in_tree_ld_is_elf = yes; then 28953 gcc_cv_ld_eh_frame_hdr=yes 28954 fi 28955elif test x$gcc_cv_ld != x; then 28956 if echo "$ld_ver" | grep GNU > /dev/null; then 28957 # Check if linker supports --eh-frame-hdr option 28958 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then 28959 gcc_cv_ld_eh_frame_hdr=yes 28960 fi 28961 else 28962 case "$target" in 28963 *-*-solaris2*) 28964 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251. 28965 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then 28966 gcc_cv_ld_eh_frame_hdr=yes 28967 fi 28968 ;; 28969 esac 28970 fi 28971fi 28972 28973if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then 28974 28975$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h 28976 28977fi 28978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5 28979$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; } 28980 28981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5 28982$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; } 28983gcc_cv_ld_eh_frame_ciev3=no 28984if test $in_tree_ld = yes ; then 28985 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 \ 28986 && test $in_tree_ld_is_elf = yes; then 28987 gcc_cv_ld_eh_frame_ciev3=yes 28988 fi 28989elif test x$gcc_cv_ld != x; then 28990 if echo "$ld_ver" | grep GNU > /dev/null; then 28991 gcc_cv_ld_eh_frame_ciev3=yes 28992 if test 0"$ld_date" -lt 20040513; then 28993 if test -n "$ld_date"; then 28994 # If there was date string, but was earlier than 2004-05-13, fail 28995 gcc_cv_ld_eh_frame_ciev3=no 28996 elif test "$ld_vers_major" -lt 2; then 28997 gcc_cv_ld_eh_frame_ciev3=no 28998 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 28999 gcc_cv_ld_eh_frame_ciev3=no 29000 fi 29001 fi 29002 else 29003 case "$target" in 29004 *-*-solaris2*) 29005 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1. 29006 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then 29007 gcc_cv_ld_eh_frame_ciev3=yes 29008 fi 29009 ;; 29010 esac 29011 fi 29012fi 29013 29014cat >>confdefs.h <<_ACEOF 29015#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi` 29016_ACEOF 29017 29018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5 29019$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; } 29020 29021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5 29022$as_echo_n "checking linker position independent executable support... " >&6; } 29023gcc_cv_ld_pie=no 29024if test $in_tree_ld = yes ; then 29025 case "$target" in 29026 # Full PIE support on Solaris was only introduced in gld 2.26. 29027 *-*-solaris2*) gcc_gld_pie_min_version=26 ;; 29028 *) gcc_gld_pie_min_version=15 ;; 29029 esac 29030 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 \ 29031 && test $in_tree_ld_is_elf = yes; then 29032 gcc_cv_ld_pie=yes 29033 fi 29034elif test x$gcc_cv_ld != x; then 29035 # Check if linker supports -pie option 29036 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then 29037 gcc_cv_ld_pie=yes 29038 case "$target" in 29039 *-*-solaris2*) 29040 if echo "$ld_ver" | grep GNU > /dev/null \ 29041 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then 29042 gcc_cv_ld_pie=no 29043 fi 29044 ;; 29045 esac 29046 else 29047 case "$target" in 29048 *-*-solaris2.1[1-9]*) 29049 # Solaris 11.3 added PIE support. 29050 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then 29051 gcc_cv_ld_pie=yes 29052 fi 29053 ;; 29054 esac 29055 fi 29056fi 29057if test x"$gcc_cv_ld_pie" = xyes; then 29058 29059$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h 29060 29061fi 29062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5 29063$as_echo "$gcc_cv_ld_pie" >&6; } 29064 29065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5 29066$as_echo_n "checking linker PIE support with copy reloc... " >&6; } 29067gcc_cv_ld_pie_copyreloc=no 29068if test $gcc_cv_ld_pie = yes ; then 29069 if test $in_tree_ld = yes ; then 29070 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 29071 gcc_cv_ld_pie_copyreloc=yes 29072 fi 29073 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 29074 # Check if linker supports -pie option with copy reloc 29075 case "$target" in 29076 i?86-*-linux* | x86_64-*-linux*) 29077 cat > conftest1.s <<EOF 29078 .globl a_glob 29079 .data 29080 .type a_glob, @object 29081 .size a_glob, 4 29082a_glob: 29083 .long 2 29084EOF 29085 cat > conftest2.s <<EOF 29086 .text 29087 .globl main 29088 .type main, @function 29089main: 29090 movl %eax, a_glob(%rip) 29091 .size main, .-main 29092 .globl ptr 29093 .section .data.rel,"aw",@progbits 29094 .type ptr, @object 29095ptr: 29096 .quad a_glob 29097EOF 29098 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 29099 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \ 29100 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 29101 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then 29102 gcc_cv_ld_pie_copyreloc=yes 29103 fi 29104 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s 29105 ;; 29106 esac 29107 fi 29108fi 29109 29110cat >>confdefs.h <<_ACEOF 29111#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi` 29112_ACEOF 29113 29114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5 29115$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; } 29116 29117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5 29118$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; } 29119gcc_cv_ld_eh_gc_sections=no 29120if test $in_tree_ld = yes ; then 29121 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 \ 29122 && test $in_tree_ld_is_elf = yes; then 29123 gcc_cv_ld_eh_gc_sections=yes 29124 fi 29125elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 29126 cat > conftest.s <<EOF 29127 .section .text 29128.globl _start 29129 .type _start, @function 29130_start: 29131 .long foo 29132 .size _start, .-_start 29133 .section .text.foo,"ax",@progbits 29134 .type foo, @function 29135foo: 29136 .long 0 29137 .size foo, .-foo 29138 .section .gcc_except_table.foo,"a",@progbits 29139.L0: 29140 .long 0 29141 .section .eh_frame,"a",@progbits 29142 .long .L0 29143EOF 29144 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 29145 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 29146 | grep "gc-sections option ignored" > /dev/null; then 29147 gcc_cv_ld_eh_gc_sections=no 29148 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 29149 | grep gcc_except_table > /dev/null; then 29150 gcc_cv_ld_eh_gc_sections=yes 29151 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections. 29152 if test x$gcc_cv_as_comdat_group != xyes; then 29153 gcc_cv_ld_eh_gc_sections=no 29154 cat > conftest.s <<EOF 29155 .section .text 29156.globl _start 29157 .type _start, @function 29158_start: 29159 .long foo 29160 .size _start, .-_start 29161 .section .gnu.linkonce.t.foo,"ax",@progbits 29162 .type foo, @function 29163foo: 29164 .long 0 29165 .size foo, .-foo 29166 .section .gcc_except_table.foo,"a",@progbits 29167.L0: 29168 .long 0 29169 .section .eh_frame,"a",@progbits 29170 .long .L0 29171EOF 29172 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 29173 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 29174 | grep "gc-sections option ignored" > /dev/null; then 29175 gcc_cv_ld_eh_gc_sections=no 29176 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 29177 | grep gcc_except_table > /dev/null; then 29178 gcc_cv_ld_eh_gc_sections=yes 29179 fi 29180 fi 29181 fi 29182 fi 29183 fi 29184 rm -f conftest.s conftest.o conftest 29185fi 29186case "$target" in 29187 hppa*-*-linux*) 29188 # ??? This apparently exposes a binutils bug with PC-relative relocations. 29189 gcc_cv_ld_eh_gc_sections=no 29190 ;; 29191esac 29192if test x$gcc_cv_ld_eh_gc_sections = xyes; then 29193 29194$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h 29195 29196fi 29197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5 29198$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; } 29199 29200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5 29201$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; } 29202gcc_cv_ld_eh_gc_sections_bug=no 29203if test $in_tree_ld = yes ; then 29204 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 \ 29205 && test $in_tree_ld_is_elf = yes; then 29206 gcc_cv_ld_eh_gc_sections_bug=yes 29207 fi 29208elif 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 29209 gcc_cv_ld_eh_gc_sections_bug=yes 29210 cat > conftest.s <<EOF 29211 .section .text 29212.globl _start 29213 .type _start, @function 29214_start: 29215 .long foo 29216 .size _start, .-_start 29217 .section .text.startup.foo,"ax",@progbits 29218 .type foo, @function 29219foo: 29220 .long 0 29221 .size foo, .-foo 29222 .section .gcc_except_table.foo,"a",@progbits 29223.L0: 29224 .long 0 29225 .section .eh_frame,"a",@progbits 29226 .long .L0 29227EOF 29228 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 29229 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 29230 | grep "gc-sections option ignored" > /dev/null; then 29231 : 29232 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 29233 | grep gcc_except_table > /dev/null; then 29234 gcc_cv_ld_eh_gc_sections_bug=no 29235 fi 29236 fi 29237 rm -f conftest.s conftest.o conftest 29238fi 29239if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then 29240 29241$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h 29242 29243fi 29244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5 29245$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; } 29246 29247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5 29248$as_echo_n "checking linker for compressed debug sections... " >&6; } 29249# gold/gld support compressed debug sections since binutils 2.19/2.21 29250# In binutils 2.26, gld gained support for the ELF gABI format. 29251if test $in_tree_ld = yes ; then 29252 gcc_cv_ld_compress_debug=0 29253 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \ 29254 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then 29255 gcc_cv_ld_compress_debug=2 29256 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 29257 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 \ 29258 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then 29259 gcc_cv_ld_compress_debug=3 29260 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 29261 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 \ 29262 && test $in_tree_ld_is_elf = yes; then 29263 gcc_cv_ld_compress_debug=1 29264 fi 29265elif echo "$ld_ver" | grep GNU > /dev/null; then 29266 if test "$ld_vers_major" -lt 2 \ 29267 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then 29268 gcc_cv_ld_compress_debug=0 29269 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then 29270 gcc_cv_ld_compress_debug=1 29271 else 29272 gcc_cv_ld_compress_debug=3 29273 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 29274 fi 29275 if test $ld_is_gold = yes; then 29276 gcc_cv_ld_compress_debug=2 29277 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 29278 fi 29279else 29280 case "${target}" in 29281 *-*-solaris2*) 29282 # Introduced in Solaris 11.2. 29283 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then 29284 gcc_cv_ld_compress_debug=3 29285 gcc_cv_ld_compress_debug_option="-z compress-sections" 29286 else 29287 gcc_cv_ld_compress_debug=0 29288 fi 29289 ;; 29290 *) 29291 # Assume linkers other than GNU ld don't support compessed debug 29292 # sections. 29293 gcc_cv_ld_compress_debug=0 29294 ;; 29295 esac 29296fi 29297 29298cat >>confdefs.h <<_ACEOF 29299#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug 29300_ACEOF 29301 29302 29303cat >>confdefs.h <<_ACEOF 29304#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option" 29305_ACEOF 29306 29307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5 29308$as_echo "$gcc_cv_ld_compress_debug" >&6; } 29309 29310if test x"$ld64_flag" = x"yes"; then 29311 29312 # Set defaults for possibly untestable items. 29313 gcc_cv_ld64_export_dynamic=0 29314 29315 if test "$build" = "$host"; then 29316 darwin_try_test=1 29317 else 29318 darwin_try_test=0 29319 fi 29320 29321 # On Darwin, because of FAT library support, it is often possible to execute 29322 # exes from compatible archs even when the host differs from the build system. 29323 case "$build","$host" in 29324 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*) 29325 darwin_try_test=1;; 29326 *) ;; 29327 esac 29328 29329 # If the configurer specified a minimum ld64 version to be supported, then use 29330 # that to determine feature support. 29331 if test x"${gcc_cv_ld64_version}" != x; then 29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5 29333$as_echo_n "checking ld64 specified version... " >&6; } 29334 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'` 29335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5 29336$as_echo "$gcc_cv_ld64_major" >&6; } 29337 if test "$gcc_cv_ld64_major" -ge 236; then 29338 gcc_cv_ld64_export_dynamic=1 29339 fi 29340 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then 29341 # If the version was not specified, try to find it. 29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5 29343$as_echo_n "checking linker version... " >&6; } 29344 if test x"${gcc_cv_ld64_version}" = x; then 29345 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'` 29346 fi 29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5 29348$as_echo "$gcc_cv_ld64_version" >&6; } 29349 29350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5 29351$as_echo_n "checking linker for -export_dynamic support... " >&6; } 29352 gcc_cv_ld64_export_dynamic=1 29353 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then 29354 gcc_cv_ld64_export_dynamic=0 29355 fi 29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5 29357$as_echo "$gcc_cv_ld64_export_dynamic" >&6; } 29358 fi 29359 29360 if test x"${gcc_cv_ld64_version}" != x; then 29361 29362cat >>confdefs.h <<_ACEOF 29363#define LD64_VERSION "${gcc_cv_ld64_version}" 29364_ACEOF 29365 29366 fi 29367 29368 29369cat >>confdefs.h <<_ACEOF 29370#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic 29371_ACEOF 29372 29373fi 29374 29375if test x"$dsymutil_flag" = x"yes"; then 29376 29377 # If the user specified a dsymutil path, then we will already have the 29378 # version string, otherwise, pick it up. 29379 if test x"$gcc_cv_dsymutil" = x; then 29380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5 29381$as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;} 29382 dsymutil_vers="tool unspecified" 29383 elif test x"$dsymutil_vers" = x; then 29384 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1` 29385 fi 29386 29387 dsymutil_temp=`echo $dsymutil_vers | sed 1q` 29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5 29389$as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; } 29390 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then 29391 dsymutil_kind=DWARFUTILS 29392 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'` 29393 elif echo $dsymutil_temp | grep clang- > /dev/null; then 29394 dsymutil_kind=CLANG 29395 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'` 29396 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then 29397 dsymutil_kind=LLVM 29398 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'` 29399 else 29400 dsymutil_kind=UNKNOWN 29401 dsymutil_vers="0.0" 29402 fi 29403 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'` 29404 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'` 29405 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 29406 if test x"${dsymutil_minor}" = x; then 29407 dsymutil_minor=0 29408 fi 29409 if test x"${dsymutil_tiny}" = x; then 29410 dsymutil_tiny=0 29411 fi 29412 29413cat >>confdefs.h <<_ACEOF 29414#define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny} 29415_ACEOF 29416 29417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5 29418$as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; } 29419fi 29420 29421case $target_os in 29422 win32 | pe | cygwin* | mingw32*) 29423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5 29424$as_echo_n "checking broken PE linker dwarf5 support... " >&6; } 29425 gcc_cv_ld_broken_pe_dwarf5=yes 29426 if test $in_tree_ld = yes ; then 29427 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 29428 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \ 29429 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 29430 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then 29431 gcc_cv_ld_broken_pe_dwarf5=no 29432 fi 29433 else 29434 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \ 29435 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then 29436 gcc_cv_ld_broken_pe_dwarf5=no 29437 fi 29438 fi 29439 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then 29440 29441$as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h 29442 29443 fi 29444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5 29445$as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; } 29446 29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5 29448$as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; } 29449 gcc_cv_ld_disable_dynamicbase=no 29450 if test $in_tree_ld = yes; then 29451 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 \ 29452 gcc_cv_ld_disable_dynamicbase=yes 29453 fi 29454 else 29455 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then 29456 gcc_cv_ld_disable_dynamicbase=yes 29457 fi 29458 fi 29459 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then 29460 29461$as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h 29462 29463 fi 29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5 29465$as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; } 29466 ;; 29467esac 29468 29469# -------- 29470# UNSORTED 29471# -------- 29472 29473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 29474$as_echo_n "checking linker --as-needed support... " >&6; } 29475if ${gcc_cv_ld_as_needed+:} false; then : 29476 $as_echo_n "(cached) " >&6 29477else 29478 gcc_cv_ld_as_needed=no 29479gcc_cv_ld_as_needed_option='--as-needed' 29480gcc_cv_ld_no_as_needed_option='--no-as-needed' 29481if test $in_tree_ld = yes ; then 29482 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 \ 29483 && test $in_tree_ld_is_elf = yes; then 29484 gcc_cv_ld_as_needed=yes 29485 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then 29486 gcc_cv_ld_as_needed_option='--push-state --as-needed' 29487 gcc_cv_ld_no_as_needed_option='--pop-state' 29488 fi 29489 fi 29490elif test x$gcc_cv_ld != x; then 29491 # Check if linker supports --as-needed and --no-as-needed options 29492 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then 29493 gcc_cv_ld_as_needed=yes 29494 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \ 29495 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \ 29496 && echo "$ld_ver" | grep GNU > /dev/null \ 29497 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then 29498 # Use these options only when both ld.bfd and ld.gold support 29499 # --push-state/--pop-state, which unfortunately wasn't added 29500 # at the same time. 29501 gcc_cv_ld_as_needed_option='--push-state --as-needed' 29502 gcc_cv_ld_no_as_needed_option='--pop-state' 29503 fi 29504 fi 29505 case "$target:$gnu_ld" in 29506 *-*-solaris2*:no) 29507 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native 29508 # forms. 29509 gcc_cv_ld_as_needed=yes 29510 gcc_cv_ld_as_needed_option="-z ignore" 29511 gcc_cv_ld_no_as_needed_option="-z record" 29512 ;; 29513 esac 29514fi 29515# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses 29516# dl_iterate_phdr, i.e. since Solaris 11. 29517case "$target" in 29518 *-*-solaris2.1[1-9]*) 29519 case "$target" in 29520 i?86-*-* | x86_64-*-*) 29521 if echo "$ld_ver" | grep GNU > /dev/null; then 29522 # Doesn't work with gld on Solaris/x86 due to PR ld/12320. 29523 gcc_cv_ld_as_needed=no 29524 fi 29525 ;; 29526 esac 29527 ;; 29528 *-*-solaris2*) 29529 gcc_cv_ld_as_needed=no 29530 ;; 29531esac 29532 29533fi 29534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5 29535$as_echo "$gcc_cv_ld_as_needed" >&6; } 29536if test x"$gcc_cv_ld_as_needed" = xyes; then 29537 29538$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h 29539 29540 29541cat >>confdefs.h <<_ACEOF 29542#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option" 29543_ACEOF 29544 29545 29546cat >>confdefs.h <<_ACEOF 29547#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option" 29548_ACEOF 29549 29550fi 29551 29552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5 29553$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; } 29554saved_LDFLAGS="$LDFLAGS" 29555for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do 29556 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map" 29557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29558/* end confdefs.h. */ 29559int main(void) {return 0;} 29560_ACEOF 29561if ac_fn_cxx_try_link "$LINENO"; then : 29562 gcc_cv_ld_clearcap=yes; break 29563else 29564 gcc_cv_ld_clearcap=no 29565fi 29566rm -f core conftest.err conftest.$ac_objext \ 29567 conftest$ac_exeext conftest.$ac_ext 29568done 29569LDFLAGS="$saved_LDFLAGS" 29570if test "x$gcc_cv_ld_clearcap" = xyes; then 29571 29572$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h 29573 29574 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map" 29575 29576fi 29577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5 29578$as_echo "$gcc_cv_ld_clearcap" >&6; } 29579 29580case "$target" in 29581 powerpc*-*-*) 29582 case "$target" in 29583 *le-*-linux*) 29584 emul_name="-melf32lppc" 29585 ;; 29586 *) 29587 emul_name="-melf32ppc" 29588 ;; 29589 esac 29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5 29591$as_echo_n "checking linker .gnu.attributes long double support... " >&6; } 29592if ${gcc_cv_ld_ppc_attr+:} false; then : 29593 $as_echo_n "(cached) " >&6 29594else 29595 gcc_cv_ld_ppc_attr=no 29596 if test x"$ld_is_gold" = xyes; then 29597 gcc_cv_ld_ppc_attr=yes 29598 elif test $in_tree_ld = yes ; then 29599 if test "$gcc_cv_gld_major_version" -eq 2 \ 29600 -a "$gcc_cv_gld_minor_version" -ge 28 \ 29601 -o "$gcc_cv_gld_major_version" -gt 2; then 29602 gcc_cv_ld_ppc_attr=yes 29603 fi 29604 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 29605 # check that merging the long double .gnu_attribute doesn't warn 29606 cat > conftest1.s <<EOF 29607 .gnu_attribute 4,1 29608EOF 29609 cat > conftest2.s <<EOF 29610 .gnu_attribute 4,9 29611EOF 29612 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 29613 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 29614 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \ 29615 && test ! -s conftest.err; then 29616 gcc_cv_ld_ppc_attr=yes 29617 fi 29618 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s 29619 fi 29620 29621fi 29622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5 29623$as_echo "$gcc_cv_ld_ppc_attr" >&6; } 29624 if test x$gcc_cv_ld_ppc_attr = xyes; then 29625 29626$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h 29627 29628 fi 29629 ;; 29630esac 29631 29632case "$target:$tm_file" in 29633 powerpc64*-*-freebsd* | powerpc64-*-netbsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*) 29634 case "$target" in 29635 *le-*-linux*) 29636 emul_name="-melf64lppc" 29637 ;; 29638 *-*-linux* | *-*-netbsd*) 29639 emul_name="-melf64ppc" 29640 ;; 29641 *le-*-freebsd*) 29642 emul_name="-melf64lppc_fbsd" 29643 ;; 29644 *-*-freebsd*) 29645 emul_name="-melf64ppc_fbsd" 29646 ;; 29647 esac 29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5 29649$as_echo_n "checking linker support for omitting dot symbols... " >&6; } 29650if ${gcc_cv_ld_no_dot_syms+:} false; then : 29651 $as_echo_n "(cached) " >&6 29652else 29653 gcc_cv_ld_no_dot_syms=no 29654 if test x"$ld_is_gold" = xyes; then 29655 gcc_cv_ld_no_dot_syms=yes 29656 elif test $in_tree_ld = yes ; then 29657 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 29658 gcc_cv_ld_no_dot_syms=yes 29659 fi 29660 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 29661 cat > conftest1.s <<EOF 29662 .text 29663 bl .foo 29664EOF 29665 cat > conftest2.s <<EOF 29666 .section ".opd","aw" 29667 .align 3 29668 .globl foo 29669 .type foo,@function 29670foo: 29671 .quad .LEfoo,.TOC.@tocbase,0 29672 .text 29673.LEfoo: 29674 blr 29675 .size foo,.-.LEfoo 29676EOF 29677 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 29678 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 29679 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then 29680 gcc_cv_ld_no_dot_syms=yes 29681 fi 29682 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s 29683 fi 29684 29685fi 29686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5 29687$as_echo "$gcc_cv_ld_no_dot_syms" >&6; } 29688 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then 29689 29690$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h 29691 29692 fi 29693 29694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5 29695$as_echo_n "checking linker large toc support... " >&6; } 29696if ${gcc_cv_ld_large_toc+:} false; then : 29697 $as_echo_n "(cached) " >&6 29698else 29699 gcc_cv_ld_large_toc=no 29700 if test x"$ld_is_gold" = xyes; then 29701 gcc_cv_ld_large_toc=yes 29702 elif test $in_tree_ld = yes ; then 29703 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 29704 gcc_cv_ld_large_toc=yes 29705 fi 29706 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 29707 cat > conftest.s <<EOF 29708 .section ".tbss","awT",@nobits 29709 .align 3 29710ie0: .space 8 29711 .global _start 29712 .text 29713_start: 29714 addis 9,13,ie0@got@tprel@ha 29715 ld 9,ie0@got@tprel@l(9) 29716EOF 29717 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 29718 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then 29719 gcc_cv_ld_large_toc=yes 29720 fi 29721 rm -f conftest conftest.o conftest.s 29722 fi 29723 29724fi 29725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5 29726$as_echo "$gcc_cv_ld_large_toc" >&6; } 29727 if test x"$gcc_cv_ld_large_toc" = xyes; then 29728 29729$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h 29730 29731 fi 29732 29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5 29734$as_echo_n "checking linker toc pointer alignment... " >&6; } 29735if ${gcc_cv_ld_toc_align+:} false; then : 29736 $as_echo_n "(cached) " >&6 29737else 29738 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then 29739 cat > conftest.s <<EOF 29740 .global _start 29741 .text 29742_start: 29743 addis 9,2,x@got@ha 29744 .section .data.rel.ro,"aw",@progbits 29745 .p2align 16 29746 .space 32768 29747x: .quad .TOC. 29748EOF 29749 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 29750 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then 29751 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)) }'` 29752 fi 29753 rm -f conftest conftest.o conftest.s 29754 fi 29755 29756fi 29757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5 29758$as_echo "$gcc_cv_ld_toc_align" >&6; } 29759 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then 29760 29761cat >>confdefs.h <<_ACEOF 29762#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align 29763_ACEOF 29764 29765 fi 29766 ;; 29767esac 29768 29769case "$target" in 29770 *-*-aix*) 29771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5 29772$as_echo_n "checking linker large toc support... " >&6; } 29773if ${gcc_cv_ld_large_toc+:} false; then : 29774 $as_echo_n "(cached) " >&6 29775else 29776 gcc_cv_ld_large_toc=no 29777 if test x$gcc_cv_as != x ; then 29778 cat > conftest.s <<EOF 29779 .toc 29780LC..1: 29781 .tc a[TC],a[RW] 29782 .extern a[RW] 29783 .csect .text[PR] 29784.largetoctest: 29785 addis 9,LC..1@u(2) 29786 ld 3,LC..1@l(9) 29787EOF 29788 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then 29789 gcc_cv_ld_large_toc=yes 29790 fi 29791 rm -f conftest conftest.o conftest.s 29792 fi 29793 29794fi 29795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5 29796$as_echo "$gcc_cv_ld_large_toc" >&6; } 29797 if test x"$gcc_cv_ld_large_toc" = xyes; then 29798 29799$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h 29800 29801 fi 29802 ;; 29803esac 29804 29805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5 29806$as_echo_n "checking linker --build-id support... " >&6; } 29807if ${gcc_cv_ld_buildid+:} false; then : 29808 $as_echo_n "(cached) " >&6 29809else 29810 gcc_cv_ld_buildid=no 29811 if test $in_tree_ld = yes ; then 29812 if test "$gcc_cv_gld_major_version" -eq 2 -a \ 29813 "$gcc_cv_gld_minor_version" -ge 18 -o \ 29814 "$gcc_cv_gld_major_version" -gt 2 \ 29815 && test $in_tree_ld_is_elf = yes; then 29816 gcc_cv_ld_buildid=yes 29817 fi 29818 elif test x$gcc_cv_ld != x; then 29819 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then 29820 gcc_cv_ld_buildid=yes 29821 fi 29822 fi 29823fi 29824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5 29825$as_echo "$gcc_cv_ld_buildid" >&6; } 29826if test x"$gcc_cv_ld_buildid" = xyes; then 29827 29828$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h 29829 29830fi 29831 29832# Check whether --enable-linker-build-id was given. 29833if test "${enable_linker_build_id+set}" = set; then : 29834 enableval=$enable_linker_build_id; 29835else 29836 enable_linker_build_id=no 29837fi 29838 29839 29840if test x"$enable_linker_build_id" = xyes; then 29841 if test x"$gcc_cv_ld_buildid" = xyes; then 29842 29843$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h 29844 29845 else 29846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5 29847$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;} 29848 fi 29849fi 29850 29851# In binutils 2.21, GNU ld gained support for new emulations fully 29852# supporting the Solaris 2 ABI. Detect their presence in the linker used. 29853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5 29854$as_echo_n "checking linker *_sol2 emulation support... " >&6; } 29855if ${gcc_cv_ld_sol2_emulation+:} false; then : 29856 $as_echo_n "(cached) " >&6 29857else 29858 gcc_cv_ld_sol2_emulation=no 29859 if test $in_tree_ld = yes ; then 29860 if test "$gcc_cv_gld_major_version" -eq 2 -a \ 29861 "$gcc_cv_gld_minor_version" -ge 21 -o \ 29862 "$gcc_cv_gld_major_version" -gt 2 \ 29863 && test $in_tree_ld_is_elf = yes; then 29864 gcc_cv_ld_sol2_emulation=yes 29865 fi 29866 elif test x$gcc_cv_ld != x; then 29867 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \ 29868 grep _sol2 > /dev/null; then 29869 gcc_cv_ld_sol2_emulation=yes 29870 fi 29871 fi 29872fi 29873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5 29874$as_echo "$gcc_cv_ld_sol2_emulation" >&6; } 29875if test x"$gcc_cv_ld_sol2_emulation" = xyes; then 29876 29877$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h 29878 29879fi 29880 29881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5 29882$as_echo_n "checking linker --sysroot support... " >&6; } 29883if ${gcc_cv_ld_sysroot+:} false; then : 29884 $as_echo_n "(cached) " >&6 29885else 29886 gcc_cv_ld_sysroot=no 29887 if test $in_tree_ld = yes ; then 29888 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 29889 gcc_cv_ld_sysroot=yes 29890 fi 29891 elif test x$gcc_cv_ld != x; then 29892 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then 29893 gcc_cv_ld_sysroot=yes 29894 fi 29895 fi 29896fi 29897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5 29898$as_echo "$gcc_cv_ld_sysroot" >&6; } 29899if test x"$gcc_cv_ld_sysroot" = xyes; then 29900 29901$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h 29902 29903fi 29904 29905case $target in 29906*-*-solaris2*) 29907 # Check for system-provided CRTs on Solaris 11.x and Solaris 12. 29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5 29909$as_echo_n "checking system-provided CRTs on Solaris... " >&6; } 29910if ${gcc_cv_solaris_crts+:} false; then : 29911 $as_echo_n "(cached) " >&6 29912else 29913 gcc_cv_solaris_crts=no 29914 if test x$host != x$target; then 29915 if test "x$with_sysroot" = xyes; then 29916 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root" 29917 else 29918 target_sysroot="${with_sysroot}" 29919 fi 29920 fi 29921 target_libdir="$target_sysroot/usr/lib" 29922 # At the time they were added, gcrt1.o became a symlink for backwards 29923 # compatibility on x86, while crt1.o was added on sparc, so check for that. 29924 case $target in 29925 i?86-*-solaris2* | x86_64-*-solaris2*) 29926 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi 29927 ;; 29928 sparc*-*-solaris2*) 29929 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi 29930 ;; 29931 esac 29932fi 29933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5 29934$as_echo "$gcc_cv_solaris_crts" >&6; } 29935 ;; 29936esac 29937if test x$gcc_cv_solaris_crts = xyes; then 29938 29939$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h 29940 29941fi 29942 29943# Check whether --enable-libssp was given. 29944if test "${enable_libssp+set}" = set; then : 29945 enableval=$enable_libssp; case "${enableval}" in 29946 yes|no) 29947 ;; 29948 *) 29949 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5 29950 ;; 29951esac 29952fi 29953 29954 29955# Test for stack protector support in target C library. 29956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5 29957$as_echo_n "checking __stack_chk_fail in target C library... " >&6; } 29958if ${gcc_cv_libc_provides_ssp+:} false; then : 29959 $as_echo_n "(cached) " >&6 29960else 29961 gcc_cv_libc_provides_ssp=no 29962 if test "x$enable_libssp" = "xno"; then 29963 gcc_cv_libc_provides_ssp=yes 29964 elif test "x$enable_libssp" = "xyes"; then 29965 gcc_cv_libc_provides_ssp=no 29966 else 29967 case "$target" in 29968 *-*-musl*) 29969 # All versions of musl provide stack protector 29970 gcc_cv_libc_provides_ssp=yes;; 29971 *-*-linux* | *-*-kfreebsd*-gnu) 29972 # glibc 2.4 and later provides __stack_chk_fail and 29973 # either __stack_chk_guard, or TLS access to stack guard canary. 29974 29975if test $glibc_version_major -gt 2 \ 29976 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 29977 gcc_cv_libc_provides_ssp=yes 29978else 29979 29980 if test -f $target_header_dir/features.h \ 29981 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \ 29982 $target_header_dir/features.h > /dev/null; then 29983 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \ 29984 $target_header_dir/features.h > /dev/null && \ 29985 test -f $target_header_dir/bits/uClibc_config.h && \ 29986 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \ 29987 $target_header_dir/bits/uClibc_config.h > /dev/null; then 29988 gcc_cv_libc_provides_ssp=yes 29989 fi 29990 # all versions of Bionic support stack protector 29991 elif test -f $target_header_dir/sys/cdefs.h \ 29992 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \ 29993 $target_header_dir/sys/cdefs.h > /dev/null; then 29994 gcc_cv_libc_provides_ssp=yes 29995 fi 29996fi 29997 ;; 29998 *-*-gnu*) 29999 # Avoid complicated tests (see 30000 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now 30001 # simply assert that glibc does provide this, which is true for all 30002 # realistically usable GNU/Hurd configurations. 30003 # All supported versions of musl provide it as well 30004 gcc_cv_libc_provides_ssp=yes;; 30005 *-*-darwin* | *-*-freebsd* | *-*-netbsd*) 30006 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail" 30007if test "x$ac_cv_func___stack_chk_fail" = xyes; then : 30008 gcc_cv_libc_provides_ssp=yes 30009else 30010 echo "no __stack_chk_fail on this target" 30011fi 30012 30013 ;; 30014 *) gcc_cv_libc_provides_ssp=no ;; 30015 esac 30016 fi 30017fi 30018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5 30019$as_echo "$gcc_cv_libc_provides_ssp" >&6; } 30020 30021if test x$gcc_cv_libc_provides_ssp = xyes; then 30022 30023$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h 30024 30025fi 30026 30027# Check whether --enable-default-ssp was given. 30028# Check whether --enable-default-ssp was given. 30029if test "${enable_default_ssp+set}" = set; then : 30030 enableval=$enable_default_ssp; 30031if test x$gcc_cv_libc_provides_ssp = xyes; then 30032 case "$target" in 30033 ia64*-*-*) enable_default_ssp=no ;; 30034 *) enable_default_ssp=$enableval ;; 30035 esac 30036else 30037 enable_default_ssp=no 30038fi 30039else 30040 enable_default_ssp=no 30041fi 30042 30043if test x$enable_default_ssp = xyes ; then 30044 30045$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h 30046 30047fi 30048 30049 30050# Test for <sys/sdt.h> on the target. 30051 30052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 30053$as_echo_n "checking sys/sdt.h in the target C library... " >&6; } 30054have_sys_sdt_h=no 30055if test -f $target_header_dir/sys/sdt.h; then 30056 have_sys_sdt_h=yes 30057 30058$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h 30059 30060fi 30061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 30062$as_echo "$have_sys_sdt_h" >&6; } 30063 30064# Check if TFmode long double should be used by default or not. 30065# Some glibc targets used DFmode long double, but with glibc 2.4 30066# and later they can use TFmode. 30067case "$target" in 30068 powerpc*-*-linux* | \ 30069 sparc*-*-linux* | \ 30070 s390*-*-linux* | \ 30071 alpha*-*-linux*) 30072 30073# Check whether --with-long-double-128 was given. 30074if test "${with_long_double_128+set}" = set; then : 30075 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128" 30076else 30077 30078 case "$target" in 30079 s390*-*-linux-musl*) 30080 gcc_cv_target_ldbl128=yes 30081 ;; 30082 powerpc*-*-linux-musl*) 30083 gcc_cv_target_ldbl128=no 30084 ;; 30085 *) 30086 30087if test $glibc_version_major -gt 2 \ 30088 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 30089 gcc_cv_target_ldbl128=yes 30090else 30091 30092 gcc_cv_target_ldbl128=no 30093 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \ 30094 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \ 30095 && gcc_cv_target_ldbl128=yes 30096 30097fi 30098 30099 ;; 30100 esac 30101 30102fi 30103 30104 ;; 30105esac 30106if test x$gcc_cv_target_ldbl128 = xyes; then 30107 30108$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h 30109 30110fi 30111 30112# Check if TFmode long double target should use the IBM extended double or IEEE 30113# 128-bit floating point formats if long doubles are 128-bits long. The long 30114# double type can only be switched on powerpc64 bit Linux systems where VSX is 30115# supported. Other PowerPC systems do not build the IEEE 128-bit emulator in 30116# libgcc. 30117 30118# Check whether --with-long-double-format was given. 30119if test "${with_long_double_format+set}" = set; then : 30120 withval=$with_long_double_format; 30121case "$target:$with_long_double_format" in 30122 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm) 30123 : 30124 ;; 30125 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm) 30126 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems 30127 case "$with_cpu" in 30128 power7 | power8 | power9 | power1*) 30129 : 30130 ;; 30131 *) 30132 as_fn_error $? "Configuration option --with-long-double-format is only \ 30133supported if the default cpu is power7 or newer" "$LINENO" 5 30134 with_long_double_format="" 30135 ;; 30136 esac 30137 ;; 30138 xpowerpc64*-*-linux*:*) 30139 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5 30140 with_long_double_format="" 30141 ;; 30142 *) 30143 as_fn_error $? "Configure option --with-long-double-format is only supported \ 30144on 64-bit PowerPC VSX Linux systems" "$LINENO" 5 30145 with_long_double_format="" 30146 ;; 30147esac 30148fi 30149 30150 30151# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP 30152# values in the TCB. Currently, only GLIBC 2.23 and later support this. 30153gcc_cv_libc_provides_hwcap_in_tcb=no 30154case "$target" in 30155 powerpc*-*-linux*) 30156 30157if test $glibc_version_major -gt 2 \ 30158 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then : 30159 gcc_cv_libc_provides_hwcap_in_tcb=yes 30160fi 30161 ;; 30162esac 30163if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then 30164 30165$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h 30166 30167fi 30168 30169# Check if the target LIBC handles PT_GNU_STACK. 30170gcc_cv_libc_gnustack=unknown 30171case "$target" in 30172 mips*-*-linux*) 30173 30174if test $glibc_version_major -gt 2 \ 30175 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then : 30176 gcc_cv_libc_gnustack=yes 30177fi 30178 ;; 30179esac 30180if test x$gcc_cv_libc_gnustack = xyes; then 30181 30182$as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h 30183 30184fi 30185 30186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5 30187$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; } 30188gcc_cv_target_dl_iterate_phdr=unknown 30189case "$target" in 30190 *-*-solaris2*) 30191 # <link.h> needs both a dl_iterate_phdr declaration and support for 30192 # compilation with largefile support. 30193 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \ 30194 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then 30195 gcc_cv_target_dl_iterate_phdr=yes 30196 else 30197 gcc_cv_target_dl_iterate_phdr=no 30198 fi 30199 ;; 30200 *-*-dragonfly* | *-*-freebsd*) 30201 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then 30202 gcc_cv_target_dl_iterate_phdr=yes 30203 else 30204 gcc_cv_target_dl_iterate_phdr=no 30205 fi 30206 ;; 30207 *-linux-musl*) 30208 gcc_cv_target_dl_iterate_phdr=yes 30209 ;; 30210esac 30211 30212if test x$gcc_cv_target_dl_iterate_phdr = xyes; then 30213 30214$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h 30215 30216fi 30217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5 30218$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; } 30219 30220# We no longer support different GC mechanisms. Emit an error if 30221# the user configures with --with-gc. 30222 30223# Check whether --with-gc was given. 30224if test "${with_gc+set}" = set; then : 30225 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5 30226fi 30227 30228 30229# Libraries to use on the host. This will normally be set by the top 30230# level Makefile. Here we simply capture the value for our Makefile. 30231if test -z "${HOST_LIBS+set}"; then 30232 HOST_LIBS= 30233fi 30234 30235 30236# Use the system's zlib library. 30237 30238 # Use the system's zlib library. 30239 zlibdir="-L\$(top_builddir)/../zlib" 30240 zlibinc="-I\$(top_srcdir)/../zlib" 30241 30242# Check whether --with-system-zlib was given. 30243if test "${with_system_zlib+set}" = set; then : 30244 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 30245 zlibdir= 30246 zlibinc= 30247 fi 30248 30249fi 30250 30251 30252 30253 30254 30255 30256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 30257$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 30258 # Check whether --enable-maintainer-mode was given. 30259if test "${enable_maintainer_mode+set}" = set; then : 30260 enableval=$enable_maintainer_mode; maintainer_mode=$enableval 30261else 30262 maintainer_mode=no 30263fi 30264 30265 30266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5 30267$as_echo "$maintainer_mode" >&6; } 30268 30269if test "$maintainer_mode" = "yes"; then 30270 MAINT='' 30271else 30272 MAINT='#' 30273fi 30274 30275 30276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5 30277$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; } 30278 # Check whether --enable-link-mutex was given. 30279if test "${enable_link_mutex+set}" = set; then : 30280 enableval=$enable_link_mutex; do_link_mutex=$enableval 30281else 30282 do_link_mutex=no 30283fi 30284 30285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5 30286$as_echo "$do_link_mutex" >&6; } 30287 30288if test "$do_link_mutex" = "yes"; then 30289 DO_LINK_MUTEX=true 30290else 30291 DO_LINK_MUTEX=false 30292fi 30293 30294 30295# -------------- 30296# Language hooks 30297# -------------- 30298 30299# Make empty files to contain the specs and options for each language. 30300# Then add #include lines to for a compiler that has specs and/or options. 30301 30302subdirs= 30303lang_opt_files= 30304lang_specs_files= 30305lang_tree_files= 30306# These (without "all_") are set in each config-lang.in. 30307# `language' must be a single word so is spelled singularly. 30308all_languages= 30309all_compilers= 30310all_outputs='Makefile' 30311# List of language configure and makefile fragments. 30312all_lang_configurefrags= 30313all_lang_makefrags= 30314# Additional files for gengtype 30315all_gtfiles="$target_gtfiles" 30316 30317# These are the languages that are set in --enable-languages, 30318# and are available in the GCC tree. 30319all_selected_languages= 30320 30321# Add the language fragments. 30322# Languages are added via two mechanisms. Some information must be 30323# recorded in makefile variables, these are defined in config-lang.in. 30324# We accumulate them and plug them into the main Makefile. 30325# The other mechanism is a set of hooks for each of the main targets 30326# like `clean', `install', etc. 30327 30328language_hooks="Make-hooks" 30329 30330for lang in ${srcdir}/*/config-lang.in 30331do 30332 test "$lang" = "${srcdir}/*/config-lang.in" && continue 30333 30334 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` 30335 if test "x$lang_alias" = x 30336 then 30337 echo "$lang doesn't set \$language." 1>&2 30338 exit 1 30339 fi 30340 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" 30341 subdirs="$subdirs $subdir" 30342 30343 # $gcc_subdir is where the gcc integration files are to be found 30344 # for a language, both for internal compiler purposes (compiler 30345 # sources implementing front-end to GCC tree converters), and for 30346 # build infrastructure purposes (Make-lang.in, etc.) 30347 # 30348 # This will be <subdir> (relative to $srcdir) if a line like 30349 # gcc_subdir="<subdir>" or gcc_subdir=<subdir> 30350 # is found in <langdir>/config-lang.in, and will remain <langdir> 30351 # otherwise. 30352 # 30353 # Except for the language alias (fetched above), the regular 30354 # "config-lang.in" contents are always retrieved from $gcc_subdir, 30355 # so a <langdir>/config-lang.in setting gcc_subdir typically sets 30356 # only this and the language alias. 30357 30358 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang` 30359 if [ "$gcc_subdir" = "" ]; then 30360 gcc_subdir="$subdir" 30361 fi 30362 30363 case ",$enable_languages," in 30364 *,$lang_alias,*) 30365 all_selected_languages="$all_selected_languages $lang_alias" 30366 if test -f $srcdir/$gcc_subdir/lang-specs.h; then 30367 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h" 30368 fi 30369 ;; 30370 esac 30371 30372 language= 30373 boot_language= 30374 compilers= 30375 outputs= 30376 gtfiles= 30377 subdir_requires= 30378 . ${srcdir}/$gcc_subdir/config-lang.in 30379 if test "x$language" = x 30380 then 30381 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2 30382 exit 1 30383 fi 30384 30385 ok=: 30386 case ",$enable_languages," in 30387 *,$lang_alias,*) ;; 30388 *) 30389 for i in $subdir_requires; do 30390 test -f "${srcdir}/$i/config-lang.in" && continue 30391 ok=false 30392 break 30393 done 30394 ;; 30395 esac 30396 $ok || continue 30397 30398 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in" 30399 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in" 30400 if test -f $srcdir/$gcc_subdir/lang.opt; then 30401 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt" 30402 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt" 30403 fi 30404 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then 30405 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def" 30406 fi 30407 all_languages="$all_languages $language" 30408 all_compilers="$all_compilers $compilers" 30409 all_outputs="$all_outputs $outputs" 30410 all_gtfiles="$all_gtfiles [$subdir] $gtfiles" 30411 case ",$enable_languages," in 30412 *,lto,*) 30413 30414$as_echo "#define ENABLE_LTO 1" >>confdefs.h 30415 30416 enable_lto=yes 30417 30418 ;; 30419 *) ;; 30420 esac 30421done 30422 30423check_languages= 30424for language in $all_selected_languages 30425do 30426 check_languages="$check_languages check-$language" 30427done 30428 30429selftest_languages= 30430for language in $all_selected_languages 30431do 30432 selftest_languages="$selftest_languages selftest-$language" 30433done 30434 30435# We link each language in with a set of hooks, reached indirectly via 30436# lang.${target}. Only do so for selected languages. 30437 30438rm -f Make-hooks 30439touch Make-hooks 30440target_list="all.cross start.encap rest.encap tags \ 30441 install-common install-man install-info install-pdf install-html dvi \ 30442 pdf html uninstall info man srcextra srcman srcinfo \ 30443 mostlyclean clean distclean maintainer-clean install-plugin" 30444 30445for t in $target_list 30446do 30447 x= 30448 for lang in $all_selected_languages 30449 do 30450 x="$x $lang.$t" 30451 done 30452 echo "lang.$t: $x" >> Make-hooks 30453done 30454 30455# -------- 30456# Option include files 30457# -------- 30458 30459${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk 30460option_includes="option-includes.mk" 30461 30462 30463# -------- 30464# UNSORTED 30465# -------- 30466 30467# Create .gdbinit. 30468 30469echo "dir ." > .gdbinit 30470echo "dir ${srcdir}" >> .gdbinit 30471if test x$gdb_needs_out_file_path = xyes 30472then 30473 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit 30474fi 30475if test "x$subdirs" != x; then 30476 for s in $subdirs 30477 do 30478 echo "dir ${srcdir}/$s" >> .gdbinit 30479 done 30480fi 30481echo "source ${srcdir}/gdbinit.in" >> .gdbinit 30482echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit 30483 30484# Put a breakpoint on __asan_report_error to help with debugging buffer 30485# overflow. 30486case "$CFLAGS" in 30487*-fsanitize=address*) 30488 echo "source ${srcdir}/gdbasan.in" >> .gdbinit 30489 ;; 30490esac 30491 30492gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)' 30493 30494 30495 30496# Find a directory in which to install a shared libgcc. 30497 30498# Check whether --enable-version-specific-runtime-libs was given. 30499if test "${enable_version_specific_runtime_libs+set}" = set; then : 30500 enableval=$enable_version_specific_runtime_libs; 30501fi 30502 30503 30504# Substitute configuration variables 30505 30506 30507 30508 30509 30510 30511 30512 30513 30514 30515 30516 30517 30518 30519 30520 30521 30522 30523 30524 30525 30526 30527 30528 30529 30530 30531 30532 30533 30534 30535 30536 30537 30538 30539 30540 30541 30542 30543 30544 30545 30546 30547 30548 30549 30550 30551 30552 30553 30554 30555 30556 30557 30558 30559 30560 30561 30562 30563 30564 30565 30566 30567 30568 30569 30570 30571 30572# Echo link setup. 30573if test x${build} = x${host} ; then 30574 if test x${host} = x${target} ; then 30575 echo "Links are now set up to build a native compiler for ${target}." 1>&2 30576 else 30577 echo "Links are now set up to build a cross-compiler" 1>&2 30578 echo " from ${host} to ${target}." 1>&2 30579 fi 30580else 30581 if test x${host} = x${target} ; then 30582 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2 30583 echo " for ${target}." 1>&2 30584 else 30585 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2 30586 echo " from ${host} to ${target}." 1>&2 30587 fi 30588fi 30589 30590 30591 30592 30593 30594 30595if test "x${ISLLIBS}" != "x" ; then 30596 30597$as_echo "#define HAVE_isl 1" >>confdefs.h 30598 30599fi 30600 30601# Check for plugin support 30602 # Check whether --enable-plugin was given. 30603if test "${enable_plugin+set}" = set; then : 30604 enableval=$enable_plugin; enable_plugin=$enableval 30605else 30606 enable_plugin=yes; default_plugin=yes 30607fi 30608 30609 30610 pluginlibs= 30611 plugin_check=yes 30612 30613 case "${host}" in 30614 *-*-mingw*) 30615 # Since plugin support under MinGW is not as straightforward as on 30616 # other platforms (e.g., we have to link import library, etc), we 30617 # only enable it if explicitly requested. 30618 if test x"$default_plugin" = x"yes"; then 30619 enable_plugin=no 30620 elif test x"$enable_plugin" = x"yes"; then 30621 # Use make's target variable to derive import library name. 30622 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a' 30623 plugin_check=no 30624 fi 30625 ;; 30626 *-*-darwin*) 30627 if test x$build = x$host; then 30628 export_sym_check="nm${exeext} -g" 30629 elif test x$host = x$target; then 30630 export_sym_check="$gcc_cv_nm -g" 30631 else 30632 export_sym_check= 30633 fi 30634 ;; 30635 *) 30636 if test x$build = x$host; then 30637 export_sym_check="objdump${exeext} -T" 30638 elif test x$host = x$target; then 30639 export_sym_check="$gcc_cv_objdump -T" 30640 else 30641 export_sym_check= 30642 fi 30643 ;; 30644 esac 30645 30646 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then 30647 30648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5 30649$as_echo_n "checking for exported symbols... " >&6; } 30650 if test "x$export_sym_check" != x; then 30651 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c 30652 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1 30653 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 30654 : # No need to use a flag 30655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30656$as_echo "yes" >&6; } 30657 else 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30659$as_echo "yes" >&6; } 30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5 30661$as_echo_n "checking for -rdynamic... " >&6; } 30662 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1 30663 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 30664 plugin_rdynamic=yes 30665 pluginlibs="-rdynamic" 30666 else 30667 plugin_rdynamic=no 30668 enable_plugin=no 30669 fi 30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5 30671$as_echo "$plugin_rdynamic" >&6; } 30672 fi 30673 else 30674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5 30675$as_echo "unable to check" >&6; } 30676 fi 30677 30678 # Check -ldl 30679 saved_LIBS="$LIBS" 30680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 30681$as_echo_n "checking for library containing dlopen... " >&6; } 30682if ${ac_cv_search_dlopen+:} false; then : 30683 $as_echo_n "(cached) " >&6 30684else 30685 ac_func_search_save_LIBS=$LIBS 30686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30687/* end confdefs.h. */ 30688 30689/* Override any GCC internal prototype to avoid an error. 30690 Use char because int might match the return type of a GCC 30691 builtin and then its argument prototype would still apply. */ 30692#ifdef __cplusplus 30693extern "C" 30694#endif 30695char dlopen (); 30696int 30697main () 30698{ 30699return dlopen (); 30700 ; 30701 return 0; 30702} 30703_ACEOF 30704for ac_lib in '' dl; do 30705 if test -z "$ac_lib"; then 30706 ac_res="none required" 30707 else 30708 ac_res=-l$ac_lib 30709 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30710 fi 30711 if ac_fn_cxx_try_link "$LINENO"; then : 30712 ac_cv_search_dlopen=$ac_res 30713fi 30714rm -f core conftest.err conftest.$ac_objext \ 30715 conftest$ac_exeext 30716 if ${ac_cv_search_dlopen+:} false; then : 30717 break 30718fi 30719done 30720if ${ac_cv_search_dlopen+:} false; then : 30721 30722else 30723 ac_cv_search_dlopen=no 30724fi 30725rm conftest.$ac_ext 30726LIBS=$ac_func_search_save_LIBS 30727fi 30728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 30729$as_echo "$ac_cv_search_dlopen" >&6; } 30730ac_res=$ac_cv_search_dlopen 30731if test "$ac_res" != no; then : 30732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30733 30734fi 30735 30736 if test x"$ac_cv_search_dlopen" = x"-ldl"; then 30737 pluginlibs="$pluginlibs -ldl" 30738 fi 30739 LIBS="$saved_LIBS" 30740 30741 # Check that we can build shared objects with -fPIC -shared 30742 saved_LDFLAGS="$LDFLAGS" 30743 saved_CFLAGS="$CFLAGS" 30744 case "${host}" in 30745 *-*-darwin*) 30746 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` 30747 CFLAGS="$CFLAGS -fPIC" 30748 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup" 30749 ;; 30750 *) 30751 CFLAGS="$CFLAGS -fPIC" 30752 LDFLAGS="$LDFLAGS -fPIC -shared" 30753 ;; 30754 esac 30755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5 30756$as_echo_n "checking for -fPIC -shared... " >&6; } 30757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30758/* end confdefs.h. */ 30759extern int X; 30760int 30761main () 30762{ 30763return X == 0; 30764 ; 30765 return 0; 30766} 30767_ACEOF 30768if ac_fn_cxx_try_link "$LINENO"; then : 30769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30770$as_echo "yes" >&6; }; have_pic_shared=yes 30771else 30772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30773$as_echo "no" >&6; }; have_pic_shared=no 30774fi 30775rm -f core conftest.err conftest.$ac_objext \ 30776 conftest$ac_exeext conftest.$ac_ext 30777 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then 30778 pluginlibs= 30779 enable_plugin=no 30780 fi 30781 LDFLAGS="$saved_LDFLAGS" 30782 CFLAGS="$saved_CFLAGS" 30783 30784 # If plugin support had been requested but not available, fail. 30785 if test x"$enable_plugin" = x"no" ; then 30786 if test x"$default_plugin" != x"yes"; then 30787 as_fn_error $? " 30788 Building GCC with plugin support requires a host that supports 30789 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5 30790 fi 30791 fi 30792 fi 30793 30794 30795 30796if test x"$enable_plugin" = x"yes"; then 30797 30798$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h 30799 30800fi 30801 30802 30803# Enable --enable-host-shared 30804# Check whether --enable-host-shared was given. 30805if test "${enable_host_shared+set}" = set; then : 30806 enableval=$enable_host_shared; PICFLAG=-fPIC 30807else 30808 PICFLAG= 30809fi 30810 30811 30812 30813 30814 30815# Check whether --enable-libquadmath-support was given. 30816if test "${enable_libquadmath_support+set}" = set; then : 30817 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 30818else 30819 ENABLE_LIBQUADMATH_SUPPORT=yes 30820fi 30821 30822if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then 30823 30824$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h 30825 30826fi 30827 30828 30829# Specify what hash style to use by default. 30830 30831# Check whether --with-linker-hash-style was given. 30832if test "${with_linker_hash_style+set}" = set; then : 30833 withval=$with_linker_hash_style; case x"$withval" in 30834 xsysv) 30835 LINKER_HASH_STYLE=sysv 30836 ;; 30837 xgnu) 30838 LINKER_HASH_STYLE=gnu 30839 ;; 30840 xboth) 30841 LINKER_HASH_STYLE=both 30842 ;; 30843 *) 30844 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5 30845 ;; 30846 esac 30847else 30848 LINKER_HASH_STYLE='' 30849fi 30850 30851if test x"${LINKER_HASH_STYLE}" != x; then 30852 30853cat >>confdefs.h <<_ACEOF 30854#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE" 30855_ACEOF 30856 30857fi 30858 30859# Specify what should be the default of -fdiagnostics-color option. 30860 30861# Check whether --with-diagnostics-color was given. 30862if test "${with_diagnostics_color+set}" = set; then : 30863 withval=$with_diagnostics_color; case x"$withval" in 30864 xnever) 30865 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO 30866 ;; 30867 xauto) 30868 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO 30869 ;; 30870 xauto-if-env) 30871 DIAGNOSTICS_COLOR_DEFAULT=-1 30872 ;; 30873 xalways) 30874 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES 30875 ;; 30876 *) 30877 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5 30878 ;; 30879 esac 30880else 30881 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO 30882fi 30883 30884 30885cat >>confdefs.h <<_ACEOF 30886#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT 30887_ACEOF 30888 30889 30890# Specify what should be the default of -fdiagnostics-urls option. 30891 30892# Check whether --with-diagnostics-urls was given. 30893if test "${with_diagnostics_urls+set}" = set; then : 30894 withval=$with_diagnostics_urls; case x"$withval" in 30895 xnever) 30896 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO 30897 ;; 30898 xauto) 30899 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO 30900 ;; 30901 xauto-if-env) 30902 DIAGNOSTICS_URLS_DEFAULT=-1 30903 ;; 30904 xalways) 30905 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES 30906 ;; 30907 *) 30908 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5 30909 ;; 30910 esac 30911else 30912 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO 30913fi 30914 30915 30916cat >>confdefs.h <<_ACEOF 30917#define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT 30918_ACEOF 30919 30920 30921# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit 30922# of jit/jit-playback.c. 30923gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"` 30924echo "gcc_driver_version: ${gcc_driver_version}" 30925cat > gcc-driver-name.h <<EOF 30926#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}" 30927EOF 30928 30929# Check whether --enable-default-pie was given. 30930# Check whether --enable-default-pie was given. 30931if test "${enable_default_pie+set}" = set; then : 30932 enableval=$enable_default_pie; enable_default_pie=$enableval 30933else 30934 enable_default_pie=no 30935fi 30936 30937if test x$enable_default_pie = xyes ; then 30938 30939$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h 30940 30941fi 30942 30943 30944# Check if -fno-PIE works. 30945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5 30946$as_echo_n "checking for -fno-PIE option... " >&6; } 30947if ${gcc_cv_c_no_fpie+:} false; then : 30948 $as_echo_n "(cached) " >&6 30949else 30950 saved_CXXFLAGS="$CXXFLAGS" 30951 CXXFLAGS="$CXXFLAGS -fno-PIE" 30952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30953/* end confdefs.h. */ 30954int main(void) {return 0;} 30955_ACEOF 30956if ac_fn_cxx_try_compile "$LINENO"; then : 30957 gcc_cv_c_no_fpie=yes 30958else 30959 gcc_cv_c_no_fpie=no 30960fi 30961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30962 CXXFLAGS="$saved_CXXFLAGS" 30963fi 30964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5 30965$as_echo "$gcc_cv_c_no_fpie" >&6; } 30966if test "$gcc_cv_c_no_fpie" = "yes"; then 30967 NO_PIE_CFLAGS="-fno-PIE" 30968fi 30969 30970 30971# Check if -no-pie works. 30972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5 30973$as_echo_n "checking for -no-pie option... " >&6; } 30974if ${gcc_cv_no_pie+:} false; then : 30975 $as_echo_n "(cached) " >&6 30976else 30977 saved_LDFLAGS="$LDFLAGS" 30978 LDFLAGS="$LDFLAGS -no-pie" 30979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30980/* end confdefs.h. */ 30981int main(void) {return 0;} 30982_ACEOF 30983if ac_fn_cxx_try_link "$LINENO"; then : 30984 gcc_cv_no_pie=yes 30985else 30986 gcc_cv_no_pie=no 30987fi 30988rm -f core conftest.err conftest.$ac_objext \ 30989 conftest$ac_exeext conftest.$ac_ext 30990 LDFLAGS="$saved_LDFLAGS" 30991fi 30992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5 30993$as_echo "$gcc_cv_no_pie" >&6; } 30994if test "$gcc_cv_no_pie" = "yes"; then 30995 NO_PIE_FLAG="-no-pie" 30996fi 30997 30998 30999# Check linker supports '-z bndplt' 31000ld_bndplt_support=no 31001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5 31002$as_echo_n "checking linker -z bndplt option... " >&6; } 31003if test x"$ld_is_gold" = xno; then 31004 if test $in_tree_ld = yes ; then 31005 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 31006 ld_bndplt_support=yes 31007 fi 31008 elif test x$gcc_cv_ld != x; then 31009 # Check if linker supports -a bndplt option 31010 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then 31011 ld_bndplt_support=yes 31012 fi 31013 fi 31014fi 31015if test x"$ld_bndplt_support" = xyes; then 31016 31017$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h 31018 31019fi 31020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5 31021$as_echo "$ld_bndplt_support" >&6; } 31022 31023# Check linker supports '--push-state'/'--pop-state' 31024ld_pushpopstate_support=no 31025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5 31026$as_echo_n "checking linker --push-state/--pop-state options... " >&6; } 31027if test x"$ld_is_gold" = xno; then 31028 if test $in_tree_ld = yes ; then 31029 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 31030 ld_pushpopstate_support=yes 31031 fi 31032 elif test x$gcc_cv_ld != x; then 31033 # Check if linker supports --push-state/--pop-state options 31034 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then 31035 ld_pushpopstate_support=yes 31036 fi 31037 fi 31038fi 31039if test x"$ld_pushpopstate_support" = xyes; then 31040 31041$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h 31042 31043fi 31044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5 31045$as_echo "$ld_pushpopstate_support" >&6; } 31046 31047# Configure the subdirectories 31048# AC_CONFIG_SUBDIRS($subdirs) 31049 31050# Create the Makefile 31051# and configure language subdirectories 31052ac_config_files="$ac_config_files $all_outputs" 31053 31054 31055ac_config_commands="$ac_config_commands default" 31056 31057cat >confcache <<\_ACEOF 31058# This file is a shell script that caches the results of configure 31059# tests run on this system so they can be shared between configure 31060# scripts and configure runs, see configure's option --config-cache. 31061# It is not useful on other systems. If it contains results you don't 31062# want to keep, you may remove or edit it. 31063# 31064# config.status only pays attention to the cache file if you give it 31065# the --recheck option to rerun configure. 31066# 31067# `ac_cv_env_foo' variables (set or unset) will be overridden when 31068# loading this file, other *unset* `ac_cv_foo' will be assigned the 31069# following values. 31070 31071_ACEOF 31072 31073# The following way of writing the cache mishandles newlines in values, 31074# but we know of no workaround that is simple, portable, and efficient. 31075# So, we kill variables containing newlines. 31076# Ultrix sh set writes to stderr and can't be redirected directly, 31077# and sets the high bit in the cache file unless we assign to the vars. 31078( 31079 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 31080 eval ac_val=\$$ac_var 31081 case $ac_val in #( 31082 *${as_nl}*) 31083 case $ac_var in #( 31084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 31085$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 31086 esac 31087 case $ac_var in #( 31088 _ | IFS | as_nl) ;; #( 31089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 31090 *) { eval $ac_var=; unset $ac_var;} ;; 31091 esac ;; 31092 esac 31093 done 31094 31095 (set) 2>&1 | 31096 case $as_nl`(ac_space=' '; set) 2>&1` in #( 31097 *${as_nl}ac_space=\ *) 31098 # `set' does not quote correctly, so add quotes: double-quote 31099 # substitution turns \\\\ into \\, and sed turns \\ into \. 31100 sed -n \ 31101 "s/'/'\\\\''/g; 31102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 31103 ;; #( 31104 *) 31105 # `set' quotes correctly as required by POSIX, so do not add quotes. 31106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 31107 ;; 31108 esac | 31109 sort 31110) | 31111 sed ' 31112 /^ac_cv_env_/b end 31113 t clear 31114 :clear 31115 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 31116 t end 31117 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 31118 :end' >>confcache 31119if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 31120 if test -w "$cache_file"; then 31121 if test "x$cache_file" != "x/dev/null"; then 31122 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 31123$as_echo "$as_me: updating cache $cache_file" >&6;} 31124 if test ! -f "$cache_file" || test -h "$cache_file"; then 31125 cat confcache >"$cache_file" 31126 else 31127 case $cache_file in #( 31128 */* | ?:*) 31129 mv -f confcache "$cache_file"$$ && 31130 mv -f "$cache_file"$$ "$cache_file" ;; #( 31131 *) 31132 mv -f confcache "$cache_file" ;; 31133 esac 31134 fi 31135 fi 31136 else 31137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 31138$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 31139 fi 31140fi 31141rm -f confcache 31142 31143test "x$prefix" = xNONE && prefix=$ac_default_prefix 31144# Let make expand exec_prefix. 31145test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 31146 31147DEFS=-DHAVE_CONFIG_H 31148 31149ac_libobjs= 31150ac_ltlibobjs= 31151U= 31152for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 31153 # 1. Remove the extension, and $U if already installed. 31154 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 31155 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 31156 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 31157 # will be set to the directory where LIBOBJS objects are built. 31158 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 31159 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 31160done 31161LIBOBJS=$ac_libobjs 31162 31163LTLIBOBJS=$ac_ltlibobjs 31164 31165 31166 31167 31168: "${CONFIG_STATUS=./config.status}" 31169ac_write_fail=0 31170ac_clean_files_save=$ac_clean_files 31171ac_clean_files="$ac_clean_files $CONFIG_STATUS" 31172{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 31173$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 31174as_write_fail=0 31175cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 31176#! $SHELL 31177# Generated by $as_me. 31178# Run this file to recreate the current configuration. 31179# Compiler output produced by configure, useful for debugging 31180# configure, is in config.log if it exists. 31181 31182debug=false 31183ac_cs_recheck=false 31184ac_cs_silent=false 31185 31186SHELL=\${CONFIG_SHELL-$SHELL} 31187export SHELL 31188_ASEOF 31189cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 31190## -------------------- ## 31191## M4sh Initialization. ## 31192## -------------------- ## 31193 31194# Be more Bourne compatible 31195DUALCASE=1; export DUALCASE # for MKS sh 31196if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 31197 emulate sh 31198 NULLCMD=: 31199 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 31200 # is contrary to our usage. Disable this feature. 31201 alias -g '${1+"$@"}'='"$@"' 31202 setopt NO_GLOB_SUBST 31203else 31204 case `(set -o) 2>/dev/null` in #( 31205 *posix*) : 31206 set -o posix ;; #( 31207 *) : 31208 ;; 31209esac 31210fi 31211 31212 31213as_nl=' 31214' 31215export as_nl 31216# Printing a long string crashes Solaris 7 /usr/bin/printf. 31217as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 31218as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 31219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 31220# Prefer a ksh shell builtin over an external printf program on Solaris, 31221# but without wasting forks for bash or zsh. 31222if test -z "$BASH_VERSION$ZSH_VERSION" \ 31223 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 31224 as_echo='print -r --' 31225 as_echo_n='print -rn --' 31226elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 31227 as_echo='printf %s\n' 31228 as_echo_n='printf %s' 31229else 31230 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 31231 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 31232 as_echo_n='/usr/ucb/echo -n' 31233 else 31234 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 31235 as_echo_n_body='eval 31236 arg=$1; 31237 case $arg in #( 31238 *"$as_nl"*) 31239 expr "X$arg" : "X\\(.*\\)$as_nl"; 31240 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 31241 esac; 31242 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 31243 ' 31244 export as_echo_n_body 31245 as_echo_n='sh -c $as_echo_n_body as_echo' 31246 fi 31247 export as_echo_body 31248 as_echo='sh -c $as_echo_body as_echo' 31249fi 31250 31251# The user is always right. 31252if test "${PATH_SEPARATOR+set}" != set; then 31253 PATH_SEPARATOR=: 31254 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 31255 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 31256 PATH_SEPARATOR=';' 31257 } 31258fi 31259 31260 31261# IFS 31262# We need space, tab and new line, in precisely that order. Quoting is 31263# there to prevent editors from complaining about space-tab. 31264# (If _AS_PATH_WALK were called with IFS unset, it would disable word 31265# splitting by setting IFS to empty value.) 31266IFS=" "" $as_nl" 31267 31268# Find who we are. Look in the path if we contain no directory separator. 31269as_myself= 31270case $0 in #(( 31271 *[\\/]* ) as_myself=$0 ;; 31272 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31273for as_dir in $PATH 31274do 31275 IFS=$as_save_IFS 31276 test -z "$as_dir" && as_dir=. 31277 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 31278 done 31279IFS=$as_save_IFS 31280 31281 ;; 31282esac 31283# We did not find ourselves, most probably we were run as `sh COMMAND' 31284# in which case we are not to be found in the path. 31285if test "x$as_myself" = x; then 31286 as_myself=$0 31287fi 31288if test ! -f "$as_myself"; then 31289 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 31290 exit 1 31291fi 31292 31293# Unset variables that we do not need and which cause bugs (e.g. in 31294# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 31295# suppresses any "Segmentation fault" message there. '((' could 31296# trigger a bug in pdksh 5.2.14. 31297for as_var in BASH_ENV ENV MAIL MAILPATH 31298do eval test x\${$as_var+set} = xset \ 31299 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 31300done 31301PS1='$ ' 31302PS2='> ' 31303PS4='+ ' 31304 31305# NLS nuisances. 31306LC_ALL=C 31307export LC_ALL 31308LANGUAGE=C 31309export LANGUAGE 31310 31311# CDPATH. 31312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31313 31314 31315# as_fn_error STATUS ERROR [LINENO LOG_FD] 31316# ---------------------------------------- 31317# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 31318# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 31319# script with STATUS, using 1 if that was 0. 31320as_fn_error () 31321{ 31322 as_status=$1; test $as_status -eq 0 && as_status=1 31323 if test "$4"; then 31324 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 31325 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 31326 fi 31327 $as_echo "$as_me: error: $2" >&2 31328 as_fn_exit $as_status 31329} # as_fn_error 31330 31331 31332# as_fn_set_status STATUS 31333# ----------------------- 31334# Set $? to STATUS, without forking. 31335as_fn_set_status () 31336{ 31337 return $1 31338} # as_fn_set_status 31339 31340# as_fn_exit STATUS 31341# ----------------- 31342# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31343as_fn_exit () 31344{ 31345 set +e 31346 as_fn_set_status $1 31347 exit $1 31348} # as_fn_exit 31349 31350# as_fn_unset VAR 31351# --------------- 31352# Portably unset VAR. 31353as_fn_unset () 31354{ 31355 { eval $1=; unset $1;} 31356} 31357as_unset=as_fn_unset 31358# as_fn_append VAR VALUE 31359# ---------------------- 31360# Append the text in VALUE to the end of the definition contained in VAR. Take 31361# advantage of any shell optimizations that allow amortized linear growth over 31362# repeated appends, instead of the typical quadratic growth present in naive 31363# implementations. 31364if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 31365 eval 'as_fn_append () 31366 { 31367 eval $1+=\$2 31368 }' 31369else 31370 as_fn_append () 31371 { 31372 eval $1=\$$1\$2 31373 } 31374fi # as_fn_append 31375 31376# as_fn_arith ARG... 31377# ------------------ 31378# Perform arithmetic evaluation on the ARGs, and store the result in the 31379# global $as_val. Take advantage of shells that can avoid forks. The arguments 31380# must be portable across $(()) and expr. 31381if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 31382 eval 'as_fn_arith () 31383 { 31384 as_val=$(( $* )) 31385 }' 31386else 31387 as_fn_arith () 31388 { 31389 as_val=`expr "$@" || test $? -eq 1` 31390 } 31391fi # as_fn_arith 31392 31393 31394if expr a : '\(a\)' >/dev/null 2>&1 && 31395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 31396 as_expr=expr 31397else 31398 as_expr=false 31399fi 31400 31401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 31402 as_basename=basename 31403else 31404 as_basename=false 31405fi 31406 31407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 31408 as_dirname=dirname 31409else 31410 as_dirname=false 31411fi 31412 31413as_me=`$as_basename -- "$0" || 31414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 31415 X"$0" : 'X\(//\)$' \| \ 31416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 31417$as_echo X/"$0" | 31418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 31419 s//\1/ 31420 q 31421 } 31422 /^X\/\(\/\/\)$/{ 31423 s//\1/ 31424 q 31425 } 31426 /^X\/\(\/\).*/{ 31427 s//\1/ 31428 q 31429 } 31430 s/.*/./; q'` 31431 31432# Avoid depending upon Character Ranges. 31433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 31435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 31436as_cr_digits='0123456789' 31437as_cr_alnum=$as_cr_Letters$as_cr_digits 31438 31439ECHO_C= ECHO_N= ECHO_T= 31440case `echo -n x` in #((((( 31441-n*) 31442 case `echo 'xy\c'` in 31443 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 31444 xy) ECHO_C='\c';; 31445 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 31446 ECHO_T=' ';; 31447 esac;; 31448*) 31449 ECHO_N='-n';; 31450esac 31451 31452rm -f conf$$ conf$$.exe conf$$.file 31453if test -d conf$$.dir; then 31454 rm -f conf$$.dir/conf$$.file 31455else 31456 rm -f conf$$.dir 31457 mkdir conf$$.dir 2>/dev/null 31458fi 31459if (echo >conf$$.file) 2>/dev/null; then 31460 if ln -s conf$$.file conf$$ 2>/dev/null; then 31461 as_ln_s='ln -s' 31462 # ... but there are two gotchas: 31463 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 31464 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 31465 # In both cases, we have to default to `cp -pR'. 31466 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 31467 as_ln_s='cp -pR' 31468 elif ln conf$$.file conf$$ 2>/dev/null; then 31469 as_ln_s=ln 31470 else 31471 as_ln_s='cp -pR' 31472 fi 31473else 31474 as_ln_s='cp -pR' 31475fi 31476rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 31477rmdir conf$$.dir 2>/dev/null 31478 31479 31480# as_fn_mkdir_p 31481# ------------- 31482# Create "$as_dir" as a directory, including parents if necessary. 31483as_fn_mkdir_p () 31484{ 31485 31486 case $as_dir in #( 31487 -*) as_dir=./$as_dir;; 31488 esac 31489 test -d "$as_dir" || eval $as_mkdir_p || { 31490 as_dirs= 31491 while :; do 31492 case $as_dir in #( 31493 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31494 *) as_qdir=$as_dir;; 31495 esac 31496 as_dirs="'$as_qdir' $as_dirs" 31497 as_dir=`$as_dirname -- "$as_dir" || 31498$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31499 X"$as_dir" : 'X\(//\)[^/]' \| \ 31500 X"$as_dir" : 'X\(//\)$' \| \ 31501 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31502$as_echo X"$as_dir" | 31503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31504 s//\1/ 31505 q 31506 } 31507 /^X\(\/\/\)[^/].*/{ 31508 s//\1/ 31509 q 31510 } 31511 /^X\(\/\/\)$/{ 31512 s//\1/ 31513 q 31514 } 31515 /^X\(\/\).*/{ 31516 s//\1/ 31517 q 31518 } 31519 s/.*/./; q'` 31520 test -d "$as_dir" && break 31521 done 31522 test -z "$as_dirs" || eval "mkdir $as_dirs" 31523 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 31524 31525 31526} # as_fn_mkdir_p 31527if mkdir -p . 2>/dev/null; then 31528 as_mkdir_p='mkdir -p "$as_dir"' 31529else 31530 test -d ./-p && rmdir ./-p 31531 as_mkdir_p=false 31532fi 31533 31534 31535# as_fn_executable_p FILE 31536# ----------------------- 31537# Test if FILE is an executable regular file. 31538as_fn_executable_p () 31539{ 31540 test -f "$1" && test -x "$1" 31541} # as_fn_executable_p 31542as_test_x='test -x' 31543as_executable_p=as_fn_executable_p 31544 31545# Sed expression to map a string onto a valid CPP name. 31546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 31547 31548# Sed expression to map a string onto a valid variable name. 31549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 31550 31551 31552exec 6>&1 31553## ----------------------------------- ## 31554## Main body of $CONFIG_STATUS script. ## 31555## ----------------------------------- ## 31556_ASEOF 31557test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 31558 31559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31560# Save the log message, to keep $0 and so on meaningful, and to 31561# report actual input values of CONFIG_FILES etc. instead of their 31562# values after options handling. 31563ac_log=" 31564This file was extended by $as_me, which was 31565generated by GNU Autoconf 2.69. Invocation command line was 31566 31567 CONFIG_FILES = $CONFIG_FILES 31568 CONFIG_HEADERS = $CONFIG_HEADERS 31569 CONFIG_LINKS = $CONFIG_LINKS 31570 CONFIG_COMMANDS = $CONFIG_COMMANDS 31571 $ $0 $@ 31572 31573on `(hostname || uname -n) 2>/dev/null | sed 1q` 31574" 31575 31576_ACEOF 31577 31578case $ac_config_files in *" 31579"*) set x $ac_config_files; shift; ac_config_files=$*;; 31580esac 31581 31582case $ac_config_headers in *" 31583"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 31584esac 31585 31586 31587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31588# Files that config.status was made for. 31589config_files="$ac_config_files" 31590config_headers="$ac_config_headers" 31591config_links="$ac_config_links" 31592config_commands="$ac_config_commands" 31593 31594_ACEOF 31595 31596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31597ac_cs_usage="\ 31598\`$as_me' instantiates files and other configuration actions 31599from templates according to the current configuration. Unless the files 31600and actions are specified as TAGs, all are instantiated by default. 31601 31602Usage: $0 [OPTION]... [TAG]... 31603 31604 -h, --help print this help, then exit 31605 -V, --version print version number and configuration settings, then exit 31606 --config print configuration, then exit 31607 -q, --quiet, --silent 31608 do not print progress messages 31609 -d, --debug don't remove temporary files 31610 --recheck update $as_me by reconfiguring in the same conditions 31611 --file=FILE[:TEMPLATE] 31612 instantiate the configuration file FILE 31613 --header=FILE[:TEMPLATE] 31614 instantiate the configuration header FILE 31615 31616Configuration files: 31617$config_files 31618 31619Configuration headers: 31620$config_headers 31621 31622Configuration links: 31623$config_links 31624 31625Configuration commands: 31626$config_commands 31627 31628Report bugs to the package provider." 31629 31630_ACEOF 31631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31632ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 31633ac_cs_version="\\ 31634config.status 31635configured by $0, generated by GNU Autoconf 2.69, 31636 with options \\"\$ac_cs_config\\" 31637 31638Copyright (C) 2012 Free Software Foundation, Inc. 31639This config.status script is free software; the Free Software Foundation 31640gives unlimited permission to copy, distribute and modify it." 31641 31642ac_pwd='$ac_pwd' 31643srcdir='$srcdir' 31644AWK='$AWK' 31645test -n "\$AWK" || AWK=awk 31646_ACEOF 31647 31648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31649# The default lists apply if the user does not specify any file. 31650ac_need_defaults=: 31651while test $# != 0 31652do 31653 case $1 in 31654 --*=?*) 31655 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31656 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 31657 ac_shift=: 31658 ;; 31659 --*=) 31660 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31661 ac_optarg= 31662 ac_shift=: 31663 ;; 31664 *) 31665 ac_option=$1 31666 ac_optarg=$2 31667 ac_shift=shift 31668 ;; 31669 esac 31670 31671 case $ac_option in 31672 # Handling of the options. 31673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 31674 ac_cs_recheck=: ;; 31675 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 31676 $as_echo "$ac_cs_version"; exit ;; 31677 --config | --confi | --conf | --con | --co | --c ) 31678 $as_echo "$ac_cs_config"; exit ;; 31679 --debug | --debu | --deb | --de | --d | -d ) 31680 debug=: ;; 31681 --file | --fil | --fi | --f ) 31682 $ac_shift 31683 case $ac_optarg in 31684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31685 '') as_fn_error $? "missing file argument" ;; 31686 esac 31687 as_fn_append CONFIG_FILES " '$ac_optarg'" 31688 ac_need_defaults=false;; 31689 --header | --heade | --head | --hea ) 31690 $ac_shift 31691 case $ac_optarg in 31692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31693 esac 31694 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 31695 ac_need_defaults=false;; 31696 --he | --h) 31697 # Conflict between --help and --header 31698 as_fn_error $? "ambiguous option: \`$1' 31699Try \`$0 --help' for more information.";; 31700 --help | --hel | -h ) 31701 $as_echo "$ac_cs_usage"; exit ;; 31702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31703 | -silent | --silent | --silen | --sile | --sil | --si | --s) 31704 ac_cs_silent=: ;; 31705 31706 # This is an error. 31707 -*) as_fn_error $? "unrecognized option: \`$1' 31708Try \`$0 --help' for more information." ;; 31709 31710 *) as_fn_append ac_config_targets " $1" 31711 ac_need_defaults=false ;; 31712 31713 esac 31714 shift 31715done 31716 31717ac_configure_extra_args= 31718 31719if $ac_cs_silent; then 31720 exec 6>/dev/null 31721 ac_configure_extra_args="$ac_configure_extra_args --silent" 31722fi 31723 31724_ACEOF 31725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31726if \$ac_cs_recheck; then 31727 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 31728 shift 31729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 31730 CONFIG_SHELL='$SHELL' 31731 export CONFIG_SHELL 31732 exec "\$@" 31733fi 31734 31735_ACEOF 31736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31737exec 5>>config.log 31738{ 31739 echo 31740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 31741## Running $as_me. ## 31742_ASBOX 31743 $as_echo "$ac_log" 31744} >&5 31745 31746_ACEOF 31747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31748# 31749# INIT-COMMANDS 31750# 31751ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 31752subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 31753subdirs='$subdirs' 31754 31755_ACEOF 31756 31757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31758 31759# Handling of arguments. 31760for ac_config_target in $ac_config_targets 31761do 31762 case $ac_config_target in 31763 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;; 31764 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; 31765 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;; 31766 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;; 31767 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;; 31768 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;; 31769 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;; 31770 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;; 31771 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;; 31772 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 31773 31774 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 31775 esac 31776done 31777 31778 31779# If the user did not use the arguments to specify the items to instantiate, 31780# then the envvar interface is used. Set only those that are not. 31781# We use the long form for the default assignment because of an extremely 31782# bizarre bug on SunOS 4.1.3. 31783if $ac_need_defaults; then 31784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 31785 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 31786 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 31787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 31788fi 31789 31790# Have a temporary directory for convenience. Make it in the build tree 31791# simply because there is no reason against having it here, and in addition, 31792# creating and moving files from /tmp can sometimes cause problems. 31793# Hook for its removal unless debugging. 31794# Note that there is a small window in which the directory will not be cleaned: 31795# after its creation but before its name has been assigned to `$tmp'. 31796$debug || 31797{ 31798 tmp= ac_tmp= 31799 trap 'exit_status=$? 31800 : "${ac_tmp:=$tmp}" 31801 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 31802' 0 31803 trap 'as_fn_exit 1' 1 2 13 15 31804} 31805# Create a (secure) tmp directory for tmp files. 31806 31807{ 31808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 31809 test -d "$tmp" 31810} || 31811{ 31812 tmp=./conf$$-$RANDOM 31813 (umask 077 && mkdir "$tmp") 31814} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 31815ac_tmp=$tmp 31816 31817# Set up the scripts for CONFIG_FILES section. 31818# No need to generate them if there are no CONFIG_FILES. 31819# This happens for instance with `./config.status config.h'. 31820if test -n "$CONFIG_FILES"; then 31821 31822if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 31823 ac_cs_awk_getline=: 31824 ac_cs_awk_pipe_init= 31825 ac_cs_awk_read_file=' 31826 while ((getline aline < (F[key])) > 0) 31827 print(aline) 31828 close(F[key])' 31829 ac_cs_awk_pipe_fini= 31830else 31831 ac_cs_awk_getline=false 31832 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 31833 ac_cs_awk_read_file=' 31834 print "|#_!!_#|" 31835 print "cat " F[key] " &&" 31836 '$ac_cs_awk_pipe_init 31837 # The final `:' finishes the AND list. 31838 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 31839fi 31840ac_cr=`echo X | tr X '\015'` 31841# On cygwin, bash can eat \r inside `` if the user requested igncr. 31842# But we know of no other shell where ac_cr would be empty at this 31843# point, so we can use a bashism as a fallback. 31844if test "x$ac_cr" = x; then 31845 eval ac_cr=\$\'\\r\' 31846fi 31847ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 31848if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 31849 ac_cs_awk_cr='\\r' 31850else 31851 ac_cs_awk_cr=$ac_cr 31852fi 31853 31854echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 31855_ACEOF 31856 31857# Create commands to substitute file output variables. 31858{ 31859 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 31860 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 31861 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 31862 echo "_ACAWK" && 31863 echo "_ACEOF" 31864} >conf$$files.sh && 31865. ./conf$$files.sh || 31866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31867rm -f conf$$files.sh 31868 31869{ 31870 echo "cat >conf$$subs.awk <<_ACEOF" && 31871 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 31872 echo "_ACEOF" 31873} >conf$$subs.sh || 31874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31875ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 31876ac_delim='%!_!# ' 31877for ac_last_try in false false false false false :; do 31878 . ./conf$$subs.sh || 31879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31880 31881 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 31882 if test $ac_delim_n = $ac_delim_num; then 31883 break 31884 elif $ac_last_try; then 31885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31886 else 31887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31888 fi 31889done 31890rm -f conf$$subs.sh 31891 31892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31893cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 31894_ACEOF 31895sed -n ' 31896h 31897s/^/S["/; s/!.*/"]=/ 31898p 31899g 31900s/^[^!]*!// 31901:repl 31902t repl 31903s/'"$ac_delim"'$// 31904t delim 31905:nl 31906h 31907s/\(.\{148\}\)..*/\1/ 31908t more1 31909s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 31910p 31911n 31912b repl 31913:more1 31914s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31915p 31916g 31917s/.\{148\}// 31918t nl 31919:delim 31920h 31921s/\(.\{148\}\)..*/\1/ 31922t more2 31923s/["\\]/\\&/g; s/^/"/; s/$/"/ 31924p 31925b 31926:more2 31927s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31928p 31929g 31930s/.\{148\}// 31931t delim 31932' <conf$$subs.awk | sed ' 31933/^[^""]/{ 31934 N 31935 s/\n// 31936} 31937' >>$CONFIG_STATUS || ac_write_fail=1 31938rm -f conf$$subs.awk 31939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31940_ACAWK 31941cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 31942 for (key in S) S_is_set[key] = 1 31943 FS = "" 31944 \$ac_cs_awk_pipe_init 31945} 31946{ 31947 line = $ 0 31948 nfields = split(line, field, "@") 31949 substed = 0 31950 len = length(field[1]) 31951 for (i = 2; i < nfields; i++) { 31952 key = field[i] 31953 keylen = length(key) 31954 if (S_is_set[key]) { 31955 value = S[key] 31956 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 31957 len += length(value) + length(field[++i]) 31958 substed = 1 31959 } else 31960 len += 1 + keylen 31961 } 31962 if (nfields == 3 && !substed) { 31963 key = field[2] 31964 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 31965 \$ac_cs_awk_read_file 31966 next 31967 } 31968 } 31969 print line 31970} 31971\$ac_cs_awk_pipe_fini 31972_ACAWK 31973_ACEOF 31974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31975if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 31976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 31977else 31978 cat 31979fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 31980 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 31981_ACEOF 31982 31983# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 31984# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 31985# trailing colons and then remove the whole line if VPATH becomes empty 31986# (actually we leave an empty line to preserve line numbers). 31987if test "x$srcdir" = x.; then 31988 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 31989h 31990s/// 31991s/^/:/ 31992s/[ ]*$/:/ 31993s/:\$(srcdir):/:/g 31994s/:\${srcdir}:/:/g 31995s/:@srcdir@:/:/g 31996s/^:*// 31997s/:*$// 31998x 31999s/\(=[ ]*\).*/\1/ 32000G 32001s/\n// 32002s/^[^=]*=[ ]*$// 32003}' 32004fi 32005 32006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32007fi # test -n "$CONFIG_FILES" 32008 32009# Set up the scripts for CONFIG_HEADERS section. 32010# No need to generate them if there are no CONFIG_HEADERS. 32011# This happens for instance with `./config.status Makefile'. 32012if test -n "$CONFIG_HEADERS"; then 32013cat >"$ac_tmp/defines.awk" <<\_ACAWK || 32014BEGIN { 32015_ACEOF 32016 32017# Transform confdefs.h into an awk script `defines.awk', embedded as 32018# here-document in config.status, that substitutes the proper values into 32019# config.h.in to produce config.h. 32020 32021# Create a delimiter string that does not exist in confdefs.h, to ease 32022# handling of long lines. 32023ac_delim='%!_!# ' 32024for ac_last_try in false false :; do 32025 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 32026 if test -z "$ac_tt"; then 32027 break 32028 elif $ac_last_try; then 32029 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 32030 else 32031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32032 fi 32033done 32034 32035# For the awk script, D is an array of macro values keyed by name, 32036# likewise P contains macro parameters if any. Preserve backslash 32037# newline sequences. 32038 32039ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 32040sed -n ' 32041s/.\{148\}/&'"$ac_delim"'/g 32042t rset 32043:rset 32044s/^[ ]*#[ ]*define[ ][ ]*/ / 32045t def 32046d 32047:def 32048s/\\$// 32049t bsnl 32050s/["\\]/\\&/g 32051s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32052D["\1"]=" \3"/p 32053s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 32054d 32055:bsnl 32056s/["\\]/\\&/g 32057s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32058D["\1"]=" \3\\\\\\n"\\/p 32059t cont 32060s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 32061t cont 32062d 32063:cont 32064n 32065s/.\{148\}/&'"$ac_delim"'/g 32066t clear 32067:clear 32068s/\\$// 32069t bsnlc 32070s/["\\]/\\&/g; s/^/"/; s/$/"/p 32071d 32072:bsnlc 32073s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 32074b cont 32075' <confdefs.h | sed ' 32076s/'"$ac_delim"'/"\\\ 32077"/g' >>$CONFIG_STATUS || ac_write_fail=1 32078 32079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32080 for (key in D) D_is_set[key] = 1 32081 FS = "" 32082} 32083/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 32084 line = \$ 0 32085 split(line, arg, " ") 32086 if (arg[1] == "#") { 32087 defundef = arg[2] 32088 mac1 = arg[3] 32089 } else { 32090 defundef = substr(arg[1], 2) 32091 mac1 = arg[2] 32092 } 32093 split(mac1, mac2, "(") #) 32094 macro = mac2[1] 32095 prefix = substr(line, 1, index(line, defundef) - 1) 32096 if (D_is_set[macro]) { 32097 # Preserve the white space surrounding the "#". 32098 print prefix "define", macro P[macro] D[macro] 32099 next 32100 } else { 32101 # Replace #undef with comments. This is necessary, for example, 32102 # in the case of _POSIX_SOURCE, which is predefined and required 32103 # on some systems where configure will not decide to define it. 32104 if (defundef == "undef") { 32105 print "/*", prefix defundef, macro, "*/" 32106 next 32107 } 32108 } 32109} 32110{ print } 32111_ACAWK 32112_ACEOF 32113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32114 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 32115fi # test -n "$CONFIG_HEADERS" 32116 32117 32118eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 32119shift 32120for ac_tag 32121do 32122 case $ac_tag in 32123 :[FHLC]) ac_mode=$ac_tag; continue;; 32124 esac 32125 case $ac_mode$ac_tag in 32126 :[FHL]*:*);; 32127 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 32128 :[FH]-) ac_tag=-:-;; 32129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 32130 esac 32131 ac_save_IFS=$IFS 32132 IFS=: 32133 set x $ac_tag 32134 IFS=$ac_save_IFS 32135 shift 32136 ac_file=$1 32137 shift 32138 32139 case $ac_mode in 32140 :L) ac_source=$1;; 32141 :[FH]) 32142 ac_file_inputs= 32143 for ac_f 32144 do 32145 case $ac_f in 32146 -) ac_f="$ac_tmp/stdin";; 32147 *) # Look for the file first in the build tree, then in the source tree 32148 # (if the path is not absolute). The absolute path cannot be DOS-style, 32149 # because $ac_f cannot contain `:'. 32150 test -f "$ac_f" || 32151 case $ac_f in 32152 [\\/$]*) false;; 32153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 32154 esac || 32155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 32156 esac 32157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 32158 as_fn_append ac_file_inputs " '$ac_f'" 32159 done 32160 32161 # Let's still pretend it is `configure' which instantiates (i.e., don't 32162 # use $as_me), people would be surprised to read: 32163 # /* config.h. Generated by config.status. */ 32164 configure_input='Generated from '` 32165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 32166 `' by configure.' 32167 if test x"$ac_file" != x-; then 32168 configure_input="$ac_file. $configure_input" 32169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 32170$as_echo "$as_me: creating $ac_file" >&6;} 32171 fi 32172 # Neutralize special characters interpreted by sed in replacement strings. 32173 case $configure_input in #( 32174 *\&* | *\|* | *\\* ) 32175 ac_sed_conf_input=`$as_echo "$configure_input" | 32176 sed 's/[\\\\&|]/\\\\&/g'`;; #( 32177 *) ac_sed_conf_input=$configure_input;; 32178 esac 32179 32180 case $ac_tag in 32181 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 32182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 32183 esac 32184 ;; 32185 esac 32186 32187 ac_dir=`$as_dirname -- "$ac_file" || 32188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32189 X"$ac_file" : 'X\(//\)[^/]' \| \ 32190 X"$ac_file" : 'X\(//\)$' \| \ 32191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 32192$as_echo X"$ac_file" | 32193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32194 s//\1/ 32195 q 32196 } 32197 /^X\(\/\/\)[^/].*/{ 32198 s//\1/ 32199 q 32200 } 32201 /^X\(\/\/\)$/{ 32202 s//\1/ 32203 q 32204 } 32205 /^X\(\/\).*/{ 32206 s//\1/ 32207 q 32208 } 32209 s/.*/./; q'` 32210 as_dir="$ac_dir"; as_fn_mkdir_p 32211 ac_builddir=. 32212 32213case "$ac_dir" in 32214.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32215*) 32216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 32217 # A ".." for each directory in $ac_dir_suffix. 32218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32219 case $ac_top_builddir_sub in 32220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32222 esac ;; 32223esac 32224ac_abs_top_builddir=$ac_pwd 32225ac_abs_builddir=$ac_pwd$ac_dir_suffix 32226# for backward compatibility: 32227ac_top_builddir=$ac_top_build_prefix 32228 32229case $srcdir in 32230 .) # We are building in place. 32231 ac_srcdir=. 32232 ac_top_srcdir=$ac_top_builddir_sub 32233 ac_abs_top_srcdir=$ac_pwd ;; 32234 [\\/]* | ?:[\\/]* ) # Absolute name. 32235 ac_srcdir=$srcdir$ac_dir_suffix; 32236 ac_top_srcdir=$srcdir 32237 ac_abs_top_srcdir=$srcdir ;; 32238 *) # Relative name. 32239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32240 ac_top_srcdir=$ac_top_build_prefix$srcdir 32241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32242esac 32243ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32244 32245 32246 case $ac_mode in 32247 :F) 32248 # 32249 # CONFIG_FILE 32250 # 32251 32252_ACEOF 32253 32254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32255# If the template does not know about datarootdir, expand it. 32256# FIXME: This hack should be removed a few years after 2.60. 32257ac_datarootdir_hack=; ac_datarootdir_seen= 32258ac_sed_dataroot=' 32259/datarootdir/ { 32260 p 32261 q 32262} 32263/@datadir@/p 32264/@docdir@/p 32265/@infodir@/p 32266/@localedir@/p 32267/@mandir@/p' 32268case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 32269*datarootdir*) ac_datarootdir_seen=yes;; 32270*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 32271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 32272$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 32273_ACEOF 32274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32275 ac_datarootdir_hack=' 32276 s&@datadir@&$datadir&g 32277 s&@docdir@&$docdir&g 32278 s&@infodir@&$infodir&g 32279 s&@localedir@&$localedir&g 32280 s&@mandir@&$mandir&g 32281 s&\\\${datarootdir}&$datarootdir&g' ;; 32282esac 32283_ACEOF 32284 32285# Neutralize VPATH when `$srcdir' = `.'. 32286# Shell code in configure.ac might set extrasub. 32287# FIXME: do we really want to maintain this feature? 32288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32289ac_sed_extra="$ac_vpsub 32290$extrasub 32291_ACEOF 32292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32293:t 32294/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 32295s|@configure_input@|$ac_sed_conf_input|;t t 32296s&@top_builddir@&$ac_top_builddir_sub&;t t 32297s&@top_build_prefix@&$ac_top_build_prefix&;t t 32298s&@srcdir@&$ac_srcdir&;t t 32299s&@abs_srcdir@&$ac_abs_srcdir&;t t 32300s&@top_srcdir@&$ac_top_srcdir&;t t 32301s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 32302s&@builddir@&$ac_builddir&;t t 32303s&@abs_builddir@&$ac_abs_builddir&;t t 32304s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 32305$ac_datarootdir_hack 32306" 32307eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 32308if $ac_cs_awk_getline; then 32309 $AWK -f "$ac_tmp/subs.awk" 32310else 32311 $AWK -f "$ac_tmp/subs.awk" | $SHELL 32312fi \ 32313 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32314 32315test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 32316 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 32317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 32318 "$ac_tmp/out"`; test -z "$ac_out"; } && 32319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32320which seems to be undefined. Please make sure it is defined" >&5 32321$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32322which seems to be undefined. Please make sure it is defined" >&2;} 32323 32324 rm -f "$ac_tmp/stdin" 32325 case $ac_file in 32326 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 32327 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 32328 esac \ 32329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32330 ;; 32331 :H) 32332 # 32333 # CONFIG_HEADER 32334 # 32335 if test x"$ac_file" != x-; then 32336 { 32337 $as_echo "/* $configure_input */" \ 32338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 32339 } >"$ac_tmp/config.h" \ 32340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32341 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 32342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 32343$as_echo "$as_me: $ac_file is unchanged" >&6;} 32344 else 32345 rm -f "$ac_file" 32346 mv "$ac_tmp/config.h" "$ac_file" \ 32347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32348 fi 32349 else 32350 $as_echo "/* $configure_input */" \ 32351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 32352 || as_fn_error $? "could not create -" "$LINENO" 5 32353 fi 32354 ;; 32355 :L) 32356 # 32357 # CONFIG_LINK 32358 # 32359 32360 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 32361 : 32362 else 32363 # Prefer the file from the source tree if names are identical. 32364 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 32365 ac_source=$srcdir/$ac_source 32366 fi 32367 32368 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 32369$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 32370 32371 if test ! -r "$ac_source"; then 32372 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 32373 fi 32374 rm -f "$ac_file" 32375 32376 # Try a relative symlink, then a hard link, then a copy. 32377 case $ac_source in 32378 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 32379 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 32380 esac 32381 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 32382 ln "$ac_source" "$ac_file" 2>/dev/null || 32383 cp -p "$ac_source" "$ac_file" || 32384 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 32385 fi 32386 ;; 32387 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 32388$as_echo "$as_me: executing $ac_file commands" >&6;} 32389 ;; 32390 esac 32391 32392 32393 case $ac_file$ac_mode in 32394 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; 32395 "gccdepdir":C) 32396 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR 32397 for lang in $subdirs c-family common analyzer 32398 do 32399 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR 32400 done ;; 32401 "as":F) chmod +x as ;; 32402 "collect-ld":F) chmod +x collect-ld ;; 32403 "nm":F) chmod +x nm ;; 32404 "dsymutil":F) chmod +x dsymutil ;; 32405 "default":C) 32406case ${CONFIG_HEADERS} in 32407 *auto-host.h:config.in*) 32408 echo > cstamp-h ;; 32409esac 32410# Make sure all the subdirs exist. 32411for d in $subdirs doc build common c-family 32412do 32413 test -d $d || mkdir $d 32414done 32415 ;; 32416 32417 esac 32418done # for ac_tag 32419 32420 32421as_fn_exit 0 32422_ACEOF 32423ac_clean_files=$ac_clean_files_save 32424 32425test $ac_write_fail = 0 || 32426 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 32427 32428 32429# configure is writing to config.log, and then calls config.status. 32430# config.status does its own redirection, appending to config.log. 32431# Unfortunately, on DOS this fails, as config.log is still kept open 32432# by configure, so config.status won't be able to write to it; its 32433# output is simply discarded. So we exec the FD to /dev/null, 32434# effectively closing config.log, so it can be properly (re)opened and 32435# appended to by config.status. When coming back to configure, we 32436# need to make the FD available again. 32437if test "$no_create" != yes; then 32438 ac_cs_success=: 32439 ac_config_status_args= 32440 test "$silent" = yes && 32441 ac_config_status_args="$ac_config_status_args --quiet" 32442 exec 5>/dev/null 32443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 32444 exec 5>>config.log 32445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 32446 # would make configure fail if this is the last instruction. 32447 $ac_cs_success || as_fn_exit 1 32448fi 32449if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 32450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 32451$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 32452fi 32453