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 722gcc_cv_otool 723gcc_cv_readelf 724gcc_cv_objdump 725ORIGINAL_NM_FOR_TARGET 726gcc_cv_nm 727ORIGINAL_LD_GOLD_FOR_TARGET 728ORIGINAL_LD_BFD_FOR_TARGET 729ORIGINAL_LD_FOR_TARGET 730ORIGINAL_PLUGIN_LD_FOR_TARGET 731gcc_cv_ld 732ORIGINAL_AS_FOR_TARGET 733gcc_cv_as 734enable_fast_install 735objdir 736OTOOL64 737OTOOL 738LIPO 739NMEDIT 740DSYMUTIL 741STRIP 742OBJDUMP 743ac_ct_DUMPBIN 744DUMPBIN 745LD 746FGREP 747SED 748LIBTOOL 749collect2 750NO_PIE_FLAG_FOR_BUILD 751NO_PIE_CFLAGS_FOR_BUILD 752BUILD_NO_PIE_FLAG 753BUILD_NO_PIE_CFLAGS 754STMP_FIXINC 755BUILD_LDFLAGS 756BUILD_CXXFLAGS 757BUILD_CFLAGS 758CXX_FOR_BUILD 759CC_FOR_BUILD 760inhibit_libc 761BUILD_SYSTEM_HEADER_DIR 762SYSTEM_HEADER_DIR 763ALL 764CROSS 765CATOBJEXT 766GENCAT 767INSTOBJEXT 768DATADIRNAME 769CATALOGS 770POSUB 771GMSGFMT 772XGETTEXT 773INCINTL 774LIBINTL_DEP 775LIBINTL 776USE_NLS 777get_gcc_base_ver 778extra_opt_files 779extra_modes_file 780NATIVE_SYSTEM_HEADER_DIR 781objext 782manext 783LIBICONV_DEP 784LTLIBICONV 785LIBICONV 786DL_LIB 787LDEXP_LIB 788EXTRA_GCC_LIBS 789GNAT_LIBEXC 790COLLECT2_LIBS 791CXXDEPMODE 792DEPDIR 793am__leading_dot 794doc_build_sys 795AR 796NM 797BISON 798FLEX 799GENERATED_MANPAGES 800BUILD_INFO 801MAKEINFO 802have_mktemp_command 803make_compare_target 804INSTALL_DATA 805INSTALL_PROGRAM 806INSTALL 807ranlib_flags 808RANLIB 809LN 810LN_S 811AWK 812SET_MAKE 813accel_dir_suffix 814real_target_noncanonical 815enable_as_accelerator 816REPORT_BUGS_TEXI 817REPORT_BUGS_TO 818PKGVERSION 819CONFIGURE_SPECS 820enable_gcov 821enable_shared 822enable_fixed_point 823enable_decimal_float 824with_float 825with_cpu 826enable_multiarch 827enable_multilib 828coverage_flags 829valgrind_command 830valgrind_path_defines 831valgrind_path 832TREECHECKING 833nocommon_flag 834noexception_flags 835warn_cxxflags 836warn_cflags 837c_strict_warn 838strict_warn 839c_loose_warn 840loose_warn 841aliasing_flags 842CPP 843EGREP 844GREP 845CXXCPP 846PICFLAG_FOR_TARGET 847GNATMAKE 848GNATBIND 849ac_ct_CXX 850CXXFLAGS 851CXX 852OBJEXT 853EXEEXT 854ac_ct_CC 855CPPFLAGS 856LDFLAGS 857CFLAGS 858CC 859GENINSRC 860CROSS_SYSTEM_HEADER_DIR 861TARGET_SYSTEM_ROOT_DEFINE 862TARGET_SYSTEM_ROOT 863SYSROOT_CFLAGS_FOR_TARGET 864target_subdir 865host_subdir 866build_subdir 867build_libsubdir 868target_noncanonical 869host_noncanonical 870target_os 871target_vendor 872target_cpu 873target 874host_os 875host_vendor 876host_cpu 877host 878build_os 879build_vendor 880build_cpu 881build 882target_alias 883host_alias 884build_alias 885LIBS 886ECHO_T 887ECHO_N 888ECHO_C 889DEFS 890mandir 891localedir 892libdir 893psdir 894pdfdir 895dvidir 896htmldir 897infodir 898docdir 899oldincludedir 900includedir 901localstatedir 902sharedstatedir 903sysconfdir 904datadir 905datarootdir 906libexecdir 907sbindir 908bindir 909program_transform_name 910prefix 911exec_prefix 912PACKAGE_URL 913PACKAGE_BUGREPORT 914PACKAGE_STRING 915PACKAGE_VERSION 916PACKAGE_TARNAME 917PACKAGE_NAME 918PATH_SEPARATOR 919SHELL' 920ac_subst_files='option_includes 921language_hooks' 922ac_user_opts=' 923enable_option_checking 924with_build_libsubdir 925with_local_prefix 926with_native_system_header_dir 927with_build_sysroot 928with_sysroot 929with_gxx_include_dir 930with_cpp_install_dir 931enable_generated_files_in_srcdir 932with_gnu_ld 933with_ld 934with_demangler_in_ld 935with_gnu_as 936with_as 937enable_largefile 938enable_build_format_warnings 939enable_werror_always 940enable_checking 941enable_coverage 942enable_gather_detailed_mem_stats 943enable_valgrind_annotations 944with_stabs 945enable_multilib 946enable_multiarch 947with_stack_clash_protection_guard_size 948enable___cxa_atexit 949enable_decimal_float 950enable_fixed_point 951enable_threads 952enable_tls 953enable_vtable_verify 954enable_objc_gc 955with_dwarf2 956enable_shared 957enable_gcov 958with_specs 959with_pkgversion 960with_bugurl 961enable_languages 962with_multilib_list 963enable_rpath 964with_libiconv_prefix 965enable_sjlj_exceptions 966with_gcc_major_version_only 967enable_secureplt 968enable_mingw_wildcard 969enable_large_address_aware 970enable_leading_mingw64_underscores 971enable_cld 972enable_frame_pointer 973enable_win32_registry 974enable_static 975with_pic 976enable_fast_install 977enable_libtool_lock 978enable_ld 979enable_gold 980with_plugin_ld 981enable_gnu_indirect_function 982enable_initfini_array 983enable_comdat 984enable_standard_branch_protection 985enable_fix_cortex_a53_835769 986enable_fix_cortex_a53_843419 987with_glibc_version 988enable_gnu_unique_object 989enable_linker_build_id 990enable_libssp 991enable_default_ssp 992with_long_double_128 993with_long_double_format 994with_gc 995with_system_zlib 996enable_maintainer_mode 997enable_link_mutex 998enable_version_specific_runtime_libs 999enable_plugin 1000enable_host_shared 1001enable_libquadmath_support 1002with_linker_hash_style 1003with_diagnostics_color 1004enable_default_pie 1005' 1006 ac_precious_vars='build_alias 1007host_alias 1008target_alias 1009CC 1010CFLAGS 1011LDFLAGS 1012LIBS 1013CPPFLAGS 1014CXX 1015CXXFLAGS 1016CCC 1017CXXCPP 1018CPP 1019GMPLIBS 1020GMPINC 1021ISLLIBS 1022ISLINC' 1023 1024 1025# Initialize some variables set by options. 1026ac_init_help= 1027ac_init_version=false 1028ac_unrecognized_opts= 1029ac_unrecognized_sep= 1030# The variables have the same names as the options, with 1031# dashes changed to underlines. 1032cache_file=/dev/null 1033exec_prefix=NONE 1034no_create= 1035no_recursion= 1036prefix=NONE 1037program_prefix=NONE 1038program_suffix=NONE 1039program_transform_name=s,x,x, 1040silent= 1041site= 1042srcdir= 1043verbose= 1044x_includes=NONE 1045x_libraries=NONE 1046 1047# Installation directory options. 1048# These are left unexpanded so users can "make install exec_prefix=/foo" 1049# and all the variables that are supposed to be based on exec_prefix 1050# by default will actually change. 1051# Use braces instead of parens because sh, perl, etc. also accept them. 1052# (The list follows the same order as the GNU Coding Standards.) 1053bindir='${exec_prefix}/bin' 1054sbindir='${exec_prefix}/sbin' 1055libexecdir='${exec_prefix}/libexec' 1056datarootdir='${prefix}/share' 1057datadir='${datarootdir}' 1058sysconfdir='${prefix}/etc' 1059sharedstatedir='${prefix}/com' 1060localstatedir='${prefix}/var' 1061includedir='${prefix}/include' 1062oldincludedir='/usr/include' 1063docdir='${datarootdir}/doc/${PACKAGE}' 1064infodir='${datarootdir}/info' 1065htmldir='${docdir}' 1066dvidir='${docdir}' 1067pdfdir='${docdir}' 1068psdir='${docdir}' 1069libdir='${exec_prefix}/lib' 1070localedir='${datarootdir}/locale' 1071mandir='${datarootdir}/man' 1072 1073ac_prev= 1074ac_dashdash= 1075for ac_option 1076do 1077 # If the previous option needs an argument, assign it. 1078 if test -n "$ac_prev"; then 1079 eval $ac_prev=\$ac_option 1080 ac_prev= 1081 continue 1082 fi 1083 1084 case $ac_option in 1085 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1086 *=) ac_optarg= ;; 1087 *) ac_optarg=yes ;; 1088 esac 1089 1090 # Accept the important Cygnus configure options, so we can diagnose typos. 1091 1092 case $ac_dashdash$ac_option in 1093 --) 1094 ac_dashdash=yes ;; 1095 1096 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1097 ac_prev=bindir ;; 1098 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1099 bindir=$ac_optarg ;; 1100 1101 -build | --build | --buil | --bui | --bu) 1102 ac_prev=build_alias ;; 1103 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1104 build_alias=$ac_optarg ;; 1105 1106 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1108 ac_prev=cache_file ;; 1109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1111 cache_file=$ac_optarg ;; 1112 1113 --config-cache | -C) 1114 cache_file=config.cache ;; 1115 1116 -datadir | --datadir | --datadi | --datad) 1117 ac_prev=datadir ;; 1118 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1119 datadir=$ac_optarg ;; 1120 1121 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1122 | --dataroo | --dataro | --datar) 1123 ac_prev=datarootdir ;; 1124 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1125 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1126 datarootdir=$ac_optarg ;; 1127 1128 -disable-* | --disable-*) 1129 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 as_fn_error $? "invalid feature name: $ac_useropt" 1133 ac_useropt_orig=$ac_useropt 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 case $ac_user_opts in 1136 *" 1137"enable_$ac_useropt" 1138"*) ;; 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1140 ac_unrecognized_sep=', ';; 1141 esac 1142 eval enable_$ac_useropt=no ;; 1143 1144 -docdir | --docdir | --docdi | --doc | --do) 1145 ac_prev=docdir ;; 1146 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1147 docdir=$ac_optarg ;; 1148 1149 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1150 ac_prev=dvidir ;; 1151 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1152 dvidir=$ac_optarg ;; 1153 1154 -enable-* | --enable-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid feature name: $ac_useropt" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"enable_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval enable_$ac_useropt=\$ac_optarg ;; 1169 1170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1172 | --exec | --exe | --ex) 1173 ac_prev=exec_prefix ;; 1174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1176 | --exec=* | --exe=* | --ex=*) 1177 exec_prefix=$ac_optarg ;; 1178 1179 -gas | --gas | --ga | --g) 1180 # Obsolete; use --with-gas. 1181 with_gas=yes ;; 1182 1183 -help | --help | --hel | --he | -h) 1184 ac_init_help=long ;; 1185 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1186 ac_init_help=recursive ;; 1187 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1188 ac_init_help=short ;; 1189 1190 -host | --host | --hos | --ho) 1191 ac_prev=host_alias ;; 1192 -host=* | --host=* | --hos=* | --ho=*) 1193 host_alias=$ac_optarg ;; 1194 1195 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1196 ac_prev=htmldir ;; 1197 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1198 | --ht=*) 1199 htmldir=$ac_optarg ;; 1200 1201 -includedir | --includedir | --includedi | --included | --include \ 1202 | --includ | --inclu | --incl | --inc) 1203 ac_prev=includedir ;; 1204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1205 | --includ=* | --inclu=* | --incl=* | --inc=*) 1206 includedir=$ac_optarg ;; 1207 1208 -infodir | --infodir | --infodi | --infod | --info | --inf) 1209 ac_prev=infodir ;; 1210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1211 infodir=$ac_optarg ;; 1212 1213 -libdir | --libdir | --libdi | --libd) 1214 ac_prev=libdir ;; 1215 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1216 libdir=$ac_optarg ;; 1217 1218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1219 | --libexe | --libex | --libe) 1220 ac_prev=libexecdir ;; 1221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1222 | --libexe=* | --libex=* | --libe=*) 1223 libexecdir=$ac_optarg ;; 1224 1225 -localedir | --localedir | --localedi | --localed | --locale) 1226 ac_prev=localedir ;; 1227 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1228 localedir=$ac_optarg ;; 1229 1230 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1231 | --localstate | --localstat | --localsta | --localst | --locals) 1232 ac_prev=localstatedir ;; 1233 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1234 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1235 localstatedir=$ac_optarg ;; 1236 1237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1238 ac_prev=mandir ;; 1239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1240 mandir=$ac_optarg ;; 1241 1242 -nfp | --nfp | --nf) 1243 # Obsolete; use --without-fp. 1244 with_fp=no ;; 1245 1246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1247 | --no-cr | --no-c | -n) 1248 no_create=yes ;; 1249 1250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1252 no_recursion=yes ;; 1253 1254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1256 | --oldin | --oldi | --old | --ol | --o) 1257 ac_prev=oldincludedir ;; 1258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1261 oldincludedir=$ac_optarg ;; 1262 1263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1264 ac_prev=prefix ;; 1265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1266 prefix=$ac_optarg ;; 1267 1268 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1269 | --program-pre | --program-pr | --program-p) 1270 ac_prev=program_prefix ;; 1271 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1273 program_prefix=$ac_optarg ;; 1274 1275 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1276 | --program-suf | --program-su | --program-s) 1277 ac_prev=program_suffix ;; 1278 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1280 program_suffix=$ac_optarg ;; 1281 1282 -program-transform-name | --program-transform-name \ 1283 | --program-transform-nam | --program-transform-na \ 1284 | --program-transform-n | --program-transform- \ 1285 | --program-transform | --program-transfor \ 1286 | --program-transfo | --program-transf \ 1287 | --program-trans | --program-tran \ 1288 | --progr-tra | --program-tr | --program-t) 1289 ac_prev=program_transform_name ;; 1290 -program-transform-name=* | --program-transform-name=* \ 1291 | --program-transform-nam=* | --program-transform-na=* \ 1292 | --program-transform-n=* | --program-transform-=* \ 1293 | --program-transform=* | --program-transfor=* \ 1294 | --program-transfo=* | --program-transf=* \ 1295 | --program-trans=* | --program-tran=* \ 1296 | --progr-tra=* | --program-tr=* | --program-t=*) 1297 program_transform_name=$ac_optarg ;; 1298 1299 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1300 ac_prev=pdfdir ;; 1301 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1302 pdfdir=$ac_optarg ;; 1303 1304 -psdir | --psdir | --psdi | --psd | --ps) 1305 ac_prev=psdir ;; 1306 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1307 psdir=$ac_optarg ;; 1308 1309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1310 | -silent | --silent | --silen | --sile | --sil) 1311 silent=yes ;; 1312 1313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1314 ac_prev=sbindir ;; 1315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1316 | --sbi=* | --sb=*) 1317 sbindir=$ac_optarg ;; 1318 1319 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1321 | --sharedst | --shareds | --shared | --share | --shar \ 1322 | --sha | --sh) 1323 ac_prev=sharedstatedir ;; 1324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1327 | --sha=* | --sh=*) 1328 sharedstatedir=$ac_optarg ;; 1329 1330 -site | --site | --sit) 1331 ac_prev=site ;; 1332 -site=* | --site=* | --sit=*) 1333 site=$ac_optarg ;; 1334 1335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1336 ac_prev=srcdir ;; 1337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1338 srcdir=$ac_optarg ;; 1339 1340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1341 | --syscon | --sysco | --sysc | --sys | --sy) 1342 ac_prev=sysconfdir ;; 1343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1345 sysconfdir=$ac_optarg ;; 1346 1347 -target | --target | --targe | --targ | --tar | --ta | --t) 1348 ac_prev=target_alias ;; 1349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1350 target_alias=$ac_optarg ;; 1351 1352 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1353 verbose=yes ;; 1354 1355 -version | --version | --versio | --versi | --vers | -V) 1356 ac_init_version=: ;; 1357 1358 -with-* | --with-*) 1359 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1360 # Reject names that are not valid shell variable names. 1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1362 as_fn_error $? "invalid package name: $ac_useropt" 1363 ac_useropt_orig=$ac_useropt 1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1365 case $ac_user_opts in 1366 *" 1367"with_$ac_useropt" 1368"*) ;; 1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1370 ac_unrecognized_sep=', ';; 1371 esac 1372 eval with_$ac_useropt=\$ac_optarg ;; 1373 1374 -without-* | --without-*) 1375 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1376 # Reject names that are not valid shell variable names. 1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1378 as_fn_error $? "invalid package name: $ac_useropt" 1379 ac_useropt_orig=$ac_useropt 1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1381 case $ac_user_opts in 1382 *" 1383"with_$ac_useropt" 1384"*) ;; 1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1386 ac_unrecognized_sep=', ';; 1387 esac 1388 eval with_$ac_useropt=no ;; 1389 1390 --x) 1391 # Obsolete; use --with-x. 1392 with_x=yes ;; 1393 1394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1395 | --x-incl | --x-inc | --x-in | --x-i) 1396 ac_prev=x_includes ;; 1397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1399 x_includes=$ac_optarg ;; 1400 1401 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1403 ac_prev=x_libraries ;; 1404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1406 x_libraries=$ac_optarg ;; 1407 1408 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1409Try \`$0 --help' for more information" 1410 ;; 1411 1412 *=*) 1413 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1414 # Reject names that are not valid shell variable names. 1415 case $ac_envvar in #( 1416 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1417 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1418 esac 1419 eval $ac_envvar=\$ac_optarg 1420 export $ac_envvar ;; 1421 1422 *) 1423 # FIXME: should be removed in autoconf 3.0. 1424 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1425 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1426 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1427 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1428 ;; 1429 1430 esac 1431done 1432 1433if test -n "$ac_prev"; then 1434 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1435 as_fn_error $? "missing argument to $ac_option" 1436fi 1437 1438if test -n "$ac_unrecognized_opts"; then 1439 case $enable_option_checking in 1440 no) ;; 1441 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1442 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1443 esac 1444fi 1445 1446# Check all directory arguments for consistency. 1447for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1448 datadir sysconfdir sharedstatedir localstatedir includedir \ 1449 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1450 libdir localedir mandir 1451do 1452 eval ac_val=\$$ac_var 1453 # Remove trailing slashes. 1454 case $ac_val in 1455 */ ) 1456 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1457 eval $ac_var=\$ac_val;; 1458 esac 1459 # Be sure to have absolute directory names. 1460 case $ac_val in 1461 [\\/$]* | ?:[\\/]* ) continue;; 1462 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1463 esac 1464 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1465done 1466 1467# There might be people who depend on the old broken behavior: `$host' 1468# used to hold the argument of --host etc. 1469# FIXME: To remove some day. 1470build=$build_alias 1471host=$host_alias 1472target=$target_alias 1473 1474# FIXME: To remove some day. 1475if test "x$host_alias" != x; then 1476 if test "x$build_alias" = x; then 1477 cross_compiling=maybe 1478 elif test "x$build_alias" != "x$host_alias"; then 1479 cross_compiling=yes 1480 fi 1481fi 1482 1483ac_tool_prefix= 1484test -n "$host_alias" && ac_tool_prefix=$host_alias- 1485 1486test "$silent" = yes && exec 6>/dev/null 1487 1488 1489ac_pwd=`pwd` && test -n "$ac_pwd" && 1490ac_ls_di=`ls -di .` && 1491ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1492 as_fn_error $? "working directory cannot be determined" 1493test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1494 as_fn_error $? "pwd does not report name of working directory" 1495 1496 1497# Find the source files, if location was not specified. 1498if test -z "$srcdir"; then 1499 ac_srcdir_defaulted=yes 1500 # Try the directory containing this script, then the parent directory. 1501 ac_confdir=`$as_dirname -- "$as_myself" || 1502$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1503 X"$as_myself" : 'X\(//\)[^/]' \| \ 1504 X"$as_myself" : 'X\(//\)$' \| \ 1505 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1506$as_echo X"$as_myself" | 1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1508 s//\1/ 1509 q 1510 } 1511 /^X\(\/\/\)[^/].*/{ 1512 s//\1/ 1513 q 1514 } 1515 /^X\(\/\/\)$/{ 1516 s//\1/ 1517 q 1518 } 1519 /^X\(\/\).*/{ 1520 s//\1/ 1521 q 1522 } 1523 s/.*/./; q'` 1524 srcdir=$ac_confdir 1525 if test ! -r "$srcdir/$ac_unique_file"; then 1526 srcdir=.. 1527 fi 1528else 1529 ac_srcdir_defaulted=no 1530fi 1531if test ! -r "$srcdir/$ac_unique_file"; then 1532 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1533 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1534fi 1535ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1536ac_abs_confdir=`( 1537 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1538 pwd)` 1539# When building in place, set srcdir=. 1540if test "$ac_abs_confdir" = "$ac_pwd"; then 1541 srcdir=. 1542fi 1543# Remove unnecessary trailing slashes from srcdir. 1544# Double slashes in file names in object file debugging info 1545# mess up M-x gdb in Emacs. 1546case $srcdir in 1547*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1548esac 1549for ac_var in $ac_precious_vars; do 1550 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1551 eval ac_env_${ac_var}_value=\$${ac_var} 1552 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1553 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1554done 1555 1556# 1557# Report the --help message. 1558# 1559if test "$ac_init_help" = "long"; then 1560 # Omit some internal or obsolete options to make the list less imposing. 1561 # This message is too long to be a string in the A/UX 3.1 sh. 1562 cat <<_ACEOF 1563\`configure' configures this package to adapt to many kinds of systems. 1564 1565Usage: $0 [OPTION]... [VAR=VALUE]... 1566 1567To assign environment variables (e.g., CC, CFLAGS...), specify them as 1568VAR=VALUE. See below for descriptions of some of the useful variables. 1569 1570Defaults for the options are specified in brackets. 1571 1572Configuration: 1573 -h, --help display this help and exit 1574 --help=short display options specific to this package 1575 --help=recursive display the short help of all the included packages 1576 -V, --version display version information and exit 1577 -q, --quiet, --silent do not print \`checking ...' messages 1578 --cache-file=FILE cache test results in FILE [disabled] 1579 -C, --config-cache alias for \`--cache-file=config.cache' 1580 -n, --no-create do not create output files 1581 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1582 1583Installation directories: 1584 --prefix=PREFIX install architecture-independent files in PREFIX 1585 [$ac_default_prefix] 1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1587 [PREFIX] 1588 1589By default, \`make install' will install all the files in 1590\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1591an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1592for instance \`--prefix=\$HOME'. 1593 1594For better control, use the options below. 1595 1596Fine tuning of the installation directories: 1597 --bindir=DIR user executables [EPREFIX/bin] 1598 --sbindir=DIR system admin executables [EPREFIX/sbin] 1599 --libexecdir=DIR program executables [EPREFIX/libexec] 1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1603 --libdir=DIR object code libraries [EPREFIX/lib] 1604 --includedir=DIR C header files [PREFIX/include] 1605 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1606 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1607 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1608 --infodir=DIR info documentation [DATAROOTDIR/info] 1609 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1610 --mandir=DIR man documentation [DATAROOTDIR/man] 1611 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1612 --htmldir=DIR html documentation [DOCDIR] 1613 --dvidir=DIR dvi documentation [DOCDIR] 1614 --pdfdir=DIR pdf documentation [DOCDIR] 1615 --psdir=DIR ps documentation [DOCDIR] 1616_ACEOF 1617 1618 cat <<\_ACEOF 1619 1620Program names: 1621 --program-prefix=PREFIX prepend PREFIX to installed program names 1622 --program-suffix=SUFFIX append SUFFIX to installed program names 1623 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1624 1625System types: 1626 --build=BUILD configure for building on BUILD [guessed] 1627 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1628 --target=TARGET configure for building compilers for TARGET [HOST] 1629_ACEOF 1630fi 1631 1632if test -n "$ac_init_help"; then 1633 1634 cat <<\_ACEOF 1635 1636Optional Features: 1637 --disable-option-checking ignore unrecognized --enable/--with options 1638 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1639 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1640 --enable-generated-files-in-srcdir 1641 put copies of generated files in source dir intended 1642 for creating source tarballs for users without 1643 texinfo bison or flex 1644 --disable-largefile omit support for large files 1645 --disable-build-format-warnings 1646 don't use -Wformat while building GCC 1647 --enable-werror-always enable -Werror despite compiler version 1648 --enable-checking[=LIST] 1649 enable expensive run-time checks. With LIST, enable 1650 only specific categories of checks. Categories are: 1651 yes,no,all,none,release. Flags are: 1652 assert,df,extra,fold,gc,gcac,gimple,misc, 1653 rtlflag,rtl,runtime,tree,valgrind,types 1654 --enable-coverage[=LEVEL] 1655 enable compiler's code coverage collection. Use to 1656 measure compiler performance and locate unused parts 1657 of the compiler. With LEVEL, specify optimization. 1658 Values are opt, noopt, default is noopt 1659 --enable-gather-detailed-mem-stats 1660 enable detailed memory allocation stats gathering 1661 --enable-valgrind-annotations 1662 enable valgrind runtime interaction 1663 --enable-multilib enable library support for multiple ABIs 1664 --enable-multiarch enable support for multiarch paths 1665 --enable-__cxa_atexit enable __cxa_atexit for C++ 1666 --enable-decimal-float={no,yes,bid,dpd} 1667 enable decimal float extension to C. Selecting 'bid' 1668 or 'dpd' choses which decimal floating point format 1669 to use 1670 --enable-fixed-point enable fixed-point arithmetic extension to C 1671 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread 1672 package 1673 --enable-tls enable or disable generation of tls code overriding 1674 the assembler check for tls support 1675 --enable-vtable-verify enable vtable verification feature 1676 --enable-objc-gc enable the use of Boehm's garbage collector with the 1677 GNU Objective-C runtime 1678 --disable-shared don't provide a shared libgcc 1679 --disable-gcov don't provide libgcov and related host tools 1680 --enable-languages=LIST specify which front-ends to build 1681 --disable-rpath do not hardcode runtime library paths 1682 --enable-sjlj-exceptions 1683 arrange to use setjmp/longjmp exception handling 1684 --enable-secureplt enable -msecure-plt by default for PowerPC 1685 --enable-mingw-wildcard Set whether to expand wildcard on command-line. 1686 Default to platform configuration 1687 --enable-large-address-aware 1688 Link mingw executables with --large-address-aware 1689 --enable-leading-mingw64-underscores 1690 enable leading underscores on 64 bit mingw targets 1691 --enable-cld enable -mcld by default for 32bit x86 1692 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit 1693 x86 1694 --disable-win32-registry 1695 disable lookup of installation paths in the Registry 1696 on Windows hosts 1697 --enable-win32-registry enable registry lookup (default) 1698 --enable-win32-registry=KEY 1699 use KEY instead of GCC version as the last portion 1700 of the registry key 1701 --enable-shared[=PKGS] build shared libraries [default=yes] 1702 --enable-static[=PKGS] build static libraries [default=yes] 1703 --enable-fast-install[=PKGS] 1704 optimize for fast installation [default=yes] 1705 --disable-libtool-lock avoid locking (might break parallel builds) 1706 --enable-ld[=ARG] build ld [ARG={default,yes,no}] 1707 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1708 --enable-gnu-indirect-function 1709 enable the use of the @gnu_indirect_function to 1710 glibc systems 1711 --enable-initfini-array use .init_array/.fini_array sections 1712 --enable-comdat enable COMDAT group support 1713 1714 --enable-standard-branch-protection 1715 enable Branch Target Identification Mechanism and 1716 Return Address Signing by default for AArch64 1717 --disable-standard-branch-protection 1718 disable Branch Target Identification Mechanism and 1719 Return Address Signing by default for AArch64 1720 1721 1722 --enable-fix-cortex-a53-835769 1723 enable workaround for AArch64 Cortex-A53 erratum 1724 835769 by default 1725 --disable-fix-cortex-a53-835769 1726 disable workaround for AArch64 Cortex-A53 erratum 1727 835769 by default 1728 1729 1730 --enable-fix-cortex-a53-843419 1731 enable workaround for AArch64 Cortex-A53 erratum 1732 843419 by default 1733 --disable-fix-cortex-a53-843419 1734 disable workaround for AArch64 Cortex-A53 erratum 1735 843419 by default 1736 1737 --enable-gnu-unique-object 1738 enable the use of the @gnu_unique_object ELF 1739 extension on glibc systems 1740 --enable-linker-build-id 1741 compiler will always pass --build-id to linker 1742 --enable-libssp enable linking against libssp 1743 --enable-default-ssp enable Stack Smashing Protection as default 1744 --enable-maintainer-mode 1745 enable make rules and dependencies not useful (and 1746 sometimes confusing) to the casual installer 1747 --enable-link-mutex avoid linking multiple front-ends at once to avoid 1748 thrashing on the build machine 1749 --enable-version-specific-runtime-libs 1750 specify that runtime libraries should be installed 1751 in a compiler-specific directory 1752 --enable-plugin enable plugin support 1753 --enable-host-shared build host code as shared libraries 1754 --disable-libquadmath-support 1755 disable libquadmath support for Fortran 1756 --enable-default-pie enable Position Independent Executable as default 1757 1758Optional Packages: 1759 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1760 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1761 --with-build-libsubdir=DIR Directory where to find libraries for build system 1762 --with-local-prefix=DIR specifies directory to put local include 1763 --with-native-system-header-dir=dir 1764 use dir as the directory to look for standard 1765 system header files in. Defaults to /usr/include. 1766 --with-build-sysroot=sysroot 1767 use sysroot as the system root during the build 1768 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR 1769 --with-gxx-include-dir=DIR 1770 specifies directory to put g++ header files 1771 --with-cpp-install-dir=DIR 1772 install the user visible C preprocessor in DIR 1773 (relative to PREFIX) as well as PREFIX/bin 1774 --with-gnu-ld arrange to work with GNU ld 1775 --with-ld arrange to use the specified ld (full pathname) 1776 --with-demangler-in-ld try to use demangler in GNU ld 1777 --with-gnu-as arrange to work with GNU as 1778 --with-as arrange to use the specified as (full pathname) 1779 --with-stabs arrange to use stabs instead of host debug format 1780 --with-stack-clash-protection-guard-size=size 1781 Set the default stack clash protection guard size 1782 for specific targets as a power of two in bytes. 1783 --with-dwarf2 force the default debug format to be DWARF 2 1784 --with-specs=SPECS add SPECS to driver command-line processing 1785 --with-pkgversion=PKG Use PKG in the version string in place of "GCC" 1786 --with-bugurl=URL Direct users to URL to report a bug 1787 --with-multilib-list select multilibs (AArch64, SH and x86-64 only) 1788 --with-gnu-ld assume the C compiler uses GNU ld default=no 1789 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1790 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1791 --with-gcc-major-version-only 1792 use only GCC major number in filesystem paths 1793 --with-pic try to use only PIC/non-PIC objects [default=use 1794 both] 1795 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1796 --with-plugin-ld=[ARG] specify the plugin linker 1797 --with-glibc-version=M.N 1798 assume GCC used with glibc version M.N or later 1799 --with-long-double-128 use 128-bit long double by default 1800 --with-long-double-format={ieee,ibm} 1801 Specify whether PowerPC long double uses IEEE or IBM format 1802 1803 --with-gc={page,zone} this option is not supported anymore. It used to 1804 choose the garbage collection mechanism to use with 1805 the compiler 1806 --with-system-zlib use installed libz 1807 --with-linker-hash-style={sysv,gnu,both} 1808 specify the linker hash style 1809 --with-diagnostics-color={never,auto,auto-if-env,always} 1810 specify the default of -fdiagnostics-color option 1811 auto-if-env stands for -fdiagnostics-color=auto if 1812 GCC_COLOR environment variable is present and 1813 -fdiagnostics-color=never otherwise 1814 1815Some influential environment variables: 1816 CC C compiler command 1817 CFLAGS C compiler flags 1818 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1819 nonstandard directory <lib dir> 1820 LIBS libraries to pass to the linker, e.g. -l<library> 1821 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1822 you have headers in a nonstandard directory <include dir> 1823 CXX C++ compiler command 1824 CXXFLAGS C++ compiler flags 1825 CXXCPP C++ preprocessor 1826 CPP C preprocessor 1827 GMPLIBS How to link GMP 1828 GMPINC How to find GMP include files 1829 ISLLIBS How to link isl 1830 ISLINC How to find isl include files 1831 1832Use these variables to override the choices made by `configure' or to help 1833it to find libraries and programs with nonstandard names/locations. 1834 1835Report bugs to the package provider. 1836_ACEOF 1837ac_status=$? 1838fi 1839 1840if test "$ac_init_help" = "recursive"; then 1841 # If there are subdirs, report their specific --help. 1842 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1843 test -d "$ac_dir" || 1844 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1845 continue 1846 ac_builddir=. 1847 1848case "$ac_dir" in 1849.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1850*) 1851 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1852 # A ".." for each directory in $ac_dir_suffix. 1853 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1854 case $ac_top_builddir_sub in 1855 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1856 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1857 esac ;; 1858esac 1859ac_abs_top_builddir=$ac_pwd 1860ac_abs_builddir=$ac_pwd$ac_dir_suffix 1861# for backward compatibility: 1862ac_top_builddir=$ac_top_build_prefix 1863 1864case $srcdir in 1865 .) # We are building in place. 1866 ac_srcdir=. 1867 ac_top_srcdir=$ac_top_builddir_sub 1868 ac_abs_top_srcdir=$ac_pwd ;; 1869 [\\/]* | ?:[\\/]* ) # Absolute name. 1870 ac_srcdir=$srcdir$ac_dir_suffix; 1871 ac_top_srcdir=$srcdir 1872 ac_abs_top_srcdir=$srcdir ;; 1873 *) # Relative name. 1874 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1875 ac_top_srcdir=$ac_top_build_prefix$srcdir 1876 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1877esac 1878ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1879 1880 cd "$ac_dir" || { ac_status=$?; continue; } 1881 # Check for guested configure. 1882 if test -f "$ac_srcdir/configure.gnu"; then 1883 echo && 1884 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1885 elif test -f "$ac_srcdir/configure"; then 1886 echo && 1887 $SHELL "$ac_srcdir/configure" --help=recursive 1888 else 1889 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1890 fi || ac_status=$? 1891 cd "$ac_pwd" || { ac_status=$?; break; } 1892 done 1893fi 1894 1895test -n "$ac_init_help" && exit $ac_status 1896if $ac_init_version; then 1897 cat <<\_ACEOF 1898configure 1899generated by GNU Autoconf 2.69 1900 1901Copyright (C) 2012 Free Software Foundation, Inc. 1902This configure script is free software; the Free Software Foundation 1903gives unlimited permission to copy, distribute and modify it. 1904_ACEOF 1905 exit 1906fi 1907 1908## ------------------------ ## 1909## Autoconf initialization. ## 1910## ------------------------ ## 1911 1912# ac_fn_c_try_compile LINENO 1913# -------------------------- 1914# Try to compile conftest.$ac_ext, and return whether this succeeded. 1915ac_fn_c_try_compile () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 rm -f conftest.$ac_objext 1919 if { { ac_try="$ac_compile" 1920case "(($ac_try" in 1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1922 *) ac_try_echo=$ac_try;; 1923esac 1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1925$as_echo "$ac_try_echo"; } >&5 1926 (eval "$ac_compile") 2>conftest.err 1927 ac_status=$? 1928 if test -s conftest.err; then 1929 grep -v '^ *+' conftest.err >conftest.er1 1930 cat conftest.er1 >&5 1931 mv -f conftest.er1 conftest.err 1932 fi 1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1934 test $ac_status = 0; } && { 1935 test -z "$ac_c_werror_flag" || 1936 test ! -s conftest.err 1937 } && test -s conftest.$ac_objext; then : 1938 ac_retval=0 1939else 1940 $as_echo "$as_me: failed program was:" >&5 1941sed 's/^/| /' conftest.$ac_ext >&5 1942 1943 ac_retval=1 1944fi 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 as_fn_set_status $ac_retval 1947 1948} # ac_fn_c_try_compile 1949 1950# ac_fn_cxx_try_compile LINENO 1951# ---------------------------- 1952# Try to compile conftest.$ac_ext, and return whether this succeeded. 1953ac_fn_cxx_try_compile () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 rm -f conftest.$ac_objext 1957 if { { ac_try="$ac_compile" 1958case "(($ac_try" in 1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1960 *) ac_try_echo=$ac_try;; 1961esac 1962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1963$as_echo "$ac_try_echo"; } >&5 1964 (eval "$ac_compile") 2>conftest.err 1965 ac_status=$? 1966 if test -s conftest.err; then 1967 grep -v '^ *+' conftest.err >conftest.er1 1968 cat conftest.er1 >&5 1969 mv -f conftest.er1 conftest.err 1970 fi 1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1972 test $ac_status = 0; } && { 1973 test -z "$ac_cxx_werror_flag" || 1974 test ! -s conftest.err 1975 } && test -s conftest.$ac_objext; then : 1976 ac_retval=0 1977else 1978 $as_echo "$as_me: failed program was:" >&5 1979sed 's/^/| /' conftest.$ac_ext >&5 1980 1981 ac_retval=1 1982fi 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 as_fn_set_status $ac_retval 1985 1986} # ac_fn_cxx_try_compile 1987 1988# ac_fn_cxx_try_cpp LINENO 1989# ------------------------ 1990# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1991ac_fn_cxx_try_cpp () 1992{ 1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1994 if { { ac_try="$ac_cpp conftest.$ac_ext" 1995case "(($ac_try" in 1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1997 *) ac_try_echo=$ac_try;; 1998esac 1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2000$as_echo "$ac_try_echo"; } >&5 2001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2002 ac_status=$? 2003 if test -s conftest.err; then 2004 grep -v '^ *+' conftest.err >conftest.er1 2005 cat conftest.er1 >&5 2006 mv -f conftest.er1 conftest.err 2007 fi 2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2009 test $ac_status = 0; } > conftest.i && { 2010 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2011 test ! -s conftest.err 2012 }; then : 2013 ac_retval=0 2014else 2015 $as_echo "$as_me: failed program was:" >&5 2016sed 's/^/| /' conftest.$ac_ext >&5 2017 2018 ac_retval=1 2019fi 2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2021 as_fn_set_status $ac_retval 2022 2023} # ac_fn_cxx_try_cpp 2024 2025# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2026# --------------------------------------------------------- 2027# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2028# the include files in INCLUDES and setting the cache variable VAR 2029# accordingly. 2030ac_fn_cxx_check_header_mongrel () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 if eval \${$3+:} false; then : 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2035$as_echo_n "checking for $2... " >&6; } 2036if eval \${$3+:} false; then : 2037 $as_echo_n "(cached) " >&6 2038fi 2039eval ac_res=\$$3 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2041$as_echo "$ac_res" >&6; } 2042else 2043 # Is the header compilable? 2044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2045$as_echo_n "checking $2 usability... " >&6; } 2046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049#include <$2> 2050_ACEOF 2051if ac_fn_cxx_try_compile "$LINENO"; then : 2052 ac_header_compiler=yes 2053else 2054 ac_header_compiler=no 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2058$as_echo "$ac_header_compiler" >&6; } 2059 2060# Is the header present? 2061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2062$as_echo_n "checking $2 presence... " >&6; } 2063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064/* end confdefs.h. */ 2065#include <$2> 2066_ACEOF 2067if ac_fn_cxx_try_cpp "$LINENO"; then : 2068 ac_header_preproc=yes 2069else 2070 ac_header_preproc=no 2071fi 2072rm -f conftest.err conftest.i conftest.$ac_ext 2073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2074$as_echo "$ac_header_preproc" >&6; } 2075 2076# So? What about this header? 2077case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2078 yes:no: ) 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2080$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2082$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2083 ;; 2084 no:yes:* ) 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2086$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2088$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2090$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2092$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2095 ;; 2096esac 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2098$as_echo_n "checking for $2... " >&6; } 2099if eval \${$3+:} false; then : 2100 $as_echo_n "(cached) " >&6 2101else 2102 eval "$3=\$ac_header_compiler" 2103fi 2104eval ac_res=\$$3 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2106$as_echo "$ac_res" >&6; } 2107fi 2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2109 2110} # ac_fn_cxx_check_header_mongrel 2111 2112# ac_fn_cxx_try_run LINENO 2113# ------------------------ 2114# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2115# that executables *can* be run. 2116ac_fn_cxx_try_run () 2117{ 2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2119 if { { ac_try="$ac_link" 2120case "(($ac_try" in 2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2122 *) ac_try_echo=$ac_try;; 2123esac 2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2125$as_echo "$ac_try_echo"; } >&5 2126 (eval "$ac_link") 2>&5 2127 ac_status=$? 2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2129 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2130 { { case "(($ac_try" in 2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2132 *) ac_try_echo=$ac_try;; 2133esac 2134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2135$as_echo "$ac_try_echo"; } >&5 2136 (eval "$ac_try") 2>&5 2137 ac_status=$? 2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2139 test $ac_status = 0; }; }; then : 2140 ac_retval=0 2141else 2142 $as_echo "$as_me: program exited with status $ac_status" >&5 2143 $as_echo "$as_me: failed program was:" >&5 2144sed 's/^/| /' conftest.$ac_ext >&5 2145 2146 ac_retval=$ac_status 2147fi 2148 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2150 as_fn_set_status $ac_retval 2151 2152} # ac_fn_cxx_try_run 2153 2154# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2155# --------------------------------------------------------- 2156# Tests whether HEADER exists and can be compiled using the include files in 2157# INCLUDES, setting the cache variable VAR accordingly. 2158ac_fn_cxx_check_header_compile () 2159{ 2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2162$as_echo_n "checking for $2... " >&6; } 2163if eval \${$3+:} false; then : 2164 $as_echo_n "(cached) " >&6 2165else 2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2167/* end confdefs.h. */ 2168$4 2169#include <$2> 2170_ACEOF 2171if ac_fn_cxx_try_compile "$LINENO"; then : 2172 eval "$3=yes" 2173else 2174 eval "$3=no" 2175fi 2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2177fi 2178eval ac_res=\$$3 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2180$as_echo "$ac_res" >&6; } 2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182 2183} # ac_fn_cxx_check_header_compile 2184 2185# ac_fn_c_try_cpp LINENO 2186# ---------------------- 2187# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2188ac_fn_c_try_cpp () 2189{ 2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2191 if { { ac_try="$ac_cpp conftest.$ac_ext" 2192case "(($ac_try" in 2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2194 *) ac_try_echo=$ac_try;; 2195esac 2196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2197$as_echo "$ac_try_echo"; } >&5 2198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2199 ac_status=$? 2200 if test -s conftest.err; then 2201 grep -v '^ *+' conftest.err >conftest.er1 2202 cat conftest.er1 >&5 2203 mv -f conftest.er1 conftest.err 2204 fi 2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2206 test $ac_status = 0; } > conftest.i && { 2207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2208 test ! -s conftest.err 2209 }; then : 2210 ac_retval=0 2211else 2212 $as_echo "$as_me: failed program was:" >&5 2213sed 's/^/| /' conftest.$ac_ext >&5 2214 2215 ac_retval=1 2216fi 2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2218 as_fn_set_status $ac_retval 2219 2220} # ac_fn_c_try_cpp 2221 2222# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2223# ---------------------------------------------- 2224# Tries to find the compile-time value of EXPR in a program that includes 2225# INCLUDES, setting VAR accordingly. Returns whether the value could be 2226# computed 2227ac_fn_cxx_compute_int () 2228{ 2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2230 if test "$cross_compiling" = yes; then 2231 # Depending upon the size, compute the lo and hi bounds. 2232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2233/* end confdefs.h. */ 2234$4 2235int 2236main () 2237{ 2238static int test_array [1 - 2 * !(($2) >= 0)]; 2239test_array [0] = 0; 2240return test_array [0]; 2241 2242 ; 2243 return 0; 2244} 2245_ACEOF 2246if ac_fn_cxx_try_compile "$LINENO"; then : 2247 ac_lo=0 ac_mid=0 2248 while :; do 2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2250/* end confdefs.h. */ 2251$4 2252int 2253main () 2254{ 2255static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2256test_array [0] = 0; 2257return test_array [0]; 2258 2259 ; 2260 return 0; 2261} 2262_ACEOF 2263if ac_fn_cxx_try_compile "$LINENO"; then : 2264 ac_hi=$ac_mid; break 2265else 2266 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2267 if test $ac_lo -le $ac_mid; then 2268 ac_lo= ac_hi= 2269 break 2270 fi 2271 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2272fi 2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2274 done 2275else 2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2277/* end confdefs.h. */ 2278$4 2279int 2280main () 2281{ 2282static int test_array [1 - 2 * !(($2) < 0)]; 2283test_array [0] = 0; 2284return test_array [0]; 2285 2286 ; 2287 return 0; 2288} 2289_ACEOF 2290if ac_fn_cxx_try_compile "$LINENO"; then : 2291 ac_hi=-1 ac_mid=-1 2292 while :; do 2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2294/* end confdefs.h. */ 2295$4 2296int 2297main () 2298{ 2299static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2300test_array [0] = 0; 2301return test_array [0]; 2302 2303 ; 2304 return 0; 2305} 2306_ACEOF 2307if ac_fn_cxx_try_compile "$LINENO"; then : 2308 ac_lo=$ac_mid; break 2309else 2310 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2311 if test $ac_mid -le $ac_hi; then 2312 ac_lo= ac_hi= 2313 break 2314 fi 2315 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2316fi 2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2318 done 2319else 2320 ac_lo= ac_hi= 2321fi 2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2323fi 2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2325# Binary search between lo and hi bounds. 2326while test "x$ac_lo" != "x$ac_hi"; do 2327 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2329/* end confdefs.h. */ 2330$4 2331int 2332main () 2333{ 2334static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2335test_array [0] = 0; 2336return test_array [0]; 2337 2338 ; 2339 return 0; 2340} 2341_ACEOF 2342if ac_fn_cxx_try_compile "$LINENO"; then : 2343 ac_hi=$ac_mid 2344else 2345 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2346fi 2347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2348done 2349case $ac_lo in #(( 2350?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2351'') ac_retval=1 ;; 2352esac 2353 else 2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2355/* end confdefs.h. */ 2356$4 2357static long int longval () { return $2; } 2358static unsigned long int ulongval () { return $2; } 2359#include <stdio.h> 2360#include <stdlib.h> 2361int 2362main () 2363{ 2364 2365 FILE *f = fopen ("conftest.val", "w"); 2366 if (! f) 2367 return 1; 2368 if (($2) < 0) 2369 { 2370 long int i = longval (); 2371 if (i != ($2)) 2372 return 1; 2373 fprintf (f, "%ld", i); 2374 } 2375 else 2376 { 2377 unsigned long int i = ulongval (); 2378 if (i != ($2)) 2379 return 1; 2380 fprintf (f, "%lu", i); 2381 } 2382 /* Do not output a trailing newline, as this causes \r\n confusion 2383 on some platforms. */ 2384 return ferror (f) || fclose (f) != 0; 2385 2386 ; 2387 return 0; 2388} 2389_ACEOF 2390if ac_fn_cxx_try_run "$LINENO"; then : 2391 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2392else 2393 ac_retval=1 2394fi 2395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2396 conftest.$ac_objext conftest.beam conftest.$ac_ext 2397rm -f conftest.val 2398 2399 fi 2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2401 as_fn_set_status $ac_retval 2402 2403} # ac_fn_cxx_compute_int 2404 2405# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2406# --------------------------------------------- 2407# Tests whether TYPE exists after having included INCLUDES, setting cache 2408# variable VAR accordingly. 2409ac_fn_cxx_check_type () 2410{ 2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2413$as_echo_n "checking for $2... " >&6; } 2414if eval \${$3+:} false; then : 2415 $as_echo_n "(cached) " >&6 2416else 2417 eval "$3=no" 2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2419/* end confdefs.h. */ 2420$4 2421int 2422main () 2423{ 2424if (sizeof ($2)) 2425 return 0; 2426 ; 2427 return 0; 2428} 2429_ACEOF 2430if ac_fn_cxx_try_compile "$LINENO"; then : 2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2432/* end confdefs.h. */ 2433$4 2434int 2435main () 2436{ 2437if (sizeof (($2))) 2438 return 0; 2439 ; 2440 return 0; 2441} 2442_ACEOF 2443if ac_fn_cxx_try_compile "$LINENO"; then : 2444 2445else 2446 eval "$3=yes" 2447fi 2448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2449fi 2450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2451fi 2452eval ac_res=\$$3 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2454$as_echo "$ac_res" >&6; } 2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2456 2457} # ac_fn_cxx_check_type 2458 2459# ac_fn_c_find_intX_t LINENO BITS VAR 2460# ----------------------------------- 2461# Finds a signed integer type with width BITS, setting cache variable VAR 2462# accordingly. 2463ac_fn_c_find_intX_t () 2464{ 2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2467$as_echo_n "checking for int$2_t... " >&6; } 2468if eval \${$3+:} false; then : 2469 $as_echo_n "(cached) " >&6 2470else 2471 eval "$3=no" 2472 # Order is important - never check a type that is potentially smaller 2473 # than half of the expected target width. 2474 for ac_type in int$2_t 'int' 'long int' \ 2475 'long long int' 'short int' 'signed char'; do 2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2477/* end confdefs.h. */ 2478$ac_includes_default 2479 enum { N = $2 / 2 - 1 }; 2480int 2481main () 2482{ 2483static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2484test_array [0] = 0; 2485return test_array [0]; 2486 2487 ; 2488 return 0; 2489} 2490_ACEOF 2491if ac_fn_cxx_try_compile "$LINENO"; then : 2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2493/* end confdefs.h. */ 2494$ac_includes_default 2495 enum { N = $2 / 2 - 1 }; 2496int 2497main () 2498{ 2499static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2500 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2501test_array [0] = 0; 2502return test_array [0]; 2503 2504 ; 2505 return 0; 2506} 2507_ACEOF 2508if ac_fn_cxx_try_compile "$LINENO"; then : 2509 2510else 2511 case $ac_type in #( 2512 int$2_t) : 2513 eval "$3=yes" ;; #( 2514 *) : 2515 eval "$3=\$ac_type" ;; 2516esac 2517fi 2518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2519fi 2520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2521 if eval test \"x\$"$3"\" = x"no"; then : 2522 2523else 2524 break 2525fi 2526 done 2527fi 2528eval ac_res=\$$3 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2530$as_echo "$ac_res" >&6; } 2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2532 2533} # ac_fn_c_find_intX_t 2534 2535# ac_fn_cxx_try_link LINENO 2536# ------------------------- 2537# Try to link conftest.$ac_ext, and return whether this succeeded. 2538ac_fn_cxx_try_link () 2539{ 2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2541 rm -f conftest.$ac_objext conftest$ac_exeext 2542 if { { ac_try="$ac_link" 2543case "(($ac_try" in 2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2545 *) ac_try_echo=$ac_try;; 2546esac 2547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2548$as_echo "$ac_try_echo"; } >&5 2549 (eval "$ac_link") 2>conftest.err 2550 ac_status=$? 2551 if test -s conftest.err; then 2552 grep -v '^ *+' conftest.err >conftest.er1 2553 cat conftest.er1 >&5 2554 mv -f conftest.er1 conftest.err 2555 fi 2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2557 test $ac_status = 0; } && { 2558 test -z "$ac_cxx_werror_flag" || 2559 test ! -s conftest.err 2560 } && test -s conftest$ac_exeext && { 2561 test "$cross_compiling" = yes || 2562 test -x conftest$ac_exeext 2563 }; then : 2564 ac_retval=0 2565else 2566 $as_echo "$as_me: failed program was:" >&5 2567sed 's/^/| /' conftest.$ac_ext >&5 2568 2569 ac_retval=1 2570fi 2571 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2572 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2573 # interfere with the next link command; also delete a directory that is 2574 # left behind by Apple's compiler. We do this before executing the actions. 2575 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2577 as_fn_set_status $ac_retval 2578 2579} # ac_fn_cxx_try_link 2580 2581# ac_fn_c_find_uintX_t LINENO BITS VAR 2582# ------------------------------------ 2583# Finds an unsigned integer type with width BITS, setting cache variable VAR 2584# accordingly. 2585ac_fn_c_find_uintX_t () 2586{ 2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2589$as_echo_n "checking for uint$2_t... " >&6; } 2590if eval \${$3+:} false; then : 2591 $as_echo_n "(cached) " >&6 2592else 2593 eval "$3=no" 2594 # Order is important - never check a type that is potentially smaller 2595 # than half of the expected target width. 2596 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2597 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2599/* end confdefs.h. */ 2600$ac_includes_default 2601int 2602main () 2603{ 2604static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2605test_array [0] = 0; 2606return test_array [0]; 2607 2608 ; 2609 return 0; 2610} 2611_ACEOF 2612if ac_fn_cxx_try_compile "$LINENO"; then : 2613 case $ac_type in #( 2614 uint$2_t) : 2615 eval "$3=yes" ;; #( 2616 *) : 2617 eval "$3=\$ac_type" ;; 2618esac 2619fi 2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2621 if eval test \"x\$"$3"\" = x"no"; then : 2622 2623else 2624 break 2625fi 2626 done 2627fi 2628eval ac_res=\$$3 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2630$as_echo "$ac_res" >&6; } 2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2632 2633} # ac_fn_c_find_uintX_t 2634 2635# ac_fn_cxx_check_header_preproc LINENO HEADER VAR 2636# ------------------------------------------------ 2637# Tests whether HEADER is present, setting the cache variable VAR accordingly. 2638ac_fn_cxx_check_header_preproc () 2639{ 2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2642$as_echo_n "checking for $2... " >&6; } 2643if eval \${$3+:} false; then : 2644 $as_echo_n "(cached) " >&6 2645else 2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2647/* end confdefs.h. */ 2648#include <$2> 2649_ACEOF 2650if ac_fn_cxx_try_cpp "$LINENO"; then : 2651 eval "$3=yes" 2652else 2653 eval "$3=no" 2654fi 2655rm -f conftest.err conftest.i conftest.$ac_ext 2656fi 2657eval ac_res=\$$3 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2659$as_echo "$ac_res" >&6; } 2660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2661 2662} # ac_fn_cxx_check_header_preproc 2663 2664# ac_fn_cxx_check_func LINENO FUNC VAR 2665# ------------------------------------ 2666# Tests whether FUNC exists, setting the cache variable VAR accordingly 2667ac_fn_cxx_check_func () 2668{ 2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2671$as_echo_n "checking for $2... " >&6; } 2672if eval \${$3+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2676/* end confdefs.h. */ 2677/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2678 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2679#define $2 innocuous_$2 2680 2681/* System header to define __stub macros and hopefully few prototypes, 2682 which can conflict with char $2 (); below. 2683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2684 <limits.h> exists even on freestanding compilers. */ 2685 2686#ifdef __STDC__ 2687# include <limits.h> 2688#else 2689# include <assert.h> 2690#endif 2691 2692#undef $2 2693 2694/* Override any GCC internal prototype to avoid an error. 2695 Use char because int might match the return type of a GCC 2696 builtin and then its argument prototype would still apply. */ 2697#ifdef __cplusplus 2698extern "C" 2699#endif 2700char $2 (); 2701/* The GNU C library defines this for functions which it implements 2702 to always fail with ENOSYS. Some functions are actually named 2703 something starting with __ and the normal name is an alias. */ 2704#if defined __stub_$2 || defined __stub___$2 2705choke me 2706#endif 2707 2708int 2709main () 2710{ 2711return $2 (); 2712 ; 2713 return 0; 2714} 2715_ACEOF 2716if ac_fn_cxx_try_link "$LINENO"; then : 2717 eval "$3=yes" 2718else 2719 eval "$3=no" 2720fi 2721rm -f core conftest.err conftest.$ac_objext \ 2722 conftest$ac_exeext conftest.$ac_ext 2723fi 2724eval ac_res=\$$3 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2726$as_echo "$ac_res" >&6; } 2727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2728 2729} # ac_fn_cxx_check_func 2730 2731# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 2732# ----------------------------------------------- 2733# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2734# accordingly. 2735ac_fn_cxx_check_decl () 2736{ 2737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2738 as_decl_name=`echo $2|sed 's/ *(.*//'` 2739 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2741$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2742if eval \${$3+:} false; then : 2743 $as_echo_n "(cached) " >&6 2744else 2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2746/* end confdefs.h. */ 2747$4 2748int 2749main () 2750{ 2751#ifndef $as_decl_name 2752#ifdef __cplusplus 2753 (void) $as_decl_use; 2754#else 2755 (void) $as_decl_name; 2756#endif 2757#endif 2758 2759 ; 2760 return 0; 2761} 2762_ACEOF 2763if ac_fn_cxx_try_compile "$LINENO"; then : 2764 eval "$3=yes" 2765else 2766 eval "$3=no" 2767fi 2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2769fi 2770eval ac_res=\$$3 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2772$as_echo "$ac_res" >&6; } 2773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2774 2775} # ac_fn_cxx_check_decl 2776 2777# ac_fn_c_try_link LINENO 2778# ----------------------- 2779# Try to link conftest.$ac_ext, and return whether this succeeded. 2780ac_fn_c_try_link () 2781{ 2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2783 rm -f conftest.$ac_objext conftest$ac_exeext 2784 if { { ac_try="$ac_link" 2785case "(($ac_try" in 2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2787 *) ac_try_echo=$ac_try;; 2788esac 2789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2790$as_echo "$ac_try_echo"; } >&5 2791 (eval "$ac_link") 2>conftest.err 2792 ac_status=$? 2793 if test -s conftest.err; then 2794 grep -v '^ *+' conftest.err >conftest.er1 2795 cat conftest.er1 >&5 2796 mv -f conftest.er1 conftest.err 2797 fi 2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2799 test $ac_status = 0; } && { 2800 test -z "$ac_c_werror_flag" || 2801 test ! -s conftest.err 2802 } && test -s conftest$ac_exeext && { 2803 test "$cross_compiling" = yes || 2804 test -x conftest$ac_exeext 2805 }; then : 2806 ac_retval=0 2807else 2808 $as_echo "$as_me: failed program was:" >&5 2809sed 's/^/| /' conftest.$ac_ext >&5 2810 2811 ac_retval=1 2812fi 2813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2815 # interfere with the next link command; also delete a directory that is 2816 # left behind by Apple's compiler. We do this before executing the actions. 2817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2819 as_fn_set_status $ac_retval 2820 2821} # ac_fn_c_try_link 2822 2823# ac_fn_c_check_header_preproc LINENO HEADER VAR 2824# ---------------------------------------------- 2825# Tests whether HEADER is present, setting the cache variable VAR accordingly. 2826ac_fn_c_check_header_preproc () 2827{ 2828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2830$as_echo_n "checking for $2... " >&6; } 2831if eval \${$3+:} false; then : 2832 $as_echo_n "(cached) " >&6 2833else 2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2835/* end confdefs.h. */ 2836#include <$2> 2837_ACEOF 2838if ac_fn_c_try_cpp "$LINENO"; then : 2839 eval "$3=yes" 2840else 2841 eval "$3=no" 2842fi 2843rm -f conftest.err conftest.i conftest.$ac_ext 2844fi 2845eval ac_res=\$$3 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2847$as_echo "$ac_res" >&6; } 2848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2849 2850} # ac_fn_c_check_header_preproc 2851 2852# ac_fn_c_check_func LINENO FUNC VAR 2853# ---------------------------------- 2854# Tests whether FUNC exists, setting the cache variable VAR accordingly 2855ac_fn_c_check_func () 2856{ 2857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2859$as_echo_n "checking for $2... " >&6; } 2860if eval \${$3+:} false; then : 2861 $as_echo_n "(cached) " >&6 2862else 2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2864/* end confdefs.h. */ 2865/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2866 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2867#define $2 innocuous_$2 2868 2869/* System header to define __stub macros and hopefully few prototypes, 2870 which can conflict with char $2 (); below. 2871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2872 <limits.h> exists even on freestanding compilers. */ 2873 2874#ifdef __STDC__ 2875# include <limits.h> 2876#else 2877# include <assert.h> 2878#endif 2879 2880#undef $2 2881 2882/* Override any GCC internal prototype to avoid an error. 2883 Use char because int might match the return type of a GCC 2884 builtin and then its argument prototype would still apply. */ 2885#ifdef __cplusplus 2886extern "C" 2887#endif 2888char $2 (); 2889/* The GNU C library defines this for functions which it implements 2890 to always fail with ENOSYS. Some functions are actually named 2891 something starting with __ and the normal name is an alias. */ 2892#if defined __stub_$2 || defined __stub___$2 2893choke me 2894#endif 2895 2896int 2897main () 2898{ 2899return $2 (); 2900 ; 2901 return 0; 2902} 2903_ACEOF 2904if ac_fn_c_try_link "$LINENO"; then : 2905 eval "$3=yes" 2906else 2907 eval "$3=no" 2908fi 2909rm -f core conftest.err conftest.$ac_objext \ 2910 conftest$ac_exeext conftest.$ac_ext 2911fi 2912eval ac_res=\$$3 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2914$as_echo "$ac_res" >&6; } 2915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2916 2917} # ac_fn_c_check_func 2918cat >config.log <<_ACEOF 2919This file contains any messages produced by compilers while 2920running configure, to aid debugging if configure makes a mistake. 2921 2922It was created by $as_me, which was 2923generated by GNU Autoconf 2.69. Invocation command line was 2924 2925 $ $0 $@ 2926 2927_ACEOF 2928exec 5>>config.log 2929{ 2930cat <<_ASUNAME 2931## --------- ## 2932## Platform. ## 2933## --------- ## 2934 2935hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2936uname -m = `(uname -m) 2>/dev/null || echo unknown` 2937uname -r = `(uname -r) 2>/dev/null || echo unknown` 2938uname -s = `(uname -s) 2>/dev/null || echo unknown` 2939uname -v = `(uname -v) 2>/dev/null || echo unknown` 2940 2941/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2942/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2943 2944/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2945/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2946/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2947/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2948/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2949/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2950/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2951 2952_ASUNAME 2953 2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2955for as_dir in $PATH 2956do 2957 IFS=$as_save_IFS 2958 test -z "$as_dir" && as_dir=. 2959 $as_echo "PATH: $as_dir" 2960 done 2961IFS=$as_save_IFS 2962 2963} >&5 2964 2965cat >&5 <<_ACEOF 2966 2967 2968## ----------- ## 2969## Core tests. ## 2970## ----------- ## 2971 2972_ACEOF 2973 2974 2975# Keep a trace of the command line. 2976# Strip out --no-create and --no-recursion so they do not pile up. 2977# Strip out --silent because we don't want to record it for future runs. 2978# Also quote any args containing shell meta-characters. 2979# Make two passes to allow for proper duplicate-argument suppression. 2980ac_configure_args= 2981ac_configure_args0= 2982ac_configure_args1= 2983ac_must_keep_next=false 2984for ac_pass in 1 2 2985do 2986 for ac_arg 2987 do 2988 case $ac_arg in 2989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2991 | -silent | --silent | --silen | --sile | --sil) 2992 continue ;; 2993 *\'*) 2994 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2995 esac 2996 case $ac_pass in 2997 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2998 2) 2999 as_fn_append ac_configure_args1 " '$ac_arg'" 3000 if test $ac_must_keep_next = true; then 3001 ac_must_keep_next=false # Got value, back to normal. 3002 else 3003 case $ac_arg in 3004 *=* | --config-cache | -C | -disable-* | --disable-* \ 3005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3007 | -with-* | --with-* | -without-* | --without-* | --x) 3008 case "$ac_configure_args0 " in 3009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3010 esac 3011 ;; 3012 -* ) ac_must_keep_next=true ;; 3013 esac 3014 fi 3015 as_fn_append ac_configure_args " '$ac_arg'" 3016 ;; 3017 esac 3018 done 3019done 3020{ ac_configure_args0=; unset ac_configure_args0;} 3021{ ac_configure_args1=; unset ac_configure_args1;} 3022 3023# When interrupted or exit'd, cleanup temporary files, and complete 3024# config.log. We remove comments because anyway the quotes in there 3025# would cause problems or look ugly. 3026# WARNING: Use '\'' to represent an apostrophe within the trap. 3027# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3028trap 'exit_status=$? 3029 # Save into config.log some information that might help in debugging. 3030 { 3031 echo 3032 3033 $as_echo "## ---------------- ## 3034## Cache variables. ## 3035## ---------------- ##" 3036 echo 3037 # The following way of writing the cache mishandles newlines in values, 3038( 3039 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3040 eval ac_val=\$$ac_var 3041 case $ac_val in #( 3042 *${as_nl}*) 3043 case $ac_var in #( 3044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3046 esac 3047 case $ac_var in #( 3048 _ | IFS | as_nl) ;; #( 3049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3050 *) { eval $ac_var=; unset $ac_var;} ;; 3051 esac ;; 3052 esac 3053 done 3054 (set) 2>&1 | 3055 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3056 *${as_nl}ac_space=\ *) 3057 sed -n \ 3058 "s/'\''/'\''\\\\'\'''\''/g; 3059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3060 ;; #( 3061 *) 3062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3063 ;; 3064 esac | 3065 sort 3066) 3067 echo 3068 3069 $as_echo "## ----------------- ## 3070## Output variables. ## 3071## ----------------- ##" 3072 echo 3073 for ac_var in $ac_subst_vars 3074 do 3075 eval ac_val=\$$ac_var 3076 case $ac_val in 3077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3078 esac 3079 $as_echo "$ac_var='\''$ac_val'\''" 3080 done | sort 3081 echo 3082 3083 if test -n "$ac_subst_files"; then 3084 $as_echo "## ------------------- ## 3085## File substitutions. ## 3086## ------------------- ##" 3087 echo 3088 for ac_var in $ac_subst_files 3089 do 3090 eval ac_val=\$$ac_var 3091 case $ac_val in 3092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3093 esac 3094 $as_echo "$ac_var='\''$ac_val'\''" 3095 done | sort 3096 echo 3097 fi 3098 3099 if test -s confdefs.h; then 3100 $as_echo "## ----------- ## 3101## confdefs.h. ## 3102## ----------- ##" 3103 echo 3104 cat confdefs.h 3105 echo 3106 fi 3107 test "$ac_signal" != 0 && 3108 $as_echo "$as_me: caught signal $ac_signal" 3109 $as_echo "$as_me: exit $exit_status" 3110 } >&5 3111 rm -f core *.core core.conftest.* && 3112 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3113 exit $exit_status 3114' 0 3115for ac_signal in 1 2 13 15; do 3116 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3117done 3118ac_signal=0 3119 3120# confdefs.h avoids OS command line length limits that DEFS can exceed. 3121rm -f -r conftest* confdefs.h 3122 3123$as_echo "/* confdefs.h */" > confdefs.h 3124 3125# Predefined preprocessor variables. 3126 3127cat >>confdefs.h <<_ACEOF 3128#define PACKAGE_NAME "$PACKAGE_NAME" 3129_ACEOF 3130 3131cat >>confdefs.h <<_ACEOF 3132#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3133_ACEOF 3134 3135cat >>confdefs.h <<_ACEOF 3136#define PACKAGE_VERSION "$PACKAGE_VERSION" 3137_ACEOF 3138 3139cat >>confdefs.h <<_ACEOF 3140#define PACKAGE_STRING "$PACKAGE_STRING" 3141_ACEOF 3142 3143cat >>confdefs.h <<_ACEOF 3144#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3145_ACEOF 3146 3147cat >>confdefs.h <<_ACEOF 3148#define PACKAGE_URL "$PACKAGE_URL" 3149_ACEOF 3150 3151 3152# Let the site file select an alternate cache file if it wants to. 3153# Prefer an explicitly selected file to automatically selected ones. 3154ac_site_file1=NONE 3155ac_site_file2=NONE 3156if test -n "$CONFIG_SITE"; then 3157 # We do not want a PATH search for config.site. 3158 case $CONFIG_SITE in #(( 3159 -*) ac_site_file1=./$CONFIG_SITE;; 3160 */*) ac_site_file1=$CONFIG_SITE;; 3161 *) ac_site_file1=./$CONFIG_SITE;; 3162 esac 3163elif test "x$prefix" != xNONE; then 3164 ac_site_file1=$prefix/share/config.site 3165 ac_site_file2=$prefix/etc/config.site 3166else 3167 ac_site_file1=$ac_default_prefix/share/config.site 3168 ac_site_file2=$ac_default_prefix/etc/config.site 3169fi 3170for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3171do 3172 test "x$ac_site_file" = xNONE && continue 3173 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3175$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3176 sed 's/^/| /' "$ac_site_file" >&5 3177 . "$ac_site_file" \ 3178 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3180as_fn_error $? "failed to load site script $ac_site_file 3181See \`config.log' for more details" "$LINENO" 5; } 3182 fi 3183done 3184 3185if test -r "$cache_file"; then 3186 # Some versions of bash will fail to source /dev/null (special files 3187 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3188 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3190$as_echo "$as_me: loading cache $cache_file" >&6;} 3191 case $cache_file in 3192 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3193 *) . "./$cache_file";; 3194 esac 3195 fi 3196else 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3198$as_echo "$as_me: creating cache $cache_file" >&6;} 3199 >$cache_file 3200fi 3201 3202# Check that the precious variables saved in the cache have kept the same 3203# value. 3204ac_cache_corrupted=false 3205for ac_var in $ac_precious_vars; do 3206 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3207 eval ac_new_set=\$ac_env_${ac_var}_set 3208 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3209 eval ac_new_val=\$ac_env_${ac_var}_value 3210 case $ac_old_set,$ac_new_set in 3211 set,) 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3213$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3214 ac_cache_corrupted=: ;; 3215 ,set) 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3217$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3218 ac_cache_corrupted=: ;; 3219 ,);; 3220 *) 3221 if test "x$ac_old_val" != "x$ac_new_val"; then 3222 # differences in whitespace do not lead to failure. 3223 ac_old_val_w=`echo x $ac_old_val` 3224 ac_new_val_w=`echo x $ac_new_val` 3225 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3227$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3228 ac_cache_corrupted=: 3229 else 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3231$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3232 eval $ac_var=\$ac_old_val 3233 fi 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3235$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3237$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3238 fi;; 3239 esac 3240 # Pass precious variables to config.status. 3241 if test "$ac_new_set" = set; then 3242 case $ac_new_val in 3243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3244 *) ac_arg=$ac_var=$ac_new_val ;; 3245 esac 3246 case " $ac_configure_args " in 3247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3248 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3249 esac 3250 fi 3251done 3252if $ac_cache_corrupted; then 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3256$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3257 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3258fi 3259## -------------------- ## 3260## Main body of script. ## 3261## -------------------- ## 3262 3263ac_ext=c 3264ac_cpp='$CPP $CPPFLAGS' 3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3267ac_compiler_gnu=$ac_cv_c_compiler_gnu 3268 3269 3270 3271 3272 3273 3274ac_config_headers="$ac_config_headers auto-host.h:config.in" 3275 3276 3277gcc_version=`cat $srcdir/BASE-VER` 3278 3279# Determine the host, build, and target systems 3280ac_aux_dir= 3281for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3282 if test -f "$ac_dir/install-sh"; then 3283 ac_aux_dir=$ac_dir 3284 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c" 3285 break 3286 elif test -f "$ac_dir/install.sh"; then 3287 ac_aux_dir=$ac_dir 3288 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c" 3289 break 3290 elif test -f "$ac_dir/shtool"; then 3291 ac_aux_dir=$ac_dir 3292 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c" 3293 break 3294 fi 3295done 3296if test -z "$ac_aux_dir"; then 3297 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3298fi 3299 3300# These three variables are undocumented and unsupported, 3301# and are intended to be withdrawn in a future Autoconf release. 3302# They can cause serious problems if a builder's source tree is in a directory 3303# whose full name contains unusual characters. 3304ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3305ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3306ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3307 3308 3309# Make sure we can run config.sub. 3310$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3311 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3312 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3314$as_echo_n "checking build system type... " >&6; } 3315if ${ac_cv_build+:} false; then : 3316 $as_echo_n "(cached) " >&6 3317else 3318 ac_build_alias=$build_alias 3319test "x$ac_build_alias" = x && 3320 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3321test "x$ac_build_alias" = x && 3322 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3323ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3324 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3325 3326fi 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3328$as_echo "$ac_cv_build" >&6; } 3329case $ac_cv_build in 3330*-*-*) ;; 3331*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3332esac 3333build=$ac_cv_build 3334ac_save_IFS=$IFS; IFS='-' 3335set x $ac_cv_build 3336shift 3337build_cpu=$1 3338build_vendor=$2 3339shift; shift 3340# Remember, the first character of IFS is used to create $*, 3341# except with old shells: 3342build_os=$* 3343IFS=$ac_save_IFS 3344case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3345 3346 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3348$as_echo_n "checking host system type... " >&6; } 3349if ${ac_cv_host+:} false; then : 3350 $as_echo_n "(cached) " >&6 3351else 3352 if test "x$host_alias" = x; then 3353 ac_cv_host=$ac_cv_build 3354else 3355 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3356 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3357fi 3358 3359fi 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3361$as_echo "$ac_cv_host" >&6; } 3362case $ac_cv_host in 3363*-*-*) ;; 3364*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3365esac 3366host=$ac_cv_host 3367ac_save_IFS=$IFS; IFS='-' 3368set x $ac_cv_host 3369shift 3370host_cpu=$1 3371host_vendor=$2 3372shift; shift 3373# Remember, the first character of IFS is used to create $*, 3374# except with old shells: 3375host_os=$* 3376IFS=$ac_save_IFS 3377case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3378 3379 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3381$as_echo_n "checking target system type... " >&6; } 3382if ${ac_cv_target+:} false; then : 3383 $as_echo_n "(cached) " >&6 3384else 3385 if test "x$target_alias" = x; then 3386 ac_cv_target=$ac_cv_host 3387else 3388 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3390fi 3391 3392fi 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3394$as_echo "$ac_cv_target" >&6; } 3395case $ac_cv_target in 3396*-*-*) ;; 3397*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3398esac 3399target=$ac_cv_target 3400ac_save_IFS=$IFS; IFS='-' 3401set x $ac_cv_target 3402shift 3403target_cpu=$1 3404target_vendor=$2 3405shift; shift 3406# Remember, the first character of IFS is used to create $*, 3407# except with old shells: 3408target_os=$* 3409IFS=$ac_save_IFS 3410case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3411 3412 3413# The aliases save the names the user supplied, while $host etc. 3414# will get canonicalized. 3415test -n "$target_alias" && 3416 test "$program_prefix$program_suffix$program_transform_name" = \ 3417 NONENONEs,x,x, && 3418 program_prefix=${target_alias}- 3419 3420# Determine the noncanonical host name, for Ada. 3421 case ${build_alias} in 3422 "") build_noncanonical=${build} ;; 3423 *) build_noncanonical=${build_alias} ;; 3424esac 3425 3426 case ${host_alias} in 3427 "") host_noncanonical=${build_noncanonical} ;; 3428 *) host_noncanonical=${host_alias} ;; 3429esac 3430 3431 3432 3433 3434# Determine the noncanonical target name, for directory use. 3435 case ${target_alias} in 3436 "") target_noncanonical=${host_noncanonical} ;; 3437 *) target_noncanonical=${target_alias} ;; 3438esac 3439 3440 3441 3442 3443# Used for constructing correct paths for offload compilers. 3444real_target_noncanonical=${target_noncanonical} 3445accel_dir_suffix= 3446 3447# Determine the target- and build-specific subdirectories 3448 3449# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 3450# have matching libraries, they should use host libraries: Makefile.tpl 3451# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 3452# However, they still use the build modules, because the corresponding 3453# host modules (e.g. bison) are only built for the host when bootstrap 3454# finishes. So: 3455# - build_subdir is where we find build modules, and never changes. 3456# - build_libsubdir is where we find build libraries, and can be overridden. 3457 3458# Prefix 'build-' so this never conflicts with target_subdir. 3459build_subdir="build-${build_noncanonical}" 3460 3461# Check whether --with-build-libsubdir was given. 3462if test "${with_build_libsubdir+set}" = set; then : 3463 withval=$with_build_libsubdir; build_libsubdir="$withval" 3464else 3465 build_libsubdir="$build_subdir" 3466fi 3467 3468# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 3469if ( test $srcdir = . && test -d gcc ) \ 3470 || test -d $srcdir/../host-${host_noncanonical}; then 3471 host_subdir="host-${host_noncanonical}" 3472else 3473 host_subdir=. 3474fi 3475# No prefix. 3476target_subdir=${target_noncanonical} 3477 3478 3479# Set program_transform_name 3480test "$program_prefix" != NONE && 3481 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3482# Use a double $ so make ignores it. 3483test "$program_suffix" != NONE && 3484 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3485# Double any \ or $. 3486# By default was `s,x,x', remove it if useless. 3487ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3488program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3489 3490 3491# Check for bogus environment variables. 3492# Test if LIBRARY_PATH contains the notation for the current directory 3493# since this would lead to problems installing/building glibc. 3494# LIBRARY_PATH contains the current directory if one of the following 3495# is true: 3496# - one of the terminals (":" and ";") is the first or last sign 3497# - two terminals occur directly after each other 3498# - the path contains an element with a dot in it 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5 3500$as_echo_n "checking LIBRARY_PATH variable... " >&6; } 3501case ${LIBRARY_PATH} in 3502 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 3503 library_path_setting="contains current directory" 3504 ;; 3505 *) 3506 library_path_setting="ok" 3507 ;; 3508esac 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5 3510$as_echo "$library_path_setting" >&6; } 3511if test "$library_path_setting" != "ok"; then 3512as_fn_error $? " 3513*** LIBRARY_PATH shouldn't contain the current directory when 3514*** building gcc. Please change the environment variable 3515*** and run configure again." "$LINENO" 5 3516fi 3517 3518# Test if GCC_EXEC_PREFIX contains the notation for the current directory 3519# since this would lead to problems installing/building glibc. 3520# GCC_EXEC_PREFIX contains the current directory if one of the following 3521# is true: 3522# - one of the terminals (":" and ";") is the first or last sign 3523# - two terminals occur directly after each other 3524# - the path contains an element with a dot in it 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5 3526$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; } 3527case ${GCC_EXEC_PREFIX} in 3528 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) 3529 gcc_exec_prefix_setting="contains current directory" 3530 ;; 3531 *) 3532 gcc_exec_prefix_setting="ok" 3533 ;; 3534esac 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5 3536$as_echo "$gcc_exec_prefix_setting" >&6; } 3537if test "$gcc_exec_prefix_setting" != "ok"; then 3538as_fn_error $? " 3539*** GCC_EXEC_PREFIX shouldn't contain the current directory when 3540*** building gcc. Please change the environment variable 3541*** and run configure again." "$LINENO" 5 3542fi 3543 3544# ----------- 3545# Directories 3546# ----------- 3547 3548# Specify the local prefix 3549local_prefix= 3550 3551# Check whether --with-local-prefix was given. 3552if test "${with_local_prefix+set}" = set; then : 3553 withval=$with_local_prefix; case "${withval}" in 3554yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;; 3555no) ;; 3556*) local_prefix=$with_local_prefix ;; 3557esac 3558fi 3559 3560 3561# Default local prefix if it is empty 3562if test x$local_prefix = x; then 3563 local_prefix=/usr/local 3564fi 3565 3566 3567# Check whether --with-native-system-header-dir was given. 3568if test "${with_native_system_header_dir+set}" = set; then : 3569 withval=$with_native_system_header_dir; 3570 case ${with_native_system_header_dir} in 3571 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;; 3572 /* | [A-Za-z]:[\\/]*) ;; 3573 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;; 3574 esac 3575 configured_native_system_header_dir="${withval}" 3576 3577else 3578 configured_native_system_header_dir= 3579fi 3580 3581 3582 3583# Check whether --with-build-sysroot was given. 3584if test "${with_build_sysroot+set}" = set; then : 3585 withval=$with_build_sysroot; if test x"$withval" != x ; then 3586 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" 3587 fi 3588else 3589 SYSROOT_CFLAGS_FOR_TARGET= 3590fi 3591 3592 3593 3594if test "x$prefix" = xNONE; then 3595 test_prefix=/usr/local 3596else 3597 test_prefix=$prefix 3598fi 3599if test "x$exec_prefix" = xNONE; then 3600 test_exec_prefix=$test_prefix 3601else 3602 test_exec_prefix=$exec_prefix 3603fi 3604 3605 3606# Check whether --with-sysroot was given. 3607if test "${with_sysroot+set}" = set; then : 3608 withval=$with_sysroot; 3609 case ${with_sysroot} in 3610 /) ;; 3611 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;; 3612 esac 3613 case ${with_sysroot} in 3614 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;; 3615 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 3616 esac 3617 3618 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' 3619 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' 3620 3621 case ${TARGET_SYSTEM_ROOT} in 3622 "${test_prefix}"|"${test_prefix}/"*|\ 3623 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ 3624 '${prefix}'|'${prefix}/'*|\ 3625 '${exec_prefix}'|'${exec_prefix}/'*) 3626 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" 3627 TARGET_SYSTEM_ROOT_DEFINE="$t" 3628 ;; 3629 esac 3630 3631else 3632 3633 TARGET_SYSTEM_ROOT= 3634 TARGET_SYSTEM_ROOT_DEFINE= 3635 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include' 3636 3637fi 3638 3639 3640 3641 3642 3643# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only 3644# passed in by the toplevel make and thus we'd get different behavior 3645# depending on where we built the sources. 3646gcc_gxx_include_dir= 3647# Specify the g++ header file directory 3648 3649# Check whether --with-gxx-include-dir was given. 3650if test "${with_gxx_include_dir+set}" = set; then : 3651 withval=$with_gxx_include_dir; case "${withval}" in 3652yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;; 3653no) ;; 3654*) gcc_gxx_include_dir=$with_gxx_include_dir ;; 3655esac 3656fi 3657 3658 3659# If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate 3660# the former in the latter and, upon success, compute gcc_gxx_include_dir as 3661# relative to the sysroot. 3662gcc_gxx_include_dir_add_sysroot=0 3663 3664# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO. 3665if test x${gcc_gxx_include_dir} = x; then 3666 if test x${enable_version_specific_runtime_libs} = xyes; then 3667 gcc_gxx_include_dir='${libsubdir}/include/c++' 3668 else 3669 libstdcxx_incdir='include/c++/$(version)' 3670 if test x$host != x$target; then 3671 libstdcxx_incdir="$target_alias/$libstdcxx_incdir" 3672 fi 3673 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir" 3674 fi 3675elif test "${with_sysroot+set}" = set; then 3676 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'` 3677 if test "${gcc_gxx_without_sysroot}"; then 3678 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}" 3679 gcc_gxx_include_dir_add_sysroot=1 3680 fi 3681fi 3682 3683 3684# Check whether --with-cpp_install_dir was given. 3685if test "${with_cpp_install_dir+set}" = set; then : 3686 withval=$with_cpp_install_dir; if test x$withval = xyes; then 3687 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5 3688elif test x$withval != xno; then 3689 cpp_install_dir=$withval 3690fi 3691fi 3692 3693 3694# We would like to our source tree to be readonly. However when releases or 3695# pre-releases are generated, the flex/bison generated files as well as the 3696# various formats of manuals need to be included along with the rest of the 3697# sources. Therefore we have --enable-generated-files-in-srcdir to do 3698# just that. 3699 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5 3701$as_echo_n "checking whether to place generated files in the source directory... " >&6; } 3702 # Check whether --enable-generated-files-in-srcdir was given. 3703if test "${enable_generated_files_in_srcdir+set}" = set; then : 3704 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval 3705else 3706 generated_files_in_srcdir=no 3707fi 3708 3709 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5 3711$as_echo "$generated_files_in_srcdir" >&6; } 3712 3713if test "$generated_files_in_srcdir" = "yes"; then 3714 GENINSRC='' 3715else 3716 GENINSRC='#' 3717fi 3718 3719 3720# ------------------- 3721# Find default linker 3722# ------------------- 3723 3724# With GNU ld 3725 3726# Check whether --with-gnu-ld was given. 3727if test "${with_gnu_ld+set}" = set; then : 3728 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld" 3729else 3730 gnu_ld_flag=no 3731fi 3732 3733 3734case $target in 3735 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker. 3736 *) ld64_flag=no;; 3737esac 3738 3739# With pre-defined ld 3740 3741# Check whether --with-ld was given. 3742if test "${with_ld+set}" = set; then : 3743 withval=$with_ld; DEFAULT_LINKER="$with_ld" 3744fi 3745 3746if test x"${DEFAULT_LINKER+set}" = x"set"; then 3747 if test ! -x "$DEFAULT_LINKER"; then 3748 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5 3749 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 3750 gnu_ld_flag=yes 3751 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then 3752 ld64_flag=yes 3753 fi 3754 3755cat >>confdefs.h <<_ACEOF 3756#define DEFAULT_LINKER "$DEFAULT_LINKER" 3757_ACEOF 3758 3759fi 3760 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5 3762$as_echo_n "checking whether a default linker was specified... " >&6; } 3763if test x"${DEFAULT_LINKER+set}" = x"set"; then 3764 if test x"$gnu_ld_flag" = x"no"; then 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5 3766$as_echo "yes ($DEFAULT_LINKER)" >&6; } 3767 else 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5 3769$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; } 3770 fi 3771else 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3773$as_echo "no" >&6; } 3774fi 3775 3776# With demangler in GNU ld 3777 3778# Check whether --with-demangler-in-ld was given. 3779if test "${with_demangler_in_ld+set}" = set; then : 3780 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld" 3781else 3782 demangler_in_ld=yes 3783fi 3784 3785 3786# ---------------------- 3787# Find default assembler 3788# ---------------------- 3789 3790# With GNU as 3791 3792# Check whether --with-gnu-as was given. 3793if test "${with_gnu_as+set}" = set; then : 3794 withval=$with_gnu_as; gas_flag="$with_gnu_as" 3795else 3796 gas_flag=no 3797fi 3798 3799 3800 3801# Check whether --with-as was given. 3802if test "${with_as+set}" = set; then : 3803 withval=$with_as; DEFAULT_ASSEMBLER="$with_as" 3804fi 3805 3806if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 3807 if test ! -x "$DEFAULT_ASSEMBLER"; then 3808 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5 3809 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then 3810 gas_flag=yes 3811 fi 3812 3813cat >>confdefs.h <<_ACEOF 3814#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" 3815_ACEOF 3816 3817fi 3818 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5 3820$as_echo_n "checking whether a default assembler was specified... " >&6; } 3821if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 3822 if test x"$gas_flag" = x"no"; then 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5 3824$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; } 3825 else 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5 3827$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; } 3828 fi 3829else 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3831$as_echo "no" >&6; } 3832fi 3833 3834# --------------- 3835# Find C compiler 3836# --------------- 3837 3838# If a non-executable a.out is present (e.g. created by GNU as above even if 3839# invoked with -v only), the IRIX 6 native ld just overwrites the existing 3840# file, even when creating an executable, so an execution test fails. 3841# Remove possible default executable files to avoid this. 3842# 3843# FIXME: This really belongs into AC_PROG_CC and can be removed once 3844# Autoconf includes it. 3845rm -f a.out a.exe b.out 3846 3847# Find the native compiler 3848ac_ext=c 3849ac_cpp='$CPP $CPPFLAGS' 3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3852ac_compiler_gnu=$ac_cv_c_compiler_gnu 3853if test -n "$ac_tool_prefix"; then 3854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3855set dummy ${ac_tool_prefix}gcc; ac_word=$2 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3857$as_echo_n "checking for $ac_word... " >&6; } 3858if ${ac_cv_prog_CC+:} false; then : 3859 $as_echo_n "(cached) " >&6 3860else 3861 if test -n "$CC"; then 3862 ac_cv_prog_CC="$CC" # Let the user override the test. 3863else 3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3865for as_dir in $PATH 3866do 3867 IFS=$as_save_IFS 3868 test -z "$as_dir" && as_dir=. 3869 for ac_exec_ext in '' $ac_executable_extensions; do 3870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3871 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3873 break 2 3874 fi 3875done 3876 done 3877IFS=$as_save_IFS 3878 3879fi 3880fi 3881CC=$ac_cv_prog_CC 3882if test -n "$CC"; then 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3884$as_echo "$CC" >&6; } 3885else 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3887$as_echo "no" >&6; } 3888fi 3889 3890 3891fi 3892if test -z "$ac_cv_prog_CC"; then 3893 ac_ct_CC=$CC 3894 # Extract the first word of "gcc", so it can be a program name with args. 3895set dummy gcc; ac_word=$2 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3897$as_echo_n "checking for $ac_word... " >&6; } 3898if ${ac_cv_prog_ac_ct_CC+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 if test -n "$ac_ct_CC"; then 3902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3903else 3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3905for as_dir in $PATH 3906do 3907 IFS=$as_save_IFS 3908 test -z "$as_dir" && as_dir=. 3909 for ac_exec_ext in '' $ac_executable_extensions; do 3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3911 ac_cv_prog_ac_ct_CC="gcc" 3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3913 break 2 3914 fi 3915done 3916 done 3917IFS=$as_save_IFS 3918 3919fi 3920fi 3921ac_ct_CC=$ac_cv_prog_ac_ct_CC 3922if test -n "$ac_ct_CC"; then 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3924$as_echo "$ac_ct_CC" >&6; } 3925else 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3927$as_echo "no" >&6; } 3928fi 3929 3930 if test "x$ac_ct_CC" = x; then 3931 CC="" 3932 else 3933 case $cross_compiling:$ac_tool_warned in 3934yes:) 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3937ac_tool_warned=yes ;; 3938esac 3939 CC=$ac_ct_CC 3940 fi 3941else 3942 CC="$ac_cv_prog_CC" 3943fi 3944 3945if test -z "$CC"; then 3946 if test -n "$ac_tool_prefix"; then 3947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3948set dummy ${ac_tool_prefix}cc; ac_word=$2 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3950$as_echo_n "checking for $ac_word... " >&6; } 3951if ${ac_cv_prog_CC+:} false; then : 3952 $as_echo_n "(cached) " >&6 3953else 3954 if test -n "$CC"; then 3955 ac_cv_prog_CC="$CC" # Let the user override the test. 3956else 3957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3958for as_dir in $PATH 3959do 3960 IFS=$as_save_IFS 3961 test -z "$as_dir" && as_dir=. 3962 for ac_exec_ext in '' $ac_executable_extensions; do 3963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3964 ac_cv_prog_CC="${ac_tool_prefix}cc" 3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3966 break 2 3967 fi 3968done 3969 done 3970IFS=$as_save_IFS 3971 3972fi 3973fi 3974CC=$ac_cv_prog_CC 3975if test -n "$CC"; then 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3977$as_echo "$CC" >&6; } 3978else 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3980$as_echo "no" >&6; } 3981fi 3982 3983 3984 fi 3985fi 3986if test -z "$CC"; then 3987 # Extract the first word of "cc", so it can be a program name with args. 3988set dummy cc; ac_word=$2 3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3990$as_echo_n "checking for $ac_word... " >&6; } 3991if ${ac_cv_prog_CC+:} false; then : 3992 $as_echo_n "(cached) " >&6 3993else 3994 if test -n "$CC"; then 3995 ac_cv_prog_CC="$CC" # Let the user override the test. 3996else 3997 ac_prog_rejected=no 3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3999for as_dir in $PATH 4000do 4001 IFS=$as_save_IFS 4002 test -z "$as_dir" && as_dir=. 4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4006 ac_prog_rejected=yes 4007 continue 4008 fi 4009 ac_cv_prog_CC="cc" 4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4011 break 2 4012 fi 4013done 4014 done 4015IFS=$as_save_IFS 4016 4017if test $ac_prog_rejected = yes; then 4018 # We found a bogon in the path, so make sure we never use it. 4019 set dummy $ac_cv_prog_CC 4020 shift 4021 if test $# != 0; then 4022 # We chose a different compiler from the bogus one. 4023 # However, it has the same basename, so the bogon will be chosen 4024 # first if we set CC to just the basename; use the full file name. 4025 shift 4026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4027 fi 4028fi 4029fi 4030fi 4031CC=$ac_cv_prog_CC 4032if test -n "$CC"; then 4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4034$as_echo "$CC" >&6; } 4035else 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4037$as_echo "no" >&6; } 4038fi 4039 4040 4041fi 4042if test -z "$CC"; then 4043 if test -n "$ac_tool_prefix"; then 4044 for ac_prog in cl.exe 4045 do 4046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4047set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4049$as_echo_n "checking for $ac_word... " >&6; } 4050if ${ac_cv_prog_CC+:} false; then : 4051 $as_echo_n "(cached) " >&6 4052else 4053 if test -n "$CC"; then 4054 ac_cv_prog_CC="$CC" # Let the user override the test. 4055else 4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4057for as_dir in $PATH 4058do 4059 IFS=$as_save_IFS 4060 test -z "$as_dir" && as_dir=. 4061 for ac_exec_ext in '' $ac_executable_extensions; do 4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4065 break 2 4066 fi 4067done 4068 done 4069IFS=$as_save_IFS 4070 4071fi 4072fi 4073CC=$ac_cv_prog_CC 4074if test -n "$CC"; then 4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4076$as_echo "$CC" >&6; } 4077else 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4079$as_echo "no" >&6; } 4080fi 4081 4082 4083 test -n "$CC" && break 4084 done 4085fi 4086if test -z "$CC"; then 4087 ac_ct_CC=$CC 4088 for ac_prog in cl.exe 4089do 4090 # Extract the first word of "$ac_prog", so it can be a program name with args. 4091set dummy $ac_prog; ac_word=$2 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4093$as_echo_n "checking for $ac_word... " >&6; } 4094if ${ac_cv_prog_ac_ct_CC+:} false; then : 4095 $as_echo_n "(cached) " >&6 4096else 4097 if test -n "$ac_ct_CC"; then 4098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4099else 4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4101for as_dir in $PATH 4102do 4103 IFS=$as_save_IFS 4104 test -z "$as_dir" && as_dir=. 4105 for ac_exec_ext in '' $ac_executable_extensions; do 4106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4107 ac_cv_prog_ac_ct_CC="$ac_prog" 4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4109 break 2 4110 fi 4111done 4112 done 4113IFS=$as_save_IFS 4114 4115fi 4116fi 4117ac_ct_CC=$ac_cv_prog_ac_ct_CC 4118if test -n "$ac_ct_CC"; then 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4120$as_echo "$ac_ct_CC" >&6; } 4121else 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4123$as_echo "no" >&6; } 4124fi 4125 4126 4127 test -n "$ac_ct_CC" && break 4128done 4129 4130 if test "x$ac_ct_CC" = x; then 4131 CC="" 4132 else 4133 case $cross_compiling:$ac_tool_warned in 4134yes:) 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4137ac_tool_warned=yes ;; 4138esac 4139 CC=$ac_ct_CC 4140 fi 4141fi 4142 4143fi 4144 4145 4146test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4148as_fn_error $? "no acceptable C compiler found in \$PATH 4149See \`config.log' for more details" "$LINENO" 5; } 4150 4151# Provide some information about the compiler. 4152$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4153set X $ac_compile 4154ac_compiler=$2 4155for ac_option in --version -v -V -qversion; do 4156 { { ac_try="$ac_compiler $ac_option >&5" 4157case "(($ac_try" in 4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4159 *) ac_try_echo=$ac_try;; 4160esac 4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4162$as_echo "$ac_try_echo"; } >&5 4163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4164 ac_status=$? 4165 if test -s conftest.err; then 4166 sed '10a\ 4167... rest of stderr output deleted ... 4168 10q' conftest.err >conftest.er1 4169 cat conftest.er1 >&5 4170 fi 4171 rm -f conftest.er1 conftest.err 4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4173 test $ac_status = 0; } 4174done 4175 4176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4177/* end confdefs.h. */ 4178 4179int 4180main () 4181{ 4182 4183 ; 4184 return 0; 4185} 4186_ACEOF 4187ac_clean_files_save=$ac_clean_files 4188ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4189# Try to create an executable without -o first, disregard a.out. 4190# It will help us diagnose broken compilers, and finding out an intuition 4191# of exeext. 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4193$as_echo_n "checking whether the C compiler works... " >&6; } 4194ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4195 4196# The possible output files: 4197ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4198 4199ac_rmfiles= 4200for ac_file in $ac_files 4201do 4202 case $ac_file in 4203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4204 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4205 esac 4206done 4207rm -f $ac_rmfiles 4208 4209if { { ac_try="$ac_link_default" 4210case "(($ac_try" in 4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4212 *) ac_try_echo=$ac_try;; 4213esac 4214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4215$as_echo "$ac_try_echo"; } >&5 4216 (eval "$ac_link_default") 2>&5 4217 ac_status=$? 4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4219 test $ac_status = 0; }; then : 4220 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4221# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4222# in a Makefile. We should not override ac_cv_exeext if it was cached, 4223# so that the user can short-circuit this test for compilers unknown to 4224# Autoconf. 4225for ac_file in $ac_files '' 4226do 4227 test -f "$ac_file" || continue 4228 case $ac_file in 4229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4230 ;; 4231 [ab].out ) 4232 # We found the default executable, but exeext='' is most 4233 # certainly right. 4234 break;; 4235 *.* ) 4236 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4237 then :; else 4238 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4239 fi 4240 # We set ac_cv_exeext here because the later test for it is not 4241 # safe: cross compilers may not add the suffix if given an `-o' 4242 # argument, so we may need to know it at that point already. 4243 # Even if this section looks crufty: it has the advantage of 4244 # actually working. 4245 break;; 4246 * ) 4247 break;; 4248 esac 4249done 4250test "$ac_cv_exeext" = no && ac_cv_exeext= 4251 4252else 4253 ac_file='' 4254fi 4255if test -z "$ac_file"; then : 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4257$as_echo "no" >&6; } 4258$as_echo "$as_me: failed program was:" >&5 4259sed 's/^/| /' conftest.$ac_ext >&5 4260 4261{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4263as_fn_error 77 "C compiler cannot create executables 4264See \`config.log' for more details" "$LINENO" 5; } 4265else 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4267$as_echo "yes" >&6; } 4268fi 4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4270$as_echo_n "checking for C compiler default output file name... " >&6; } 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4272$as_echo "$ac_file" >&6; } 4273ac_exeext=$ac_cv_exeext 4274 4275rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4276ac_clean_files=$ac_clean_files_save 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4278$as_echo_n "checking for suffix of executables... " >&6; } 4279if { { ac_try="$ac_link" 4280case "(($ac_try" in 4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4282 *) ac_try_echo=$ac_try;; 4283esac 4284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4285$as_echo "$ac_try_echo"; } >&5 4286 (eval "$ac_link") 2>&5 4287 ac_status=$? 4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4289 test $ac_status = 0; }; then : 4290 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4291# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4292# work properly (i.e., refer to `conftest.exe'), while it won't with 4293# `rm'. 4294for ac_file in conftest.exe conftest conftest.*; do 4295 test -f "$ac_file" || continue 4296 case $ac_file in 4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4298 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4299 break;; 4300 * ) break;; 4301 esac 4302done 4303else 4304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4306as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4307See \`config.log' for more details" "$LINENO" 5; } 4308fi 4309rm -f conftest conftest$ac_cv_exeext 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4311$as_echo "$ac_cv_exeext" >&6; } 4312 4313rm -f conftest.$ac_ext 4314EXEEXT=$ac_cv_exeext 4315ac_exeext=$EXEEXT 4316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317/* end confdefs.h. */ 4318#include <stdio.h> 4319int 4320main () 4321{ 4322FILE *f = fopen ("conftest.out", "w"); 4323 return ferror (f) || fclose (f) != 0; 4324 4325 ; 4326 return 0; 4327} 4328_ACEOF 4329ac_clean_files="$ac_clean_files conftest.out" 4330# Check that the compiler produces executables we can run. If not, either 4331# the compiler is broken, or we cross compile. 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4333$as_echo_n "checking whether we are cross compiling... " >&6; } 4334if test "$cross_compiling" != yes; then 4335 { { ac_try="$ac_link" 4336case "(($ac_try" in 4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4338 *) ac_try_echo=$ac_try;; 4339esac 4340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4341$as_echo "$ac_try_echo"; } >&5 4342 (eval "$ac_link") 2>&5 4343 ac_status=$? 4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4345 test $ac_status = 0; } 4346 if { ac_try='./conftest$ac_cv_exeext' 4347 { { case "(($ac_try" in 4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4349 *) ac_try_echo=$ac_try;; 4350esac 4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4352$as_echo "$ac_try_echo"; } >&5 4353 (eval "$ac_try") 2>&5 4354 ac_status=$? 4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4356 test $ac_status = 0; }; }; then 4357 cross_compiling=no 4358 else 4359 if test "$cross_compiling" = maybe; then 4360 cross_compiling=yes 4361 else 4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4364as_fn_error $? "cannot run C compiled programs. 4365If you meant to cross compile, use \`--host'. 4366See \`config.log' for more details" "$LINENO" 5; } 4367 fi 4368 fi 4369fi 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4371$as_echo "$cross_compiling" >&6; } 4372 4373rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4374ac_clean_files=$ac_clean_files_save 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4376$as_echo_n "checking for suffix of object files... " >&6; } 4377if ${ac_cv_objext+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379else 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4381/* end confdefs.h. */ 4382 4383int 4384main () 4385{ 4386 4387 ; 4388 return 0; 4389} 4390_ACEOF 4391rm -f conftest.o conftest.obj 4392if { { ac_try="$ac_compile" 4393case "(($ac_try" in 4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4395 *) ac_try_echo=$ac_try;; 4396esac 4397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4398$as_echo "$ac_try_echo"; } >&5 4399 (eval "$ac_compile") 2>&5 4400 ac_status=$? 4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4402 test $ac_status = 0; }; then : 4403 for ac_file in conftest.o conftest.obj conftest.*; do 4404 test -f "$ac_file" || continue; 4405 case $ac_file in 4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4407 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4408 break;; 4409 esac 4410done 4411else 4412 $as_echo "$as_me: failed program was:" >&5 4413sed 's/^/| /' conftest.$ac_ext >&5 4414 4415{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4417as_fn_error $? "cannot compute suffix of object files: cannot compile 4418See \`config.log' for more details" "$LINENO" 5; } 4419fi 4420rm -f conftest.$ac_cv_objext conftest.$ac_ext 4421fi 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4423$as_echo "$ac_cv_objext" >&6; } 4424OBJEXT=$ac_cv_objext 4425ac_objext=$OBJEXT 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4427$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4428if ${ac_cv_c_compiler_gnu+:} false; then : 4429 $as_echo_n "(cached) " >&6 4430else 4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432/* end confdefs.h. */ 4433 4434int 4435main () 4436{ 4437#ifndef __GNUC__ 4438 choke me 4439#endif 4440 4441 ; 4442 return 0; 4443} 4444_ACEOF 4445if ac_fn_c_try_compile "$LINENO"; then : 4446 ac_compiler_gnu=yes 4447else 4448 ac_compiler_gnu=no 4449fi 4450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4451ac_cv_c_compiler_gnu=$ac_compiler_gnu 4452 4453fi 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4455$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4456if test $ac_compiler_gnu = yes; then 4457 GCC=yes 4458else 4459 GCC= 4460fi 4461ac_test_CFLAGS=${CFLAGS+set} 4462ac_save_CFLAGS=$CFLAGS 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4464$as_echo_n "checking whether $CC accepts -g... " >&6; } 4465if ${ac_cv_prog_cc_g+:} false; then : 4466 $as_echo_n "(cached) " >&6 4467else 4468 ac_save_c_werror_flag=$ac_c_werror_flag 4469 ac_c_werror_flag=yes 4470 ac_cv_prog_cc_g=no 4471 CFLAGS="-g" 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4473/* end confdefs.h. */ 4474 4475int 4476main () 4477{ 4478 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483if ac_fn_c_try_compile "$LINENO"; then : 4484 ac_cv_prog_cc_g=yes 4485else 4486 CFLAGS="" 4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489 4490int 4491main () 4492{ 4493 4494 ; 4495 return 0; 4496} 4497_ACEOF 4498if ac_fn_c_try_compile "$LINENO"; then : 4499 4500else 4501 ac_c_werror_flag=$ac_save_c_werror_flag 4502 CFLAGS="-g" 4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504/* end confdefs.h. */ 4505 4506int 4507main () 4508{ 4509 4510 ; 4511 return 0; 4512} 4513_ACEOF 4514if ac_fn_c_try_compile "$LINENO"; then : 4515 ac_cv_prog_cc_g=yes 4516fi 4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4518fi 4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4520fi 4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4522 ac_c_werror_flag=$ac_save_c_werror_flag 4523fi 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4525$as_echo "$ac_cv_prog_cc_g" >&6; } 4526if test "$ac_test_CFLAGS" = set; then 4527 CFLAGS=$ac_save_CFLAGS 4528elif test $ac_cv_prog_cc_g = yes; then 4529 if test "$GCC" = yes; then 4530 CFLAGS="-g -O2" 4531 else 4532 CFLAGS="-g" 4533 fi 4534else 4535 if test "$GCC" = yes; then 4536 CFLAGS="-O2" 4537 else 4538 CFLAGS= 4539 fi 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4542$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4543if ${ac_cv_prog_cc_c89+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 ac_cv_prog_cc_c89=no 4547ac_save_CC=$CC 4548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4549/* end confdefs.h. */ 4550#include <stdarg.h> 4551#include <stdio.h> 4552struct stat; 4553/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4554struct buf { int x; }; 4555FILE * (*rcsopen) (struct buf *, struct stat *, int); 4556static char *e (p, i) 4557 char **p; 4558 int i; 4559{ 4560 return p[i]; 4561} 4562static char *f (char * (*g) (char **, int), char **p, ...) 4563{ 4564 char *s; 4565 va_list v; 4566 va_start (v,p); 4567 s = g (p, va_arg (v,int)); 4568 va_end (v); 4569 return s; 4570} 4571 4572/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4573 function prototypes and stuff, but not '\xHH' hex character constants. 4574 These don't provoke an error unfortunately, instead are silently treated 4575 as 'x'. The following induces an error, until -std is added to get 4576 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4577 array size at least. It's necessary to write '\x00'==0 to get something 4578 that's true only with -std. */ 4579int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4580 4581/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4582 inside strings and character constants. */ 4583#define FOO(x) 'x' 4584int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4585 4586int test (int i, double x); 4587struct s1 {int (*f) (int a);}; 4588struct s2 {int (*f) (double a);}; 4589int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4590int argc; 4591char **argv; 4592int 4593main () 4594{ 4595return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4596 ; 4597 return 0; 4598} 4599_ACEOF 4600for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4601 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4602do 4603 CC="$ac_save_CC $ac_arg" 4604 if ac_fn_c_try_compile "$LINENO"; then : 4605 ac_cv_prog_cc_c89=$ac_arg 4606fi 4607rm -f core conftest.err conftest.$ac_objext 4608 test "x$ac_cv_prog_cc_c89" != "xno" && break 4609done 4610rm -f conftest.$ac_ext 4611CC=$ac_save_CC 4612 4613fi 4614# AC_CACHE_VAL 4615case "x$ac_cv_prog_cc_c89" in 4616 x) 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4618$as_echo "none needed" >&6; } ;; 4619 xno) 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4621$as_echo "unsupported" >&6; } ;; 4622 *) 4623 CC="$CC $ac_cv_prog_cc_c89" 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4625$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4626esac 4627if test "x$ac_cv_prog_cc_c89" != xno; then : 4628 4629fi 4630 4631ac_ext=c 4632ac_cpp='$CPP $CPPFLAGS' 4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4635ac_compiler_gnu=$ac_cv_c_compiler_gnu 4636 4637ac_ext=cpp 4638ac_cpp='$CXXCPP $CPPFLAGS' 4639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4642if test -z "$CXX"; then 4643 if test -n "$CCC"; then 4644 CXX=$CCC 4645 else 4646 if test -n "$ac_tool_prefix"; then 4647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4648 do 4649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4650set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652$as_echo_n "checking for $ac_word... " >&6; } 4653if ${ac_cv_prog_CXX+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 if test -n "$CXX"; then 4657 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4658else 4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660for as_dir in $PATH 4661do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4666 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4668 break 2 4669 fi 4670done 4671 done 4672IFS=$as_save_IFS 4673 4674fi 4675fi 4676CXX=$ac_cv_prog_CXX 4677if test -n "$CXX"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4679$as_echo "$CXX" >&6; } 4680else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682$as_echo "no" >&6; } 4683fi 4684 4685 4686 test -n "$CXX" && break 4687 done 4688fi 4689if test -z "$CXX"; then 4690 ac_ct_CXX=$CXX 4691 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4692do 4693 # Extract the first word of "$ac_prog", so it can be a program name with args. 4694set dummy $ac_prog; ac_word=$2 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4696$as_echo_n "checking for $ac_word... " >&6; } 4697if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4698 $as_echo_n "(cached) " >&6 4699else 4700 if test -n "$ac_ct_CXX"; then 4701 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4702else 4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704for as_dir in $PATH 4705do 4706 IFS=$as_save_IFS 4707 test -z "$as_dir" && as_dir=. 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4710 ac_cv_prog_ac_ct_CXX="$ac_prog" 4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4712 break 2 4713 fi 4714done 4715 done 4716IFS=$as_save_IFS 4717 4718fi 4719fi 4720ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4721if test -n "$ac_ct_CXX"; then 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4723$as_echo "$ac_ct_CXX" >&6; } 4724else 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4726$as_echo "no" >&6; } 4727fi 4728 4729 4730 test -n "$ac_ct_CXX" && break 4731done 4732 4733 if test "x$ac_ct_CXX" = x; then 4734 CXX="g++" 4735 else 4736 case $cross_compiling:$ac_tool_warned in 4737yes:) 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4740ac_tool_warned=yes ;; 4741esac 4742 CXX=$ac_ct_CXX 4743 fi 4744fi 4745 4746 fi 4747fi 4748# Provide some information about the compiler. 4749$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4750set X $ac_compile 4751ac_compiler=$2 4752for ac_option in --version -v -V -qversion; do 4753 { { ac_try="$ac_compiler $ac_option >&5" 4754case "(($ac_try" in 4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4756 *) ac_try_echo=$ac_try;; 4757esac 4758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4759$as_echo "$ac_try_echo"; } >&5 4760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4761 ac_status=$? 4762 if test -s conftest.err; then 4763 sed '10a\ 4764... rest of stderr output deleted ... 4765 10q' conftest.err >conftest.er1 4766 cat conftest.er1 >&5 4767 fi 4768 rm -f conftest.er1 conftest.err 4769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4770 test $ac_status = 0; } 4771done 4772 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4774$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4775if ${ac_cv_cxx_compiler_gnu+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777else 4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4779/* end confdefs.h. */ 4780 4781int 4782main () 4783{ 4784#ifndef __GNUC__ 4785 choke me 4786#endif 4787 4788 ; 4789 return 0; 4790} 4791_ACEOF 4792if ac_fn_cxx_try_compile "$LINENO"; then : 4793 ac_compiler_gnu=yes 4794else 4795 ac_compiler_gnu=no 4796fi 4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4798ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4799 4800fi 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4802$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4803if test $ac_compiler_gnu = yes; then 4804 GXX=yes 4805else 4806 GXX= 4807fi 4808ac_test_CXXFLAGS=${CXXFLAGS+set} 4809ac_save_CXXFLAGS=$CXXFLAGS 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4811$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4812if ${ac_cv_prog_cxx_g+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4816 ac_cxx_werror_flag=yes 4817 ac_cv_prog_cxx_g=no 4818 CXXFLAGS="-g" 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820/* end confdefs.h. */ 4821 4822int 4823main () 4824{ 4825 4826 ; 4827 return 0; 4828} 4829_ACEOF 4830if ac_fn_cxx_try_compile "$LINENO"; then : 4831 ac_cv_prog_cxx_g=yes 4832else 4833 CXXFLAGS="" 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836 4837int 4838main () 4839{ 4840 4841 ; 4842 return 0; 4843} 4844_ACEOF 4845if ac_fn_cxx_try_compile "$LINENO"; then : 4846 4847else 4848 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4849 CXXFLAGS="-g" 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851/* end confdefs.h. */ 4852 4853int 4854main () 4855{ 4856 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861if ac_fn_cxx_try_compile "$LINENO"; then : 4862 ac_cv_prog_cxx_g=yes 4863fi 4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4865fi 4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4867fi 4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4869 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4870fi 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4872$as_echo "$ac_cv_prog_cxx_g" >&6; } 4873if test "$ac_test_CXXFLAGS" = set; then 4874 CXXFLAGS=$ac_save_CXXFLAGS 4875elif test $ac_cv_prog_cxx_g = yes; then 4876 if test "$GXX" = yes; then 4877 CXXFLAGS="-g -O2" 4878 else 4879 CXXFLAGS="-g" 4880 fi 4881else 4882 if test "$GXX" = yes; then 4883 CXXFLAGS="-O2" 4884 else 4885 CXXFLAGS= 4886 fi 4887fi 4888ac_ext=c 4889ac_cpp='$CPP $CPPFLAGS' 4890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4892ac_compiler_gnu=$ac_cv_c_compiler_gnu 4893 4894 4895 4896 4897if test -n "$ac_tool_prefix"; then 4898 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 4899set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4901$as_echo_n "checking for $ac_word... " >&6; } 4902if ${ac_cv_prog_GNATBIND+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 if test -n "$GNATBIND"; then 4906 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 4907else 4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4909for as_dir in $PATH 4910do 4911 IFS=$as_save_IFS 4912 test -z "$as_dir" && as_dir=. 4913 for ac_exec_ext in '' $ac_executable_extensions; do 4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4915 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4917 break 2 4918 fi 4919done 4920 done 4921IFS=$as_save_IFS 4922 4923fi 4924fi 4925GNATBIND=$ac_cv_prog_GNATBIND 4926if test -n "$GNATBIND"; then 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 4928$as_echo "$GNATBIND" >&6; } 4929else 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4931$as_echo "no" >&6; } 4932fi 4933 4934 4935fi 4936if test -z "$ac_cv_prog_GNATBIND"; then 4937 ac_ct_GNATBIND=$GNATBIND 4938 # Extract the first word of "gnatbind", so it can be a program name with args. 4939set dummy gnatbind; ac_word=$2 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4941$as_echo_n "checking for $ac_word... " >&6; } 4942if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 if test -n "$ac_ct_GNATBIND"; then 4946 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. 4947else 4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949for as_dir in $PATH 4950do 4951 IFS=$as_save_IFS 4952 test -z "$as_dir" && as_dir=. 4953 for ac_exec_ext in '' $ac_executable_extensions; do 4954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4955 ac_cv_prog_ac_ct_GNATBIND="gnatbind" 4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4957 break 2 4958 fi 4959done 4960 done 4961IFS=$as_save_IFS 4962 4963fi 4964fi 4965ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND 4966if test -n "$ac_ct_GNATBIND"; then 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 4968$as_echo "$ac_ct_GNATBIND" >&6; } 4969else 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4971$as_echo "no" >&6; } 4972fi 4973 4974 if test "x$ac_ct_GNATBIND" = x; then 4975 GNATBIND="no" 4976 else 4977 case $cross_compiling:$ac_tool_warned in 4978yes:) 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4981ac_tool_warned=yes ;; 4982esac 4983 GNATBIND=$ac_ct_GNATBIND 4984 fi 4985else 4986 GNATBIND="$ac_cv_prog_GNATBIND" 4987fi 4988 4989if test -n "$ac_tool_prefix"; then 4990 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. 4991set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4993$as_echo_n "checking for $ac_word... " >&6; } 4994if ${ac_cv_prog_GNATMAKE+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 if test -n "$GNATMAKE"; then 4998 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. 4999else 5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5001for as_dir in $PATH 5002do 5003 IFS=$as_save_IFS 5004 test -z "$as_dir" && as_dir=. 5005 for ac_exec_ext in '' $ac_executable_extensions; do 5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5007 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" 5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5009 break 2 5010 fi 5011done 5012 done 5013IFS=$as_save_IFS 5014 5015fi 5016fi 5017GNATMAKE=$ac_cv_prog_GNATMAKE 5018if test -n "$GNATMAKE"; then 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 5020$as_echo "$GNATMAKE" >&6; } 5021else 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5023$as_echo "no" >&6; } 5024fi 5025 5026 5027fi 5028if test -z "$ac_cv_prog_GNATMAKE"; then 5029 ac_ct_GNATMAKE=$GNATMAKE 5030 # Extract the first word of "gnatmake", so it can be a program name with args. 5031set dummy gnatmake; ac_word=$2 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5033$as_echo_n "checking for $ac_word... " >&6; } 5034if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 if test -n "$ac_ct_GNATMAKE"; then 5038 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. 5039else 5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5041for as_dir in $PATH 5042do 5043 IFS=$as_save_IFS 5044 test -z "$as_dir" && as_dir=. 5045 for ac_exec_ext in '' $ac_executable_extensions; do 5046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5047 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" 5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5049 break 2 5050 fi 5051done 5052 done 5053IFS=$as_save_IFS 5054 5055fi 5056fi 5057ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE 5058if test -n "$ac_ct_GNATMAKE"; then 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 5060$as_echo "$ac_ct_GNATMAKE" >&6; } 5061else 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5063$as_echo "no" >&6; } 5064fi 5065 5066 if test "x$ac_ct_GNATMAKE" = x; then 5067 GNATMAKE="no" 5068 else 5069 case $cross_compiling:$ac_tool_warned in 5070yes:) 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5073ac_tool_warned=yes ;; 5074esac 5075 GNATMAKE=$ac_ct_GNATMAKE 5076 fi 5077else 5078 GNATMAKE="$ac_cv_prog_GNATMAKE" 5079fi 5080 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 5082$as_echo_n "checking whether compiler driver understands Ada... " >&6; } 5083if ${acx_cv_cc_gcc_supports_ada+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 cat >conftest.adb <<EOF 5087procedure conftest is begin null; end conftest; 5088EOF 5089acx_cv_cc_gcc_supports_ada=no 5090# There is a bug in old released versions of GCC which causes the 5091# driver to exit successfully when the appropriate language module 5092# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 5093# Therefore we must check for the error message as well as an 5094# unsuccessful exit. 5095# Other compilers, like HP Tru64 UNIX cc, exit successfully when 5096# given a .adb file, but produce no object file. So we must check 5097# if an object file was really produced to guard against this. 5098errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure` 5099if test x"$errors" = x && test -f conftest.$ac_objext; then 5100 acx_cv_cc_gcc_supports_ada=yes 5101fi 5102rm -f conftest.* 5103fi 5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 5105$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } 5106 5107if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 5108 have_gnat=yes 5109else 5110 have_gnat=no 5111fi 5112 5113 5114# Do configure tests with the C++ compiler, since that's what we build with. 5115ac_ext=cpp 5116ac_cpp='$CXXCPP $CPPFLAGS' 5117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5120 5121 5122# Remove the -O2: for historical reasons, unless bootstrapping we prefer 5123# optimizations to be activated explicitly by the toplevel. 5124case "$CC" in 5125 */prev-gcc/xgcc*) ;; 5126 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` 5127 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;; 5128esac 5129 5130 5131 5132# Determine PICFLAG for target gnatlib. 5133 5134 5135 5136 5137case "${target}" in 5138 # PIC is the default on some targets or must not be used. 5139 *-*-darwin*) 5140 # For darwin, common symbols are not allowed in MH_DYLIB files 5141 case "${CFLAGS}" in 5142 # If we are using a compiler supporting mdynamic-no-pic 5143 # and the option has been tested as safe to add, then cancel 5144 # it here, since the code generated is incompatible with shared 5145 # libs. 5146 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;; 5147 *) PICFLAG_FOR_TARGET=-fno-common ;; 5148 esac 5149 ;; 5150 alpha*-dec-osf5*) 5151 # PIC is the default. 5152 ;; 5153 hppa*64*-*-hpux*) 5154 # PIC is the default for 64-bit PA HP-UX. 5155 ;; 5156 i[34567]86-*-cygwin* | x86_64-*-cygwin*) 5157 ;; 5158 i[34567]86-*-mingw* | x86_64-*-mingw*) 5159 ;; 5160 i[34567]86-*-interix[3-9]*) 5161 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5162 # Instead, we relocate shared libraries at runtime. 5163 ;; 5164 i[34567]86-*-nto-qnx*) 5165 # QNX uses GNU C++, but need to define -shared option too, otherwise 5166 # it will coredump. 5167 PICFLAG_FOR_TARGET='-fPIC -shared' 5168 ;; 5169 i[34567]86-pc-msdosdjgpp*) 5170 # DJGPP does not support shared libraries at all. 5171 ;; 5172 ia64*-*-hpux*) 5173 # On IA64 HP-UX, PIC is the default but the pic flag 5174 # sets the default TLS model and affects inlining. 5175 PICFLAG_FOR_TARGET=-fPIC 5176 ;; 5177 mips-sgi-irix6*) 5178 # PIC is the default. 5179 ;; 5180 rs6000-ibm-aix* | powerpc-ibm-aix*) 5181 # All AIX code is PIC. 5182 ;; 5183 5184 # Some targets support both -fPIC and -fpic, but prefer the latter. 5185 # FIXME: Why? 5186 i[34567]86-*-* | x86_64-*-*) 5187 PICFLAG_FOR_TARGET=-fpic 5188 ;; 5189 # FIXME: Override -fPIC default in libgcc only? 5190 sh-*-linux* | sh[2346lbe]*-*-linux*) 5191 PICFLAG_FOR_TARGET=-fpic 5192 ;; 5193 # FIXME: Simplify to sh*-*-netbsd*? 5194 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ 5195 sh64-*-netbsd* | sh64l*-*-netbsd*) 5196 PICFLAG_FOR_TARGET=-fpic 5197 ;; 5198 # Default to -fPIC unless specified otherwise. 5199 *) 5200 PICFLAG_FOR_TARGET=-fPIC 5201 ;; 5202esac 5203 5204# If the user explicitly uses -fpic/-fPIC, keep that. 5205case "${CFLAGS_FOR_TARGET}" in 5206 *-fpic*) 5207 PICFLAG_FOR_TARGET=-fpic 5208 ;; 5209 *-fPIC*) 5210 PICFLAG_FOR_TARGET=-fPIC 5211 ;; 5212esac 5213 5214 5215 5216# ------------------------- 5217# Check C compiler features 5218# ------------------------- 5219 5220 5221ac_ext=cpp 5222ac_cpp='$CXXCPP $CPPFLAGS' 5223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5227$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5228if test -z "$CXXCPP"; then 5229 if ${ac_cv_prog_CXXCPP+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 # Double quotes because CXXCPP needs to be expanded 5233 for CXXCPP in "$CXX -E" "/lib/cpp" 5234 do 5235 ac_preproc_ok=false 5236for ac_cxx_preproc_warn_flag in '' yes 5237do 5238 # Use a header file that comes with gcc, so configuring glibc 5239 # with a fresh cross-compiler works. 5240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5241 # <limits.h> exists even on freestanding compilers. 5242 # On the NeXT, cc -E runs the code through the compiler's parser, 5243 # not just through cpp. "Syntax error" is here to catch this case. 5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5245/* end confdefs.h. */ 5246#ifdef __STDC__ 5247# include <limits.h> 5248#else 5249# include <assert.h> 5250#endif 5251 Syntax error 5252_ACEOF 5253if ac_fn_cxx_try_cpp "$LINENO"; then : 5254 5255else 5256 # Broken: fails on valid input. 5257continue 5258fi 5259rm -f conftest.err conftest.i conftest.$ac_ext 5260 5261 # OK, works on sane cases. Now check whether nonexistent headers 5262 # can be detected and how. 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264/* end confdefs.h. */ 5265#include <ac_nonexistent.h> 5266_ACEOF 5267if ac_fn_cxx_try_cpp "$LINENO"; then : 5268 # Broken: success on invalid input. 5269continue 5270else 5271 # Passes both tests. 5272ac_preproc_ok=: 5273break 5274fi 5275rm -f conftest.err conftest.i conftest.$ac_ext 5276 5277done 5278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5279rm -f conftest.i conftest.err conftest.$ac_ext 5280if $ac_preproc_ok; then : 5281 break 5282fi 5283 5284 done 5285 ac_cv_prog_CXXCPP=$CXXCPP 5286 5287fi 5288 CXXCPP=$ac_cv_prog_CXXCPP 5289else 5290 ac_cv_prog_CXXCPP=$CXXCPP 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5293$as_echo "$CXXCPP" >&6; } 5294ac_preproc_ok=false 5295for ac_cxx_preproc_warn_flag in '' yes 5296do 5297 # Use a header file that comes with gcc, so configuring glibc 5298 # with a fresh cross-compiler works. 5299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5300 # <limits.h> exists even on freestanding compilers. 5301 # On the NeXT, cc -E runs the code through the compiler's parser, 5302 # not just through cpp. "Syntax error" is here to catch this case. 5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304/* end confdefs.h. */ 5305#ifdef __STDC__ 5306# include <limits.h> 5307#else 5308# include <assert.h> 5309#endif 5310 Syntax error 5311_ACEOF 5312if ac_fn_cxx_try_cpp "$LINENO"; then : 5313 5314else 5315 # Broken: fails on valid input. 5316continue 5317fi 5318rm -f conftest.err conftest.i conftest.$ac_ext 5319 5320 # OK, works on sane cases. Now check whether nonexistent headers 5321 # can be detected and how. 5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5323/* end confdefs.h. */ 5324#include <ac_nonexistent.h> 5325_ACEOF 5326if ac_fn_cxx_try_cpp "$LINENO"; then : 5327 # Broken: success on invalid input. 5328continue 5329else 5330 # Passes both tests. 5331ac_preproc_ok=: 5332break 5333fi 5334rm -f conftest.err conftest.i conftest.$ac_ext 5335 5336done 5337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5338rm -f conftest.i conftest.err conftest.$ac_ext 5339if $ac_preproc_ok; then : 5340 5341else 5342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5344as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5345See \`config.log' for more details" "$LINENO" 5; } 5346fi 5347 5348ac_ext=cpp 5349ac_cpp='$CXXCPP $CPPFLAGS' 5350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5353 5354 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5356$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5357if ${ac_cv_path_GREP+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 if test -z "$GREP"; then 5361 ac_path_GREP_found=false 5362 # Loop through the user's path and test for each of PROGNAME-LIST 5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5365do 5366 IFS=$as_save_IFS 5367 test -z "$as_dir" && as_dir=. 5368 for ac_prog in grep ggrep; do 5369 for ac_exec_ext in '' $ac_executable_extensions; do 5370 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5371 as_fn_executable_p "$ac_path_GREP" || continue 5372# Check for GNU ac_path_GREP and select it if it is found. 5373 # Check for GNU $ac_path_GREP 5374case `"$ac_path_GREP" --version 2>&1` in 5375*GNU*) 5376 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5377*) 5378 ac_count=0 5379 $as_echo_n 0123456789 >"conftest.in" 5380 while : 5381 do 5382 cat "conftest.in" "conftest.in" >"conftest.tmp" 5383 mv "conftest.tmp" "conftest.in" 5384 cp "conftest.in" "conftest.nl" 5385 $as_echo 'GREP' >> "conftest.nl" 5386 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5388 as_fn_arith $ac_count + 1 && ac_count=$as_val 5389 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5390 # Best one so far, save it but keep looking for a better one 5391 ac_cv_path_GREP="$ac_path_GREP" 5392 ac_path_GREP_max=$ac_count 5393 fi 5394 # 10*(2^10) chars as input seems more than enough 5395 test $ac_count -gt 10 && break 5396 done 5397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5398esac 5399 5400 $ac_path_GREP_found && break 3 5401 done 5402 done 5403 done 5404IFS=$as_save_IFS 5405 if test -z "$ac_cv_path_GREP"; then 5406 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5407 fi 5408else 5409 ac_cv_path_GREP=$GREP 5410fi 5411 5412fi 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5414$as_echo "$ac_cv_path_GREP" >&6; } 5415 GREP="$ac_cv_path_GREP" 5416 5417 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5419$as_echo_n "checking for egrep... " >&6; } 5420if ${ac_cv_path_EGREP+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5424 then ac_cv_path_EGREP="$GREP -E" 5425 else 5426 if test -z "$EGREP"; then 5427 ac_path_EGREP_found=false 5428 # Loop through the user's path and test for each of PROGNAME-LIST 5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5430for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5431do 5432 IFS=$as_save_IFS 5433 test -z "$as_dir" && as_dir=. 5434 for ac_prog in egrep; do 5435 for ac_exec_ext in '' $ac_executable_extensions; do 5436 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5437 as_fn_executable_p "$ac_path_EGREP" || continue 5438# Check for GNU ac_path_EGREP and select it if it is found. 5439 # Check for GNU $ac_path_EGREP 5440case `"$ac_path_EGREP" --version 2>&1` in 5441*GNU*) 5442 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5443*) 5444 ac_count=0 5445 $as_echo_n 0123456789 >"conftest.in" 5446 while : 5447 do 5448 cat "conftest.in" "conftest.in" >"conftest.tmp" 5449 mv "conftest.tmp" "conftest.in" 5450 cp "conftest.in" "conftest.nl" 5451 $as_echo 'EGREP' >> "conftest.nl" 5452 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5454 as_fn_arith $ac_count + 1 && ac_count=$as_val 5455 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5456 # Best one so far, save it but keep looking for a better one 5457 ac_cv_path_EGREP="$ac_path_EGREP" 5458 ac_path_EGREP_max=$ac_count 5459 fi 5460 # 10*(2^10) chars as input seems more than enough 5461 test $ac_count -gt 10 && break 5462 done 5463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5464esac 5465 5466 $ac_path_EGREP_found && break 3 5467 done 5468 done 5469 done 5470IFS=$as_save_IFS 5471 if test -z "$ac_cv_path_EGREP"; then 5472 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5473 fi 5474else 5475 ac_cv_path_EGREP=$EGREP 5476fi 5477 5478 fi 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5481$as_echo "$ac_cv_path_EGREP" >&6; } 5482 EGREP="$ac_cv_path_EGREP" 5483 5484 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5486$as_echo_n "checking for ANSI C header files... " >&6; } 5487if ${ac_cv_header_stdc+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489else 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492#include <stdlib.h> 5493#include <stdarg.h> 5494#include <string.h> 5495#include <float.h> 5496 5497int 5498main () 5499{ 5500 5501 ; 5502 return 0; 5503} 5504_ACEOF 5505if ac_fn_cxx_try_compile "$LINENO"; then : 5506 ac_cv_header_stdc=yes 5507else 5508 ac_cv_header_stdc=no 5509fi 5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5511 5512if test $ac_cv_header_stdc = yes; then 5513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5515/* end confdefs.h. */ 5516#include <string.h> 5517 5518_ACEOF 5519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5520 $EGREP "memchr" >/dev/null 2>&1; then : 5521 5522else 5523 ac_cv_header_stdc=no 5524fi 5525rm -f conftest* 5526 5527fi 5528 5529if test $ac_cv_header_stdc = yes; then 5530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5532/* end confdefs.h. */ 5533#include <stdlib.h> 5534 5535_ACEOF 5536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5537 $EGREP "free" >/dev/null 2>&1; then : 5538 5539else 5540 ac_cv_header_stdc=no 5541fi 5542rm -f conftest* 5543 5544fi 5545 5546if test $ac_cv_header_stdc = yes; then 5547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5548 if test "$cross_compiling" = yes; then : 5549 : 5550else 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552/* end confdefs.h. */ 5553#include <ctype.h> 5554#include <stdlib.h> 5555#if ((' ' & 0x0FF) == 0x020) 5556# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5557# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5558#else 5559# define ISLOWER(c) \ 5560 (('a' <= (c) && (c) <= 'i') \ 5561 || ('j' <= (c) && (c) <= 'r') \ 5562 || ('s' <= (c) && (c) <= 'z')) 5563# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5564#endif 5565 5566#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5567int 5568main () 5569{ 5570 int i; 5571 for (i = 0; i < 256; i++) 5572 if (XOR (islower (i), ISLOWER (i)) 5573 || toupper (i) != TOUPPER (i)) 5574 return 2; 5575 return 0; 5576} 5577_ACEOF 5578if ac_fn_cxx_try_run "$LINENO"; then : 5579 5580else 5581 ac_cv_header_stdc=no 5582fi 5583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5584 conftest.$ac_objext conftest.beam conftest.$ac_ext 5585fi 5586 5587fi 5588fi 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5590$as_echo "$ac_cv_header_stdc" >&6; } 5591if test $ac_cv_header_stdc = yes; then 5592 5593$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5594 5595fi 5596 5597# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5598for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5599 inttypes.h stdint.h unistd.h 5600do : 5601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5602ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5603" 5604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5605 cat >>confdefs.h <<_ACEOF 5606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5607_ACEOF 5608 5609fi 5610 5611done 5612 5613 5614 5615 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5616if test "x$ac_cv_header_minix_config_h" = xyes; then : 5617 MINIX=yes 5618else 5619 MINIX= 5620fi 5621 5622 5623 if test "$MINIX" = yes; then 5624 5625$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5626 5627 5628$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5629 5630 5631$as_echo "#define _MINIX 1" >>confdefs.h 5632 5633 fi 5634 5635 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5637$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5638if ${ac_cv_safe_to_define___extensions__+:} false; then : 5639 $as_echo_n "(cached) " >&6 5640else 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643 5644# define __EXTENSIONS__ 1 5645 $ac_includes_default 5646int 5647main () 5648{ 5649 5650 ; 5651 return 0; 5652} 5653_ACEOF 5654if ac_fn_cxx_try_compile "$LINENO"; then : 5655 ac_cv_safe_to_define___extensions__=yes 5656else 5657 ac_cv_safe_to_define___extensions__=no 5658fi 5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5660fi 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5662$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5663 test $ac_cv_safe_to_define___extensions__ = yes && 5664 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5665 5666 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5667 5668 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5669 5670 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5671 5672 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5673 5674 5675ac_ext=c 5676ac_cpp='$CPP $CPPFLAGS' 5677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5679ac_compiler_gnu=$ac_cv_c_compiler_gnu 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5681$as_echo_n "checking how to run the C preprocessor... " >&6; } 5682# On Suns, sometimes $CPP names a directory. 5683if test -n "$CPP" && test -d "$CPP"; then 5684 CPP= 5685fi 5686if test -z "$CPP"; then 5687 if ${ac_cv_prog_CPP+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 # Double quotes because CPP needs to be expanded 5691 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5692 do 5693 ac_preproc_ok=false 5694for ac_c_preproc_warn_flag in '' yes 5695do 5696 # Use a header file that comes with gcc, so configuring glibc 5697 # with a fresh cross-compiler works. 5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5699 # <limits.h> exists even on freestanding compilers. 5700 # On the NeXT, cc -E runs the code through the compiler's parser, 5701 # not just through cpp. "Syntax error" is here to catch this case. 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703/* end confdefs.h. */ 5704#ifdef __STDC__ 5705# include <limits.h> 5706#else 5707# include <assert.h> 5708#endif 5709 Syntax error 5710_ACEOF 5711if ac_fn_c_try_cpp "$LINENO"; then : 5712 5713else 5714 # Broken: fails on valid input. 5715continue 5716fi 5717rm -f conftest.err conftest.i conftest.$ac_ext 5718 5719 # OK, works on sane cases. Now check whether nonexistent headers 5720 # can be detected and how. 5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5722/* end confdefs.h. */ 5723#include <ac_nonexistent.h> 5724_ACEOF 5725if ac_fn_c_try_cpp "$LINENO"; then : 5726 # Broken: success on invalid input. 5727continue 5728else 5729 # Passes both tests. 5730ac_preproc_ok=: 5731break 5732fi 5733rm -f conftest.err conftest.i conftest.$ac_ext 5734 5735done 5736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5737rm -f conftest.i conftest.err conftest.$ac_ext 5738if $ac_preproc_ok; then : 5739 break 5740fi 5741 5742 done 5743 ac_cv_prog_CPP=$CPP 5744 5745fi 5746 CPP=$ac_cv_prog_CPP 5747else 5748 ac_cv_prog_CPP=$CPP 5749fi 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5751$as_echo "$CPP" >&6; } 5752ac_preproc_ok=false 5753for ac_c_preproc_warn_flag in '' yes 5754do 5755 # Use a header file that comes with gcc, so configuring glibc 5756 # with a fresh cross-compiler works. 5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5758 # <limits.h> exists even on freestanding compilers. 5759 # On the NeXT, cc -E runs the code through the compiler's parser, 5760 # not just through cpp. "Syntax error" is here to catch this case. 5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762/* end confdefs.h. */ 5763#ifdef __STDC__ 5764# include <limits.h> 5765#else 5766# include <assert.h> 5767#endif 5768 Syntax error 5769_ACEOF 5770if ac_fn_c_try_cpp "$LINENO"; then : 5771 5772else 5773 # Broken: fails on valid input. 5774continue 5775fi 5776rm -f conftest.err conftest.i conftest.$ac_ext 5777 5778 # OK, works on sane cases. Now check whether nonexistent headers 5779 # can be detected and how. 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5781/* end confdefs.h. */ 5782#include <ac_nonexistent.h> 5783_ACEOF 5784if ac_fn_c_try_cpp "$LINENO"; then : 5785 # Broken: success on invalid input. 5786continue 5787else 5788 # Passes both tests. 5789ac_preproc_ok=: 5790break 5791fi 5792rm -f conftest.err conftest.i conftest.$ac_ext 5793 5794done 5795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5796rm -f conftest.i conftest.err conftest.$ac_ext 5797if $ac_preproc_ok; then : 5798 5799else 5800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5802as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5803See \`config.log' for more details" "$LINENO" 5; } 5804fi 5805 5806ac_ext=cpp 5807ac_cpp='$CXXCPP $CPPFLAGS' 5808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5811 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5813$as_echo_n "checking for inline... " >&6; } 5814if ${ac_cv_c_inline+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 ac_cv_c_inline=no 5818for ac_kw in inline __inline__ __inline; do 5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5820/* end confdefs.h. */ 5821#ifndef __cplusplus 5822typedef int foo_t; 5823static $ac_kw foo_t static_foo () {return 0; } 5824$ac_kw foo_t foo () {return 0; } 5825#endif 5826 5827_ACEOF 5828if ac_fn_cxx_try_compile "$LINENO"; then : 5829 ac_cv_c_inline=$ac_kw 5830fi 5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5832 test "$ac_cv_c_inline" != no && break 5833done 5834 5835fi 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5837$as_echo "$ac_cv_c_inline" >&6; } 5838 5839case $ac_cv_c_inline in 5840 inline | yes) ;; 5841 *) 5842 case $ac_cv_c_inline in 5843 no) ac_val=;; 5844 *) ac_val=$ac_cv_c_inline;; 5845 esac 5846 cat >>confdefs.h <<_ACEOF 5847#ifndef __cplusplus 5848#define inline $ac_val 5849#endif 5850_ACEOF 5851 ;; 5852esac 5853 5854 5855# Check whether --enable-largefile was given. 5856if test "${enable_largefile+set}" = set; then : 5857 enableval=$enable_largefile; 5858fi 5859 5860if test "$enable_largefile" != no; then 5861 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5863$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5864if ${ac_cv_sys_largefile_CC+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 ac_cv_sys_largefile_CC=no 5868 if test "$GCC" != yes; then 5869 ac_save_CC=$CC 5870 while :; do 5871 # IRIX 6.2 and later do not support large files by default, 5872 # so use the C compiler's -n32 option if that helps. 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874/* end confdefs.h. */ 5875#include <sys/types.h> 5876 /* Check that off_t can represent 2**63 - 1 correctly. 5877 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5878 since some C++ compilers masquerading as C compilers 5879 incorrectly reject 9223372036854775807. */ 5880#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5882 && LARGE_OFF_T % 2147483647 == 1) 5883 ? 1 : -1]; 5884int 5885main () 5886{ 5887 5888 ; 5889 return 0; 5890} 5891_ACEOF 5892 if ac_fn_cxx_try_compile "$LINENO"; then : 5893 break 5894fi 5895rm -f core conftest.err conftest.$ac_objext 5896 CC="$CC -n32" 5897 if ac_fn_cxx_try_compile "$LINENO"; then : 5898 ac_cv_sys_largefile_CC=' -n32'; break 5899fi 5900rm -f core conftest.err conftest.$ac_objext 5901 break 5902 done 5903 CC=$ac_save_CC 5904 rm -f conftest.$ac_ext 5905 fi 5906fi 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5908$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5909 if test "$ac_cv_sys_largefile_CC" != no; then 5910 CC=$CC$ac_cv_sys_largefile_CC 5911 fi 5912 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5914$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5915if ${ac_cv_sys_file_offset_bits+:} false; then : 5916 $as_echo_n "(cached) " >&6 5917else 5918 while :; do 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920/* end confdefs.h. */ 5921#include <sys/types.h> 5922 /* Check that off_t can represent 2**63 - 1 correctly. 5923 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5924 since some C++ compilers masquerading as C compilers 5925 incorrectly reject 9223372036854775807. */ 5926#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5928 && LARGE_OFF_T % 2147483647 == 1) 5929 ? 1 : -1]; 5930int 5931main () 5932{ 5933 5934 ; 5935 return 0; 5936} 5937_ACEOF 5938if ac_fn_cxx_try_compile "$LINENO"; then : 5939 ac_cv_sys_file_offset_bits=no; break 5940fi 5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5943/* end confdefs.h. */ 5944#define _FILE_OFFSET_BITS 64 5945#include <sys/types.h> 5946 /* Check that off_t can represent 2**63 - 1 correctly. 5947 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5948 since some C++ compilers masquerading as C compilers 5949 incorrectly reject 9223372036854775807. */ 5950#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5952 && LARGE_OFF_T % 2147483647 == 1) 5953 ? 1 : -1]; 5954int 5955main () 5956{ 5957 5958 ; 5959 return 0; 5960} 5961_ACEOF 5962if ac_fn_cxx_try_compile "$LINENO"; then : 5963 ac_cv_sys_file_offset_bits=64; break 5964fi 5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5966 ac_cv_sys_file_offset_bits=unknown 5967 break 5968done 5969fi 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5971$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5972case $ac_cv_sys_file_offset_bits in #( 5973 no | unknown) ;; 5974 *) 5975cat >>confdefs.h <<_ACEOF 5976#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5977_ACEOF 5978;; 5979esac 5980rm -rf conftest* 5981 if test $ac_cv_sys_file_offset_bits = unknown; then 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5983$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5984if ${ac_cv_sys_large_files+:} false; then : 5985 $as_echo_n "(cached) " >&6 5986else 5987 while :; do 5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5989/* end confdefs.h. */ 5990#include <sys/types.h> 5991 /* Check that off_t can represent 2**63 - 1 correctly. 5992 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5993 since some C++ compilers masquerading as C compilers 5994 incorrectly reject 9223372036854775807. */ 5995#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5997 && LARGE_OFF_T % 2147483647 == 1) 5998 ? 1 : -1]; 5999int 6000main () 6001{ 6002 6003 ; 6004 return 0; 6005} 6006_ACEOF 6007if ac_fn_cxx_try_compile "$LINENO"; then : 6008 ac_cv_sys_large_files=no; break 6009fi 6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6012/* end confdefs.h. */ 6013#define _LARGE_FILES 1 6014#include <sys/types.h> 6015 /* Check that off_t can represent 2**63 - 1 correctly. 6016 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6017 since some C++ compilers masquerading as C compilers 6018 incorrectly reject 9223372036854775807. */ 6019#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6021 && LARGE_OFF_T % 2147483647 == 1) 6022 ? 1 : -1]; 6023int 6024main () 6025{ 6026 6027 ; 6028 return 0; 6029} 6030_ACEOF 6031if ac_fn_cxx_try_compile "$LINENO"; then : 6032 ac_cv_sys_large_files=1; break 6033fi 6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6035 ac_cv_sys_large_files=unknown 6036 break 6037done 6038fi 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6040$as_echo "$ac_cv_sys_large_files" >&6; } 6041case $ac_cv_sys_large_files in #( 6042 no | unknown) ;; 6043 *) 6044cat >>confdefs.h <<_ACEOF 6045#define _LARGE_FILES $ac_cv_sys_large_files 6046_ACEOF 6047;; 6048esac 6049rm -rf conftest* 6050 fi 6051 6052 6053fi 6054 6055 6056# sizeof(char) is 1 by definition. 6057# The cast to long int works around a bug in the HP C Compiler 6058# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6059# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6060# This bug is HP SR number 8606223364. 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6062$as_echo_n "checking size of void *... " >&6; } 6063if ${ac_cv_sizeof_void_p+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 6067 6068else 6069 if test "$ac_cv_type_void_p" = yes; then 6070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6072as_fn_error 77 "cannot compute sizeof (void *) 6073See \`config.log' for more details" "$LINENO" 5; } 6074 else 6075 ac_cv_sizeof_void_p=0 6076 fi 6077fi 6078 6079fi 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6081$as_echo "$ac_cv_sizeof_void_p" >&6; } 6082 6083 6084 6085cat >>confdefs.h <<_ACEOF 6086#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 6087_ACEOF 6088 6089 6090# The cast to long int works around a bug in the HP C Compiler 6091# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6092# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6093# This bug is HP SR number 8606223364. 6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 6095$as_echo_n "checking size of short... " >&6; } 6096if ${ac_cv_sizeof_short+:} false; then : 6097 $as_echo_n "(cached) " >&6 6098else 6099 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 6100 6101else 6102 if test "$ac_cv_type_short" = yes; then 6103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6105as_fn_error 77 "cannot compute sizeof (short) 6106See \`config.log' for more details" "$LINENO" 5; } 6107 else 6108 ac_cv_sizeof_short=0 6109 fi 6110fi 6111 6112fi 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 6114$as_echo "$ac_cv_sizeof_short" >&6; } 6115 6116 6117 6118cat >>confdefs.h <<_ACEOF 6119#define SIZEOF_SHORT $ac_cv_sizeof_short 6120_ACEOF 6121 6122 6123# The cast to long int works around a bug in the HP C Compiler 6124# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6125# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6126# This bug is HP SR number 8606223364. 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6128$as_echo_n "checking size of int... " >&6; } 6129if ${ac_cv_sizeof_int+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6133 6134else 6135 if test "$ac_cv_type_int" = yes; then 6136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6138as_fn_error 77 "cannot compute sizeof (int) 6139See \`config.log' for more details" "$LINENO" 5; } 6140 else 6141 ac_cv_sizeof_int=0 6142 fi 6143fi 6144 6145fi 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6147$as_echo "$ac_cv_sizeof_int" >&6; } 6148 6149 6150 6151cat >>confdefs.h <<_ACEOF 6152#define SIZEOF_INT $ac_cv_sizeof_int 6153_ACEOF 6154 6155 6156# The cast to long int works around a bug in the HP C Compiler 6157# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6158# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6159# This bug is HP SR number 8606223364. 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6161$as_echo_n "checking size of long... " >&6; } 6162if ${ac_cv_sizeof_long+:} false; then : 6163 $as_echo_n "(cached) " >&6 6164else 6165 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6166 6167else 6168 if test "$ac_cv_type_long" = yes; then 6169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6171as_fn_error 77 "cannot compute sizeof (long) 6172See \`config.log' for more details" "$LINENO" 5; } 6173 else 6174 ac_cv_sizeof_long=0 6175 fi 6176fi 6177 6178fi 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6180$as_echo "$ac_cv_sizeof_long" >&6; } 6181 6182 6183 6184cat >>confdefs.h <<_ACEOF 6185#define SIZEOF_LONG $ac_cv_sizeof_long 6186_ACEOF 6187 6188 6189ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 6190if test "x$ac_cv_type_long_long" = xyes; then : 6191 6192cat >>confdefs.h <<_ACEOF 6193#define HAVE_LONG_LONG 1 6194_ACEOF 6195 6196# The cast to long int works around a bug in the HP C Compiler 6197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6199# This bug is HP SR number 8606223364. 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 6201$as_echo_n "checking size of long long... " >&6; } 6202if ${ac_cv_sizeof_long_long+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 6206 6207else 6208 if test "$ac_cv_type_long_long" = yes; then 6209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6211as_fn_error 77 "cannot compute sizeof (long long) 6212See \`config.log' for more details" "$LINENO" 5; } 6213 else 6214 ac_cv_sizeof_long_long=0 6215 fi 6216fi 6217 6218fi 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 6220$as_echo "$ac_cv_sizeof_long_long" >&6; } 6221 6222 6223 6224cat >>confdefs.h <<_ACEOF 6225#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6226_ACEOF 6227 6228 6229fi 6230 6231ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 6232case $ac_cv_c_int8_t in #( 6233 no|yes) ;; #( 6234 *) 6235 6236cat >>confdefs.h <<_ACEOF 6237#define int8_t $ac_cv_c_int8_t 6238_ACEOF 6239;; 6240esac 6241 6242ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 6243case $ac_cv_c_int16_t in #( 6244 no|yes) ;; #( 6245 *) 6246 6247cat >>confdefs.h <<_ACEOF 6248#define int16_t $ac_cv_c_int16_t 6249_ACEOF 6250;; 6251esac 6252 6253ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 6254case $ac_cv_c_int32_t in #( 6255 no|yes) ;; #( 6256 *) 6257 6258cat >>confdefs.h <<_ACEOF 6259#define int32_t $ac_cv_c_int32_t 6260_ACEOF 6261;; 6262esac 6263 6264ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 6265case $ac_cv_c_int64_t in #( 6266 no|yes) ;; #( 6267 *) 6268 6269cat >>confdefs.h <<_ACEOF 6270#define int64_t $ac_cv_c_int64_t 6271_ACEOF 6272;; 6273esac 6274 6275 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 6277$as_echo_n "checking for unsigned long long int... " >&6; } 6278if ${ac_cv_type_unsigned_long_long_int+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 ac_cv_type_unsigned_long_long_int=yes 6282 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285 6286 /* For now, do not test the preprocessor; as of 2007 there are too many 6287 implementations with broken preprocessors. Perhaps this can 6288 be revisited in 2012. In the meantime, code should not expect 6289 #if to work with literals wider than 32 bits. */ 6290 /* Test literals. */ 6291 long long int ll = 9223372036854775807ll; 6292 long long int nll = -9223372036854775807LL; 6293 unsigned long long int ull = 18446744073709551615ULL; 6294 /* Test constant expressions. */ 6295 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 6296 ? 1 : -1)]; 6297 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 6298 ? 1 : -1)]; 6299 int i = 63; 6300int 6301main () 6302{ 6303/* Test availability of runtime routines for shift and division. */ 6304 long long int llmax = 9223372036854775807ll; 6305 unsigned long long int ullmax = 18446744073709551615ull; 6306 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 6307 | (llmax / ll) | (llmax % ll) 6308 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 6309 | (ullmax / ull) | (ullmax % ull)); 6310 ; 6311 return 0; 6312} 6313 6314_ACEOF 6315if ac_fn_cxx_try_link "$LINENO"; then : 6316 6317else 6318 ac_cv_type_unsigned_long_long_int=no 6319fi 6320rm -f core conftest.err conftest.$ac_objext \ 6321 conftest$ac_exeext conftest.$ac_ext 6322 fi 6323fi 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 6325$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 6326 if test $ac_cv_type_unsigned_long_long_int = yes; then 6327 6328$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 6329 6330 fi 6331 6332 6333 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 6335$as_echo_n "checking for long long int... " >&6; } 6336if ${ac_cv_type_long_long_int+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 ac_cv_type_long_long_int=yes 6340 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 6341 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 6342 if test $ac_cv_type_long_long_int = yes; then 6343 if test "$cross_compiling" = yes; then : 6344 : 6345else 6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6347/* end confdefs.h. */ 6348#include <limits.h> 6349 #ifndef LLONG_MAX 6350 # define HALF \ 6351 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 6352 # define LLONG_MAX (HALF - 1 + HALF) 6353 #endif 6354int 6355main () 6356{ 6357long long int n = 1; 6358 int i; 6359 for (i = 0; ; i++) 6360 { 6361 long long int m = n << i; 6362 if (m >> i != n) 6363 return 1; 6364 if (LLONG_MAX / 2 < m) 6365 break; 6366 } 6367 return 0; 6368 ; 6369 return 0; 6370} 6371_ACEOF 6372if ac_fn_cxx_try_run "$LINENO"; then : 6373 6374else 6375 ac_cv_type_long_long_int=no 6376fi 6377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6378 conftest.$ac_objext conftest.beam conftest.$ac_ext 6379fi 6380 6381 fi 6382 fi 6383fi 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 6385$as_echo "$ac_cv_type_long_long_int" >&6; } 6386 if test $ac_cv_type_long_long_int = yes; then 6387 6388$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 6389 6390 fi 6391 6392 6393 6394 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 6395if test "x$ac_cv_type_intmax_t" = xyes; then : 6396 6397$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 6398 6399else 6400 test $ac_cv_type_long_long_int = yes \ 6401 && ac_type='long long int' \ 6402 || ac_type='long int' 6403 6404cat >>confdefs.h <<_ACEOF 6405#define intmax_t $ac_type 6406_ACEOF 6407 6408fi 6409 6410 6411 6412 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 6413if test "x$ac_cv_type_intptr_t" = xyes; then : 6414 6415$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 6416 6417else 6418 for ac_type in 'int' 'long int' 'long long int'; do 6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6420/* end confdefs.h. */ 6421$ac_includes_default 6422int 6423main () 6424{ 6425static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6426test_array [0] = 0; 6427return test_array [0]; 6428 6429 ; 6430 return 0; 6431} 6432_ACEOF 6433if ac_fn_cxx_try_compile "$LINENO"; then : 6434 6435cat >>confdefs.h <<_ACEOF 6436#define intptr_t $ac_type 6437_ACEOF 6438 6439 ac_type= 6440fi 6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6442 test -z "$ac_type" && break 6443 done 6444fi 6445 6446 6447ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 6448case $ac_cv_c_uint8_t in #( 6449 no|yes) ;; #( 6450 *) 6451 6452$as_echo "#define _UINT8_T 1" >>confdefs.h 6453 6454 6455cat >>confdefs.h <<_ACEOF 6456#define uint8_t $ac_cv_c_uint8_t 6457_ACEOF 6458;; 6459 esac 6460 6461ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 6462case $ac_cv_c_uint16_t in #( 6463 no|yes) ;; #( 6464 *) 6465 6466 6467cat >>confdefs.h <<_ACEOF 6468#define uint16_t $ac_cv_c_uint16_t 6469_ACEOF 6470;; 6471 esac 6472 6473ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 6474case $ac_cv_c_uint32_t in #( 6475 no|yes) ;; #( 6476 *) 6477 6478$as_echo "#define _UINT32_T 1" >>confdefs.h 6479 6480 6481cat >>confdefs.h <<_ACEOF 6482#define uint32_t $ac_cv_c_uint32_t 6483_ACEOF 6484;; 6485 esac 6486 6487ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 6488case $ac_cv_c_uint64_t in #( 6489 no|yes) ;; #( 6490 *) 6491 6492$as_echo "#define _UINT64_T 1" >>confdefs.h 6493 6494 6495cat >>confdefs.h <<_ACEOF 6496#define uint64_t $ac_cv_c_uint64_t 6497_ACEOF 6498;; 6499 esac 6500 6501 6502 6503 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 6504if test "x$ac_cv_type_uintmax_t" = xyes; then : 6505 6506$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 6507 6508else 6509 test $ac_cv_type_unsigned_long_long_int = yes \ 6510 && ac_type='unsigned long long int' \ 6511 || ac_type='unsigned long int' 6512 6513cat >>confdefs.h <<_ACEOF 6514#define uintmax_t $ac_type 6515_ACEOF 6516 6517fi 6518 6519 6520 6521 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 6522if test "x$ac_cv_type_uintptr_t" = xyes; then : 6523 6524$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 6525 6526else 6527 for ac_type in 'unsigned int' 'unsigned long int' \ 6528 'unsigned long long int'; do 6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6530/* end confdefs.h. */ 6531$ac_includes_default 6532int 6533main () 6534{ 6535static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 6536test_array [0] = 0; 6537return test_array [0]; 6538 6539 ; 6540 return 0; 6541} 6542_ACEOF 6543if ac_fn_cxx_try_compile "$LINENO"; then : 6544 6545cat >>confdefs.h <<_ACEOF 6546#define uintptr_t $ac_type 6547_ACEOF 6548 6549 ac_type= 6550fi 6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6552 test -z "$ac_type" && break 6553 done 6554fi 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then 6570 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5 6571fi 6572 6573# check what underlying integer type int64_t uses 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5 6575$as_echo_n "checking for int64_t underlying type... " >&6; } 6576if ${ac_cv_int64_t_type+:} false; then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 6580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6581/* end confdefs.h. */ 6582 6583#ifdef HAVE_STDINT_H 6584#include <stdint.h> 6585#endif 6586template <typename T> struct X { }; 6587template <> 6588struct X<long> { typedef long t; }; 6589 6590int 6591main () 6592{ 6593X<int64_t>::t x; 6594 ; 6595 return 0; 6596} 6597_ACEOF 6598if ac_fn_cxx_try_compile "$LINENO"; then : 6599 ac_cv_int64_t_type=long 6600else 6601 ac_cv_int64_t_type="long long" 6602fi 6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6604fi 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5 6606$as_echo "$ac_cv_int64_t_type" >&6; } 6607if test "$ac_cv_int64_t_type" = "long"; then 6608 6609$as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h 6610 6611else 6612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6613/* end confdefs.h. */ 6614 6615#ifdef HAVE_STDINT_H 6616#include <stdint.h> 6617#endif 6618template <typename T> struct X { }; 6619template <> 6620struct X<long long> { typedef long long t; }; 6621 6622int 6623main () 6624{ 6625X<int64_t>::t x; 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630if ac_fn_cxx_try_compile "$LINENO"; then : 6631 6632else 6633 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5 6634fi 6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6636fi 6637 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5 6639$as_echo_n "checking for std::swap in <utility>... " >&6; } 6640if ${ac_cv_std_swap_in_utility+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 6644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6645/* end confdefs.h. */ 6646 6647#include <utility> 6648 6649int 6650main () 6651{ 6652int a, b; std::swap(a,b); 6653 ; 6654 return 0; 6655} 6656_ACEOF 6657if ac_fn_cxx_try_compile "$LINENO"; then : 6658 ac_cv_std_swap_in_utility=yes 6659else 6660 ac_cv_std_swap_in_utility=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6663fi 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5 6665$as_echo "$ac_cv_std_swap_in_utility" >&6; } 6666if test $ac_cv_std_swap_in_utility = yes; then 6667 6668$as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h 6669 6670fi 6671 6672# Check whether compiler is affected by placement new aliasing bug (PR 29286). 6673# If the host compiler is affected by the bug, and we build with optimization 6674# enabled (which happens e.g. when cross-compiling), the pool allocator may 6675# get miscompiled. Use -fno-strict-aliasing to work around this problem. 6676# Since there is no reliable feature check for the presence of this bug, 6677# we simply use a GCC version number check. (This should never trigger for 6678# stages 2 or 3 of a native bootstrap.) 6679aliasing_flags= 6680if test "$GCC" = yes; then 6681 saved_CXXFLAGS="$CXXFLAGS" 6682 6683 # The following test compilation will succeed if and only if $CXX accepts 6684 # -fno-strict-aliasing *and* is older than GCC 4.3. 6685 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5 6687$as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; } 6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6689/* end confdefs.h. */ 6690 6691#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) 6692#error compiler not affected by placement new aliasing bug 6693#endif 6694 6695_ACEOF 6696if ac_fn_cxx_try_compile "$LINENO"; then : 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6698$as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing' 6699else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701$as_echo "no" >&6; } 6702fi 6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6704 6705 CXXFLAGS="$saved_CXXFLAGS" 6706fi 6707 6708 6709 6710 6711# --------------------- 6712# Warnings and checking 6713# --------------------- 6714 6715# Check $CC warning features (if it's GCC). 6716# We want to use -pedantic, but we don't want warnings about 6717# * 'long long' 6718# * variadic macros 6719# * overlong strings 6720# * C++11 narrowing conversions in { } 6721# So, we only use -pedantic if we can disable those warnings. 6722 6723# In stage 1, disable -Wformat warnings from old GCCs about new % codes 6724# Check whether --enable-build-format-warnings was given. 6725if test "${enable_build_format_warnings+set}" = set; then : 6726 enableval=$enable_build_format_warnings; 6727else 6728 enable_build_format_warnings=yes 6729fi 6730 6731if test $enable_build_format_warnings = no; then : 6732 wf_opt=-Wno-format 6733else 6734 wf_opt= 6735fi 6736ac_ext=cpp 6737ac_cpp='$CXXCPP $CPPFLAGS' 6738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6741 6742loose_warn= 6743save_CXXFLAGS="$CXXFLAGS" 6744for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do 6745 # Do the check with the no- prefix removed since gcc silently 6746 # accepts any -Wno-* option on purpose 6747 case $real_option in 6748 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 6749 *) option=$real_option ;; 6750 esac 6751 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 6752 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 6754$as_echo_n "checking whether $CXX supports $option... " >&6; } 6755if eval \${$as_acx_Woption+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757else 6758 CXXFLAGS="$option" 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761 6762int 6763main () 6764{ 6765 6766 ; 6767 return 0; 6768} 6769_ACEOF 6770if ac_fn_cxx_try_compile "$LINENO"; then : 6771 eval "$as_acx_Woption=yes" 6772else 6773 eval "$as_acx_Woption=no" 6774fi 6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6776 6777fi 6778eval ac_res=\$$as_acx_Woption 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6780$as_echo "$ac_res" >&6; } 6781 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 6782 loose_warn="$loose_warn${loose_warn:+ }$real_option" 6783fi 6784 done 6785CXXFLAGS="$save_CXXFLAGS" 6786ac_ext=cpp 6787ac_cpp='$CXXCPP $CPPFLAGS' 6788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6791 6792 6793 6794ac_ext=c 6795ac_cpp='$CPP $CPPFLAGS' 6796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6798ac_compiler_gnu=$ac_cv_c_compiler_gnu 6799 6800c_loose_warn= 6801save_CFLAGS="$CFLAGS" 6802for real_option in -Wstrict-prototypes -Wmissing-prototypes; do 6803 # Do the check with the no- prefix removed since gcc silently 6804 # accepts any -Wno-* option on purpose 6805 case $real_option in 6806 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 6807 *) option=$real_option ;; 6808 esac 6809 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 6810 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 6812$as_echo_n "checking whether $CC supports $option... " >&6; } 6813if eval \${$as_acx_Woption+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815else 6816 CFLAGS="$option" 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819 6820int 6821main () 6822{ 6823 6824 ; 6825 return 0; 6826} 6827_ACEOF 6828if ac_fn_c_try_compile "$LINENO"; then : 6829 eval "$as_acx_Woption=yes" 6830else 6831 eval "$as_acx_Woption=no" 6832fi 6833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6834 6835fi 6836eval ac_res=\$$as_acx_Woption 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6838$as_echo "$ac_res" >&6; } 6839 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 6840 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option" 6841fi 6842 done 6843CFLAGS="$save_CFLAGS" 6844ac_ext=cpp 6845ac_cpp='$CXXCPP $CPPFLAGS' 6846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6849 6850 6851ac_ext=cpp 6852ac_cpp='$CXXCPP $CPPFLAGS' 6853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6856 6857strict_warn= 6858save_CXXFLAGS="$CXXFLAGS" 6859for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do 6860 # Do the check with the no- prefix removed since gcc silently 6861 # accepts any -Wno-* option on purpose 6862 case $real_option in 6863 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 6864 *) option=$real_option ;; 6865 esac 6866 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 6867 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 6869$as_echo_n "checking whether $CXX supports $option... " >&6; } 6870if eval \${$as_acx_Woption+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872else 6873 CXXFLAGS="$option" 6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875/* end confdefs.h. */ 6876 6877int 6878main () 6879{ 6880 6881 ; 6882 return 0; 6883} 6884_ACEOF 6885if ac_fn_cxx_try_compile "$LINENO"; then : 6886 eval "$as_acx_Woption=yes" 6887else 6888 eval "$as_acx_Woption=no" 6889fi 6890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6891 6892fi 6893eval ac_res=\$$as_acx_Woption 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6895$as_echo "$ac_res" >&6; } 6896 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 6897 strict_warn="$strict_warn${strict_warn:+ }$real_option" 6898fi 6899 done 6900CXXFLAGS="$save_CXXFLAGS" 6901ac_ext=cpp 6902ac_cpp='$CXXCPP $CPPFLAGS' 6903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6906 6907 6908ac_ext=c 6909ac_cpp='$CPP $CPPFLAGS' 6910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6912ac_compiler_gnu=$ac_cv_c_compiler_gnu 6913 6914c_strict_warn= 6915save_CFLAGS="$CFLAGS" 6916for real_option in -Wold-style-definition -Wc++-compat; do 6917 # Do the check with the no- prefix removed since gcc silently 6918 # accepts any -Wno-* option on purpose 6919 case $real_option in 6920 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 6921 *) option=$real_option ;; 6922 esac 6923 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 6924 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 6926$as_echo_n "checking whether $CC supports $option... " >&6; } 6927if eval \${$as_acx_Woption+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 CFLAGS="$option" 6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933 6934int 6935main () 6936{ 6937 6938 ; 6939 return 0; 6940} 6941_ACEOF 6942if ac_fn_c_try_compile "$LINENO"; then : 6943 eval "$as_acx_Woption=yes" 6944else 6945 eval "$as_acx_Woption=no" 6946fi 6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6948 6949fi 6950eval ac_res=\$$as_acx_Woption 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6952$as_echo "$ac_res" >&6; } 6953 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 6954 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option" 6955fi 6956 done 6957CFLAGS="$save_CFLAGS" 6958ac_ext=cpp 6959ac_cpp='$CXXCPP $CPPFLAGS' 6960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6963 6964 6965ac_ext=cpp 6966ac_cpp='$CXXCPP $CPPFLAGS' 6967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6970 6971# Do the check with the no- prefix removed from the warning options 6972# since gcc silently accepts any -Wno-* option on purpose 6973if test "$GXX" = yes; then : 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5 6975$as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; } 6976if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978else 6979 save_CXXFLAGS="$CXXFLAGS" 6980CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" 6981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982/* end confdefs.h. */ 6983 6984int 6985main () 6986{ 6987 6988 ; 6989 return 0; 6990} 6991_ACEOF 6992if ac_fn_cxx_try_compile "$LINENO"; then : 6993 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes 6994else 6995 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no 6996fi 6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6998CXXFLAGS="$save_CXXFLAGS" 6999fi 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5 7001$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; } 7002if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then : 7003 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" 7004fi 7005 7006fi 7007ac_ext=cpp 7008ac_cpp='$CXXCPP $CPPFLAGS' 7009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7012 7013 7014ac_ext=cpp 7015ac_cpp='$CXXCPP $CPPFLAGS' 7016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7019 7020# Check whether --enable-werror-always was given. 7021if test "${enable_werror_always+set}" = set; then : 7022 enableval=$enable_werror_always; 7023else 7024 enable_werror_always=no 7025fi 7026 7027if test $enable_werror_always = yes; then : 7028 strict_warn="$strict_warn${strict_warn:+ }-Werror" 7029fi 7030 7031ac_ext=cpp 7032ac_cpp='$CXXCPP $CPPFLAGS' 7033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7036 7037 7038 7039# The above macros do nothing if the compiler is not GCC. However, the 7040# Makefile has more goo to add other flags, so these variables are used 7041# to enable warnings only for GCC. 7042warn_cflags= 7043warn_cxxflags= 7044if test "x$GCC" = "xyes"; then 7045 warn_cflags='$(GCC_WARN_CFLAGS)' 7046 warn_cxxflags='$(GCC_WARN_CXXFLAGS)' 7047fi 7048 7049 7050 7051# Disable exceptions and RTTI if building with g++ 7052ac_ext=c 7053ac_cpp='$CPP $CPPFLAGS' 7054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7056ac_compiler_gnu=$ac_cv_c_compiler_gnu 7057 7058noexception_flags= 7059save_CFLAGS="$CFLAGS" 7060for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do 7061 # Do the check with the no- prefix removed since gcc silently 7062 # accepts any -Wno-* option on purpose 7063 case $real_option in 7064 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 7065 *) option=$real_option ;; 7066 esac 7067 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 7068 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 7070$as_echo_n "checking whether $CC supports $option... " >&6; } 7071if eval \${$as_acx_Woption+:} false; then : 7072 $as_echo_n "(cached) " >&6 7073else 7074 CFLAGS="$option" 7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7076/* end confdefs.h. */ 7077 7078int 7079main () 7080{ 7081 7082 ; 7083 return 0; 7084} 7085_ACEOF 7086if ac_fn_c_try_compile "$LINENO"; then : 7087 eval "$as_acx_Woption=yes" 7088else 7089 eval "$as_acx_Woption=no" 7090fi 7091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7092 7093fi 7094eval ac_res=\$$as_acx_Woption 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7096$as_echo "$ac_res" >&6; } 7097 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 7098 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option" 7099fi 7100 done 7101CFLAGS="$save_CFLAGS" 7102ac_ext=cpp 7103ac_cpp='$CXXCPP $CPPFLAGS' 7104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7107 7108 7109 7110# Enable expensive internal checks 7111is_release= 7112if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then 7113 is_release=yes 7114fi 7115 7116# Check whether --enable-checking was given. 7117if test "${enable_checking+set}" = set; then : 7118 enableval=$enable_checking; ac_checking_flags="${enableval}" 7119else 7120 7121# Determine the default checks. 7122if test x$is_release = x ; then 7123 ac_checking_flags=yes,extra 7124else 7125 ac_checking_flags=release 7126fi 7127fi 7128 7129IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 7130for check in release $ac_checking_flags 7131do 7132 case $check in 7133 # these set all the flags to specific states 7134 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ; 7135 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ; 7136 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ; 7137 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 7138 ac_tree_checking=1 ; ac_valgrind_checking= ; 7139 ac_types_checking=1 ;; 7140 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ; 7141 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ; 7142 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ; 7143 ac_rtlflag_checking= ; ac_runtime_checking= ; 7144 ac_tree_checking= ; ac_valgrind_checking= ; 7145 ac_types_checking= ;; 7146 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ; 7147 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ; 7148 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ; 7149 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ; 7150 ac_tree_checking=1 ; ac_valgrind_checking= ; 7151 ac_types_checking=1 ;; 7152 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ; 7153 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ; 7154 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ; 7155 ac_rtlflag_checking= ; ac_runtime_checking=1 ; 7156 ac_tree_checking= ; ac_valgrind_checking= ; 7157 ac_types_checking= ;; 7158 # these enable particular checks 7159 assert) ac_assert_checking=1 ;; 7160 df) ac_df_checking=1 ;; 7161 extra) ac_extra_checking=1 ;; 7162 fold) ac_fold_checking=1 ;; 7163 gc) ac_gc_checking=1 ;; 7164 gcac) ac_gc_always_collect=1 ;; 7165 gimple) ac_gimple_checking=1 ;; 7166 misc) ac_checking=1 ;; 7167 rtl) ac_rtl_checking=1 ;; 7168 rtlflag) ac_rtlflag_checking=1 ;; 7169 runtime) ac_runtime_checking=1 ;; 7170 tree) ac_tree_checking=1 ;; 7171 types) ac_types_checking=1 ;; 7172 valgrind) ac_valgrind_checking=1 ;; 7173 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;; 7174 esac 7175done 7176IFS="$ac_save_IFS" 7177 7178nocommon_flag="" 7179if test x$ac_checking != x ; then 7180 7181$as_echo "#define CHECKING_P 1" >>confdefs.h 7182 7183 nocommon_flag=-fno-common 7184else 7185 $as_echo "#define CHECKING_P 0" >>confdefs.h 7186 7187fi 7188 7189if test x$ac_extra_checking != x ; then 7190 7191$as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h 7192 7193else 7194 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h 7195 7196fi 7197if test x$ac_df_checking != x ; then 7198 7199$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h 7200 7201fi 7202if test x$ac_assert_checking != x ; then 7203 7204$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h 7205 7206fi 7207if test x$ac_gimple_checking != x ; then 7208 7209$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h 7210 7211fi 7212 7213if test x$ac_runtime_checking != x ; then 7214 7215$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h 7216 7217fi 7218if test x$ac_tree_checking != x ; then 7219 7220$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h 7221 7222 TREECHECKING=yes 7223fi 7224if test x$ac_types_checking != x ; then 7225 7226$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h 7227 7228fi 7229 7230if test x$ac_rtl_checking != x ; then 7231 7232$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h 7233 7234fi 7235if test x$ac_rtlflag_checking != x ; then 7236 7237$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h 7238 7239fi 7240if test x$ac_gc_checking != x ; then 7241 7242$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h 7243 7244fi 7245if test x$ac_gc_always_collect != x ; then 7246 7247$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h 7248 7249fi 7250if test x$ac_fold_checking != x ; then 7251 7252$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h 7253 7254fi 7255valgrind_path_defines= 7256valgrind_command= 7257 7258ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default" 7259if test "x$ac_cv_header_valgrind_h" = xyes; then : 7260 have_valgrind_h=yes 7261else 7262 have_valgrind_h=no 7263fi 7264 7265 7266 7267# It is certainly possible that there's valgrind but no valgrind.h. 7268# GCC relies on making annotations so we must have both. 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5 7270$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; } 7271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273#include <valgrind/memcheck.h> 7274#ifndef VALGRIND_DISCARD 7275#error VALGRIND_DISCARD not defined 7276#endif 7277_ACEOF 7278if ac_fn_cxx_try_cpp "$LINENO"; then : 7279 gcc_cv_header_valgrind_memcheck_h=yes 7280else 7281 gcc_cv_header_valgrind_memcheck_h=no 7282fi 7283rm -f conftest.err conftest.i conftest.$ac_ext 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5 7285$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; } 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5 7287$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; } 7288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7289/* end confdefs.h. */ 7290#include <memcheck.h> 7291#ifndef VALGRIND_DISCARD 7292#error VALGRIND_DISCARD not defined 7293#endif 7294_ACEOF 7295if ac_fn_cxx_try_cpp "$LINENO"; then : 7296 gcc_cv_header_memcheck_h=yes 7297else 7298 gcc_cv_header_memcheck_h=no 7299fi 7300rm -f conftest.err conftest.i conftest.$ac_ext 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5 7302$as_echo "$gcc_cv_header_memcheck_h" >&6; } 7303if test $gcc_cv_header_valgrind_memcheck_h = yes; then 7304 7305$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h 7306 7307fi 7308if test $gcc_cv_header_memcheck_h = yes; then 7309 7310$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h 7311 7312fi 7313 7314if test x$ac_valgrind_checking != x ; then 7315 7316# Prepare PATH_SEPARATOR. 7317# The user is always right. 7318if test "${PATH_SEPARATOR+set}" != set; then 7319 echo "#! /bin/sh" >conf$$.sh 7320 echo "exit 0" >>conf$$.sh 7321 chmod +x conf$$.sh 7322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7323 PATH_SEPARATOR=';' 7324 else 7325 PATH_SEPARATOR=: 7326 fi 7327 rm -f conf$$.sh 7328fi 7329 7330# Find out how to test for executable files. Don't use a zero-byte file, 7331# as systems may use methods other than mode bits to determine executability. 7332cat >conf$$.file <<_ASEOF 7333#! /bin/sh 7334exit 0 7335_ASEOF 7336chmod +x conf$$.file 7337if test -x conf$$.file >/dev/null 2>&1; then 7338 ac_executable_p="test -x" 7339else 7340 ac_executable_p="test -f" 7341fi 7342rm -f conf$$.file 7343 7344# Extract the first word of "valgrind", so it can be a program name with args. 7345set dummy valgrind; ac_word=$2 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7347$as_echo_n "checking for $ac_word... " >&6; } 7348if ${ac_cv_path_valgrind_path+:} false; then : 7349 $as_echo_n "(cached) " >&6 7350else 7351 case "$valgrind_path" in 7352 [\\/]* | ?:[\\/]*) 7353 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path. 7354 ;; 7355 *) 7356 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7357 for ac_dir in $PATH; do 7358 IFS="$ac_save_IFS" 7359 test -z "$ac_dir" && ac_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7362 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then 7363 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext" 7364 break 2 7365 fi 7366 fi 7367 done 7368 done 7369 IFS="$ac_save_IFS" 7370 ;; 7371esac 7372fi 7373valgrind_path="$ac_cv_path_valgrind_path" 7374if test -n "$valgrind_path"; then 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5 7376$as_echo "$valgrind_path" >&6; } 7377else 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7379$as_echo "no" >&6; } 7380fi 7381 7382 if test "x$valgrind_path" = "x" \ 7383 || (test $have_valgrind_h = no \ 7384 && test $gcc_cv_header_memcheck_h = no \ 7385 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7386 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7387 fi 7388 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"' 7389 valgrind_command="$valgrind_path -q" 7390 7391$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h 7392 7393fi 7394 7395 7396 7397# Enable code coverage collection 7398# Check whether --enable-coverage was given. 7399if test "${enable_coverage+set}" = set; then : 7400 enableval=$enable_coverage; case "${enableval}" in 7401 yes|noopt) 7402 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions" 7403 ;; 7404 opt) 7405 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions" 7406 ;; 7407 no) 7408 # a.k.a. --disable-coverage 7409 coverage_flags="" 7410 ;; 7411 *) 7412 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5 7413 ;; 7414esac 7415else 7416 coverage_flags="" 7417fi 7418 7419 7420 7421# Check whether --enable-gather-detailed-mem-stats was given. 7422if test "${enable_gather_detailed_mem_stats+set}" = set; then : 7423 enableval=$enable_gather_detailed_mem_stats; 7424else 7425 enable_gather_detailed_mem_stats=no 7426fi 7427 7428gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi` 7429 7430cat >>confdefs.h <<_ACEOF 7431#define GATHER_STATISTICS $gather_stats 7432_ACEOF 7433 7434 7435# Check whether --enable-valgrind-annotations was given. 7436if test "${enable_valgrind_annotations+set}" = set; then : 7437 enableval=$enable_valgrind_annotations; 7438else 7439 enable_valgrind_annotations=no 7440fi 7441 7442if test x$enable_valgrind_annotations != xno \ 7443 || test x$ac_valgrind_checking != x; then 7444 if (test $have_valgrind_h = no \ 7445 && test $gcc_cv_header_memcheck_h = no \ 7446 && test $gcc_cv_header_valgrind_memcheck_h = no); then 7447 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 7448 fi 7449 7450$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h 7451 7452fi 7453 7454# ------------------------------- 7455# Miscenalleous configure options 7456# ------------------------------- 7457 7458# With stabs 7459 7460# Check whether --with-stabs was given. 7461if test "${with_stabs+set}" = set; then : 7462 withval=$with_stabs; stabs="$with_stabs" 7463else 7464 stabs=no 7465fi 7466 7467 7468# Determine whether or not multilibs are enabled. 7469# Check whether --enable-multilib was given. 7470if test "${enable_multilib+set}" = set; then : 7471 enableval=$enable_multilib; 7472else 7473 enable_multilib=yes 7474fi 7475 7476 7477 7478# Determine whether or not multiarch is enabled. 7479# Check whether --enable-multiarch was given. 7480if test "${enable_multiarch+set}" = set; then : 7481 enableval=$enable_multiarch; case "${enableval}" in 7482yes|no|auto) enable_multiarch=$enableval;; 7483*) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;; 7484esac 7485else 7486 enable_multiarch=auto 7487fi 7488 7489if test x${enable_multiarch} = xauto; then 7490 if test x${with_native_system_header_dir} != x; then 7491 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)" 7492 enable_multiarch=no 7493 fi 7494 if test x$host != x$target && test "x$with_sysroot" = x; then 7495 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)" 7496 enable_multiarch=no 7497 fi 7498fi 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5 7500$as_echo_n "checking for multiarch configuration... " >&6; } 7501 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5 7503$as_echo "$enable_multiarch$ma_msg_suffix" >&6; } 7504 7505# needed for setting the multiarch name for soft-float/hard-float ABIs 7506 7507 7508 7509# default stack clash protection guard size as power of twos in bytes. 7510# Please keep these in sync with params.def. 7511stk_clash_min=12 7512stk_clash_max=30 7513 7514# Keep the default value when the option is not used to 0, this allows us to 7515# distinguish between the cases where the user specifially set a value via 7516# configure and when the normal default value is used. 7517 7518# Check whether --with-stack-clash-protection-guard-size was given. 7519if test "${with_stack_clash_protection_guard_size+set}" = set; then : 7520 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size" 7521else 7522 DEFAULT_STK_CLASH_GUARD_SIZE=0 7523fi 7524 7525if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \ 7526 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \ 7527 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then 7528 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 7529fi 7530 7531 7532cat >>confdefs.h <<_ACEOF 7533#define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE 7534_ACEOF 7535 7536 7537# Enable __cxa_atexit for C++. 7538# Check whether --enable-__cxa_atexit was given. 7539if test "${enable___cxa_atexit+set}" = set; then : 7540 enableval=$enable___cxa_atexit; 7541fi 7542 7543 7544# Enable C extension for decimal float if target supports it. 7545 7546# Check whether --enable-decimal-float was given. 7547if test "${enable_decimal_float+set}" = set; then : 7548 enableval=$enable_decimal_float; 7549 case $enable_decimal_float in 7550 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;; 7551 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float. 7552Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; 7553 esac 7554 7555else 7556 7557 case $target in 7558 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ 7559 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ 7560 i?86*-*-mingw* | x86_64*-*-mingw* | \ 7561 i?86*-*-cygwin* | x86_64*-*-cygwin*) 7562 enable_decimal_float=yes 7563 ;; 7564 *) 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5 7566$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;} 7567 enable_decimal_float=no 7568 ;; 7569 esac 7570 7571fi 7572 7573 7574# x86's use BID format instead of DPD 7575case x$enable_decimal_float in 7576 xyes) 7577 case $target in 7578 i?86*-*-* | x86_64*-*-*) 7579 enable_decimal_float=bid 7580 ;; 7581 *) 7582 enable_decimal_float=dpd 7583 ;; 7584 esac 7585 default_decimal_float=$enable_decimal_float 7586 ;; 7587 xno) 7588 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper 7589 # dependency on libdecnumber. 7590 default_decimal_float=dpd 7591 ;; 7592esac 7593 7594 7595 7596 7597dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi` 7598 7599cat >>confdefs.h <<_ACEOF 7600#define ENABLE_DECIMAL_FLOAT $dfp 7601_ACEOF 7602 7603 7604# Use default_decimal_float for dependency. 7605enable_decimal_float=$default_decimal_float 7606 7607bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi` 7608 7609cat >>confdefs.h <<_ACEOF 7610#define ENABLE_DECIMAL_BID_FORMAT $bid 7611_ACEOF 7612 7613 7614# Enable C extension for fixed-point arithmetic. 7615# Check whether --enable-fixed-point was given. 7616if test "${enable_fixed_point+set}" = set; then : 7617 enableval=$enable_fixed_point; 7618else 7619 7620 case $target in 7621 arm*) 7622 enable_fixed_point=yes 7623 ;; 7624 7625 mips*-*-*) 7626 enable_fixed_point=yes 7627 ;; 7628 *) 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5 7630$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;} 7631 enable_fixed_point=no 7632 ;; 7633 esac 7634 7635fi 7636 7637 7638 7639fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi` 7640 7641cat >>confdefs.h <<_ACEOF 7642#define ENABLE_FIXED_POINT $fixedpoint 7643_ACEOF 7644 7645 7646# Enable threads 7647# Pass with no value to take the default 7648# Pass with a value to specify a thread package 7649# Check whether --enable-threads was given. 7650if test "${enable_threads+set}" = set; then : 7651 enableval=$enable_threads; 7652else 7653 enable_threads='' 7654fi 7655 7656 7657# Check whether --enable-tls was given. 7658if test "${enable_tls+set}" = set; then : 7659 enableval=$enable_tls; 7660 case $enable_tls in 7661 yes | no) ;; 7662 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls. 7663Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 7664 esac 7665 7666else 7667 enable_tls='' 7668fi 7669 7670 7671# Check whether --enable-vtable-verify was given. 7672if test "${enable_vtable_verify+set}" = set; then : 7673 enableval=$enable_vtable_verify; 7674else 7675 enable_vtable_verify=no 7676fi 7677 7678vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi` 7679 7680cat >>confdefs.h <<_ACEOF 7681#define ENABLE_VTABLE_VERIFY $vtable_verify 7682_ACEOF 7683 7684 7685# Check whether --enable-objc-gc was given. 7686if test "${enable_objc_gc+set}" = set; then : 7687 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then 7688 objc_boehm_gc='' 7689else 7690 objc_boehm_gc=1 7691fi 7692else 7693 objc_boehm_gc='' 7694fi 7695 7696 7697 7698# Check whether --with-dwarf2 was given. 7699if test "${with_dwarf2+set}" = set; then : 7700 withval=$with_dwarf2; dwarf2="$with_dwarf2" 7701else 7702 dwarf2=no 7703fi 7704 7705 7706# Check whether --enable-shared was given. 7707if test "${enable_shared+set}" = set; then : 7708 enableval=$enable_shared; 7709 case $enable_shared in 7710 yes | no) ;; 7711 *) 7712 enable_shared=no 7713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 7714 for pkg in $enableval; do 7715 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then 7716 enable_shared=yes 7717 fi 7718 done 7719 IFS="$ac_save_ifs" 7720 ;; 7721 esac 7722 7723else 7724 enable_shared=yes 7725fi 7726 7727 7728 7729# Check whether --enable-gcov was given. 7730if test "${enable_gcov+set}" = set; then : 7731 enableval=$enable_gcov; 7732else 7733 enable_gcov=yes 7734fi 7735 7736 7737 7738 7739# Check whether --with-specs was given. 7740if test "${with_specs+set}" = set; then : 7741 withval=$with_specs; CONFIGURE_SPECS=$withval 7742else 7743 CONFIGURE_SPECS= 7744 7745fi 7746 7747 7748 7749 7750 7751# Check whether --with-pkgversion was given. 7752if test "${with_pkgversion+set}" = set; then : 7753 withval=$with_pkgversion; case "$withval" in 7754 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; 7755 no) PKGVERSION= ;; 7756 *) PKGVERSION="($withval) " ;; 7757 esac 7758else 7759 PKGVERSION="(GCC) " 7760 7761fi 7762 7763 7764 7765 7766 7767# Check whether --with-bugurl was given. 7768if test "${with_bugurl+set}" = set; then : 7769 withval=$with_bugurl; case "$withval" in 7770 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 7771 no) BUGURL= 7772 ;; 7773 *) BUGURL="$withval" 7774 ;; 7775 esac 7776else 7777 BUGURL="https://gcc.gnu.org/bugs/" 7778 7779fi 7780 7781 case ${BUGURL} in 7782 "") 7783 REPORT_BUGS_TO= 7784 REPORT_BUGS_TEXI= 7785 ;; 7786 *) 7787 REPORT_BUGS_TO="<$BUGURL>" 7788 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 7789 ;; 7790 esac; 7791 7792 7793 7794 7795# Sanity check enable_languages in case someone does not run the toplevel 7796# configure # script. 7797# Check whether --enable-languages was given. 7798if test "${enable_languages+set}" = set; then : 7799 enableval=$enable_languages; case ,${enable_languages}, in 7800 ,,|,yes,) 7801 # go safe -- we cannot be much sure without the toplevel 7802 # configure's 7803 # analysis of which target libs are present and usable 7804 enable_languages=c 7805 ;; 7806 *,all,*) 7807 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5 7808 ;; 7809 *,c,*) 7810 ;; 7811 *) 7812 enable_languages=c,${enable_languages} 7813 ;; 7814esac 7815else 7816 enable_languages=c 7817fi 7818 7819 7820if test x"$enable_as_accelerator_for" != x; then 7821 7822$as_echo "#define ACCEL_COMPILER 1" >>confdefs.h 7823 7824 enable_as_accelerator=yes 7825 case "${target}" in 7826 *-intelmicemul-*) 7827 # In this case we expect offload compiler to be built as native, so we 7828 # need to rename the driver to avoid clashes with host's drivers. 7829 program_transform_name="s&^&${target}-&" ;; 7830 esac 7831 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#" 7832 program_transform_name=`echo $program_transform_name | sed $sedscript` 7833 accel_dir_suffix=/accel/${target_noncanonical} 7834 real_target_noncanonical=${enable_as_accelerator_for} 7835fi 7836 7837 7838 7839 7840for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do 7841 tgt=`echo $tgt | sed 's/=.*//'` 7842 7843 if echo "$tgt" | grep "^hsa" > /dev/null ; then 7844 enable_hsa=1 7845 else 7846 enable_offloading=1 7847 fi 7848 7849 if test x"$offload_targets" = x; then 7850 offload_targets=$tgt 7851 else 7852 offload_targets="$offload_targets,$tgt" 7853 fi 7854done 7855 7856cat >>confdefs.h <<_ACEOF 7857#define OFFLOAD_TARGETS "$offload_targets" 7858_ACEOF 7859 7860if test x"$enable_offloading" != x; then 7861 7862$as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h 7863 7864else 7865 7866$as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h 7867 7868fi 7869 7870if test x"$enable_hsa" = x1 ; then 7871 7872$as_echo "#define ENABLE_HSA 1" >>confdefs.h 7873 7874fi 7875 7876 7877# Check whether --with-multilib-list was given. 7878if test "${with_multilib_list+set}" = set; then : 7879 withval=$with_multilib_list; : 7880else 7881 with_multilib_list=default 7882fi 7883 7884 7885# ------------------------- 7886# Checks for other programs 7887# ------------------------- 7888 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7890$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 7891set x ${MAKE-make} 7892ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 7893if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 cat >conftest.make <<\_ACEOF 7897SHELL = /bin/sh 7898all: 7899 @echo '@@@%%%=$(MAKE)=@@@%%%' 7900_ACEOF 7901# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7902case `${MAKE-make} -f conftest.make 2>/dev/null` in 7903 *@@@%%%=?*=@@@%%%*) 7904 eval ac_cv_prog_make_${ac_make}_set=yes;; 7905 *) 7906 eval ac_cv_prog_make_${ac_make}_set=no;; 7907esac 7908rm -f conftest.make 7909fi 7910if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7912$as_echo "yes" >&6; } 7913 SET_MAKE= 7914else 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7916$as_echo "no" >&6; } 7917 SET_MAKE="MAKE=${MAKE-make}" 7918fi 7919 7920 7921# Find some useful tools 7922for ac_prog in gawk mawk nawk awk 7923do 7924 # Extract the first word of "$ac_prog", so it can be a program name with args. 7925set dummy $ac_prog; ac_word=$2 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7927$as_echo_n "checking for $ac_word... " >&6; } 7928if ${ac_cv_prog_AWK+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 if test -n "$AWK"; then 7932 ac_cv_prog_AWK="$AWK" # Let the user override the test. 7933else 7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7935for as_dir in $PATH 7936do 7937 IFS=$as_save_IFS 7938 test -z "$as_dir" && as_dir=. 7939 for ac_exec_ext in '' $ac_executable_extensions; do 7940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7941 ac_cv_prog_AWK="$ac_prog" 7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7943 break 2 7944 fi 7945done 7946 done 7947IFS=$as_save_IFS 7948 7949fi 7950fi 7951AWK=$ac_cv_prog_AWK 7952if test -n "$AWK"; then 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 7954$as_echo "$AWK" >&6; } 7955else 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7957$as_echo "no" >&6; } 7958fi 7959 7960 7961 test -n "$AWK" && break 7962done 7963 7964# We need awk to create options.c and options.h. 7965# Bail out if it's missing. 7966case ${AWK} in 7967 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;; 7968esac 7969 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7971$as_echo_n "checking whether ln -s works... " >&6; } 7972if ${gcc_cv_prog_LN_S+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 rm -f conftestdata_t 7976echo >conftestdata_f 7977if ln -s conftestdata_f conftestdata_t 2>/dev/null 7978then 7979 gcc_cv_prog_LN_S="ln -s" 7980else 7981 if ln conftestdata_f conftestdata_t 2>/dev/null 7982 then 7983 gcc_cv_prog_LN_S=ln 7984 else 7985 if cp -p conftestdata_f conftestdata_t 2>/dev/null 7986 then 7987 gcc_cv_prog_LN_S="cp -p" 7988 else 7989 gcc_cv_prog_LN_S=cp 7990 fi 7991 fi 7992fi 7993rm -f conftestdata_f conftestdata_t 7994 7995fi 7996LN_S="$gcc_cv_prog_LN_S" 7997if test "$gcc_cv_prog_LN_S" = "ln -s"; then 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7999$as_echo "yes" >&6; } 8000else 8001 if test "$gcc_cv_prog_LN_S" = "ln"; then 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5 8003$as_echo "no, using ln" >&6; } 8004 else 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5 8006$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; } 8007 fi 8008fi 8009 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 8011$as_echo_n "checking whether ln works... " >&6; } 8012if ${acx_cv_prog_LN+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 rm -f conftestdata_t 8016echo >conftestdata_f 8017if ln conftestdata_f conftestdata_t 2>/dev/null 8018then 8019 acx_cv_prog_LN=ln 8020else 8021 acx_cv_prog_LN=no 8022fi 8023rm -f conftestdata_f conftestdata_t 8024 8025fi 8026if test $acx_cv_prog_LN = no; then 8027 LN="$LN_S" 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 8029$as_echo "no, using $LN" >&6; } 8030else 8031 LN="$acx_cv_prog_LN" 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8033$as_echo "yes" >&6; } 8034fi 8035 8036if test -n "$ac_tool_prefix"; then 8037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8038set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8040$as_echo_n "checking for $ac_word... " >&6; } 8041if ${ac_cv_prog_RANLIB+:} false; then : 8042 $as_echo_n "(cached) " >&6 8043else 8044 if test -n "$RANLIB"; then 8045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8046else 8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8048for as_dir in $PATH 8049do 8050 IFS=$as_save_IFS 8051 test -z "$as_dir" && as_dir=. 8052 for ac_exec_ext in '' $ac_executable_extensions; do 8053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8056 break 2 8057 fi 8058done 8059 done 8060IFS=$as_save_IFS 8061 8062fi 8063fi 8064RANLIB=$ac_cv_prog_RANLIB 8065if test -n "$RANLIB"; then 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8067$as_echo "$RANLIB" >&6; } 8068else 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8070$as_echo "no" >&6; } 8071fi 8072 8073 8074fi 8075if test -z "$ac_cv_prog_RANLIB"; then 8076 ac_ct_RANLIB=$RANLIB 8077 # Extract the first word of "ranlib", so it can be a program name with args. 8078set dummy ranlib; ac_word=$2 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8080$as_echo_n "checking for $ac_word... " >&6; } 8081if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 if test -n "$ac_ct_RANLIB"; then 8085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8086else 8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8088for as_dir in $PATH 8089do 8090 IFS=$as_save_IFS 8091 test -z "$as_dir" && as_dir=. 8092 for ac_exec_ext in '' $ac_executable_extensions; do 8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8094 ac_cv_prog_ac_ct_RANLIB="ranlib" 8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8096 break 2 8097 fi 8098done 8099 done 8100IFS=$as_save_IFS 8101 8102fi 8103fi 8104ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8105if test -n "$ac_ct_RANLIB"; then 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8107$as_echo "$ac_ct_RANLIB" >&6; } 8108else 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8110$as_echo "no" >&6; } 8111fi 8112 8113 if test "x$ac_ct_RANLIB" = x; then 8114 RANLIB=":" 8115 else 8116 case $cross_compiling:$ac_tool_warned in 8117yes:) 8118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8120ac_tool_warned=yes ;; 8121esac 8122 RANLIB=$ac_ct_RANLIB 8123 fi 8124else 8125 RANLIB="$ac_cv_prog_RANLIB" 8126fi 8127 8128ranlib_flags="" 8129 8130 8131# Find a good install program. We prefer a C program (faster), 8132# so one script is as good as another. But avoid the broken or 8133# incompatible versions: 8134# SysV /etc/install, /usr/sbin/install 8135# SunOS /usr/etc/install 8136# IRIX /sbin/install 8137# AIX /bin/install 8138# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8140# ./install, which can be erroneously created by make from ./install.sh. 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5 8142$as_echo_n "checking for a BSD compatible install... " >&6; } 8143if test -z "$INSTALL"; then 8144if ${ac_cv_path_install+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 8148 for ac_dir in $PATH; do 8149 # Account for people who put trailing slashes in PATH elements. 8150 case "$ac_dir/" in 8151 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 8152 *) 8153 # OSF1 and SCO ODT 3.0 have their own names for install. 8154 for ac_prog in ginstall scoinst install; do 8155 if test -f $ac_dir/$ac_prog; then 8156 if test $ac_prog = install && 8157 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 8158 # AIX install. It has an incompatible calling convention. 8159 # OSF/1 installbsd also uses dspmsg, but is usable. 8160 : 8161 else 8162 ac_cv_path_install="$ac_dir/$ac_prog -c" 8163 break 2 8164 fi 8165 fi 8166 done 8167 ;; 8168 esac 8169 done 8170 IFS="$ac_save_IFS" 8171 8172fi 8173 if test "${ac_cv_path_install+set}" = set; then 8174 INSTALL="$ac_cv_path_install" 8175 else 8176 # As a last resort, use the slow shell script. We don't cache a 8177 # path for INSTALL within a source directory, because that will 8178 # break other packages using the cache if that directory is 8179 # removed, or if the path is relative. 8180 INSTALL="$ac_install_sh" 8181 fi 8182fi 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8184$as_echo "$INSTALL" >&6; } 8185 8186# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8187# It thinks the first close brace ends the variable substitution. 8188test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8189 8190test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8191 8192 8193# See if cmp has --ignore-initial. 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5 8195$as_echo_n "checking for cmp's capabilities... " >&6; } 8196if ${gcc_cv_prog_cmp_skip+:} false; then : 8197 $as_echo_n "(cached) " >&6 8198else 8199 echo abfoo >t1 8200 echo cdfoo >t2 8201 gcc_cv_prog_cmp_skip=slowcompare 8202 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 8203 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 8204 : 8205 else 8206 gcc_cv_prog_cmp_skip=gnucompare 8207 fi 8208 fi 8209 if test $gcc_cv_prog_cmp_skip = slowcompare ; then 8210 if cmp t1 t2 2 2 > /dev/null 2>&1; then 8211 if cmp t1 t2 1 1 > /dev/null 2>&1; then 8212 : 8213 else 8214 gcc_cv_prog_cmp_skip=fastcompare 8215 fi 8216 fi 8217 fi 8218 rm t1 t2 8219 8220fi 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 8222$as_echo "$gcc_cv_prog_cmp_skip" >&6; } 8223make_compare_target=$gcc_cv_prog_cmp_skip 8224 8225 8226 8227# See if we have the mktemp command. 8228# Extract the first word of "mktemp", so it can be a program name with args. 8229set dummy mktemp; ac_word=$2 8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8231$as_echo_n "checking for $ac_word... " >&6; } 8232if ${ac_cv_prog_have_mktemp_command+:} false; then : 8233 $as_echo_n "(cached) " >&6 8234else 8235 if test -n "$have_mktemp_command"; then 8236 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test. 8237else 8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8239for as_dir in $PATH 8240do 8241 IFS=$as_save_IFS 8242 test -z "$as_dir" && as_dir=. 8243 for ac_exec_ext in '' $ac_executable_extensions; do 8244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8245 ac_cv_prog_have_mktemp_command="yes" 8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8247 break 2 8248 fi 8249done 8250 done 8251IFS=$as_save_IFS 8252 8253 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no" 8254fi 8255fi 8256have_mktemp_command=$ac_cv_prog_have_mktemp_command 8257if test -n "$have_mktemp_command"; then 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5 8259$as_echo "$have_mktemp_command" >&6; } 8260else 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8262$as_echo "no" >&6; } 8263fi 8264 8265 8266 8267# See if makeinfo has been installed and is modern enough 8268# that we can use it. 8269 8270 # Extract the first word of "makeinfo", so it can be a program name with args. 8271set dummy makeinfo; ac_word=$2 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8273$as_echo_n "checking for $ac_word... " >&6; } 8274if ${ac_cv_prog_MAKEINFO+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276else 8277 if test -n "$MAKEINFO"; then 8278 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 8279else 8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8281for as_dir in $PATH 8282do 8283 IFS=$as_save_IFS 8284 test -z "$as_dir" && as_dir=. 8285 for ac_exec_ext in '' $ac_executable_extensions; do 8286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8287 ac_cv_prog_MAKEINFO="makeinfo" 8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8289 break 2 8290 fi 8291done 8292 done 8293IFS=$as_save_IFS 8294 8295fi 8296fi 8297MAKEINFO=$ac_cv_prog_MAKEINFO 8298if test -n "$MAKEINFO"; then 8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 8300$as_echo "$MAKEINFO" >&6; } 8301else 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8303$as_echo "no" >&6; } 8304fi 8305 8306 8307 if test -n "$MAKEINFO"; then 8308 # Found it, now check the version. 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 8310$as_echo_n "checking for modern makeinfo... " >&6; } 8311if ${gcc_cv_prog_makeinfo_modern+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313else 8314 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 8315 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 8316 8317 case $ac_prog_version in 8318 '') gcc_cv_prog_makeinfo_modern=no;; 8319 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 8320 *) gcc_cv_prog_makeinfo_modern=no;; 8321 esac 8322 8323fi 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 8325$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 8326 else 8327 gcc_cv_prog_makeinfo_modern=no 8328 fi 8329 if test $gcc_cv_prog_makeinfo_modern = no; then 8330 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 8331 fi 8332 8333if test $gcc_cv_prog_makeinfo_modern = no; then 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8335*** Makeinfo is missing or too old. 8336*** Info documentation will not be built." >&5 8337$as_echo "$as_me: WARNING: 8338*** Makeinfo is missing or too old. 8339*** Info documentation will not be built." >&2;} 8340 BUILD_INFO= 8341else 8342 BUILD_INFO=info 8343fi 8344 8345 8346# Is pod2man recent enough to regenerate manpages? 8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5 8348$as_echo_n "checking for recent Pod::Man... " >&6; } 8349if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8351$as_echo "yes" >&6; } 8352 GENERATED_MANPAGES=generated-manpages 8353else 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8355$as_echo "no" >&6; } 8356 GENERATED_MANPAGES= 8357fi 8358 8359 8360MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing" 8361 8362# How about lex? 8363for ac_prog in flex 8364do 8365 # Extract the first word of "$ac_prog", so it can be a program name with args. 8366set dummy $ac_prog; ac_word=$2 8367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8368$as_echo_n "checking for $ac_word... " >&6; } 8369if ${ac_cv_prog_FLEX+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 if test -n "$FLEX"; then 8373 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 8374else 8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8376for as_dir in $PATH 8377do 8378 IFS=$as_save_IFS 8379 test -z "$as_dir" && as_dir=. 8380 for ac_exec_ext in '' $ac_executable_extensions; do 8381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8382 ac_cv_prog_FLEX="$ac_prog" 8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8384 break 2 8385 fi 8386done 8387 done 8388IFS=$as_save_IFS 8389 8390fi 8391fi 8392FLEX=$ac_cv_prog_FLEX 8393if test -n "$FLEX"; then 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 8395$as_echo "$FLEX" >&6; } 8396else 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8398$as_echo "no" >&6; } 8399fi 8400 8401 8402 test -n "$FLEX" && break 8403done 8404test -n "$FLEX" || FLEX="$MISSING flex" 8405 8406 8407# Bison? 8408for ac_prog in bison 8409do 8410 # Extract the first word of "$ac_prog", so it can be a program name with args. 8411set dummy $ac_prog; ac_word=$2 8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8413$as_echo_n "checking for $ac_word... " >&6; } 8414if ${ac_cv_prog_BISON+:} false; then : 8415 $as_echo_n "(cached) " >&6 8416else 8417 if test -n "$BISON"; then 8418 ac_cv_prog_BISON="$BISON" # Let the user override the test. 8419else 8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8421for as_dir in $PATH 8422do 8423 IFS=$as_save_IFS 8424 test -z "$as_dir" && as_dir=. 8425 for ac_exec_ext in '' $ac_executable_extensions; do 8426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8427 ac_cv_prog_BISON="$ac_prog" 8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8429 break 2 8430 fi 8431done 8432 done 8433IFS=$as_save_IFS 8434 8435fi 8436fi 8437BISON=$ac_cv_prog_BISON 8438if test -n "$BISON"; then 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 8440$as_echo "$BISON" >&6; } 8441else 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8443$as_echo "no" >&6; } 8444fi 8445 8446 8447 test -n "$BISON" && break 8448done 8449test -n "$BISON" || BISON="$MISSING bison" 8450 8451 8452# Binutils are not build modules, unlike bison/flex/makeinfo. So we 8453# check for build == host before using them. 8454 8455# NM 8456if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \ 8457 && test -d ../binutils ; then 8458 NM='${objdir}/../binutils/nm-new' 8459else 8460 # Extract the first word of "nm", so it can be a program name with args. 8461set dummy nm; ac_word=$2 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8463$as_echo_n "checking for $ac_word... " >&6; } 8464if ${ac_cv_prog_NM+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 if test -n "$NM"; then 8468 ac_cv_prog_NM="$NM" # Let the user override the test. 8469else 8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8471for as_dir in $PATH 8472do 8473 IFS=$as_save_IFS 8474 test -z "$as_dir" && as_dir=. 8475 for ac_exec_ext in '' $ac_executable_extensions; do 8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8477 ac_cv_prog_NM="nm" 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8479 break 2 8480 fi 8481done 8482 done 8483IFS=$as_save_IFS 8484 8485 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm" 8486fi 8487fi 8488NM=$ac_cv_prog_NM 8489if test -n "$NM"; then 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8491$as_echo "$NM" >&6; } 8492else 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8494$as_echo "no" >&6; } 8495fi 8496 8497 8498fi 8499 8500# AR 8501if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \ 8502 && test -d ../binutils ; then 8503 AR='${objdir}/../binutils/ar' 8504else 8505 # Extract the first word of "ar", so it can be a program name with args. 8506set dummy ar; ac_word=$2 8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8508$as_echo_n "checking for $ac_word... " >&6; } 8509if ${ac_cv_prog_AR+:} false; then : 8510 $as_echo_n "(cached) " >&6 8511else 8512 if test -n "$AR"; then 8513 ac_cv_prog_AR="$AR" # Let the user override the test. 8514else 8515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8516for as_dir in $PATH 8517do 8518 IFS=$as_save_IFS 8519 test -z "$as_dir" && as_dir=. 8520 for ac_exec_ext in '' $ac_executable_extensions; do 8521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8522 ac_cv_prog_AR="ar" 8523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8524 break 2 8525 fi 8526done 8527 done 8528IFS=$as_save_IFS 8529 8530 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar" 8531fi 8532fi 8533AR=$ac_cv_prog_AR 8534if test -n "$AR"; then 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8536$as_echo "$AR" >&6; } 8537else 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8539$as_echo "no" >&6; } 8540fi 8541 8542 8543fi 8544 8545# The jit documentation looks better if built with sphinx, but can be 8546# built with texinfo if sphinx is not available. 8547# Set "doc_build_sys" to "sphinx" or "texinfo" accordingly. 8548# Extract the first word of "sphinx-build", so it can be a program name with args. 8549set dummy sphinx-build; ac_word=$2 8550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8551$as_echo_n "checking for $ac_word... " >&6; } 8552if ${ac_cv_prog_doc_build_sys+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 if test -n "$doc_build_sys"; then 8556 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test. 8557else 8558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8559for as_dir in $PATH 8560do 8561 IFS=$as_save_IFS 8562 test -z "$as_dir" && as_dir=. 8563 for ac_exec_ext in '' $ac_executable_extensions; do 8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8565 ac_cv_prog_doc_build_sys="sphinx" 8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8567 break 2 8568 fi 8569done 8570 done 8571IFS=$as_save_IFS 8572 8573 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo" 8574fi 8575fi 8576doc_build_sys=$ac_cv_prog_doc_build_sys 8577if test -n "$doc_build_sys"; then 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5 8579$as_echo "$doc_build_sys" >&6; } 8580else 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8582$as_echo "no" >&6; } 8583fi 8584 8585 8586 8587# -------------------- 8588# Checks for C headers 8589# -------------------- 8590 8591# Need to reject headers which give warnings, so that the -Werror bootstrap 8592# works later. *sigh* This needs to come before all header checks. 8593 8594ac_c_preproc_warn_flag=yes 8595 8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8597$as_echo_n "checking for ANSI C header files... " >&6; } 8598if ${ac_cv_header_stdc+:} false; then : 8599 $as_echo_n "(cached) " >&6 8600else 8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8602/* end confdefs.h. */ 8603#include <stdlib.h> 8604#include <stdarg.h> 8605#include <string.h> 8606#include <float.h> 8607 8608int 8609main () 8610{ 8611 8612 ; 8613 return 0; 8614} 8615_ACEOF 8616if ac_fn_cxx_try_compile "$LINENO"; then : 8617 ac_cv_header_stdc=yes 8618else 8619 ac_cv_header_stdc=no 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8622 8623if test $ac_cv_header_stdc = yes; then 8624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626/* end confdefs.h. */ 8627#include <string.h> 8628 8629_ACEOF 8630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8631 $EGREP "memchr" >/dev/null 2>&1; then : 8632 8633else 8634 ac_cv_header_stdc=no 8635fi 8636rm -f conftest* 8637 8638fi 8639 8640if test $ac_cv_header_stdc = yes; then 8641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643/* end confdefs.h. */ 8644#include <stdlib.h> 8645 8646_ACEOF 8647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8648 $EGREP "free" >/dev/null 2>&1; then : 8649 8650else 8651 ac_cv_header_stdc=no 8652fi 8653rm -f conftest* 8654 8655fi 8656 8657if test $ac_cv_header_stdc = yes; then 8658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8659 if test "$cross_compiling" = yes; then : 8660 : 8661else 8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8663/* end confdefs.h. */ 8664#include <ctype.h> 8665#include <stdlib.h> 8666#if ((' ' & 0x0FF) == 0x020) 8667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8669#else 8670# define ISLOWER(c) \ 8671 (('a' <= (c) && (c) <= 'i') \ 8672 || ('j' <= (c) && (c) <= 'r') \ 8673 || ('s' <= (c) && (c) <= 'z')) 8674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8675#endif 8676 8677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8678int 8679main () 8680{ 8681 int i; 8682 for (i = 0; i < 256; i++) 8683 if (XOR (islower (i), ISLOWER (i)) 8684 || toupper (i) != TOUPPER (i)) 8685 return 2; 8686 return 0; 8687} 8688_ACEOF 8689if ac_fn_cxx_try_run "$LINENO"; then : 8690 8691else 8692 ac_cv_header_stdc=no 8693fi 8694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8695 conftest.$ac_objext conftest.beam conftest.$ac_ext 8696fi 8697 8698fi 8699fi 8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8701$as_echo "$ac_cv_header_stdc" >&6; } 8702if test $ac_cv_header_stdc = yes; then 8703 8704$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8705 8706fi 8707 8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 8709$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 8710if ${ac_cv_header_time+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712else 8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8714/* end confdefs.h. */ 8715#include <sys/types.h> 8716#include <sys/time.h> 8717#include <time.h> 8718 8719int 8720main () 8721{ 8722if ((struct tm *) 0) 8723return 0; 8724 ; 8725 return 0; 8726} 8727_ACEOF 8728if ac_fn_cxx_try_compile "$LINENO"; then : 8729 ac_cv_header_time=yes 8730else 8731 ac_cv_header_time=no 8732fi 8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8734fi 8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 8736$as_echo "$ac_cv_header_time" >&6; } 8737if test $ac_cv_header_time = yes; then 8738 8739$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8740 8741fi 8742 8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 8744$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 8745if ${gcc_cv_header_string+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8749/* end confdefs.h. */ 8750#include <string.h> 8751#include <strings.h> 8752int 8753main () 8754{ 8755 8756 ; 8757 return 0; 8758} 8759_ACEOF 8760if ac_fn_cxx_try_compile "$LINENO"; then : 8761 gcc_cv_header_string=yes 8762else 8763 gcc_cv_header_string=no 8764fi 8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8766fi 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 8768$as_echo "$gcc_cv_header_string" >&6; } 8769if test $gcc_cv_header_string = yes; then 8770 8771$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 8772 8773fi 8774 8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 8776$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 8777if ${ac_cv_header_sys_wait_h+:} false; then : 8778 $as_echo_n "(cached) " >&6 8779else 8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8781/* end confdefs.h. */ 8782#include <sys/types.h> 8783#include <sys/wait.h> 8784#ifndef WEXITSTATUS 8785# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 8786#endif 8787#ifndef WIFEXITED 8788# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 8789#endif 8790 8791int 8792main () 8793{ 8794 int s; 8795 wait (&s); 8796 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 8797 ; 8798 return 0; 8799} 8800_ACEOF 8801if ac_fn_cxx_try_compile "$LINENO"; then : 8802 ac_cv_header_sys_wait_h=yes 8803else 8804 ac_cv_header_sys_wait_h=no 8805fi 8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8807fi 8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 8809$as_echo "$ac_cv_header_sys_wait_h" >&6; } 8810if test $ac_cv_header_sys_wait_h = yes; then 8811 8812$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 8813 8814fi 8815 8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 8817$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } 8818if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8822/* end confdefs.h. */ 8823#include <sys/types.h> 8824#include <termios.h> 8825#ifdef TIOCGWINSZ 8826 yes 8827#endif 8828 8829_ACEOF 8830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8831 $EGREP "yes" >/dev/null 2>&1; then : 8832 ac_cv_sys_tiocgwinsz_in_termios_h=yes 8833else 8834 ac_cv_sys_tiocgwinsz_in_termios_h=no 8835fi 8836rm -f conftest* 8837 8838fi 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 8840$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } 8841 8842if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 8844$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } 8845if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849/* end confdefs.h. */ 8850#include <sys/types.h> 8851#include <sys/ioctl.h> 8852#ifdef TIOCGWINSZ 8853 yes 8854#endif 8855 8856_ACEOF 8857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8858 $EGREP "yes" >/dev/null 2>&1; then : 8859 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 8860else 8861 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 8862fi 8863rm -f conftest* 8864 8865fi 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 8867$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } 8868 8869 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 8870 8871$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h 8872 8873 fi 8874fi 8875 8876for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \ 8877 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \ 8878 sys/resource.h sys/param.h sys/times.h sys/stat.h \ 8879 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h 8880do : 8881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8882ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" 8883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8884 cat >>confdefs.h <<_ACEOF 8885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8886_ACEOF 8887 8888fi 8889done 8890 8891 8892# Check for thread headers. 8893ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h" 8894if test "x$ac_cv_header_thread_h" = xyes; then : 8895 have_thread_h=yes 8896else 8897 have_thread_h= 8898fi 8899 8900ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h" 8901if test "x$ac_cv_header_pthread_h" = xyes; then : 8902 have_pthread_h=yes 8903else 8904 have_pthread_h= 8905fi 8906 8907 8908# These tests can't be done till we know if we have limits.h. 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5 8910$as_echo_n "checking for CHAR_BIT... " >&6; } 8911if ${gcc_cv_decl_char_bit+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8915/* end confdefs.h. */ 8916#ifdef HAVE_LIMITS_H 8917#include <limits.h> 8918#endif 8919#ifdef CHAR_BIT 8920found 8921#endif 8922_ACEOF 8923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8924 $EGREP "found" >/dev/null 2>&1; then : 8925 gcc_cv_decl_char_bit=yes 8926else 8927 gcc_cv_decl_char_bit=no 8928fi 8929rm -f conftest* 8930 8931 8932fi 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5 8934$as_echo "$gcc_cv_decl_char_bit" >&6; } 8935if test $gcc_cv_decl_char_bit = no; then 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5 8937$as_echo_n "checking number of bits in a byte... " >&6; } 8938if ${gcc_cv_c_nbby+:} false; then : 8939 $as_echo_n "(cached) " >&6 8940else 8941 i=8 8942 gcc_cv_c_nbby= 8943 while test $i -lt 65; do 8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8945/* end confdefs.h. */ 8946 8947int 8948main () 8949{ 8950switch(0) { 8951 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i): 8952 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)): 8953 ; } 8954 ; 8955 return 0; 8956} 8957_ACEOF 8958if ac_fn_cxx_try_compile "$LINENO"; then : 8959 gcc_cv_c_nbby=$i; break 8960fi 8961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8962 i=`expr $i + 1` 8963 done 8964 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed 8965 8966fi 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5 8968$as_echo "$gcc_cv_c_nbby" >&6; } 8969if test $gcc_cv_c_nbby = failed; then 8970 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5 8971else 8972 8973cat >>confdefs.h <<_ACEOF 8974#define CHAR_BIT $gcc_cv_c_nbby 8975_ACEOF 8976 8977fi 8978fi 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 8980$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 8981if ${ac_cv_c_bigendian+:} false; then : 8982 $as_echo_n "(cached) " >&6 8983else 8984 ac_cv_c_bigendian=unknown 8985 # See if we're dealing with a universal compiler. 8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8987/* end confdefs.h. */ 8988#ifndef __APPLE_CC__ 8989 not a universal capable compiler 8990 #endif 8991 typedef int dummy; 8992 8993_ACEOF 8994if ac_fn_cxx_try_compile "$LINENO"; then : 8995 8996 # Check for potential -arch flags. It is not universal unless 8997 # there are at least two -arch flags with different values. 8998 ac_arch= 8999 ac_prev= 9000 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9001 if test -n "$ac_prev"; then 9002 case $ac_word in 9003 i?86 | x86_64 | ppc | ppc64) 9004 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9005 ac_arch=$ac_word 9006 else 9007 ac_cv_c_bigendian=universal 9008 break 9009 fi 9010 ;; 9011 esac 9012 ac_prev= 9013 elif test "x$ac_word" = "x-arch"; then 9014 ac_prev=arch 9015 fi 9016 done 9017fi 9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9019 if test $ac_cv_c_bigendian = unknown; then 9020 # See if sys/param.h defines the BYTE_ORDER macro. 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022/* end confdefs.h. */ 9023#include <sys/types.h> 9024 #include <sys/param.h> 9025 9026int 9027main () 9028{ 9029#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9030 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9031 && LITTLE_ENDIAN) 9032 bogus endian macros 9033 #endif 9034 9035 ; 9036 return 0; 9037} 9038_ACEOF 9039if ac_fn_cxx_try_compile "$LINENO"; then : 9040 # It does; now see whether it defined to BIG_ENDIAN or not. 9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9042/* end confdefs.h. */ 9043#include <sys/types.h> 9044 #include <sys/param.h> 9045 9046int 9047main () 9048{ 9049#if BYTE_ORDER != BIG_ENDIAN 9050 not big endian 9051 #endif 9052 9053 ; 9054 return 0; 9055} 9056_ACEOF 9057if ac_fn_cxx_try_compile "$LINENO"; then : 9058 ac_cv_c_bigendian=yes 9059else 9060 ac_cv_c_bigendian=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9063fi 9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9065 fi 9066 if test $ac_cv_c_bigendian = unknown; then 9067 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9069/* end confdefs.h. */ 9070#include <limits.h> 9071 9072int 9073main () 9074{ 9075#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9076 bogus endian macros 9077 #endif 9078 9079 ; 9080 return 0; 9081} 9082_ACEOF 9083if ac_fn_cxx_try_compile "$LINENO"; then : 9084 # It does; now see whether it defined to _BIG_ENDIAN or not. 9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086/* end confdefs.h. */ 9087#include <limits.h> 9088 9089int 9090main () 9091{ 9092#ifndef _BIG_ENDIAN 9093 not big endian 9094 #endif 9095 9096 ; 9097 return 0; 9098} 9099_ACEOF 9100if ac_fn_cxx_try_compile "$LINENO"; then : 9101 ac_cv_c_bigendian=yes 9102else 9103 ac_cv_c_bigendian=no 9104fi 9105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9106fi 9107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9108 fi 9109 if test $ac_cv_c_bigendian = unknown; then 9110 # Compile a test program. 9111 if test "$cross_compiling" = yes; then : 9112 # Try to guess by grepping values from an object file. 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9114/* end confdefs.h. */ 9115short int ascii_mm[] = 9116 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9117 short int ascii_ii[] = 9118 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9119 int use_ascii (int i) { 9120 return ascii_mm[i] + ascii_ii[i]; 9121 } 9122 short int ebcdic_ii[] = 9123 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9124 short int ebcdic_mm[] = 9125 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9126 int use_ebcdic (int i) { 9127 return ebcdic_mm[i] + ebcdic_ii[i]; 9128 } 9129 extern int foo; 9130 9131int 9132main () 9133{ 9134return use_ascii (foo) == use_ebcdic (foo); 9135 ; 9136 return 0; 9137} 9138_ACEOF 9139if ac_fn_cxx_try_compile "$LINENO"; then : 9140 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9141 ac_cv_c_bigendian=yes 9142 fi 9143 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9144 if test "$ac_cv_c_bigendian" = unknown; then 9145 ac_cv_c_bigendian=no 9146 else 9147 # finding both strings is unlikely to happen, but who knows? 9148 ac_cv_c_bigendian=unknown 9149 fi 9150 fi 9151fi 9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9153else 9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9155/* end confdefs.h. */ 9156$ac_includes_default 9157int 9158main () 9159{ 9160 9161 /* Are we little or big endian? From Harbison&Steele. */ 9162 union 9163 { 9164 long int l; 9165 char c[sizeof (long int)]; 9166 } u; 9167 u.l = 1; 9168 return u.c[sizeof (long int) - 1] == 1; 9169 9170 ; 9171 return 0; 9172} 9173_ACEOF 9174if ac_fn_cxx_try_run "$LINENO"; then : 9175 ac_cv_c_bigendian=no 9176else 9177 ac_cv_c_bigendian=yes 9178fi 9179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9180 conftest.$ac_objext conftest.beam conftest.$ac_ext 9181fi 9182 9183 fi 9184fi 9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9186$as_echo "$ac_cv_c_bigendian" >&6; } 9187 case $ac_cv_c_bigendian in #( 9188 yes) 9189 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9190;; #( 9191 no) 9192 ;; #( 9193 universal) 9194 9195$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9196 9197 ;; #( 9198 *) 9199 as_fn_error $? "unknown endianness 9200 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9201 esac 9202 9203 9204# ---------------------- 9205# Checks for C++ headers 9206# ---------------------- 9207 9208ac_ext=cpp 9209ac_cpp='$CXXCPP $CPPFLAGS' 9210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 9214$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 9215if test -z "$CXXCPP"; then 9216 if ${ac_cv_prog_CXXCPP+:} false; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 # Double quotes because CXXCPP needs to be expanded 9220 for CXXCPP in "$CXX -E" "/lib/cpp" 9221 do 9222 ac_preproc_ok=false 9223for ac_cxx_preproc_warn_flag in '' yes 9224do 9225 # Use a header file that comes with gcc, so configuring glibc 9226 # with a fresh cross-compiler works. 9227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9228 # <limits.h> exists even on freestanding compilers. 9229 # On the NeXT, cc -E runs the code through the compiler's parser, 9230 # not just through cpp. "Syntax error" is here to catch this case. 9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9232/* end confdefs.h. */ 9233#ifdef __STDC__ 9234# include <limits.h> 9235#else 9236# include <assert.h> 9237#endif 9238 Syntax error 9239_ACEOF 9240if ac_fn_cxx_try_cpp "$LINENO"; then : 9241 9242else 9243 # Broken: fails on valid input. 9244continue 9245fi 9246rm -f conftest.err conftest.i conftest.$ac_ext 9247 9248 # OK, works on sane cases. Now check whether nonexistent headers 9249 # can be detected and how. 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251/* end confdefs.h. */ 9252#include <ac_nonexistent.h> 9253_ACEOF 9254if ac_fn_cxx_try_cpp "$LINENO"; then : 9255 # Broken: success on invalid input. 9256continue 9257else 9258 # Passes both tests. 9259ac_preproc_ok=: 9260break 9261fi 9262rm -f conftest.err conftest.i conftest.$ac_ext 9263 9264done 9265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9266rm -f conftest.i conftest.err conftest.$ac_ext 9267if $ac_preproc_ok; then : 9268 break 9269fi 9270 9271 done 9272 ac_cv_prog_CXXCPP=$CXXCPP 9273 9274fi 9275 CXXCPP=$ac_cv_prog_CXXCPP 9276else 9277 ac_cv_prog_CXXCPP=$CXXCPP 9278fi 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 9280$as_echo "$CXXCPP" >&6; } 9281ac_preproc_ok=false 9282for ac_cxx_preproc_warn_flag in '' yes 9283do 9284 # Use a header file that comes with gcc, so configuring glibc 9285 # with a fresh cross-compiler works. 9286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9287 # <limits.h> exists even on freestanding compilers. 9288 # On the NeXT, cc -E runs the code through the compiler's parser, 9289 # not just through cpp. "Syntax error" is here to catch this case. 9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291/* end confdefs.h. */ 9292#ifdef __STDC__ 9293# include <limits.h> 9294#else 9295# include <assert.h> 9296#endif 9297 Syntax error 9298_ACEOF 9299if ac_fn_cxx_try_cpp "$LINENO"; then : 9300 9301else 9302 # Broken: fails on valid input. 9303continue 9304fi 9305rm -f conftest.err conftest.i conftest.$ac_ext 9306 9307 # OK, works on sane cases. Now check whether nonexistent headers 9308 # can be detected and how. 9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9310/* end confdefs.h. */ 9311#include <ac_nonexistent.h> 9312_ACEOF 9313if ac_fn_cxx_try_cpp "$LINENO"; then : 9314 # Broken: success on invalid input. 9315continue 9316else 9317 # Passes both tests. 9318ac_preproc_ok=: 9319break 9320fi 9321rm -f conftest.err conftest.i conftest.$ac_ext 9322 9323done 9324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9325rm -f conftest.i conftest.err conftest.$ac_ext 9326if $ac_preproc_ok; then : 9327 9328else 9329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check 9332See \`config.log' for more details" >&5 9333$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check 9334See \`config.log' for more details" >&2;}; } 9335fi 9336 9337ac_ext=cpp 9338ac_cpp='$CXXCPP $CPPFLAGS' 9339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9342 9343 9344for ac_header in unordered_map 9345do : 9346 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map" 9347if test "x$ac_cv_header_unordered_map" = xyes; then : 9348 cat >>confdefs.h <<_ACEOF 9349#define HAVE_UNORDERED_MAP 1 9350_ACEOF 9351 9352fi 9353done 9354 9355for ac_header in tr1/unordered_map 9356do : 9357 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" 9358if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : 9359 cat >>confdefs.h <<_ACEOF 9360#define HAVE_TR1_UNORDERED_MAP 1 9361_ACEOF 9362 9363fi 9364done 9365 9366for ac_header in ext/hash_map 9367do : 9368 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" 9369if test "x$ac_cv_header_ext_hash_map" = xyes; then : 9370 cat >>confdefs.h <<_ACEOF 9371#define HAVE_EXT_HASH_MAP 1 9372_ACEOF 9373 9374fi 9375done 9376 9377 9378# -------- 9379# Dependency checking. 9380# -------- 9381 9382rm -rf .tst 2>/dev/null 9383mkdir .tst 2>/dev/null 9384if test -d .tst; then 9385 am__leading_dot=. 9386else 9387 am__leading_dot=_ 9388fi 9389rmdir .tst 2>/dev/null 9390 9391DEPDIR="${am__leading_dot}deps" 9392 9393ac_config_commands="$ac_config_commands depdir" 9394 9395 9396ac_config_commands="$ac_config_commands gccdepdir" 9397 9398 9399depcc="$CXX" am_compiler_list= 9400 9401am_depcomp=$ac_aux_dir/depcomp 9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 9403$as_echo_n "checking dependency style of $depcc... " >&6; } 9404if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 9405 $as_echo_n "(cached) " >&6 9406else 9407 if test -f "$am_depcomp"; then 9408 # We make a subdir and do the tests there. Otherwise we can end up 9409 # making bogus files that we don't know about and never remove. For 9410 # instance it was reported that on HP-UX the gcc test will end up 9411 # making a dummy file named `D' -- because `-MD' means `put the output 9412 # in D'. 9413 mkdir conftest.dir 9414 # Copy depcomp to subdir because otherwise we won't find it if we're 9415 # using a relative directory. 9416 cp "$am_depcomp" conftest.dir 9417 cd conftest.dir 9418 # We will build objects and dependencies in a subdirectory because 9419 # it helps to detect inapplicable dependency modes. For instance 9420 # both Tru64's cc and ICC support -MD to output dependencies as a 9421 # side effect of compilation, but ICC will put the dependencies in 9422 # the current directory while Tru64 will put them in the object 9423 # directory. 9424 mkdir sub 9425 9426 am_cv_CXX_dependencies_compiler_type=none 9427 if test "$am_compiler_list" = ""; then 9428 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 9429 fi 9430 for depmode in $am_compiler_list; do 9431 if test $depmode = none; then break; fi 9432 9433 $as_echo "$as_me:$LINENO: trying $depmode" >&5 9434 # Setup a source with many dependencies, because some compilers 9435 # like to wrap large dependency lists on column 80 (with \), and 9436 # we should not choose a depcomp mode which is confused by this. 9437 # 9438 # We need to recreate these files for each test, as the compiler may 9439 # overwrite some of them when testing with obscure command lines. 9440 # This happens at least with the AIX C compiler. 9441 : > sub/conftest.c 9442 for i in 1 2 3 4 5 6; do 9443 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9444 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 9445 # Solaris 8's {/usr,}/bin/sh. 9446 touch sub/conftst$i.h 9447 done 9448 echo "include sub/conftest.Po" > confmf 9449 9450 # We check with `-c' and `-o' for the sake of the "dashmstdout" 9451 # mode. It turns out that the SunPro C++ compiler does not properly 9452 # handle `-M -o', and we need to detect this. 9453 depcmd="depmode=$depmode \ 9454 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 9455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9456 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" 9457 echo "| $depcmd" | sed -e 's/ */ /g' >&5 9458 if env $depcmd > conftest.err 2>&1 && 9459 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && 9460 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && 9461 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then 9462 # icc doesn't choke on unknown options, it will just issue warnings 9463 # or remarks (even with -Werror). So we grep stderr for any message 9464 # that says an option was ignored or not supported. 9465 # When given -MP, icc 7.0 and 7.1 complain thusly: 9466 # icc: Command line warning: ignoring option '-M'; no argument required 9467 # The diagnosis changed in icc 8.0: 9468 # icc: Command line remark: option '-MP' not supported 9469 if (grep 'ignoring option' conftest.err || 9470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9471 am_cv_CXX_dependencies_compiler_type=$depmode 9472 $as_echo "$as_me:$LINENO: success" >&5 9473 break 9474 fi 9475 fi 9476 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 9477 sed -e 's/^/| /' < conftest.err >&5 9478 done 9479 9480 cd .. 9481 rm -rf conftest.dir 9482else 9483 am_cv_CXX_dependencies_compiler_type=none 9484fi 9485 9486fi 9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 9488$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 9489if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone 9490then as_fn_error $? "no usable dependency style found" "$LINENO" 5 9491else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 9492 9493fi 9494 9495 9496# -------- 9497# UNSORTED 9498# -------- 9499 9500 9501# These libraries may be used by collect2. 9502# We may need a special search path to get them linked. 9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5 9504$as_echo_n "checking for collect2 libraries... " >&6; } 9505if ${gcc_cv_collect2_libs+:} false; then : 9506 $as_echo_n "(cached) " >&6 9507else 9508 save_LIBS="$LIBS" 9509for libs in '' -lld -lmld \ 9510 '-L/usr/lib/cmplrs/cc2.11 -lmld' \ 9511 '-L/usr/lib/cmplrs/cc3.11 -lmld' 9512do 9513 LIBS="$libs" 9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9515/* end confdefs.h. */ 9516 9517/* Override any GCC internal prototype to avoid an error. 9518 Use char because int might match the return type of a GCC 9519 builtin and then its argument prototype would still apply. */ 9520#ifdef __cplusplus 9521extern "C" 9522#endif 9523char ldopen (); 9524int 9525main () 9526{ 9527return ldopen (); 9528 ; 9529 return 0; 9530} 9531_ACEOF 9532if ac_fn_cxx_try_link "$LINENO"; then : 9533 gcc_cv_collect2_libs="$libs"; break 9534fi 9535rm -f core conftest.err conftest.$ac_objext \ 9536 conftest$ac_exeext conftest.$ac_ext 9537done 9538LIBS="$save_LIBS" 9539test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required' 9540fi 9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5 9542$as_echo "$gcc_cv_collect2_libs" >&6; } 9543case $gcc_cv_collect2_libs in 9544 "none required") ;; 9545 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;; 9546esac 9547 9548 9549# When building Ada code on Alpha, we need exc_resume which is usually in 9550# -lexc. So test for it. 9551save_LIBS="$LIBS" 9552LIBS= 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5 9554$as_echo_n "checking for library containing exc_resume... " >&6; } 9555if ${ac_cv_search_exc_resume+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 ac_func_search_save_LIBS=$LIBS 9559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560/* end confdefs.h. */ 9561 9562/* Override any GCC internal prototype to avoid an error. 9563 Use char because int might match the return type of a GCC 9564 builtin and then its argument prototype would still apply. */ 9565#ifdef __cplusplus 9566extern "C" 9567#endif 9568char exc_resume (); 9569int 9570main () 9571{ 9572return exc_resume (); 9573 ; 9574 return 0; 9575} 9576_ACEOF 9577for ac_lib in '' exc; do 9578 if test -z "$ac_lib"; then 9579 ac_res="none required" 9580 else 9581 ac_res=-l$ac_lib 9582 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9583 fi 9584 if ac_fn_cxx_try_link "$LINENO"; then : 9585 ac_cv_search_exc_resume=$ac_res 9586fi 9587rm -f core conftest.err conftest.$ac_objext \ 9588 conftest$ac_exeext 9589 if ${ac_cv_search_exc_resume+:} false; then : 9590 break 9591fi 9592done 9593if ${ac_cv_search_exc_resume+:} false; then : 9594 9595else 9596 ac_cv_search_exc_resume=no 9597fi 9598rm conftest.$ac_ext 9599LIBS=$ac_func_search_save_LIBS 9600fi 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5 9602$as_echo "$ac_cv_search_exc_resume" >&6; } 9603ac_res=$ac_cv_search_exc_resume 9604if test "$ac_res" != no; then : 9605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9606 9607fi 9608 9609GNAT_LIBEXC="$LIBS" 9610LIBS="$save_LIBS" 9611 9612 9613# To support -mcpu=native on Solaris/SPARC, we need libkstat. 9614save_LIBS="$LIBS" 9615LIBS= 9616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5 9617$as_echo_n "checking for library containing kstat_open... " >&6; } 9618if ${ac_cv_search_kstat_open+:} false; then : 9619 $as_echo_n "(cached) " >&6 9620else 9621 ac_func_search_save_LIBS=$LIBS 9622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623/* end confdefs.h. */ 9624 9625/* Override any GCC internal prototype to avoid an error. 9626 Use char because int might match the return type of a GCC 9627 builtin and then its argument prototype would still apply. */ 9628#ifdef __cplusplus 9629extern "C" 9630#endif 9631char kstat_open (); 9632int 9633main () 9634{ 9635return kstat_open (); 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640for ac_lib in '' kstat; do 9641 if test -z "$ac_lib"; then 9642 ac_res="none required" 9643 else 9644 ac_res=-l$ac_lib 9645 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9646 fi 9647 if ac_fn_cxx_try_link "$LINENO"; then : 9648 ac_cv_search_kstat_open=$ac_res 9649fi 9650rm -f core conftest.err conftest.$ac_objext \ 9651 conftest$ac_exeext 9652 if ${ac_cv_search_kstat_open+:} false; then : 9653 break 9654fi 9655done 9656if ${ac_cv_search_kstat_open+:} false; then : 9657 9658else 9659 ac_cv_search_kstat_open=no 9660fi 9661rm conftest.$ac_ext 9662LIBS=$ac_func_search_save_LIBS 9663fi 9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5 9665$as_echo "$ac_cv_search_kstat_open" >&6; } 9666ac_res=$ac_cv_search_kstat_open 9667if test "$ac_res" != no; then : 9668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9669 9670fi 9671 9672EXTRA_GCC_LIBS="$LIBS" 9673LIBS="$save_LIBS" 9674 9675 9676# Some systems put ldexp and frexp in libm instead of libc; assume 9677# they're both in the same place. jcf-dump needs them. 9678save_LIBS="$LIBS" 9679LIBS= 9680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5 9681$as_echo_n "checking for library containing ldexp... " >&6; } 9682if ${ac_cv_search_ldexp+:} false; then : 9683 $as_echo_n "(cached) " >&6 9684else 9685 ac_func_search_save_LIBS=$LIBS 9686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9687/* end confdefs.h. */ 9688 9689/* Override any GCC internal prototype to avoid an error. 9690 Use char because int might match the return type of a GCC 9691 builtin and then its argument prototype would still apply. */ 9692#ifdef __cplusplus 9693extern "C" 9694#endif 9695char ldexp (); 9696int 9697main () 9698{ 9699return ldexp (); 9700 ; 9701 return 0; 9702} 9703_ACEOF 9704for ac_lib in '' m; do 9705 if test -z "$ac_lib"; then 9706 ac_res="none required" 9707 else 9708 ac_res=-l$ac_lib 9709 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9710 fi 9711 if ac_fn_cxx_try_link "$LINENO"; then : 9712 ac_cv_search_ldexp=$ac_res 9713fi 9714rm -f core conftest.err conftest.$ac_objext \ 9715 conftest$ac_exeext 9716 if ${ac_cv_search_ldexp+:} false; then : 9717 break 9718fi 9719done 9720if ${ac_cv_search_ldexp+:} false; then : 9721 9722else 9723 ac_cv_search_ldexp=no 9724fi 9725rm conftest.$ac_ext 9726LIBS=$ac_func_search_save_LIBS 9727fi 9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5 9729$as_echo "$ac_cv_search_ldexp" >&6; } 9730ac_res=$ac_cv_search_ldexp 9731if test "$ac_res" != no; then : 9732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9733 9734fi 9735 9736LDEXP_LIB="$LIBS" 9737LIBS="$save_LIBS" 9738 9739 9740# Some systems need dlopen 9741save_LIBS="$LIBS" 9742LIBS= 9743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 9744$as_echo_n "checking for library containing dlopen... " >&6; } 9745if ${ac_cv_search_dlopen+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 ac_func_search_save_LIBS=$LIBS 9749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750/* end confdefs.h. */ 9751 9752/* Override any GCC internal prototype to avoid an error. 9753 Use char because int might match the return type of a GCC 9754 builtin and then its argument prototype would still apply. */ 9755#ifdef __cplusplus 9756extern "C" 9757#endif 9758char dlopen (); 9759int 9760main () 9761{ 9762return dlopen (); 9763 ; 9764 return 0; 9765} 9766_ACEOF 9767for ac_lib in '' dl; do 9768 if test -z "$ac_lib"; then 9769 ac_res="none required" 9770 else 9771 ac_res=-l$ac_lib 9772 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9773 fi 9774 if ac_fn_cxx_try_link "$LINENO"; then : 9775 ac_cv_search_dlopen=$ac_res 9776fi 9777rm -f core conftest.err conftest.$ac_objext \ 9778 conftest$ac_exeext 9779 if ${ac_cv_search_dlopen+:} false; then : 9780 break 9781fi 9782done 9783if ${ac_cv_search_dlopen+:} false; then : 9784 9785else 9786 ac_cv_search_dlopen=no 9787fi 9788rm conftest.$ac_ext 9789LIBS=$ac_func_search_save_LIBS 9790fi 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 9792$as_echo "$ac_cv_search_dlopen" >&6; } 9793ac_res=$ac_cv_search_dlopen 9794if test "$ac_res" != no; then : 9795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9796 9797fi 9798 9799DL_LIB="$LIBS" 9800LIBS="$save_LIBS" 9801 9802 9803# Use <inttypes.h> only if it exists, 9804# doesn't clash with <sys/types.h>, declares intmax_t and defines 9805# PRId64 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 9807$as_echo_n "checking for inttypes.h... " >&6; } 9808if ${gcc_cv_header_inttypes_h+:} false; then : 9809 $as_echo_n "(cached) " >&6 9810else 9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9812/* end confdefs.h. */ 9813#define __STDC_FORMAT_MACROS 9814#include <sys/types.h> 9815#include <inttypes.h> 9816int 9817main () 9818{ 9819intmax_t i = -1; 9820#ifndef PRId64 9821choke me 9822#endif 9823 ; 9824 return 0; 9825} 9826_ACEOF 9827if ac_fn_cxx_try_compile "$LINENO"; then : 9828 gcc_cv_header_inttypes_h=yes 9829else 9830 gcc_cv_header_inttypes_h=no 9831fi 9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9833fi 9834 9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5 9836$as_echo "$gcc_cv_header_inttypes_h" >&6; } 9837if test $gcc_cv_header_inttypes_h = yes; then 9838 9839$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h 9840 9841fi 9842 9843 9844 9845for ac_func in times clock kill getrlimit setrlimit atoq \ 9846 popen sysconf strsignal getrusage nl_langinfo \ 9847 gettimeofday mbstowcs wcswidth mmap setlocale \ 9848 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 9849do : 9850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9851ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 9852if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9853 cat >>confdefs.h <<_ACEOF 9854#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9855_ACEOF 9856 9857fi 9858done 9859 9860 9861if test x$ac_cv_func_mbstowcs = xyes; then 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5 9863$as_echo_n "checking whether mbstowcs works... " >&6; } 9864if ${gcc_cv_func_mbstowcs_works+:} false; then : 9865 $as_echo_n "(cached) " >&6 9866else 9867 if test "$cross_compiling" = yes; then : 9868 gcc_cv_func_mbstowcs_works=yes 9869else 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872#include <stdlib.h> 9873int main() 9874{ 9875 mbstowcs(0, "", 0); 9876 return 0; 9877} 9878_ACEOF 9879if ac_fn_cxx_try_run "$LINENO"; then : 9880 gcc_cv_func_mbstowcs_works=yes 9881else 9882 gcc_cv_func_mbstowcs_works=no 9883fi 9884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9885 conftest.$ac_objext conftest.beam conftest.$ac_ext 9886fi 9887 9888fi 9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5 9890$as_echo "$gcc_cv_func_mbstowcs_works" >&6; } 9891 if test x$gcc_cv_func_mbstowcs_works = xyes; then 9892 9893$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h 9894 9895 fi 9896fi 9897 9898ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 9899if test "x$ac_cv_type_ssize_t" = xyes; then : 9900 9901else 9902 9903cat >>confdefs.h <<_ACEOF 9904#define ssize_t int 9905_ACEOF 9906 9907fi 9908 9909ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default" 9910if test "x$ac_cv_type_caddr_t" = xyes; then : 9911 9912else 9913 9914cat >>confdefs.h <<_ACEOF 9915#define caddr_t char * 9916_ACEOF 9917 9918fi 9919 9920 9921 9922ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" 9923if test "x$ac_cv_header_sys_mman_h" = xyes; then : 9924 gcc_header_sys_mman_h=yes 9925else 9926 gcc_header_sys_mman_h=no 9927fi 9928 9929ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 9930if test "x$ac_cv_func_mmap" = xyes; then : 9931 gcc_func_mmap=yes 9932else 9933 gcc_func_mmap=no 9934fi 9935 9936if test "$gcc_header_sys_mman_h" != yes \ 9937 || test "$gcc_func_mmap" != yes; then 9938 gcc_cv_func_mmap_file=no 9939 gcc_cv_func_mmap_dev_zero=no 9940 gcc_cv_func_mmap_anon=no 9941else 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5 9943$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; } 9944if ${gcc_cv_func_mmap_file+:} false; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 # Add a system to this blacklist if 9948 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 9949 # memory area containing the same data that you'd get if you applied 9950 # read() to the same fd. The only system known to have a problem here 9951 # is VMS, where text files have record structure. 9952 case "$host_os" in 9953 *vms* | ultrix*) 9954 gcc_cv_func_mmap_file=no ;; 9955 *) 9956 gcc_cv_func_mmap_file=yes;; 9957 esac 9958fi 9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5 9960$as_echo "$gcc_cv_func_mmap_file" >&6; } 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5 9962$as_echo_n "checking whether mmap from /dev/zero works... " >&6; } 9963if ${gcc_cv_func_mmap_dev_zero+:} false; then : 9964 $as_echo_n "(cached) " >&6 9965else 9966 # Add a system to this blacklist if it has mmap() but /dev/zero 9967 # does not exist, or if mmapping /dev/zero does not give anonymous 9968 # zeroed pages with both the following properties: 9969 # 1. If you map N consecutive pages in with one call, and then 9970 # unmap any subset of those pages, the pages that were not 9971 # explicitly unmapped remain accessible. 9972 # 2. If you map two adjacent blocks of memory and then unmap them 9973 # both at once, they must both go away. 9974 # Systems known to be in this category are Windows (all variants), 9975 # VMS, and Darwin. 9976 case "$host_os" in 9977 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) 9978 gcc_cv_func_mmap_dev_zero=no ;; 9979 *) 9980 gcc_cv_func_mmap_dev_zero=yes;; 9981 esac 9982fi 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5 9984$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; } 9985 9986 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5 9988$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; } 9989if ${gcc_cv_decl_map_anon+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9993/* end confdefs.h. */ 9994#include <sys/types.h> 9995#include <sys/mman.h> 9996#include <unistd.h> 9997 9998#ifndef MAP_ANONYMOUS 9999#define MAP_ANONYMOUS MAP_ANON 10000#endif 10001 10002int 10003main () 10004{ 10005int n = MAP_ANONYMOUS; 10006 ; 10007 return 0; 10008} 10009_ACEOF 10010if ac_fn_cxx_try_compile "$LINENO"; then : 10011 gcc_cv_decl_map_anon=yes 10012else 10013 gcc_cv_decl_map_anon=no 10014fi 10015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10016fi 10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5 10018$as_echo "$gcc_cv_decl_map_anon" >&6; } 10019 10020 if test $gcc_cv_decl_map_anon = no; then 10021 gcc_cv_func_mmap_anon=no 10022 else 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5 10024$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; } 10025if ${gcc_cv_func_mmap_anon+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027else 10028 # Add a system to this blacklist if it has mmap() and MAP_ANON or 10029 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 10030 # doesn't give anonymous zeroed pages with the same properties listed 10031 # above for use of /dev/zero. 10032 # Systems known to be in this category are Windows, VMS, and SCO Unix. 10033 case "$host_os" in 10034 *vms* | cygwin* | pe | mingw* | sco* | udk* ) 10035 gcc_cv_func_mmap_anon=no ;; 10036 *) 10037 gcc_cv_func_mmap_anon=yes;; 10038 esac 10039fi 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5 10041$as_echo "$gcc_cv_func_mmap_anon" >&6; } 10042 fi 10043fi 10044 10045if test $gcc_cv_func_mmap_file = yes; then 10046 10047$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h 10048 10049fi 10050if test $gcc_cv_func_mmap_dev_zero = yes; then 10051 10052$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h 10053 10054fi 10055if test $gcc_cv_func_mmap_anon = yes; then 10056 10057$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h 10058 10059fi 10060 10061 10062case "${host}" in 10063*-*-*vms*) 10064 # Under VMS, vfork works very differently than on Unix. The standard test 10065 # won't work, and it isn't easily adaptable. It makes more sense to 10066 # just force it. 10067 ac_cv_func_vfork_works=yes 10068 ;; 10069esac 10070ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10071if test "x$ac_cv_type_pid_t" = xyes; then : 10072 10073else 10074 10075cat >>confdefs.h <<_ACEOF 10076#define pid_t int 10077_ACEOF 10078 10079fi 10080 10081for ac_header in vfork.h 10082do : 10083 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h" 10084if test "x$ac_cv_header_vfork_h" = xyes; then : 10085 cat >>confdefs.h <<_ACEOF 10086#define HAVE_VFORK_H 1 10087_ACEOF 10088 10089fi 10090done 10091 10092for ac_func in fork vfork 10093do : 10094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10095ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10096if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10097 cat >>confdefs.h <<_ACEOF 10098#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10099_ACEOF 10100 10101fi 10102done 10103 10104if test "x$ac_cv_func_fork" = xyes; then 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 10106$as_echo_n "checking for working fork... " >&6; } 10107if ${ac_cv_func_fork_works+:} false; then : 10108 $as_echo_n "(cached) " >&6 10109else 10110 if test "$cross_compiling" = yes; then : 10111 ac_cv_func_fork_works=cross 10112else 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115$ac_includes_default 10116int 10117main () 10118{ 10119 10120 /* By Ruediger Kuhlmann. */ 10121 return fork () < 0; 10122 10123 ; 10124 return 0; 10125} 10126_ACEOF 10127if ac_fn_cxx_try_run "$LINENO"; then : 10128 ac_cv_func_fork_works=yes 10129else 10130 ac_cv_func_fork_works=no 10131fi 10132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10133 conftest.$ac_objext conftest.beam conftest.$ac_ext 10134fi 10135 10136fi 10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 10138$as_echo "$ac_cv_func_fork_works" >&6; } 10139 10140else 10141 ac_cv_func_fork_works=$ac_cv_func_fork 10142fi 10143if test "x$ac_cv_func_fork_works" = xcross; then 10144 case $host in 10145 *-*-amigaos* | *-*-msdosdjgpp*) 10146 # Override, as these systems have only a dummy fork() stub 10147 ac_cv_func_fork_works=no 10148 ;; 10149 *) 10150 ac_cv_func_fork_works=yes 10151 ;; 10152 esac 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 10154$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 10155fi 10156ac_cv_func_vfork_works=$ac_cv_func_vfork 10157if test "x$ac_cv_func_vfork" = xyes; then 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 10159$as_echo_n "checking for working vfork... " >&6; } 10160if ${ac_cv_func_vfork_works+:} false; then : 10161 $as_echo_n "(cached) " >&6 10162else 10163 if test "$cross_compiling" = yes; then : 10164 ac_cv_func_vfork_works=cross 10165else 10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10167/* end confdefs.h. */ 10168/* Thanks to Paul Eggert for this test. */ 10169$ac_includes_default 10170#include <sys/wait.h> 10171#ifdef HAVE_VFORK_H 10172# include <vfork.h> 10173#endif 10174/* On some sparc systems, changes by the child to local and incoming 10175 argument registers are propagated back to the parent. The compiler 10176 is told about this with #include <vfork.h>, but some compilers 10177 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 10178 static variable whose address is put into a register that is 10179 clobbered by the vfork. */ 10180static void 10181#ifdef __cplusplus 10182sparc_address_test (int arg) 10183# else 10184sparc_address_test (arg) int arg; 10185#endif 10186{ 10187 static pid_t child; 10188 if (!child) { 10189 child = vfork (); 10190 if (child < 0) { 10191 perror ("vfork"); 10192 _exit(2); 10193 } 10194 if (!child) { 10195 arg = getpid(); 10196 write(-1, "", 0); 10197 _exit (arg); 10198 } 10199 } 10200} 10201 10202int 10203main () 10204{ 10205 pid_t parent = getpid (); 10206 pid_t child; 10207 10208 sparc_address_test (0); 10209 10210 child = vfork (); 10211 10212 if (child == 0) { 10213 /* Here is another test for sparc vfork register problems. This 10214 test uses lots of local variables, at least as many local 10215 variables as main has allocated so far including compiler 10216 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 10217 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 10218 reuse the register of parent for one of the local variables, 10219 since it will think that parent can't possibly be used any more 10220 in this routine. Assigning to the local variable will thus 10221 munge parent in the parent process. */ 10222 pid_t 10223 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 10224 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 10225 /* Convince the compiler that p..p7 are live; otherwise, it might 10226 use the same hardware register for all 8 local variables. */ 10227 if (p != p1 || p != p2 || p != p3 || p != p4 10228 || p != p5 || p != p6 || p != p7) 10229 _exit(1); 10230 10231 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 10232 from child file descriptors. If the child closes a descriptor 10233 before it execs or exits, this munges the parent's descriptor 10234 as well. Test for this by closing stdout in the child. */ 10235 _exit(close(fileno(stdout)) != 0); 10236 } else { 10237 int status; 10238 struct stat st; 10239 10240 while (wait(&status) != child) 10241 ; 10242 return ( 10243 /* Was there some problem with vforking? */ 10244 child < 0 10245 10246 /* Did the child fail? (This shouldn't happen.) */ 10247 || status 10248 10249 /* Did the vfork/compiler bug occur? */ 10250 || parent != getpid() 10251 10252 /* Did the file descriptor bug occur? */ 10253 || fstat(fileno(stdout), &st) != 0 10254 ); 10255 } 10256} 10257_ACEOF 10258if ac_fn_cxx_try_run "$LINENO"; then : 10259 ac_cv_func_vfork_works=yes 10260else 10261 ac_cv_func_vfork_works=no 10262fi 10263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10264 conftest.$ac_objext conftest.beam conftest.$ac_ext 10265fi 10266 10267fi 10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 10269$as_echo "$ac_cv_func_vfork_works" >&6; } 10270 10271fi; 10272if test "x$ac_cv_func_fork_works" = xcross; then 10273 ac_cv_func_vfork_works=$ac_cv_func_vfork 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 10275$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 10276fi 10277 10278if test "x$ac_cv_func_vfork_works" = xyes; then 10279 10280$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 10281 10282else 10283 10284$as_echo "#define vfork fork" >>confdefs.h 10285 10286fi 10287if test "x$ac_cv_func_fork_works" = xyes; then 10288 10289$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 10290 10291fi 10292 10293 10294 10295 if test "X$prefix" = "XNONE"; then 10296 acl_final_prefix="$ac_default_prefix" 10297 else 10298 acl_final_prefix="$prefix" 10299 fi 10300 if test "X$exec_prefix" = "XNONE"; then 10301 acl_final_exec_prefix='${prefix}' 10302 else 10303 acl_final_exec_prefix="$exec_prefix" 10304 fi 10305 acl_save_prefix="$prefix" 10306 prefix="$acl_final_prefix" 10307 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10308 prefix="$acl_save_prefix" 10309 10310 10311# Check whether --with-gnu-ld was given. 10312if test "${with_gnu_ld+set}" = set; then : 10313 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10314else 10315 with_gnu_ld=no 10316fi 10317 10318# Prepare PATH_SEPARATOR. 10319# The user is always right. 10320if test "${PATH_SEPARATOR+set}" != set; then 10321 echo "#! /bin/sh" >conf$$.sh 10322 echo "exit 0" >>conf$$.sh 10323 chmod +x conf$$.sh 10324 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10325 PATH_SEPARATOR=';' 10326 else 10327 PATH_SEPARATOR=: 10328 fi 10329 rm -f conf$$.sh 10330fi 10331ac_prog=ld 10332if test "$GCC" = yes; then 10333 # Check if gcc -print-prog-name=ld gives a path. 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 10335$as_echo_n "checking for ld used by GCC... " >&6; } 10336 case $host in 10337 *-*-mingw*) 10338 # gcc leaves a trailing carriage return which upsets mingw 10339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10340 *) 10341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10342 esac 10343 case $ac_prog in 10344 # Accept absolute paths. 10345 [\\/]* | [A-Za-z]:[\\/]*) 10346 re_direlt='/[^/][^/]*/\.\./' 10347 # Canonicalize the path of ld 10348 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10349 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10350 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10351 done 10352 test -z "$LD" && LD="$ac_prog" 10353 ;; 10354 "") 10355 # If it fails, then pretend we aren't using GCC. 10356 ac_prog=ld 10357 ;; 10358 *) 10359 # If it is relative, then search for the first ld in PATH. 10360 with_gnu_ld=unknown 10361 ;; 10362 esac 10363elif test "$with_gnu_ld" = yes; then 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10365$as_echo_n "checking for GNU ld... " >&6; } 10366else 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10368$as_echo_n "checking for non-GNU ld... " >&6; } 10369fi 10370if ${acl_cv_path_LD+:} false; then : 10371 $as_echo_n "(cached) " >&6 10372else 10373 if test -z "$LD"; then 10374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10375 for ac_dir in $PATH; do 10376 test -z "$ac_dir" && ac_dir=. 10377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10378 acl_cv_path_LD="$ac_dir/$ac_prog" 10379 # Check to see if the program is GNU ld. I'd rather use --version, 10380 # but apparently some GNU ld's only accept -v. 10381 # Break only if it was the GNU/non-GNU ld that we prefer. 10382 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 10383 test "$with_gnu_ld" != no && break 10384 else 10385 test "$with_gnu_ld" != yes && break 10386 fi 10387 fi 10388 done 10389 IFS="$ac_save_ifs" 10390else 10391 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10392fi 10393fi 10394 10395LD="$acl_cv_path_LD" 10396if test -n "$LD"; then 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10398$as_echo "$LD" >&6; } 10399else 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10401$as_echo "no" >&6; } 10402fi 10403test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 10404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10405$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10406if ${acl_cv_prog_gnu_ld+:} false; then : 10407 $as_echo_n "(cached) " >&6 10408else 10409 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10410if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 10411 acl_cv_prog_gnu_ld=yes 10412else 10413 acl_cv_prog_gnu_ld=no 10414fi 10415fi 10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 10417$as_echo "$acl_cv_prog_gnu_ld" >&6; } 10418with_gnu_ld=$acl_cv_prog_gnu_ld 10419 10420 10421 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 10423$as_echo_n "checking for shared library run path origin... " >&6; } 10424if ${acl_cv_rpath+:} false; then : 10425 $as_echo_n "(cached) " >&6 10426else 10427 10428 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10429 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10430 . ./conftest.sh 10431 rm -f ./conftest.sh 10432 acl_cv_rpath=done 10433 10434fi 10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 10436$as_echo "$acl_cv_rpath" >&6; } 10437 wl="$acl_cv_wl" 10438 libext="$acl_cv_libext" 10439 shlibext="$acl_cv_shlibext" 10440 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10441 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10442 hardcode_direct="$acl_cv_hardcode_direct" 10443 hardcode_minus_L="$acl_cv_hardcode_minus_L" 10444 # Check whether --enable-rpath was given. 10445if test "${enable_rpath+set}" = set; then : 10446 enableval=$enable_rpath; : 10447else 10448 enable_rpath=yes 10449fi 10450 10451 10452 10453 10454 10455 10456 10457 10458 use_additional=yes 10459 10460 acl_save_prefix="$prefix" 10461 prefix="$acl_final_prefix" 10462 acl_save_exec_prefix="$exec_prefix" 10463 exec_prefix="$acl_final_exec_prefix" 10464 10465 eval additional_includedir=\"$includedir\" 10466 eval additional_libdir=\"$libdir\" 10467 10468 exec_prefix="$acl_save_exec_prefix" 10469 prefix="$acl_save_prefix" 10470 10471 10472# Check whether --with-libiconv-prefix was given. 10473if test "${with_libiconv_prefix+set}" = set; then : 10474 withval=$with_libiconv_prefix; 10475 if test "X$withval" = "Xno"; then 10476 use_additional=no 10477 else 10478 if test "X$withval" = "X"; then 10479 10480 acl_save_prefix="$prefix" 10481 prefix="$acl_final_prefix" 10482 acl_save_exec_prefix="$exec_prefix" 10483 exec_prefix="$acl_final_exec_prefix" 10484 10485 eval additional_includedir=\"$includedir\" 10486 eval additional_libdir=\"$libdir\" 10487 10488 exec_prefix="$acl_save_exec_prefix" 10489 prefix="$acl_save_prefix" 10490 10491 else 10492 additional_includedir="$withval/include" 10493 additional_libdir="$withval/lib" 10494 fi 10495 fi 10496 10497fi 10498 10499 LIBICONV= 10500 LTLIBICONV= 10501 INCICONV= 10502 rpathdirs= 10503 ltrpathdirs= 10504 names_already_handled= 10505 names_next_round='iconv ' 10506 while test -n "$names_next_round"; do 10507 names_this_round="$names_next_round" 10508 names_next_round= 10509 for name in $names_this_round; do 10510 already_handled= 10511 for n in $names_already_handled; do 10512 if test "$n" = "$name"; then 10513 already_handled=yes 10514 break 10515 fi 10516 done 10517 if test -z "$already_handled"; then 10518 names_already_handled="$names_already_handled $name" 10519 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10520 eval value=\"\$HAVE_LIB$uppername\" 10521 if test -n "$value"; then 10522 if test "$value" = yes; then 10523 eval value=\"\$LIB$uppername\" 10524 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10525 eval value=\"\$LTLIB$uppername\" 10526 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10527 else 10528 : 10529 fi 10530 else 10531 found_dir= 10532 found_la= 10533 found_so= 10534 found_a= 10535 if test $use_additional = yes; then 10536 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10537 found_dir="$additional_libdir" 10538 found_so="$additional_libdir/lib$name.$shlibext" 10539 if test -f "$additional_libdir/lib$name.la"; then 10540 found_la="$additional_libdir/lib$name.la" 10541 fi 10542 else 10543 if test -f "$additional_libdir/lib$name.$libext"; then 10544 found_dir="$additional_libdir" 10545 found_a="$additional_libdir/lib$name.$libext" 10546 if test -f "$additional_libdir/lib$name.la"; then 10547 found_la="$additional_libdir/lib$name.la" 10548 fi 10549 fi 10550 fi 10551 fi 10552 if test "X$found_dir" = "X"; then 10553 for x in $LDFLAGS $LTLIBICONV; do 10554 10555 acl_save_prefix="$prefix" 10556 prefix="$acl_final_prefix" 10557 acl_save_exec_prefix="$exec_prefix" 10558 exec_prefix="$acl_final_exec_prefix" 10559 eval x=\"$x\" 10560 exec_prefix="$acl_save_exec_prefix" 10561 prefix="$acl_save_prefix" 10562 10563 case "$x" in 10564 -L*) 10565 dir=`echo "X$x" | sed -e 's/^X-L//'` 10566 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 10567 found_dir="$dir" 10568 found_so="$dir/lib$name.$shlibext" 10569 if test -f "$dir/lib$name.la"; then 10570 found_la="$dir/lib$name.la" 10571 fi 10572 else 10573 if test -f "$dir/lib$name.$libext"; then 10574 found_dir="$dir" 10575 found_a="$dir/lib$name.$libext" 10576 if test -f "$dir/lib$name.la"; then 10577 found_la="$dir/lib$name.la" 10578 fi 10579 fi 10580 fi 10581 ;; 10582 esac 10583 if test "X$found_dir" != "X"; then 10584 break 10585 fi 10586 done 10587 fi 10588 if test "X$found_dir" != "X"; then 10589 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 10590 if test "X$found_so" != "X"; then 10591 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 10592 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10593 else 10594 haveit= 10595 for x in $ltrpathdirs; do 10596 if test "X$x" = "X$found_dir"; then 10597 haveit=yes 10598 break 10599 fi 10600 done 10601 if test -z "$haveit"; then 10602 ltrpathdirs="$ltrpathdirs $found_dir" 10603 fi 10604 if test "$hardcode_direct" = yes; then 10605 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10606 else 10607 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10608 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10609 haveit= 10610 for x in $rpathdirs; do 10611 if test "X$x" = "X$found_dir"; then 10612 haveit=yes 10613 break 10614 fi 10615 done 10616 if test -z "$haveit"; then 10617 rpathdirs="$rpathdirs $found_dir" 10618 fi 10619 else 10620 haveit= 10621 for x in $LDFLAGS $LIBICONV; do 10622 10623 acl_save_prefix="$prefix" 10624 prefix="$acl_final_prefix" 10625 acl_save_exec_prefix="$exec_prefix" 10626 exec_prefix="$acl_final_exec_prefix" 10627 eval x=\"$x\" 10628 exec_prefix="$acl_save_exec_prefix" 10629 prefix="$acl_save_prefix" 10630 10631 if test "X$x" = "X-L$found_dir"; then 10632 haveit=yes 10633 break 10634 fi 10635 done 10636 if test -z "$haveit"; then 10637 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 10638 fi 10639 if test "$hardcode_minus_L" != no; then 10640 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10641 else 10642 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10643 fi 10644 fi 10645 fi 10646 fi 10647 else 10648 if test "X$found_a" != "X"; then 10649 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 10650 else 10651 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 10652 fi 10653 fi 10654 additional_includedir= 10655 case "$found_dir" in 10656 */lib | */lib/) 10657 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10658 additional_includedir="$basedir/include" 10659 ;; 10660 esac 10661 if test "X$additional_includedir" != "X"; then 10662 if test "X$additional_includedir" != "X/usr/include"; then 10663 haveit= 10664 if test "X$additional_includedir" = "X/usr/local/include"; then 10665 if test -n "$GCC"; then 10666 case $host_os in 10667 linux*) haveit=yes;; 10668 esac 10669 fi 10670 fi 10671 if test -z "$haveit"; then 10672 for x in $CPPFLAGS $INCICONV; do 10673 10674 acl_save_prefix="$prefix" 10675 prefix="$acl_final_prefix" 10676 acl_save_exec_prefix="$exec_prefix" 10677 exec_prefix="$acl_final_exec_prefix" 10678 eval x=\"$x\" 10679 exec_prefix="$acl_save_exec_prefix" 10680 prefix="$acl_save_prefix" 10681 10682 if test "X$x" = "X-I$additional_includedir"; then 10683 haveit=yes 10684 break 10685 fi 10686 done 10687 if test -z "$haveit"; then 10688 if test -d "$additional_includedir"; then 10689 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 10690 fi 10691 fi 10692 fi 10693 fi 10694 fi 10695 if test -n "$found_la"; then 10696 save_libdir="$libdir" 10697 case "$found_la" in 10698 */* | *\\*) . "$found_la" ;; 10699 *) . "./$found_la" ;; 10700 esac 10701 libdir="$save_libdir" 10702 for dep in $dependency_libs; do 10703 case "$dep" in 10704 -L*) 10705 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10706 if test "X$additional_libdir" != "X/usr/lib"; then 10707 haveit= 10708 if test "X$additional_libdir" = "X/usr/local/lib"; then 10709 if test -n "$GCC"; then 10710 case $host_os in 10711 linux*) haveit=yes;; 10712 esac 10713 fi 10714 fi 10715 if test -z "$haveit"; then 10716 haveit= 10717 for x in $LDFLAGS $LIBICONV; do 10718 10719 acl_save_prefix="$prefix" 10720 prefix="$acl_final_prefix" 10721 acl_save_exec_prefix="$exec_prefix" 10722 exec_prefix="$acl_final_exec_prefix" 10723 eval x=\"$x\" 10724 exec_prefix="$acl_save_exec_prefix" 10725 prefix="$acl_save_prefix" 10726 10727 if test "X$x" = "X-L$additional_libdir"; then 10728 haveit=yes 10729 break 10730 fi 10731 done 10732 if test -z "$haveit"; then 10733 if test -d "$additional_libdir"; then 10734 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 10735 fi 10736 fi 10737 haveit= 10738 for x in $LDFLAGS $LTLIBICONV; do 10739 10740 acl_save_prefix="$prefix" 10741 prefix="$acl_final_prefix" 10742 acl_save_exec_prefix="$exec_prefix" 10743 exec_prefix="$acl_final_exec_prefix" 10744 eval x=\"$x\" 10745 exec_prefix="$acl_save_exec_prefix" 10746 prefix="$acl_save_prefix" 10747 10748 if test "X$x" = "X-L$additional_libdir"; then 10749 haveit=yes 10750 break 10751 fi 10752 done 10753 if test -z "$haveit"; then 10754 if test -d "$additional_libdir"; then 10755 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 10756 fi 10757 fi 10758 fi 10759 fi 10760 ;; 10761 -R*) 10762 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10763 if test "$enable_rpath" != no; then 10764 haveit= 10765 for x in $rpathdirs; do 10766 if test "X$x" = "X$dir"; then 10767 haveit=yes 10768 break 10769 fi 10770 done 10771 if test -z "$haveit"; then 10772 rpathdirs="$rpathdirs $dir" 10773 fi 10774 haveit= 10775 for x in $ltrpathdirs; do 10776 if test "X$x" = "X$dir"; then 10777 haveit=yes 10778 break 10779 fi 10780 done 10781 if test -z "$haveit"; then 10782 ltrpathdirs="$ltrpathdirs $dir" 10783 fi 10784 fi 10785 ;; 10786 -l*) 10787 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10788 ;; 10789 *.la) 10790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10791 ;; 10792 *) 10793 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 10794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 10795 ;; 10796 esac 10797 done 10798 fi 10799 else 10800 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10801 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 10802 fi 10803 fi 10804 fi 10805 done 10806 done 10807 if test "X$rpathdirs" != "X"; then 10808 if test -n "$hardcode_libdir_separator"; then 10809 alldirs= 10810 for found_dir in $rpathdirs; do 10811 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10812 done 10813 acl_save_libdir="$libdir" 10814 libdir="$alldirs" 10815 eval flag=\"$hardcode_libdir_flag_spec\" 10816 libdir="$acl_save_libdir" 10817 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10818 else 10819 for found_dir in $rpathdirs; do 10820 acl_save_libdir="$libdir" 10821 libdir="$found_dir" 10822 eval flag=\"$hardcode_libdir_flag_spec\" 10823 libdir="$acl_save_libdir" 10824 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10825 done 10826 fi 10827 fi 10828 if test "X$ltrpathdirs" != "X"; then 10829 for found_dir in $ltrpathdirs; do 10830 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 10831 done 10832 fi 10833 10834 10835 10836 10837 10838 10839 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 10841$as_echo_n "checking for iconv... " >&6; } 10842if ${am_cv_func_iconv+:} false; then : 10843 $as_echo_n "(cached) " >&6 10844else 10845 10846 am_cv_func_iconv="no, consider installing GNU libiconv" 10847 am_cv_lib_iconv=no 10848 am_save_CPPFLAGS="$CPPFLAGS" 10849 CPPFLAGS="$CPPFLAGS $INCICONV" 10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10851/* end confdefs.h. */ 10852#include <stdlib.h> 10853#include <iconv.h> 10854int 10855main () 10856{ 10857iconv_t cd = iconv_open("",""); 10858 iconv(cd,NULL,NULL,NULL,NULL); 10859 iconv_close(cd); 10860 ; 10861 return 0; 10862} 10863_ACEOF 10864if ac_fn_cxx_try_link "$LINENO"; then : 10865 am_cv_func_iconv=yes 10866fi 10867rm -f core conftest.err conftest.$ac_objext \ 10868 conftest$ac_exeext conftest.$ac_ext 10869 CPPFLAGS="$am_save_CPPFLAGS" 10870 10871 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then 10872 for _libs in .libs _libs; do 10873 am_save_CPPFLAGS="$CPPFLAGS" 10874 am_save_LIBS="$LIBS" 10875 CPPFLAGS="$CPPFLAGS -I../libiconv/include" 10876 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" 10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10878/* end confdefs.h. */ 10879#include <stdlib.h> 10880#include <iconv.h> 10881int 10882main () 10883{ 10884iconv_t cd = iconv_open("",""); 10885 iconv(cd,NULL,NULL,NULL,NULL); 10886 iconv_close(cd); 10887 ; 10888 return 0; 10889} 10890_ACEOF 10891if ac_fn_cxx_try_link "$LINENO"; then : 10892 INCICONV="-I../libiconv/include" 10893 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a 10894 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la 10895 am_cv_lib_iconv=yes 10896 am_cv_func_iconv=yes 10897fi 10898rm -f core conftest.err conftest.$ac_objext \ 10899 conftest$ac_exeext conftest.$ac_ext 10900 CPPFLAGS="$am_save_CPPFLAGS" 10901 LIBS="$am_save_LIBS" 10902 if test "$am_cv_func_iconv" = "yes"; then 10903 break 10904 fi 10905 done 10906 fi 10907 10908 if test "$am_cv_func_iconv" != yes; then 10909 am_save_CPPFLAGS="$CPPFLAGS" 10910 am_save_LIBS="$LIBS" 10911 CPPFLAGS="$CPPFLAGS $INCICONV" 10912 LIBS="$LIBS $LIBICONV" 10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10914/* end confdefs.h. */ 10915#include <stdlib.h> 10916#include <iconv.h> 10917int 10918main () 10919{ 10920iconv_t cd = iconv_open("",""); 10921 iconv(cd,NULL,NULL,NULL,NULL); 10922 iconv_close(cd); 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927if ac_fn_cxx_try_link "$LINENO"; then : 10928 am_cv_lib_iconv=yes 10929 am_cv_func_iconv=yes 10930fi 10931rm -f core conftest.err conftest.$ac_objext \ 10932 conftest$ac_exeext conftest.$ac_ext 10933 CPPFLAGS="$am_save_CPPFLAGS" 10934 LIBS="$am_save_LIBS" 10935 fi 10936 10937fi 10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 10939$as_echo "$am_cv_func_iconv" >&6; } 10940 if test "$am_cv_func_iconv" = yes; then 10941 10942$as_echo "#define HAVE_ICONV 1" >>confdefs.h 10943 10944 fi 10945 if test "$am_cv_lib_iconv" = yes; then 10946 10947 for element in $INCICONV; do 10948 haveit= 10949 for x in $CPPFLAGS; do 10950 10951 acl_save_prefix="$prefix" 10952 prefix="$acl_final_prefix" 10953 acl_save_exec_prefix="$exec_prefix" 10954 exec_prefix="$acl_final_exec_prefix" 10955 eval x=\"$x\" 10956 exec_prefix="$acl_save_exec_prefix" 10957 prefix="$acl_save_prefix" 10958 10959 if test "X$x" = "X$element"; then 10960 haveit=yes 10961 break 10962 fi 10963 done 10964 if test -z "$haveit"; then 10965 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10966 fi 10967 done 10968 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 10970$as_echo_n "checking how to link with libiconv... " >&6; } 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 10972$as_echo "$LIBICONV" >&6; } 10973 else 10974 LIBICONV= 10975 LTLIBICONV= 10976 fi 10977 10978 10979 10980 if test "$am_cv_func_iconv" = yes; then 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 10982$as_echo_n "checking for iconv declaration... " >&6; } 10983 if ${am_cv_proto_iconv+:} false; then : 10984 $as_echo_n "(cached) " >&6 10985else 10986 10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10988/* end confdefs.h. */ 10989 10990#include <stdlib.h> 10991#include <iconv.h> 10992extern 10993#ifdef __cplusplus 10994"C" 10995#endif 10996#if defined(__STDC__) || defined(__cplusplus) 10997size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 10998#else 10999size_t iconv(); 11000#endif 11001 11002int 11003main () 11004{ 11005 11006 ; 11007 return 0; 11008} 11009_ACEOF 11010if ac_fn_cxx_try_compile "$LINENO"; then : 11011 am_cv_proto_iconv_arg1="" 11012else 11013 am_cv_proto_iconv_arg1="const" 11014fi 11015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11016 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);" 11017fi 11018 11019 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 11021 }$am_cv_proto_iconv" >&5 11022$as_echo "${ac_t:- 11023 }$am_cv_proto_iconv" >&6; } 11024 11025cat >>confdefs.h <<_ACEOF 11026#define ICONV_CONST $am_cv_proto_iconv_arg1 11027_ACEOF 11028 11029 fi 11030 11031 11032# Until we have in-tree GNU iconv: 11033LIBICONV_DEP= 11034if test -f "$LTLIBICONV"; then 11035 LIBICONV_DEP=$LTLIBICONV 11036fi 11037 11038 11039 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 11041$as_echo_n "checking for LC_MESSAGES... " >&6; } 11042if ${am_cv_val_LC_MESSAGES+:} false; then : 11043 $as_echo_n "(cached) " >&6 11044else 11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11046/* end confdefs.h. */ 11047#include <locale.h> 11048int 11049main () 11050{ 11051return LC_MESSAGES 11052 ; 11053 return 0; 11054} 11055_ACEOF 11056if ac_fn_cxx_try_link "$LINENO"; then : 11057 am_cv_val_LC_MESSAGES=yes 11058else 11059 am_cv_val_LC_MESSAGES=no 11060fi 11061rm -f core conftest.err conftest.$ac_objext \ 11062 conftest$ac_exeext conftest.$ac_ext 11063fi 11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 11065$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 11066 if test $am_cv_val_LC_MESSAGES = yes; then 11067 11068$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 11069 11070 fi 11071 11072 11073 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 11075$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 11076if ${am_cv_langinfo_codeset+:} false; then : 11077 $as_echo_n "(cached) " >&6 11078else 11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11080/* end confdefs.h. */ 11081#include <langinfo.h> 11082int 11083main () 11084{ 11085char* cs = nl_langinfo(CODESET); 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090if ac_fn_cxx_try_link "$LINENO"; then : 11091 am_cv_langinfo_codeset=yes 11092else 11093 am_cv_langinfo_codeset=no 11094fi 11095rm -f core conftest.err conftest.$ac_objext \ 11096 conftest$ac_exeext conftest.$ac_ext 11097 11098fi 11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 11100$as_echo "$am_cv_langinfo_codeset" >&6; } 11101 if test $am_cv_langinfo_codeset = yes; then 11102 11103$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 11104 11105 fi 11106 11107 11108# We will need to find libiberty.h and ansidecl.h 11109saved_CFLAGS="$CFLAGS" 11110CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" 11111saved_CXXFLAGS="$CXXFLAGS" 11112CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" 11113 11114# gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the 11115# normal autoconf function for these. But force definition of 11116# HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre 11117# basename handling in libiberty.h. 11118as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh` 11119ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" " 11120#undef HAVE_DECL_BASENAME 11121#define HAVE_DECL_BASENAME 1 11122#include \"ansidecl.h\" 11123#include \"system.h\" 11124" 11125if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11126 ac_have_decl=1 11127else 11128 ac_have_decl=0 11129fi 11130 11131cat >>confdefs.h <<_ACEOF 11132#define HAVE_DECL_BASENAME $ac_have_decl 11133_ACEOF 11134as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh` 11135ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" " 11136#undef HAVE_DECL_BASENAME 11137#define HAVE_DECL_BASENAME 1 11138#include \"ansidecl.h\" 11139#include \"system.h\" 11140" 11141if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11142 ac_have_decl=1 11143else 11144 ac_have_decl=0 11145fi 11146 11147cat >>confdefs.h <<_ACEOF 11148#define HAVE_DECL_STRSTR $ac_have_decl 11149_ACEOF 11150 11151 11152for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \ 11153 madvise stpcpy strnlen strsignal strverscmp \ 11154 strtol strtoul strtoll strtoull setenv unsetenv \ 11155 errno snprintf vsnprintf vasprintf malloc realloc calloc \ 11156 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 11157do 11158 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11160$as_echo_n "checking whether $ac_func is declared... " >&6; } 11161if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11162 $as_echo_n "(cached) " >&6 11163else 11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11165/* end confdefs.h. */ 11166#undef $ac_tr_decl 11167#define $ac_tr_decl 1 11168 11169#include "ansidecl.h" 11170#include "system.h" 11171 11172int 11173main () 11174{ 11175#ifndef $ac_func 11176char *(*pfn) = (char *(*)) $ac_func ; 11177#endif 11178 ; 11179 return 0; 11180} 11181_ACEOF 11182if ac_fn_cxx_try_compile "$LINENO"; then : 11183 eval "gcc_cv_have_decl_$ac_func=yes" 11184else 11185 eval "gcc_cv_have_decl_$ac_func=no" 11186fi 11187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11188fi 11189 11190if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11192$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11193#define $ac_tr_decl 1 11194_ACEOF 11195 11196else 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11198$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11199#define $ac_tr_decl 0 11200_ACEOF 11201 11202fi 11203 11204done 11205 11206 11207for ac_func in getrlimit setrlimit getrusage 11208do 11209 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11211$as_echo_n "checking whether $ac_func is declared... " >&6; } 11212if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11213 $as_echo_n "(cached) " >&6 11214else 11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11216/* end confdefs.h. */ 11217#undef $ac_tr_decl 11218#define $ac_tr_decl 1 11219 11220#include "ansidecl.h" 11221#include "system.h" 11222#ifdef HAVE_SYS_RESOURCE_H 11223#include <sys/resource.h> 11224#endif 11225 11226 11227int 11228main () 11229{ 11230#ifndef $ac_func 11231char *(*pfn) = (char *(*)) $ac_func ; 11232#endif 11233 ; 11234 return 0; 11235} 11236_ACEOF 11237if ac_fn_cxx_try_compile "$LINENO"; then : 11238 eval "gcc_cv_have_decl_$ac_func=yes" 11239else 11240 eval "gcc_cv_have_decl_$ac_func=no" 11241fi 11242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11243fi 11244 11245if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11247$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11248#define $ac_tr_decl 1 11249_ACEOF 11250 11251else 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11253$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11254#define $ac_tr_decl 0 11255_ACEOF 11256 11257fi 11258 11259done 11260 11261 11262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11263/* end confdefs.h. */ 11264 11265#include "ansidecl.h" 11266#include "system.h" 11267#ifdef HAVE_SYS_RESOURCE_H 11268#include <sys/resource.h> 11269#endif 11270 11271int 11272main () 11273{ 11274rlim_t l = 0; 11275 ; 11276 return 0; 11277} 11278_ACEOF 11279if ac_fn_cxx_try_compile "$LINENO"; then : 11280 11281else 11282 11283$as_echo "#define rlim_t long" >>confdefs.h 11284 11285fi 11286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11287 11288# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible 11289# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname 11290# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs 11291# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME. 11292for ac_func in ldgetname 11293do 11294 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11296$as_echo_n "checking whether $ac_func is declared... " >&6; } 11297if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11298 $as_echo_n "(cached) " >&6 11299else 11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11301/* end confdefs.h. */ 11302#undef $ac_tr_decl 11303#define $ac_tr_decl 1 11304 11305#include "ansidecl.h" 11306#include "system.h" 11307#ifdef HAVE_LDFCN_H 11308#undef FREAD 11309#undef FWRITE 11310#include <ldfcn.h> 11311#endif 11312 11313 11314int 11315main () 11316{ 11317#ifndef $ac_func 11318char *(*pfn) = (char *(*)) $ac_func ; 11319#endif 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324if ac_fn_cxx_try_compile "$LINENO"; then : 11325 eval "gcc_cv_have_decl_$ac_func=yes" 11326else 11327 eval "gcc_cv_have_decl_$ac_func=no" 11328fi 11329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11330fi 11331 11332if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11334$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11335#define $ac_tr_decl 1 11336_ACEOF 11337 11338else 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11340$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11341#define $ac_tr_decl 0 11342_ACEOF 11343 11344fi 11345 11346done 11347 11348 11349for ac_func in times 11350do 11351 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11353$as_echo_n "checking whether $ac_func is declared... " >&6; } 11354if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11355 $as_echo_n "(cached) " >&6 11356else 11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11358/* end confdefs.h. */ 11359#undef $ac_tr_decl 11360#define $ac_tr_decl 1 11361 11362#include "ansidecl.h" 11363#include "system.h" 11364#ifdef HAVE_SYS_TIMES_H 11365#include <sys/times.h> 11366#endif 11367 11368 11369int 11370main () 11371{ 11372#ifndef $ac_func 11373char *(*pfn) = (char *(*)) $ac_func ; 11374#endif 11375 ; 11376 return 0; 11377} 11378_ACEOF 11379if ac_fn_cxx_try_compile "$LINENO"; then : 11380 eval "gcc_cv_have_decl_$ac_func=yes" 11381else 11382 eval "gcc_cv_have_decl_$ac_func=no" 11383fi 11384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11385fi 11386 11387if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11389$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11390#define $ac_tr_decl 1 11391_ACEOF 11392 11393else 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11395$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11396#define $ac_tr_decl 0 11397_ACEOF 11398 11399fi 11400 11401done 11402 11403 11404for ac_func in sigaltstack 11405do 11406 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp` 11407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5 11408$as_echo_n "checking whether $ac_func is declared... " >&6; } 11409if eval \${gcc_cv_have_decl_$ac_func+:} false; then : 11410 $as_echo_n "(cached) " >&6 11411else 11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11413/* end confdefs.h. */ 11414#undef $ac_tr_decl 11415#define $ac_tr_decl 1 11416 11417#include "ansidecl.h" 11418#include "system.h" 11419#include <signal.h> 11420 11421 11422int 11423main () 11424{ 11425#ifndef $ac_func 11426char *(*pfn) = (char *(*)) $ac_func ; 11427#endif 11428 ; 11429 return 0; 11430} 11431_ACEOF 11432if ac_fn_cxx_try_compile "$LINENO"; then : 11433 eval "gcc_cv_have_decl_$ac_func=yes" 11434else 11435 eval "gcc_cv_have_decl_$ac_func=no" 11436fi 11437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11438fi 11439 11440if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11442$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF 11443#define $ac_tr_decl 1 11444_ACEOF 11445 11446else 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11448$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF 11449#define $ac_tr_decl 0 11450_ACEOF 11451 11452fi 11453 11454done 11455 11456 11457# More time-related stuff. 11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5 11459$as_echo_n "checking for struct tms... " >&6; } 11460if ${ac_cv_struct_tms+:} false; then : 11461 $as_echo_n "(cached) " >&6 11462else 11463 11464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11465/* end confdefs.h. */ 11466 11467#include "ansidecl.h" 11468#include "system.h" 11469#ifdef HAVE_SYS_TIMES_H 11470#include <sys/times.h> 11471#endif 11472 11473int 11474main () 11475{ 11476struct tms tms; 11477 ; 11478 return 0; 11479} 11480_ACEOF 11481if ac_fn_cxx_try_compile "$LINENO"; then : 11482 ac_cv_struct_tms=yes 11483else 11484 ac_cv_struct_tms=no 11485fi 11486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11487fi 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5 11489$as_echo "$ac_cv_struct_tms" >&6; } 11490if test $ac_cv_struct_tms = yes; then 11491 11492$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h 11493 11494fi 11495 11496# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE. 11497# revisit after autoconf 2.50. 11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 11499$as_echo_n "checking for clock_t... " >&6; } 11500if ${gcc_cv_type_clock_t+:} false; then : 11501 $as_echo_n "(cached) " >&6 11502else 11503 11504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11505/* end confdefs.h. */ 11506 11507#include "ansidecl.h" 11508#include "system.h" 11509 11510int 11511main () 11512{ 11513clock_t x; 11514 ; 11515 return 0; 11516} 11517_ACEOF 11518if ac_fn_cxx_try_compile "$LINENO"; then : 11519 gcc_cv_type_clock_t=yes 11520else 11521 gcc_cv_type_clock_t=no 11522fi 11523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11524fi 11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5 11526$as_echo "$gcc_cv_type_clock_t" >&6; } 11527if test $gcc_cv_type_clock_t = yes; then 11528 11529$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h 11530 11531fi 11532 11533# Check if F_SETLKW is supported by fcntl. 11534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5 11535$as_echo_n "checking for F_SETLKW... " >&6; } 11536if ${ac_cv_f_setlkw+:} false; then : 11537 $as_echo_n "(cached) " >&6 11538else 11539 11540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11541/* end confdefs.h. */ 11542 11543#include <fcntl.h> 11544int 11545main () 11546{ 11547 11548struct flock fl; 11549fl.l_whence = 0; 11550fl.l_start = 0; 11551fl.l_len = 0; 11552fl.l_pid = 0; 11553return fcntl (1, F_SETLKW, &fl); 11554 ; 11555 return 0; 11556} 11557_ACEOF 11558if ac_fn_cxx_try_compile "$LINENO"; then : 11559 ac_cv_f_setlkw=yes 11560else 11561 ac_cv_f_setlkw=no 11562fi 11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11564fi 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5 11566$as_echo "$ac_cv_f_setlkw" >&6; } 11567if test $ac_cv_f_setlkw = yes; then 11568 11569$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h 11570 11571fi 11572 11573# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. 11574CFLAGS="$saved_CFLAGS" 11575CXXFLAGS="$saved_CXXFLAGS" 11576 11577# mkdir takes a single argument on some systems. 11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5 11579$as_echo_n "checking if mkdir takes one argument... " >&6; } 11580if ${gcc_cv_mkdir_takes_one_arg+:} false; then : 11581 $as_echo_n "(cached) " >&6 11582else 11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11584/* end confdefs.h. */ 11585 11586#include <sys/types.h> 11587#ifdef HAVE_SYS_STAT_H 11588# include <sys/stat.h> 11589#endif 11590#ifdef HAVE_UNISTD_H 11591# include <unistd.h> 11592#endif 11593#ifdef HAVE_DIRECT_H 11594# include <direct.h> 11595#endif 11596int 11597main () 11598{ 11599mkdir ("foo", 0); 11600 ; 11601 return 0; 11602} 11603_ACEOF 11604if ac_fn_cxx_try_compile "$LINENO"; then : 11605 gcc_cv_mkdir_takes_one_arg=no 11606else 11607 gcc_cv_mkdir_takes_one_arg=yes 11608fi 11609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11610fi 11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5 11612$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; } 11613if test $gcc_cv_mkdir_takes_one_arg = yes ; then 11614 11615$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h 11616 11617fi 11618 11619 11620# File extensions 11621manext='.1' 11622objext='.o' 11623 11624 11625 11626# With Setjmp/Longjmp based exception handling. 11627# Check whether --enable-sjlj-exceptions was given. 11628if test "${enable_sjlj_exceptions+set}" = set; then : 11629 enableval=$enable_sjlj_exceptions; case $target in 11630 *-*-hpux10*) 11631 if test $enableval != yes; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5 11633$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;} 11634 enableval=yes 11635 fi 11636 ;; 11637esac 11638force_sjlj_exceptions=yes 11639else 11640 case $target in 11641 *-*-hpux10*) 11642 force_sjlj_exceptions=yes 11643 enableval=yes 11644 ;; 11645 lm32*-*-*) 11646 force_sjlj_exceptions=yes 11647 enableval=yes 11648 ;; 11649 *) 11650 force_sjlj_exceptions=no 11651 ;; 11652esac 11653fi 11654 11655if test $force_sjlj_exceptions = yes; then 11656 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi` 11657 11658cat >>confdefs.h <<_ACEOF 11659#define CONFIG_SJLJ_EXCEPTIONS $sjlj 11660_ACEOF 11661 11662fi 11663 11664# -------------------------------------------------------- 11665# Build, host, and target specific configuration fragments 11666# -------------------------------------------------------- 11667 11668# Collect build-machine-specific information. 11669. ${srcdir}/config.build || exit 1 11670 11671# Collect host-machine-specific information. 11672. ${srcdir}/config.host || exit 1 11673 11674target_gtfiles= 11675 11676# Collect target-machine-specific information. 11677. ${srcdir}/config.gcc || exit 1 11678 11679extra_objs="${host_extra_objs} ${extra_objs}" 11680extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}" 11681 11682# Default the target-machine variables that were not explicitly set. 11683if test x"$tm_file" = x 11684then tm_file=$cpu_type/$cpu_type.h; fi 11685 11686if test x"$extra_headers" = x 11687then extra_headers=; fi 11688 11689if test x$md_file = x 11690then md_file=$cpu_type/$cpu_type.md; fi 11691 11692if test x$out_file = x 11693then out_file=$cpu_type/$cpu_type.c; fi 11694 11695if test x"$tmake_file" = x 11696then tmake_file=$cpu_type/t-$cpu_type 11697fi 11698 11699# Support --enable-initfini-array. 11700if test x$enable_initfini_array != xno; then 11701 tm_file="${tm_file} initfini-array.h" 11702fi 11703 11704if test x"$dwarf2" = xyes 11705then tm_file="$tm_file tm-dwarf2.h" 11706fi 11707 11708# Say what files are being used for the output code and MD file. 11709echo "Using \`$srcdir/config/$out_file' for machine-specific logic." 11710echo "Using \`$srcdir/config/$md_file' as machine description file." 11711 11712# If any of the xm_file variables contain nonexistent files, warn 11713# about them and drop them. 11714 11715bx= 11716for x in $build_xm_file; do 11717 if test -f $srcdir/config/$x 11718 then bx="$bx $x" 11719 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 11720$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 11721 fi 11722done 11723build_xm_file="$bx" 11724 11725hx= 11726for x in $host_xm_file; do 11727 if test -f $srcdir/config/$x 11728 then hx="$hx $x" 11729 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 11730$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 11731 fi 11732done 11733host_xm_file="$hx" 11734 11735tx= 11736for x in $xm_file; do 11737 if test -f $srcdir/config/$x 11738 then tx="$tx $x" 11739 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5 11740$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;} 11741 fi 11742done 11743xm_file="$tx" 11744 11745count=a 11746for f in $tm_file; do 11747 count=${count}x 11748done 11749if test $count = ax; then 11750 echo "Using \`$srcdir/config/$tm_file' as target machine macro file." 11751else 11752 echo "Using the following target machine macro files:" 11753 for f in $tm_file; do 11754 echo " $srcdir/config/$f" 11755 done 11756fi 11757 11758if test x$use_long_long_for_widest_fast_int = xyes; then 11759 11760$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h 11761 11762fi 11763 11764gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi` 11765 11766cat >>confdefs.h <<_ACEOF 11767#define HAVE_GNU_LD $gnu_ld_bool 11768_ACEOF 11769 11770 11771gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi` 11772 11773cat >>confdefs.h <<_ACEOF 11774#define HAVE_GNU_AS $gnu_as_bool 11775_ACEOF 11776 11777 11778count=a 11779for f in $host_xm_file; do 11780 count=${count}x 11781done 11782if test $count = a; then 11783 : 11784elif test $count = ax; then 11785 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." 11786else 11787 echo "Using the following host machine macro files:" 11788 for f in $host_xm_file; do 11789 echo " $srcdir/config/$f" 11790 done 11791fi 11792echo "Using ${out_host_hook_obj} for host machine hooks." 11793 11794if test "$host_xm_file" != "$build_xm_file"; then 11795 count=a 11796 for f in $build_xm_file; do 11797 count=${count}x 11798 done 11799 if test $count = a; then 11800 : 11801 elif test $count = ax; then 11802 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." 11803 else 11804 echo "Using the following build machine macro files:" 11805 for f in $build_xm_file; do 11806 echo " $srcdir/config/$f" 11807 done 11808 fi 11809fi 11810 11811if test -n "$configured_native_system_header_dir"; then 11812 native_system_header_dir=$configured_native_system_header_dir 11813fi 11814NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir" 11815 11816 11817case ${host} in 11818 powerpc*-*-darwin*) 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5 11820$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; } 11821if ${gcc_cv_mcontext_underscores+:} false; then : 11822 $as_echo_n "(cached) " >&6 11823else 11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11825/* end confdefs.h. */ 11826 11827#include <sys/cdefs.h> 11828#include <sys/signal.h> 11829#include <ucontext.h> 11830int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; } 11831 11832_ACEOF 11833if ac_fn_cxx_try_compile "$LINENO"; then : 11834 gcc_cv_mcontext_underscores=no 11835else 11836 gcc_cv_mcontext_underscores=yes 11837fi 11838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11839fi 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5 11841$as_echo "$gcc_cv_mcontext_underscores" >&6; } 11842 if test $gcc_cv_mcontext_underscores = yes; then 11843 11844$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h 11845 11846 fi 11847 ;; 11848esac 11849 11850# --------- 11851# Threading 11852# --------- 11853 11854# Check if a valid thread package 11855case ${enable_threads} in 11856 "" | no) 11857 # No threads 11858 target_thread_file='single' 11859 ;; 11860 yes) 11861 # default 11862 target_thread_file='single' 11863 ;; 11864 aix | dce | lynx | mipssde | posix | rtems | \ 11865 single | tpf | vxworks | win32) 11866 target_thread_file=${enable_threads} 11867 ;; 11868 *) 11869 echo "${enable_threads} is an unknown thread package" 1>&2 11870 exit 1 11871 ;; 11872esac 11873 11874if test x${thread_file} = x; then 11875 # No thread file set by target-specific clauses in config.gcc, 11876 # so use file chosen by default logic above 11877 thread_file=${target_thread_file} 11878fi 11879 11880# -------- 11881# UNSORTED 11882# -------- 11883 11884use_cxa_atexit=no 11885if test x$enable___cxa_atexit = xyes || \ 11886 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then 11887 if test x$host = x$target; then 11888 case $host in 11889 # mingw32 doesn't have __cxa_atexit but uses atexit registration 11890 # keyed to flag_use_cxa_atexit 11891 *-*-mingw32*) 11892 use_cxa_atexit=yes 11893 ;; 11894 powerpc-ibm-aix*) 11895 use_cxa_atexit=yes 11896 ;; 11897 *) 11898 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit" 11899if test "x$ac_cv_func___cxa_atexit" = xyes; then : 11900 use_cxa_atexit=yes 11901else 11902 echo "__cxa_atexit can't be enabled on this target" 11903fi 11904 11905 ;; 11906 esac 11907 else 11908 # We can't check for __cxa_atexit when building a cross, so assume 11909 # it is available 11910 use_cxa_atexit=yes 11911 fi 11912 if test x$use_cxa_atexit = xyes; then 11913 11914$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h 11915 11916 fi 11917fi 11918 11919# Look for a file containing extra machine modes. 11920if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then 11921 extra_modes_file='$(srcdir)'/config/${extra_modes} 11922 11923 11924cat >>confdefs.h <<_ACEOF 11925#define EXTRA_MODES_FILE "config/$extra_modes" 11926_ACEOF 11927 11928fi 11929 11930# Convert extra_options into a form suitable for Makefile use. 11931extra_opt_files= 11932all_opt_files= 11933for f in $extra_options; do 11934 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f" 11935 all_opt_files="$all_opt_files $srcdir/config/$f" 11936done 11937 11938 11939# auto-host.h is the file containing items generated by autoconf and is 11940# the first file included by config.h. 11941# If host=build, it is correct to have bconfig include auto-host.h 11942# as well. If host!=build, we are in error and need to do more 11943# work to find out the build config parameters. 11944if test x$host = x$build 11945then 11946 build_auto=auto-host.h 11947else 11948 # We create a subdir, then run autoconf in the subdir. 11949 # To prevent recursion we set host and build for the new 11950 # invocation of configure to the build for this invocation 11951 # of configure. 11952 tempdir=build.$$ 11953 rm -rf $tempdir 11954 mkdir $tempdir 11955 cd $tempdir 11956 case ${srcdir} in 11957 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};; 11958 *) realsrcdir=../${srcdir};; 11959 esac 11960 # Clearing GMPINC is necessary to prevent host headers being 11961 # used by the build compiler. Defining GENERATOR_FILE stops 11962 # system.h from including gmp.h. 11963 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ 11964 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \ 11965 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \ 11966 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \ 11967 ${realsrcdir}/configure \ 11968 --enable-languages=${enable_languages-all} \ 11969 --target=$target_alias --host=$build_alias --build=$build_alias 11970 11971 # We just finished tests for the build machine, so rename 11972 # the file auto-build.h in the gcc directory. 11973 mv auto-host.h ../auto-build.h 11974 cd .. 11975 rm -rf $tempdir 11976 build_auto=auto-build.h 11977fi 11978 11979 11980tm_file="${tm_file} defaults.h" 11981tm_p_file="${tm_p_file} tm-preds.h" 11982tm_d_file="${tm_d_file} defaults.h" 11983host_xm_file="auto-host.h ansidecl.h ${host_xm_file}" 11984build_xm_file="${build_auto} ansidecl.h ${build_xm_file}" 11985# We don't want ansidecl.h in target files, write code there in ISO/GNU C. 11986# put this back in temporarily. 11987xm_file="auto-host.h ansidecl.h ${xm_file}" 11988 11989# -------- 11990# UNSORTED 11991# -------- 11992 11993# Compile in configure arguments. 11994if test -f configargs.h ; then 11995 # Being re-configured. 11996 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'` 11997 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'` 11998 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then 11999 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" 12000 fi 12001else 12002 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS" 12003fi 12004 12005# Double all backslashes and backslash all quotes to turn 12006# gcc_config_arguments into a C string. 12007sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out 12008$gcc_config_arguments 12009EOF 12010gcc_config_arguments_str=`cat conftest.out` 12011rm -f conftest.out 12012 12013cat > configargs.h <<EOF 12014/* Generated automatically. */ 12015static const char configuration_arguments[] = "$gcc_config_arguments_str"; 12016static const char thread_model[] = "$thread_file"; 12017 12018static const struct { 12019 const char *name, *value; 12020} configure_default_options[] = $configure_default_options; 12021EOF 12022 12023gcc_BASEVER=`cat $srcdir/BASE-VER` 12024gcc_DEVPHASE=`cat $srcdir/DEV-PHASE` 12025gcc_DATESTAMP=`cat $srcdir/DATESTAMP` 12026if test -f $srcdir/REVISION ; then 12027 gcc_REVISION=`cat $srcdir/REVISION` 12028else 12029 gcc_REVISION="" 12030fi 12031cat > plugin-version.h <<EOF 12032#include "configargs.h" 12033 12034#define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'` 12035#define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'` 12036#define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'` 12037#define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR) 12038 12039static char basever[] = "$gcc_BASEVER"; 12040static char datestamp[] = "$gcc_DATESTAMP"; 12041static char devphase[] = "$gcc_DEVPHASE"; 12042static char revision[] = "$gcc_REVISION"; 12043 12044/* FIXME plugins: We should make the version information more precise. 12045 One way to do is to add a checksum. */ 12046 12047static struct plugin_gcc_version gcc_version = {basever, datestamp, 12048 devphase, revision, 12049 configuration_arguments}; 12050EOF 12051 12052# Determine what GCC version number to use in filesystem paths. 12053 12054 get_gcc_base_ver="cat" 12055 12056# Check whether --with-gcc-major-version-only was given. 12057if test "${with_gcc_major_version_only+set}" = set; then : 12058 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 12059 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 12060 fi 12061 12062fi 12063 12064 12065 12066 12067# Internationalization 12068# If we haven't got the data from the intl directory, 12069# assume NLS is disabled. 12070USE_NLS=no 12071LIBINTL= 12072LIBINTL_DEP= 12073INCINTL= 12074XGETTEXT= 12075GMSGFMT= 12076POSUB= 12077 12078if test -f ../intl/config.intl; then 12079 . ../intl/config.intl 12080fi 12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12082$as_echo_n "checking whether NLS is requested... " >&6; } 12083if test x"$USE_NLS" != xyes; then 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12085$as_echo "no" >&6; } 12086else 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12088$as_echo "yes" >&6; } 12089 12090$as_echo "#define ENABLE_NLS 1" >>confdefs.h 12091 12092 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 12094$as_echo_n "checking for catalogs to be installed... " >&6; } 12095 # Look for .po and .gmo files in the source directory. 12096 CATALOGS= 12097 XLINGUAS= 12098 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 12099 # If there aren't any .gmo files the shell will give us the 12100 # literal string "../path/to/srcdir/po/*.gmo" which has to be 12101 # weeded out. 12102 case "$cat" in *\**) 12103 continue;; 12104 esac 12105 # The quadruple backslash is collapsed to a double backslash 12106 # by the backticks, then collapsed again by the double quotes, 12107 # leaving us with one backslash in the sed expression (right 12108 # before the dot that mustn't act as a wildcard). 12109 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 12110 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 12111 # The user is allowed to set LINGUAS to a list of languages to 12112 # install catalogs for. If it's empty that means "all of them." 12113 if test "x$LINGUAS" = x; then 12114 CATALOGS="$CATALOGS $cat" 12115 XLINGUAS="$XLINGUAS $lang" 12116 else 12117 case "$LINGUAS" in *$lang*) 12118 CATALOGS="$CATALOGS $cat" 12119 XLINGUAS="$XLINGUAS $lang" 12120 ;; 12121 esac 12122 fi 12123 done 12124 LINGUAS="$XLINGUAS" 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 12126$as_echo "$LINGUAS" >&6; } 12127 12128 12129 DATADIRNAME=share 12130 12131 INSTOBJEXT=.mo 12132 12133 GENCAT=gencat 12134 12135 CATOBJEXT=.gmo 12136 12137fi 12138 12139# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get 12140# -liconv on the link line twice. 12141case "$LIBINTL" in *$LIBICONV*) 12142 LIBICONV= ;; 12143esac 12144 12145# Check whether --enable-secureplt was given. 12146if test "${enable_secureplt+set}" = set; then : 12147 enableval=$enable_secureplt; 12148fi 12149 12150 12151# Check whether --enable-mingw-wildcard was given. 12152if test "${enable_mingw_wildcard+set}" = set; then : 12153 enableval=$enable_mingw_wildcard; 12154else 12155 enable_mingw_wildcard=platform 12156fi 12157 12158if test x"$enable_mingw_wildcard" != xplatform ; then : 12159 12160cat >>confdefs.h <<_ACEOF 12161#define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?) 12162_ACEOF 12163 12164fi 12165 12166# Check whether --enable-large-address-aware was given. 12167if test "${enable_large_address_aware+set}" = set; then : 12168 enableval=$enable_large_address_aware; 12169fi 12170 12171if test x"$enable_large_address_aware" = xyes; then : 12172 12173$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h 12174 12175fi 12176 12177# Check whether --enable-leading-mingw64-underscores was given. 12178if test "${enable_leading_mingw64_underscores+set}" = set; then : 12179 enableval=$enable_leading_mingw64_underscores; 12180fi 12181 12182if test x"$enable_leading_mingw64_underscores" = xyes ; then : 12183 12184$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h 12185 12186fi 12187 12188# Check whether --enable-cld was given. 12189if test "${enable_cld+set}" = set; then : 12190 enableval=$enable_cld; 12191else 12192 enable_cld=no 12193fi 12194 12195 12196# Check whether --enable-frame-pointer was given. 12197if test "${enable_frame_pointer+set}" = set; then : 12198 enableval=$enable_frame_pointer; 12199else 12200 12201case $target_os in 12202linux* | darwin[8912]*) 12203 # Enable -fomit-frame-pointer by default for Linux and Darwin with 12204 # DWARF2. 12205 enable_frame_pointer=no 12206 ;; 12207*) 12208 enable_frame_pointer=yes 12209 ;; 12210esac 12211 12212fi 12213 12214 12215# Windows32 Registry support for specifying GCC installation paths. 12216# Check whether --enable-win32-registry was given. 12217if test "${enable_win32_registry+set}" = set; then : 12218 enableval=$enable_win32_registry; 12219fi 12220 12221 12222case $host_os in 12223 win32 | pe | cygwin* | mingw32*) 12224 if test "x$enable_win32_registry" != xno; then 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5 12226$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; } 12227if ${ac_cv_search_RegOpenKeyExA+:} false; then : 12228 $as_echo_n "(cached) " >&6 12229else 12230 ac_func_search_save_LIBS=$LIBS 12231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12232/* end confdefs.h. */ 12233 12234/* Override any GCC internal prototype to avoid an error. 12235 Use char because int might match the return type of a GCC 12236 builtin and then its argument prototype would still apply. */ 12237#ifdef __cplusplus 12238extern "C" 12239#endif 12240char RegOpenKeyExA (); 12241int 12242main () 12243{ 12244return RegOpenKeyExA (); 12245 ; 12246 return 0; 12247} 12248_ACEOF 12249for ac_lib in '' advapi32; do 12250 if test -z "$ac_lib"; then 12251 ac_res="none required" 12252 else 12253 ac_res=-l$ac_lib 12254 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12255 fi 12256 if ac_fn_cxx_try_link "$LINENO"; then : 12257 ac_cv_search_RegOpenKeyExA=$ac_res 12258fi 12259rm -f core conftest.err conftest.$ac_objext \ 12260 conftest$ac_exeext 12261 if ${ac_cv_search_RegOpenKeyExA+:} false; then : 12262 break 12263fi 12264done 12265if ${ac_cv_search_RegOpenKeyExA+:} false; then : 12266 12267else 12268 ac_cv_search_RegOpenKeyExA=no 12269fi 12270rm conftest.$ac_ext 12271LIBS=$ac_func_search_save_LIBS 12272fi 12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5 12274$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; } 12275ac_res=$ac_cv_search_RegOpenKeyExA 12276if test "$ac_res" != no; then : 12277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12278 12279else 12280 enable_win32_registry=no 12281fi 12282 12283 fi 12284 12285 if test "x$enable_win32_registry" != xno; then 12286 12287$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h 12288 12289 12290 if test "x$enable_win32_registry" != xyes \ 12291 && test "x$enable_win32_registry" != x; then 12292 12293cat >>confdefs.h <<_ACEOF 12294#define WIN32_REGISTRY_KEY "$enable_win32_registry" 12295_ACEOF 12296 12297 fi 12298 fi 12299 ;; 12300esac 12301 12302# Get an absolute path to the GCC top-level source directory 12303holddir=`${PWDCMD-pwd}` 12304cd $srcdir 12305topdir=`${PWDCMD-pwd}` 12306cd $holddir 12307 12308# Conditionalize the makefile for this host machine. 12309xmake_file= 12310for f in ${host_xmake_file} 12311do 12312 if test -f ${srcdir}/config/$f 12313 then 12314 xmake_file="${xmake_file} \$(srcdir)/config/$f" 12315 fi 12316done 12317 12318# Conditionalize the makefile for this target machine. 12319tmake_file_= 12320for f in ${tmake_file} 12321do 12322 if test -f ${srcdir}/config/$f 12323 then 12324 tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 12325 fi 12326done 12327tmake_file="${tmake_file_}" 12328 12329out_object_file=`basename $out_file .c`.o 12330common_out_object_file=`basename $common_out_file .c`.o 12331 12332tm_file_list="options.h" 12333tm_include_list="options.h insn-constants.h" 12334for f in $tm_file; do 12335 case $f in 12336 ./* ) 12337 f=`echo $f | sed 's/^..//'` 12338 tm_file_list="${tm_file_list} $f" 12339 tm_include_list="${tm_include_list} $f" 12340 ;; 12341 defaults.h ) 12342 tm_file_list="${tm_file_list} \$(srcdir)/$f" 12343 tm_include_list="${tm_include_list} $f" 12344 ;; 12345 * ) 12346 tm_file_list="${tm_file_list} \$(srcdir)/config/$f" 12347 tm_include_list="${tm_include_list} config/$f" 12348 ;; 12349 esac 12350done 12351 12352tm_p_file_list= 12353tm_p_include_list= 12354for f in $tm_p_file; do 12355 case $f in 12356 tm-preds.h ) 12357 tm_p_file_list="${tm_p_file_list} $f" 12358 tm_p_include_list="${tm_p_include_list} $f" 12359 ;; 12360 * ) 12361 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f" 12362 tm_p_include_list="${tm_p_include_list} config/$f" 12363 esac 12364done 12365 12366tm_d_file_list= 12367tm_d_include_list="options.h insn-constants.h" 12368for f in $tm_d_file; do 12369 case $f in 12370 defaults.h ) 12371 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f" 12372 tm_d_include_list="${tm_d_include_list} $f" 12373 ;; 12374 * ) 12375 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f" 12376 tm_d_include_list="${tm_d_include_list} config/$f" 12377 ;; 12378 esac 12379done 12380 12381xm_file_list= 12382xm_include_list= 12383for f in $xm_file; do 12384 case $f in 12385 ansidecl.h ) 12386 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f" 12387 xm_include_list="${xm_include_list} $f" 12388 ;; 12389 auto-host.h ) 12390 xm_file_list="${xm_file_list} $f" 12391 xm_include_list="${xm_include_list} $f" 12392 ;; 12393 * ) 12394 xm_file_list="${xm_file_list} \$(srcdir)/config/$f" 12395 xm_include_list="${xm_include_list} config/$f" 12396 ;; 12397 esac 12398done 12399 12400host_xm_file_list= 12401host_xm_include_list= 12402for f in $host_xm_file; do 12403 case $f in 12404 ansidecl.h ) 12405 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f" 12406 host_xm_include_list="${host_xm_include_list} $f" 12407 ;; 12408 auto-host.h ) 12409 host_xm_file_list="${host_xm_file_list} $f" 12410 host_xm_include_list="${host_xm_include_list} $f" 12411 ;; 12412 * ) 12413 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" 12414 host_xm_include_list="${host_xm_include_list} config/$f" 12415 ;; 12416 esac 12417done 12418 12419build_xm_file_list= 12420for f in $build_xm_file; do 12421 case $f in 12422 ansidecl.h ) 12423 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f" 12424 build_xm_include_list="${build_xm_include_list} $f" 12425 ;; 12426 auto-build.h | auto-host.h ) 12427 build_xm_file_list="${build_xm_file_list} $f" 12428 build_xm_include_list="${build_xm_include_list} $f" 12429 ;; 12430 * ) 12431 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" 12432 build_xm_include_list="${build_xm_include_list} config/$f" 12433 ;; 12434 esac 12435done 12436 12437# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a 12438# cross-compiler which does not use the native headers and libraries. 12439# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR. 12440CROSS= 12441ALL=all.internal 12442SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' 12443BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR 12444 12445if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x || 12446 test x$build != x$host || test "x$with_build_sysroot" != x; then 12447 if test "x$with_build_sysroot" != x; then 12448 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)' 12449 else 12450 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 12451 fi 12452 12453 if test x$host != x$target 12454 then 12455 CROSS="-DCROSS_DIRECTORY_STRUCTURE" 12456 ALL=all.cross 12457 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR 12458 elif test "x$TARGET_SYSTEM_ROOT" != x; then 12459 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 12460 fi 12461 12462 if test "x$with_build_sysroot" != "x"; then 12463 target_header_dir="${with_build_sysroot}${native_system_header_dir}" 12464 elif test "x$with_sysroot" = x; then 12465 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include" 12466 elif test "x$with_sysroot" = xyes; then 12467 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}" 12468 else 12469 target_header_dir="${with_sysroot}${native_system_header_dir}" 12470 fi 12471else 12472 target_header_dir=${native_system_header_dir} 12473fi 12474 12475# If this is a cross-compiler that does not 12476# have its own set of headers then define 12477# inhibit_libc 12478 12479# If this is using newlib, without having the headers available now, 12480# then define inhibit_libc in LIBGCC2_CFLAGS. 12481# This prevents libgcc2 from containing any code which requires libc 12482# support. 12483: ${inhibit_libc=false} 12484if { { test x$host != x$target && test "x$with_sysroot" = x ; } || 12485 test x$with_newlib = xyes ; } && 12486 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then 12487 inhibit_libc=true 12488fi 12489 12490 12491# When building gcc with a cross-compiler, we need to adjust things so 12492# that the generator programs are still built with the native compiler. 12493# Also, we cannot run fixincludes. 12494 12495# These are the normal (build=host) settings: 12496CC_FOR_BUILD='$(CC)' 12497CXX_FOR_BUILD='$(CXX)' 12498BUILD_CFLAGS='$(ALL_CFLAGS)' 12499BUILD_CXXFLAGS='$(ALL_CXXFLAGS)' 12500BUILD_LDFLAGS='$(LDFLAGS)' 12501STMP_FIXINC=stmp-fixinc 12502 12503BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)' 12504BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)' 12505 12506# And these apply if build != host, or we are generating coverage data 12507if test x$build != x$host || test "x$coverage_flags" != x 12508then 12509 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)' 12510 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)' 12511 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)' 12512 12513 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}} 12514 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}} 12515 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)' 12516 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)' 12517fi 12518 12519 12520 12521# Expand extra_headers to include complete path. 12522# This substitutes for lots of t-* files. 12523extra_headers_list= 12524# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers. 12525for file in ${extra_headers} ; do 12526 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}" 12527done 12528 12529# If use_gcc_tgmath is set, append ginclude/tgmath.h. 12530if test x"$use_gcc_tgmath" = xyes 12531then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h" 12532fi 12533 12534# Define collect2 in Makefile. 12535case $host_can_use_collect2 in 12536 no) collect2= ;; 12537 *) collect2='collect2$(exeext)' ;; 12538esac 12539 12540 12541# Add a definition of USE_COLLECT2 if system wants one. 12542case $use_collect2 in 12543 no) use_collect2= ;; 12544 "") ;; 12545 *) 12546 host_xm_defines="${host_xm_defines} USE_COLLECT2" 12547 xm_defines="${xm_defines} USE_COLLECT2" 12548 case $host_can_use_collect2 in 12549 no) 12550 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5 12551 ;; 12552 esac 12553 ;; 12554esac 12555 12556 12557cat >>confdefs.h <<_ACEOF 12558#define LTOPLUGINSONAME "${host_lto_plugin_soname}" 12559_ACEOF 12560 12561 12562# --------------------------- 12563# Assembler & linker features 12564# --------------------------- 12565 12566# During stage 2, ld is actually gcc/collect-ld, which is a small script to 12567# discern between when to use prev-ld/ld-new and when to use ld/ld-new. 12568# However when ld-new is first executed from the build tree, libtool will 12569# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers 12570# to the build tree. While doing this we need to use the previous-stage 12571# linker, or we have an infinite loop. The presence of a shell script as 12572# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses 12573# the gcc/collect-ld script. So we need to know how libtool works, or 12574# exec-tool will fail. 12575 12576 12577case `pwd` in 12578 *\ * | *\ *) 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 12580$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 12581esac 12582 12583 12584 12585macro_version='2.2.7a' 12586macro_revision='1.3134' 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600ltmain="$ac_aux_dir/ltmain.sh" 12601 12602# Backslashify metacharacters that are still active within 12603# double-quoted strings. 12604sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 12605 12606# Same as above, but do not quote variable references. 12607double_quote_subst='s/\(["`\\]\)/\\\1/g' 12608 12609# Sed substitution to delay expansion of an escaped shell variable in a 12610# double_quote_subst'ed string. 12611delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 12612 12613# Sed substitution to delay expansion of an escaped single quote. 12614delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 12615 12616# Sed substitution to avoid accidental globbing in evaled expressions 12617no_glob_subst='s/\*/\\\*/g' 12618 12619ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12620ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 12621ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 12622 12623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 12624$as_echo_n "checking how to print strings... " >&6; } 12625# Test print first, because it will be a builtin if present. 12626if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 12627 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 12628 ECHO='print -r --' 12629elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 12630 ECHO='printf %s\n' 12631else 12632 # Use this function as a fallback that always works. 12633 func_fallback_echo () 12634 { 12635 eval 'cat <<_LTECHO_EOF 12636$1 12637_LTECHO_EOF' 12638 } 12639 ECHO='func_fallback_echo' 12640fi 12641 12642# func_echo_all arg... 12643# Invoke $ECHO with all args, space-separated. 12644func_echo_all () 12645{ 12646 $ECHO "" 12647} 12648 12649case "$ECHO" in 12650 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 12651$as_echo "printf" >&6; } ;; 12652 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 12653$as_echo "print -r" >&6; } ;; 12654 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 12655$as_echo "cat" >&6; } ;; 12656esac 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12672$as_echo_n "checking for a sed that does not truncate output... " >&6; } 12673if ${ac_cv_path_SED+:} false; then : 12674 $as_echo_n "(cached) " >&6 12675else 12676 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12677 for ac_i in 1 2 3 4 5 6 7; do 12678 ac_script="$ac_script$as_nl$ac_script" 12679 done 12680 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12681 { ac_script=; unset ac_script;} 12682 if test -z "$SED"; then 12683 ac_path_SED_found=false 12684 # Loop through the user's path and test for each of PROGNAME-LIST 12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12686for as_dir in $PATH 12687do 12688 IFS=$as_save_IFS 12689 test -z "$as_dir" && as_dir=. 12690 for ac_prog in sed gsed; do 12691 for ac_exec_ext in '' $ac_executable_extensions; do 12692 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12693 as_fn_executable_p "$ac_path_SED" || continue 12694# Check for GNU ac_path_SED and select it if it is found. 12695 # Check for GNU $ac_path_SED 12696case `"$ac_path_SED" --version 2>&1` in 12697*GNU*) 12698 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12699*) 12700 ac_count=0 12701 $as_echo_n 0123456789 >"conftest.in" 12702 while : 12703 do 12704 cat "conftest.in" "conftest.in" >"conftest.tmp" 12705 mv "conftest.tmp" "conftest.in" 12706 cp "conftest.in" "conftest.nl" 12707 $as_echo '' >> "conftest.nl" 12708 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12710 as_fn_arith $ac_count + 1 && ac_count=$as_val 12711 if test $ac_count -gt ${ac_path_SED_max-0}; then 12712 # Best one so far, save it but keep looking for a better one 12713 ac_cv_path_SED="$ac_path_SED" 12714 ac_path_SED_max=$ac_count 12715 fi 12716 # 10*(2^10) chars as input seems more than enough 12717 test $ac_count -gt 10 && break 12718 done 12719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12720esac 12721 12722 $ac_path_SED_found && break 3 12723 done 12724 done 12725 done 12726IFS=$as_save_IFS 12727 if test -z "$ac_cv_path_SED"; then 12728 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12729 fi 12730else 12731 ac_cv_path_SED=$SED 12732fi 12733 12734fi 12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12736$as_echo "$ac_cv_path_SED" >&6; } 12737 SED="$ac_cv_path_SED" 12738 rm -f conftest.sed 12739 12740test -z "$SED" && SED=sed 12741Xsed="$SED -e 1s/^X//" 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12754$as_echo_n "checking for fgrep... " >&6; } 12755if ${ac_cv_path_FGREP+:} false; then : 12756 $as_echo_n "(cached) " >&6 12757else 12758 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12759 then ac_cv_path_FGREP="$GREP -F" 12760 else 12761 if test -z "$FGREP"; then 12762 ac_path_FGREP_found=false 12763 # Loop through the user's path and test for each of PROGNAME-LIST 12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12766do 12767 IFS=$as_save_IFS 12768 test -z "$as_dir" && as_dir=. 12769 for ac_prog in fgrep; do 12770 for ac_exec_ext in '' $ac_executable_extensions; do 12771 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12772 as_fn_executable_p "$ac_path_FGREP" || continue 12773# Check for GNU ac_path_FGREP and select it if it is found. 12774 # Check for GNU $ac_path_FGREP 12775case `"$ac_path_FGREP" --version 2>&1` in 12776*GNU*) 12777 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12778*) 12779 ac_count=0 12780 $as_echo_n 0123456789 >"conftest.in" 12781 while : 12782 do 12783 cat "conftest.in" "conftest.in" >"conftest.tmp" 12784 mv "conftest.tmp" "conftest.in" 12785 cp "conftest.in" "conftest.nl" 12786 $as_echo 'FGREP' >> "conftest.nl" 12787 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12789 as_fn_arith $ac_count + 1 && ac_count=$as_val 12790 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12791 # Best one so far, save it but keep looking for a better one 12792 ac_cv_path_FGREP="$ac_path_FGREP" 12793 ac_path_FGREP_max=$ac_count 12794 fi 12795 # 10*(2^10) chars as input seems more than enough 12796 test $ac_count -gt 10 && break 12797 done 12798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12799esac 12800 12801 $ac_path_FGREP_found && break 3 12802 done 12803 done 12804 done 12805IFS=$as_save_IFS 12806 if test -z "$ac_cv_path_FGREP"; then 12807 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12808 fi 12809else 12810 ac_cv_path_FGREP=$FGREP 12811fi 12812 12813 fi 12814fi 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12816$as_echo "$ac_cv_path_FGREP" >&6; } 12817 FGREP="$ac_cv_path_FGREP" 12818 12819 12820test -z "$GREP" && GREP=grep 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840# Check whether --with-gnu-ld was given. 12841if test "${with_gnu_ld+set}" = set; then : 12842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12843else 12844 with_gnu_ld=no 12845fi 12846 12847ac_prog=ld 12848if test "$GCC" = yes; then 12849 # Check if gcc -print-prog-name=ld gives a path. 12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12851$as_echo_n "checking for ld used by $CC... " >&6; } 12852 case $host in 12853 *-*-mingw*) 12854 # gcc leaves a trailing carriage return which upsets mingw 12855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12856 *) 12857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12858 esac 12859 case $ac_prog in 12860 # Accept absolute paths. 12861 [\\/]* | ?:[\\/]*) 12862 re_direlt='/[^/][^/]*/\.\./' 12863 # Canonicalize the pathname of ld 12864 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12865 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12866 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12867 done 12868 test -z "$LD" && LD="$ac_prog" 12869 ;; 12870 "") 12871 # If it fails, then pretend we aren't using GCC. 12872 ac_prog=ld 12873 ;; 12874 *) 12875 # If it is relative, then search for the first ld in PATH. 12876 with_gnu_ld=unknown 12877 ;; 12878 esac 12879elif test "$with_gnu_ld" = yes; then 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12881$as_echo_n "checking for GNU ld... " >&6; } 12882else 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12884$as_echo_n "checking for non-GNU ld... " >&6; } 12885fi 12886if ${lt_cv_path_LD+:} false; then : 12887 $as_echo_n "(cached) " >&6 12888else 12889 if test -z "$LD"; then 12890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12891 for ac_dir in $PATH; do 12892 IFS="$lt_save_ifs" 12893 test -z "$ac_dir" && ac_dir=. 12894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12895 lt_cv_path_LD="$ac_dir/$ac_prog" 12896 # Check to see if the program is GNU ld. I'd rather use --version, 12897 # but apparently some variants of GNU ld only accept -v. 12898 # Break only if it was the GNU/non-GNU ld that we prefer. 12899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12900 *GNU* | *'with BFD'*) 12901 test "$with_gnu_ld" != no && break 12902 ;; 12903 *) 12904 test "$with_gnu_ld" != yes && break 12905 ;; 12906 esac 12907 fi 12908 done 12909 IFS="$lt_save_ifs" 12910else 12911 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12912fi 12913fi 12914 12915LD="$lt_cv_path_LD" 12916if test -n "$LD"; then 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12918$as_echo "$LD" >&6; } 12919else 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12921$as_echo "no" >&6; } 12922fi 12923test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12925$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12926if ${lt_cv_prog_gnu_ld+:} false; then : 12927 $as_echo_n "(cached) " >&6 12928else 12929 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12930case `$LD -v 2>&1 </dev/null` in 12931*GNU* | *'with BFD'*) 12932 lt_cv_prog_gnu_ld=yes 12933 ;; 12934*) 12935 lt_cv_prog_gnu_ld=no 12936 ;; 12937esac 12938fi 12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12940$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12941with_gnu_ld=$lt_cv_prog_gnu_ld 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12952$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12953if ${lt_cv_path_NM+:} false; then : 12954 $as_echo_n "(cached) " >&6 12955else 12956 if test -n "$NM"; then 12957 # Let the user override the test. 12958 lt_cv_path_NM="$NM" 12959else 12960 lt_nm_to_check="${ac_tool_prefix}nm" 12961 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12962 lt_nm_to_check="$lt_nm_to_check nm" 12963 fi 12964 for lt_tmp_nm in $lt_nm_to_check; do 12965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12966 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12967 IFS="$lt_save_ifs" 12968 test -z "$ac_dir" && ac_dir=. 12969 tmp_nm="$ac_dir/$lt_tmp_nm" 12970 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 12971 # Check to see if the nm accepts a BSD-compat flag. 12972 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 12973 # nm: unknown option "B" ignored 12974 # Tru64's nm complains that /dev/null is an invalid object file 12975 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 12976 */dev/null* | *'Invalid file or object type'*) 12977 lt_cv_path_NM="$tmp_nm -B" 12978 break 12979 ;; 12980 *) 12981 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 12982 */dev/null*) 12983 lt_cv_path_NM="$tmp_nm -p" 12984 break 12985 ;; 12986 *) 12987 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12988 continue # so that we can try to find one that supports BSD flags 12989 ;; 12990 esac 12991 ;; 12992 esac 12993 fi 12994 done 12995 IFS="$lt_save_ifs" 12996 done 12997 : ${lt_cv_path_NM=no} 12998fi 12999fi 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 13001$as_echo "$lt_cv_path_NM" >&6; } 13002if test "$lt_cv_path_NM" != "no"; then 13003 NM="$lt_cv_path_NM" 13004else 13005 # Didn't find any BSD compatible name lister, look for dumpbin. 13006 if test -n "$DUMPBIN"; then : 13007 # Let the user override the test. 13008 else 13009 if test -n "$ac_tool_prefix"; then 13010 for ac_prog in dumpbin "link -dump" 13011 do 13012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13013set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13015$as_echo_n "checking for $ac_word... " >&6; } 13016if ${ac_cv_prog_DUMPBIN+:} false; then : 13017 $as_echo_n "(cached) " >&6 13018else 13019 if test -n "$DUMPBIN"; then 13020 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 13021else 13022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13023for as_dir in $PATH 13024do 13025 IFS=$as_save_IFS 13026 test -z "$as_dir" && as_dir=. 13027 for ac_exec_ext in '' $ac_executable_extensions; do 13028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13029 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13031 break 2 13032 fi 13033done 13034 done 13035IFS=$as_save_IFS 13036 13037fi 13038fi 13039DUMPBIN=$ac_cv_prog_DUMPBIN 13040if test -n "$DUMPBIN"; then 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 13042$as_echo "$DUMPBIN" >&6; } 13043else 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13045$as_echo "no" >&6; } 13046fi 13047 13048 13049 test -n "$DUMPBIN" && break 13050 done 13051fi 13052if test -z "$DUMPBIN"; then 13053 ac_ct_DUMPBIN=$DUMPBIN 13054 for ac_prog in dumpbin "link -dump" 13055do 13056 # Extract the first word of "$ac_prog", so it can be a program name with args. 13057set dummy $ac_prog; ac_word=$2 13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13059$as_echo_n "checking for $ac_word... " >&6; } 13060if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 13061 $as_echo_n "(cached) " >&6 13062else 13063 if test -n "$ac_ct_DUMPBIN"; then 13064 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 13065else 13066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13067for as_dir in $PATH 13068do 13069 IFS=$as_save_IFS 13070 test -z "$as_dir" && as_dir=. 13071 for ac_exec_ext in '' $ac_executable_extensions; do 13072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13073 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13075 break 2 13076 fi 13077done 13078 done 13079IFS=$as_save_IFS 13080 13081fi 13082fi 13083ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 13084if test -n "$ac_ct_DUMPBIN"; then 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 13086$as_echo "$ac_ct_DUMPBIN" >&6; } 13087else 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13089$as_echo "no" >&6; } 13090fi 13091 13092 13093 test -n "$ac_ct_DUMPBIN" && break 13094done 13095 13096 if test "x$ac_ct_DUMPBIN" = x; then 13097 DUMPBIN=":" 13098 else 13099 case $cross_compiling:$ac_tool_warned in 13100yes:) 13101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13103ac_tool_warned=yes ;; 13104esac 13105 DUMPBIN=$ac_ct_DUMPBIN 13106 fi 13107fi 13108 13109 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 13110 *COFF*) 13111 DUMPBIN="$DUMPBIN -symbols" 13112 ;; 13113 *) 13114 DUMPBIN=: 13115 ;; 13116 esac 13117 fi 13118 13119 if test "$DUMPBIN" != ":"; then 13120 NM="$DUMPBIN" 13121 fi 13122fi 13123test -z "$NM" && NM=nm 13124 13125 13126 13127 13128 13129 13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 13131$as_echo_n "checking the name lister ($NM) interface... " >&6; } 13132if ${lt_cv_nm_interface+:} false; then : 13133 $as_echo_n "(cached) " >&6 13134else 13135 lt_cv_nm_interface="BSD nm" 13136 echo "int some_variable = 0;" > conftest.$ac_ext 13137 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 13138 (eval "$ac_compile" 2>conftest.err) 13139 cat conftest.err >&5 13140 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 13141 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 13142 cat conftest.err >&5 13143 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 13144 cat conftest.out >&5 13145 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 13146 lt_cv_nm_interface="MS dumpbin" 13147 fi 13148 rm -f conftest* 13149fi 13150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 13151$as_echo "$lt_cv_nm_interface" >&6; } 13152 13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13154$as_echo_n "checking whether ln -s works... " >&6; } 13155LN_S=$as_ln_s 13156if test "$LN_S" = "ln -s"; then 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13158$as_echo "yes" >&6; } 13159else 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13161$as_echo "no, using $LN_S" >&6; } 13162fi 13163 13164# find the maximum length of command line arguments 13165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 13166$as_echo_n "checking the maximum length of command line arguments... " >&6; } 13167if ${lt_cv_sys_max_cmd_len+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 i=0 13171 teststring="ABCD" 13172 13173 case $build_os in 13174 msdosdjgpp*) 13175 # On DJGPP, this test can blow up pretty badly due to problems in libc 13176 # (any single argument exceeding 2000 bytes causes a buffer overrun 13177 # during glob expansion). Even if it were fixed, the result of this 13178 # check would be larger than it should be. 13179 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13180 ;; 13181 13182 gnu*) 13183 # Under GNU Hurd, this test is not required because there is 13184 # no limit to the length of command line arguments. 13185 # Libtool will interpret -1 as no limit whatsoever 13186 lt_cv_sys_max_cmd_len=-1; 13187 ;; 13188 13189 cygwin* | mingw* | cegcc*) 13190 # On Win9x/ME, this test blows up -- it succeeds, but takes 13191 # about 5 minutes as the teststring grows exponentially. 13192 # Worse, since 9x/ME are not pre-emptively multitasking, 13193 # you end up with a "frozen" computer, even though with patience 13194 # the test eventually succeeds (with a max line length of 256k). 13195 # Instead, let's just punt: use the minimum linelength reported by 13196 # all of the supported platforms: 8192 (on NT/2K/XP). 13197 lt_cv_sys_max_cmd_len=8192; 13198 ;; 13199 13200 mint*) 13201 # On MiNT this can take a long time and run out of memory. 13202 lt_cv_sys_max_cmd_len=8192; 13203 ;; 13204 13205 amigaos*) 13206 # On AmigaOS with pdksh, this test takes hours, literally. 13207 # So we just punt and use a minimum line length of 8192. 13208 lt_cv_sys_max_cmd_len=8192; 13209 ;; 13210 13211 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 13212 # This has been around since 386BSD, at least. Likely further. 13213 if test -x /sbin/sysctl; then 13214 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13215 elif test -x /usr/sbin/sysctl; then 13216 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13217 else 13218 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13219 fi 13220 # And add a safety zone 13221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13223 ;; 13224 13225 interix*) 13226 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13227 lt_cv_sys_max_cmd_len=196608 13228 ;; 13229 13230 osf*) 13231 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13232 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13233 # nice to cause kernel panics so lets avoid the loop below. 13234 # First set a reasonable default. 13235 lt_cv_sys_max_cmd_len=16384 13236 # 13237 if test -x /sbin/sysconfig; then 13238 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13239 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13240 esac 13241 fi 13242 ;; 13243 sco3.2v5*) 13244 lt_cv_sys_max_cmd_len=102400 13245 ;; 13246 sysv5* | sco5v6* | sysv4.2uw2*) 13247 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13248 if test -n "$kargmax"; then 13249 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13250 else 13251 lt_cv_sys_max_cmd_len=32768 13252 fi 13253 ;; 13254 *) 13255 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13256 if test -n "$lt_cv_sys_max_cmd_len"; then 13257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13259 else 13260 # Make teststring a little bigger before we do anything with it. 13261 # a 1K string should be a reasonable start. 13262 for i in 1 2 3 4 5 6 7 8 ; do 13263 teststring=$teststring$teststring 13264 done 13265 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13266 # If test is not a shell built-in, we'll probably end up computing a 13267 # maximum length that is only half of the actual maximum length, but 13268 # we can't tell. 13269 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 13270 = "X$teststring$teststring"; } >/dev/null 2>&1 && 13271 test $i != 17 # 1/2 MB should be enough 13272 do 13273 i=`expr $i + 1` 13274 teststring=$teststring$teststring 13275 done 13276 # Only check the string length outside the loop. 13277 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 13278 teststring= 13279 # Add a significant safety factor because C++ compilers can tack on 13280 # massive amounts of additional arguments before passing them to the 13281 # linker. It appears as though 1/2 is a usable value. 13282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 13283 fi 13284 ;; 13285 esac 13286 13287fi 13288 13289if test -n $lt_cv_sys_max_cmd_len ; then 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 13291$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 13292else 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13294$as_echo "none" >&6; } 13295fi 13296max_cmd_len=$lt_cv_sys_max_cmd_len 13297 13298 13299 13300 13301 13302 13303: ${CP="cp -f"} 13304: ${MV="mv -f"} 13305: ${RM="rm -f"} 13306 13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 13308$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 13309# Try some XSI features 13310xsi_shell=no 13311( _lt_dummy="a/b/c" 13312 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 13313 = c,a/b,, \ 13314 && eval 'test $(( 1 + 1 )) -eq 2 \ 13315 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 13316 && xsi_shell=yes 13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 13318$as_echo "$xsi_shell" >&6; } 13319 13320 13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 13322$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 13323lt_shell_append=no 13324( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 13325 >/dev/null 2>&1 \ 13326 && lt_shell_append=yes 13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 13328$as_echo "$lt_shell_append" >&6; } 13329 13330 13331if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13332 lt_unset=unset 13333else 13334 lt_unset=false 13335fi 13336 13337 13338 13339 13340 13341# test EBCDIC or ASCII 13342case `echo X|tr X '\101'` in 13343 A) # ASCII based system 13344 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 13345 lt_SP2NL='tr \040 \012' 13346 lt_NL2SP='tr \015\012 \040\040' 13347 ;; 13348 *) # EBCDIC based system 13349 lt_SP2NL='tr \100 \n' 13350 lt_NL2SP='tr \r\n \100\100' 13351 ;; 13352esac 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 13363$as_echo_n "checking for $LD option to reload object files... " >&6; } 13364if ${lt_cv_ld_reload_flag+:} false; then : 13365 $as_echo_n "(cached) " >&6 13366else 13367 lt_cv_ld_reload_flag='-r' 13368fi 13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 13370$as_echo "$lt_cv_ld_reload_flag" >&6; } 13371reload_flag=$lt_cv_ld_reload_flag 13372case $reload_flag in 13373"" | " "*) ;; 13374*) reload_flag=" $reload_flag" ;; 13375esac 13376reload_cmds='$LD$reload_flag -o $output$reload_objs' 13377case $host_os in 13378 darwin*) 13379 if test "$GCC" = yes; then 13380 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 13381 else 13382 reload_cmds='$LD$reload_flag -o $output$reload_objs' 13383 fi 13384 ;; 13385esac 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395if test -n "$ac_tool_prefix"; then 13396 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 13397set dummy ${ac_tool_prefix}objdump; ac_word=$2 13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13399$as_echo_n "checking for $ac_word... " >&6; } 13400if ${ac_cv_prog_OBJDUMP+:} false; then : 13401 $as_echo_n "(cached) " >&6 13402else 13403 if test -n "$OBJDUMP"; then 13404 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 13405else 13406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13407for as_dir in $PATH 13408do 13409 IFS=$as_save_IFS 13410 test -z "$as_dir" && as_dir=. 13411 for ac_exec_ext in '' $ac_executable_extensions; do 13412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13413 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 13414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13415 break 2 13416 fi 13417done 13418 done 13419IFS=$as_save_IFS 13420 13421fi 13422fi 13423OBJDUMP=$ac_cv_prog_OBJDUMP 13424if test -n "$OBJDUMP"; then 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 13426$as_echo "$OBJDUMP" >&6; } 13427else 13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13429$as_echo "no" >&6; } 13430fi 13431 13432 13433fi 13434if test -z "$ac_cv_prog_OBJDUMP"; then 13435 ac_ct_OBJDUMP=$OBJDUMP 13436 # Extract the first word of "objdump", so it can be a program name with args. 13437set dummy objdump; ac_word=$2 13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13439$as_echo_n "checking for $ac_word... " >&6; } 13440if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 13441 $as_echo_n "(cached) " >&6 13442else 13443 if test -n "$ac_ct_OBJDUMP"; then 13444 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 13445else 13446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13447for as_dir in $PATH 13448do 13449 IFS=$as_save_IFS 13450 test -z "$as_dir" && as_dir=. 13451 for ac_exec_ext in '' $ac_executable_extensions; do 13452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13453 ac_cv_prog_ac_ct_OBJDUMP="objdump" 13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13455 break 2 13456 fi 13457done 13458 done 13459IFS=$as_save_IFS 13460 13461fi 13462fi 13463ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 13464if test -n "$ac_ct_OBJDUMP"; then 13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 13466$as_echo "$ac_ct_OBJDUMP" >&6; } 13467else 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13469$as_echo "no" >&6; } 13470fi 13471 13472 if test "x$ac_ct_OBJDUMP" = x; then 13473 OBJDUMP="false" 13474 else 13475 case $cross_compiling:$ac_tool_warned in 13476yes:) 13477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13479ac_tool_warned=yes ;; 13480esac 13481 OBJDUMP=$ac_ct_OBJDUMP 13482 fi 13483else 13484 OBJDUMP="$ac_cv_prog_OBJDUMP" 13485fi 13486 13487test -z "$OBJDUMP" && OBJDUMP=objdump 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 13498$as_echo_n "checking how to recognize dependent libraries... " >&6; } 13499if ${lt_cv_deplibs_check_method+:} false; then : 13500 $as_echo_n "(cached) " >&6 13501else 13502 lt_cv_file_magic_cmd='$MAGIC_CMD' 13503lt_cv_file_magic_test_file= 13504lt_cv_deplibs_check_method='unknown' 13505# Need to set the preceding variable on all platforms that support 13506# interlibrary dependencies. 13507# 'none' -- dependencies not supported. 13508# `unknown' -- same as none, but documents that we really don't know. 13509# 'pass_all' -- all dependencies passed with no checks. 13510# 'test_compile' -- check by making test program. 13511# 'file_magic [[regex]]' -- check by looking for files in library path 13512# which responds to the $file_magic_cmd with a given extended regex. 13513# If you have `file' or equivalent on your system and you're not sure 13514# whether `pass_all' will *always* work, you probably want this one. 13515 13516case $host_os in 13517aix[4-9]*) 13518 lt_cv_deplibs_check_method=pass_all 13519 ;; 13520 13521beos*) 13522 lt_cv_deplibs_check_method=pass_all 13523 ;; 13524 13525bsdi[45]*) 13526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 13527 lt_cv_file_magic_cmd='/usr/bin/file -L' 13528 lt_cv_file_magic_test_file=/shlib/libc.so 13529 ;; 13530 13531cygwin*) 13532 # func_win32_libid is a shell function defined in ltmain.sh 13533 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13534 lt_cv_file_magic_cmd='func_win32_libid' 13535 ;; 13536 13537mingw* | pw32*) 13538 # Base MSYS/MinGW do not provide the 'file' command needed by 13539 # func_win32_libid shell function, so use a weaker test based on 'objdump', 13540 # unless we find 'file', for example because we are cross-compiling. 13541 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 13542 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 13543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13544 lt_cv_file_magic_cmd='func_win32_libid' 13545 else 13546 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 13547 lt_cv_file_magic_cmd='$OBJDUMP -f' 13548 fi 13549 ;; 13550 13551cegcc*) 13552 # use the weaker test based on 'objdump'. See mingw*. 13553 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13554 lt_cv_file_magic_cmd='$OBJDUMP -f' 13555 ;; 13556 13557darwin* | rhapsody*) 13558 lt_cv_deplibs_check_method=pass_all 13559 ;; 13560 13561freebsd* | dragonfly*) 13562 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13563 case $host_cpu in 13564 i*86 ) 13565 # Not sure whether the presence of OpenBSD here was a mistake. 13566 # Let's accept both of them until this is cleared up. 13567 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13568 lt_cv_file_magic_cmd=/usr/bin/file 13569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13570 ;; 13571 esac 13572 else 13573 lt_cv_deplibs_check_method=pass_all 13574 fi 13575 ;; 13576 13577gnu*) 13578 lt_cv_deplibs_check_method=pass_all 13579 ;; 13580 13581haiku*) 13582 lt_cv_deplibs_check_method=pass_all 13583 ;; 13584 13585hpux10.20* | hpux11*) 13586 lt_cv_file_magic_cmd=/usr/bin/file 13587 case $host_cpu in 13588 ia64*) 13589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13590 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13591 ;; 13592 hppa*64*) 13593 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]' 13594 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13595 ;; 13596 *) 13597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13598 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13599 ;; 13600 esac 13601 ;; 13602 13603interix[3-9]*) 13604 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13606 ;; 13607 13608irix5* | irix6* | nonstopux*) 13609 case $LD in 13610 *-32|*"-32 ") libmagic=32-bit;; 13611 *-n32|*"-n32 ") libmagic=N32;; 13612 *-64|*"-64 ") libmagic=64-bit;; 13613 *) libmagic=never-match;; 13614 esac 13615 lt_cv_deplibs_check_method=pass_all 13616 ;; 13617 13618# This must be Linux ELF. 13619linux* | k*bsd*-gnu | kopensolaris*-gnu) 13620 lt_cv_deplibs_check_method=pass_all 13621 ;; 13622 13623netbsd*) 13624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13626 else 13627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13628 fi 13629 ;; 13630 13631newos6*) 13632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13633 lt_cv_file_magic_cmd=/usr/bin/file 13634 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13635 ;; 13636 13637*nto* | *qnx*) 13638 lt_cv_deplibs_check_method=pass_all 13639 ;; 13640 13641openbsd*) 13642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13644 else 13645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13646 fi 13647 ;; 13648 13649osf3* | osf4* | osf5*) 13650 lt_cv_deplibs_check_method=pass_all 13651 ;; 13652 13653rdos*) 13654 lt_cv_deplibs_check_method=pass_all 13655 ;; 13656 13657solaris*) 13658 lt_cv_deplibs_check_method=pass_all 13659 ;; 13660 13661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13662 lt_cv_deplibs_check_method=pass_all 13663 ;; 13664 13665sysv4 | sysv4.3*) 13666 case $host_vendor in 13667 motorola) 13668 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]' 13669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13670 ;; 13671 ncr) 13672 lt_cv_deplibs_check_method=pass_all 13673 ;; 13674 sequent) 13675 lt_cv_file_magic_cmd='/bin/file' 13676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13677 ;; 13678 sni) 13679 lt_cv_file_magic_cmd='/bin/file' 13680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13681 lt_cv_file_magic_test_file=/lib/libc.so 13682 ;; 13683 siemens) 13684 lt_cv_deplibs_check_method=pass_all 13685 ;; 13686 pc) 13687 lt_cv_deplibs_check_method=pass_all 13688 ;; 13689 esac 13690 ;; 13691 13692tpf*) 13693 lt_cv_deplibs_check_method=pass_all 13694 ;; 13695esac 13696 13697fi 13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13699$as_echo "$lt_cv_deplibs_check_method" >&6; } 13700file_magic_cmd=$lt_cv_file_magic_cmd 13701deplibs_check_method=$lt_cv_deplibs_check_method 13702test -z "$deplibs_check_method" && deplibs_check_method=unknown 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715if test -n "$ac_tool_prefix"; then 13716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 13717set dummy ${ac_tool_prefix}ar; ac_word=$2 13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13719$as_echo_n "checking for $ac_word... " >&6; } 13720if ${ac_cv_prog_AR+:} false; then : 13721 $as_echo_n "(cached) " >&6 13722else 13723 if test -n "$AR"; then 13724 ac_cv_prog_AR="$AR" # Let the user override the test. 13725else 13726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13727for as_dir in $PATH 13728do 13729 IFS=$as_save_IFS 13730 test -z "$as_dir" && as_dir=. 13731 for ac_exec_ext in '' $ac_executable_extensions; do 13732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13733 ac_cv_prog_AR="${ac_tool_prefix}ar" 13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13735 break 2 13736 fi 13737done 13738 done 13739IFS=$as_save_IFS 13740 13741fi 13742fi 13743AR=$ac_cv_prog_AR 13744if test -n "$AR"; then 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13746$as_echo "$AR" >&6; } 13747else 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13749$as_echo "no" >&6; } 13750fi 13751 13752 13753fi 13754if test -z "$ac_cv_prog_AR"; then 13755 ac_ct_AR=$AR 13756 # Extract the first word of "ar", so it can be a program name with args. 13757set dummy ar; ac_word=$2 13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13759$as_echo_n "checking for $ac_word... " >&6; } 13760if ${ac_cv_prog_ac_ct_AR+:} false; then : 13761 $as_echo_n "(cached) " >&6 13762else 13763 if test -n "$ac_ct_AR"; then 13764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13765else 13766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13767for as_dir in $PATH 13768do 13769 IFS=$as_save_IFS 13770 test -z "$as_dir" && as_dir=. 13771 for ac_exec_ext in '' $ac_executable_extensions; do 13772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13773 ac_cv_prog_ac_ct_AR="ar" 13774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13775 break 2 13776 fi 13777done 13778 done 13779IFS=$as_save_IFS 13780 13781fi 13782fi 13783ac_ct_AR=$ac_cv_prog_ac_ct_AR 13784if test -n "$ac_ct_AR"; then 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13786$as_echo "$ac_ct_AR" >&6; } 13787else 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13789$as_echo "no" >&6; } 13790fi 13791 13792 if test "x$ac_ct_AR" = x; then 13793 AR="false" 13794 else 13795 case $cross_compiling:$ac_tool_warned in 13796yes:) 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13799ac_tool_warned=yes ;; 13800esac 13801 AR=$ac_ct_AR 13802 fi 13803else 13804 AR="$ac_cv_prog_AR" 13805fi 13806 13807test -z "$AR" && AR=ar 13808test -z "$AR_FLAGS" && AR_FLAGS=cru 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820if test -n "$ac_tool_prefix"; then 13821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13822set dummy ${ac_tool_prefix}strip; ac_word=$2 13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13824$as_echo_n "checking for $ac_word... " >&6; } 13825if ${ac_cv_prog_STRIP+:} false; then : 13826 $as_echo_n "(cached) " >&6 13827else 13828 if test -n "$STRIP"; then 13829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13830else 13831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13832for as_dir in $PATH 13833do 13834 IFS=$as_save_IFS 13835 test -z "$as_dir" && as_dir=. 13836 for ac_exec_ext in '' $ac_executable_extensions; do 13837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13838 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13840 break 2 13841 fi 13842done 13843 done 13844IFS=$as_save_IFS 13845 13846fi 13847fi 13848STRIP=$ac_cv_prog_STRIP 13849if test -n "$STRIP"; then 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13851$as_echo "$STRIP" >&6; } 13852else 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13854$as_echo "no" >&6; } 13855fi 13856 13857 13858fi 13859if test -z "$ac_cv_prog_STRIP"; then 13860 ac_ct_STRIP=$STRIP 13861 # Extract the first word of "strip", so it can be a program name with args. 13862set dummy strip; ac_word=$2 13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13864$as_echo_n "checking for $ac_word... " >&6; } 13865if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 13866 $as_echo_n "(cached) " >&6 13867else 13868 if test -n "$ac_ct_STRIP"; then 13869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13870else 13871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13872for as_dir in $PATH 13873do 13874 IFS=$as_save_IFS 13875 test -z "$as_dir" && as_dir=. 13876 for ac_exec_ext in '' $ac_executable_extensions; do 13877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13878 ac_cv_prog_ac_ct_STRIP="strip" 13879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13880 break 2 13881 fi 13882done 13883 done 13884IFS=$as_save_IFS 13885 13886fi 13887fi 13888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13889if test -n "$ac_ct_STRIP"; then 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13891$as_echo "$ac_ct_STRIP" >&6; } 13892else 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13894$as_echo "no" >&6; } 13895fi 13896 13897 if test "x$ac_ct_STRIP" = x; then 13898 STRIP=":" 13899 else 13900 case $cross_compiling:$ac_tool_warned in 13901yes:) 13902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13904ac_tool_warned=yes ;; 13905esac 13906 STRIP=$ac_ct_STRIP 13907 fi 13908else 13909 STRIP="$ac_cv_prog_STRIP" 13910fi 13911 13912test -z "$STRIP" && STRIP=: 13913 13914 13915 13916 13917 13918 13919if test -n "$ac_tool_prefix"; then 13920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13921set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13923$as_echo_n "checking for $ac_word... " >&6; } 13924if ${ac_cv_prog_RANLIB+:} false; then : 13925 $as_echo_n "(cached) " >&6 13926else 13927 if test -n "$RANLIB"; then 13928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13929else 13930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13931for as_dir in $PATH 13932do 13933 IFS=$as_save_IFS 13934 test -z "$as_dir" && as_dir=. 13935 for ac_exec_ext in '' $ac_executable_extensions; do 13936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13939 break 2 13940 fi 13941done 13942 done 13943IFS=$as_save_IFS 13944 13945fi 13946fi 13947RANLIB=$ac_cv_prog_RANLIB 13948if test -n "$RANLIB"; then 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13950$as_echo "$RANLIB" >&6; } 13951else 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13953$as_echo "no" >&6; } 13954fi 13955 13956 13957fi 13958if test -z "$ac_cv_prog_RANLIB"; then 13959 ac_ct_RANLIB=$RANLIB 13960 # Extract the first word of "ranlib", so it can be a program name with args. 13961set dummy ranlib; ac_word=$2 13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13963$as_echo_n "checking for $ac_word... " >&6; } 13964if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 if test -n "$ac_ct_RANLIB"; then 13968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13969else 13970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13971for as_dir in $PATH 13972do 13973 IFS=$as_save_IFS 13974 test -z "$as_dir" && as_dir=. 13975 for ac_exec_ext in '' $ac_executable_extensions; do 13976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13977 ac_cv_prog_ac_ct_RANLIB="ranlib" 13978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13979 break 2 13980 fi 13981done 13982 done 13983IFS=$as_save_IFS 13984 13985fi 13986fi 13987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13988if test -n "$ac_ct_RANLIB"; then 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13990$as_echo "$ac_ct_RANLIB" >&6; } 13991else 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13993$as_echo "no" >&6; } 13994fi 13995 13996 if test "x$ac_ct_RANLIB" = x; then 13997 RANLIB=":" 13998 else 13999 case $cross_compiling:$ac_tool_warned in 14000yes:) 14001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14003ac_tool_warned=yes ;; 14004esac 14005 RANLIB=$ac_ct_RANLIB 14006 fi 14007else 14008 RANLIB="$ac_cv_prog_RANLIB" 14009fi 14010 14011test -z "$RANLIB" && RANLIB=: 14012 14013 14014 14015 14016 14017 14018# Determine commands to create old-style static archives. 14019old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 14020old_postinstall_cmds='chmod 644 $oldlib' 14021old_postuninstall_cmds= 14022 14023if test -n "$RANLIB"; then 14024 case $host_os in 14025 openbsd*) 14026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 14027 ;; 14028 *) 14029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 14030 ;; 14031 esac 14032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 14033fi 14034 14035case $host_os in 14036 darwin*) 14037 lock_old_archive_extraction=yes ;; 14038 *) 14039 lock_old_archive_extraction=no ;; 14040esac 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080# If no C compiler was specified, use CC. 14081LTCC=${LTCC-"$CC"} 14082 14083# If no C compiler flags were specified, use CFLAGS. 14084LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14085 14086# Allow CC to be a program name with arguments. 14087compiler=$CC 14088 14089 14090# Check for command to grab the raw symbol name followed by C symbol from nm. 14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 14092$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 14093if ${lt_cv_sys_global_symbol_pipe+:} false; then : 14094 $as_echo_n "(cached) " >&6 14095else 14096 14097# These are sane defaults that work on at least a few old systems. 14098# [They come from Ultrix. What could be older than Ultrix?!! ;)] 14099 14100# Character class describing NM global symbol codes. 14101symcode='[BCDEGRST]' 14102 14103# Regexp to match symbols that can be accessed directly from C. 14104sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 14105 14106# Define system-specific variables. 14107case $host_os in 14108aix*) 14109 symcode='[BCDT]' 14110 ;; 14111cygwin* | mingw* | pw32* | cegcc*) 14112 symcode='[ABCDGISTW]' 14113 ;; 14114hpux*) 14115 if test "$host_cpu" = ia64; then 14116 symcode='[ABCDEGRST]' 14117 fi 14118 ;; 14119irix* | nonstopux*) 14120 symcode='[BCDEGRST]' 14121 ;; 14122osf*) 14123 symcode='[BCDEGQRST]' 14124 ;; 14125solaris*) 14126 symcode='[BDRT]' 14127 ;; 14128sco3.2v5*) 14129 symcode='[DT]' 14130 ;; 14131sysv4.2uw2*) 14132 symcode='[DT]' 14133 ;; 14134sysv5* | sco5v6* | unixware* | OpenUNIX*) 14135 symcode='[ABDT]' 14136 ;; 14137sysv4) 14138 symcode='[DFNSTU]' 14139 ;; 14140esac 14141 14142# If we're using GNU nm, then use its standard symbol codes. 14143case `$NM -V 2>&1` in 14144*GNU* | *'with BFD'*) 14145 symcode='[ABCDGIRSTW]' ;; 14146esac 14147 14148# Transform an extracted symbol line into a proper C declaration. 14149# Some systems (esp. on ia64) link data and code symbols differently, 14150# so use this general approach. 14151lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 14152 14153# Transform an extracted symbol line into symbol name and symbol address 14154lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 14155lt_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'" 14156 14157# Handle CRLF in mingw tool chain 14158opt_cr= 14159case $build_os in 14160mingw*) 14161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 14162 ;; 14163esac 14164 14165# Try without a prefix underscore, then with it. 14166for ac_symprfx in "" "_"; do 14167 14168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 14169 symxfrm="\\1 $ac_symprfx\\2 \\2" 14170 14171 # Write the raw and C identifiers. 14172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14173 # Fake it for dumpbin and say T for any non-static function 14174 # and D for any global variable. 14175 # Also find C++ and __fastcall symbols from MSVC++, 14176 # which start with @ or ?. 14177 lt_cv_sys_global_symbol_pipe="$AWK '"\ 14178" {last_section=section; section=\$ 3};"\ 14179" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 14180" \$ 0!~/External *\|/{next};"\ 14181" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 14182" {if(hide[section]) next};"\ 14183" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 14184" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 14185" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 14186" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 14187" ' prfx=^$ac_symprfx" 14188 else 14189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 14190 fi 14191 14192 # Check to see that the pipe works correctly. 14193 pipe_works=no 14194 14195 rm -f conftest* 14196 cat > conftest.$ac_ext <<_LT_EOF 14197#ifdef __cplusplus 14198extern "C" { 14199#endif 14200char nm_test_var; 14201void nm_test_func(void); 14202void nm_test_func(void){} 14203#ifdef __cplusplus 14204} 14205#endif 14206int main(){nm_test_var='a';nm_test_func();return(0);} 14207_LT_EOF 14208 14209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14210 (eval $ac_compile) 2>&5 14211 ac_status=$? 14212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14213 test $ac_status = 0; }; then 14214 # Now try to grab the symbols. 14215 nlist=conftest.nm 14216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 14217 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 14218 ac_status=$? 14219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14220 test $ac_status = 0; } && test -s "$nlist"; then 14221 # Try sorting and uniquifying the output. 14222 if sort "$nlist" | uniq > "$nlist"T; then 14223 mv -f "$nlist"T "$nlist" 14224 else 14225 rm -f "$nlist"T 14226 fi 14227 14228 # Make sure that we snagged all the symbols we need. 14229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 14230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 14231 cat <<_LT_EOF > conftest.$ac_ext 14232#ifdef __cplusplus 14233extern "C" { 14234#endif 14235 14236_LT_EOF 14237 # Now generate the symbol file. 14238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14239 14240 cat <<_LT_EOF >> conftest.$ac_ext 14241 14242/* The mapping between symbol names and symbols. */ 14243const struct { 14244 const char *name; 14245 void *address; 14246} 14247lt__PROGRAM__LTX_preloaded_symbols[] = 14248{ 14249 { "@PROGRAM@", (void *) 0 }, 14250_LT_EOF 14251 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14252 cat <<\_LT_EOF >> conftest.$ac_ext 14253 {0, (void *) 0} 14254}; 14255 14256/* This works around a problem in FreeBSD linker */ 14257#ifdef FREEBSD_WORKAROUND 14258static const void *lt_preloaded_setup() { 14259 return lt__PROGRAM__LTX_preloaded_symbols; 14260} 14261#endif 14262 14263#ifdef __cplusplus 14264} 14265#endif 14266_LT_EOF 14267 # Now try linking the two files. 14268 mv conftest.$ac_objext conftstm.$ac_objext 14269 lt_save_LIBS="$LIBS" 14270 lt_save_CFLAGS="$CFLAGS" 14271 LIBS="conftstm.$ac_objext" 14272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14274 (eval $ac_link) 2>&5 14275 ac_status=$? 14276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14277 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 14278 pipe_works=yes 14279 fi 14280 LIBS="$lt_save_LIBS" 14281 CFLAGS="$lt_save_CFLAGS" 14282 else 14283 echo "cannot find nm_test_func in $nlist" >&5 14284 fi 14285 else 14286 echo "cannot find nm_test_var in $nlist" >&5 14287 fi 14288 else 14289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14290 fi 14291 else 14292 echo "$progname: failed program was:" >&5 14293 cat conftest.$ac_ext >&5 14294 fi 14295 rm -rf conftest* conftst* 14296 14297 # Do not use the global_symbol_pipe unless it works. 14298 if test "$pipe_works" = yes; then 14299 break 14300 else 14301 lt_cv_sys_global_symbol_pipe= 14302 fi 14303done 14304 14305fi 14306 14307if test -z "$lt_cv_sys_global_symbol_pipe"; then 14308 lt_cv_sys_global_symbol_to_cdecl= 14309fi 14310if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14312$as_echo "failed" >&6; } 14313else 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14315$as_echo "ok" >&6; } 14316fi 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339# Check whether --enable-libtool-lock was given. 14340if test "${enable_libtool_lock+set}" = set; then : 14341 enableval=$enable_libtool_lock; 14342fi 14343 14344test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 14345 14346# Some flags need to be propagated to the compiler or linker for good 14347# libtool support. 14348case $host in 14349ia64-*-hpux*) 14350 # Find out which ABI we are using. 14351 echo 'int i;' > conftest.$ac_ext 14352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14353 (eval $ac_compile) 2>&5 14354 ac_status=$? 14355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14356 test $ac_status = 0; }; then 14357 case `/usr/bin/file conftest.$ac_objext` in 14358 *ELF-32*) 14359 HPUX_IA64_MODE="32" 14360 ;; 14361 *ELF-64*) 14362 HPUX_IA64_MODE="64" 14363 ;; 14364 esac 14365 fi 14366 rm -rf conftest* 14367 ;; 14368*-*-irix6*) 14369 # Find out which ABI we are using. 14370 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14372 (eval $ac_compile) 2>&5 14373 ac_status=$? 14374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14375 test $ac_status = 0; }; then 14376 if test "$lt_cv_prog_gnu_ld" = yes; then 14377 case `/usr/bin/file conftest.$ac_objext` in 14378 *32-bit*) 14379 LD="${LD-ld} -melf32bsmip" 14380 ;; 14381 *N32*) 14382 LD="${LD-ld} -melf32bmipn32" 14383 ;; 14384 *64-bit*) 14385 LD="${LD-ld} -melf64bmip" 14386 ;; 14387 esac 14388 else 14389 case `/usr/bin/file conftest.$ac_objext` in 14390 *32-bit*) 14391 LD="${LD-ld} -32" 14392 ;; 14393 *N32*) 14394 LD="${LD-ld} -n32" 14395 ;; 14396 *64-bit*) 14397 LD="${LD-ld} -64" 14398 ;; 14399 esac 14400 fi 14401 fi 14402 rm -rf conftest* 14403 ;; 14404 14405x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14406s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14407 # Find out which ABI we are using. 14408 echo 'int i;' > conftest.$ac_ext 14409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14410 (eval $ac_compile) 2>&5 14411 ac_status=$? 14412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14413 test $ac_status = 0; }; then 14414 case `/usr/bin/file conftest.o` in 14415 *32-bit*) 14416 case $host in 14417 x86_64-*kfreebsd*-gnu) 14418 LD="${LD-ld} -m elf_i386_fbsd" 14419 ;; 14420 x86_64-*linux*) 14421 case `/usr/bin/file conftest.o` in 14422 *x86-64*) 14423 LD="${LD-ld} -m elf32_x86_64" 14424 ;; 14425 *) 14426 LD="${LD-ld} -m elf_i386" 14427 ;; 14428 esac 14429 ;; 14430 powerpc64le-*linux*) 14431 LD="${LD-ld} -m elf32lppclinux" 14432 ;; 14433 powerpc64-*linux*) 14434 LD="${LD-ld} -m elf32ppclinux" 14435 ;; 14436 s390x-*linux*) 14437 LD="${LD-ld} -m elf_s390" 14438 ;; 14439 sparc64-*linux*) 14440 LD="${LD-ld} -m elf32_sparc" 14441 ;; 14442 esac 14443 ;; 14444 *64-bit*) 14445 case $host in 14446 x86_64-*kfreebsd*-gnu) 14447 LD="${LD-ld} -m elf_x86_64_fbsd" 14448 ;; 14449 x86_64-*linux*) 14450 LD="${LD-ld} -m elf_x86_64" 14451 ;; 14452 powerpcle-*linux*) 14453 LD="${LD-ld} -m elf64lppc" 14454 ;; 14455 powerpc-*linux*) 14456 LD="${LD-ld} -m elf64ppc" 14457 ;; 14458 s390*-*linux*|s390*-*tpf*) 14459 LD="${LD-ld} -m elf64_s390" 14460 ;; 14461 sparc*-*linux*) 14462 LD="${LD-ld} -m elf64_sparc" 14463 ;; 14464 esac 14465 ;; 14466 esac 14467 fi 14468 rm -rf conftest* 14469 ;; 14470 14471*-*-sco3.2v5*) 14472 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14473 SAVE_CFLAGS="$CFLAGS" 14474 CFLAGS="$CFLAGS -belf" 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14476$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 14477if ${lt_cv_cc_needs_belf+:} false; then : 14478 $as_echo_n "(cached) " >&6 14479else 14480 ac_ext=c 14481ac_cpp='$CPP $CPPFLAGS' 14482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14484ac_compiler_gnu=$ac_cv_c_compiler_gnu 14485 14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14487/* end confdefs.h. */ 14488 14489int 14490main () 14491{ 14492 14493 ; 14494 return 0; 14495} 14496_ACEOF 14497if ac_fn_c_try_link "$LINENO"; then : 14498 lt_cv_cc_needs_belf=yes 14499else 14500 lt_cv_cc_needs_belf=no 14501fi 14502rm -f core conftest.err conftest.$ac_objext \ 14503 conftest$ac_exeext conftest.$ac_ext 14504 ac_ext=c 14505ac_cpp='$CPP $CPPFLAGS' 14506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14508ac_compiler_gnu=$ac_cv_c_compiler_gnu 14509 14510fi 14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14512$as_echo "$lt_cv_cc_needs_belf" >&6; } 14513 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 14514 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14515 CFLAGS="$SAVE_CFLAGS" 14516 fi 14517 ;; 14518sparc*-*solaris*) 14519 # Find out which ABI we are using. 14520 echo 'int i;' > conftest.$ac_ext 14521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14522 (eval $ac_compile) 2>&5 14523 ac_status=$? 14524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14525 test $ac_status = 0; }; then 14526 case `/usr/bin/file conftest.o` in 14527 *64-bit*) 14528 case $lt_cv_prog_gnu_ld in 14529 yes*) LD="${LD-ld} -m elf64_sparc" ;; 14530 *) 14531 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14532 LD="${LD-ld} -64" 14533 fi 14534 ;; 14535 esac 14536 ;; 14537 esac 14538 fi 14539 rm -rf conftest* 14540 ;; 14541esac 14542 14543need_locks="$enable_libtool_lock" 14544 14545 14546 case $host_os in 14547 rhapsody* | darwin*) 14548 if test -n "$ac_tool_prefix"; then 14549 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14550set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14552$as_echo_n "checking for $ac_word... " >&6; } 14553if ${ac_cv_prog_DSYMUTIL+:} false; then : 14554 $as_echo_n "(cached) " >&6 14555else 14556 if test -n "$DSYMUTIL"; then 14557 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14558else 14559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14560for as_dir in $PATH 14561do 14562 IFS=$as_save_IFS 14563 test -z "$as_dir" && as_dir=. 14564 for ac_exec_ext in '' $ac_executable_extensions; do 14565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14566 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14568 break 2 14569 fi 14570done 14571 done 14572IFS=$as_save_IFS 14573 14574fi 14575fi 14576DSYMUTIL=$ac_cv_prog_DSYMUTIL 14577if test -n "$DSYMUTIL"; then 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14579$as_echo "$DSYMUTIL" >&6; } 14580else 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14582$as_echo "no" >&6; } 14583fi 14584 14585 14586fi 14587if test -z "$ac_cv_prog_DSYMUTIL"; then 14588 ac_ct_DSYMUTIL=$DSYMUTIL 14589 # Extract the first word of "dsymutil", so it can be a program name with args. 14590set dummy dsymutil; ac_word=$2 14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14592$as_echo_n "checking for $ac_word... " >&6; } 14593if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 14594 $as_echo_n "(cached) " >&6 14595else 14596 if test -n "$ac_ct_DSYMUTIL"; then 14597 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14598else 14599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14600for as_dir in $PATH 14601do 14602 IFS=$as_save_IFS 14603 test -z "$as_dir" && as_dir=. 14604 for ac_exec_ext in '' $ac_executable_extensions; do 14605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14606 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14608 break 2 14609 fi 14610done 14611 done 14612IFS=$as_save_IFS 14613 14614fi 14615fi 14616ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14617if test -n "$ac_ct_DSYMUTIL"; then 14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14619$as_echo "$ac_ct_DSYMUTIL" >&6; } 14620else 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14622$as_echo "no" >&6; } 14623fi 14624 14625 if test "x$ac_ct_DSYMUTIL" = x; then 14626 DSYMUTIL=":" 14627 else 14628 case $cross_compiling:$ac_tool_warned in 14629yes:) 14630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14632ac_tool_warned=yes ;; 14633esac 14634 DSYMUTIL=$ac_ct_DSYMUTIL 14635 fi 14636else 14637 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14638fi 14639 14640 if test -n "$ac_tool_prefix"; then 14641 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14642set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14644$as_echo_n "checking for $ac_word... " >&6; } 14645if ${ac_cv_prog_NMEDIT+:} false; then : 14646 $as_echo_n "(cached) " >&6 14647else 14648 if test -n "$NMEDIT"; then 14649 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14650else 14651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14652for as_dir in $PATH 14653do 14654 IFS=$as_save_IFS 14655 test -z "$as_dir" && as_dir=. 14656 for ac_exec_ext in '' $ac_executable_extensions; do 14657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14658 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14660 break 2 14661 fi 14662done 14663 done 14664IFS=$as_save_IFS 14665 14666fi 14667fi 14668NMEDIT=$ac_cv_prog_NMEDIT 14669if test -n "$NMEDIT"; then 14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14671$as_echo "$NMEDIT" >&6; } 14672else 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14674$as_echo "no" >&6; } 14675fi 14676 14677 14678fi 14679if test -z "$ac_cv_prog_NMEDIT"; then 14680 ac_ct_NMEDIT=$NMEDIT 14681 # Extract the first word of "nmedit", so it can be a program name with args. 14682set dummy nmedit; ac_word=$2 14683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14684$as_echo_n "checking for $ac_word... " >&6; } 14685if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 14686 $as_echo_n "(cached) " >&6 14687else 14688 if test -n "$ac_ct_NMEDIT"; then 14689 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14690else 14691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14692for as_dir in $PATH 14693do 14694 IFS=$as_save_IFS 14695 test -z "$as_dir" && as_dir=. 14696 for ac_exec_ext in '' $ac_executable_extensions; do 14697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14698 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14700 break 2 14701 fi 14702done 14703 done 14704IFS=$as_save_IFS 14705 14706fi 14707fi 14708ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14709if test -n "$ac_ct_NMEDIT"; then 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14711$as_echo "$ac_ct_NMEDIT" >&6; } 14712else 14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14714$as_echo "no" >&6; } 14715fi 14716 14717 if test "x$ac_ct_NMEDIT" = x; then 14718 NMEDIT=":" 14719 else 14720 case $cross_compiling:$ac_tool_warned in 14721yes:) 14722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14724ac_tool_warned=yes ;; 14725esac 14726 NMEDIT=$ac_ct_NMEDIT 14727 fi 14728else 14729 NMEDIT="$ac_cv_prog_NMEDIT" 14730fi 14731 14732 if test -n "$ac_tool_prefix"; then 14733 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14734set dummy ${ac_tool_prefix}lipo; ac_word=$2 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14736$as_echo_n "checking for $ac_word... " >&6; } 14737if ${ac_cv_prog_LIPO+:} false; then : 14738 $as_echo_n "(cached) " >&6 14739else 14740 if test -n "$LIPO"; then 14741 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14742else 14743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14744for as_dir in $PATH 14745do 14746 IFS=$as_save_IFS 14747 test -z "$as_dir" && as_dir=. 14748 for ac_exec_ext in '' $ac_executable_extensions; do 14749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14750 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14752 break 2 14753 fi 14754done 14755 done 14756IFS=$as_save_IFS 14757 14758fi 14759fi 14760LIPO=$ac_cv_prog_LIPO 14761if test -n "$LIPO"; then 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14763$as_echo "$LIPO" >&6; } 14764else 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14766$as_echo "no" >&6; } 14767fi 14768 14769 14770fi 14771if test -z "$ac_cv_prog_LIPO"; then 14772 ac_ct_LIPO=$LIPO 14773 # Extract the first word of "lipo", so it can be a program name with args. 14774set dummy lipo; ac_word=$2 14775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14776$as_echo_n "checking for $ac_word... " >&6; } 14777if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14778 $as_echo_n "(cached) " >&6 14779else 14780 if test -n "$ac_ct_LIPO"; then 14781 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14782else 14783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14784for as_dir in $PATH 14785do 14786 IFS=$as_save_IFS 14787 test -z "$as_dir" && as_dir=. 14788 for ac_exec_ext in '' $ac_executable_extensions; do 14789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14790 ac_cv_prog_ac_ct_LIPO="lipo" 14791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14792 break 2 14793 fi 14794done 14795 done 14796IFS=$as_save_IFS 14797 14798fi 14799fi 14800ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14801if test -n "$ac_ct_LIPO"; then 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14803$as_echo "$ac_ct_LIPO" >&6; } 14804else 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14806$as_echo "no" >&6; } 14807fi 14808 14809 if test "x$ac_ct_LIPO" = x; then 14810 LIPO=":" 14811 else 14812 case $cross_compiling:$ac_tool_warned in 14813yes:) 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14816ac_tool_warned=yes ;; 14817esac 14818 LIPO=$ac_ct_LIPO 14819 fi 14820else 14821 LIPO="$ac_cv_prog_LIPO" 14822fi 14823 14824 if test -n "$ac_tool_prefix"; then 14825 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14826set dummy ${ac_tool_prefix}otool; ac_word=$2 14827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14828$as_echo_n "checking for $ac_word... " >&6; } 14829if ${ac_cv_prog_OTOOL+:} false; then : 14830 $as_echo_n "(cached) " >&6 14831else 14832 if test -n "$OTOOL"; then 14833 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14834else 14835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14836for as_dir in $PATH 14837do 14838 IFS=$as_save_IFS 14839 test -z "$as_dir" && as_dir=. 14840 for ac_exec_ext in '' $ac_executable_extensions; do 14841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14842 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14844 break 2 14845 fi 14846done 14847 done 14848IFS=$as_save_IFS 14849 14850fi 14851fi 14852OTOOL=$ac_cv_prog_OTOOL 14853if test -n "$OTOOL"; then 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14855$as_echo "$OTOOL" >&6; } 14856else 14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14858$as_echo "no" >&6; } 14859fi 14860 14861 14862fi 14863if test -z "$ac_cv_prog_OTOOL"; then 14864 ac_ct_OTOOL=$OTOOL 14865 # Extract the first word of "otool", so it can be a program name with args. 14866set dummy otool; ac_word=$2 14867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14868$as_echo_n "checking for $ac_word... " >&6; } 14869if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14870 $as_echo_n "(cached) " >&6 14871else 14872 if test -n "$ac_ct_OTOOL"; then 14873 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14874else 14875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14876for as_dir in $PATH 14877do 14878 IFS=$as_save_IFS 14879 test -z "$as_dir" && as_dir=. 14880 for ac_exec_ext in '' $ac_executable_extensions; do 14881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14882 ac_cv_prog_ac_ct_OTOOL="otool" 14883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14884 break 2 14885 fi 14886done 14887 done 14888IFS=$as_save_IFS 14889 14890fi 14891fi 14892ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14893if test -n "$ac_ct_OTOOL"; then 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14895$as_echo "$ac_ct_OTOOL" >&6; } 14896else 14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14898$as_echo "no" >&6; } 14899fi 14900 14901 if test "x$ac_ct_OTOOL" = x; then 14902 OTOOL=":" 14903 else 14904 case $cross_compiling:$ac_tool_warned in 14905yes:) 14906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14908ac_tool_warned=yes ;; 14909esac 14910 OTOOL=$ac_ct_OTOOL 14911 fi 14912else 14913 OTOOL="$ac_cv_prog_OTOOL" 14914fi 14915 14916 if test -n "$ac_tool_prefix"; then 14917 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14918set dummy ${ac_tool_prefix}otool64; ac_word=$2 14919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14920$as_echo_n "checking for $ac_word... " >&6; } 14921if ${ac_cv_prog_OTOOL64+:} false; then : 14922 $as_echo_n "(cached) " >&6 14923else 14924 if test -n "$OTOOL64"; then 14925 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14926else 14927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14928for as_dir in $PATH 14929do 14930 IFS=$as_save_IFS 14931 test -z "$as_dir" && as_dir=. 14932 for ac_exec_ext in '' $ac_executable_extensions; do 14933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14934 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14936 break 2 14937 fi 14938done 14939 done 14940IFS=$as_save_IFS 14941 14942fi 14943fi 14944OTOOL64=$ac_cv_prog_OTOOL64 14945if test -n "$OTOOL64"; then 14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14947$as_echo "$OTOOL64" >&6; } 14948else 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14950$as_echo "no" >&6; } 14951fi 14952 14953 14954fi 14955if test -z "$ac_cv_prog_OTOOL64"; then 14956 ac_ct_OTOOL64=$OTOOL64 14957 # Extract the first word of "otool64", so it can be a program name with args. 14958set dummy otool64; ac_word=$2 14959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14960$as_echo_n "checking for $ac_word... " >&6; } 14961if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14962 $as_echo_n "(cached) " >&6 14963else 14964 if test -n "$ac_ct_OTOOL64"; then 14965 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14966else 14967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14968for as_dir in $PATH 14969do 14970 IFS=$as_save_IFS 14971 test -z "$as_dir" && as_dir=. 14972 for ac_exec_ext in '' $ac_executable_extensions; do 14973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14974 ac_cv_prog_ac_ct_OTOOL64="otool64" 14975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14976 break 2 14977 fi 14978done 14979 done 14980IFS=$as_save_IFS 14981 14982fi 14983fi 14984ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14985if test -n "$ac_ct_OTOOL64"; then 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14987$as_echo "$ac_ct_OTOOL64" >&6; } 14988else 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14990$as_echo "no" >&6; } 14991fi 14992 14993 if test "x$ac_ct_OTOOL64" = x; then 14994 OTOOL64=":" 14995 else 14996 case $cross_compiling:$ac_tool_warned in 14997yes:) 14998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15000ac_tool_warned=yes ;; 15001esac 15002 OTOOL64=$ac_ct_OTOOL64 15003 fi 15004else 15005 OTOOL64="$ac_cv_prog_OTOOL64" 15006fi 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15035$as_echo_n "checking for -single_module linker flag... " >&6; } 15036if ${lt_cv_apple_cc_single_mod+:} false; then : 15037 $as_echo_n "(cached) " >&6 15038else 15039 lt_cv_apple_cc_single_mod=no 15040 if test -z "${LT_MULTI_MODULE}"; then 15041 # By default we will add the -single_module flag. You can override 15042 # by either setting the environment variable LT_MULTI_MODULE 15043 # non-empty at configure time, or by adding -multi_module to the 15044 # link flags. 15045 rm -rf libconftest.dylib* 15046 echo "int foo(void){return 1;}" > conftest.c 15047 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15048-dynamiclib -Wl,-single_module conftest.c" >&5 15049 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15050 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15051 _lt_result=$? 15052 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 15053 lt_cv_apple_cc_single_mod=yes 15054 else 15055 cat conftest.err >&5 15056 fi 15057 rm -rf libconftest.dylib* 15058 rm -f conftest.* 15059 fi 15060fi 15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15062$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15064$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 15065if ${lt_cv_ld_exported_symbols_list+:} false; then : 15066 $as_echo_n "(cached) " >&6 15067else 15068 lt_cv_ld_exported_symbols_list=no 15069 save_LDFLAGS=$LDFLAGS 15070 echo "_main" > conftest.sym 15071 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15073/* end confdefs.h. */ 15074 15075int 15076main () 15077{ 15078 15079 ; 15080 return 0; 15081} 15082_ACEOF 15083if ac_fn_c_try_link "$LINENO"; then : 15084 lt_cv_ld_exported_symbols_list=yes 15085else 15086 lt_cv_ld_exported_symbols_list=no 15087fi 15088rm -f core conftest.err conftest.$ac_objext \ 15089 conftest$ac_exeext conftest.$ac_ext 15090 LDFLAGS="$save_LDFLAGS" 15091 15092fi 15093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15094$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15096$as_echo_n "checking for -force_load linker flag... " >&6; } 15097if ${lt_cv_ld_force_load+:} false; then : 15098 $as_echo_n "(cached) " >&6 15099else 15100 lt_cv_ld_force_load=no 15101 cat > conftest.c << _LT_EOF 15102int forced_loaded() { return 2;} 15103_LT_EOF 15104 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15105 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15106 echo "$AR cru libconftest.a conftest.o" >&5 15107 $AR cru libconftest.a conftest.o 2>&5 15108 cat > conftest.c << _LT_EOF 15109int main() { return 0;} 15110_LT_EOF 15111 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15112 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15113 _lt_result=$? 15114 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 15115 lt_cv_ld_force_load=yes 15116 else 15117 cat conftest.err >&5 15118 fi 15119 rm -f conftest.err libconftest.a conftest conftest.c 15120 rm -rf conftest.dSYM 15121 15122fi 15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15124$as_echo "$lt_cv_ld_force_load" >&6; } 15125 case $host_os in 15126 rhapsody* | darwin1.[012]) 15127 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 15128 darwin1.*) 15129 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 15130 darwin*) # darwin 5.x on 15131 # if running on 10.5 or later, the deployment target defaults 15132 # to the OS version, if on x86, and 10.4, the deployment 15133 # target defaults to 10.4. Don't you love it? 15134 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15135 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 15136 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 15137 10.[012][,.]*) 15138 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 15139 10.*) 15140 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 15141 esac 15142 ;; 15143 esac 15144 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 15145 _lt_dar_single_mod='$single_module' 15146 fi 15147 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 15148 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 15149 else 15150 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 15151 fi 15152 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 15153 _lt_dsymutil='~$DSYMUTIL $lib || :' 15154 else 15155 _lt_dsymutil= 15156 fi 15157 ;; 15158 esac 15159 15160 15161for ac_header in dlfcn.h 15162do : 15163 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" 15164if test "x$ac_cv_header_dlfcn_h" = xyes; then : 15165 cat >>confdefs.h <<_ACEOF 15166#define HAVE_DLFCN_H 1 15167_ACEOF 15168 15169fi 15170done 15171 15172 15173 15174 15175 15176# Set options 15177 15178 15179 15180 enable_dlopen=no 15181 15182 15183 enable_win32_dll=no 15184 15185 15186 # Check whether --enable-shared was given. 15187if test "${enable_shared+set}" = set; then : 15188 enableval=$enable_shared; p=${PACKAGE-default} 15189 case $enableval in 15190 yes) enable_shared=yes ;; 15191 no) enable_shared=no ;; 15192 *) 15193 enable_shared=no 15194 # Look at the argument we got. We use all the common list separators. 15195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15196 for pkg in $enableval; do 15197 IFS="$lt_save_ifs" 15198 if test "X$pkg" = "X$p"; then 15199 enable_shared=yes 15200 fi 15201 done 15202 IFS="$lt_save_ifs" 15203 ;; 15204 esac 15205else 15206 enable_shared=yes 15207fi 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 # Check whether --enable-static was given. 15218if test "${enable_static+set}" = set; then : 15219 enableval=$enable_static; p=${PACKAGE-default} 15220 case $enableval in 15221 yes) enable_static=yes ;; 15222 no) enable_static=no ;; 15223 *) 15224 enable_static=no 15225 # Look at the argument we got. We use all the common list separators. 15226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15227 for pkg in $enableval; do 15228 IFS="$lt_save_ifs" 15229 if test "X$pkg" = "X$p"; then 15230 enable_static=yes 15231 fi 15232 done 15233 IFS="$lt_save_ifs" 15234 ;; 15235 esac 15236else 15237 enable_static=yes 15238fi 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249# Check whether --with-pic was given. 15250if test "${with_pic+set}" = set; then : 15251 withval=$with_pic; pic_mode="$withval" 15252else 15253 pic_mode=default 15254fi 15255 15256 15257test -z "$pic_mode" && pic_mode=default 15258 15259 15260 15261 15262 15263 15264 15265 # Check whether --enable-fast-install was given. 15266if test "${enable_fast_install+set}" = set; then : 15267 enableval=$enable_fast_install; p=${PACKAGE-default} 15268 case $enableval in 15269 yes) enable_fast_install=yes ;; 15270 no) enable_fast_install=no ;; 15271 *) 15272 enable_fast_install=no 15273 # Look at the argument we got. We use all the common list separators. 15274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15275 for pkg in $enableval; do 15276 IFS="$lt_save_ifs" 15277 if test "X$pkg" = "X$p"; then 15278 enable_fast_install=yes 15279 fi 15280 done 15281 IFS="$lt_save_ifs" 15282 ;; 15283 esac 15284else 15285 enable_fast_install=yes 15286fi 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298# This can be used to rebuild libtool when needed 15299LIBTOOL_DEPS="$ltmain" 15300 15301# Always use our own libtool. 15302LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329test -z "$LN_S" && LN_S="ln -s" 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344if test -n "${ZSH_VERSION+set}" ; then 15345 setopt NO_GLOB_SUBST 15346fi 15347 15348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15349$as_echo_n "checking for objdir... " >&6; } 15350if ${lt_cv_objdir+:} false; then : 15351 $as_echo_n "(cached) " >&6 15352else 15353 rm -f .libs 2>/dev/null 15354mkdir .libs 2>/dev/null 15355if test -d .libs; then 15356 lt_cv_objdir=.libs 15357else 15358 # MS-DOS does not allow filenames that begin with a dot. 15359 lt_cv_objdir=_libs 15360fi 15361rmdir .libs 2>/dev/null 15362fi 15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15364$as_echo "$lt_cv_objdir" >&6; } 15365objdir=$lt_cv_objdir 15366 15367 15368 15369 15370 15371cat >>confdefs.h <<_ACEOF 15372#define LT_OBJDIR "$lt_cv_objdir/" 15373_ACEOF 15374 15375 15376 15377 15378case $host_os in 15379aix3*) 15380 # AIX sometimes has problems with the GCC collect2 program. For some 15381 # reason, if we set the COLLECT_NAMES environment variable, the problems 15382 # vanish in a puff of smoke. 15383 if test "X${COLLECT_NAMES+set}" != Xset; then 15384 COLLECT_NAMES= 15385 export COLLECT_NAMES 15386 fi 15387 ;; 15388esac 15389 15390# Global variables: 15391ofile=libtool 15392can_build_shared=yes 15393 15394# All known linkers require a `.a' archive for static linking (except MSVC, 15395# which needs '.lib'). 15396libext=a 15397 15398with_gnu_ld="$lt_cv_prog_gnu_ld" 15399 15400old_CC="$CC" 15401old_CFLAGS="$CFLAGS" 15402 15403# Set sane defaults for various variables 15404test -z "$CC" && CC=cc 15405test -z "$LTCC" && LTCC=$CC 15406test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15407test -z "$LD" && LD=ld 15408test -z "$ac_objext" && ac_objext=o 15409 15410for cc_temp in $compiler""; do 15411 case $cc_temp in 15412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15414 \-*) ;; 15415 *) break;; 15416 esac 15417done 15418cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15419 15420 15421# Only perform the check for file, if the check method requires it 15422test -z "$MAGIC_CMD" && MAGIC_CMD=file 15423case $deplibs_check_method in 15424file_magic*) 15425 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15427$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 15428if ${lt_cv_path_MAGIC_CMD+:} false; then : 15429 $as_echo_n "(cached) " >&6 15430else 15431 case $MAGIC_CMD in 15432[\\/*] | ?:[\\/]*) 15433 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 15434 ;; 15435*) 15436 lt_save_MAGIC_CMD="$MAGIC_CMD" 15437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15439 for ac_dir in $ac_dummy; do 15440 IFS="$lt_save_ifs" 15441 test -z "$ac_dir" && ac_dir=. 15442 if test -f $ac_dir/${ac_tool_prefix}file; then 15443 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 15444 if test -n "$file_magic_test_file"; then 15445 case $deplibs_check_method in 15446 "file_magic "*) 15447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15450 $EGREP "$file_magic_regex" > /dev/null; then 15451 : 15452 else 15453 cat <<_LT_EOF 1>&2 15454 15455*** Warning: the command libtool uses to detect shared libraries, 15456*** $file_magic_cmd, produces output that libtool cannot recognize. 15457*** The result is that libtool may fail to recognize shared libraries 15458*** as such. This will affect the creation of libtool libraries that 15459*** depend on shared libraries, but programs linked with such libtool 15460*** libraries will work regardless of this problem. Nevertheless, you 15461*** may want to report the problem to your system manager and/or to 15462*** bug-libtool@gnu.org 15463 15464_LT_EOF 15465 fi ;; 15466 esac 15467 fi 15468 break 15469 fi 15470 done 15471 IFS="$lt_save_ifs" 15472 MAGIC_CMD="$lt_save_MAGIC_CMD" 15473 ;; 15474esac 15475fi 15476 15477MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15478if test -n "$MAGIC_CMD"; then 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15480$as_echo "$MAGIC_CMD" >&6; } 15481else 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15483$as_echo "no" >&6; } 15484fi 15485 15486 15487 15488 15489 15490if test -z "$lt_cv_path_MAGIC_CMD"; then 15491 if test -n "$ac_tool_prefix"; then 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15493$as_echo_n "checking for file... " >&6; } 15494if ${lt_cv_path_MAGIC_CMD+:} false; then : 15495 $as_echo_n "(cached) " >&6 15496else 15497 case $MAGIC_CMD in 15498[\\/*] | ?:[\\/]*) 15499 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 15500 ;; 15501*) 15502 lt_save_MAGIC_CMD="$MAGIC_CMD" 15503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15504 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15505 for ac_dir in $ac_dummy; do 15506 IFS="$lt_save_ifs" 15507 test -z "$ac_dir" && ac_dir=. 15508 if test -f $ac_dir/file; then 15509 lt_cv_path_MAGIC_CMD="$ac_dir/file" 15510 if test -n "$file_magic_test_file"; then 15511 case $deplibs_check_method in 15512 "file_magic "*) 15513 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15515 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15516 $EGREP "$file_magic_regex" > /dev/null; then 15517 : 15518 else 15519 cat <<_LT_EOF 1>&2 15520 15521*** Warning: the command libtool uses to detect shared libraries, 15522*** $file_magic_cmd, produces output that libtool cannot recognize. 15523*** The result is that libtool may fail to recognize shared libraries 15524*** as such. This will affect the creation of libtool libraries that 15525*** depend on shared libraries, but programs linked with such libtool 15526*** libraries will work regardless of this problem. Nevertheless, you 15527*** may want to report the problem to your system manager and/or to 15528*** bug-libtool@gnu.org 15529 15530_LT_EOF 15531 fi ;; 15532 esac 15533 fi 15534 break 15535 fi 15536 done 15537 IFS="$lt_save_ifs" 15538 MAGIC_CMD="$lt_save_MAGIC_CMD" 15539 ;; 15540esac 15541fi 15542 15543MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15544if test -n "$MAGIC_CMD"; then 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15546$as_echo "$MAGIC_CMD" >&6; } 15547else 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15549$as_echo "no" >&6; } 15550fi 15551 15552 15553 else 15554 MAGIC_CMD=: 15555 fi 15556fi 15557 15558 fi 15559 ;; 15560esac 15561 15562# Use C for the default configuration in the libtool script 15563 15564lt_save_CC="$CC" 15565ac_ext=c 15566ac_cpp='$CPP $CPPFLAGS' 15567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15569ac_compiler_gnu=$ac_cv_c_compiler_gnu 15570 15571 15572# Source file extension for C test sources. 15573ac_ext=c 15574 15575# Object file extension for compiled C test sources. 15576objext=o 15577objext=$objext 15578 15579# Code to be used in simple compile tests 15580lt_simple_compile_test_code="int some_variable = 0;" 15581 15582# Code to be used in simple link tests 15583lt_simple_link_test_code='int main(){return(0);}' 15584 15585 15586 15587 15588 15589 15590 15591# If no C compiler was specified, use CC. 15592LTCC=${LTCC-"$CC"} 15593 15594# If no C compiler flags were specified, use CFLAGS. 15595LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15596 15597# Allow CC to be a program name with arguments. 15598compiler=$CC 15599 15600# Save the default compiler, since it gets overwritten when the other 15601# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15602compiler_DEFAULT=$CC 15603 15604# save warnings/boilerplate of simple test code 15605ac_outfile=conftest.$ac_objext 15606echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15608_lt_compiler_boilerplate=`cat conftest.err` 15609$RM conftest* 15610 15611ac_outfile=conftest.$ac_objext 15612echo "$lt_simple_link_test_code" >conftest.$ac_ext 15613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15614_lt_linker_boilerplate=`cat conftest.err` 15615$RM -r conftest* 15616 15617 15618## CAVEAT EMPTOR: 15619## There is no encapsulation within the following macros, do not change 15620## the running order or otherwise move them around unless you know exactly 15621## what you are doing... 15622if test -n "$compiler"; then 15623 15624lt_prog_compiler_no_builtin_flag= 15625 15626if test "$GCC" = yes; then 15627 case $cc_basename in 15628 nvcc*) 15629 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15630 *) 15631 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15632 esac 15633 15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15635$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15636if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 15637 $as_echo_n "(cached) " >&6 15638else 15639 lt_cv_prog_compiler_rtti_exceptions=no 15640 ac_outfile=conftest.$ac_objext 15641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15642 lt_compiler_flag="-fno-rtti -fno-exceptions" 15643 # Insert the option either (1) after the last *FLAGS variable, or 15644 # (2) before a word containing "conftest.", or (3) at the end. 15645 # Note that $ac_compile itself does not contain backslashes and begins 15646 # with a dollar sign (not a hyphen), so the echo should work correctly. 15647 # The option is referenced via a variable to avoid confusing sed. 15648 lt_compile=`echo "$ac_compile" | $SED \ 15649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15651 -e 's:$: $lt_compiler_flag:'` 15652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15653 (eval "$lt_compile" 2>conftest.err) 15654 ac_status=$? 15655 cat conftest.err >&5 15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15657 if (exit $ac_status) && test -s "$ac_outfile"; then 15658 # The compiler can only warn and ignore the option if not recognized 15659 # So say no if there are warnings other than the usual output. 15660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15663 lt_cv_prog_compiler_rtti_exceptions=yes 15664 fi 15665 fi 15666 $RM conftest* 15667 15668fi 15669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15670$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15671 15672if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15673 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15674else 15675 : 15676fi 15677 15678fi 15679 15680 15681 15682 15683 15684 15685 lt_prog_compiler_wl= 15686lt_prog_compiler_pic= 15687lt_prog_compiler_static= 15688 15689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15690$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15691 15692 if test "$GCC" = yes; then 15693 lt_prog_compiler_wl='-Wl,' 15694 lt_prog_compiler_static='-static' 15695 15696 case $host_os in 15697 aix*) 15698 # All AIX code is PIC. 15699 if test "$host_cpu" = ia64; then 15700 # AIX 5 now supports IA64 processor 15701 lt_prog_compiler_static='-Bstatic' 15702 fi 15703 lt_prog_compiler_pic='-fPIC' 15704 ;; 15705 15706 amigaos*) 15707 case $host_cpu in 15708 powerpc) 15709 # see comment about AmigaOS4 .so support 15710 lt_prog_compiler_pic='-fPIC' 15711 ;; 15712 m68k) 15713 # FIXME: we need at least 68020 code to build shared libraries, but 15714 # adding the `-m68020' flag to GCC prevents building anything better, 15715 # like `-m68040'. 15716 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15717 ;; 15718 esac 15719 ;; 15720 15721 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15722 # PIC is the default for these OSes. 15723 ;; 15724 15725 mingw* | cygwin* | pw32* | os2* | cegcc*) 15726 # This hack is so that the source file can tell whether it is being 15727 # built for inclusion in a dll (and should export symbols for example). 15728 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15729 # (--disable-auto-import) libraries 15730 lt_prog_compiler_pic='-DDLL_EXPORT' 15731 ;; 15732 15733 darwin* | rhapsody*) 15734 # PIC is the default on this platform 15735 # Common symbols not allowed in MH_DYLIB files 15736 lt_prog_compiler_pic='-fno-common' 15737 ;; 15738 15739 haiku*) 15740 # PIC is the default for Haiku. 15741 # The "-static" flag exists, but is broken. 15742 lt_prog_compiler_static= 15743 ;; 15744 15745 hpux*) 15746 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15747 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15748 # sets the default TLS model and affects inlining. 15749 case $host_cpu in 15750 hppa*64*) 15751 # +Z the default 15752 ;; 15753 *) 15754 lt_prog_compiler_pic='-fPIC' 15755 ;; 15756 esac 15757 ;; 15758 15759 interix[3-9]*) 15760 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15761 # Instead, we relocate shared libraries at runtime. 15762 ;; 15763 15764 msdosdjgpp*) 15765 # Just because we use GCC doesn't mean we suddenly get shared libraries 15766 # on systems that don't support them. 15767 lt_prog_compiler_can_build_shared=no 15768 enable_shared=no 15769 ;; 15770 15771 *nto* | *qnx*) 15772 # QNX uses GNU C++, but need to define -shared option too, otherwise 15773 # it will coredump. 15774 lt_prog_compiler_pic='-fPIC -shared' 15775 ;; 15776 15777 sysv4*MP*) 15778 if test -d /usr/nec; then 15779 lt_prog_compiler_pic=-Kconform_pic 15780 fi 15781 ;; 15782 15783 *) 15784 lt_prog_compiler_pic='-fPIC' 15785 ;; 15786 esac 15787 15788 case $cc_basename in 15789 nvcc*) # Cuda Compiler Driver 2.2 15790 lt_prog_compiler_wl='-Xlinker ' 15791 lt_prog_compiler_pic='-Xcompiler -fPIC' 15792 ;; 15793 esac 15794 else 15795 # PORTME Check for flag to pass linker flags through the system compiler. 15796 case $host_os in 15797 aix*) 15798 lt_prog_compiler_wl='-Wl,' 15799 if test "$host_cpu" = ia64; then 15800 # AIX 5 now supports IA64 processor 15801 lt_prog_compiler_static='-Bstatic' 15802 else 15803 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15804 fi 15805 ;; 15806 15807 mingw* | cygwin* | pw32* | os2* | cegcc*) 15808 # This hack is so that the source file can tell whether it is being 15809 # built for inclusion in a dll (and should export symbols for example). 15810 lt_prog_compiler_pic='-DDLL_EXPORT' 15811 ;; 15812 15813 hpux9* | hpux10* | hpux11*) 15814 lt_prog_compiler_wl='-Wl,' 15815 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15816 # not for PA HP-UX. 15817 case $host_cpu in 15818 hppa*64*|ia64*) 15819 # +Z the default 15820 ;; 15821 *) 15822 lt_prog_compiler_pic='+Z' 15823 ;; 15824 esac 15825 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15826 lt_prog_compiler_static='${wl}-a ${wl}archive' 15827 ;; 15828 15829 irix5* | irix6* | nonstopux*) 15830 lt_prog_compiler_wl='-Wl,' 15831 # PIC (with -KPIC) is the default. 15832 lt_prog_compiler_static='-non_shared' 15833 ;; 15834 15835 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15836 case $cc_basename in 15837 # old Intel for x86_64 which still supported -KPIC. 15838 ecc*) 15839 lt_prog_compiler_wl='-Wl,' 15840 lt_prog_compiler_pic='-KPIC' 15841 lt_prog_compiler_static='-static' 15842 ;; 15843 # icc used to be incompatible with GCC. 15844 # ICC 10 doesn't accept -KPIC any more. 15845 icc* | ifort*) 15846 lt_prog_compiler_wl='-Wl,' 15847 lt_prog_compiler_pic='-fPIC' 15848 lt_prog_compiler_static='-static' 15849 ;; 15850 # Lahey Fortran 8.1. 15851 lf95*) 15852 lt_prog_compiler_wl='-Wl,' 15853 lt_prog_compiler_pic='--shared' 15854 lt_prog_compiler_static='--static' 15855 ;; 15856 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15857 # Portland Group compilers (*not* the Pentium gcc compiler, 15858 # which looks to be a dead project) 15859 lt_prog_compiler_wl='-Wl,' 15860 lt_prog_compiler_pic='-fpic' 15861 lt_prog_compiler_static='-Bstatic' 15862 ;; 15863 ccc*) 15864 lt_prog_compiler_wl='-Wl,' 15865 # All Alpha code is PIC. 15866 lt_prog_compiler_static='-non_shared' 15867 ;; 15868 xl* | bgxl* | bgf* | mpixl*) 15869 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15870 lt_prog_compiler_wl='-Wl,' 15871 lt_prog_compiler_pic='-qpic' 15872 lt_prog_compiler_static='-qstaticlink' 15873 ;; 15874 *) 15875 case `$CC -V 2>&1 | sed 5q` in 15876 *Sun\ F* | *Sun*Fortran*) 15877 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15878 lt_prog_compiler_pic='-KPIC' 15879 lt_prog_compiler_static='-Bstatic' 15880 lt_prog_compiler_wl='' 15881 ;; 15882 *Sun\ C*) 15883 # Sun C 5.9 15884 lt_prog_compiler_pic='-KPIC' 15885 lt_prog_compiler_static='-Bstatic' 15886 lt_prog_compiler_wl='-Wl,' 15887 ;; 15888 esac 15889 ;; 15890 esac 15891 ;; 15892 15893 newsos6) 15894 lt_prog_compiler_pic='-KPIC' 15895 lt_prog_compiler_static='-Bstatic' 15896 ;; 15897 15898 *nto* | *qnx*) 15899 # QNX uses GNU C++, but need to define -shared option too, otherwise 15900 # it will coredump. 15901 lt_prog_compiler_pic='-fPIC -shared' 15902 ;; 15903 15904 osf3* | osf4* | osf5*) 15905 lt_prog_compiler_wl='-Wl,' 15906 # All OSF/1 code is PIC. 15907 lt_prog_compiler_static='-non_shared' 15908 ;; 15909 15910 rdos*) 15911 lt_prog_compiler_static='-non_shared' 15912 ;; 15913 15914 solaris*) 15915 lt_prog_compiler_pic='-KPIC' 15916 lt_prog_compiler_static='-Bstatic' 15917 case $cc_basename in 15918 f77* | f90* | f95*) 15919 lt_prog_compiler_wl='-Qoption ld ';; 15920 *) 15921 lt_prog_compiler_wl='-Wl,';; 15922 esac 15923 ;; 15924 15925 sunos4*) 15926 lt_prog_compiler_wl='-Qoption ld ' 15927 lt_prog_compiler_pic='-PIC' 15928 lt_prog_compiler_static='-Bstatic' 15929 ;; 15930 15931 sysv4 | sysv4.2uw2* | sysv4.3*) 15932 lt_prog_compiler_wl='-Wl,' 15933 lt_prog_compiler_pic='-KPIC' 15934 lt_prog_compiler_static='-Bstatic' 15935 ;; 15936 15937 sysv4*MP*) 15938 if test -d /usr/nec ;then 15939 lt_prog_compiler_pic='-Kconform_pic' 15940 lt_prog_compiler_static='-Bstatic' 15941 fi 15942 ;; 15943 15944 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15945 lt_prog_compiler_wl='-Wl,' 15946 lt_prog_compiler_pic='-KPIC' 15947 lt_prog_compiler_static='-Bstatic' 15948 ;; 15949 15950 unicos*) 15951 lt_prog_compiler_wl='-Wl,' 15952 lt_prog_compiler_can_build_shared=no 15953 ;; 15954 15955 uts4*) 15956 lt_prog_compiler_pic='-pic' 15957 lt_prog_compiler_static='-Bstatic' 15958 ;; 15959 15960 *) 15961 lt_prog_compiler_can_build_shared=no 15962 ;; 15963 esac 15964 fi 15965 15966case $host_os in 15967 # For platforms which do not support PIC, -DPIC is meaningless: 15968 *djgpp*) 15969 lt_prog_compiler_pic= 15970 ;; 15971 *) 15972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15973 ;; 15974esac 15975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 15976$as_echo "$lt_prog_compiler_pic" >&6; } 15977 15978 15979 15980 15981 15982 15983# 15984# Check to make sure the PIC flag actually works. 15985# 15986if test -n "$lt_prog_compiler_pic"; then 15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15988$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15989if ${lt_cv_prog_compiler_pic_works+:} false; then : 15990 $as_echo_n "(cached) " >&6 15991else 15992 lt_cv_prog_compiler_pic_works=no 15993 ac_outfile=conftest.$ac_objext 15994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15995 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 15996 # Insert the option either (1) after the last *FLAGS variable, or 15997 # (2) before a word containing "conftest.", or (3) at the end. 15998 # Note that $ac_compile itself does not contain backslashes and begins 15999 # with a dollar sign (not a hyphen), so the echo should work correctly. 16000 # The option is referenced via a variable to avoid confusing sed. 16001 lt_compile=`echo "$ac_compile" | $SED \ 16002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16004 -e 's:$: $lt_compiler_flag:'` 16005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16006 (eval "$lt_compile" 2>conftest.err) 16007 ac_status=$? 16008 cat conftest.err >&5 16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16010 if (exit $ac_status) && test -s "$ac_outfile"; then 16011 # The compiler can only warn and ignore the option if not recognized 16012 # So say no if there are warnings other than the usual output. 16013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16016 lt_cv_prog_compiler_pic_works=yes 16017 fi 16018 fi 16019 $RM conftest* 16020 16021fi 16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16023$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 16024 16025if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 16026 case $lt_prog_compiler_pic in 16027 "" | " "*) ;; 16028 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16029 esac 16030else 16031 lt_prog_compiler_pic= 16032 lt_prog_compiler_can_build_shared=no 16033fi 16034 16035fi 16036 16037 16038 16039 16040 16041 16042# 16043# Check to make sure the static flag actually works. 16044# 16045wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16047$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16048if ${lt_cv_prog_compiler_static_works+:} false; then : 16049 $as_echo_n "(cached) " >&6 16050else 16051 lt_cv_prog_compiler_static_works=no 16052 save_LDFLAGS="$LDFLAGS" 16053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16054 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16056 # The linker can only warn and ignore the option if not recognized 16057 # So say no if there are warnings 16058 if test -s conftest.err; then 16059 # Append any errors to the config.log. 16060 cat conftest.err 1>&5 16061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16063 if diff conftest.exp conftest.er2 >/dev/null; then 16064 lt_cv_prog_compiler_static_works=yes 16065 fi 16066 else 16067 lt_cv_prog_compiler_static_works=yes 16068 fi 16069 fi 16070 $RM -r conftest* 16071 LDFLAGS="$save_LDFLAGS" 16072 16073fi 16074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16075$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 16076 16077if test x"$lt_cv_prog_compiler_static_works" = xyes; then 16078 : 16079else 16080 lt_prog_compiler_static= 16081fi 16082 16083 16084 16085 16086 16087 16088 16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16090$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16091if ${lt_cv_prog_compiler_c_o+:} false; then : 16092 $as_echo_n "(cached) " >&6 16093else 16094 lt_cv_prog_compiler_c_o=no 16095 $RM -r conftest 2>/dev/null 16096 mkdir conftest 16097 cd conftest 16098 mkdir out 16099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16100 16101 lt_compiler_flag="-o out/conftest2.$ac_objext" 16102 # Insert the option either (1) after the last *FLAGS variable, or 16103 # (2) before a word containing "conftest.", or (3) at the end. 16104 # Note that $ac_compile itself does not contain backslashes and begins 16105 # with a dollar sign (not a hyphen), so the echo should work correctly. 16106 lt_compile=`echo "$ac_compile" | $SED \ 16107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16109 -e 's:$: $lt_compiler_flag:'` 16110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16111 (eval "$lt_compile" 2>out/conftest.err) 16112 ac_status=$? 16113 cat out/conftest.err >&5 16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16115 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16116 then 16117 # The compiler can only warn and ignore the option if not recognized 16118 # So say no if there are warnings 16119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16122 lt_cv_prog_compiler_c_o=yes 16123 fi 16124 fi 16125 chmod u+w . 2>&5 16126 $RM conftest* 16127 # SGI C++ compiler will create directory out/ii_files/ for 16128 # template instantiation 16129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16130 $RM out/* && rmdir out 16131 cd .. 16132 $RM -r conftest 16133 $RM conftest* 16134 16135fi 16136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16137$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16138 16139 16140 16141 16142 16143 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16145$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16146if ${lt_cv_prog_compiler_c_o+:} false; then : 16147 $as_echo_n "(cached) " >&6 16148else 16149 lt_cv_prog_compiler_c_o=no 16150 $RM -r conftest 2>/dev/null 16151 mkdir conftest 16152 cd conftest 16153 mkdir out 16154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16155 16156 lt_compiler_flag="-o out/conftest2.$ac_objext" 16157 # Insert the option either (1) after the last *FLAGS variable, or 16158 # (2) before a word containing "conftest.", or (3) at the end. 16159 # Note that $ac_compile itself does not contain backslashes and begins 16160 # with a dollar sign (not a hyphen), so the echo should work correctly. 16161 lt_compile=`echo "$ac_compile" | $SED \ 16162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16164 -e 's:$: $lt_compiler_flag:'` 16165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16166 (eval "$lt_compile" 2>out/conftest.err) 16167 ac_status=$? 16168 cat out/conftest.err >&5 16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16170 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16171 then 16172 # The compiler can only warn and ignore the option if not recognized 16173 # So say no if there are warnings 16174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16177 lt_cv_prog_compiler_c_o=yes 16178 fi 16179 fi 16180 chmod u+w . 2>&5 16181 $RM conftest* 16182 # SGI C++ compiler will create directory out/ii_files/ for 16183 # template instantiation 16184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16185 $RM out/* && rmdir out 16186 cd .. 16187 $RM -r conftest 16188 $RM conftest* 16189 16190fi 16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16192$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16193 16194 16195 16196 16197hard_links="nottested" 16198if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 16199 # do not overwrite the value of need_locks provided by the user 16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16201$as_echo_n "checking if we can lock with hard links... " >&6; } 16202 hard_links=yes 16203 $RM conftest* 16204 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16205 touch conftest.a 16206 ln conftest.a conftest.b 2>&5 || hard_links=no 16207 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16209$as_echo "$hard_links" >&6; } 16210 if test "$hard_links" = no; then 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16212$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16213 need_locks=warn 16214 fi 16215else 16216 need_locks=no 16217fi 16218 16219 16220 16221 16222 16223 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16225$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16226 16227 runpath_var= 16228 allow_undefined_flag= 16229 always_export_symbols=no 16230 archive_cmds= 16231 archive_expsym_cmds= 16232 compiler_needs_object=no 16233 enable_shared_with_static_runtimes=no 16234 export_dynamic_flag_spec= 16235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16236 hardcode_automatic=no 16237 hardcode_direct=no 16238 hardcode_direct_absolute=no 16239 hardcode_libdir_flag_spec= 16240 hardcode_libdir_flag_spec_ld= 16241 hardcode_libdir_separator= 16242 hardcode_minus_L=no 16243 hardcode_shlibpath_var=unsupported 16244 inherit_rpath=no 16245 link_all_deplibs=unknown 16246 module_cmds= 16247 module_expsym_cmds= 16248 old_archive_from_new_cmds= 16249 old_archive_from_expsyms_cmds= 16250 thread_safe_flag_spec= 16251 whole_archive_flag_spec= 16252 # include_expsyms should be a list of space-separated symbols to be *always* 16253 # included in the symbol list 16254 include_expsyms= 16255 # exclude_expsyms can be an extended regexp of symbols to exclude 16256 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16258 # as well as any symbol that contains `d'. 16259 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16261 # platforms (ab)use it in PIC code, but their linkers get confused if 16262 # the symbol is explicitly referenced. Since portable code cannot 16263 # rely on this symbol name, it's probably fine to never include it in 16264 # preloaded symbol tables. 16265 # Exclude shared library initialization/finalization symbols. 16266 extract_expsyms_cmds= 16267 16268 case $host_os in 16269 cygwin* | mingw* | pw32* | cegcc*) 16270 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16271 # When not using gcc, we currently assume that we are using 16272 # Microsoft Visual C++. 16273 if test "$GCC" != yes; then 16274 with_gnu_ld=no 16275 fi 16276 ;; 16277 interix*) 16278 # we just hope/assume this is gcc and not c89 (= MSVC++) 16279 with_gnu_ld=yes 16280 ;; 16281 openbsd*) 16282 with_gnu_ld=no 16283 ;; 16284 esac 16285 16286 ld_shlibs=yes 16287 16288 # On some targets, GNU ld is compatible enough with the native linker 16289 # that we're better off using the native interface for both. 16290 lt_use_gnu_ld_interface=no 16291 if test "$with_gnu_ld" = yes; then 16292 case $host_os in 16293 aix*) 16294 # The AIX port of GNU ld has always aspired to compatibility 16295 # with the native linker. However, as the warning in the GNU ld 16296 # block says, versions before 2.19.5* couldn't really create working 16297 # shared libraries, regardless of the interface used. 16298 case `$LD -v 2>&1` in 16299 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16300 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16301 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16302 *) 16303 lt_use_gnu_ld_interface=yes 16304 ;; 16305 esac 16306 ;; 16307 *) 16308 lt_use_gnu_ld_interface=yes 16309 ;; 16310 esac 16311 fi 16312 16313 if test "$lt_use_gnu_ld_interface" = yes; then 16314 # If archive_cmds runs LD, not CC, wlarc should be empty 16315 wlarc='${wl}' 16316 16317 # Set some defaults for GNU ld with shared library support. These 16318 # are reset later if shared libraries are not supported. Putting them 16319 # here allows them to be overridden if necessary. 16320 runpath_var=LD_RUN_PATH 16321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16322 export_dynamic_flag_spec='${wl}--export-dynamic' 16323 # ancient GNU ld didn't support --whole-archive et. al. 16324 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16325 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16326 else 16327 whole_archive_flag_spec= 16328 fi 16329 supports_anon_versioning=no 16330 case `$LD -v 2>&1` in 16331 *GNU\ gold*) supports_anon_versioning=yes ;; 16332 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16333 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16334 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16335 *\ 2.11.*) ;; # other 2.11 versions 16336 *) supports_anon_versioning=yes ;; 16337 esac 16338 16339 # See if GNU ld supports shared libraries. 16340 case $host_os in 16341 aix[3-9]*) 16342 # On AIX/PPC, the GNU linker is very broken 16343 if test "$host_cpu" != ia64; then 16344 ld_shlibs=no 16345 cat <<_LT_EOF 1>&2 16346 16347*** Warning: the GNU linker, at least up to release 2.19, is reported 16348*** to be unable to reliably create shared libraries on AIX. 16349*** Therefore, libtool is disabling shared libraries support. If you 16350*** really care for shared libraries, you may want to install binutils 16351*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16352*** You will then need to restart the configuration process. 16353 16354_LT_EOF 16355 fi 16356 ;; 16357 16358 amigaos*) 16359 case $host_cpu in 16360 powerpc) 16361 # see comment about AmigaOS4 .so support 16362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16363 archive_expsym_cmds='' 16364 ;; 16365 m68k) 16366 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)' 16367 hardcode_libdir_flag_spec='-L$libdir' 16368 hardcode_minus_L=yes 16369 ;; 16370 esac 16371 ;; 16372 16373 beos*) 16374 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16375 allow_undefined_flag=unsupported 16376 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16377 # support --undefined. This deserves some investigation. FIXME 16378 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16379 else 16380 ld_shlibs=no 16381 fi 16382 ;; 16383 16384 cygwin* | mingw* | pw32* | cegcc*) 16385 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16386 # as there is no search path for DLLs. 16387 hardcode_libdir_flag_spec='-L$libdir' 16388 export_dynamic_flag_spec='${wl}--export-all-symbols' 16389 allow_undefined_flag=unsupported 16390 always_export_symbols=no 16391 enable_shared_with_static_runtimes=yes 16392 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16393 16394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16396 # If the export-symbols file already is a .def file (1st line 16397 # is EXPORTS), use it as is; otherwise, prepend... 16398 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16399 cp $export_symbols $output_objdir/$soname.def; 16400 else 16401 echo EXPORTS > $output_objdir/$soname.def; 16402 cat $export_symbols >> $output_objdir/$soname.def; 16403 fi~ 16404 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16405 else 16406 ld_shlibs=no 16407 fi 16408 ;; 16409 16410 haiku*) 16411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16412 link_all_deplibs=yes 16413 ;; 16414 16415 interix[3-9]*) 16416 hardcode_direct=no 16417 hardcode_shlibpath_var=no 16418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16419 export_dynamic_flag_spec='${wl}-E' 16420 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16421 # Instead, shared libraries are loaded at an image base (0x10000000 by 16422 # default) and relocated if they conflict, which is a slow very memory 16423 # consuming and fragmenting process. To avoid this, we pick a random, 16424 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16425 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16426 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16427 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' 16428 ;; 16429 16430 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16431 tmp_diet=no 16432 if test "$host_os" = linux-dietlibc; then 16433 case $cc_basename in 16434 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16435 esac 16436 fi 16437 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16438 && test "$tmp_diet" = no 16439 then 16440 tmp_addflag=' $pic_flag' 16441 tmp_sharedflag='-shared' 16442 case $cc_basename,$host_cpu in 16443 pgcc*) # Portland Group C compiler 16444 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' 16445 tmp_addflag=' $pic_flag' 16446 ;; 16447 pgf77* | pgf90* | pgf95* | pgfortran*) 16448 # Portland Group f77 and f90 compilers 16449 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' 16450 tmp_addflag=' $pic_flag -Mnomain' ;; 16451 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16452 tmp_addflag=' -i_dynamic' ;; 16453 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16454 tmp_addflag=' -i_dynamic -nofor_main' ;; 16455 ifc* | ifort*) # Intel Fortran compiler 16456 tmp_addflag=' -nofor_main' ;; 16457 lf95*) # Lahey Fortran 8.1 16458 whole_archive_flag_spec= 16459 tmp_sharedflag='--shared' ;; 16460 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16461 tmp_sharedflag='-qmkshrobj' 16462 tmp_addflag= ;; 16463 nvcc*) # Cuda Compiler Driver 2.2 16464 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' 16465 compiler_needs_object=yes 16466 ;; 16467 esac 16468 case `$CC -V 2>&1 | sed 5q` in 16469 *Sun\ C*) # Sun C 5.9 16470 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' 16471 compiler_needs_object=yes 16472 tmp_sharedflag='-G' ;; 16473 *Sun\ F*) # Sun Fortran 8.3 16474 tmp_sharedflag='-G' ;; 16475 esac 16476 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16477 16478 if test "x$supports_anon_versioning" = xyes; then 16479 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16480 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16481 echo "local: *; };" >> $output_objdir/$libname.ver~ 16482 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16483 fi 16484 16485 case $cc_basename in 16486 xlf* | bgf* | bgxlf* | mpixlf*) 16487 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16488 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16489 hardcode_libdir_flag_spec= 16490 hardcode_libdir_flag_spec_ld='-rpath $libdir' 16491 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 16492 if test "x$supports_anon_versioning" = xyes; then 16493 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16494 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16495 echo "local: *; };" >> $output_objdir/$libname.ver~ 16496 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16497 fi 16498 ;; 16499 esac 16500 else 16501 ld_shlibs=no 16502 fi 16503 ;; 16504 16505 netbsd*) 16506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16507 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16508 wlarc= 16509 else 16510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16512 fi 16513 ;; 16514 16515 solaris*) 16516 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16517 ld_shlibs=no 16518 cat <<_LT_EOF 1>&2 16519 16520*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16521*** create shared libraries on Solaris systems. Therefore, libtool 16522*** is disabling shared libraries support. We urge you to upgrade GNU 16523*** binutils to release 2.9.1 or newer. Another option is to modify 16524*** your PATH or compiler configuration so that the native linker is 16525*** used, and then restart. 16526 16527_LT_EOF 16528 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16531 else 16532 ld_shlibs=no 16533 fi 16534 ;; 16535 16536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16537 case `$LD -v 2>&1` in 16538 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16539 ld_shlibs=no 16540 cat <<_LT_EOF 1>&2 16541 16542*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16543*** reliably create shared libraries on SCO systems. Therefore, libtool 16544*** is disabling shared libraries support. We urge you to upgrade GNU 16545*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16546*** your PATH or compiler configuration so that the native linker is 16547*** used, and then restart. 16548 16549_LT_EOF 16550 ;; 16551 *) 16552 # For security reasons, it is highly recommended that you always 16553 # use absolute paths for naming shared libraries, and exclude the 16554 # DT_RUNPATH tag from executables and libraries. But doing so 16555 # requires that you compile everything twice, which is a pain. 16556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16560 else 16561 ld_shlibs=no 16562 fi 16563 ;; 16564 esac 16565 ;; 16566 16567 sunos4*) 16568 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16569 wlarc= 16570 hardcode_direct=yes 16571 hardcode_shlibpath_var=no 16572 ;; 16573 16574 *) 16575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16578 else 16579 ld_shlibs=no 16580 fi 16581 ;; 16582 esac 16583 16584 if test "$ld_shlibs" = no; then 16585 runpath_var= 16586 hardcode_libdir_flag_spec= 16587 export_dynamic_flag_spec= 16588 whole_archive_flag_spec= 16589 fi 16590 else 16591 # PORTME fill in a description of your system's linker (not GNU ld) 16592 case $host_os in 16593 aix3*) 16594 allow_undefined_flag=unsupported 16595 always_export_symbols=yes 16596 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' 16597 # Note: this linker hardcodes the directories in LIBPATH if there 16598 # are no directories specified by -L. 16599 hardcode_minus_L=yes 16600 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16601 # Neither direct hardcoding nor static linking is supported with a 16602 # broken collect2. 16603 hardcode_direct=unsupported 16604 fi 16605 ;; 16606 16607 aix[4-9]*) 16608 if test "$host_cpu" = ia64; then 16609 # On IA64, the linker does run time linking by default, so we don't 16610 # have to do anything special. 16611 aix_use_runtimelinking=no 16612 exp_sym_flag='-Bexport' 16613 no_entry_flag="" 16614 else 16615 # If we're using GNU nm, then we don't want the "-C" option. 16616 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16617 # Also, AIX nm treats weak defined symbols like other global 16618 # defined symbols, whereas GNU nm marks them as "W". 16619 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16620 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' 16621 else 16622 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' 16623 fi 16624 aix_use_runtimelinking=no 16625 16626 # Test if we are trying to use run time linking or normal 16627 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16628 # need to do runtime linking. 16629 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16630 for ld_flag in $LDFLAGS; do 16631 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16632 aix_use_runtimelinking=yes 16633 break 16634 fi 16635 done 16636 ;; 16637 esac 16638 16639 exp_sym_flag='-bexport' 16640 no_entry_flag='-bnoentry' 16641 fi 16642 16643 # When large executables or shared objects are built, AIX ld can 16644 # have problems creating the table of contents. If linking a library 16645 # or program results in "error TOC overflow" add -mminimal-toc to 16646 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16647 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16648 16649 archive_cmds='' 16650 hardcode_direct=yes 16651 hardcode_direct_absolute=yes 16652 hardcode_libdir_separator=':' 16653 link_all_deplibs=yes 16654 file_list_spec='${wl}-f,' 16655 16656 if test "$GCC" = yes; then 16657 case $host_os in aix4.[012]|aix4.[012].*) 16658 # We only want to do this on AIX 4.2 and lower, the check 16659 # below for broken collect2 doesn't work under 4.3+ 16660 collect2name=`${CC} -print-prog-name=collect2` 16661 if test -f "$collect2name" && 16662 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16663 then 16664 # We have reworked collect2 16665 : 16666 else 16667 # We have old collect2 16668 hardcode_direct=unsupported 16669 # It fails to find uninstalled libraries when the uninstalled 16670 # path is not listed in the libpath. Setting hardcode_minus_L 16671 # to unsupported forces relinking 16672 hardcode_minus_L=yes 16673 hardcode_libdir_flag_spec='-L$libdir' 16674 hardcode_libdir_separator= 16675 fi 16676 ;; 16677 esac 16678 shared_flag='-shared' 16679 if test "$aix_use_runtimelinking" = yes; then 16680 shared_flag="$shared_flag "'${wl}-G' 16681 fi 16682 else 16683 # not using gcc 16684 if test "$host_cpu" = ia64; then 16685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16686 # chokes on -Wl,-G. The following line is correct: 16687 shared_flag='-G' 16688 else 16689 if test "$aix_use_runtimelinking" = yes; then 16690 shared_flag='${wl}-G' 16691 else 16692 shared_flag='${wl}-bM:SRE' 16693 fi 16694 fi 16695 fi 16696 16697 export_dynamic_flag_spec='${wl}-bexpall' 16698 # It seems that -bexpall does not export symbols beginning with 16699 # underscore (_), so it is better to generate a list of symbols to export. 16700 always_export_symbols=yes 16701 if test "$aix_use_runtimelinking" = yes; then 16702 # Warning - without using the other runtime loading flags (-brtl), 16703 # -berok will link without error, but may produce a broken library. 16704 allow_undefined_flag='-berok' 16705 # Determine the default libpath from the value encoded in an 16706 # empty executable. 16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16708/* end confdefs.h. */ 16709 16710int 16711main () 16712{ 16713 16714 ; 16715 return 0; 16716} 16717_ACEOF 16718if ac_fn_c_try_link "$LINENO"; then : 16719 16720lt_aix_libpath_sed=' 16721 /Import File Strings/,/^$/ { 16722 /^0/ { 16723 s/^0 *\(.*\)$/\1/ 16724 p 16725 } 16726 }' 16727aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16728# Check for a 64-bit object if we didn't find anything. 16729if test -z "$aix_libpath"; then 16730 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16731fi 16732fi 16733rm -f core conftest.err conftest.$ac_objext \ 16734 conftest$ac_exeext conftest.$ac_ext 16735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16736 16737 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16738 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" 16739 else 16740 if test "$host_cpu" = ia64; then 16741 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 16742 allow_undefined_flag="-z nodefs" 16743 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" 16744 else 16745 # Determine the default libpath from the value encoded in an 16746 # empty executable. 16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16748/* end confdefs.h. */ 16749 16750int 16751main () 16752{ 16753 16754 ; 16755 return 0; 16756} 16757_ACEOF 16758if ac_fn_c_try_link "$LINENO"; then : 16759 16760lt_aix_libpath_sed=' 16761 /Import File Strings/,/^$/ { 16762 /^0/ { 16763 s/^0 *\(.*\)$/\1/ 16764 p 16765 } 16766 }' 16767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16768# Check for a 64-bit object if we didn't find anything. 16769if test -z "$aix_libpath"; then 16770 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16771fi 16772fi 16773rm -f core conftest.err conftest.$ac_objext \ 16774 conftest$ac_exeext conftest.$ac_ext 16775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16776 16777 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16778 # Warning - without using the other run time loading flags, 16779 # -berok will link without error, but may produce a broken library. 16780 no_undefined_flag=' ${wl}-bernotok' 16781 allow_undefined_flag=' ${wl}-berok' 16782 if test "$with_gnu_ld" = yes; then 16783 # We only use this code for GNU lds that support --whole-archive. 16784 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16785 else 16786 # Exported symbols can be pulled into shared objects from archives 16787 whole_archive_flag_spec='$convenience' 16788 fi 16789 archive_cmds_need_lc=yes 16790 # This is similar to how AIX traditionally builds its shared libraries. 16791 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' 16792 fi 16793 fi 16794 ;; 16795 16796 amigaos*) 16797 case $host_cpu in 16798 powerpc) 16799 # see comment about AmigaOS4 .so support 16800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16801 archive_expsym_cmds='' 16802 ;; 16803 m68k) 16804 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)' 16805 hardcode_libdir_flag_spec='-L$libdir' 16806 hardcode_minus_L=yes 16807 ;; 16808 esac 16809 ;; 16810 16811 bsdi[45]*) 16812 export_dynamic_flag_spec=-rdynamic 16813 ;; 16814 16815 cygwin* | mingw* | pw32* | cegcc*) 16816 # When not using gcc, we currently assume that we are using 16817 # Microsoft Visual C++. 16818 # hardcode_libdir_flag_spec is actually meaningless, as there is 16819 # no search path for DLLs. 16820 hardcode_libdir_flag_spec=' ' 16821 allow_undefined_flag=unsupported 16822 # Tell ltmain to make .lib files, not .a files. 16823 libext=lib 16824 # Tell ltmain to make .dll files, not .so files. 16825 shrext_cmds=".dll" 16826 # FIXME: Setting linknames here is a bad hack. 16827 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16828 # The linker will automatically build a .lib file if we build a DLL. 16829 old_archive_from_new_cmds='true' 16830 # FIXME: Should let the user specify the lib program. 16831 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16832 fix_srcfile_path='`cygpath -w "$srcfile"`' 16833 enable_shared_with_static_runtimes=yes 16834 ;; 16835 16836 darwin* | rhapsody*) 16837 16838 16839 archive_cmds_need_lc=no 16840 hardcode_direct=no 16841 hardcode_automatic=yes 16842 hardcode_shlibpath_var=unsupported 16843 if test "$lt_cv_ld_force_load" = "yes"; then 16844 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\"`' 16845 else 16846 whole_archive_flag_spec='' 16847 fi 16848 link_all_deplibs=yes 16849 allow_undefined_flag="$_lt_dar_allow_undefined" 16850 case $cc_basename in 16851 ifort*) _lt_dar_can_shared=yes ;; 16852 *) _lt_dar_can_shared=$GCC ;; 16853 esac 16854 if test "$_lt_dar_can_shared" = "yes"; then 16855 output_verbose_link_cmd=func_echo_all 16856 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 16857 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 16858 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}" 16859 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}" 16860 16861 else 16862 ld_shlibs=no 16863 fi 16864 16865 ;; 16866 16867 dgux*) 16868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16869 hardcode_libdir_flag_spec='-L$libdir' 16870 hardcode_shlibpath_var=no 16871 ;; 16872 16873 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16874 # support. Future versions do this automatically, but an explicit c++rt0.o 16875 # does not break anything, and helps significantly (at the cost of a little 16876 # extra space). 16877 freebsd2.2*) 16878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16879 hardcode_libdir_flag_spec='-R$libdir' 16880 hardcode_direct=yes 16881 hardcode_shlibpath_var=no 16882 ;; 16883 16884 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16885 freebsd2.*) 16886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16887 hardcode_direct=yes 16888 hardcode_minus_L=yes 16889 hardcode_shlibpath_var=no 16890 ;; 16891 16892 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16893 freebsd* | dragonfly*) 16894 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16895 hardcode_libdir_flag_spec='-R$libdir' 16896 hardcode_direct=yes 16897 hardcode_shlibpath_var=no 16898 ;; 16899 16900 hpux9*) 16901 if test "$GCC" = yes; then 16902 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' 16903 else 16904 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' 16905 fi 16906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16907 hardcode_libdir_separator=: 16908 hardcode_direct=yes 16909 16910 # hardcode_minus_L: Not really in the search PATH, 16911 # but as the default location of the library. 16912 hardcode_minus_L=yes 16913 export_dynamic_flag_spec='${wl}-E' 16914 ;; 16915 16916 hpux10*) 16917 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 16918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16919 else 16920 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16921 fi 16922 if test "$with_gnu_ld" = no; then 16923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16924 hardcode_libdir_flag_spec_ld='+b $libdir' 16925 hardcode_libdir_separator=: 16926 hardcode_direct=yes 16927 hardcode_direct_absolute=yes 16928 export_dynamic_flag_spec='${wl}-E' 16929 # hardcode_minus_L: Not really in the search PATH, 16930 # but as the default location of the library. 16931 hardcode_minus_L=yes 16932 fi 16933 ;; 16934 16935 hpux11*) 16936 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 16937 case $host_cpu in 16938 hppa*64*) 16939 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16940 ;; 16941 ia64*) 16942 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16943 ;; 16944 *) 16945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16946 ;; 16947 esac 16948 else 16949 case $host_cpu in 16950 hppa*64*) 16951 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16952 ;; 16953 ia64*) 16954 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16955 ;; 16956 *) 16957 16958 # Older versions of the 11.00 compiler do not understand -b yet 16959 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16961$as_echo_n "checking if $CC understands -b... " >&6; } 16962if ${lt_cv_prog_compiler__b+:} false; then : 16963 $as_echo_n "(cached) " >&6 16964else 16965 lt_cv_prog_compiler__b=no 16966 save_LDFLAGS="$LDFLAGS" 16967 LDFLAGS="$LDFLAGS -b" 16968 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16970 # The linker can only warn and ignore the option if not recognized 16971 # So say no if there are warnings 16972 if test -s conftest.err; then 16973 # Append any errors to the config.log. 16974 cat conftest.err 1>&5 16975 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16977 if diff conftest.exp conftest.er2 >/dev/null; then 16978 lt_cv_prog_compiler__b=yes 16979 fi 16980 else 16981 lt_cv_prog_compiler__b=yes 16982 fi 16983 fi 16984 $RM -r conftest* 16985 LDFLAGS="$save_LDFLAGS" 16986 16987fi 16988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16989$as_echo "$lt_cv_prog_compiler__b" >&6; } 16990 16991if test x"$lt_cv_prog_compiler__b" = xyes; then 16992 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16993else 16994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16995fi 16996 16997 ;; 16998 esac 16999 fi 17000 if test "$with_gnu_ld" = no; then 17001 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17002 hardcode_libdir_separator=: 17003 17004 case $host_cpu in 17005 hppa*64*|ia64*) 17006 hardcode_direct=no 17007 hardcode_shlibpath_var=no 17008 ;; 17009 *) 17010 hardcode_direct=yes 17011 hardcode_direct_absolute=yes 17012 export_dynamic_flag_spec='${wl}-E' 17013 17014 # hardcode_minus_L: Not really in the search PATH, 17015 # but as the default location of the library. 17016 hardcode_minus_L=yes 17017 ;; 17018 esac 17019 fi 17020 ;; 17021 17022 irix5* | irix6* | nonstopux*) 17023 if test "$GCC" = yes; then 17024 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' 17025 # Try to use the -exported_symbol ld option, if it does not 17026 # work, assume that -exports_file does not work either and 17027 # implicitly export all symbols. 17028 save_LDFLAGS="$LDFLAGS" 17029 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17031/* end confdefs.h. */ 17032int foo(void) {} 17033_ACEOF 17034if ac_fn_c_try_link "$LINENO"; then : 17035 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' 17036 17037fi 17038rm -f core conftest.err conftest.$ac_objext \ 17039 conftest$ac_exeext conftest.$ac_ext 17040 LDFLAGS="$save_LDFLAGS" 17041 else 17042 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' 17043 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' 17044 fi 17045 archive_cmds_need_lc='no' 17046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17047 hardcode_libdir_separator=: 17048 inherit_rpath=yes 17049 link_all_deplibs=yes 17050 ;; 17051 17052 netbsd*) 17053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17055 else 17056 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17057 fi 17058 hardcode_libdir_flag_spec='-R$libdir' 17059 hardcode_direct=yes 17060 hardcode_shlibpath_var=no 17061 ;; 17062 17063 newsos6) 17064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17065 hardcode_direct=yes 17066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17067 hardcode_libdir_separator=: 17068 hardcode_shlibpath_var=no 17069 ;; 17070 17071 *nto* | *qnx*) 17072 ;; 17073 17074 openbsd*) 17075 if test -f /usr/libexec/ld.so; then 17076 hardcode_direct=yes 17077 hardcode_shlibpath_var=no 17078 hardcode_direct_absolute=yes 17079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17080 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17081 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 17083 export_dynamic_flag_spec='${wl}-E' 17084 else 17085 case $host_os in 17086 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17088 hardcode_libdir_flag_spec='-R$libdir' 17089 ;; 17090 *) 17091 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 17093 ;; 17094 esac 17095 fi 17096 else 17097 ld_shlibs=no 17098 fi 17099 ;; 17100 17101 os2*) 17102 hardcode_libdir_flag_spec='-L$libdir' 17103 hardcode_minus_L=yes 17104 allow_undefined_flag=unsupported 17105 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' 17106 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17107 ;; 17108 17109 osf3*) 17110 if test "$GCC" = yes; then 17111 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 17112 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' 17113 else 17114 allow_undefined_flag=' -expect_unresolved \*' 17115 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' 17116 fi 17117 archive_cmds_need_lc='no' 17118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17119 hardcode_libdir_separator=: 17120 ;; 17121 17122 osf4* | osf5*) # as osf3* with the addition of -msym flag 17123 if test "$GCC" = yes; then 17124 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 17125 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' 17126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17127 else 17128 allow_undefined_flag=' -expect_unresolved \*' 17129 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' 17130 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~ 17131 $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' 17132 17133 # Both c and cxx compiler support -rpath directly 17134 hardcode_libdir_flag_spec='-rpath $libdir' 17135 fi 17136 archive_cmds_need_lc='no' 17137 hardcode_libdir_separator=: 17138 ;; 17139 17140 solaris*) 17141 no_undefined_flag=' -z defs' 17142 if test "$GCC" = yes; then 17143 wlarc='${wl}' 17144 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17145 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17146 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17147 else 17148 case `$CC -V 2>&1` in 17149 *"Compilers 5.0"*) 17150 wlarc='' 17151 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17154 ;; 17155 *) 17156 wlarc='${wl}' 17157 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17159 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17160 ;; 17161 esac 17162 fi 17163 hardcode_libdir_flag_spec='-R$libdir' 17164 hardcode_shlibpath_var=no 17165 case $host_os in 17166 solaris2.[0-5] | solaris2.[0-5].*) ;; 17167 *) 17168 # The compiler driver will combine and reorder linker options, 17169 # but understands `-z linker_flag'. GCC discards it without `$wl', 17170 # but is careful enough not to reorder. 17171 # Supported since Solaris 2.6 (maybe 2.5.1?) 17172 if test "$GCC" = yes; then 17173 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17174 else 17175 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17176 fi 17177 ;; 17178 esac 17179 link_all_deplibs=yes 17180 ;; 17181 17182 sunos4*) 17183 if test "x$host_vendor" = xsequent; then 17184 # Use $CC to link under sequent, because it throws in some extra .o 17185 # files that make .init and .fini sections work. 17186 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17187 else 17188 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17189 fi 17190 hardcode_libdir_flag_spec='-L$libdir' 17191 hardcode_direct=yes 17192 hardcode_minus_L=yes 17193 hardcode_shlibpath_var=no 17194 ;; 17195 17196 sysv4) 17197 case $host_vendor in 17198 sni) 17199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17200 hardcode_direct=yes # is this really true??? 17201 ;; 17202 siemens) 17203 ## LD is ld it makes a PLAMLIB 17204 ## CC just makes a GrossModule. 17205 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17206 reload_cmds='$CC -r -o $output$reload_objs' 17207 hardcode_direct=no 17208 ;; 17209 motorola) 17210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17211 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17212 ;; 17213 esac 17214 runpath_var='LD_RUN_PATH' 17215 hardcode_shlibpath_var=no 17216 ;; 17217 17218 sysv4.3*) 17219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17220 hardcode_shlibpath_var=no 17221 export_dynamic_flag_spec='-Bexport' 17222 ;; 17223 17224 sysv4*MP*) 17225 if test -d /usr/nec; then 17226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17227 hardcode_shlibpath_var=no 17228 runpath_var=LD_RUN_PATH 17229 hardcode_runpath_var=yes 17230 ld_shlibs=yes 17231 fi 17232 ;; 17233 17234 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17235 no_undefined_flag='${wl}-z,text' 17236 archive_cmds_need_lc=no 17237 hardcode_shlibpath_var=no 17238 runpath_var='LD_RUN_PATH' 17239 17240 if test "$GCC" = yes; then 17241 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17242 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17243 else 17244 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17245 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17246 fi 17247 ;; 17248 17249 sysv5* | sco3.2v5* | sco5v6*) 17250 # Note: We can NOT use -z defs as we might desire, because we do not 17251 # link with -lc, and that would cause any symbols used from libc to 17252 # always be unresolved, which means just about no library would 17253 # ever link correctly. If we're not using GNU ld we use -z text 17254 # though, which does catch some bad symbols but isn't as heavy-handed 17255 # as -z defs. 17256 no_undefined_flag='${wl}-z,text' 17257 allow_undefined_flag='${wl}-z,nodefs' 17258 archive_cmds_need_lc=no 17259 hardcode_shlibpath_var=no 17260 hardcode_libdir_flag_spec='${wl}-R,$libdir' 17261 hardcode_libdir_separator=':' 17262 link_all_deplibs=yes 17263 export_dynamic_flag_spec='${wl}-Bexport' 17264 runpath_var='LD_RUN_PATH' 17265 17266 if test "$GCC" = yes; then 17267 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17268 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17269 else 17270 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17271 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17272 fi 17273 ;; 17274 17275 uts4*) 17276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17277 hardcode_libdir_flag_spec='-L$libdir' 17278 hardcode_shlibpath_var=no 17279 ;; 17280 17281 *) 17282 ld_shlibs=no 17283 ;; 17284 esac 17285 17286 if test x$host_vendor = xsni; then 17287 case $host in 17288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17289 export_dynamic_flag_spec='${wl}-Blargedynsym' 17290 ;; 17291 esac 17292 fi 17293 fi 17294 17295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17296$as_echo "$ld_shlibs" >&6; } 17297test "$ld_shlibs" = no && can_build_shared=no 17298 17299with_gnu_ld=$with_gnu_ld 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315# 17316# Do we need to explicitly link libc? 17317# 17318case "x$archive_cmds_need_lc" in 17319x|xyes) 17320 # Assume -lc should be added 17321 archive_cmds_need_lc=yes 17322 17323 if test "$enable_shared" = yes && test "$GCC" = yes; then 17324 case $archive_cmds in 17325 *'~'*) 17326 # FIXME: we may have to deal with multi-command sequences. 17327 ;; 17328 '$CC '*) 17329 # Test whether the compiler implicitly links with -lc since on some 17330 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17331 # to ld, don't add -lc before -lgcc. 17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17333$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17334if ${lt_cv_archive_cmds_need_lc+:} false; then : 17335 $as_echo_n "(cached) " >&6 17336else 17337 $RM conftest* 17338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17339 17340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17341 (eval $ac_compile) 2>&5 17342 ac_status=$? 17343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17344 test $ac_status = 0; } 2>conftest.err; then 17345 soname=conftest 17346 lib=conftest 17347 libobjs=conftest.$ac_objext 17348 deplibs= 17349 wl=$lt_prog_compiler_wl 17350 pic_flag=$lt_prog_compiler_pic 17351 compiler_flags=-v 17352 linker_flags=-v 17353 verstring= 17354 output_objdir=. 17355 libname=conftest 17356 lt_save_allow_undefined_flag=$allow_undefined_flag 17357 allow_undefined_flag= 17358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17359 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17360 ac_status=$? 17361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17362 test $ac_status = 0; } 17363 then 17364 lt_cv_archive_cmds_need_lc=no 17365 else 17366 lt_cv_archive_cmds_need_lc=yes 17367 fi 17368 allow_undefined_flag=$lt_save_allow_undefined_flag 17369 else 17370 cat conftest.err 1>&5 17371 fi 17372 $RM conftest* 17373 17374fi 17375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17376$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 17377 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17378 ;; 17379 esac 17380 fi 17381 ;; 17382esac 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17541$as_echo_n "checking dynamic linker characteristics... " >&6; } 17542 17543if test "$GCC" = yes; then 17544 case $host_os in 17545 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 17546 *) lt_awk_arg="/^libraries:/" ;; 17547 esac 17548 case $host_os in 17549 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 17550 *) lt_sed_strip_eq="s,=/,/,g" ;; 17551 esac 17552 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17553 case $lt_search_path_spec in 17554 *\;*) 17555 # if the path contains ";" then we assume it to be the separator 17556 # otherwise default to the standard path separator (i.e. ":") - it is 17557 # assumed that no part of a normal pathname contains ";" but that should 17558 # okay in the real world where ";" in dirpaths is itself problematic. 17559 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17560 ;; 17561 *) 17562 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17563 ;; 17564 esac 17565 # Ok, now we have the path, separated by spaces, we can step through it 17566 # and add multilib dir if necessary. 17567 lt_tmp_lt_search_path_spec= 17568 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17569 for lt_sys_path in $lt_search_path_spec; do 17570 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 17571 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 17572 else 17573 test -d "$lt_sys_path" && \ 17574 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17575 fi 17576 done 17577 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17578BEGIN {RS=" "; FS="/|\n";} { 17579 lt_foo=""; 17580 lt_count=0; 17581 for (lt_i = NF; lt_i > 0; lt_i--) { 17582 if ($lt_i != "" && $lt_i != ".") { 17583 if ($lt_i == "..") { 17584 lt_count++; 17585 } else { 17586 if (lt_count == 0) { 17587 lt_foo="/" $lt_i lt_foo; 17588 } else { 17589 lt_count--; 17590 } 17591 } 17592 } 17593 } 17594 if (lt_foo != "") { lt_freq[lt_foo]++; } 17595 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17596}'` 17597 # AWK program above erroneously prepends '/' to C:/dos/paths 17598 # for these hosts. 17599 case $host_os in 17600 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17601 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 17602 esac 17603 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17604else 17605 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17606fi 17607library_names_spec= 17608libname_spec='lib$name' 17609soname_spec= 17610shrext_cmds=".so" 17611postinstall_cmds= 17612postuninstall_cmds= 17613finish_cmds= 17614finish_eval= 17615shlibpath_var= 17616shlibpath_overrides_runpath=unknown 17617version_type=none 17618dynamic_linker="$host_os ld.so" 17619sys_lib_dlsearch_path_spec="/lib /usr/lib" 17620need_lib_prefix=unknown 17621hardcode_into_libs=no 17622 17623# when you set need_version to no, make sure it does not cause -set_version 17624# flags to be left without arguments 17625need_version=unknown 17626 17627case $host_os in 17628aix3*) 17629 version_type=linux 17630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17631 shlibpath_var=LIBPATH 17632 17633 # AIX 3 has no versioning support, so we append a major version to the name. 17634 soname_spec='${libname}${release}${shared_ext}$major' 17635 ;; 17636 17637aix[4-9]*) 17638 version_type=linux 17639 need_lib_prefix=no 17640 need_version=no 17641 hardcode_into_libs=yes 17642 if test "$host_cpu" = ia64; then 17643 # AIX 5 supports IA64 17644 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17645 shlibpath_var=LD_LIBRARY_PATH 17646 else 17647 # With GCC up to 2.95.x, collect2 would create an import file 17648 # for dependence libraries. The import file would start with 17649 # the line `#! .'. This would cause the generated library to 17650 # depend on `.', always an invalid library. This was fixed in 17651 # development snapshots of GCC prior to 3.0. 17652 case $host_os in 17653 aix4 | aix4.[01] | aix4.[01].*) 17654 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17655 echo ' yes ' 17656 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 17657 : 17658 else 17659 can_build_shared=no 17660 fi 17661 ;; 17662 esac 17663 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17664 # soname into executable. Probably we can add versioning support to 17665 # collect2, so additional links can be useful in future. 17666 if test "$aix_use_runtimelinking" = yes; then 17667 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17668 # instead of lib<name>.a to let people know that these are not 17669 # typical AIX shared libraries. 17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17671 else 17672 # We preserve .a as extension for shared libraries through AIX4.2 17673 # and later when we are not doing run time linking. 17674 library_names_spec='${libname}${release}.a $libname.a' 17675 soname_spec='${libname}${release}${shared_ext}$major' 17676 fi 17677 shlibpath_var=LIBPATH 17678 fi 17679 ;; 17680 17681amigaos*) 17682 case $host_cpu in 17683 powerpc) 17684 # Since July 2007 AmigaOS4 officially supports .so libraries. 17685 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17687 ;; 17688 m68k) 17689 library_names_spec='$libname.ixlibrary $libname.a' 17690 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17691 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' 17692 ;; 17693 esac 17694 ;; 17695 17696beos*) 17697 library_names_spec='${libname}${shared_ext}' 17698 dynamic_linker="$host_os ld.so" 17699 shlibpath_var=LIBRARY_PATH 17700 ;; 17701 17702bsdi[45]*) 17703 version_type=linux 17704 need_version=no 17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17706 soname_spec='${libname}${release}${shared_ext}$major' 17707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17708 shlibpath_var=LD_LIBRARY_PATH 17709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17711 # the default ld.so.conf also contains /usr/contrib/lib and 17712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17713 # libtool to hard-code these into programs 17714 ;; 17715 17716cygwin* | mingw* | pw32* | cegcc*) 17717 version_type=windows 17718 shrext_cmds=".dll" 17719 need_version=no 17720 need_lib_prefix=no 17721 17722 case $GCC,$host_os in 17723 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 17724 library_names_spec='$libname.dll.a' 17725 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17726 postinstall_cmds='base_file=`basename \${file}`~ 17727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17728 dldir=$destdir/`dirname \$dlpath`~ 17729 test -d \$dldir || mkdir -p \$dldir~ 17730 $install_prog $dir/$dlname \$dldir/$dlname~ 17731 chmod a+x \$dldir/$dlname~ 17732 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17733 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17734 fi' 17735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17736 dlpath=$dir/\$dldll~ 17737 $RM \$dlpath' 17738 shlibpath_overrides_runpath=yes 17739 17740 case $host_os in 17741 cygwin*) 17742 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17743 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17744 17745 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17746 ;; 17747 mingw* | cegcc*) 17748 # MinGW DLLs use traditional 'lib' prefix 17749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17750 ;; 17751 pw32*) 17752 # pw32 DLLs use 'pw' prefix rather than 'lib' 17753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17754 ;; 17755 esac 17756 ;; 17757 17758 *) 17759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17760 ;; 17761 esac 17762 dynamic_linker='Win32 ld.exe' 17763 # FIXME: first we should search . and the directory the executable is in 17764 shlibpath_var=PATH 17765 ;; 17766 17767darwin* | rhapsody*) 17768 dynamic_linker="$host_os dyld" 17769 version_type=darwin 17770 need_lib_prefix=no 17771 need_version=no 17772 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17773 soname_spec='${libname}${release}${major}$shared_ext' 17774 shlibpath_overrides_runpath=yes 17775 shlibpath_var=DYLD_LIBRARY_PATH 17776 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17777 17778 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17780 ;; 17781 17782dgux*) 17783 version_type=linux 17784 need_lib_prefix=no 17785 need_version=no 17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17787 soname_spec='${libname}${release}${shared_ext}$major' 17788 shlibpath_var=LD_LIBRARY_PATH 17789 ;; 17790 17791freebsd* | dragonfly*) 17792 # DragonFly does not have aout. When/if they implement a new 17793 # versioning mechanism, adjust this. 17794 if test -x /usr/bin/objformat; then 17795 objformat=`/usr/bin/objformat` 17796 else 17797 case $host_os in 17798 freebsd[23].*) objformat=aout ;; 17799 *) objformat=elf ;; 17800 esac 17801 fi 17802 version_type=freebsd-$objformat 17803 case $version_type in 17804 freebsd-elf*) 17805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17806 need_version=no 17807 need_lib_prefix=no 17808 ;; 17809 freebsd-*) 17810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17811 need_version=yes 17812 ;; 17813 esac 17814 shlibpath_var=LD_LIBRARY_PATH 17815 case $host_os in 17816 freebsd2.*) 17817 shlibpath_overrides_runpath=yes 17818 ;; 17819 freebsd3.[01]* | freebsdelf3.[01]*) 17820 shlibpath_overrides_runpath=yes 17821 hardcode_into_libs=yes 17822 ;; 17823 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17824 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17825 shlibpath_overrides_runpath=no 17826 hardcode_into_libs=yes 17827 ;; 17828 *) # from 4.6 on, and DragonFly 17829 shlibpath_overrides_runpath=yes 17830 hardcode_into_libs=yes 17831 ;; 17832 esac 17833 ;; 17834 17835gnu*) 17836 version_type=linux 17837 need_lib_prefix=no 17838 need_version=no 17839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17840 soname_spec='${libname}${release}${shared_ext}$major' 17841 shlibpath_var=LD_LIBRARY_PATH 17842 hardcode_into_libs=yes 17843 ;; 17844 17845haiku*) 17846 version_type=linux 17847 need_lib_prefix=no 17848 need_version=no 17849 dynamic_linker="$host_os runtime_loader" 17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17851 soname_spec='${libname}${release}${shared_ext}$major' 17852 shlibpath_var=LIBRARY_PATH 17853 shlibpath_overrides_runpath=yes 17854 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 17855 hardcode_into_libs=yes 17856 ;; 17857 17858hpux9* | hpux10* | hpux11*) 17859 # Give a soname corresponding to the major version so that dld.sl refuses to 17860 # link against other versions. 17861 version_type=sunos 17862 need_lib_prefix=no 17863 need_version=no 17864 case $host_cpu in 17865 ia64*) 17866 shrext_cmds='.so' 17867 hardcode_into_libs=yes 17868 dynamic_linker="$host_os dld.so" 17869 shlibpath_var=LD_LIBRARY_PATH 17870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17872 soname_spec='${libname}${release}${shared_ext}$major' 17873 if test "X$HPUX_IA64_MODE" = X32; then 17874 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17875 else 17876 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17877 fi 17878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17879 ;; 17880 hppa*64*) 17881 shrext_cmds='.sl' 17882 hardcode_into_libs=yes 17883 dynamic_linker="$host_os dld.sl" 17884 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17887 soname_spec='${libname}${release}${shared_ext}$major' 17888 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17890 ;; 17891 *) 17892 shrext_cmds='.sl' 17893 dynamic_linker="$host_os dld.sl" 17894 shlibpath_var=SHLIB_PATH 17895 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17897 soname_spec='${libname}${release}${shared_ext}$major' 17898 ;; 17899 esac 17900 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17901 postinstall_cmds='chmod 555 $lib' 17902 # or fails outright, so override atomically: 17903 install_override_mode=555 17904 ;; 17905 17906interix[3-9]*) 17907 version_type=linux 17908 need_lib_prefix=no 17909 need_version=no 17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17911 soname_spec='${libname}${release}${shared_ext}$major' 17912 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17913 shlibpath_var=LD_LIBRARY_PATH 17914 shlibpath_overrides_runpath=no 17915 hardcode_into_libs=yes 17916 ;; 17917 17918irix5* | irix6* | nonstopux*) 17919 case $host_os in 17920 nonstopux*) version_type=nonstopux ;; 17921 *) 17922 if test "$lt_cv_prog_gnu_ld" = yes; then 17923 version_type=linux 17924 else 17925 version_type=irix 17926 fi ;; 17927 esac 17928 need_lib_prefix=no 17929 need_version=no 17930 soname_spec='${libname}${release}${shared_ext}$major' 17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17932 case $host_os in 17933 irix5* | nonstopux*) 17934 libsuff= shlibsuff= 17935 ;; 17936 *) 17937 case $LD in # libtool.m4 will add one of these switches to LD 17938 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17939 libsuff= shlibsuff= libmagic=32-bit;; 17940 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17941 libsuff=32 shlibsuff=N32 libmagic=N32;; 17942 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17943 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17944 *) libsuff= shlibsuff= libmagic=never-match;; 17945 esac 17946 ;; 17947 esac 17948 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17949 shlibpath_overrides_runpath=no 17950 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17951 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17952 hardcode_into_libs=yes 17953 ;; 17954 17955# No shared lib support for Linux oldld, aout, or coff. 17956linux*oldld* | linux*aout* | linux*coff*) 17957 dynamic_linker=no 17958 ;; 17959 17960# This must be Linux ELF. 17961linux* | k*bsd*-gnu | kopensolaris*-gnu) 17962 version_type=linux 17963 need_lib_prefix=no 17964 need_version=no 17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17966 soname_spec='${libname}${release}${shared_ext}$major' 17967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17968 shlibpath_var=LD_LIBRARY_PATH 17969 shlibpath_overrides_runpath=no 17970 17971 # Some binutils ld are patched to set DT_RUNPATH 17972 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17973 $as_echo_n "(cached) " >&6 17974else 17975 lt_cv_shlibpath_overrides_runpath=no 17976 save_LDFLAGS=$LDFLAGS 17977 save_libdir=$libdir 17978 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17979 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17981/* end confdefs.h. */ 17982 17983int 17984main () 17985{ 17986 17987 ; 17988 return 0; 17989} 17990_ACEOF 17991if ac_fn_c_try_link "$LINENO"; then : 17992 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17993 lt_cv_shlibpath_overrides_runpath=yes 17994fi 17995fi 17996rm -f core conftest.err conftest.$ac_objext \ 17997 conftest$ac_exeext conftest.$ac_ext 17998 LDFLAGS=$save_LDFLAGS 17999 libdir=$save_libdir 18000 18001fi 18002 18003 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18004 18005 # This implies no fast_install, which is unacceptable. 18006 # Some rework will be needed to allow for fast_install 18007 # before this can be enabled. 18008 hardcode_into_libs=yes 18009 18010 # Append ld.so.conf contents to the search path 18011 if test -f /etc/ld.so.conf; then 18012 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' ' '` 18013 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18014 fi 18015 18016 # We used to test for /lib/ld.so.1 and disable shared libraries on 18017 # powerpc, because MkLinux only supported shared libraries with the 18018 # GNU dynamic linker. Since this was broken with cross compilers, 18019 # most powerpc-linux boxes support dynamic linking these days and 18020 # people can always --disable-shared, the test was removed, and we 18021 # assume the GNU/Linux dynamic linker is in use. 18022 dynamic_linker='GNU/Linux ld.so' 18023 ;; 18024 18025netbsd*) 18026 version_type=sunos 18027 need_lib_prefix=no 18028 need_version=no 18029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18032 dynamic_linker='NetBSD (a.out) ld.so' 18033 else 18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18035 soname_spec='${libname}${release}${shared_ext}$major' 18036 dynamic_linker='NetBSD ld.elf_so' 18037 fi 18038 shlibpath_var=LD_LIBRARY_PATH 18039 shlibpath_overrides_runpath=yes 18040 hardcode_into_libs=yes 18041 ;; 18042 18043newsos6) 18044 version_type=linux 18045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18046 shlibpath_var=LD_LIBRARY_PATH 18047 shlibpath_overrides_runpath=yes 18048 ;; 18049 18050*nto* | *qnx*) 18051 version_type=qnx 18052 need_lib_prefix=no 18053 need_version=no 18054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18055 soname_spec='${libname}${release}${shared_ext}$major' 18056 shlibpath_var=LD_LIBRARY_PATH 18057 shlibpath_overrides_runpath=no 18058 hardcode_into_libs=yes 18059 dynamic_linker='ldqnx.so' 18060 ;; 18061 18062openbsd*) 18063 version_type=sunos 18064 sys_lib_dlsearch_path_spec="/usr/lib" 18065 need_lib_prefix=no 18066 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18067 case $host_os in 18068 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18069 *) need_version=no ;; 18070 esac 18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18073 shlibpath_var=LD_LIBRARY_PATH 18074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18075 case $host_os in 18076 openbsd2.[89] | openbsd2.[89].*) 18077 shlibpath_overrides_runpath=no 18078 ;; 18079 *) 18080 shlibpath_overrides_runpath=yes 18081 ;; 18082 esac 18083 else 18084 shlibpath_overrides_runpath=yes 18085 fi 18086 ;; 18087 18088os2*) 18089 libname_spec='$name' 18090 shrext_cmds=".dll" 18091 need_lib_prefix=no 18092 library_names_spec='$libname${shared_ext} $libname.a' 18093 dynamic_linker='OS/2 ld.exe' 18094 shlibpath_var=LIBPATH 18095 ;; 18096 18097osf3* | osf4* | osf5*) 18098 version_type=osf 18099 need_lib_prefix=no 18100 need_version=no 18101 soname_spec='${libname}${release}${shared_ext}$major' 18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18103 shlibpath_var=LD_LIBRARY_PATH 18104 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18105 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18106 ;; 18107 18108rdos*) 18109 dynamic_linker=no 18110 ;; 18111 18112solaris*) 18113 version_type=linux 18114 need_lib_prefix=no 18115 need_version=no 18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18117 soname_spec='${libname}${release}${shared_ext}$major' 18118 shlibpath_var=LD_LIBRARY_PATH 18119 shlibpath_overrides_runpath=yes 18120 hardcode_into_libs=yes 18121 # ldd complains unless libraries are executable 18122 postinstall_cmds='chmod +x $lib' 18123 ;; 18124 18125sunos4*) 18126 version_type=sunos 18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18128 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18129 shlibpath_var=LD_LIBRARY_PATH 18130 shlibpath_overrides_runpath=yes 18131 if test "$with_gnu_ld" = yes; then 18132 need_lib_prefix=no 18133 fi 18134 need_version=yes 18135 ;; 18136 18137sysv4 | sysv4.3*) 18138 version_type=linux 18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18140 soname_spec='${libname}${release}${shared_ext}$major' 18141 shlibpath_var=LD_LIBRARY_PATH 18142 case $host_vendor in 18143 sni) 18144 shlibpath_overrides_runpath=no 18145 need_lib_prefix=no 18146 runpath_var=LD_RUN_PATH 18147 ;; 18148 siemens) 18149 need_lib_prefix=no 18150 ;; 18151 motorola) 18152 need_lib_prefix=no 18153 need_version=no 18154 shlibpath_overrides_runpath=no 18155 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18156 ;; 18157 esac 18158 ;; 18159 18160sysv4*MP*) 18161 if test -d /usr/nec ;then 18162 version_type=linux 18163 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18164 soname_spec='$libname${shared_ext}.$major' 18165 shlibpath_var=LD_LIBRARY_PATH 18166 fi 18167 ;; 18168 18169sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18170 version_type=freebsd-elf 18171 need_lib_prefix=no 18172 need_version=no 18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18174 soname_spec='${libname}${release}${shared_ext}$major' 18175 shlibpath_var=LD_LIBRARY_PATH 18176 shlibpath_overrides_runpath=yes 18177 hardcode_into_libs=yes 18178 if test "$with_gnu_ld" = yes; then 18179 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18180 else 18181 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18182 case $host_os in 18183 sco3.2v5*) 18184 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18185 ;; 18186 esac 18187 fi 18188 sys_lib_dlsearch_path_spec='/usr/lib' 18189 ;; 18190 18191tpf*) 18192 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18193 version_type=linux 18194 need_lib_prefix=no 18195 need_version=no 18196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18197 shlibpath_var=LD_LIBRARY_PATH 18198 shlibpath_overrides_runpath=no 18199 hardcode_into_libs=yes 18200 ;; 18201 18202uts4*) 18203 version_type=linux 18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18205 soname_spec='${libname}${release}${shared_ext}$major' 18206 shlibpath_var=LD_LIBRARY_PATH 18207 ;; 18208 18209*) 18210 dynamic_linker=no 18211 ;; 18212esac 18213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18214$as_echo "$dynamic_linker" >&6; } 18215test "$dynamic_linker" = no && can_build_shared=no 18216 18217variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18218if test "$GCC" = yes; then 18219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18220fi 18221 18222if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18223 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18224fi 18225if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18226 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18227fi 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18321$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18322hardcode_action= 18323if test -n "$hardcode_libdir_flag_spec" || 18324 test -n "$runpath_var" || 18325 test "X$hardcode_automatic" = "Xyes" ; then 18326 18327 # We can hardcode non-existent directories. 18328 if test "$hardcode_direct" != no && 18329 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18330 # have to relink, otherwise we might link with an installed library 18331 # when we should be linking with a yet-to-be-installed one 18332 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 18333 test "$hardcode_minus_L" != no; then 18334 # Linking always hardcodes the temporary library directory. 18335 hardcode_action=relink 18336 else 18337 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18338 hardcode_action=immediate 18339 fi 18340else 18341 # We cannot hardcode anything, or else we can only hardcode existing 18342 # directories. 18343 hardcode_action=unsupported 18344fi 18345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18346$as_echo "$hardcode_action" >&6; } 18347 18348if test "$hardcode_action" = relink || 18349 test "$inherit_rpath" = yes; then 18350 # Fast installation is not supported 18351 enable_fast_install=no 18352elif test "$shlibpath_overrides_runpath" = yes || 18353 test "$enable_shared" = no; then 18354 # Fast installation is not necessary 18355 enable_fast_install=needless 18356fi 18357 18358 18359 18360 18361 18362 18363 if test "x$enable_dlopen" != xyes; then 18364 enable_dlopen=unknown 18365 enable_dlopen_self=unknown 18366 enable_dlopen_self_static=unknown 18367else 18368 lt_cv_dlopen=no 18369 lt_cv_dlopen_libs= 18370 18371 case $host_os in 18372 beos*) 18373 lt_cv_dlopen="load_add_on" 18374 lt_cv_dlopen_libs= 18375 lt_cv_dlopen_self=yes 18376 ;; 18377 18378 mingw* | pw32* | cegcc*) 18379 lt_cv_dlopen="LoadLibrary" 18380 lt_cv_dlopen_libs= 18381 ;; 18382 18383 cygwin*) 18384 lt_cv_dlopen="dlopen" 18385 lt_cv_dlopen_libs= 18386 ;; 18387 18388 darwin*) 18389 # if libdl is installed we need to link against it 18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18391$as_echo_n "checking for dlopen in -ldl... " >&6; } 18392if ${ac_cv_lib_dl_dlopen+:} false; then : 18393 $as_echo_n "(cached) " >&6 18394else 18395 ac_check_lib_save_LIBS=$LIBS 18396LIBS="-ldl $LIBS" 18397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18398/* end confdefs.h. */ 18399 18400/* Override any GCC internal prototype to avoid an error. 18401 Use char because int might match the return type of a GCC 18402 builtin and then its argument prototype would still apply. */ 18403#ifdef __cplusplus 18404extern "C" 18405#endif 18406char dlopen (); 18407int 18408main () 18409{ 18410return dlopen (); 18411 ; 18412 return 0; 18413} 18414_ACEOF 18415if ac_fn_c_try_link "$LINENO"; then : 18416 ac_cv_lib_dl_dlopen=yes 18417else 18418 ac_cv_lib_dl_dlopen=no 18419fi 18420rm -f core conftest.err conftest.$ac_objext \ 18421 conftest$ac_exeext conftest.$ac_ext 18422LIBS=$ac_check_lib_save_LIBS 18423fi 18424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18425$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18426if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18427 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18428else 18429 18430 lt_cv_dlopen="dyld" 18431 lt_cv_dlopen_libs= 18432 lt_cv_dlopen_self=yes 18433 18434fi 18435 18436 ;; 18437 18438 *) 18439 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18440if test "x$ac_cv_func_shl_load" = xyes; then : 18441 lt_cv_dlopen="shl_load" 18442else 18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18444$as_echo_n "checking for shl_load in -ldld... " >&6; } 18445if ${ac_cv_lib_dld_shl_load+:} false; then : 18446 $as_echo_n "(cached) " >&6 18447else 18448 ac_check_lib_save_LIBS=$LIBS 18449LIBS="-ldld $LIBS" 18450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18451/* end confdefs.h. */ 18452 18453/* Override any GCC internal prototype to avoid an error. 18454 Use char because int might match the return type of a GCC 18455 builtin and then its argument prototype would still apply. */ 18456#ifdef __cplusplus 18457extern "C" 18458#endif 18459char shl_load (); 18460int 18461main () 18462{ 18463return shl_load (); 18464 ; 18465 return 0; 18466} 18467_ACEOF 18468if ac_fn_c_try_link "$LINENO"; then : 18469 ac_cv_lib_dld_shl_load=yes 18470else 18471 ac_cv_lib_dld_shl_load=no 18472fi 18473rm -f core conftest.err conftest.$ac_objext \ 18474 conftest$ac_exeext conftest.$ac_ext 18475LIBS=$ac_check_lib_save_LIBS 18476fi 18477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18478$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18479if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18480 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 18481else 18482 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18483if test "x$ac_cv_func_dlopen" = xyes; then : 18484 lt_cv_dlopen="dlopen" 18485else 18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18487$as_echo_n "checking for dlopen in -ldl... " >&6; } 18488if ${ac_cv_lib_dl_dlopen+:} false; then : 18489 $as_echo_n "(cached) " >&6 18490else 18491 ac_check_lib_save_LIBS=$LIBS 18492LIBS="-ldl $LIBS" 18493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18494/* end confdefs.h. */ 18495 18496/* Override any GCC internal prototype to avoid an error. 18497 Use char because int might match the return type of a GCC 18498 builtin and then its argument prototype would still apply. */ 18499#ifdef __cplusplus 18500extern "C" 18501#endif 18502char dlopen (); 18503int 18504main () 18505{ 18506return dlopen (); 18507 ; 18508 return 0; 18509} 18510_ACEOF 18511if ac_fn_c_try_link "$LINENO"; then : 18512 ac_cv_lib_dl_dlopen=yes 18513else 18514 ac_cv_lib_dl_dlopen=no 18515fi 18516rm -f core conftest.err conftest.$ac_objext \ 18517 conftest$ac_exeext conftest.$ac_ext 18518LIBS=$ac_check_lib_save_LIBS 18519fi 18520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18521$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18522if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18524else 18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18526$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18527if ${ac_cv_lib_svld_dlopen+:} false; then : 18528 $as_echo_n "(cached) " >&6 18529else 18530 ac_check_lib_save_LIBS=$LIBS 18531LIBS="-lsvld $LIBS" 18532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18533/* end confdefs.h. */ 18534 18535/* Override any GCC internal prototype to avoid an error. 18536 Use char because int might match the return type of a GCC 18537 builtin and then its argument prototype would still apply. */ 18538#ifdef __cplusplus 18539extern "C" 18540#endif 18541char dlopen (); 18542int 18543main () 18544{ 18545return dlopen (); 18546 ; 18547 return 0; 18548} 18549_ACEOF 18550if ac_fn_c_try_link "$LINENO"; then : 18551 ac_cv_lib_svld_dlopen=yes 18552else 18553 ac_cv_lib_svld_dlopen=no 18554fi 18555rm -f core conftest.err conftest.$ac_objext \ 18556 conftest$ac_exeext conftest.$ac_ext 18557LIBS=$ac_check_lib_save_LIBS 18558fi 18559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18560$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18561if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18563else 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18565$as_echo_n "checking for dld_link in -ldld... " >&6; } 18566if ${ac_cv_lib_dld_dld_link+:} false; then : 18567 $as_echo_n "(cached) " >&6 18568else 18569 ac_check_lib_save_LIBS=$LIBS 18570LIBS="-ldld $LIBS" 18571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18572/* end confdefs.h. */ 18573 18574/* Override any GCC internal prototype to avoid an error. 18575 Use char because int might match the return type of a GCC 18576 builtin and then its argument prototype would still apply. */ 18577#ifdef __cplusplus 18578extern "C" 18579#endif 18580char dld_link (); 18581int 18582main () 18583{ 18584return dld_link (); 18585 ; 18586 return 0; 18587} 18588_ACEOF 18589if ac_fn_c_try_link "$LINENO"; then : 18590 ac_cv_lib_dld_dld_link=yes 18591else 18592 ac_cv_lib_dld_dld_link=no 18593fi 18594rm -f core conftest.err conftest.$ac_objext \ 18595 conftest$ac_exeext conftest.$ac_ext 18596LIBS=$ac_check_lib_save_LIBS 18597fi 18598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18599$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18600if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18601 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 18602fi 18603 18604 18605fi 18606 18607 18608fi 18609 18610 18611fi 18612 18613 18614fi 18615 18616 18617fi 18618 18619 ;; 18620 esac 18621 18622 if test "x$lt_cv_dlopen" != xno; then 18623 enable_dlopen=yes 18624 else 18625 enable_dlopen=no 18626 fi 18627 18628 case $lt_cv_dlopen in 18629 dlopen) 18630 save_CPPFLAGS="$CPPFLAGS" 18631 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18632 18633 save_LDFLAGS="$LDFLAGS" 18634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18635 18636 save_LIBS="$LIBS" 18637 LIBS="$lt_cv_dlopen_libs $LIBS" 18638 18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18640$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18641if ${lt_cv_dlopen_self+:} false; then : 18642 $as_echo_n "(cached) " >&6 18643else 18644 if test "$cross_compiling" = yes; then : 18645 lt_cv_dlopen_self=cross 18646else 18647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18648 lt_status=$lt_dlunknown 18649 cat > conftest.$ac_ext <<_LT_EOF 18650#line 18650 "configure" 18651#include "confdefs.h" 18652 18653#if HAVE_DLFCN_H 18654#include <dlfcn.h> 18655#endif 18656 18657#include <stdio.h> 18658 18659#ifdef RTLD_GLOBAL 18660# define LT_DLGLOBAL RTLD_GLOBAL 18661#else 18662# ifdef DL_GLOBAL 18663# define LT_DLGLOBAL DL_GLOBAL 18664# else 18665# define LT_DLGLOBAL 0 18666# endif 18667#endif 18668 18669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18670 find out it does not work in some platform. */ 18671#ifndef LT_DLLAZY_OR_NOW 18672# ifdef RTLD_LAZY 18673# define LT_DLLAZY_OR_NOW RTLD_LAZY 18674# else 18675# ifdef DL_LAZY 18676# define LT_DLLAZY_OR_NOW DL_LAZY 18677# else 18678# ifdef RTLD_NOW 18679# define LT_DLLAZY_OR_NOW RTLD_NOW 18680# else 18681# ifdef DL_NOW 18682# define LT_DLLAZY_OR_NOW DL_NOW 18683# else 18684# define LT_DLLAZY_OR_NOW 0 18685# endif 18686# endif 18687# endif 18688# endif 18689#endif 18690 18691/* When -fvisbility=hidden is used, assume the code has been annotated 18692 correspondingly for the symbols needed. */ 18693#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18694void fnord () __attribute__((visibility("default"))); 18695#endif 18696 18697void fnord () { int i=42; } 18698int main () 18699{ 18700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18701 int status = $lt_dlunknown; 18702 18703 if (self) 18704 { 18705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18706 else 18707 { 18708 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18709 else puts (dlerror ()); 18710 } 18711 /* dlclose (self); */ 18712 } 18713 else 18714 puts (dlerror ()); 18715 18716 return status; 18717} 18718_LT_EOF 18719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18720 (eval $ac_link) 2>&5 18721 ac_status=$? 18722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18723 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18724 (./conftest; exit; ) >&5 2>/dev/null 18725 lt_status=$? 18726 case x$lt_status in 18727 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18728 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18729 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18730 esac 18731 else : 18732 # compilation failed 18733 lt_cv_dlopen_self=no 18734 fi 18735fi 18736rm -fr conftest* 18737 18738 18739fi 18740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18741$as_echo "$lt_cv_dlopen_self" >&6; } 18742 18743 if test "x$lt_cv_dlopen_self" = xyes; then 18744 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18746$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18747if ${lt_cv_dlopen_self_static+:} false; then : 18748 $as_echo_n "(cached) " >&6 18749else 18750 if test "$cross_compiling" = yes; then : 18751 lt_cv_dlopen_self_static=cross 18752else 18753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18754 lt_status=$lt_dlunknown 18755 cat > conftest.$ac_ext <<_LT_EOF 18756#line 18756 "configure" 18757#include "confdefs.h" 18758 18759#if HAVE_DLFCN_H 18760#include <dlfcn.h> 18761#endif 18762 18763#include <stdio.h> 18764 18765#ifdef RTLD_GLOBAL 18766# define LT_DLGLOBAL RTLD_GLOBAL 18767#else 18768# ifdef DL_GLOBAL 18769# define LT_DLGLOBAL DL_GLOBAL 18770# else 18771# define LT_DLGLOBAL 0 18772# endif 18773#endif 18774 18775/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18776 find out it does not work in some platform. */ 18777#ifndef LT_DLLAZY_OR_NOW 18778# ifdef RTLD_LAZY 18779# define LT_DLLAZY_OR_NOW RTLD_LAZY 18780# else 18781# ifdef DL_LAZY 18782# define LT_DLLAZY_OR_NOW DL_LAZY 18783# else 18784# ifdef RTLD_NOW 18785# define LT_DLLAZY_OR_NOW RTLD_NOW 18786# else 18787# ifdef DL_NOW 18788# define LT_DLLAZY_OR_NOW DL_NOW 18789# else 18790# define LT_DLLAZY_OR_NOW 0 18791# endif 18792# endif 18793# endif 18794# endif 18795#endif 18796 18797/* When -fvisbility=hidden is used, assume the code has been annotated 18798 correspondingly for the symbols needed. */ 18799#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18800void fnord () __attribute__((visibility("default"))); 18801#endif 18802 18803void fnord () { int i=42; } 18804int main () 18805{ 18806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18807 int status = $lt_dlunknown; 18808 18809 if (self) 18810 { 18811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18812 else 18813 { 18814 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18815 else puts (dlerror ()); 18816 } 18817 /* dlclose (self); */ 18818 } 18819 else 18820 puts (dlerror ()); 18821 18822 return status; 18823} 18824_LT_EOF 18825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18826 (eval $ac_link) 2>&5 18827 ac_status=$? 18828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18829 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18830 (./conftest; exit; ) >&5 2>/dev/null 18831 lt_status=$? 18832 case x$lt_status in 18833 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18834 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18835 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18836 esac 18837 else : 18838 # compilation failed 18839 lt_cv_dlopen_self_static=no 18840 fi 18841fi 18842rm -fr conftest* 18843 18844 18845fi 18846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18847$as_echo "$lt_cv_dlopen_self_static" >&6; } 18848 fi 18849 18850 CPPFLAGS="$save_CPPFLAGS" 18851 LDFLAGS="$save_LDFLAGS" 18852 LIBS="$save_LIBS" 18853 ;; 18854 esac 18855 18856 case $lt_cv_dlopen_self in 18857 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18858 *) enable_dlopen_self=unknown ;; 18859 esac 18860 18861 case $lt_cv_dlopen_self_static in 18862 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18863 *) enable_dlopen_self_static=unknown ;; 18864 esac 18865fi 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883striplib= 18884old_striplib= 18885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18886$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18887if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18888 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18889 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18891$as_echo "yes" >&6; } 18892else 18893# FIXME - insert some real tests, host_os isn't really good enough 18894 case $host_os in 18895 darwin*) 18896 if test -n "$STRIP" ; then 18897 striplib="$STRIP -x" 18898 old_striplib="$STRIP -S" 18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18900$as_echo "yes" >&6; } 18901 else 18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18903$as_echo "no" >&6; } 18904 fi 18905 ;; 18906 *) 18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18908$as_echo "no" >&6; } 18909 ;; 18910 esac 18911fi 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 # Report which library types will actually be built 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18926$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18928$as_echo "$can_build_shared" >&6; } 18929 18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18931$as_echo_n "checking whether to build shared libraries... " >&6; } 18932 test "$can_build_shared" = "no" && enable_shared=no 18933 18934 # On AIX, shared libraries and static libraries use the same namespace, and 18935 # are all built from PIC. 18936 case $host_os in 18937 aix3*) 18938 test "$enable_shared" = yes && enable_static=no 18939 if test -n "$RANLIB"; then 18940 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18941 postinstall_cmds='$RANLIB $lib' 18942 fi 18943 ;; 18944 18945 aix[4-9]*) 18946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 18947 test "$enable_shared" = yes && enable_static=no 18948 fi 18949 ;; 18950 esac 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18952$as_echo "$enable_shared" >&6; } 18953 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18955$as_echo_n "checking whether to build static libraries... " >&6; } 18956 # Make sure either enable_shared or enable_static is yes. 18957 test "$enable_shared" = yes || enable_static=yes 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18959$as_echo "$enable_static" >&6; } 18960 18961 18962 18963 18964fi 18965ac_ext=cpp 18966ac_cpp='$CXXCPP $CPPFLAGS' 18967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18970 18971CC="$lt_save_CC" 18972 18973 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 18974 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 18975 (test "X$CXX" != "Xg++"))) ; then 18976 ac_ext=cpp 18977ac_cpp='$CXXCPP $CPPFLAGS' 18978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 18982$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 18983if test -z "$CXXCPP"; then 18984 if ${ac_cv_prog_CXXCPP+:} false; then : 18985 $as_echo_n "(cached) " >&6 18986else 18987 # Double quotes because CXXCPP needs to be expanded 18988 for CXXCPP in "$CXX -E" "/lib/cpp" 18989 do 18990 ac_preproc_ok=false 18991for ac_cxx_preproc_warn_flag in '' yes 18992do 18993 # Use a header file that comes with gcc, so configuring glibc 18994 # with a fresh cross-compiler works. 18995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18996 # <limits.h> exists even on freestanding compilers. 18997 # On the NeXT, cc -E runs the code through the compiler's parser, 18998 # not just through cpp. "Syntax error" is here to catch this case. 18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19000/* end confdefs.h. */ 19001#ifdef __STDC__ 19002# include <limits.h> 19003#else 19004# include <assert.h> 19005#endif 19006 Syntax error 19007_ACEOF 19008if ac_fn_cxx_try_cpp "$LINENO"; then : 19009 19010else 19011 # Broken: fails on valid input. 19012continue 19013fi 19014rm -f conftest.err conftest.i conftest.$ac_ext 19015 19016 # OK, works on sane cases. Now check whether nonexistent headers 19017 # can be detected and how. 19018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19019/* end confdefs.h. */ 19020#include <ac_nonexistent.h> 19021_ACEOF 19022if ac_fn_cxx_try_cpp "$LINENO"; then : 19023 # Broken: success on invalid input. 19024continue 19025else 19026 # Passes both tests. 19027ac_preproc_ok=: 19028break 19029fi 19030rm -f conftest.err conftest.i conftest.$ac_ext 19031 19032done 19033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19034rm -f conftest.i conftest.err conftest.$ac_ext 19035if $ac_preproc_ok; then : 19036 break 19037fi 19038 19039 done 19040 ac_cv_prog_CXXCPP=$CXXCPP 19041 19042fi 19043 CXXCPP=$ac_cv_prog_CXXCPP 19044else 19045 ac_cv_prog_CXXCPP=$CXXCPP 19046fi 19047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 19048$as_echo "$CXXCPP" >&6; } 19049ac_preproc_ok=false 19050for ac_cxx_preproc_warn_flag in '' yes 19051do 19052 # Use a header file that comes with gcc, so configuring glibc 19053 # with a fresh cross-compiler works. 19054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19055 # <limits.h> exists even on freestanding compilers. 19056 # On the NeXT, cc -E runs the code through the compiler's parser, 19057 # not just through cpp. "Syntax error" is here to catch this case. 19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19059/* end confdefs.h. */ 19060#ifdef __STDC__ 19061# include <limits.h> 19062#else 19063# include <assert.h> 19064#endif 19065 Syntax error 19066_ACEOF 19067if ac_fn_cxx_try_cpp "$LINENO"; then : 19068 19069else 19070 # Broken: fails on valid input. 19071continue 19072fi 19073rm -f conftest.err conftest.i conftest.$ac_ext 19074 19075 # OK, works on sane cases. Now check whether nonexistent headers 19076 # can be detected and how. 19077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19078/* end confdefs.h. */ 19079#include <ac_nonexistent.h> 19080_ACEOF 19081if ac_fn_cxx_try_cpp "$LINENO"; then : 19082 # Broken: success on invalid input. 19083continue 19084else 19085 # Passes both tests. 19086ac_preproc_ok=: 19087break 19088fi 19089rm -f conftest.err conftest.i conftest.$ac_ext 19090 19091done 19092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19093rm -f conftest.i conftest.err conftest.$ac_ext 19094if $ac_preproc_ok; then : 19095 19096else 19097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19099as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 19100See \`config.log' for more details" "$LINENO" 5; } 19101fi 19102 19103ac_ext=cpp 19104ac_cpp='$CXXCPP $CPPFLAGS' 19105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19108 19109else 19110 _lt_caught_CXX_error=yes 19111fi 19112 19113ac_ext=cpp 19114ac_cpp='$CXXCPP $CPPFLAGS' 19115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19118 19119archive_cmds_need_lc_CXX=no 19120allow_undefined_flag_CXX= 19121always_export_symbols_CXX=no 19122archive_expsym_cmds_CXX= 19123compiler_needs_object_CXX=no 19124export_dynamic_flag_spec_CXX= 19125hardcode_direct_CXX=no 19126hardcode_direct_absolute_CXX=no 19127hardcode_libdir_flag_spec_CXX= 19128hardcode_libdir_flag_spec_ld_CXX= 19129hardcode_libdir_separator_CXX= 19130hardcode_minus_L_CXX=no 19131hardcode_shlibpath_var_CXX=unsupported 19132hardcode_automatic_CXX=no 19133inherit_rpath_CXX=no 19134module_cmds_CXX= 19135module_expsym_cmds_CXX= 19136link_all_deplibs_CXX=unknown 19137old_archive_cmds_CXX=$old_archive_cmds 19138reload_flag_CXX=$reload_flag 19139reload_cmds_CXX=$reload_cmds 19140no_undefined_flag_CXX= 19141whole_archive_flag_spec_CXX= 19142enable_shared_with_static_runtimes_CXX=no 19143 19144# Source file extension for C++ test sources. 19145ac_ext=cpp 19146 19147# Object file extension for compiled C++ test sources. 19148objext=o 19149objext_CXX=$objext 19150 19151# No sense in running all these tests if we already determined that 19152# the CXX compiler isn't working. Some variables (like enable_shared) 19153# are currently assumed to apply to all compilers on this platform, 19154# and will be corrupted by setting them based on a non-working compiler. 19155if test "$_lt_caught_CXX_error" != yes; then 19156 # Code to be used in simple compile tests 19157 lt_simple_compile_test_code="int some_variable = 0;" 19158 19159 # Code to be used in simple link tests 19160 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 19161 19162 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19163 19164 19165 19166 19167 19168 19169# If no C compiler was specified, use CC. 19170LTCC=${LTCC-"$CC"} 19171 19172# If no C compiler flags were specified, use CFLAGS. 19173LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19174 19175# Allow CC to be a program name with arguments. 19176compiler=$CC 19177 19178 19179 # save warnings/boilerplate of simple test code 19180 ac_outfile=conftest.$ac_objext 19181echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19182eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19183_lt_compiler_boilerplate=`cat conftest.err` 19184$RM conftest* 19185 19186 ac_outfile=conftest.$ac_objext 19187echo "$lt_simple_link_test_code" >conftest.$ac_ext 19188eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19189_lt_linker_boilerplate=`cat conftest.err` 19190$RM -r conftest* 19191 19192 19193 # Allow CC to be a program name with arguments. 19194 lt_save_CC=$CC 19195 lt_save_LD=$LD 19196 lt_save_GCC=$GCC 19197 GCC=$GXX 19198 lt_save_with_gnu_ld=$with_gnu_ld 19199 lt_save_path_LD=$lt_cv_path_LD 19200 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 19201 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 19202 else 19203 $as_unset lt_cv_prog_gnu_ld 19204 fi 19205 if test -n "${lt_cv_path_LDCXX+set}"; then 19206 lt_cv_path_LD=$lt_cv_path_LDCXX 19207 else 19208 $as_unset lt_cv_path_LD 19209 fi 19210 test -z "${LDCXX+set}" || LD=$LDCXX 19211 CC=${CXX-"c++"} 19212 compiler=$CC 19213 compiler_CXX=$CC 19214 for cc_temp in $compiler""; do 19215 case $cc_temp in 19216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19218 \-*) ;; 19219 *) break;; 19220 esac 19221done 19222cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19223 19224 19225 if test -n "$compiler"; then 19226 # We don't want -fno-exception when compiling C++ code, so set the 19227 # no_builtin_flag separately 19228 if test "$GXX" = yes; then 19229 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 19230 else 19231 lt_prog_compiler_no_builtin_flag_CXX= 19232 fi 19233 19234 if test "$GXX" = yes; then 19235 # Set up default GNU C++ configuration 19236 19237 19238 19239# Check whether --with-gnu-ld was given. 19240if test "${with_gnu_ld+set}" = set; then : 19241 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 19242else 19243 with_gnu_ld=no 19244fi 19245 19246ac_prog=ld 19247if test "$GCC" = yes; then 19248 # Check if gcc -print-prog-name=ld gives a path. 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 19250$as_echo_n "checking for ld used by $CC... " >&6; } 19251 case $host in 19252 *-*-mingw*) 19253 # gcc leaves a trailing carriage return which upsets mingw 19254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19255 *) 19256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19257 esac 19258 case $ac_prog in 19259 # Accept absolute paths. 19260 [\\/]* | ?:[\\/]*) 19261 re_direlt='/[^/][^/]*/\.\./' 19262 # Canonicalize the pathname of ld 19263 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 19264 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 19265 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 19266 done 19267 test -z "$LD" && LD="$ac_prog" 19268 ;; 19269 "") 19270 # If it fails, then pretend we aren't using GCC. 19271 ac_prog=ld 19272 ;; 19273 *) 19274 # If it is relative, then search for the first ld in PATH. 19275 with_gnu_ld=unknown 19276 ;; 19277 esac 19278elif test "$with_gnu_ld" = yes; then 19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 19280$as_echo_n "checking for GNU ld... " >&6; } 19281else 19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 19283$as_echo_n "checking for non-GNU ld... " >&6; } 19284fi 19285if ${lt_cv_path_LD+:} false; then : 19286 $as_echo_n "(cached) " >&6 19287else 19288 if test -z "$LD"; then 19289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 19290 for ac_dir in $PATH; do 19291 IFS="$lt_save_ifs" 19292 test -z "$ac_dir" && ac_dir=. 19293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19294 lt_cv_path_LD="$ac_dir/$ac_prog" 19295 # Check to see if the program is GNU ld. I'd rather use --version, 19296 # but apparently some variants of GNU ld only accept -v. 19297 # Break only if it was the GNU/non-GNU ld that we prefer. 19298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 19299 *GNU* | *'with BFD'*) 19300 test "$with_gnu_ld" != no && break 19301 ;; 19302 *) 19303 test "$with_gnu_ld" != yes && break 19304 ;; 19305 esac 19306 fi 19307 done 19308 IFS="$lt_save_ifs" 19309else 19310 lt_cv_path_LD="$LD" # Let the user override the test with a path. 19311fi 19312fi 19313 19314LD="$lt_cv_path_LD" 19315if test -n "$LD"; then 19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 19317$as_echo "$LD" >&6; } 19318else 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19320$as_echo "no" >&6; } 19321fi 19322test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 19323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 19324$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 19325if ${lt_cv_prog_gnu_ld+:} false; then : 19326 $as_echo_n "(cached) " >&6 19327else 19328 # I'd rather use --version here, but apparently some GNU lds only accept -v. 19329case `$LD -v 2>&1 </dev/null` in 19330*GNU* | *'with BFD'*) 19331 lt_cv_prog_gnu_ld=yes 19332 ;; 19333*) 19334 lt_cv_prog_gnu_ld=no 19335 ;; 19336esac 19337fi 19338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 19339$as_echo "$lt_cv_prog_gnu_ld" >&6; } 19340with_gnu_ld=$lt_cv_prog_gnu_ld 19341 19342 19343 19344 19345 19346 19347 19348 # Check if GNU C++ uses GNU ld as the underlying linker, since the 19349 # archiving commands below assume that GNU ld is being used. 19350 if test "$with_gnu_ld" = yes; then 19351 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19352 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' 19353 19354 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19355 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19356 19357 # If archive_cmds runs LD, not CC, wlarc should be empty 19358 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 19359 # investigate it a little bit more. (MM) 19360 wlarc='${wl}' 19361 19362 # ancient GNU ld didn't support --whole-archive et. al. 19363 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 19364 $GREP 'no-whole-archive' > /dev/null; then 19365 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19366 else 19367 whole_archive_flag_spec_CXX= 19368 fi 19369 else 19370 with_gnu_ld=no 19371 wlarc= 19372 19373 # A generic and very simple default shared library creation 19374 # command for GNU C++ for the case where it uses the native 19375 # linker, instead of GNU ld. If possible, this setting should 19376 # overridden to take advantage of the native linker features on 19377 # the platform it is being used on. 19378 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19379 fi 19380 19381 # Commands to make compiler produce verbose output that lists 19382 # what "hidden" libraries, object files and flags are used when 19383 # linking a shared library. 19384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 19385 19386 else 19387 GXX=no 19388 with_gnu_ld=no 19389 wlarc= 19390 fi 19391 19392 # PORTME: fill in a description of your system's C++ link characteristics 19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19394$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19395 ld_shlibs_CXX=yes 19396 case $host_os in 19397 aix3*) 19398 # FIXME: insert proper C++ library support 19399 ld_shlibs_CXX=no 19400 ;; 19401 aix[4-9]*) 19402 if test "$host_cpu" = ia64; then 19403 # On IA64, the linker does run time linking by default, so we don't 19404 # have to do anything special. 19405 aix_use_runtimelinking=no 19406 exp_sym_flag='-Bexport' 19407 no_entry_flag="" 19408 else 19409 aix_use_runtimelinking=no 19410 19411 # Test if we are trying to use run time linking or normal 19412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19413 # need to do runtime linking. 19414 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19415 for ld_flag in $LDFLAGS; do 19416 case $ld_flag in 19417 *-brtl*) 19418 aix_use_runtimelinking=yes 19419 break 19420 ;; 19421 esac 19422 done 19423 ;; 19424 esac 19425 19426 exp_sym_flag='-bexport' 19427 no_entry_flag='-bnoentry' 19428 fi 19429 19430 # When large executables or shared objects are built, AIX ld can 19431 # have problems creating the table of contents. If linking a library 19432 # or program results in "error TOC overflow" add -mminimal-toc to 19433 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19434 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19435 19436 archive_cmds_CXX='' 19437 hardcode_direct_CXX=yes 19438 hardcode_direct_absolute_CXX=yes 19439 hardcode_libdir_separator_CXX=':' 19440 link_all_deplibs_CXX=yes 19441 file_list_spec_CXX='${wl}-f,' 19442 19443 if test "$GXX" = yes; then 19444 case $host_os in aix4.[012]|aix4.[012].*) 19445 # We only want to do this on AIX 4.2 and lower, the check 19446 # below for broken collect2 doesn't work under 4.3+ 19447 collect2name=`${CC} -print-prog-name=collect2` 19448 if test -f "$collect2name" && 19449 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19450 then 19451 # We have reworked collect2 19452 : 19453 else 19454 # We have old collect2 19455 hardcode_direct_CXX=unsupported 19456 # It fails to find uninstalled libraries when the uninstalled 19457 # path is not listed in the libpath. Setting hardcode_minus_L 19458 # to unsupported forces relinking 19459 hardcode_minus_L_CXX=yes 19460 hardcode_libdir_flag_spec_CXX='-L$libdir' 19461 hardcode_libdir_separator_CXX= 19462 fi 19463 esac 19464 shared_flag='-shared' 19465 if test "$aix_use_runtimelinking" = yes; then 19466 shared_flag="$shared_flag "'${wl}-G' 19467 fi 19468 else 19469 # not using gcc 19470 if test "$host_cpu" = ia64; then 19471 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19472 # chokes on -Wl,-G. The following line is correct: 19473 shared_flag='-G' 19474 else 19475 if test "$aix_use_runtimelinking" = yes; then 19476 shared_flag='${wl}-G' 19477 else 19478 shared_flag='${wl}-bM:SRE' 19479 fi 19480 fi 19481 fi 19482 19483 export_dynamic_flag_spec_CXX='${wl}-bexpall' 19484 # It seems that -bexpall does not export symbols beginning with 19485 # underscore (_), so it is better to generate a list of symbols to 19486 # export. 19487 always_export_symbols_CXX=yes 19488 if test "$aix_use_runtimelinking" = yes; then 19489 # Warning - without using the other runtime loading flags (-brtl), 19490 # -berok will link without error, but may produce a broken library. 19491 allow_undefined_flag_CXX='-berok' 19492 # Determine the default libpath from the value encoded in an empty 19493 # executable. 19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19495/* end confdefs.h. */ 19496 19497int 19498main () 19499{ 19500 19501 ; 19502 return 0; 19503} 19504_ACEOF 19505if ac_fn_cxx_try_link "$LINENO"; then : 19506 19507lt_aix_libpath_sed=' 19508 /Import File Strings/,/^$/ { 19509 /^0/ { 19510 s/^0 *\(.*\)$/\1/ 19511 p 19512 } 19513 }' 19514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19515# Check for a 64-bit object if we didn't find anything. 19516if test -z "$aix_libpath"; then 19517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19518fi 19519fi 19520rm -f core conftest.err conftest.$ac_objext \ 19521 conftest$ac_exeext conftest.$ac_ext 19522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19523 19524 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 19525 19526 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" 19527 else 19528 if test "$host_cpu" = ia64; then 19529 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 19530 allow_undefined_flag_CXX="-z nodefs" 19531 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" 19532 else 19533 # Determine the default libpath from the value encoded in an 19534 # empty executable. 19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19536/* end confdefs.h. */ 19537 19538int 19539main () 19540{ 19541 19542 ; 19543 return 0; 19544} 19545_ACEOF 19546if ac_fn_cxx_try_link "$LINENO"; then : 19547 19548lt_aix_libpath_sed=' 19549 /Import File Strings/,/^$/ { 19550 /^0/ { 19551 s/^0 *\(.*\)$/\1/ 19552 p 19553 } 19554 }' 19555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19556# Check for a 64-bit object if we didn't find anything. 19557if test -z "$aix_libpath"; then 19558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19559fi 19560fi 19561rm -f core conftest.err conftest.$ac_objext \ 19562 conftest$ac_exeext conftest.$ac_ext 19563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19564 19565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 19566 # Warning - without using the other run time loading flags, 19567 # -berok will link without error, but may produce a broken library. 19568 no_undefined_flag_CXX=' ${wl}-bernotok' 19569 allow_undefined_flag_CXX=' ${wl}-berok' 19570 if test "$with_gnu_ld" = yes; then 19571 # We only use this code for GNU lds that support --whole-archive. 19572 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 19573 else 19574 # Exported symbols can be pulled into shared objects from archives 19575 whole_archive_flag_spec_CXX='$convenience' 19576 fi 19577 archive_cmds_need_lc_CXX=yes 19578 # This is similar to how AIX traditionally builds its shared 19579 # libraries. 19580 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' 19581 fi 19582 fi 19583 ;; 19584 19585 beos*) 19586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19587 allow_undefined_flag_CXX=unsupported 19588 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19589 # support --undefined. This deserves some investigation. FIXME 19590 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19591 else 19592 ld_shlibs_CXX=no 19593 fi 19594 ;; 19595 19596 chorus*) 19597 case $cc_basename in 19598 *) 19599 # FIXME: insert proper C++ library support 19600 ld_shlibs_CXX=no 19601 ;; 19602 esac 19603 ;; 19604 19605 cygwin* | mingw* | pw32* | cegcc*) 19606 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 19607 # as there is no search path for DLLs. 19608 hardcode_libdir_flag_spec_CXX='-L$libdir' 19609 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 19610 allow_undefined_flag_CXX=unsupported 19611 always_export_symbols_CXX=no 19612 enable_shared_with_static_runtimes_CXX=yes 19613 19614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19615 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' 19616 # If the export-symbols file already is a .def file (1st line 19617 # is EXPORTS), use it as is; otherwise, prepend... 19618 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19619 cp $export_symbols $output_objdir/$soname.def; 19620 else 19621 echo EXPORTS > $output_objdir/$soname.def; 19622 cat $export_symbols >> $output_objdir/$soname.def; 19623 fi~ 19624 $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' 19625 else 19626 ld_shlibs_CXX=no 19627 fi 19628 ;; 19629 darwin* | rhapsody*) 19630 19631 19632 archive_cmds_need_lc_CXX=no 19633 hardcode_direct_CXX=no 19634 hardcode_automatic_CXX=yes 19635 hardcode_shlibpath_var_CXX=unsupported 19636 if test "$lt_cv_ld_force_load" = "yes"; then 19637 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\"`' 19638 else 19639 whole_archive_flag_spec_CXX='' 19640 fi 19641 link_all_deplibs_CXX=yes 19642 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 19643 case $cc_basename in 19644 ifort*) _lt_dar_can_shared=yes ;; 19645 *) _lt_dar_can_shared=$GCC ;; 19646 esac 19647 if test "$_lt_dar_can_shared" = "yes"; then 19648 output_verbose_link_cmd=func_echo_all 19649 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}" 19650 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 19651 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}" 19652 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}" 19653 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 19654 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}" 19655 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}" 19656 fi 19657 19658 else 19659 ld_shlibs_CXX=no 19660 fi 19661 19662 ;; 19663 19664 dgux*) 19665 case $cc_basename in 19666 ec++*) 19667 # FIXME: insert proper C++ library support 19668 ld_shlibs_CXX=no 19669 ;; 19670 ghcx*) 19671 # Green Hills C++ Compiler 19672 # FIXME: insert proper C++ library support 19673 ld_shlibs_CXX=no 19674 ;; 19675 *) 19676 # FIXME: insert proper C++ library support 19677 ld_shlibs_CXX=no 19678 ;; 19679 esac 19680 ;; 19681 19682 freebsd2.*) 19683 # C++ shared libraries reported to be fairly broken before 19684 # switch to ELF 19685 ld_shlibs_CXX=no 19686 ;; 19687 19688 freebsd-elf*) 19689 archive_cmds_need_lc_CXX=no 19690 ;; 19691 19692 freebsd* | dragonfly*) 19693 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 19694 # conventions 19695 ld_shlibs_CXX=yes 19696 ;; 19697 19698 gnu*) 19699 ;; 19700 19701 haiku*) 19702 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19703 link_all_deplibs_CXX=yes 19704 ;; 19705 19706 hpux9*) 19707 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 19708 hardcode_libdir_separator_CXX=: 19709 export_dynamic_flag_spec_CXX='${wl}-E' 19710 hardcode_direct_CXX=yes 19711 hardcode_minus_L_CXX=yes # Not in the search PATH, 19712 # but as the default 19713 # location of the library. 19714 19715 case $cc_basename in 19716 CC*) 19717 # FIXME: insert proper C++ library support 19718 ld_shlibs_CXX=no 19719 ;; 19720 aCC*) 19721 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' 19722 # Commands to make compiler produce verbose output that lists 19723 # what "hidden" libraries, object files and flags are used when 19724 # linking a shared library. 19725 # 19726 # There doesn't appear to be a way to prevent this compiler from 19727 # explicitly linking system object files so we need to strip them 19728 # from the output so that they don't get included in the library 19729 # dependencies. 19730 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"' 19731 ;; 19732 *) 19733 if test "$GXX" = yes; then 19734 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' 19735 else 19736 # FIXME: insert proper C++ library support 19737 ld_shlibs_CXX=no 19738 fi 19739 ;; 19740 esac 19741 ;; 19742 19743 hpux10*|hpux11*) 19744 if test $with_gnu_ld = no; then 19745 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 19746 hardcode_libdir_separator_CXX=: 19747 19748 case $host_cpu in 19749 hppa*64*|ia64*) 19750 ;; 19751 *) 19752 export_dynamic_flag_spec_CXX='${wl}-E' 19753 ;; 19754 esac 19755 fi 19756 case $host_cpu in 19757 hppa*64*|ia64*) 19758 hardcode_direct_CXX=no 19759 hardcode_shlibpath_var_CXX=no 19760 ;; 19761 *) 19762 hardcode_direct_CXX=yes 19763 hardcode_direct_absolute_CXX=yes 19764 hardcode_minus_L_CXX=yes # Not in the search PATH, 19765 # but as the default 19766 # location of the library. 19767 ;; 19768 esac 19769 19770 case $cc_basename in 19771 CC*) 19772 # FIXME: insert proper C++ library support 19773 ld_shlibs_CXX=no 19774 ;; 19775 aCC*) 19776 case $host_cpu in 19777 hppa*64*) 19778 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19779 ;; 19780 ia64*) 19781 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19782 ;; 19783 *) 19784 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19785 ;; 19786 esac 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 # 19791 # There doesn't appear to be a way to prevent this compiler from 19792 # explicitly linking system object files so we need to strip them 19793 # from the output so that they don't get included in the library 19794 # dependencies. 19795 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"' 19796 ;; 19797 *) 19798 if test "$GXX" = yes; then 19799 if test $with_gnu_ld = no; then 19800 case $host_cpu in 19801 hppa*64*) 19802 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19803 ;; 19804 ia64*) 19805 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19806 ;; 19807 *) 19808 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' 19809 ;; 19810 esac 19811 fi 19812 else 19813 # FIXME: insert proper C++ library support 19814 ld_shlibs_CXX=no 19815 fi 19816 ;; 19817 esac 19818 ;; 19819 19820 interix[3-9]*) 19821 hardcode_direct_CXX=no 19822 hardcode_shlibpath_var_CXX=no 19823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19824 export_dynamic_flag_spec_CXX='${wl}-E' 19825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19826 # Instead, shared libraries are loaded at an image base (0x10000000 by 19827 # default) and relocated if they conflict, which is a slow very memory 19828 # consuming and fragmenting process. To avoid this, we pick a random, 19829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19830 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19831 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' 19832 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' 19833 ;; 19834 irix5* | irix6*) 19835 case $cc_basename in 19836 CC*) 19837 # SGI C++ 19838 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' 19839 19840 # Archives containing C++ object files must be created using 19841 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 19842 # necessary to make sure instantiated templates are included 19843 # in the archive. 19844 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 19845 ;; 19846 *) 19847 if test "$GXX" = yes; then 19848 if test "$with_gnu_ld" = no; then 19849 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' 19850 else 19851 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' 19852 fi 19853 fi 19854 link_all_deplibs_CXX=yes 19855 ;; 19856 esac 19857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19858 hardcode_libdir_separator_CXX=: 19859 inherit_rpath_CXX=yes 19860 ;; 19861 19862 linux* | k*bsd*-gnu | kopensolaris*-gnu) 19863 case $cc_basename in 19864 KCC*) 19865 # Kuck and Associates, Inc. (KAI) C++ Compiler 19866 19867 # KCC will only create a shared library if the output file 19868 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19869 # to its proper name (with version) after linking. 19870 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' 19871 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' 19872 # Commands to make compiler produce verbose output that lists 19873 # what "hidden" libraries, object files and flags are used when 19874 # linking a shared library. 19875 # 19876 # There doesn't appear to be a way to prevent this compiler from 19877 # explicitly linking system object files so we need to strip them 19878 # from the output so that they don't get included in the library 19879 # dependencies. 19880 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"' 19881 19882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19883 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19884 19885 # Archives containing C++ object files must be created using 19886 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 19887 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 19888 ;; 19889 icpc* | ecpc* ) 19890 # Intel C++ 19891 with_gnu_ld=yes 19892 # version 8.0 and above of icpc choke on multiply defined symbols 19893 # if we add $predep_objects and $postdep_objects, however 7.1 and 19894 # earlier do not add the objects themselves. 19895 case `$CC -V 2>&1` in 19896 *"Version 7."*) 19897 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19898 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' 19899 ;; 19900 *) # Version 8.0 or newer 19901 tmp_idyn= 19902 case $host_cpu in 19903 ia64*) tmp_idyn=' -i_dynamic';; 19904 esac 19905 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19906 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' 19907 ;; 19908 esac 19909 archive_cmds_need_lc_CXX=no 19910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19911 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19912 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 19913 ;; 19914 pgCC* | pgcpp*) 19915 # Portland Group C++ compiler 19916 case `$CC -V` in 19917 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 19918 prelink_cmds_CXX='tpldir=Template.dir~ 19919 rm -rf $tpldir~ 19920 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 19921 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 19922 old_archive_cmds_CXX='tpldir=Template.dir~ 19923 rm -rf $tpldir~ 19924 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 19925 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 19926 $RANLIB $oldlib' 19927 archive_cmds_CXX='tpldir=Template.dir~ 19928 rm -rf $tpldir~ 19929 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19930 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 19931 archive_expsym_cmds_CXX='tpldir=Template.dir~ 19932 rm -rf $tpldir~ 19933 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19934 $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' 19935 ;; 19936 *) # Version 6 and above use weak symbols 19937 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 19938 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' 19939 ;; 19940 esac 19941 19942 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 19943 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19944 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' 19945 ;; 19946 cxx*) 19947 # Compaq C++ 19948 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19949 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' 19950 19951 runpath_var=LD_RUN_PATH 19952 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19953 hardcode_libdir_separator_CXX=: 19954 19955 # Commands to make compiler produce verbose output that lists 19956 # what "hidden" libraries, object files and flags are used when 19957 # linking a shared library. 19958 # 19959 # There doesn't appear to be a way to prevent this compiler from 19960 # explicitly linking system object files so we need to strip them 19961 # from the output so that they don't get included in the library 19962 # dependencies. 19963 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' 19964 ;; 19965 xl* | mpixl* | bgxl*) 19966 # IBM XL 8.0 on PPC, with GNU ld 19967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19968 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19969 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19970 if test "x$supports_anon_versioning" = xyes; then 19971 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 19972 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19973 echo "local: *; };" >> $output_objdir/$libname.ver~ 19974 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 19975 fi 19976 ;; 19977 *) 19978 case `$CC -V 2>&1 | sed 5q` in 19979 *Sun\ C*) 19980 # Sun C++ 5.9 19981 no_undefined_flag_CXX=' -zdefs' 19982 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19983 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' 19984 hardcode_libdir_flag_spec_CXX='-R$libdir' 19985 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' 19986 compiler_needs_object_CXX=yes 19987 19988 # Not sure whether something based on 19989 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 19990 # would be better. 19991 output_verbose_link_cmd='func_echo_all' 19992 19993 # Archives containing C++ object files must be created using 19994 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19995 # necessary to make sure instantiated templates are included 19996 # in the archive. 19997 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19998 ;; 19999 esac 20000 ;; 20001 esac 20002 ;; 20003 20004 lynxos*) 20005 # FIXME: insert proper C++ library support 20006 ld_shlibs_CXX=no 20007 ;; 20008 20009 m88k*) 20010 # FIXME: insert proper C++ library support 20011 ld_shlibs_CXX=no 20012 ;; 20013 20014 mvs*) 20015 case $cc_basename in 20016 cxx*) 20017 # FIXME: insert proper C++ library support 20018 ld_shlibs_CXX=no 20019 ;; 20020 *) 20021 # FIXME: insert proper C++ library support 20022 ld_shlibs_CXX=no 20023 ;; 20024 esac 20025 ;; 20026 20027 netbsd*) 20028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20029 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 20030 wlarc= 20031 hardcode_libdir_flag_spec_CXX='-R$libdir' 20032 hardcode_direct_CXX=yes 20033 hardcode_shlibpath_var_CXX=no 20034 fi 20035 # Workaround some broken pre-1.5 toolchains 20036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 20037 ;; 20038 20039 *nto* | *qnx*) 20040 ld_shlibs_CXX=yes 20041 ;; 20042 20043 openbsd2*) 20044 # C++ shared libraries are fairly broken 20045 ld_shlibs_CXX=no 20046 ;; 20047 20048 openbsd*) 20049 if test -f /usr/libexec/ld.so; then 20050 hardcode_direct_CXX=yes 20051 hardcode_shlibpath_var_CXX=no 20052 hardcode_direct_absolute_CXX=yes 20053 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20056 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 20057 export_dynamic_flag_spec_CXX='${wl}-E' 20058 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 20059 fi 20060 output_verbose_link_cmd=func_echo_all 20061 else 20062 ld_shlibs_CXX=no 20063 fi 20064 ;; 20065 20066 osf3* | osf4* | osf5*) 20067 case $cc_basename in 20068 KCC*) 20069 # Kuck and Associates, Inc. (KAI) C++ Compiler 20070 20071 # KCC will only create a shared library if the output file 20072 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20073 # to its proper name (with version) after linking. 20074 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' 20075 20076 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20077 hardcode_libdir_separator_CXX=: 20078 20079 # Archives containing C++ object files must be created using 20080 # the KAI C++ compiler. 20081 case $host in 20082 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 20083 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 20084 esac 20085 ;; 20086 RCC*) 20087 # Rational C++ 2.4.1 20088 # FIXME: insert proper C++ library support 20089 ld_shlibs_CXX=no 20090 ;; 20091 cxx*) 20092 case $host in 20093 osf3*) 20094 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 20095 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' 20096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20097 ;; 20098 *) 20099 allow_undefined_flag_CXX=' -expect_unresolved \*' 20100 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' 20101 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 20102 echo "-hidden">> $lib.exp~ 20103 $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~ 20104 $RM $lib.exp' 20105 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20106 ;; 20107 esac 20108 20109 hardcode_libdir_separator_CXX=: 20110 20111 # Commands to make compiler produce verbose output that lists 20112 # what "hidden" libraries, object files and flags are used when 20113 # linking a shared library. 20114 # 20115 # There doesn't appear to be a way to prevent this compiler from 20116 # explicitly linking system object files so we need to strip them 20117 # from the output so that they don't get included in the library 20118 # dependencies. 20119 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"' 20120 ;; 20121 *) 20122 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 20123 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 20124 case $host in 20125 osf3*) 20126 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' 20127 ;; 20128 *) 20129 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' 20130 ;; 20131 esac 20132 20133 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20134 hardcode_libdir_separator_CXX=: 20135 20136 # Commands to make compiler produce verbose output that lists 20137 # what "hidden" libraries, object files and flags are used when 20138 # linking a shared library. 20139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20140 20141 else 20142 # FIXME: insert proper C++ library support 20143 ld_shlibs_CXX=no 20144 fi 20145 ;; 20146 esac 20147 ;; 20148 20149 psos*) 20150 # FIXME: insert proper C++ library support 20151 ld_shlibs_CXX=no 20152 ;; 20153 20154 sunos4*) 20155 case $cc_basename in 20156 CC*) 20157 # Sun C++ 4.x 20158 # FIXME: insert proper C++ library support 20159 ld_shlibs_CXX=no 20160 ;; 20161 lcc*) 20162 # Lucid 20163 # FIXME: insert proper C++ library support 20164 ld_shlibs_CXX=no 20165 ;; 20166 *) 20167 # FIXME: insert proper C++ library support 20168 ld_shlibs_CXX=no 20169 ;; 20170 esac 20171 ;; 20172 20173 solaris*) 20174 case $cc_basename in 20175 CC*) 20176 # Sun C++ 4.2, 5.x and Centerline C++ 20177 archive_cmds_need_lc_CXX=yes 20178 no_undefined_flag_CXX=' -zdefs' 20179 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20180 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20181 $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' 20182 20183 hardcode_libdir_flag_spec_CXX='-R$libdir' 20184 hardcode_shlibpath_var_CXX=no 20185 case $host_os in 20186 solaris2.[0-5] | solaris2.[0-5].*) ;; 20187 *) 20188 # The compiler driver will combine and reorder linker options, 20189 # but understands `-z linker_flag'. 20190 # Supported since Solaris 2.6 (maybe 2.5.1?) 20191 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 20192 ;; 20193 esac 20194 link_all_deplibs_CXX=yes 20195 20196 output_verbose_link_cmd='func_echo_all' 20197 20198 # Archives containing C++ object files must be created using 20199 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20200 # necessary to make sure instantiated templates are included 20201 # in the archive. 20202 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20203 ;; 20204 gcx*) 20205 # Green Hills C++ Compiler 20206 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20207 20208 # The C++ compiler must be used to create the archive. 20209 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 20210 ;; 20211 *) 20212 # GNU C++ compiler with Solaris linker 20213 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 20214 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 20215 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 20216 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20217 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20218 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20219 20220 # Commands to make compiler produce verbose output that lists 20221 # what "hidden" libraries, object files and flags are used when 20222 # linking a shared library. 20223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20224 else 20225 # g++ 2.7 appears to require `-G' NOT `-shared' on this 20226 # platform. 20227 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20228 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20229 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20230 20231 # Commands to make compiler produce verbose output that lists 20232 # what "hidden" libraries, object files and flags are used when 20233 # linking a shared library. 20234 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20235 fi 20236 20237 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 20238 case $host_os in 20239 solaris2.[0-5] | solaris2.[0-5].*) ;; 20240 *) 20241 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 20242 ;; 20243 esac 20244 fi 20245 ;; 20246 esac 20247 ;; 20248 20249 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20250 no_undefined_flag_CXX='${wl}-z,text' 20251 archive_cmds_need_lc_CXX=no 20252 hardcode_shlibpath_var_CXX=no 20253 runpath_var='LD_RUN_PATH' 20254 20255 case $cc_basename in 20256 CC*) 20257 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20258 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20259 ;; 20260 *) 20261 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20262 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20263 ;; 20264 esac 20265 ;; 20266 20267 sysv5* | sco3.2v5* | sco5v6*) 20268 # Note: We can NOT use -z defs as we might desire, because we do not 20269 # link with -lc, and that would cause any symbols used from libc to 20270 # always be unresolved, which means just about no library would 20271 # ever link correctly. If we're not using GNU ld we use -z text 20272 # though, which does catch some bad symbols but isn't as heavy-handed 20273 # as -z defs. 20274 no_undefined_flag_CXX='${wl}-z,text' 20275 allow_undefined_flag_CXX='${wl}-z,nodefs' 20276 archive_cmds_need_lc_CXX=no 20277 hardcode_shlibpath_var_CXX=no 20278 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 20279 hardcode_libdir_separator_CXX=':' 20280 link_all_deplibs_CXX=yes 20281 export_dynamic_flag_spec_CXX='${wl}-Bexport' 20282 runpath_var='LD_RUN_PATH' 20283 20284 case $cc_basename in 20285 CC*) 20286 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20287 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20288 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 20289 '"$old_archive_cmds_CXX" 20290 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 20291 '"$reload_cmds_CXX" 20292 ;; 20293 *) 20294 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20295 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20296 ;; 20297 esac 20298 ;; 20299 20300 tandem*) 20301 case $cc_basename in 20302 NCC*) 20303 # NonStop-UX NCC 3.20 20304 # FIXME: insert proper C++ library support 20305 ld_shlibs_CXX=no 20306 ;; 20307 *) 20308 # FIXME: insert proper C++ library support 20309 ld_shlibs_CXX=no 20310 ;; 20311 esac 20312 ;; 20313 20314 vxworks*) 20315 # FIXME: insert proper C++ library support 20316 ld_shlibs_CXX=no 20317 ;; 20318 20319 *) 20320 # FIXME: insert proper C++ library support 20321 ld_shlibs_CXX=no 20322 ;; 20323 esac 20324 20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 20326$as_echo "$ld_shlibs_CXX" >&6; } 20327 test "$ld_shlibs_CXX" = no && can_build_shared=no 20328 20329 GCC_CXX="$GXX" 20330 LD_CXX="$LD" 20331 20332 ## CAVEAT EMPTOR: 20333 ## There is no encapsulation within the following macros, do not change 20334 ## the running order or otherwise move them around unless you know exactly 20335 ## what you are doing... 20336 # Dependencies to place before and after the object being linked: 20337predep_objects_CXX= 20338postdep_objects_CXX= 20339predeps_CXX= 20340postdeps_CXX= 20341compiler_lib_search_path_CXX= 20342 20343cat > conftest.$ac_ext <<_LT_EOF 20344class Foo 20345{ 20346public: 20347 Foo (void) { a = 0; } 20348private: 20349 int a; 20350}; 20351_LT_EOF 20352 20353if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20354 (eval $ac_compile) 2>&5 20355 ac_status=$? 20356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20357 test $ac_status = 0; }; then 20358 # Parse the compiler output and extract the necessary 20359 # objects, libraries and library flags. 20360 20361 # Sentinel used to keep track of whether or not we are before 20362 # the conftest object file. 20363 pre_test_object_deps_done=no 20364 20365 for p in `eval "$output_verbose_link_cmd"`; do 20366 case $p in 20367 20368 -L* | -R* | -l*) 20369 # Some compilers place space between "-{L,R}" and the path. 20370 # Remove the space. 20371 if test $p = "-L" || 20372 test $p = "-R"; then 20373 prev=$p 20374 continue 20375 else 20376 prev= 20377 fi 20378 20379 if test "$pre_test_object_deps_done" = no; then 20380 case $p in 20381 -L* | -R*) 20382 # Internal compiler library paths should come after those 20383 # provided the user. The postdeps already come after the 20384 # user supplied libs so there is no need to process them. 20385 if test -z "$compiler_lib_search_path_CXX"; then 20386 compiler_lib_search_path_CXX="${prev}${p}" 20387 else 20388 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 20389 fi 20390 ;; 20391 # The "-l" case would never come before the object being 20392 # linked, so don't bother handling this case. 20393 esac 20394 else 20395 if test -z "$postdeps_CXX"; then 20396 postdeps_CXX="${prev}${p}" 20397 else 20398 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 20399 fi 20400 fi 20401 ;; 20402 20403 *.$objext) 20404 # This assumes that the test object file only shows up 20405 # once in the compiler output. 20406 if test "$p" = "conftest.$objext"; then 20407 pre_test_object_deps_done=yes 20408 continue 20409 fi 20410 20411 if test "$pre_test_object_deps_done" = no; then 20412 if test -z "$predep_objects_CXX"; then 20413 predep_objects_CXX="$p" 20414 else 20415 predep_objects_CXX="$predep_objects_CXX $p" 20416 fi 20417 else 20418 if test -z "$postdep_objects_CXX"; then 20419 postdep_objects_CXX="$p" 20420 else 20421 postdep_objects_CXX="$postdep_objects_CXX $p" 20422 fi 20423 fi 20424 ;; 20425 20426 *) ;; # Ignore the rest. 20427 20428 esac 20429 done 20430 20431 # Clean up. 20432 rm -f a.out a.exe 20433else 20434 echo "libtool.m4: error: problem compiling CXX test program" 20435fi 20436 20437$RM -f confest.$objext 20438 20439# PORTME: override above test on systems where it is broken 20440case $host_os in 20441interix[3-9]*) 20442 # Interix 3.5 installs completely hosed .la files for C++, so rather than 20443 # hack all around it, let's just trust "g++" to DTRT. 20444 predep_objects_CXX= 20445 postdep_objects_CXX= 20446 postdeps_CXX= 20447 ;; 20448 20449linux*) 20450 case `$CC -V 2>&1 | sed 5q` in 20451 *Sun\ C*) 20452 # Sun C++ 5.9 20453 20454 # The more standards-conforming stlport4 library is 20455 # incompatible with the Cstd library. Avoid specifying 20456 # it if it's in CXXFLAGS. Ignore libCrun as 20457 # -library=stlport4 depends on it. 20458 case " $CXX $CXXFLAGS " in 20459 *" -library=stlport4 "*) 20460 solaris_use_stlport4=yes 20461 ;; 20462 esac 20463 20464 if test "$solaris_use_stlport4" != yes; then 20465 postdeps_CXX='-library=Cstd -library=Crun' 20466 fi 20467 ;; 20468 esac 20469 ;; 20470 20471solaris*) 20472 case $cc_basename in 20473 CC*) 20474 # The more standards-conforming stlport4 library is 20475 # incompatible with the Cstd library. Avoid specifying 20476 # it if it's in CXXFLAGS. Ignore libCrun as 20477 # -library=stlport4 depends on it. 20478 case " $CXX $CXXFLAGS " in 20479 *" -library=stlport4 "*) 20480 solaris_use_stlport4=yes 20481 ;; 20482 esac 20483 20484 # Adding this requires a known-good setup of shared libraries for 20485 # Sun compiler versions before 5.6, else PIC objects from an old 20486 # archive will be linked into the output, leading to subtle bugs. 20487 if test "$solaris_use_stlport4" != yes; then 20488 postdeps_CXX='-library=Cstd -library=Crun' 20489 fi 20490 ;; 20491 esac 20492 ;; 20493esac 20494 20495 20496case " $postdeps_CXX " in 20497*" -lc "*) archive_cmds_need_lc_CXX=no ;; 20498esac 20499 compiler_lib_search_dirs_CXX= 20500if test -n "${compiler_lib_search_path_CXX}"; then 20501 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 20502fi 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 lt_prog_compiler_wl_CXX= 20535lt_prog_compiler_pic_CXX= 20536lt_prog_compiler_static_CXX= 20537 20538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 20539$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 20540 20541 # C++ specific cases for pic, static, wl, etc. 20542 if test "$GXX" = yes; then 20543 lt_prog_compiler_wl_CXX='-Wl,' 20544 lt_prog_compiler_static_CXX='-static' 20545 20546 case $host_os in 20547 aix*) 20548 # All AIX code is PIC. 20549 if test "$host_cpu" = ia64; then 20550 # AIX 5 now supports IA64 processor 20551 lt_prog_compiler_static_CXX='-Bstatic' 20552 fi 20553 lt_prog_compiler_pic_CXX='-fPIC' 20554 ;; 20555 20556 amigaos*) 20557 case $host_cpu in 20558 powerpc) 20559 # see comment about AmigaOS4 .so support 20560 lt_prog_compiler_pic_CXX='-fPIC' 20561 ;; 20562 m68k) 20563 # FIXME: we need at least 68020 code to build shared libraries, but 20564 # adding the `-m68020' flag to GCC prevents building anything better, 20565 # like `-m68040'. 20566 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 20567 ;; 20568 esac 20569 ;; 20570 20571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 20572 # PIC is the default for these OSes. 20573 ;; 20574 mingw* | cygwin* | os2* | pw32* | cegcc*) 20575 # This hack is so that the source file can tell whether it is being 20576 # built for inclusion in a dll (and should export symbols for example). 20577 # Although the cygwin gcc ignores -fPIC, still need this for old-style 20578 # (--disable-auto-import) libraries 20579 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20580 ;; 20581 darwin* | rhapsody*) 20582 # PIC is the default on this platform 20583 # Common symbols not allowed in MH_DYLIB files 20584 lt_prog_compiler_pic_CXX='-fno-common' 20585 ;; 20586 *djgpp*) 20587 # DJGPP does not support shared libraries at all 20588 lt_prog_compiler_pic_CXX= 20589 ;; 20590 haiku*) 20591 # PIC is the default for Haiku. 20592 # The "-static" flag exists, but is broken. 20593 lt_prog_compiler_static_CXX= 20594 ;; 20595 interix[3-9]*) 20596 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 20597 # Instead, we relocate shared libraries at runtime. 20598 ;; 20599 sysv4*MP*) 20600 if test -d /usr/nec; then 20601 lt_prog_compiler_pic_CXX=-Kconform_pic 20602 fi 20603 ;; 20604 hpux*) 20605 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 20606 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 20607 # sets the default TLS model and affects inlining. 20608 case $host_cpu in 20609 hppa*64*) 20610 ;; 20611 *) 20612 lt_prog_compiler_pic_CXX='-fPIC' 20613 ;; 20614 esac 20615 ;; 20616 *qnx* | *nto*) 20617 # QNX uses GNU C++, but need to define -shared option too, otherwise 20618 # it will coredump. 20619 lt_prog_compiler_pic_CXX='-fPIC -shared' 20620 ;; 20621 *) 20622 lt_prog_compiler_pic_CXX='-fPIC' 20623 ;; 20624 esac 20625 else 20626 case $host_os in 20627 aix[4-9]*) 20628 # All AIX code is PIC. 20629 if test "$host_cpu" = ia64; then 20630 # AIX 5 now supports IA64 processor 20631 lt_prog_compiler_static_CXX='-Bstatic' 20632 else 20633 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 20634 fi 20635 ;; 20636 chorus*) 20637 case $cc_basename in 20638 cxch68*) 20639 # Green Hills C++ Compiler 20640 # _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" 20641 ;; 20642 esac 20643 ;; 20644 dgux*) 20645 case $cc_basename in 20646 ec++*) 20647 lt_prog_compiler_pic_CXX='-KPIC' 20648 ;; 20649 ghcx*) 20650 # Green Hills C++ Compiler 20651 lt_prog_compiler_pic_CXX='-pic' 20652 ;; 20653 *) 20654 ;; 20655 esac 20656 ;; 20657 freebsd* | dragonfly*) 20658 # FreeBSD uses GNU C++ 20659 ;; 20660 hpux9* | hpux10* | hpux11*) 20661 case $cc_basename in 20662 CC*) 20663 lt_prog_compiler_wl_CXX='-Wl,' 20664 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 20665 if test "$host_cpu" != ia64; then 20666 lt_prog_compiler_pic_CXX='+Z' 20667 fi 20668 ;; 20669 aCC*) 20670 lt_prog_compiler_wl_CXX='-Wl,' 20671 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 20672 case $host_cpu in 20673 hppa*64*|ia64*) 20674 # +Z the default 20675 ;; 20676 *) 20677 lt_prog_compiler_pic_CXX='+Z' 20678 ;; 20679 esac 20680 ;; 20681 *) 20682 ;; 20683 esac 20684 ;; 20685 interix*) 20686 # This is c89, which is MS Visual C++ (no shared libs) 20687 # Anyone wants to do a port? 20688 ;; 20689 irix5* | irix6* | nonstopux*) 20690 case $cc_basename in 20691 CC*) 20692 lt_prog_compiler_wl_CXX='-Wl,' 20693 lt_prog_compiler_static_CXX='-non_shared' 20694 # CC pic flag -KPIC is the default. 20695 ;; 20696 *) 20697 ;; 20698 esac 20699 ;; 20700 linux* | k*bsd*-gnu | kopensolaris*-gnu) 20701 case $cc_basename in 20702 KCC*) 20703 # KAI C++ Compiler 20704 lt_prog_compiler_wl_CXX='--backend -Wl,' 20705 lt_prog_compiler_pic_CXX='-fPIC' 20706 ;; 20707 ecpc* ) 20708 # old Intel C++ for x86_64 which still supported -KPIC. 20709 lt_prog_compiler_wl_CXX='-Wl,' 20710 lt_prog_compiler_pic_CXX='-KPIC' 20711 lt_prog_compiler_static_CXX='-static' 20712 ;; 20713 icpc* ) 20714 # Intel C++, used to be incompatible with GCC. 20715 # ICC 10 doesn't accept -KPIC any more. 20716 lt_prog_compiler_wl_CXX='-Wl,' 20717 lt_prog_compiler_pic_CXX='-fPIC' 20718 lt_prog_compiler_static_CXX='-static' 20719 ;; 20720 pgCC* | pgcpp*) 20721 # Portland Group C++ compiler 20722 lt_prog_compiler_wl_CXX='-Wl,' 20723 lt_prog_compiler_pic_CXX='-fpic' 20724 lt_prog_compiler_static_CXX='-Bstatic' 20725 ;; 20726 cxx*) 20727 # Compaq C++ 20728 # Make sure the PIC flag is empty. It appears that all Alpha 20729 # Linux and Compaq Tru64 Unix objects are PIC. 20730 lt_prog_compiler_pic_CXX= 20731 lt_prog_compiler_static_CXX='-non_shared' 20732 ;; 20733 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 20734 # IBM XL 8.0, 9.0 on PPC and BlueGene 20735 lt_prog_compiler_wl_CXX='-Wl,' 20736 lt_prog_compiler_pic_CXX='-qpic' 20737 lt_prog_compiler_static_CXX='-qstaticlink' 20738 ;; 20739 *) 20740 case `$CC -V 2>&1 | sed 5q` in 20741 *Sun\ C*) 20742 # Sun C++ 5.9 20743 lt_prog_compiler_pic_CXX='-KPIC' 20744 lt_prog_compiler_static_CXX='-Bstatic' 20745 lt_prog_compiler_wl_CXX='-Qoption ld ' 20746 ;; 20747 esac 20748 ;; 20749 esac 20750 ;; 20751 lynxos*) 20752 ;; 20753 m88k*) 20754 ;; 20755 mvs*) 20756 case $cc_basename in 20757 cxx*) 20758 lt_prog_compiler_pic_CXX='-W c,exportall' 20759 ;; 20760 *) 20761 ;; 20762 esac 20763 ;; 20764 netbsd*) 20765 ;; 20766 *qnx* | *nto*) 20767 # QNX uses GNU C++, but need to define -shared option too, otherwise 20768 # it will coredump. 20769 lt_prog_compiler_pic_CXX='-fPIC -shared' 20770 ;; 20771 osf3* | osf4* | osf5*) 20772 case $cc_basename in 20773 KCC*) 20774 lt_prog_compiler_wl_CXX='--backend -Wl,' 20775 ;; 20776 RCC*) 20777 # Rational C++ 2.4.1 20778 lt_prog_compiler_pic_CXX='-pic' 20779 ;; 20780 cxx*) 20781 # Digital/Compaq C++ 20782 lt_prog_compiler_wl_CXX='-Wl,' 20783 # Make sure the PIC flag is empty. It appears that all Alpha 20784 # Linux and Compaq Tru64 Unix objects are PIC. 20785 lt_prog_compiler_pic_CXX= 20786 lt_prog_compiler_static_CXX='-non_shared' 20787 ;; 20788 *) 20789 ;; 20790 esac 20791 ;; 20792 psos*) 20793 ;; 20794 solaris*) 20795 case $cc_basename in 20796 CC*) 20797 # Sun C++ 4.2, 5.x and Centerline C++ 20798 lt_prog_compiler_pic_CXX='-KPIC' 20799 lt_prog_compiler_static_CXX='-Bstatic' 20800 lt_prog_compiler_wl_CXX='-Qoption ld ' 20801 ;; 20802 gcx*) 20803 # Green Hills C++ Compiler 20804 lt_prog_compiler_pic_CXX='-PIC' 20805 ;; 20806 *) 20807 ;; 20808 esac 20809 ;; 20810 sunos4*) 20811 case $cc_basename in 20812 CC*) 20813 # Sun C++ 4.x 20814 lt_prog_compiler_pic_CXX='-pic' 20815 lt_prog_compiler_static_CXX='-Bstatic' 20816 ;; 20817 lcc*) 20818 # Lucid 20819 lt_prog_compiler_pic_CXX='-pic' 20820 ;; 20821 *) 20822 ;; 20823 esac 20824 ;; 20825 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 20826 case $cc_basename in 20827 CC*) 20828 lt_prog_compiler_wl_CXX='-Wl,' 20829 lt_prog_compiler_pic_CXX='-KPIC' 20830 lt_prog_compiler_static_CXX='-Bstatic' 20831 ;; 20832 esac 20833 ;; 20834 tandem*) 20835 case $cc_basename in 20836 NCC*) 20837 # NonStop-UX NCC 3.20 20838 lt_prog_compiler_pic_CXX='-KPIC' 20839 ;; 20840 *) 20841 ;; 20842 esac 20843 ;; 20844 vxworks*) 20845 ;; 20846 *) 20847 lt_prog_compiler_can_build_shared_CXX=no 20848 ;; 20849 esac 20850 fi 20851 20852case $host_os in 20853 # For platforms which do not support PIC, -DPIC is meaningless: 20854 *djgpp*) 20855 lt_prog_compiler_pic_CXX= 20856 ;; 20857 *) 20858 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 20859 ;; 20860esac 20861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 20862$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 20863 20864 20865 20866# 20867# Check to make sure the PIC flag actually works. 20868# 20869if test -n "$lt_prog_compiler_pic_CXX"; then 20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 20871$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 20872if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 20873 $as_echo_n "(cached) " >&6 20874else 20875 lt_cv_prog_compiler_pic_works_CXX=no 20876 ac_outfile=conftest.$ac_objext 20877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20878 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 20879 # Insert the option either (1) after the last *FLAGS variable, or 20880 # (2) before a word containing "conftest.", or (3) at the end. 20881 # Note that $ac_compile itself does not contain backslashes and begins 20882 # with a dollar sign (not a hyphen), so the echo should work correctly. 20883 # The option is referenced via a variable to avoid confusing sed. 20884 lt_compile=`echo "$ac_compile" | $SED \ 20885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20887 -e 's:$: $lt_compiler_flag:'` 20888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20889 (eval "$lt_compile" 2>conftest.err) 20890 ac_status=$? 20891 cat conftest.err >&5 20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20893 if (exit $ac_status) && test -s "$ac_outfile"; then 20894 # The compiler can only warn and ignore the option if not recognized 20895 # So say no if there are warnings other than the usual output. 20896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 20897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 20899 lt_cv_prog_compiler_pic_works_CXX=yes 20900 fi 20901 fi 20902 $RM conftest* 20903 20904fi 20905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 20906$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 20907 20908if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 20909 case $lt_prog_compiler_pic_CXX in 20910 "" | " "*) ;; 20911 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 20912 esac 20913else 20914 lt_prog_compiler_pic_CXX= 20915 lt_prog_compiler_can_build_shared_CXX=no 20916fi 20917 20918fi 20919 20920 20921 20922# 20923# Check to make sure the static flag actually works. 20924# 20925wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 20926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 20927$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 20928if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 20929 $as_echo_n "(cached) " >&6 20930else 20931 lt_cv_prog_compiler_static_works_CXX=no 20932 save_LDFLAGS="$LDFLAGS" 20933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 20934 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20936 # The linker can only warn and ignore the option if not recognized 20937 # So say no if there are warnings 20938 if test -s conftest.err; then 20939 # Append any errors to the config.log. 20940 cat conftest.err 1>&5 20941 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20943 if diff conftest.exp conftest.er2 >/dev/null; then 20944 lt_cv_prog_compiler_static_works_CXX=yes 20945 fi 20946 else 20947 lt_cv_prog_compiler_static_works_CXX=yes 20948 fi 20949 fi 20950 $RM -r conftest* 20951 LDFLAGS="$save_LDFLAGS" 20952 20953fi 20954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 20955$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 20956 20957if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 20958 : 20959else 20960 lt_prog_compiler_static_CXX= 20961fi 20962 20963 20964 20965 20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 20967$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 20968if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 20969 $as_echo_n "(cached) " >&6 20970else 20971 lt_cv_prog_compiler_c_o_CXX=no 20972 $RM -r conftest 2>/dev/null 20973 mkdir conftest 20974 cd conftest 20975 mkdir out 20976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20977 20978 lt_compiler_flag="-o out/conftest2.$ac_objext" 20979 # Insert the option either (1) after the last *FLAGS variable, or 20980 # (2) before a word containing "conftest.", or (3) at the end. 20981 # Note that $ac_compile itself does not contain backslashes and begins 20982 # with a dollar sign (not a hyphen), so the echo should work correctly. 20983 lt_compile=`echo "$ac_compile" | $SED \ 20984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20986 -e 's:$: $lt_compiler_flag:'` 20987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20988 (eval "$lt_compile" 2>out/conftest.err) 20989 ac_status=$? 20990 cat out/conftest.err >&5 20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20992 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20993 then 20994 # The compiler can only warn and ignore the option if not recognized 20995 # So say no if there are warnings 20996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20999 lt_cv_prog_compiler_c_o_CXX=yes 21000 fi 21001 fi 21002 chmod u+w . 2>&5 21003 $RM conftest* 21004 # SGI C++ compiler will create directory out/ii_files/ for 21005 # template instantiation 21006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21007 $RM out/* && rmdir out 21008 cd .. 21009 $RM -r conftest 21010 $RM conftest* 21011 21012fi 21013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21014$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21015 21016 21017 21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21020if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21021 $as_echo_n "(cached) " >&6 21022else 21023 lt_cv_prog_compiler_c_o_CXX=no 21024 $RM -r conftest 2>/dev/null 21025 mkdir conftest 21026 cd conftest 21027 mkdir out 21028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21029 21030 lt_compiler_flag="-o out/conftest2.$ac_objext" 21031 # Insert the option either (1) after the last *FLAGS variable, or 21032 # (2) before a word containing "conftest.", or (3) at the end. 21033 # Note that $ac_compile itself does not contain backslashes and begins 21034 # with a dollar sign (not a hyphen), so the echo should work correctly. 21035 lt_compile=`echo "$ac_compile" | $SED \ 21036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21038 -e 's:$: $lt_compiler_flag:'` 21039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21040 (eval "$lt_compile" 2>out/conftest.err) 21041 ac_status=$? 21042 cat out/conftest.err >&5 21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21045 then 21046 # The compiler can only warn and ignore the option if not recognized 21047 # So say no if there are warnings 21048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21051 lt_cv_prog_compiler_c_o_CXX=yes 21052 fi 21053 fi 21054 chmod u+w . 2>&5 21055 $RM conftest* 21056 # SGI C++ compiler will create directory out/ii_files/ for 21057 # template instantiation 21058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21059 $RM out/* && rmdir out 21060 cd .. 21061 $RM -r conftest 21062 $RM conftest* 21063 21064fi 21065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21066$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21067 21068 21069 21070 21071hard_links="nottested" 21072if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 21073 # do not overwrite the value of need_locks provided by the user 21074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 21075$as_echo_n "checking if we can lock with hard links... " >&6; } 21076 hard_links=yes 21077 $RM conftest* 21078 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21079 touch conftest.a 21080 ln conftest.a conftest.b 2>&5 || hard_links=no 21081 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 21083$as_echo "$hard_links" >&6; } 21084 if test "$hard_links" = no; then 21085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 21086$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 21087 need_locks=warn 21088 fi 21089else 21090 need_locks=no 21091fi 21092 21093 21094 21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21096$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 21097 21098 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21099 case $host_os in 21100 aix[4-9]*) 21101 # If we're using GNU nm, then we don't want the "-C" option. 21102 # -C means demangle to AIX nm, but means don't demangle with GNU nm 21103 # Also, AIX nm treats weak defined symbols like other global defined 21104 # symbols, whereas GNU nm marks them as "W". 21105 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 21106 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' 21107 else 21108 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' 21109 fi 21110 ;; 21111 pw32*) 21112 export_symbols_cmds_CXX="$ltdll_cmds" 21113 ;; 21114 cygwin* | mingw* | cegcc*) 21115 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' 21116 ;; 21117 *) 21118 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21119 ;; 21120 esac 21121 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 21122 21123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21124$as_echo "$ld_shlibs_CXX" >&6; } 21125test "$ld_shlibs_CXX" = no && can_build_shared=no 21126 21127with_gnu_ld_CXX=$with_gnu_ld 21128 21129 21130 21131 21132 21133 21134# 21135# Do we need to explicitly link libc? 21136# 21137case "x$archive_cmds_need_lc_CXX" in 21138x|xyes) 21139 # Assume -lc should be added 21140 archive_cmds_need_lc_CXX=yes 21141 21142 if test "$enable_shared" = yes && test "$GCC" = yes; then 21143 case $archive_cmds_CXX in 21144 *'~'*) 21145 # FIXME: we may have to deal with multi-command sequences. 21146 ;; 21147 '$CC '*) 21148 # Test whether the compiler implicitly links with -lc since on some 21149 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21150 # to ld, don't add -lc before -lgcc. 21151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 21152$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 21153if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 21154 $as_echo_n "(cached) " >&6 21155else 21156 $RM conftest* 21157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21158 21159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21160 (eval $ac_compile) 2>&5 21161 ac_status=$? 21162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21163 test $ac_status = 0; } 2>conftest.err; then 21164 soname=conftest 21165 lib=conftest 21166 libobjs=conftest.$ac_objext 21167 deplibs= 21168 wl=$lt_prog_compiler_wl_CXX 21169 pic_flag=$lt_prog_compiler_pic_CXX 21170 compiler_flags=-v 21171 linker_flags=-v 21172 verstring= 21173 output_objdir=. 21174 libname=conftest 21175 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 21176 allow_undefined_flag_CXX= 21177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21178 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21179 ac_status=$? 21180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21181 test $ac_status = 0; } 21182 then 21183 lt_cv_archive_cmds_need_lc_CXX=no 21184 else 21185 lt_cv_archive_cmds_need_lc_CXX=yes 21186 fi 21187 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 21188 else 21189 cat conftest.err 1>&5 21190 fi 21191 $RM conftest* 21192 21193fi 21194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 21195$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 21196 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 21197 ;; 21198 esac 21199 fi 21200 ;; 21201esac 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21267$as_echo_n "checking dynamic linker characteristics... " >&6; } 21268 21269library_names_spec= 21270libname_spec='lib$name' 21271soname_spec= 21272shrext_cmds=".so" 21273postinstall_cmds= 21274postuninstall_cmds= 21275finish_cmds= 21276finish_eval= 21277shlibpath_var= 21278shlibpath_overrides_runpath=unknown 21279version_type=none 21280dynamic_linker="$host_os ld.so" 21281sys_lib_dlsearch_path_spec="/lib /usr/lib" 21282need_lib_prefix=unknown 21283hardcode_into_libs=no 21284 21285# when you set need_version to no, make sure it does not cause -set_version 21286# flags to be left without arguments 21287need_version=unknown 21288 21289case $host_os in 21290aix3*) 21291 version_type=linux 21292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21293 shlibpath_var=LIBPATH 21294 21295 # AIX 3 has no versioning support, so we append a major version to the name. 21296 soname_spec='${libname}${release}${shared_ext}$major' 21297 ;; 21298 21299aix[4-9]*) 21300 version_type=linux 21301 need_lib_prefix=no 21302 need_version=no 21303 hardcode_into_libs=yes 21304 if test "$host_cpu" = ia64; then 21305 # AIX 5 supports IA64 21306 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 21307 shlibpath_var=LD_LIBRARY_PATH 21308 else 21309 # With GCC up to 2.95.x, collect2 would create an import file 21310 # for dependence libraries. The import file would start with 21311 # the line `#! .'. This would cause the generated library to 21312 # depend on `.', always an invalid library. This was fixed in 21313 # development snapshots of GCC prior to 3.0. 21314 case $host_os in 21315 aix4 | aix4.[01] | aix4.[01].*) 21316 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21317 echo ' yes ' 21318 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 21319 : 21320 else 21321 can_build_shared=no 21322 fi 21323 ;; 21324 esac 21325 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21326 # soname into executable. Probably we can add versioning support to 21327 # collect2, so additional links can be useful in future. 21328 if test "$aix_use_runtimelinking" = yes; then 21329 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21330 # instead of lib<name>.a to let people know that these are not 21331 # typical AIX shared libraries. 21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21333 else 21334 # We preserve .a as extension for shared libraries through AIX4.2 21335 # and later when we are not doing run time linking. 21336 library_names_spec='${libname}${release}.a $libname.a' 21337 soname_spec='${libname}${release}${shared_ext}$major' 21338 fi 21339 shlibpath_var=LIBPATH 21340 fi 21341 ;; 21342 21343amigaos*) 21344 case $host_cpu in 21345 powerpc) 21346 # Since July 2007 AmigaOS4 officially supports .so libraries. 21347 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21349 ;; 21350 m68k) 21351 library_names_spec='$libname.ixlibrary $libname.a' 21352 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21353 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' 21354 ;; 21355 esac 21356 ;; 21357 21358beos*) 21359 library_names_spec='${libname}${shared_ext}' 21360 dynamic_linker="$host_os ld.so" 21361 shlibpath_var=LIBRARY_PATH 21362 ;; 21363 21364bsdi[45]*) 21365 version_type=linux 21366 need_version=no 21367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21368 soname_spec='${libname}${release}${shared_ext}$major' 21369 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21370 shlibpath_var=LD_LIBRARY_PATH 21371 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21372 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21373 # the default ld.so.conf also contains /usr/contrib/lib and 21374 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21375 # libtool to hard-code these into programs 21376 ;; 21377 21378cygwin* | mingw* | pw32* | cegcc*) 21379 version_type=windows 21380 shrext_cmds=".dll" 21381 need_version=no 21382 need_lib_prefix=no 21383 21384 case $GCC,$host_os in 21385 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 21386 library_names_spec='$libname.dll.a' 21387 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21388 postinstall_cmds='base_file=`basename \${file}`~ 21389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21390 dldir=$destdir/`dirname \$dlpath`~ 21391 test -d \$dldir || mkdir -p \$dldir~ 21392 $install_prog $dir/$dlname \$dldir/$dlname~ 21393 chmod a+x \$dldir/$dlname~ 21394 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21395 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21396 fi' 21397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21398 dlpath=$dir/\$dldll~ 21399 $RM \$dlpath' 21400 shlibpath_overrides_runpath=yes 21401 21402 case $host_os in 21403 cygwin*) 21404 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21405 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21406 21407 ;; 21408 mingw* | cegcc*) 21409 # MinGW DLLs use traditional 'lib' prefix 21410 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21411 ;; 21412 pw32*) 21413 # pw32 DLLs use 'pw' prefix rather than 'lib' 21414 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21415 ;; 21416 esac 21417 ;; 21418 21419 *) 21420 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 21421 ;; 21422 esac 21423 dynamic_linker='Win32 ld.exe' 21424 # FIXME: first we should search . and the directory the executable is in 21425 shlibpath_var=PATH 21426 ;; 21427 21428darwin* | rhapsody*) 21429 dynamic_linker="$host_os dyld" 21430 version_type=darwin 21431 need_lib_prefix=no 21432 need_version=no 21433 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 21434 soname_spec='${libname}${release}${major}$shared_ext' 21435 shlibpath_overrides_runpath=yes 21436 shlibpath_var=DYLD_LIBRARY_PATH 21437 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21438 21439 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21440 ;; 21441 21442dgux*) 21443 version_type=linux 21444 need_lib_prefix=no 21445 need_version=no 21446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 21447 soname_spec='${libname}${release}${shared_ext}$major' 21448 shlibpath_var=LD_LIBRARY_PATH 21449 ;; 21450 21451freebsd* | dragonfly*) 21452 # DragonFly does not have aout. When/if they implement a new 21453 # versioning mechanism, adjust this. 21454 if test -x /usr/bin/objformat; then 21455 objformat=`/usr/bin/objformat` 21456 else 21457 case $host_os in 21458 freebsd[23].*) objformat=aout ;; 21459 *) objformat=elf ;; 21460 esac 21461 fi 21462 version_type=freebsd-$objformat 21463 case $version_type in 21464 freebsd-elf*) 21465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21466 need_version=no 21467 need_lib_prefix=no 21468 ;; 21469 freebsd-*) 21470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 21471 need_version=yes 21472 ;; 21473 esac 21474 shlibpath_var=LD_LIBRARY_PATH 21475 case $host_os in 21476 freebsd2.*) 21477 shlibpath_overrides_runpath=yes 21478 ;; 21479 freebsd3.[01]* | freebsdelf3.[01]*) 21480 shlibpath_overrides_runpath=yes 21481 hardcode_into_libs=yes 21482 ;; 21483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21485 shlibpath_overrides_runpath=no 21486 hardcode_into_libs=yes 21487 ;; 21488 *) # from 4.6 on, and DragonFly 21489 shlibpath_overrides_runpath=yes 21490 hardcode_into_libs=yes 21491 ;; 21492 esac 21493 ;; 21494 21495gnu*) 21496 version_type=linux 21497 need_lib_prefix=no 21498 need_version=no 21499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21500 soname_spec='${libname}${release}${shared_ext}$major' 21501 shlibpath_var=LD_LIBRARY_PATH 21502 hardcode_into_libs=yes 21503 ;; 21504 21505haiku*) 21506 version_type=linux 21507 need_lib_prefix=no 21508 need_version=no 21509 dynamic_linker="$host_os runtime_loader" 21510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21511 soname_spec='${libname}${release}${shared_ext}$major' 21512 shlibpath_var=LIBRARY_PATH 21513 shlibpath_overrides_runpath=yes 21514 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 21515 hardcode_into_libs=yes 21516 ;; 21517 21518hpux9* | hpux10* | hpux11*) 21519 # Give a soname corresponding to the major version so that dld.sl refuses to 21520 # link against other versions. 21521 version_type=sunos 21522 need_lib_prefix=no 21523 need_version=no 21524 case $host_cpu in 21525 ia64*) 21526 shrext_cmds='.so' 21527 hardcode_into_libs=yes 21528 dynamic_linker="$host_os dld.so" 21529 shlibpath_var=LD_LIBRARY_PATH 21530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21532 soname_spec='${libname}${release}${shared_ext}$major' 21533 if test "X$HPUX_IA64_MODE" = X32; then 21534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21535 else 21536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21537 fi 21538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21539 ;; 21540 hppa*64*) 21541 shrext_cmds='.sl' 21542 hardcode_into_libs=yes 21543 dynamic_linker="$host_os dld.sl" 21544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21547 soname_spec='${libname}${release}${shared_ext}$major' 21548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21550 ;; 21551 *) 21552 shrext_cmds='.sl' 21553 dynamic_linker="$host_os dld.sl" 21554 shlibpath_var=SHLIB_PATH 21555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21557 soname_spec='${libname}${release}${shared_ext}$major' 21558 ;; 21559 esac 21560 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21561 postinstall_cmds='chmod 555 $lib' 21562 # or fails outright, so override atomically: 21563 install_override_mode=555 21564 ;; 21565 21566interix[3-9]*) 21567 version_type=linux 21568 need_lib_prefix=no 21569 need_version=no 21570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21571 soname_spec='${libname}${release}${shared_ext}$major' 21572 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21573 shlibpath_var=LD_LIBRARY_PATH 21574 shlibpath_overrides_runpath=no 21575 hardcode_into_libs=yes 21576 ;; 21577 21578irix5* | irix6* | nonstopux*) 21579 case $host_os in 21580 nonstopux*) version_type=nonstopux ;; 21581 *) 21582 if test "$lt_cv_prog_gnu_ld" = yes; then 21583 version_type=linux 21584 else 21585 version_type=irix 21586 fi ;; 21587 esac 21588 need_lib_prefix=no 21589 need_version=no 21590 soname_spec='${libname}${release}${shared_ext}$major' 21591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 21592 case $host_os in 21593 irix5* | nonstopux*) 21594 libsuff= shlibsuff= 21595 ;; 21596 *) 21597 case $LD in # libtool.m4 will add one of these switches to LD 21598 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21599 libsuff= shlibsuff= libmagic=32-bit;; 21600 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21601 libsuff=32 shlibsuff=N32 libmagic=N32;; 21602 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21603 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21604 *) libsuff= shlibsuff= libmagic=never-match;; 21605 esac 21606 ;; 21607 esac 21608 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21609 shlibpath_overrides_runpath=no 21610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 21611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 21612 hardcode_into_libs=yes 21613 ;; 21614 21615# No shared lib support for Linux oldld, aout, or coff. 21616linux*oldld* | linux*aout* | linux*coff*) 21617 dynamic_linker=no 21618 ;; 21619 21620# This must be Linux ELF. 21621linux* | k*bsd*-gnu | kopensolaris*-gnu) 21622 version_type=linux 21623 need_lib_prefix=no 21624 need_version=no 21625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21626 soname_spec='${libname}${release}${shared_ext}$major' 21627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21628 shlibpath_var=LD_LIBRARY_PATH 21629 shlibpath_overrides_runpath=no 21630 21631 # Some binutils ld are patched to set DT_RUNPATH 21632 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21633 $as_echo_n "(cached) " >&6 21634else 21635 lt_cv_shlibpath_overrides_runpath=no 21636 save_LDFLAGS=$LDFLAGS 21637 save_libdir=$libdir 21638 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 21639 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 21640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21641/* end confdefs.h. */ 21642 21643int 21644main () 21645{ 21646 21647 ; 21648 return 0; 21649} 21650_ACEOF 21651if ac_fn_cxx_try_link "$LINENO"; then : 21652 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21653 lt_cv_shlibpath_overrides_runpath=yes 21654fi 21655fi 21656rm -f core conftest.err conftest.$ac_objext \ 21657 conftest$ac_exeext conftest.$ac_ext 21658 LDFLAGS=$save_LDFLAGS 21659 libdir=$save_libdir 21660 21661fi 21662 21663 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21664 21665 # This implies no fast_install, which is unacceptable. 21666 # Some rework will be needed to allow for fast_install 21667 # before this can be enabled. 21668 hardcode_into_libs=yes 21669 21670 # Append ld.so.conf contents to the search path 21671 if test -f /etc/ld.so.conf; then 21672 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' ' '` 21673 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21674 fi 21675 21676 # We used to test for /lib/ld.so.1 and disable shared libraries on 21677 # powerpc, because MkLinux only supported shared libraries with the 21678 # GNU dynamic linker. Since this was broken with cross compilers, 21679 # most powerpc-linux boxes support dynamic linking these days and 21680 # people can always --disable-shared, the test was removed, and we 21681 # assume the GNU/Linux dynamic linker is in use. 21682 dynamic_linker='GNU/Linux ld.so' 21683 ;; 21684 21685netbsd*) 21686 version_type=sunos 21687 need_lib_prefix=no 21688 need_version=no 21689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21692 dynamic_linker='NetBSD (a.out) ld.so' 21693 else 21694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21695 soname_spec='${libname}${release}${shared_ext}$major' 21696 dynamic_linker='NetBSD ld.elf_so' 21697 fi 21698 shlibpath_var=LD_LIBRARY_PATH 21699 shlibpath_overrides_runpath=yes 21700 hardcode_into_libs=yes 21701 ;; 21702 21703newsos6) 21704 version_type=linux 21705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21706 shlibpath_var=LD_LIBRARY_PATH 21707 shlibpath_overrides_runpath=yes 21708 ;; 21709 21710*nto* | *qnx*) 21711 version_type=qnx 21712 need_lib_prefix=no 21713 need_version=no 21714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21715 soname_spec='${libname}${release}${shared_ext}$major' 21716 shlibpath_var=LD_LIBRARY_PATH 21717 shlibpath_overrides_runpath=no 21718 hardcode_into_libs=yes 21719 dynamic_linker='ldqnx.so' 21720 ;; 21721 21722openbsd*) 21723 version_type=sunos 21724 sys_lib_dlsearch_path_spec="/usr/lib" 21725 need_lib_prefix=no 21726 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 21727 case $host_os in 21728 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 21729 *) need_version=no ;; 21730 esac 21731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21733 shlibpath_var=LD_LIBRARY_PATH 21734 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21735 case $host_os in 21736 openbsd2.[89] | openbsd2.[89].*) 21737 shlibpath_overrides_runpath=no 21738 ;; 21739 *) 21740 shlibpath_overrides_runpath=yes 21741 ;; 21742 esac 21743 else 21744 shlibpath_overrides_runpath=yes 21745 fi 21746 ;; 21747 21748os2*) 21749 libname_spec='$name' 21750 shrext_cmds=".dll" 21751 need_lib_prefix=no 21752 library_names_spec='$libname${shared_ext} $libname.a' 21753 dynamic_linker='OS/2 ld.exe' 21754 shlibpath_var=LIBPATH 21755 ;; 21756 21757osf3* | osf4* | osf5*) 21758 version_type=osf 21759 need_lib_prefix=no 21760 need_version=no 21761 soname_spec='${libname}${release}${shared_ext}$major' 21762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21763 shlibpath_var=LD_LIBRARY_PATH 21764 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21765 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 21766 ;; 21767 21768rdos*) 21769 dynamic_linker=no 21770 ;; 21771 21772solaris*) 21773 version_type=linux 21774 need_lib_prefix=no 21775 need_version=no 21776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21777 soname_spec='${libname}${release}${shared_ext}$major' 21778 shlibpath_var=LD_LIBRARY_PATH 21779 shlibpath_overrides_runpath=yes 21780 hardcode_into_libs=yes 21781 # ldd complains unless libraries are executable 21782 postinstall_cmds='chmod +x $lib' 21783 ;; 21784 21785sunos4*) 21786 version_type=sunos 21787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21789 shlibpath_var=LD_LIBRARY_PATH 21790 shlibpath_overrides_runpath=yes 21791 if test "$with_gnu_ld" = yes; then 21792 need_lib_prefix=no 21793 fi 21794 need_version=yes 21795 ;; 21796 21797sysv4 | sysv4.3*) 21798 version_type=linux 21799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21800 soname_spec='${libname}${release}${shared_ext}$major' 21801 shlibpath_var=LD_LIBRARY_PATH 21802 case $host_vendor in 21803 sni) 21804 shlibpath_overrides_runpath=no 21805 need_lib_prefix=no 21806 runpath_var=LD_RUN_PATH 21807 ;; 21808 siemens) 21809 need_lib_prefix=no 21810 ;; 21811 motorola) 21812 need_lib_prefix=no 21813 need_version=no 21814 shlibpath_overrides_runpath=no 21815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21816 ;; 21817 esac 21818 ;; 21819 21820sysv4*MP*) 21821 if test -d /usr/nec ;then 21822 version_type=linux 21823 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 21824 soname_spec='$libname${shared_ext}.$major' 21825 shlibpath_var=LD_LIBRARY_PATH 21826 fi 21827 ;; 21828 21829sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21830 version_type=freebsd-elf 21831 need_lib_prefix=no 21832 need_version=no 21833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21834 soname_spec='${libname}${release}${shared_ext}$major' 21835 shlibpath_var=LD_LIBRARY_PATH 21836 shlibpath_overrides_runpath=yes 21837 hardcode_into_libs=yes 21838 if test "$with_gnu_ld" = yes; then 21839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21840 else 21841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21842 case $host_os in 21843 sco3.2v5*) 21844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21845 ;; 21846 esac 21847 fi 21848 sys_lib_dlsearch_path_spec='/usr/lib' 21849 ;; 21850 21851tpf*) 21852 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21853 version_type=linux 21854 need_lib_prefix=no 21855 need_version=no 21856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21857 shlibpath_var=LD_LIBRARY_PATH 21858 shlibpath_overrides_runpath=no 21859 hardcode_into_libs=yes 21860 ;; 21861 21862uts4*) 21863 version_type=linux 21864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21865 soname_spec='${libname}${release}${shared_ext}$major' 21866 shlibpath_var=LD_LIBRARY_PATH 21867 ;; 21868 21869*) 21870 dynamic_linker=no 21871 ;; 21872esac 21873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21874$as_echo "$dynamic_linker" >&6; } 21875test "$dynamic_linker" = no && can_build_shared=no 21876 21877variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21878if test "$GCC" = yes; then 21879 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21880fi 21881 21882if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 21883 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 21884fi 21885if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 21886 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 21887fi 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21927$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 21928hardcode_action_CXX= 21929if test -n "$hardcode_libdir_flag_spec_CXX" || 21930 test -n "$runpath_var_CXX" || 21931 test "X$hardcode_automatic_CXX" = "Xyes" ; then 21932 21933 # We can hardcode non-existent directories. 21934 if test "$hardcode_direct_CXX" != no && 21935 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21936 # have to relink, otherwise we might link with an installed library 21937 # when we should be linking with a yet-to-be-installed one 21938 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 21939 test "$hardcode_minus_L_CXX" != no; then 21940 # Linking always hardcodes the temporary library directory. 21941 hardcode_action_CXX=relink 21942 else 21943 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21944 hardcode_action_CXX=immediate 21945 fi 21946else 21947 # We cannot hardcode anything, or else we can only hardcode existing 21948 # directories. 21949 hardcode_action_CXX=unsupported 21950fi 21951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 21952$as_echo "$hardcode_action_CXX" >&6; } 21953 21954if test "$hardcode_action_CXX" = relink || 21955 test "$inherit_rpath_CXX" = yes; then 21956 # Fast installation is not supported 21957 enable_fast_install=no 21958elif test "$shlibpath_overrides_runpath" = yes || 21959 test "$enable_shared" = no; then 21960 # Fast installation is not necessary 21961 enable_fast_install=needless 21962fi 21963 21964 21965 21966 21967 21968 21969 21970 fi # test -n "$compiler" 21971 21972 CC=$lt_save_CC 21973 LDCXX=$LD 21974 LD=$lt_save_LD 21975 GCC=$lt_save_GCC 21976 with_gnu_ld=$lt_save_with_gnu_ld 21977 lt_cv_path_LDCXX=$lt_cv_path_LD 21978 lt_cv_path_LD=$lt_save_path_LD 21979 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 21980 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 21981fi # test "$_lt_caught_CXX_error" != yes 21982 21983ac_ext=cpp 21984ac_cpp='$CXXCPP $CPPFLAGS' 21985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004# Only expand once: 22005 22006 22007 22008 22009 22010# Identify the assembler which will work hand-in-glove with the newly 22011# built GCC, so that we can examine its features. This is the assembler 22012# which will be driven by the driver program. 22013# 22014# If build != host, and we aren't building gas in-tree, we identify a 22015# build->target assembler and hope that it will have the same features 22016# as the host->target assembler we'll be using. 22017gcc_cv_gas_major_version= 22018gcc_cv_gas_minor_version= 22019gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas 22020 22021if ${gcc_cv_as+:} false; then : 22022 22023else 22024 22025if test -x "$DEFAULT_ASSEMBLER"; then 22026 gcc_cv_as="$DEFAULT_ASSEMBLER" 22027elif test -f $gcc_cv_as_gas_srcdir/configure.ac \ 22028 && test -f ../gas/Makefile \ 22029 && test x$build = x$host; then 22030 gcc_cv_as=../gas/as-new$build_exeext 22031elif test -x as$build_exeext; then 22032 # Build using assembler in the current directory. 22033 gcc_cv_as=./as$build_exeext 22034elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then 22035 gcc_cv_as="$AS_FOR_TARGET" 22036else 22037 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args. 22038set dummy $AS_FOR_TARGET; ac_word=$2 22039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22040$as_echo_n "checking for $ac_word... " >&6; } 22041if ${ac_cv_path_gcc_cv_as+:} false; then : 22042 $as_echo_n "(cached) " >&6 22043else 22044 case $gcc_cv_as in 22045 [\\/]* | ?:[\\/]*) 22046 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path. 22047 ;; 22048 *) 22049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22050for as_dir in $PATH 22051do 22052 IFS=$as_save_IFS 22053 test -z "$as_dir" && as_dir=. 22054 for ac_exec_ext in '' $ac_executable_extensions; do 22055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22056 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext" 22057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22058 break 2 22059 fi 22060done 22061 done 22062IFS=$as_save_IFS 22063 22064 ;; 22065esac 22066fi 22067gcc_cv_as=$ac_cv_path_gcc_cv_as 22068if test -n "$gcc_cv_as"; then 22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5 22070$as_echo "$gcc_cv_as" >&6; } 22071else 22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22073$as_echo "no" >&6; } 22074fi 22075 22076 22077fi 22078fi 22079 22080ORIGINAL_AS_FOR_TARGET=$gcc_cv_as 22081 22082case "$ORIGINAL_AS_FOR_TARGET" in 22083 ./as | ./as$build_exeext) ;; 22084 *) ac_config_files="$ac_config_files as:exec-tool.in" 22085 ;; 22086esac 22087 22088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5 22089$as_echo_n "checking what assembler to use... " >&6; } 22090if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then 22091 # Single tree build which includes gas. We want to prefer it 22092 # over whatever linker top-level may have detected, since 22093 # we'll use what we're building after installation anyway. 22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5 22095$as_echo "newly built gas" >&6; } 22096 in_tree_gas=yes 22097 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 22098for f in $gcc_cv_as_bfd_srcdir/configure \ 22099 $gcc_cv_as_gas_srcdir/configure \ 22100 $gcc_cv_as_gas_srcdir/configure.ac \ 22101 $gcc_cv_as_gas_srcdir/Makefile.in ; do 22102 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f` 22103 if test x$gcc_cv_gas_version != x; then 22104 break 22105 fi 22106done 22107case $gcc_cv_gas_version in 22108 VERSION=[0-9]*) ;; 22109 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;; 22110esac 22111gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` 22112gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 22113gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"` 22114case $gcc_cv_gas_patch_version in 22115 "") gcc_cv_gas_patch_version="0" ;; 22116esac 22117gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \ 22118 + $gcc_cv_gas_minor_version \) \* 1000 \ 22119 + $gcc_cv_gas_patch_version` 22120 22121 in_tree_gas_is_elf=no 22122 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \ 22123 || (grep 'obj_format = multi' ../gas/Makefile \ 22124 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null 22125 then 22126 in_tree_gas_is_elf=yes 22127 fi 22128else 22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5 22130$as_echo "$gcc_cv_as" >&6; } 22131 in_tree_gas=no 22132fi 22133 22134default_ld= 22135# Check whether --enable-ld was given. 22136if test "${enable_ld+set}" = set; then : 22137 enableval=$enable_ld; case "${enableval}" in 22138 no) 22139 default_ld=ld.gold 22140 ;; 22141 esac 22142fi 22143 22144 22145install_gold_as_default=no 22146# Check whether --enable-gold was given. 22147if test "${enable_gold+set}" = set; then : 22148 enableval=$enable_gold; case "${enableval}" in 22149 default) 22150 install_gold_as_default=yes 22151 ;; 22152 yes) 22153 if test x${default_ld} != x; then 22154 install_gold_as_default=yes 22155 fi 22156 ;; 22157 no) 22158 ;; 22159 *) 22160 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 22161 ;; 22162 esac 22163fi 22164 22165 22166# Identify the linker which will work hand-in-glove with the newly 22167# built GCC, so that we can examine its features. This is the linker 22168# which will be driven by the driver program. 22169# 22170# If build != host, and we aren't building gas in-tree, we identify a 22171# build->target linker and hope that it will have the same features 22172# as the host->target linker we'll be using. 22173gcc_cv_gld_major_version= 22174gcc_cv_gld_minor_version= 22175gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld 22176gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold 22177gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd 22178 22179if ${gcc_cv_ld+:} false; then : 22180 22181else 22182 22183if test -x "$DEFAULT_LINKER"; then 22184 gcc_cv_ld="$DEFAULT_LINKER" 22185elif test $install_gold_as_default = yes \ 22186 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \ 22187 && test -f ../gold/Makefile \ 22188 && test x$build = x$host; then 22189 gcc_cv_ld=../gold/ld-new$build_exeext 22190elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \ 22191 && test -f ../ld/Makefile \ 22192 && test x$build = x$host; then 22193 gcc_cv_ld=../ld/ld-new$build_exeext 22194elif test -x collect-ld$build_exeext; then 22195 # Build using linker in the current directory. 22196 gcc_cv_ld=./collect-ld$build_exeext 22197elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then 22198 gcc_cv_ld="$LD_FOR_TARGET" 22199else 22200 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args. 22201set dummy $LD_FOR_TARGET; ac_word=$2 22202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22203$as_echo_n "checking for $ac_word... " >&6; } 22204if ${ac_cv_path_gcc_cv_ld+:} false; then : 22205 $as_echo_n "(cached) " >&6 22206else 22207 case $gcc_cv_ld in 22208 [\\/]* | ?:[\\/]*) 22209 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path. 22210 ;; 22211 *) 22212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22213for as_dir in $PATH 22214do 22215 IFS=$as_save_IFS 22216 test -z "$as_dir" && as_dir=. 22217 for ac_exec_ext in '' $ac_executable_extensions; do 22218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22219 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext" 22220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22221 break 2 22222 fi 22223done 22224 done 22225IFS=$as_save_IFS 22226 22227 ;; 22228esac 22229fi 22230gcc_cv_ld=$ac_cv_path_gcc_cv_ld 22231if test -n "$gcc_cv_ld"; then 22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5 22233$as_echo "$gcc_cv_ld" >&6; } 22234else 22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22236$as_echo "no" >&6; } 22237fi 22238 22239 22240fi 22241fi 22242 22243ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld 22244PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"` 22245# if the PLUGIN_LD is set ld-new, just have it as ld 22246# as that is the installed named. 22247if test x$PLUGIN_LD_SUFFIX = xld-new \ 22248 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then 22249 PLUGIN_LD_SUFFIX=ld 22250fi 22251 22252# Check whether --with-plugin-ld was given. 22253if test "${with_plugin_ld+set}" = set; then : 22254 withval=$with_plugin_ld; if test x"$withval" != x; then 22255 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval" 22256 PLUGIN_LD_SUFFIX="$withval" 22257 fi 22258fi 22259 22260 22261 22262cat >>confdefs.h <<_ACEOF 22263#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX" 22264_ACEOF 22265 22266 22267# Check to see if we are using gold instead of ld 22268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5 22269$as_echo_n "checking whether we are using gold... " >&6; } 22270ld_is_gold=no 22271if test x$gcc_cv_ld != x; then 22272 if $gcc_cv_ld --version 2>/dev/null | sed 1q \ 22273 | grep "GNU gold" > /dev/null; then 22274 ld_is_gold=yes 22275 fi 22276fi 22277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5 22278$as_echo "$ld_is_gold" >&6; } 22279 22280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5 22281$as_echo_n "checking gold linker with split stack support as non default... " >&6; } 22282# Check to see if default ld is not gold, but gold is 22283# available and has support for split stack. If gcc was configured 22284# with gold then no checking is done. 22285# 22286if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then 22287 22288# For platforms other than powerpc64*, enable as appropriate. 22289 22290 gold_non_default=no 22291 ld_gold=`which ${gcc_cv_ld}.gold` 22292# Make sure this gold has minimal split stack support 22293 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then 22294 ld_vers=`$ld_gold --version | sed 1q` 22295 gold_vers=`echo $ld_vers | sed -n \ 22296 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 22297 case $target in 22298# check that the gold version contains the complete split stack support 22299# on powerpc64 big and little endian 22300 powerpc64*-*-*) 22301 case "$gold_vers" in 22302 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes 22303 ;; 22304 *) gold_non_default=no 22305 ;; 22306 esac 22307 ;; 22308 esac 22309 fi 22310 if test $gold_non_default = yes; then 22311 22312$as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h 22313 22314 fi 22315fi 22316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5 22317$as_echo "$gold_non_default" >&6; } 22318 22319ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld 22320 22321case "$ORIGINAL_LD_FOR_TARGET" in 22322 ./collect-ld | ./collect-ld$build_exeext) ;; 22323 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in" 22324 ;; 22325esac 22326 22327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5 22328$as_echo_n "checking what linker to use... " >&6; } 22329if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \ 22330 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then 22331 # Single tree build which includes ld. We want to prefer it 22332 # over whatever linker top-level may have detected, since 22333 # we'll use what we're building after installation anyway. 22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5 22335$as_echo "newly built ld" >&6; } 22336 in_tree_ld=yes 22337 in_tree_ld_is_elf=no 22338 if (grep 'EMUL = .*elf' ../ld/Makefile \ 22339 || grep 'EMUL = .*linux' ../ld/Makefile \ 22340 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then 22341 in_tree_ld_is_elf=yes 22342 elif test "$ld_is_gold" = yes; then 22343 in_tree_ld_is_elf=yes 22344 fi 22345 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 22346 do 22347 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f` 22348 if test x$gcc_cv_gld_version != x; then 22349 break 22350 fi 22351 done 22352 case $gcc_cv_gld_version in 22353 VERSION=[0-9]*) ;; 22354 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;; 22355 esac 22356 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"` 22357 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"` 22358 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext 22359 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext 22360else 22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5 22362$as_echo "$gcc_cv_ld" >&6; } 22363 in_tree_ld=no 22364 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext` 22365 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext 22366 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext 22367fi 22368 22369 22370 22371 22372# Figure out what nm we will be using. 22373gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils 22374if ${gcc_cv_nm+:} false; then : 22375 22376else 22377 22378if test -f $gcc_cv_binutils_srcdir/configure.ac \ 22379 && test -f ../binutils/Makefile \ 22380 && test x$build = x$host; then 22381 gcc_cv_nm=../binutils/nm-new$build_exeext 22382elif test -x nm$build_exeext; then 22383 gcc_cv_nm=./nm$build_exeext 22384elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then 22385 gcc_cv_nm="$NM_FOR_TARGET" 22386else 22387 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args. 22388set dummy $NM_FOR_TARGET; ac_word=$2 22389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22390$as_echo_n "checking for $ac_word... " >&6; } 22391if ${ac_cv_path_gcc_cv_nm+:} false; then : 22392 $as_echo_n "(cached) " >&6 22393else 22394 case $gcc_cv_nm in 22395 [\\/]* | ?:[\\/]*) 22396 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path. 22397 ;; 22398 *) 22399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22400for as_dir in $PATH 22401do 22402 IFS=$as_save_IFS 22403 test -z "$as_dir" && as_dir=. 22404 for ac_exec_ext in '' $ac_executable_extensions; do 22405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22406 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext" 22407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22408 break 2 22409 fi 22410done 22411 done 22412IFS=$as_save_IFS 22413 22414 ;; 22415esac 22416fi 22417gcc_cv_nm=$ac_cv_path_gcc_cv_nm 22418if test -n "$gcc_cv_nm"; then 22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5 22420$as_echo "$gcc_cv_nm" >&6; } 22421else 22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22423$as_echo "no" >&6; } 22424fi 22425 22426 22427fi 22428fi 22429 22430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5 22431$as_echo_n "checking what nm to use... " >&6; } 22432if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then 22433 # Single tree build which includes binutils. 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5 22435$as_echo "newly built nm" >&6; } 22436 in_tree_nm=yes 22437else 22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5 22439$as_echo "$gcc_cv_nm" >&6; } 22440 in_tree_nm=no 22441fi 22442 22443ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm 22444 22445case "$ORIGINAL_NM_FOR_TARGET" in 22446 ./nm | ./nm$build_exeext) ;; 22447 *) ac_config_files="$ac_config_files nm:exec-tool.in" 22448 ;; 22449esac 22450 22451 22452# Figure out what objdump we will be using. 22453if ${gcc_cv_objdump+:} false; then : 22454 22455else 22456 22457if test -f $gcc_cv_binutils_srcdir/configure.ac \ 22458 && test -f ../binutils/Makefile \ 22459 && test x$build = x$host; then 22460 # Single tree build which includes binutils. 22461 gcc_cv_objdump=../binutils/objdump$build_exeext 22462elif test -x objdump$build_exeext; then 22463 gcc_cv_objdump=./objdump$build_exeext 22464elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then 22465 gcc_cv_objdump="$OBJDUMP_FOR_TARGET" 22466else 22467 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args. 22468set dummy $OBJDUMP_FOR_TARGET; ac_word=$2 22469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22470$as_echo_n "checking for $ac_word... " >&6; } 22471if ${ac_cv_path_gcc_cv_objdump+:} false; then : 22472 $as_echo_n "(cached) " >&6 22473else 22474 case $gcc_cv_objdump in 22475 [\\/]* | ?:[\\/]*) 22476 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path. 22477 ;; 22478 *) 22479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22480for as_dir in $PATH 22481do 22482 IFS=$as_save_IFS 22483 test -z "$as_dir" && as_dir=. 22484 for ac_exec_ext in '' $ac_executable_extensions; do 22485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22486 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext" 22487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22488 break 2 22489 fi 22490done 22491 done 22492IFS=$as_save_IFS 22493 22494 ;; 22495esac 22496fi 22497gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump 22498if test -n "$gcc_cv_objdump"; then 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5 22500$as_echo "$gcc_cv_objdump" >&6; } 22501else 22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22503$as_echo "no" >&6; } 22504fi 22505 22506 22507fi 22508fi 22509 22510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5 22511$as_echo_n "checking what objdump to use... " >&6; } 22512if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then 22513 # Single tree build which includes binutils. 22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5 22515$as_echo "newly built objdump" >&6; } 22516elif test x$gcc_cv_objdump = x; then 22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22518$as_echo "not found" >&6; } 22519else 22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5 22521$as_echo "$gcc_cv_objdump" >&6; } 22522fi 22523 22524# Figure out what readelf we will be using. 22525if ${gcc_cv_readelf+:} false; then : 22526 22527else 22528 22529if test -f $gcc_cv_binutils_srcdir/configure.ac \ 22530 && test -f ../binutils/Makefile \ 22531 && test x$build = x$host; then 22532 # Single tree build which includes binutils. 22533 gcc_cv_readelf=../binutils/readelf$build_exeext 22534elif test -x readelf$build_exeext; then 22535 gcc_cv_readelf=./readelf$build_exeext 22536elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then 22537 gcc_cv_readelf="$READELF_FOR_TARGET" 22538else 22539 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args. 22540set dummy $READELF_FOR_TARGET; ac_word=$2 22541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22542$as_echo_n "checking for $ac_word... " >&6; } 22543if ${ac_cv_path_gcc_cv_readelf+:} false; then : 22544 $as_echo_n "(cached) " >&6 22545else 22546 case $gcc_cv_readelf in 22547 [\\/]* | ?:[\\/]*) 22548 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path. 22549 ;; 22550 *) 22551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22552for as_dir in $PATH 22553do 22554 IFS=$as_save_IFS 22555 test -z "$as_dir" && as_dir=. 22556 for ac_exec_ext in '' $ac_executable_extensions; do 22557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22558 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext" 22559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22560 break 2 22561 fi 22562done 22563 done 22564IFS=$as_save_IFS 22565 22566 ;; 22567esac 22568fi 22569gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf 22570if test -n "$gcc_cv_readelf"; then 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5 22572$as_echo "$gcc_cv_readelf" >&6; } 22573else 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22575$as_echo "no" >&6; } 22576fi 22577 22578 22579fi 22580fi 22581 22582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5 22583$as_echo_n "checking what readelf to use... " >&6; } 22584if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then 22585 # Single tree build which includes binutils. 22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5 22587$as_echo "newly built readelf" >&6; } 22588elif test x$gcc_cv_readelf = x; then 22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22590$as_echo "not found" >&6; } 22591else 22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5 22593$as_echo "$gcc_cv_readelf" >&6; } 22594fi 22595 22596# Figure out what otool we will be using. 22597if ${gcc_cv_otool+:} false; then : 22598 22599else 22600 22601if test -x otool$build_exeext; then 22602 gcc_cv_otool=./otool$build_exeext 22603elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then 22604 gcc_cv_otool="$OTOOL_FOR_TARGET" 22605else 22606 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args. 22607set dummy $OTOOL_FOR_TARGET; ac_word=$2 22608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22609$as_echo_n "checking for $ac_word... " >&6; } 22610if ${ac_cv_path_gcc_cv_otool+:} false; then : 22611 $as_echo_n "(cached) " >&6 22612else 22613 case $gcc_cv_otool in 22614 [\\/]* | ?:[\\/]*) 22615 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path. 22616 ;; 22617 *) 22618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22619for as_dir in $PATH 22620do 22621 IFS=$as_save_IFS 22622 test -z "$as_dir" && as_dir=. 22623 for ac_exec_ext in '' $ac_executable_extensions; do 22624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22625 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext" 22626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22627 break 2 22628 fi 22629done 22630 done 22631IFS=$as_save_IFS 22632 22633 ;; 22634esac 22635fi 22636gcc_cv_otool=$ac_cv_path_gcc_cv_otool 22637if test -n "$gcc_cv_otool"; then 22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5 22639$as_echo "$gcc_cv_otool" >&6; } 22640else 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22642$as_echo "no" >&6; } 22643fi 22644 22645 22646fi 22647fi 22648 22649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5 22650$as_echo_n "checking what otool to use... " >&6; } 22651if test x$gcc_cv_otool = x; then 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22653$as_echo "not found" >&6; } 22654else 22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5 22656$as_echo "$gcc_cv_otool" >&6; } 22657fi 22658 22659# Figure out what assembler alignment features are present. 22660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5 22661$as_echo_n "checking assembler flags... " >&6; } 22662if ${gcc_cv_as_flags+:} false; then : 22663 $as_echo_n "(cached) " >&6 22664else 22665 case "$target" in 22666 i[34567]86-*-linux*) 22667 gcc_cv_as_flags=--32 22668 ;; 22669 x86_64-*-linux-gnux32) 22670 gcc_cv_as_flags=--x32 22671 ;; 22672 x86_64-*-linux*) 22673 gcc_cv_as_flags=--64 22674 ;; 22675 powerpc*-*-darwin*) 22676 gcc_cv_as_flags="-arch ppc" 22677 ;; 22678 *) 22679 gcc_cv_as_flags=" " 22680 ;; 22681 esac 22682fi 22683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5 22684$as_echo "$gcc_cv_as_flags" >&6; } 22685 22686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5 22687$as_echo_n "checking assembler for .balign and .p2align... " >&6; } 22688if ${gcc_cv_as_balign_and_p2align+:} false; then : 22689 $as_echo_n "(cached) " >&6 22690else 22691 gcc_cv_as_balign_and_p2align=no 22692 if test $in_tree_gas = yes; then 22693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0` 22694 then gcc_cv_as_balign_and_p2align=yes 22695fi 22696 elif test x$gcc_cv_as != x; then 22697 $as_echo '.balign 4 22698.p2align 2' > conftest.s 22699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 22700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 22701 (eval $ac_try) 2>&5 22702 ac_status=$? 22703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22704 test $ac_status = 0; }; } 22705 then 22706 gcc_cv_as_balign_and_p2align=yes 22707 else 22708 echo "configure: failed program was" >&5 22709 cat conftest.s >&5 22710 fi 22711 rm -f conftest.o conftest.s 22712 fi 22713fi 22714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5 22715$as_echo "$gcc_cv_as_balign_and_p2align" >&6; } 22716if test $gcc_cv_as_balign_and_p2align = yes; then 22717 22718$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h 22719 22720fi 22721 22722 22723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5 22724$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; } 22725if ${gcc_cv_as_max_skip_p2align+:} false; then : 22726 $as_echo_n "(cached) " >&6 22727else 22728 gcc_cv_as_max_skip_p2align=no 22729 if test $in_tree_gas = yes; then 22730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0` 22731 then gcc_cv_as_max_skip_p2align=yes 22732fi 22733 elif test x$gcc_cv_as != x; then 22734 $as_echo '.p2align 4,,7' > conftest.s 22735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 22736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 22737 (eval $ac_try) 2>&5 22738 ac_status=$? 22739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22740 test $ac_status = 0; }; } 22741 then 22742 gcc_cv_as_max_skip_p2align=yes 22743 else 22744 echo "configure: failed program was" >&5 22745 cat conftest.s >&5 22746 fi 22747 rm -f conftest.o conftest.s 22748 fi 22749fi 22750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5 22751$as_echo "$gcc_cv_as_max_skip_p2align" >&6; } 22752if test $gcc_cv_as_max_skip_p2align = yes; then 22753 22754$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h 22755 22756fi 22757 22758 22759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5 22760$as_echo_n "checking assembler for .literal16... " >&6; } 22761if ${gcc_cv_as_literal16+:} false; then : 22762 $as_echo_n "(cached) " >&6 22763else 22764 gcc_cv_as_literal16=no 22765 if test $in_tree_gas = yes; then 22766 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0` 22767 then gcc_cv_as_literal16=yes 22768fi 22769 elif test x$gcc_cv_as != x; then 22770 $as_echo '.literal16' > conftest.s 22771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 22772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 22773 (eval $ac_try) 2>&5 22774 ac_status=$? 22775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22776 test $ac_status = 0; }; } 22777 then 22778 gcc_cv_as_literal16=yes 22779 else 22780 echo "configure: failed program was" >&5 22781 cat conftest.s >&5 22782 fi 22783 rm -f conftest.o conftest.s 22784 fi 22785fi 22786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5 22787$as_echo "$gcc_cv_as_literal16" >&6; } 22788if test $gcc_cv_as_literal16 = yes; then 22789 22790$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h 22791 22792fi 22793 22794 22795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5 22796$as_echo_n "checking assembler for working .subsection -1... " >&6; } 22797if ${gcc_cv_as_subsection_m1+:} false; then : 22798 $as_echo_n "(cached) " >&6 22799else 22800 gcc_cv_as_subsection_m1=no 22801 if test $in_tree_gas = yes; then 22802 if test $in_tree_gas_is_elf = yes \ 22803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0` 22804 then gcc_cv_as_subsection_m1=yes 22805fi 22806 elif test x$gcc_cv_as != x; then 22807 $as_echo 'conftest_label1: .word 0 22808.subsection -1 22809conftest_label2: .word 0 22810.previous' > conftest.s 22811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 22812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 22813 (eval $ac_try) 2>&5 22814 ac_status=$? 22815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22816 test $ac_status = 0; }; } 22817 then 22818 if test x$gcc_cv_nm != x; then 22819 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 22820 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 22821 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1 22822 then : 22823 else gcc_cv_as_subsection_m1=yes 22824 fi 22825 rm -f conftest.nm1 conftest.nm2 22826 fi 22827 else 22828 echo "configure: failed program was" >&5 22829 cat conftest.s >&5 22830 fi 22831 rm -f conftest.o conftest.s 22832 fi 22833fi 22834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5 22835$as_echo "$gcc_cv_as_subsection_m1" >&6; } 22836if test $gcc_cv_as_subsection_m1 = yes; then 22837 22838$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h 22839 22840fi 22841 22842 22843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5 22844$as_echo_n "checking assembler for .weak... " >&6; } 22845if ${gcc_cv_as_weak+:} false; then : 22846 $as_echo_n "(cached) " >&6 22847else 22848 gcc_cv_as_weak=no 22849 if test $in_tree_gas = yes; then 22850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0` 22851 then gcc_cv_as_weak=yes 22852fi 22853 elif test x$gcc_cv_as != x; then 22854 $as_echo ' .weak foobar' > conftest.s 22855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 22856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 22857 (eval $ac_try) 2>&5 22858 ac_status=$? 22859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22860 test $ac_status = 0; }; } 22861 then 22862 gcc_cv_as_weak=yes 22863 else 22864 echo "configure: failed program was" >&5 22865 cat conftest.s >&5 22866 fi 22867 rm -f conftest.o conftest.s 22868 fi 22869fi 22870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5 22871$as_echo "$gcc_cv_as_weak" >&6; } 22872if test $gcc_cv_as_weak = yes; then 22873 22874$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h 22875 22876fi 22877 22878 22879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5 22880$as_echo_n "checking assembler for .weakref... " >&6; } 22881if ${gcc_cv_as_weakref+:} false; then : 22882 $as_echo_n "(cached) " >&6 22883else 22884 gcc_cv_as_weakref=no 22885 if test $in_tree_gas = yes; then 22886 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 22887 then gcc_cv_as_weakref=yes 22888fi 22889 elif test x$gcc_cv_as != x; then 22890 $as_echo ' .weakref foobar, barfnot' > conftest.s 22891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 22892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 22893 (eval $ac_try) 2>&5 22894 ac_status=$? 22895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22896 test $ac_status = 0; }; } 22897 then 22898 gcc_cv_as_weakref=yes 22899 else 22900 echo "configure: failed program was" >&5 22901 cat conftest.s >&5 22902 fi 22903 rm -f conftest.o conftest.s 22904 fi 22905fi 22906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5 22907$as_echo "$gcc_cv_as_weakref" >&6; } 22908if test $gcc_cv_as_weakref = yes; then 22909 22910$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h 22911 22912fi 22913 22914 22915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5 22916$as_echo_n "checking assembler for .nsubspa comdat... " >&6; } 22917if ${gcc_cv_as_nsubspa_comdat+:} false; then : 22918 $as_echo_n "(cached) " >&6 22919else 22920 gcc_cv_as_nsubspa_comdat=no 22921 if test $in_tree_gas = yes; then 22922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 22923 then gcc_cv_as_nsubspa_comdat=yes 22924fi 22925 elif test x$gcc_cv_as != x; then 22926 $as_echo ' .SPACE $TEXT$ 22927 .NSUBSPA $CODE$,COMDAT' > conftest.s 22928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 22929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 22930 (eval $ac_try) 2>&5 22931 ac_status=$? 22932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22933 test $ac_status = 0; }; } 22934 then 22935 gcc_cv_as_nsubspa_comdat=yes 22936 else 22937 echo "configure: failed program was" >&5 22938 cat conftest.s >&5 22939 fi 22940 rm -f conftest.o conftest.s 22941 fi 22942fi 22943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5 22944$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; } 22945if test $gcc_cv_as_nsubspa_comdat = yes; then 22946 22947$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h 22948 22949fi 22950 22951 22952# .hidden needs to be supported in both the assembler and the linker, 22953# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN. 22954# This is irritatingly difficult to feature test for; we have to check the 22955# date string after the version number. If we've got an in-tree 22956# ld, we don't know its patchlevel version, so we set the baseline at 2.13 22957# to be safe. 22958# The gcc_GAS_CHECK_FEATURE call just sets a cache variable. 22959case "${target}" in 22960 *-*-aix*) 22961 conftest_s=' .globl foobar,hidden' 22962 ;; 22963 *) 22964 conftest_s=' .hidden foobar 22965foobar:' 22966 ;; 22967esac 22968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5 22969$as_echo_n "checking assembler for .hidden... " >&6; } 22970if ${gcc_cv_as_hidden+:} false; then : 22971 $as_echo_n "(cached) " >&6 22972else 22973 gcc_cv_as_hidden=no 22974 if test $in_tree_gas = yes; then 22975 if test $in_tree_gas_is_elf = yes \ 22976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0` 22977 then gcc_cv_as_hidden=yes 22978fi 22979 elif test x$gcc_cv_as != x; then 22980 $as_echo "$conftest_s" > conftest.s 22981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 22983 (eval $ac_try) 2>&5 22984 ac_status=$? 22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22986 test $ac_status = 0; }; } 22987 then 22988 gcc_cv_as_hidden=yes 22989 else 22990 echo "configure: failed program was" >&5 22991 cat conftest.s >&5 22992 fi 22993 rm -f conftest.o conftest.s 22994 fi 22995fi 22996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5 22997$as_echo "$gcc_cv_as_hidden" >&6; } 22998 22999 23000case "${target}" in 23001 *-*-darwin*) 23002 # Darwin as has some visibility support, though with a different syntax. 23003 gcc_cv_as_hidden=yes 23004 ;; 23005esac 23006 23007# gnu_indirect_function type is an extension proposed at 23008# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime 23009# selection of function implementation 23010# Check whether --enable-gnu-indirect-function was given. 23011if test "${enable_gnu_indirect_function+set}" = set; then : 23012 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in 23013 yes | no) ;; 23014 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function. 23015Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 23016 esac 23017else 23018 enable_gnu_indirect_function="$default_gnu_indirect_function" 23019fi 23020 23021 23022gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi` 23023 23024cat >>confdefs.h <<_ACEOF 23025#define HAVE_GNU_INDIRECT_FUNCTION $gif 23026_ACEOF 23027 23028 23029 23030if test $in_tree_ld != yes ; then 23031 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` 23032 if echo "$ld_ver" | grep GNU > /dev/null; then 23033 if test x"$ld_is_gold" = xyes; then 23034 # GNU gold --version looks like this: 23035 # 23036 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11 23037 # 23038 # We extract the binutils version which is more familiar and specific 23039 # than the gold version. 23040 ld_vers=`echo $ld_ver | sed -n \ 23041 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 23042 else 23043 # GNU ld --version looks like this: 23044 # 23045 # GNU ld (GNU Binutils) 2.21.51.20110225 23046 ld_vers=`echo $ld_ver | sed -n \ 23047 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 23048 fi 23049 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'` 23050 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 23051 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 23052 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 23053 else 23054 case "${target}" in 23055 *-*-solaris2*) 23056 # Solaris 2 ld -V output looks like this for a regular version: 23057 # 23058 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699 23059 # 23060 # but test versions add stuff at the end: 23061 # 23062 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10 23063 # 23064 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version 23065 # numbers can be used in ld.so.1 feature checks even if a different 23066 # linker is configured. 23067 ld_ver=`$gcc_cv_ld -V 2>&1` 23068 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then 23069 ld_vers=`echo $ld_ver | sed -n \ 23070 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'` 23071 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 23072 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 23073 fi 23074 ;; 23075 esac 23076 fi 23077fi 23078 23079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5 23080$as_echo_n "checking linker for .hidden support... " >&6; } 23081if ${gcc_cv_ld_hidden+:} false; then : 23082 $as_echo_n "(cached) " >&6 23083else 23084 if test $in_tree_ld = yes ; then 23085 gcc_cv_ld_hidden=no 23086 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 \ 23087 && test $in_tree_ld_is_elf = yes; then 23088 gcc_cv_ld_hidden=yes 23089 fi 23090else 23091 gcc_cv_ld_hidden=yes 23092 if test x"$ld_is_gold" = xyes; then 23093 : 23094 elif echo "$ld_ver" | grep GNU > /dev/null; then 23095 case "${target}" in 23096 mmix-knuth-mmixware) 23097 # The linker emits by default mmo, not ELF, so "no" is appropriate. 23098 gcc_cv_ld_hidden=no 23099 ;; 23100 esac 23101 if test 0"$ld_date" -lt 20020404; then 23102 if test -n "$ld_date"; then 23103 # If there was date string, but was earlier than 2002-04-04, fail 23104 gcc_cv_ld_hidden=no 23105 elif test -z "$ld_vers"; then 23106 # If there was no date string nor ld version number, something is wrong 23107 gcc_cv_ld_hidden=no 23108 else 23109 test -z "$ld_vers_patch" && ld_vers_patch=0 23110 if test "$ld_vers_major" -lt 2; then 23111 gcc_cv_ld_hidden=no 23112 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then 23113 gcc_cv_ld_hidden="no" 23114 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then 23115 gcc_cv_ld_hidden=no 23116 fi 23117 fi 23118 fi 23119 else 23120 case "${target}" in 23121 *-*-aix[789]*) 23122 gcc_cv_ld_hidden=yes 23123 ;; 23124 *-*-darwin*) 23125 # Darwin ld has some visibility support. 23126 gcc_cv_ld_hidden=yes 23127 ;; 23128 hppa64*-*-hpux* | ia64*-*-hpux*) 23129 gcc_cv_ld_hidden=yes 23130 ;; 23131 *-*-solaris2.1[0-9]*) 23132 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but 23133 # .symbolic was only added in Solaris 9 12/02. 23134 gcc_cv_ld_hidden=yes 23135 ;; 23136 *) 23137 gcc_cv_ld_hidden=no 23138 ;; 23139 esac 23140 fi 23141fi 23142fi 23143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5 23144$as_echo "$gcc_cv_ld_hidden" >&6; } 23145libgcc_visibility=no 23146 23147 23148if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then 23149 libgcc_visibility=yes 23150 23151$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h 23152 23153fi 23154 23155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5 23156$as_echo_n "checking linker read-only and read-write section mixing... " >&6; } 23157gcc_cv_ld_ro_rw_mix=unknown 23158if test $in_tree_ld = yes ; then 23159 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 \ 23160 && test $in_tree_ld_is_elf = yes; then 23161 gcc_cv_ld_ro_rw_mix=read-write 23162 fi 23163elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 23164 echo '.section myfoosect, "a"' > conftest1.s 23165 echo '.section myfoosect, "aw"' > conftest2.s 23166 echo '.byte 1' >> conftest2.s 23167 echo '.section myfoosect, "a"' > conftest3.s 23168 echo '.byte 0' >> conftest3.s 23169 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \ 23170 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \ 23171 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \ 23172 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \ 23173 conftest2.o conftest3.o > /dev/null 2>&1; then 23174 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \ 23175 | sed -e '/myfoosect/!d' -e N` 23176 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then 23177 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then 23178 gcc_cv_ld_ro_rw_mix=read-only 23179 else 23180 gcc_cv_ld_ro_rw_mix=read-write 23181 fi 23182 fi 23183 fi 23184 rm -f conftest.* conftest[123].* 23185fi 23186if test x$gcc_cv_ld_ro_rw_mix = xread-write; then 23187 23188$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h 23189 23190fi 23191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5 23192$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; } 23193 23194# Check whether --enable-initfini-array was given. 23195if test "${enable_initfini_array+set}" = set; then : 23196 enableval=$enable_initfini_array; 23197else 23198 23199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 23200$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } 23201if ${gcc_cv_initfini_array+:} false; then : 23202 $as_echo_n "(cached) " >&6 23203else 23204 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then 23205 case "${target}" in 23206 ia64-*) 23207 if test "$cross_compiling" = yes; then : 23208 gcc_cv_initfini_array=no 23209else 23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23211/* end confdefs.h. */ 23212 23213#ifndef __ELF__ 23214#error Not an ELF OS 23215#endif 23216/* We turn on .preinit_array/.init_array/.fini_array support for ia64 23217 if it can be used. */ 23218static int x = -1; 23219int main (void) { return x; } 23220int foo (void) { x = 0; } 23221int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; 23222 23223_ACEOF 23224if ac_fn_cxx_try_run "$LINENO"; then : 23225 gcc_cv_initfini_array=yes 23226else 23227 gcc_cv_initfini_array=no 23228fi 23229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23230 conftest.$ac_objext conftest.beam conftest.$ac_ext 23231fi 23232;; 23233 *) 23234 gcc_cv_initfini_array=no 23235 if test $in_tree_ld = yes ; then 23236 if test "$gcc_cv_gld_major_version" -eq 2 \ 23237 -a "$gcc_cv_gld_minor_version" -ge 22 \ 23238 -o "$gcc_cv_gld_major_version" -gt 2 \ 23239 && test $in_tree_ld_is_elf = yes; then 23240 gcc_cv_initfini_array=yes 23241 fi 23242 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 23243 case $target:$gas in 23244 *:yes) 23245 sh_flags='"a"' 23246 sh_type='%progbits' 23247 ;; 23248 i?86-*-solaris2*:no | x86_64-*-solaris2*:no) 23249 sh_flags='"a"' 23250 sh_type='@progbits' 23251 ;; 23252 sparc*-*-solaris2*:no) 23253 sh_flags='#alloc' 23254 sh_type='#progbits' 23255 sh_quote='"' 23256 ;; 23257 esac 23258 case "$target:$gnu_ld" in 23259 *:yes) 23260 cat > conftest.s <<EOF 23261.section .dtors,$sh_flags,$sh_type 23262.balign 4 23263.byte 'A', 'A', 'A', 'A' 23264.section .ctors,$sh_flags,$sh_type 23265.balign 4 23266.byte 'B', 'B', 'B', 'B' 23267.section .fini_array.65530,$sh_flags,$sh_type 23268.balign 4 23269.byte 'C', 'C', 'C', 'C' 23270.section .init_array.65530,$sh_flags,$sh_type 23271.balign 4 23272.byte 'D', 'D', 'D', 'D' 23273.section .dtors.64528,$sh_flags,$sh_type 23274.balign 4 23275.byte 'E', 'E', 'E', 'E' 23276.section .ctors.64528,$sh_flags,$sh_type 23277.balign 4 23278.byte 'F', 'F', 'F', 'F' 23279.section .fini_array.01005,$sh_flags,$sh_type 23280.balign 4 23281.byte 'G', 'G', 'G', 'G' 23282.section .init_array.01005,$sh_flags,$sh_type 23283.balign 4 23284.byte 'H', 'H', 'H', 'H' 23285.text 23286.globl _start 23287_start: 23288EOF 23289 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 23290 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 23291 && $gcc_cv_objdump -s -j .init_array conftest \ 23292 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \ 23293 && $gcc_cv_objdump -s -j .fini_array conftest \ 23294 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then 23295 gcc_cv_initfini_array=yes 23296 fi 23297 ;; 23298 *-*-solaris2*:no) 23299 # When Solaris ld added constructor priority support, it was 23300 # decided to only handle .init_array.N/.fini_array.N since 23301 # there was no need for backwards compatibility with 23302 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate 23303 # sections with correct execution order resp. to 23304 # .init_array/.fini_array, while gld merges them into 23305 # .init_array/.fini_array. 23306 cat > conftest.s <<EOF 23307.section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type 23308.align 4 23309.byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C' 23310.section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type 23311.align 4 23312.byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D' 23313.section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type 23314.align 4 23315.byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G' 23316.section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type 23317.align 4 23318.byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H' 23319.text 23320.globl _start 23321_start: 23322EOF 23323 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \ 23324 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \ 23325 && $gcc_cv_objdump -s -j .init_array conftest \ 23326 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \ 23327 && $gcc_cv_objdump -s -j .fini_array conftest \ 23328 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then 23329 gcc_cv_initfini_array=yes 23330 fi 23331 ;; 23332 esac 23333 rm -f conftest conftest.* 23334 fi 23335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23336/* end confdefs.h. */ 23337 23338#ifndef __ELF__ 23339# error Not an ELF OS 23340#endif 23341#include <stdlib.h> 23342#if defined __GLIBC_PREREQ 23343# if __GLIBC_PREREQ (2, 4) 23344# else 23345# error GLIBC 2.4 required 23346# endif 23347#else 23348# if defined __sun__ && defined __svr4__ 23349 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ 23350# else 23351# error The C library not known to support .init_array/.fini_array 23352# endif 23353#endif 23354 23355_ACEOF 23356if ac_fn_cxx_try_cpp "$LINENO"; then : 23357 23358else 23359 gcc_cv_initfini_array=no 23360fi 23361rm -f conftest.err conftest.i conftest.$ac_ext;; 23362 esac 23363 else 23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5 23365$as_echo_n "checking cross compile... guessing... " >&6; } 23366 gcc_cv_initfini_array=no 23367 fi 23368fi 23369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5 23370$as_echo "$gcc_cv_initfini_array" >&6; } 23371 enable_initfini_array=$gcc_cv_initfini_array 23372 23373fi 23374 23375 23376cat >>confdefs.h <<_ACEOF 23377#define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi` 23378_ACEOF 23379 23380 23381 23382# Check if we have .[us]leb128, and support symbol arithmetic with it. 23383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5 23384$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; } 23385if ${gcc_cv_as_leb128+:} false; then : 23386 $as_echo_n "(cached) " >&6 23387else 23388 gcc_cv_as_leb128=no 23389 if test $in_tree_gas = yes; then 23390 if test $in_tree_gas_is_elf = yes \ 23391 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 23392 then gcc_cv_as_leb128=yes 23393fi 23394 elif test x$gcc_cv_as != x; then 23395 $as_echo ' .data 23396 .uleb128 L2 - L1 23397L1: 23398 .uleb128 1280 23399 .sleb128 -1010 23400L2:' > conftest.s 23401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23403 (eval $ac_try) 2>&5 23404 ac_status=$? 23405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23406 test $ac_status = 0; }; } 23407 then 23408 # GAS versions before 2.11 do not support uleb128, 23409 # despite appearing to. 23410 # ??? There exists an elf-specific test that will crash 23411 # the assembler. Perhaps it's better to figure out whether 23412 # arbitrary sections are supported and try the test. 23413 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q` 23414 if echo "$as_ver" | grep GNU > /dev/null; then 23415 as_vers=`echo $as_ver | sed -n \ 23416 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 23417 as_major=`expr "$as_vers" : '\([0-9]*\)'` 23418 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'` 23419 if test $as_major -eq 2 && test $as_minor -lt 11 23420 then : 23421 else gcc_cv_as_leb128=yes 23422 fi 23423 fi 23424 else 23425 echo "configure: failed program was" >&5 23426 cat conftest.s >&5 23427 fi 23428 rm -f conftest.o conftest.s 23429 fi 23430fi 23431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5 23432$as_echo "$gcc_cv_as_leb128" >&6; } 23433if test $gcc_cv_as_leb128 = yes; then 23434 23435$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h 23436 23437fi 23438if test $gcc_cv_as_leb128 != yes; then 23439 23440$as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h 23441 23442fi 23443 23444# Determine if an .eh_frame section is read-only. 23445gcc_fn_eh_frame_ro () { 23446 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \ 23447 $gcc_cv_objdump -h conftest.o 2>/dev/null | \ 23448 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null 23449} 23450 23451# Check if we have assembler support for unwind directives. 23452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5 23453$as_echo_n "checking assembler for cfi directives... " >&6; } 23454if ${gcc_cv_as_cfi_directive+:} false; then : 23455 $as_echo_n "(cached) " >&6 23456else 23457 gcc_cv_as_cfi_directive=no 23458 if test x$gcc_cv_as != x; then 23459 $as_echo ' .text 23460 .cfi_startproc 23461 .cfi_offset 0, 0 23462 .cfi_same_value 1 23463 .cfi_def_cfa 1, 2 23464 .cfi_escape 1, 2, 3, 4, 5 23465 .cfi_endproc' > conftest.s 23466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23468 (eval $ac_try) 2>&5 23469 ac_status=$? 23470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23471 test $ac_status = 0; }; } 23472 then 23473 case "$target" in 23474 *-*-solaris*) 23475 # If the linker used on Solaris (like Sun ld) isn't capable of merging 23476 # read-only and read-write sections, we need to make sure that the 23477 # assembler used emits read-write .eh_frame sections. 23478 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then 23479 gcc_cv_as_cfi_directive=yes 23480 elif test "x$gcc_cv_objdump" = x; then 23481 # No objdump, err on the side of caution. 23482 gcc_cv_as_cfi_directive=no 23483 else 23484 if test x$gas = xyes; then 23485 as_32_opt="--32" 23486 as_64_opt="--64" 23487 else 23488 as_32_opt="-m32" 23489 as_64_opt="-m64" 23490 fi 23491 case "$target" in 23492 sparc*-*-solaris2.*) 23493 # On Solaris/SPARC, .eh_frame sections should always be read-write. 23494 if gcc_fn_eh_frame_ro $as_32_opt \ 23495 || gcc_fn_eh_frame_ro $as_64_opt; then 23496 gcc_cv_as_cfi_directive=no 23497 else 23498 gcc_cv_as_cfi_directive=yes 23499 fi 23500 ;; 23501 i?86-*-solaris2.* | x86_64-*-solaris2.*) 23502 # On Solaris/x86, make sure that GCC and assembler agree on using 23503 # read-only .eh_frame sections for 64-bit. 23504 if gcc_fn_eh_frame_ro $as_32_opt; then 23505 gcc_cv_as_cfi_directive=no 23506 elif gcc_fn_eh_frame_ro $as_64_opt; then 23507 gcc_cv_as_cfi_directive=yes 23508 else 23509 gcc_cv_as_cfi_directive=no 23510 fi 23511 ;; 23512 esac 23513 fi 23514 ;; 23515 *-*-*) 23516 gcc_cv_as_cfi_directive=yes 23517 ;; 23518esac 23519 else 23520 echo "configure: failed program was" >&5 23521 cat conftest.s >&5 23522 fi 23523 rm -f conftest.o conftest.s 23524 fi 23525fi 23526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5 23527$as_echo "$gcc_cv_as_cfi_directive" >&6; } 23528 23529 23530if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then 23531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5 23532$as_echo_n "checking assembler for working cfi advance... " >&6; } 23533if ${gcc_cv_as_cfi_advance_working+:} false; then : 23534 $as_echo_n "(cached) " >&6 23535else 23536 gcc_cv_as_cfi_advance_working=no 23537 if test x$gcc_cv_as != x; then 23538 $as_echo ' .text 23539 .cfi_startproc 23540 .cfi_adjust_cfa_offset 64 23541 .skip 75040, 0 23542 .cfi_adjust_cfa_offset 128 23543 .cfi_endproc' > conftest.s 23544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23546 (eval $ac_try) 2>&5 23547 ac_status=$? 23548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23549 test $ac_status = 0; }; } 23550 then 23551 23552if $gcc_cv_readelf --debug-dump=frames conftest.o 2>/dev/null \ 23553 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then 23554 gcc_cv_as_cfi_advance_working=yes 23555fi 23556 23557 else 23558 echo "configure: failed program was" >&5 23559 cat conftest.s >&5 23560 fi 23561 rm -f conftest.o conftest.s 23562 fi 23563fi 23564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5 23565$as_echo "$gcc_cv_as_cfi_advance_working" >&6; } 23566 23567 23568else 23569 # no objdump, err on the side of caution 23570 gcc_cv_as_cfi_advance_working=no 23571fi 23572 23573 23574cat >>confdefs.h <<_ACEOF 23575#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \ 23576 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi` 23577_ACEOF 23578 23579 23580 23581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5 23582$as_echo_n "checking assembler for cfi personality directive... " >&6; } 23583if ${gcc_cv_as_cfi_personality_directive+:} false; then : 23584 $as_echo_n "(cached) " >&6 23585else 23586 gcc_cv_as_cfi_personality_directive=no 23587 if test x$gcc_cv_as != x; then 23588 $as_echo ' .text 23589 .cfi_startproc 23590 .cfi_personality 0, symbol 23591 .cfi_endproc' > conftest.s 23592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23594 (eval $ac_try) 2>&5 23595 ac_status=$? 23596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23597 test $ac_status = 0; }; } 23598 then 23599 gcc_cv_as_cfi_personality_directive=yes 23600 else 23601 echo "configure: failed program was" >&5 23602 cat conftest.s >&5 23603 fi 23604 rm -f conftest.o conftest.s 23605 fi 23606fi 23607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5 23608$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; } 23609 23610 23611 23612cat >>confdefs.h <<_ACEOF 23613#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi` 23614_ACEOF 23615 23616 23617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5 23618$as_echo_n "checking assembler for cfi sections directive... " >&6; } 23619if ${gcc_cv_as_cfi_sections_directive+:} false; then : 23620 $as_echo_n "(cached) " >&6 23621else 23622 gcc_cv_as_cfi_sections_directive=no 23623 if test x$gcc_cv_as != x; then 23624 $as_echo ' .text 23625 .cfi_sections .debug_frame, .eh_frame 23626 .cfi_startproc 23627 .cfi_endproc' > conftest.s 23628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23630 (eval $ac_try) 2>&5 23631 ac_status=$? 23632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23633 test $ac_status = 0; }; } 23634 then 23635 case $target_os in 23636 win32 | pe | cygwin* | mingw32*) 23637 # Need to check that we generated the correct relocation for the 23638 # .debug_frame section. This was fixed for binutils 2.21. 23639 gcc_cv_as_cfi_sections_directive=no 23640 if test "x$gcc_cv_objdump" != x; then 23641 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \ 23642 grep secrel > /dev/null; then 23643 gcc_cv_as_cfi_sections_directive=yes 23644 fi 23645 fi 23646 ;; 23647 *) 23648 gcc_cv_as_cfi_sections_directive=yes 23649 ;; 23650esac 23651 else 23652 echo "configure: failed program was" >&5 23653 cat conftest.s >&5 23654 fi 23655 rm -f conftest.o conftest.s 23656 fi 23657fi 23658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5 23659$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; } 23660 23661 23662 23663 23664cat >>confdefs.h <<_ACEOF 23665#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi` 23666_ACEOF 23667 23668 23669# GAS versions up to and including 2.11.0 may mis-optimize 23670# .eh_frame data. 23671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5 23672$as_echo_n "checking assembler for eh_frame optimization... " >&6; } 23673if ${gcc_cv_as_eh_frame+:} false; then : 23674 $as_echo_n "(cached) " >&6 23675else 23676 gcc_cv_as_eh_frame=no 23677 if test $in_tree_gas = yes; then 23678 if test $in_tree_gas_is_elf = yes \ 23679 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 23680 then gcc_cv_as_eh_frame=yes 23681fi 23682 elif test x$gcc_cv_as != x; then 23683 $as_echo ' .text 23684.LFB1: 23685 .4byte 0 23686.L1: 23687 .4byte 0 23688.LFE1: 23689 .section .eh_frame,"aw",@progbits 23690__FRAME_BEGIN__: 23691 .4byte .LECIE1-.LSCIE1 23692.LSCIE1: 23693 .4byte 0x0 23694 .byte 0x1 23695 .ascii "z\0" 23696 .byte 0x1 23697 .byte 0x78 23698 .byte 0x1a 23699 .byte 0x0 23700 .byte 0x4 23701 .4byte 1 23702 .p2align 1 23703.LECIE1: 23704.LSFDE1: 23705 .4byte .LEFDE1-.LASFDE1 23706.LASFDE1: 23707 .4byte .LASFDE1-__FRAME_BEGIN__ 23708 .4byte .LFB1 23709 .4byte .LFE1-.LFB1 23710 .byte 0x4 23711 .4byte .LFE1-.LFB1 23712 .byte 0x4 23713 .4byte .L1-.LFB1 23714.LEFDE1:' > conftest.s 23715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23717 (eval $ac_try) 2>&5 23718 ac_status=$? 23719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23720 test $ac_status = 0; }; } 23721 then 23722 cat > conftest.lit <<EOF 23723 0000 10000000 00000000 017a0001 781a0004 .........z..x... 23724 0010 01000000 12000000 18000000 00000000 ................ 23725 0020 08000000 04080000 0044 .........D 23726EOF 23727cat > conftest.big <<EOF 23728 0000 00000010 00000000 017a0001 781a0004 .........z..x... 23729 0010 00000001 00000012 00000018 00000000 ................ 23730 0020 00000008 04000000 0844 .........D 23731EOF 23732 # If the assembler didn't choke, and we can objdump, 23733 # and we got the correct data, then succeed. 23734 # The text in the here-document typically retains its unix-style line 23735 # endings, while the output of objdump will use host line endings. 23736 # Therefore, use diff -b for the comparisons. 23737 if test x$gcc_cv_objdump != x \ 23738 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ 23739 | tail -3 > conftest.got \ 23740 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \ 23741 || diff -b conftest.big conftest.got > /dev/null 2>&1; } 23742 then 23743 gcc_cv_as_eh_frame=yes 23744 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null' 23745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23746 (eval $ac_try) 2>&5 23747 ac_status=$? 23748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23749 test $ac_status = 0; }; }; then 23750 gcc_cv_as_eh_frame=buggy 23751 else 23752 # Uh oh, what do we do now? 23753 gcc_cv_as_eh_frame=no 23754 fi 23755 else 23756 echo "configure: failed program was" >&5 23757 cat conftest.s >&5 23758 fi 23759 rm -f conftest.o conftest.s 23760 fi 23761fi 23762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5 23763$as_echo "$gcc_cv_as_eh_frame" >&6; } 23764 23765 23766 23767if test $gcc_cv_as_eh_frame = buggy; then 23768 23769$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h 23770 23771fi 23772 23773# Test if the assembler supports the section flag 'e' or #exclude for 23774# specifying an excluded section. 23775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5 23776$as_echo_n "checking assembler for section exclude flag... " >&6; } 23777if ${gcc_cv_as_section_exclude_e+:} false; then : 23778 $as_echo_n "(cached) " >&6 23779else 23780 gcc_cv_as_section_exclude_e=no 23781 if test $in_tree_gas = yes; then 23782 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51` 23783 then gcc_cv_as_section_exclude_e=yes 23784fi 23785 elif test x$gcc_cv_as != x; then 23786 $as_echo '.section foo1,"e" 23787 .byte 0,0,0,0' > conftest.s 23788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 23789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23790 (eval $ac_try) 2>&5 23791 ac_status=$? 23792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23793 test $ac_status = 0; }; } 23794 then 23795 gcc_cv_as_section_exclude_e=yes 23796 else 23797 echo "configure: failed program was" >&5 23798 cat conftest.s >&5 23799 fi 23800 rm -f conftest.o conftest.s 23801 fi 23802fi 23803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5 23804$as_echo "$gcc_cv_as_section_exclude_e" >&6; } 23805 23806 23807if test $gcc_cv_as_section_exclude_e = no; then 23808 case "${target}" in 23809 # Solaris as uses #exclude instead. 23810 *-*-solaris2*) 23811 case "${target}" in 23812 sparc*-*-solaris2*) 23813 conftest_s='.section "foo1", #exclude' 23814 ;; 23815 i?86-*-solaris2* | x86_64-*-solaris2*) 23816 conftest_s='.section foo1, #exclude' 23817 ;; 23818 esac 23819 ;; 23820 esac 23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5 23822$as_echo_n "checking assembler for section exclude flag... " >&6; } 23823if ${gcc_cv_as_section_exclude_hash+:} false; then : 23824 $as_echo_n "(cached) " >&6 23825else 23826 gcc_cv_as_section_exclude_hash=no 23827 if test x$gcc_cv_as != x; then 23828 $as_echo "$conftest_s 23829 .byte 0,0,0,0" > conftest.s 23830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23832 (eval $ac_try) 2>&5 23833 ac_status=$? 23834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23835 test $ac_status = 0; }; } 23836 then 23837 gcc_cv_as_section_exclude_hash=yes 23838 else 23839 echo "configure: failed program was" >&5 23840 cat conftest.s >&5 23841 fi 23842 rm -f conftest.o conftest.s 23843 fi 23844fi 23845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5 23846$as_echo "$gcc_cv_as_section_exclude_hash" >&6; } 23847 23848 23849fi 23850 23851cat >>confdefs.h <<_ACEOF 23852#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` 23853_ACEOF 23854 23855 23856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 23857$as_echo_n "checking assembler for section merging support... " >&6; } 23858if ${gcc_cv_as_shf_merge+:} false; then : 23859 $as_echo_n "(cached) " >&6 23860else 23861 gcc_cv_as_shf_merge=no 23862 if test $in_tree_gas = yes; then 23863 if test $in_tree_gas_is_elf = yes \ 23864 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 23865 then gcc_cv_as_shf_merge=yes 23866fi 23867 elif test x$gcc_cv_as != x; then 23868 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s 23869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 23870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23871 (eval $ac_try) 2>&5 23872 ac_status=$? 23873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23874 test $ac_status = 0; }; } 23875 then 23876 gcc_cv_as_shf_merge=yes 23877 else 23878 echo "configure: failed program was" >&5 23879 cat conftest.s >&5 23880 fi 23881 rm -f conftest.o conftest.s 23882 fi 23883fi 23884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 23885$as_echo "$gcc_cv_as_shf_merge" >&6; } 23886 23887 23888if test $gcc_cv_as_shf_merge = no; then 23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5 23890$as_echo_n "checking assembler for section merging support... " >&6; } 23891if ${gcc_cv_as_shf_merge+:} false; then : 23892 $as_echo_n "(cached) " >&6 23893else 23894 gcc_cv_as_shf_merge=no 23895 if test $in_tree_gas = yes; then 23896 if test $in_tree_gas_is_elf = yes \ 23897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 23898 then gcc_cv_as_shf_merge=yes 23899fi 23900 elif test x$gcc_cv_as != x; then 23901 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s 23902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 23903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23904 (eval $ac_try) 2>&5 23905 ac_status=$? 23906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23907 test $ac_status = 0; }; } 23908 then 23909 gcc_cv_as_shf_merge=yes 23910 else 23911 echo "configure: failed program was" >&5 23912 cat conftest.s >&5 23913 fi 23914 rm -f conftest.o conftest.s 23915 fi 23916fi 23917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5 23918$as_echo "$gcc_cv_as_shf_merge" >&6; } 23919 23920 23921fi 23922case "$target" in 23923 i?86-*-solaris2.10* | x86_64-*-solaris2.10*) 23924 # SHF_MERGE support in Solaris 10/x86 ld is broken. 23925 if test x"$gnu_ld" = xno; then 23926 gcc_cv_as_shf_merge=no 23927 fi 23928 ;; 23929esac 23930 23931cat >>confdefs.h <<_ACEOF 23932#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi` 23933_ACEOF 23934 23935 23936gcc_cv_ld_aligned_shf_merge=yes 23937case "$target" in 23938 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems 23939 # relinking on Solaris 11 < 11.4. 23940 sparc*-*-solaris2.10*) 23941 if test x"$gnu_ld" = xno; then 23942 gcc_cv_ld_aligned_shf_merge=no 23943 fi 23944 ;; 23945 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for 23946 # alignment > 1. 23947 sparc*-*-solaris2.11*) 23948 if test x"$gnu_ld" = xno \ 23949 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then 23950 gcc_cv_ld_aligned_shf_merge=no 23951 fi 23952 ;; 23953esac 23954 23955cat >>confdefs.h <<_ACEOF 23956#define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi` 23957_ACEOF 23958 23959 23960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5 23961$as_echo_n "checking assembler for stabs directive... " >&6; } 23962if ${gcc_cv_as_stabs_directive+:} false; then : 23963 $as_echo_n "(cached) " >&6 23964else 23965 gcc_cv_as_stabs_directive=no 23966 if test x$gcc_cv_as != x; then 23967 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s 23968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23970 (eval $ac_try) 2>&5 23971 ac_status=$? 23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23973 test $ac_status = 0; }; } 23974 then 23975 gcc_cv_as_stabs_directive=yes 23976 else 23977 echo "configure: failed program was" >&5 23978 cat conftest.s >&5 23979 fi 23980 rm -f conftest.o conftest.s 23981 fi 23982fi 23983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5 23984$as_echo "$gcc_cv_as_stabs_directive" >&6; } 23985if test $gcc_cv_as_stabs_directive = yes; then 23986 23987$as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h 23988 23989fi 23990 23991 23992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5 23993$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; } 23994if ${gcc_cv_as_comdat_group+:} false; then : 23995 $as_echo_n "(cached) " >&6 23996else 23997 gcc_cv_as_comdat_group=no 23998 if test $in_tree_gas = yes; then 23999 if test $in_tree_gas_is_elf = yes \ 24000 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 24001 then gcc_cv_as_comdat_group=yes 24002fi 24003 elif test x$gcc_cv_as != x; then 24004 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s 24005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24007 (eval $ac_try) 2>&5 24008 ac_status=$? 24009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24010 test $ac_status = 0; }; } 24011 then 24012 gcc_cv_as_comdat_group=yes 24013 else 24014 echo "configure: failed program was" >&5 24015 cat conftest.s >&5 24016 fi 24017 rm -f conftest.o conftest.s 24018 fi 24019fi 24020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5 24021$as_echo "$gcc_cv_as_comdat_group" >&6; } 24022 24023 24024if test $gcc_cv_as_comdat_group = yes; then 24025 gcc_cv_as_comdat_group_percent=no 24026 gcc_cv_as_comdat_group_group=no 24027else 24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5 24029$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; } 24030if ${gcc_cv_as_comdat_group_percent+:} false; then : 24031 $as_echo_n "(cached) " >&6 24032else 24033 gcc_cv_as_comdat_group_percent=no 24034 if test $in_tree_gas = yes; then 24035 if test $in_tree_gas_is_elf = yes \ 24036 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 24037 then gcc_cv_as_comdat_group_percent=yes 24038fi 24039 elif test x$gcc_cv_as != x; then 24040 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s 24041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 24042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24043 (eval $ac_try) 2>&5 24044 ac_status=$? 24045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24046 test $ac_status = 0; }; } 24047 then 24048 gcc_cv_as_comdat_group_percent=yes 24049 else 24050 echo "configure: failed program was" >&5 24051 cat conftest.s >&5 24052 fi 24053 rm -f conftest.o conftest.s 24054 fi 24055fi 24056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5 24057$as_echo "$gcc_cv_as_comdat_group_percent" >&6; } 24058 24059 24060 if test $gcc_cv_as_comdat_group_percent = yes; then 24061 gcc_cv_as_comdat_group_group=no 24062 else 24063 case "${target}" in 24064 # Sun as uses a completely different syntax. 24065 *-*-solaris2*) 24066 case "${target}" in 24067 sparc*-*-solaris2*) 24068 conftest_s=' 24069 .group foo,".text%foo",#comdat 24070 .section ".text%foo", #alloc,#execinstr,#progbits 24071 .globl foo 24072 foo: 24073 ' 24074 ;; 24075 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) 24076 conftest_s=' 24077 .group foo,.text%foo,#comdat 24078 .section .text%foo, "ax", @progbits 24079 .globl foo 24080 foo: 24081 ' 24082 ;; 24083 esac 24084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5 24085$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; } 24086if ${gcc_cv_as_comdat_group_group+:} false; then : 24087 $as_echo_n "(cached) " >&6 24088else 24089 gcc_cv_as_comdat_group_group=no 24090 if test x$gcc_cv_as != x; then 24091 $as_echo "$conftest_s" > conftest.s 24092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24094 (eval $ac_try) 2>&5 24095 ac_status=$? 24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24097 test $ac_status = 0; }; } 24098 then 24099 gcc_cv_as_comdat_group_group=yes 24100 else 24101 echo "configure: failed program was" >&5 24102 cat conftest.s >&5 24103 fi 24104 rm -f conftest.o conftest.s 24105 fi 24106fi 24107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5 24108$as_echo "$gcc_cv_as_comdat_group_group" >&6; } 24109 24110 24111 ;; 24112 esac 24113 if test -z "${gcc_cv_as_comdat_group_group+set}"; then 24114 gcc_cv_as_comdat_group_group=no 24115 fi 24116 fi 24117fi 24118if test x"$ld_is_gold" = xyes; then 24119 comdat_group=yes 24120elif test $in_tree_ld = yes ; then 24121 comdat_group=no 24122 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 \ 24123 && test $in_tree_ld_is_elf = yes; then 24124 comdat_group=yes 24125 fi 24126elif echo "$ld_ver" | grep GNU > /dev/null; then 24127 comdat_group=yes 24128 if test 0"$ld_date" -lt 20050308; then 24129 if test -n "$ld_date"; then 24130 # If there was date string, but was earlier than 2005-03-08, fail 24131 comdat_group=no 24132 elif test "$ld_vers_major" -lt 2; then 24133 comdat_group=no 24134 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 24135 comdat_group=no 24136 fi 24137 fi 24138else 24139 case "${target}" in 24140 *-*-solaris2.1[1-9]*) 24141 comdat_group=no 24142 # Sun ld has COMDAT group support since Solaris 9, but it doesn't 24143 # interoperate with GNU as until Solaris 11 build 130, i.e. ld 24144 # version 1.688. 24145 # 24146 # If using Sun as for COMDAT group as emitted by GCC, one needs at 24147 # least ld version 1.2267. 24148 if test "$ld_vers_major" -gt 1; then 24149 comdat_group=yes 24150 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then 24151 comdat_group=yes 24152 elif test "$ld_vers_minor" -ge 2267; then 24153 comdat_group=yes 24154 fi 24155 ;; 24156 *) 24157 # Assume linkers other than GNU ld don't support COMDAT group. 24158 comdat_group=no 24159 ;; 24160 esac 24161fi 24162# Allow overriding the automatic COMDAT group tests above. 24163# Check whether --enable-comdat was given. 24164if test "${enable_comdat+set}" = set; then : 24165 enableval=$enable_comdat; comdat_group="$enable_comdat" 24166fi 24167 24168if test $comdat_group = no; then 24169 gcc_cv_as_comdat_group=no 24170 gcc_cv_as_comdat_group_percent=no 24171 gcc_cv_as_comdat_group_group=no 24172fi 24173 24174cat >>confdefs.h <<_ACEOF 24175#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \ 24176 || test $gcc_cv_as_comdat_group_percent = yes \ 24177 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi` 24178_ACEOF 24179 24180 24181# Restrict this test to Solaris/x86: other targets define this statically. 24182case "${target}" in 24183 i?86-*-solaris2* | x86_64-*-solaris2*) 24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5 24185$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; } 24186 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then 24187 hidden_linkonce=yes 24188 else 24189 case "${target}" in 24190 # Full support for hidden thunks in linkonce sections only appeared in 24191 # Solaris 11/OpenSolaris. 24192 *-*-solaris2.1[1-9]*) 24193 hidden_linkonce=yes 24194 ;; 24195 *) 24196 hidden_linkonce=no 24197 ;; 24198 esac 24199 fi 24200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5 24201$as_echo "$hidden_linkonce" >&6; } 24202 24203cat >>confdefs.h <<_ACEOF 24204#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi` 24205_ACEOF 24206 24207 ;; 24208esac 24209 24210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5 24211$as_echo_n "checking assembler for line table is_stmt support... " >&6; } 24212if ${gcc_cv_as_is_stmt+:} false; then : 24213 $as_echo_n "(cached) " >&6 24214else 24215 gcc_cv_as_is_stmt=no 24216 if test $in_tree_gas = yes; then 24217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92` 24218 then gcc_cv_as_is_stmt=yes 24219fi 24220 elif test x$gcc_cv_as != x; then 24221 $as_echo ' .text 24222 .file 1 "conf.c" 24223 .loc 1 1 0 is_stmt 1' > conftest.s 24224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24226 (eval $ac_try) 2>&5 24227 ac_status=$? 24228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24229 test $ac_status = 0; }; } 24230 then 24231 gcc_cv_as_is_stmt=yes 24232 else 24233 echo "configure: failed program was" >&5 24234 cat conftest.s >&5 24235 fi 24236 rm -f conftest.o conftest.s 24237 fi 24238fi 24239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5 24240$as_echo "$gcc_cv_as_is_stmt" >&6; } 24241if test $gcc_cv_as_is_stmt = yes; then 24242 24243$as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h 24244 24245fi 24246 24247 24248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5 24249$as_echo_n "checking assembler for line table discriminator support... " >&6; } 24250if ${gcc_cv_as_discriminator+:} false; then : 24251 $as_echo_n "(cached) " >&6 24252else 24253 gcc_cv_as_discriminator=no 24254 if test $in_tree_gas = yes; then 24255 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51` 24256 then gcc_cv_as_discriminator=yes 24257fi 24258 elif test x$gcc_cv_as != x; then 24259 $as_echo ' .text 24260 .file 1 "conf.c" 24261 .loc 1 1 0 discriminator 1' > conftest.s 24262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 24263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24264 (eval $ac_try) 2>&5 24265 ac_status=$? 24266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24267 test $ac_status = 0; }; } 24268 then 24269 gcc_cv_as_discriminator=yes 24270 else 24271 echo "configure: failed program was" >&5 24272 cat conftest.s >&5 24273 fi 24274 rm -f conftest.o conftest.s 24275 fi 24276fi 24277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5 24278$as_echo "$gcc_cv_as_discriminator" >&6; } 24279if test $gcc_cv_as_discriminator = yes; then 24280 24281$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h 24282 24283fi 24284 24285 24286# Thread-local storage - the check is heavily parameterized. 24287conftest_s= 24288tls_first_major= 24289tls_first_minor= 24290tls_as_opt= 24291case "$target" in 24292 alpha*-*-*) 24293 conftest_s=' 24294 .section ".tdata","awT",@progbits 24295foo: .long 25 24296 .text 24297 ldq $27,__tls_get_addr($29) !literal!1 24298 lda $16,foo($29) !tlsgd!1 24299 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1 24300 ldq $27,__tls_get_addr($29) !literal!2 24301 lda $16,foo($29) !tlsldm!2 24302 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2 24303 ldq $1,foo($29) !gotdtprel 24304 ldah $2,foo($29) !dtprelhi 24305 lda $3,foo($2) !dtprello 24306 lda $4,foo($29) !dtprel 24307 ldq $1,foo($29) !gottprel 24308 ldah $2,foo($29) !tprelhi 24309 lda $3,foo($2) !tprello 24310 lda $4,foo($29) !tprel' 24311 tls_first_major=2 24312 tls_first_minor=13 24313 tls_as_opt=--fatal-warnings 24314 ;; 24315 arc*-*-*) 24316 conftest_s=' 24317 add_s r0,r0, @foo@tpoff' 24318 tls_first_major=2 24319 tls_first_minor=23 24320 ;; 24321 cris-*-*|crisv32-*-*) 24322 conftest_s=' 24323 .section ".tdata","awT",@progbits 24324x: .long 25 24325 .text 24326 move.d x:IE,$r10 24327 nop' 24328 tls_first_major=2 24329 tls_first_minor=20 24330 tls_as_opt=--fatal-warnings 24331 ;; 24332 frv*-*-*) 24333 conftest_s=' 24334 .section ".tdata","awT",@progbits 24335x: .long 25 24336 .text 24337 call #gettlsoff(x)' 24338 tls_first_major=2 24339 tls_first_minor=14 24340 ;; 24341 hppa*-*-linux* | hppa*-*-netbsd*) 24342 conftest_s=' 24343t1: .reg %r20 24344t2: .reg %r21 24345gp: .reg %r19 24346 .section ".tdata","awT",@progbits 24347foo: .long 25 24348 .text 24349 .align 4 24350 addil LT%foo-$tls_gdidx$,gp 24351 ldo RT%foo-$tls_gdidx$(%r1),%arg0 24352 b __tls_get_addr 24353 nop 24354 addil LT%foo-$tls_ldidx$,gp 24355 b __tls_get_addr 24356 ldo RT%foo-$tls_ldidx$(%r1),%arg0 24357 addil LR%foo-$tls_dtpoff$,%ret0 24358 ldo RR%foo-$tls_dtpoff$(%r1),%t1 24359 mfctl %cr27,%t1 24360 addil LT%foo-$tls_ieoff$,gp 24361 ldw RT%foo-$tls_ieoff$(%r1),%t2 24362 add %t1,%t2,%t3 24363 mfctl %cr27,%t1 24364 addil LR%foo-$tls_leoff$,%t1 24365 ldo RR%foo-$tls_leoff$(%r1),%t2' 24366 tls_first_major=2 24367 tls_first_minor=15 24368 tls_as_opt=--fatal-warnings 24369 ;; 24370 arm*-*-*) 24371 conftest_s=' 24372 .section ".tdata","awT",%progbits 24373foo: .long 25 24374 .text 24375.word foo(gottpoff) 24376.word foo(tpoff) 24377.word foo(tlsgd) 24378.word foo(tlsldm) 24379.word foo(tlsldo)' 24380 tls_first_major=2 24381 tls_first_minor=17 24382 ;; 24383 i[34567]86-*-* | x86_64-*-*) 24384 case "$target" in 24385 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*) 24386 on_solaris=yes 24387 ;; 24388 *) 24389 on_solaris=no 24390 ;; 24391 esac 24392 if test x$on_solaris = xyes && test x$gas_flag = xno; then 24393 conftest_s=' 24394 .section .tdata,"awt",@progbits' 24395 tls_first_major=0 24396 tls_first_minor=0 24397 tls_section_flag=t 24398 24399$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h 24400 24401 else 24402 conftest_s=' 24403 .section ".tdata","awT",@progbits' 24404 tls_first_major=2 24405 tls_first_minor=14 24406 tls_section_flag=T 24407 tls_as_opt="--fatal-warnings" 24408 fi 24409 case "$target" in 24410 i[34567]86-*-*) 24411 conftest_s="$conftest_s 24412foo: .long 25 24413 .text 24414 movl %gs:0, %eax 24415 leal foo@tlsgd(,%ebx,1), %eax 24416 leal foo@tlsldm(%ebx), %eax 24417 leal foo@dtpoff(%eax), %edx 24418 movl foo@gottpoff(%ebx), %eax 24419 subl foo@gottpoff(%ebx), %eax 24420 addl foo@gotntpoff(%ebx), %eax 24421 movl foo@indntpoff, %eax 24422 movl \$foo@tpoff, %eax 24423 subl \$foo@tpoff, %eax 24424 leal foo@ntpoff(%ecx), %eax" 24425 ;; 24426 x86_64-*-*) 24427 if test x$on_solaris = xyes; then 24428 case $gas_flag in 24429 yes) tls_as_opt="$tls_as_opt --64" ;; 24430 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;; 24431 esac 24432 fi 24433 conftest_s="$conftest_s 24434foo: .long 25 24435 .text 24436 movq %fs:0, %rax 24437 leaq foo@tlsgd(%rip), %rdi 24438 leaq foo@tlsld(%rip), %rdi 24439 leaq foo@dtpoff(%rax), %rdx 24440 movq foo@gottpoff(%rip), %rax 24441 movq \$foo@tpoff, %rax" 24442 ;; 24443 esac 24444 ;; 24445 ia64-*-*) 24446 conftest_s=' 24447 .section ".tdata","awT",@progbits 24448foo: data8 25 24449 .text 24450 addl r16 = @ltoff(@dtpmod(foo#)), gp 24451 addl r17 = @ltoff(@dtprel(foo#)), gp 24452 addl r18 = @ltoff(@tprel(foo#)), gp 24453 addl r19 = @dtprel(foo#), gp 24454 adds r21 = @dtprel(foo#), r13 24455 movl r23 = @dtprel(foo#) 24456 addl r20 = @tprel(foo#), gp 24457 adds r22 = @tprel(foo#), r13 24458 movl r24 = @tprel(foo#)' 24459 tls_first_major=2 24460 tls_first_minor=13 24461 tls_as_opt=--fatal-warnings 24462 ;; 24463 microblaze*-*-*) 24464 conftest_s=' 24465 .section .tdata,"awT",@progbits 24466x: 24467 .word 2 24468 .text 24469 addik r5,r20,x@TLSGD 24470 addik r5,r20,x@TLSLDM' 24471 tls_first_major=2 24472 tls_first_minor=20 24473 tls_as_opt='--fatal-warnings' 24474 ;; 24475 mips*-*-*) 24476 conftest_s=' 24477 .section .tdata,"awT",@progbits 24478x: 24479 .word 2 24480 .text 24481 addiu $4, $28, %tlsgd(x) 24482 addiu $4, $28, %tlsldm(x) 24483 lui $4, %dtprel_hi(x) 24484 addiu $4, $4, %dtprel_lo(x) 24485 lw $4, %gottprel(x)($28) 24486 lui $4, %tprel_hi(x) 24487 addiu $4, $4, %tprel_lo(x)' 24488 tls_first_major=2 24489 tls_first_minor=16 24490 tls_as_opt='-32 --fatal-warnings' 24491 ;; 24492 m68k-*-*|m5407-*-*) 24493 conftest_s=' 24494 .section .tdata,"awT",@progbits 24495x: 24496 .word 2 24497 .text 24498foo: 24499 move.l x@TLSGD(%a5),%a0 24500 move.l x@TLSLDM(%a5),%a0 24501 move.l x@TLSLDO(%a5),%a0 24502 move.l x@TLSIE(%a5),%a0 24503 move.l x@TLSLE(%a5),%a0' 24504 tls_first_major=2 24505 tls_first_minor=19 24506 tls_as_opt='--fatal-warnings' 24507 ;; 24508 nios2-*-*) 24509 conftest_s=' 24510 .section ".tdata","awT",@progbits' 24511 tls_first_major=2 24512 tls_first_minor=23 24513 tls_as_opt="--fatal-warnings" 24514 ;; 24515 aarch64*-*-*) 24516 conftest_s=' 24517 .section ".tdata","awT",%progbits 24518foo: .long 25 24519 .text 24520 adrp x0, :tlsgd:x 24521 add x0, x0, #:tlsgd_lo12:x 24522 bl __tls_get_addr 24523 nop' 24524 tls_first_major=2 24525 tls_first_minor=20 24526 tls_as_opt='--fatal-warnings' 24527 ;; 24528 or1k*-*-*) 24529 conftest_s=' 24530 .section ".tdata","awT",@progbits 24531foo: .long 25 24532 .text 24533 l.movhi r3, tpoffha(foo) 24534 l.add r3, r3, r10 24535 l.lwz r4, tpofflo(foo)(r3)' 24536 tls_first_major=2 24537 tls_first_minor=30 24538 tls_as_opt=--fatal-warnings 24539 ;; 24540 powerpc-ibm-aix*) 24541 conftest_s=' 24542 .extern __get_tpointer 24543 .toc 24544LC..1: 24545 .tc a[TC],a[TL]@le 24546 .csect .text[PR] 24547.tlstest: 24548 lwz 9,LC..1(2) 24549 bla __get_tpointer 24550 lwzx 3,9,3 24551 .globl a 24552 .csect a[TL],4 24553a: 24554 .space 4' 24555 tls_first_major=0 24556 tls_first_minor=0 24557 ;; 24558 powerpc64*-*-*) 24559 conftest_s=' 24560 .section ".tdata","awT",@progbits 24561 .align 3 24562ld0: .space 8 24563ld1: .space 8 24564x1: .space 8 24565x2: .space 8 24566x3: .space 8 24567 .text 24568 addi 3,2,ld0@got@tlsgd 24569 bl .__tls_get_addr 24570 nop 24571 addi 3,2,ld1@toc 24572 bl .__tls_get_addr 24573 nop 24574 addi 3,2,x1@got@tlsld 24575 bl .__tls_get_addr 24576 nop 24577 addi 9,3,x1@dtprel 24578 bl .__tls_get_addr 24579 nop 24580 addis 9,3,x2@dtprel@ha 24581 addi 9,9,x2@dtprel@l 24582 bl .__tls_get_addr 24583 nop 24584 ld 9,x3@got@dtprel(2) 24585 add 9,9,3 24586 bl .__tls_get_addr 24587 nop' 24588 tls_first_major=2 24589 tls_first_minor=14 24590 tls_as_opt="-a64 --fatal-warnings" 24591 ;; 24592 powerpc*-*-*) 24593 conftest_s=' 24594 .section ".tdata","awT",@progbits 24595 .align 2 24596ld0: .space 4 24597ld1: .space 4 24598x1: .space 4 24599x2: .space 4 24600x3: .space 4 24601 .text 24602 addi 3,31,ld0@got@tlsgd 24603 bl __tls_get_addr 24604 addi 3,31,x1@got@tlsld 24605 bl __tls_get_addr 24606 addi 9,3,x1@dtprel 24607 addis 9,3,x2@dtprel@ha 24608 addi 9,9,x2@dtprel@l 24609 lwz 9,x3@got@tprel(31) 24610 add 9,9,x@tls 24611 addi 9,2,x1@tprel 24612 addis 9,2,x2@tprel@ha 24613 addi 9,9,x2@tprel@l' 24614 tls_first_major=2 24615 tls_first_minor=14 24616 tls_as_opt="-a32 --fatal-warnings" 24617 ;; 24618 riscv*-*-*) 24619 conftest_s=' 24620 .section .tdata,"awT",@progbits 24621x: .word 2 24622 .text 24623 la.tls.gd a0,x 24624 call __tls_get_addr' 24625 tls_first_major=2 24626 tls_first_minor=21 24627 tls_as_opt='--fatal-warnings' 24628 ;; 24629 s390-*-*) 24630 conftest_s=' 24631 .section ".tdata","awT",@progbits 24632foo: .long 25 24633 .text 24634 .long foo@TLSGD 24635 .long foo@TLSLDM 24636 .long foo@DTPOFF 24637 .long foo@NTPOFF 24638 .long foo@GOTNTPOFF 24639 .long foo@INDNTPOFF 24640 l %r1,foo@GOTNTPOFF(%r12) 24641 l %r1,0(%r1):tls_load:foo 24642 bas %r14,0(%r1,%r13):tls_gdcall:foo 24643 bas %r14,0(%r1,%r13):tls_ldcall:foo' 24644 tls_first_major=2 24645 tls_first_minor=14 24646 tls_as_opt="-m31 --fatal-warnings" 24647 ;; 24648 s390x-*-*) 24649 conftest_s=' 24650 .section ".tdata","awT",@progbits 24651foo: .long 25 24652 .text 24653 .quad foo@TLSGD 24654 .quad foo@TLSLDM 24655 .quad foo@DTPOFF 24656 .quad foo@NTPOFF 24657 .quad foo@GOTNTPOFF 24658 lg %r1,foo@GOTNTPOFF(%r12) 24659 larl %r1,foo@INDNTPOFF 24660 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo 24661 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo' 24662 tls_first_major=2 24663 tls_first_minor=14 24664 tls_as_opt="-m64 -Aesame --fatal-warnings" 24665 ;; 24666 sh-*-* | sh[34]-*-* | sh*l*-*-*) 24667 conftest_s=' 24668 .section ".tdata","awT",@progbits 24669foo: .long 25 24670 .text 24671 .long foo@TLSGD 24672 .long foo@TLSLDM 24673 .long foo@DTPOFF 24674 .long foo@GOTTPOFF 24675 .long foo@TPOFF' 24676 tls_first_major=2 24677 tls_first_minor=13 24678 tls_as_opt=--fatal-warnings 24679 ;; 24680 sparc*-*-*) 24681 case "$target" in 24682 sparc*-sun-solaris2.*) 24683 on_solaris=yes 24684 ;; 24685 *) 24686 on_solaris=no 24687 ;; 24688 esac 24689 if test x$on_solaris = xyes && test x$gas_flag = xno; then 24690 conftest_s=' 24691 .section ".tdata",#alloc,#write,#tls' 24692 tls_first_major=0 24693 tls_first_minor=0 24694 else 24695 conftest_s=' 24696 .section ".tdata","awT",@progbits' 24697 tls_first_major=2 24698 tls_first_minor=14 24699 tls_as_opt="-32 --fatal-warnings" 24700 fi 24701 conftest_s="$conftest_s 24702foo: .long 25 24703 .text 24704 sethi %tgd_hi22(foo), %o0 24705 add %o0, %tgd_lo10(foo), %o1 24706 add %l7, %o1, %o0, %tgd_add(foo) 24707 call __tls_get_addr, %tgd_call(foo) 24708 sethi %tldm_hi22(foo), %l1 24709 add %l1, %tldm_lo10(foo), %l2 24710 add %l7, %l2, %o0, %tldm_add(foo) 24711 call __tls_get_addr, %tldm_call(foo) 24712 sethi %tldo_hix22(foo), %l3 24713 xor %l3, %tldo_lox10(foo), %l4 24714 add %o0, %l4, %l5, %tldo_add(foo) 24715 sethi %tie_hi22(foo), %o3 24716 add %o3, %tie_lo10(foo), %o3 24717 ld [%l7 + %o3], %o2, %tie_ld(foo) 24718 add %g7, %o2, %o4, %tie_add(foo) 24719 sethi %tle_hix22(foo), %l1 24720 xor %l1, %tle_lox10(foo), %o5 24721 ld [%g7 + %o5], %o1" 24722 ;; 24723 tilepro*-*-*) 24724 conftest_s=' 24725 .section ".tdata","awT",@progbits 24726foo: .long 25 24727 .text 24728 addli r0, zero, tls_gd(foo) 24729 auli r0, zero, tls_gd_ha16(foo) 24730 addli r0, r0, tls_gd_lo16(foo) 24731 jal __tls_get_addr 24732 addli r0, zero, tls_ie(foo) 24733 auli r0, r0, tls_ie_ha16(foo) 24734 addli r0, r0, tls_ie_lo16(foo)' 24735 tls_first_major=2 24736 tls_first_minor=22 24737 tls_as_opt="--fatal-warnings" 24738 ;; 24739 tilegx*-*-*) 24740 conftest_s=' 24741 .section ".tdata","awT",@progbits 24742foo: .long 25 24743 .text 24744 shl16insli r0, zero, hw0_last_tls_gd(foo) 24745 shl16insli r0, zero, hw1_last_tls_gd(foo) 24746 shl16insli r0, r0, hw0_tls_gd(foo) 24747 jal __tls_get_addr 24748 shl16insli r0, zero, hw1_last_tls_ie(foo) 24749 shl16insli r0, r0, hw0_tls_ie(foo)' 24750 tls_first_major=2 24751 tls_first_minor=22 24752 tls_as_opt="--fatal-warnings" 24753 ;; 24754 xtensa*-*-*) 24755 conftest_s=' 24756 .section ".tdata","awT",@progbits 24757foo: .long 25 24758 .text 24759 movi a8, foo@TLSFUNC 24760 movi a10, foo@TLSARG 24761 callx8.tls a8, foo@TLSCALL' 24762 tls_first_major=2 24763 tls_first_minor=19 24764 ;; 24765esac 24766set_have_as_tls=no 24767if test "x$enable_tls" = xno ; then 24768 : # TLS explicitly disabled. 24769elif test "x$enable_tls" = xyes ; then 24770 set_have_as_tls=yes # TLS explicitly enabled. 24771elif test -z "$tls_first_major"; then 24772 : # If we don't have a check, assume no support. 24773else 24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5 24775$as_echo_n "checking assembler for thread-local storage support... " >&6; } 24776if ${gcc_cv_as_tls+:} false; then : 24777 $as_echo_n "(cached) " >&6 24778else 24779 gcc_cv_as_tls=no 24780 if test $in_tree_gas = yes; then 24781 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0` 24782 then gcc_cv_as_tls=yes 24783fi 24784 elif test x$gcc_cv_as != x; then 24785 $as_echo "$conftest_s" > conftest.s 24786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5' 24787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24788 (eval $ac_try) 2>&5 24789 ac_status=$? 24790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24791 test $ac_status = 0; }; } 24792 then 24793 gcc_cv_as_tls=yes 24794 else 24795 echo "configure: failed program was" >&5 24796 cat conftest.s >&5 24797 fi 24798 rm -f conftest.o conftest.s 24799 fi 24800fi 24801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5 24802$as_echo "$gcc_cv_as_tls" >&6; } 24803if test $gcc_cv_as_tls = yes; then 24804 set_have_as_tls=yes 24805fi 24806 24807fi 24808if test $set_have_as_tls = yes ; then 24809 24810$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h 24811 24812fi 24813 24814# Target-specific assembler checks. 24815 24816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5 24817$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; } 24818gcc_cv_ld_static_dynamic=no 24819gcc_cv_ld_static_option='-Bstatic' 24820gcc_cv_ld_dynamic_option='-Bdynamic' 24821if test $in_tree_ld = yes ; then 24822 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 24823 gcc_cv_ld_static_dynamic=yes 24824 fi 24825elif test x$gcc_cv_ld != x; then 24826 # Check if linker supports -Bstatic/-Bdynamic option 24827 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \ 24828 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then 24829 gcc_cv_ld_static_dynamic=yes 24830 else 24831 case "$target" in 24832 # AIX ld uses -b flags 24833 *-*-aix4.[23]* | *-*-aix[5-9]*) 24834 gcc_cv_ld_static_dynamic=yes 24835 gcc_cv_ld_static_option="-bstatic" 24836 gcc_cv_ld_dynamic_option="-bdynamic" 24837 ;; 24838 # HP-UX ld uses -a flags to select between shared and archive. 24839 *-*-hpux*) 24840 if test x"$gnu_ld" = xno; then 24841 gcc_cv_ld_static_dynamic=yes 24842 gcc_cv_ld_static_option="-aarchive_shared" 24843 gcc_cv_ld_dynamic_option="-adefault" 24844 fi 24845 ;; 24846 # Solaris 2 ld always supports -Bstatic/-Bdynamic. 24847 *-*-solaris2*) 24848 gcc_cv_ld_static_dynamic=yes 24849 ;; 24850 esac 24851 fi 24852fi 24853if test x"$gcc_cv_ld_static_dynamic" = xyes; then 24854 24855$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h 24856 24857 24858cat >>confdefs.h <<_ACEOF 24859#define LD_STATIC_OPTION "$gcc_cv_ld_static_option" 24860_ACEOF 24861 24862 24863cat >>confdefs.h <<_ACEOF 24864#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option" 24865_ACEOF 24866 24867fi 24868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5 24869$as_echo "$gcc_cv_ld_static_dynamic" >&6; } 24870 24871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5 24872$as_echo_n "checking linker --version-script option... " >&6; } 24873gcc_cv_ld_version_script=no 24874ld_version_script_option='' 24875if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then 24876 gcc_cv_ld_version_script=yes 24877 ld_version_script_option='--version-script' 24878elif test x$gcc_cv_ld != x; then 24879 case "$target" in 24880 # Solaris 2 ld always supports -M. It also supports a subset of 24881 # --version-script since Solaris 11.4, but requires 24882 # -z gnu-version-script-compat to activate. 24883 *-*-solaris2*) 24884 gcc_cv_ld_version_script=yes 24885 ld_version_script_option='-M' 24886 ;; 24887 esac 24888fi 24889# Don't AC_DEFINE result, only used in jit/Make-lang.in so far. 24890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5 24891$as_echo "$gcc_cv_ld_version_script" >&6; } 24892 24893 24894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5 24895$as_echo_n "checking linker soname option... " >&6; } 24896gcc_cv_ld_soname=no 24897if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then 24898 gcc_cv_ld_soname=yes 24899 ld_soname_option='-soname' 24900elif test x$gcc_cv_ld != x; then 24901 case "$target" in 24902 *-*-darwin*) 24903 gcc_cv_ld_soname=yes 24904 ld_soname_option='-install_name' 24905 ;; 24906 # Solaris 2 ld always supports -h. It also supports --soname for GNU 24907 # ld compatiblity since some Solaris 10 update. 24908 *-*-solaris2*) 24909 gcc_cv_ld_soname=yes 24910 ld_soname_option='-h' 24911 ;; 24912 esac 24913fi 24914# Don't AC_DEFINE result, only used in jit/Make-lang.in so far. 24915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5 24916$as_echo "$gcc_cv_ld_soname" >&6; } 24917 24918 24919if test x"$demangler_in_ld" = xyes; then 24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5 24921$as_echo_n "checking linker --demangle support... " >&6; } 24922 gcc_cv_ld_demangle=no 24923 if test $in_tree_ld = yes; then 24924 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 \ 24925 gcc_cv_ld_demangle=yes 24926 fi 24927 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then 24928 # Check if the GNU linker supports --demangle option 24929 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then 24930 gcc_cv_ld_demangle=yes 24931 fi 24932 fi 24933 if test x"$gcc_cv_ld_demangle" = xyes; then 24934 24935$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h 24936 24937 fi 24938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5 24939$as_echo "$gcc_cv_ld_demangle" >&6; } 24940fi 24941 24942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5 24943$as_echo_n "checking linker plugin support... " >&6; } 24944gcc_cv_lto_plugin=0 24945if test -f liblto_plugin.la; then 24946 save_ld_ver="$ld_ver" 24947 save_ld_vers_major="$ld_vers_major" 24948 save_ld_vers_minor="$ld_vers_minor" 24949 save_ld_is_gold="$ld_is_gold" 24950 24951 ld_is_gold=no 24952 24953 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then 24954 ld_ver="GNU ld" 24955 # FIXME: ld_is_gold? 24956 ld_vers_major="$gcc_cv_gld_major_version" 24957 ld_vers_minor="$gcc_cv_gld_minor_version" 24958 else 24959 # Determine plugin linker version. 24960 # FIXME: Partial duplicate from above, generalize. 24961 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q` 24962 if echo "$ld_ver" | grep GNU > /dev/null; then 24963 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then 24964 ld_is_gold=yes 24965 ld_vers=`echo $ld_ver | sed -n \ 24966 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'` 24967 else 24968 ld_vers=`echo $ld_ver | sed -n \ 24969 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'` 24970 fi 24971 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'` 24972 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'` 24973 fi 24974 fi 24975 24976 # Determine plugin support. 24977 if echo "$ld_ver" | grep GNU > /dev/null; then 24978 # Require GNU ld or gold 2.21+ for plugin support by default. 24979 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then 24980 gcc_cv_lto_plugin=2 24981 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20. 24982 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then 24983 gcc_cv_lto_plugin=1 24984 fi 24985 fi 24986 24987 ld_ver="$save_ld_ver" 24988 ld_vers_major="$save_ld_vers_major" 24989 ld_vers_minor="$save_ld_vers_minor" 24990 ld_is_gold="$save_ld_is_gold" 24991fi 24992 24993cat >>confdefs.h <<_ACEOF 24994#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin 24995_ACEOF 24996 24997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5 24998$as_echo "$gcc_cv_lto_plugin" >&6; } 24999 25000# Target OS-specific assembler checks. 25001 25002case "$target_os" in 25003 darwin*) 25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5 25005$as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; } 25006if ${gcc_cv_as_mmacosx_version_min+:} false; then : 25007 $as_echo_n "(cached) " >&6 25008else 25009 gcc_cv_as_mmacosx_version_min=no 25010 if test x$gcc_cv_as != x; then 25011 $as_echo '.text' > conftest.s 25012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5' 25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25014 (eval $ac_try) 2>&5 25015 ac_status=$? 25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25017 test $ac_status = 0; }; } 25018 then 25019 gcc_cv_as_mmacosx_version_min=yes 25020 else 25021 echo "configure: failed program was" >&5 25022 cat conftest.s >&5 25023 fi 25024 rm -f conftest.o conftest.s 25025 fi 25026fi 25027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5 25028$as_echo "$gcc_cv_as_mmacosx_version_min" >&6; } 25029if test $gcc_cv_as_mmacosx_version_min = yes; then 25030 25031$as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h 25032 25033fi 25034 25035 ;; 25036esac 25037 25038# Target CPU-specific assembler checks. 25039 25040case "$target" in 25041 aarch64*-*-*) 25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5 25043$as_echo_n "checking assembler for -mabi option... " >&6; } 25044if ${gcc_cv_as_aarch64_mabi+:} false; then : 25045 $as_echo_n "(cached) " >&6 25046else 25047 gcc_cv_as_aarch64_mabi=no 25048 if test x$gcc_cv_as != x; then 25049 $as_echo '.text' > conftest.s 25050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5' 25051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25052 (eval $ac_try) 2>&5 25053 ac_status=$? 25054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25055 test $ac_status = 0; }; } 25056 then 25057 gcc_cv_as_aarch64_mabi=yes 25058 else 25059 echo "configure: failed program was" >&5 25060 cat conftest.s >&5 25061 fi 25062 rm -f conftest.o conftest.s 25063 fi 25064fi 25065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5 25066$as_echo "$gcc_cv_as_aarch64_mabi" >&6; } 25067 25068 25069 if test x$gcc_cv_as_aarch64_mabi = xyes; then 25070 25071$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h 25072 25073 else 25074 if test x$with_abi = xilp32; then 25075 as_fn_error $? "Assembler does not support -mabi=ilp32.\ 25076 Upgrade the Assembler." "$LINENO" 5 25077 fi 25078 if test x"$with_multilib_list" = xdefault; then 25079 TM_MULTILIB_CONFIG=lp64 25080 else 25081 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'` 25082 for aarch64_multilib in ${aarch64_multilibs}; do 25083 case ${aarch64_multilib} in 25084 ilp32) 25085 as_fn_error $? "Assembler does not support -mabi=ilp32.\ 25086 Upgrade the Assembler." "$LINENO" 5 25087 ;; 25088 *) 25089 ;; 25090 esac 25091 done 25092 fi 25093 fi 25094 # Check if we have binutils support for relocations types needed by -fpic 25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5 25096$as_echo_n "checking assembler for -fpic relocs... " >&6; } 25097if ${gcc_cv_as_aarch64_picreloc+:} false; then : 25098 $as_echo_n "(cached) " >&6 25099else 25100 gcc_cv_as_aarch64_picreloc=no 25101 if test x$gcc_cv_as != x; then 25102 $as_echo ' 25103 .text 25104 ldr x0, [x2, #:gotpage_lo15:globalsym] 25105 ' > conftest.s 25106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25108 (eval $ac_try) 2>&5 25109 ac_status=$? 25110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25111 test $ac_status = 0; }; } 25112 then 25113 gcc_cv_as_aarch64_picreloc=yes 25114 else 25115 echo "configure: failed program was" >&5 25116 cat conftest.s >&5 25117 fi 25118 rm -f conftest.o conftest.s 25119 fi 25120fi 25121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5 25122$as_echo "$gcc_cv_as_aarch64_picreloc" >&6; } 25123if test $gcc_cv_as_aarch64_picreloc = yes; then 25124 25125$as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h 25126 25127fi 25128 25129 # Enable Branch Target Identification Mechanism and Return Address 25130 # Signing by default. 25131 # Check whether --enable-standard-branch-protection was given. 25132if test "${enable_standard_branch_protection+set}" = set; then : 25133 enableval=$enable_standard_branch_protection; 25134 case $enableval in 25135 yes) 25136 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1" 25137 ;; 25138 no) 25139 ;; 25140 *) 25141 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\ 25142 Valid choices are 'yes' and 'no'." "$LINENO" 5 25143 ;; 25144 esac 25145 25146fi 25147 25148 # Enable default workaround for AArch64 Cortex-A53 erratum 835769. 25149 # Check whether --enable-fix-cortex-a53-835769 was given. 25150if test "${enable_fix_cortex_a53_835769+set}" = set; then : 25151 enableval=$enable_fix_cortex_a53_835769; 25152 case $enableval in 25153 yes) 25154 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1" 25155 ;; 25156 no) 25157 ;; 25158 *) 25159 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\ 25160 Valid choices are 'yes' and 'no'." "$LINENO" 5 25161 ;; 25162 25163 esac 25164 25165fi 25166 25167 # Enable default workaround for AArch64 Cortex-A53 erratum 843419. 25168 # Check whether --enable-fix-cortex-a53-843419 was given. 25169if test "${enable_fix_cortex_a53_843419+set}" = set; then : 25170 enableval=$enable_fix_cortex_a53_843419; 25171 case $enableval in 25172 yes) 25173 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1" 25174 ;; 25175 no) 25176 ;; 25177 *) 25178 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\ 25179 Valid choices are 'yes' and 'no'." "$LINENO" 5 25180 ;; 25181 25182 esac 25183 25184fi 25185 25186 ;; 25187 25188 # All TARGET_ABI_OSF targets. 25189 alpha*-*-linux* | alpha*-*-*bsd*) 25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5 25191$as_echo_n "checking assembler for explicit relocation support... " >&6; } 25192if ${gcc_cv_as_alpha_explicit_relocs+:} false; then : 25193 $as_echo_n "(cached) " >&6 25194else 25195 gcc_cv_as_alpha_explicit_relocs=no 25196 if test $in_tree_gas = yes; then 25197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0` 25198 then gcc_cv_as_alpha_explicit_relocs=yes 25199fi 25200 elif test x$gcc_cv_as != x; then 25201 $as_echo ' .set nomacro 25202 .text 25203 extbl $3, $2, $3 !lituse_bytoff!1 25204 ldq $2, a($29) !literal!1 25205 ldq $4, b($29) !literal!2 25206 ldq_u $3, 0($2) !lituse_base!1 25207 ldq $27, f($29) !literal!5 25208 jsr $26, ($27), f !lituse_jsr!5 25209 ldah $29, 0($26) !gpdisp!3 25210 lda $0, c($29) !gprel 25211 ldah $1, d($29) !gprelhigh 25212 lda $1, d($1) !gprellow 25213 lda $29, 0($29) !gpdisp!3' > conftest.s 25214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25216 (eval $ac_try) 2>&5 25217 ac_status=$? 25218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25219 test $ac_status = 0; }; } 25220 then 25221 gcc_cv_as_alpha_explicit_relocs=yes 25222 else 25223 echo "configure: failed program was" >&5 25224 cat conftest.s >&5 25225 fi 25226 rm -f conftest.o conftest.s 25227 fi 25228fi 25229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5 25230$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; } 25231if test $gcc_cv_as_alpha_explicit_relocs = yes; then 25232 25233$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h 25234 25235fi 25236 25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5 25238$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; } 25239if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then : 25240 $as_echo_n "(cached) " >&6 25241else 25242 gcc_cv_as_alpha_jsrdirect_relocs=no 25243 if test $in_tree_gas = yes; then 25244 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90` 25245 then gcc_cv_as_alpha_jsrdirect_relocs=yes 25246fi 25247 elif test x$gcc_cv_as != x; then 25248 $as_echo ' .set nomacro 25249 .text 25250 ldq $27, a($29) !literal!1 25251 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s 25252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25254 (eval $ac_try) 2>&5 25255 ac_status=$? 25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25257 test $ac_status = 0; }; } 25258 then 25259 gcc_cv_as_alpha_jsrdirect_relocs=yes 25260 else 25261 echo "configure: failed program was" >&5 25262 cat conftest.s >&5 25263 fi 25264 rm -f conftest.o conftest.s 25265 fi 25266fi 25267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5 25268$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; } 25269if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then 25270 25271$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h 25272 25273fi 25274 25275 ;; 25276 25277 avr-*-*) 25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5 25279$as_echo_n "checking assembler for --mlink-relax option... " >&6; } 25280if ${gcc_cv_as_avr_mlink_relax+:} false; then : 25281 $as_echo_n "(cached) " >&6 25282else 25283 gcc_cv_as_avr_mlink_relax=no 25284 if test x$gcc_cv_as != x; then 25285 $as_echo '.text' > conftest.s 25286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5' 25287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25288 (eval $ac_try) 2>&5 25289 ac_status=$? 25290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25291 test $ac_status = 0; }; } 25292 then 25293 gcc_cv_as_avr_mlink_relax=yes 25294 else 25295 echo "configure: failed program was" >&5 25296 cat conftest.s >&5 25297 fi 25298 rm -f conftest.o conftest.s 25299 fi 25300fi 25301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5 25302$as_echo "$gcc_cv_as_avr_mlink_relax" >&6; } 25303if test $gcc_cv_as_avr_mlink_relax = yes; then 25304 25305$as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h 25306 25307fi 25308 25309 25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5 25311$as_echo_n "checking assembler for -mrmw option... " >&6; } 25312if ${gcc_cv_as_avr_mrmw+:} false; then : 25313 $as_echo_n "(cached) " >&6 25314else 25315 gcc_cv_as_avr_mrmw=no 25316 if test x$gcc_cv_as != x; then 25317 $as_echo '.text' > conftest.s 25318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5' 25319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25320 (eval $ac_try) 2>&5 25321 ac_status=$? 25322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25323 test $ac_status = 0; }; } 25324 then 25325 gcc_cv_as_avr_mrmw=yes 25326 else 25327 echo "configure: failed program was" >&5 25328 cat conftest.s >&5 25329 fi 25330 rm -f conftest.o conftest.s 25331 fi 25332fi 25333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5 25334$as_echo "$gcc_cv_as_avr_mrmw" >&6; } 25335if test $gcc_cv_as_avr_mrmw = yes; then 25336 25337$as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h 25338 25339fi 25340 25341 25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5 25343$as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; } 25344if ${gcc_cv_as_avr_mgccisr+:} false; then : 25345 $as_echo_n "(cached) " >&6 25346else 25347 gcc_cv_as_avr_mgccisr=no 25348 if test x$gcc_cv_as != x; then 25349 $as_echo '.text 25350 __gcc_isr 1 25351 __gcc_isr 2 25352 __gcc_isr 0,r24 25353 ' > conftest.s 25354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5' 25355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25356 (eval $ac_try) 2>&5 25357 ac_status=$? 25358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25359 test $ac_status = 0; }; } 25360 then 25361 gcc_cv_as_avr_mgccisr=yes 25362 else 25363 echo "configure: failed program was" >&5 25364 cat conftest.s >&5 25365 fi 25366 rm -f conftest.o conftest.s 25367 fi 25368fi 25369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5 25370$as_echo "$gcc_cv_as_avr_mgccisr" >&6; } 25371if test $gcc_cv_as_avr_mgccisr = yes; then 25372 25373$as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h 25374 25375fi 25376 25377 25378 # Check how default linker description file implements .rodata for 25379 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to 25380 # RAM so avr-gcc skips __do_copy_data for .rodata objects. 25381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5 25382$as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; } 25383 cat > conftest.s <<EOF 25384 .section .rodata,"a",@progbits 25385 .global xxvaryy 25386 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy". 25387 xxvaryy: 25388 .word 1 25389EOF 25390 rm -f conftest.nm 25391 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o' 25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25393 (eval $ac_try) 2>&5 25394 ac_status=$? 25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25396 test $ac_status = 0; }; } 25397 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf' 25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25399 (eval $ac_try) 2>&5 25400 ac_status=$? 25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25402 test $ac_status = 0; }; } 25403 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm' 25404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25405 (eval $ac_try) 2>&5 25406 ac_status=$? 25407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25408 test $ac_status = 0; }; } 25409 if test -s conftest.nm 25410 then 25411 if grep ' R xxvaryy' conftest.nm > /dev/null; then 25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25413$as_echo "yes" >&6; } 25414 25415$as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h 25416 25417 else 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5 25419$as_echo "no: avrxmega3 .rodata located in RAM" >&6; } 25420 echo "$as_me: nm output was" >&5 25421 cat conftest.nm >&5 25422 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`" 25423 { $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 25424$as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;} 25425 fi 25426 else 25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 25428$as_echo "test failed" >&6; } 25429 echo "$as_me: failed program was" >&5 25430 cat conftest.s >&5 25431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5 25432$as_echo "$as_me: WARNING: see \`config.log' for details" >&2;} 25433 fi 25434 rm -f conftest.s conftest.o conftest.elf conftest.nm 25435 ;; 25436 25437 cris-*-*) 25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5 25439$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; } 25440if ${gcc_cv_as_cris_no_mul_bug+:} false; then : 25441 $as_echo_n "(cached) " >&6 25442else 25443 gcc_cv_as_cris_no_mul_bug=no 25444 if test $in_tree_gas = yes; then 25445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 25446 then gcc_cv_as_cris_no_mul_bug=yes 25447fi 25448 elif test x$gcc_cv_as != x; then 25449 $as_echo '.text' > conftest.s 25450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5' 25451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25452 (eval $ac_try) 2>&5 25453 ac_status=$? 25454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25455 test $ac_status = 0; }; } 25456 then 25457 gcc_cv_as_cris_no_mul_bug=yes 25458 else 25459 echo "configure: failed program was" >&5 25460 cat conftest.s >&5 25461 fi 25462 rm -f conftest.o conftest.s 25463 fi 25464fi 25465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5 25466$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; } 25467if test $gcc_cv_as_cris_no_mul_bug = yes; then 25468 25469$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h 25470 25471fi 25472 25473 ;; 25474 25475 sparc*-*-*) 25476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5 25477$as_echo_n "checking assembler for -relax option... " >&6; } 25478if ${gcc_cv_as_sparc_relax+:} false; then : 25479 $as_echo_n "(cached) " >&6 25480else 25481 gcc_cv_as_sparc_relax=no 25482 if test x$gcc_cv_as != x; then 25483 $as_echo '.text' > conftest.s 25484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5' 25485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25486 (eval $ac_try) 2>&5 25487 ac_status=$? 25488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25489 test $ac_status = 0; }; } 25490 then 25491 gcc_cv_as_sparc_relax=yes 25492 else 25493 echo "configure: failed program was" >&5 25494 cat conftest.s >&5 25495 fi 25496 rm -f conftest.o conftest.s 25497 fi 25498fi 25499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5 25500$as_echo "$gcc_cv_as_sparc_relax" >&6; } 25501if test $gcc_cv_as_sparc_relax = yes; then 25502 25503$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h 25504 25505fi 25506 25507 25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5 25509$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; } 25510if ${gcc_cv_as_sparc_gotdata_op+:} false; then : 25511 $as_echo_n "(cached) " >&6 25512else 25513 gcc_cv_as_sparc_gotdata_op=no 25514 if test x$gcc_cv_as != x; then 25515 $as_echo '.text 25516.align 4 25517foo: 25518 nop 25519bar: 25520 sethi %gdop_hix22(foo), %g1 25521 xor %g1, %gdop_lox10(foo), %g1 25522 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s 25523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25525 (eval $ac_try) 2>&5 25526 ac_status=$? 25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25528 test $ac_status = 0; }; } 25529 then 25530 if test x$gcc_cv_ld != x \ 25531 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 25532 if test x$gcc_cv_objdump != x; then 25533 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \ 25534 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then 25535 gcc_cv_as_sparc_gotdata_op=no 25536 else 25537 gcc_cv_as_sparc_gotdata_op=yes 25538 fi 25539 fi 25540 fi 25541 rm -f conftest 25542 else 25543 echo "configure: failed program was" >&5 25544 cat conftest.s >&5 25545 fi 25546 rm -f conftest.o conftest.s 25547 fi 25548fi 25549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5 25550$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; } 25551if test $gcc_cv_as_sparc_gotdata_op = yes; then 25552 25553$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h 25554 25555fi 25556 25557 25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5 25559$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; } 25560if ${gcc_cv_as_sparc_ua_pcrel+:} false; then : 25561 $as_echo_n "(cached) " >&6 25562else 25563 gcc_cv_as_sparc_ua_pcrel=no 25564 if test x$gcc_cv_as != x; then 25565 $as_echo '.text 25566foo: 25567 nop 25568.data 25569.align 4 25570.byte 0 25571.uaword %r_disp32(foo)' > conftest.s 25572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 25573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25574 (eval $ac_try) 2>&5 25575 ac_status=$? 25576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25577 test $ac_status = 0; }; } 25578 then 25579 if test x$gcc_cv_ld != x \ 25580 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then 25581 gcc_cv_as_sparc_ua_pcrel=yes 25582 fi 25583 rm -f conftest 25584 else 25585 echo "configure: failed program was" >&5 25586 cat conftest.s >&5 25587 fi 25588 rm -f conftest.o conftest.s 25589 fi 25590fi 25591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5 25592$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; } 25593if test $gcc_cv_as_sparc_ua_pcrel = yes; then 25594 25595$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h 25596 25597 25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 25599$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; } 25600if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then : 25601 $as_echo_n "(cached) " >&6 25602else 25603 gcc_cv_as_sparc_ua_pcrel_hidden=no 25604 if test x$gcc_cv_as != x; then 25605 $as_echo '.data 25606.align 4 25607.byte 0x31 25608.uaword %r_disp32(foo) 25609.byte 0x32, 0x33, 0x34 25610.global foo 25611.hidden foo 25612foo: 25613.skip 4' > conftest.s 25614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5' 25615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25616 (eval $ac_try) 2>&5 25617 ac_status=$? 25618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25619 test $ac_status = 0; }; } 25620 then 25621 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 25622 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \ 25623 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \ 25624 | grep ' 31000000 07323334' > /dev/null 2>&1; then 25625 if $gcc_cv_objdump -R conftest 2> /dev/null \ 25626 | grep 'DISP32' > /dev/null 2>&1; then 25627 : 25628 else 25629 gcc_cv_as_sparc_ua_pcrel_hidden=yes 25630 fi 25631 fi 25632 rm -f conftest 25633 else 25634 echo "configure: failed program was" >&5 25635 cat conftest.s >&5 25636 fi 25637 rm -f conftest.o conftest.s 25638 fi 25639fi 25640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5 25641$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; } 25642if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then 25643 25644$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h 25645 25646fi 25647 25648 25649fi 25650 # unaligned pcrel relocs 25651 25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5 25653$as_echo_n "checking assembler for offsetable %lo()... " >&6; } 25654if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then : 25655 $as_echo_n "(cached) " >&6 25656else 25657 gcc_cv_as_sparc_offsetable_lo10=no 25658 if test x$gcc_cv_as != x; then 25659 $as_echo '.text 25660 or %g1, %lo(ab) + 12, %g1 25661 or %g1, %lo(ab + 12), %g1' > conftest.s 25662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5' 25663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25664 (eval $ac_try) 2>&5 25665 ac_status=$? 25666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25667 test $ac_status = 0; }; } 25668 then 25669 if test x$gcc_cv_objdump != x \ 25670 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \ 25671 | grep ' 82106000 82106000' > /dev/null 2>&1; then 25672 gcc_cv_as_sparc_offsetable_lo10=yes 25673 fi 25674 else 25675 echo "configure: failed program was" >&5 25676 cat conftest.s >&5 25677 fi 25678 rm -f conftest.o conftest.s 25679 fi 25680fi 25681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5 25682$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; } 25683if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then 25684 25685$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h 25686 25687fi 25688 25689 25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5 25691$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; } 25692if ${gcc_cv_as_sparc_fmaf+:} false; then : 25693 $as_echo_n "(cached) " >&6 25694else 25695 gcc_cv_as_sparc_fmaf=no 25696 if test x$gcc_cv_as != x; then 25697 $as_echo '.text 25698 .register %g2, #scratch 25699 .register %g3, #scratch 25700 .align 4 25701 fmaddd %f0, %f2, %f4, %f6 25702 addxccc %g1, %g2, %g3 25703 fsrl32 %f2, %f4, %f8 25704 fnaddd %f10, %f12, %f14' > conftest.s 25705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5' 25706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25707 (eval $ac_try) 2>&5 25708 ac_status=$? 25709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25710 test $ac_status = 0; }; } 25711 then 25712 gcc_cv_as_sparc_fmaf=yes 25713 else 25714 echo "configure: failed program was" >&5 25715 cat conftest.s >&5 25716 fi 25717 rm -f conftest.o conftest.s 25718 fi 25719fi 25720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5 25721$as_echo "$gcc_cv_as_sparc_fmaf" >&6; } 25722if test $gcc_cv_as_sparc_fmaf = yes; then 25723 25724$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h 25725 25726fi 25727 25728 25729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5 25730$as_echo_n "checking assembler for SPARC4 instructions... " >&6; } 25731if ${gcc_cv_as_sparc_sparc4+:} false; then : 25732 $as_echo_n "(cached) " >&6 25733else 25734 gcc_cv_as_sparc_sparc4=no 25735 if test x$gcc_cv_as != x; then 25736 $as_echo '.text 25737 .register %g2, #scratch 25738 .register %g3, #scratch 25739 .align 4 25740 cxbe %g2, %g3, 1f 257411: cwbneg %g2, %g3, 1f 257421: sha1 25743 md5 25744 aes_kexpand0 %f4, %f6, %f8 25745 des_round %f38, %f40, %f42, %f44 25746 camellia_f %f54, %f56, %f58, %f60 25747 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s 25748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5' 25749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25750 (eval $ac_try) 2>&5 25751 ac_status=$? 25752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25753 test $ac_status = 0; }; } 25754 then 25755 gcc_cv_as_sparc_sparc4=yes 25756 else 25757 echo "configure: failed program was" >&5 25758 cat conftest.s >&5 25759 fi 25760 rm -f conftest.o conftest.s 25761 fi 25762fi 25763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5 25764$as_echo "$gcc_cv_as_sparc_sparc4" >&6; } 25765if test $gcc_cv_as_sparc_sparc4 = yes; then 25766 25767$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h 25768 25769fi 25770 25771 25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5 25773$as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; } 25774if ${gcc_cv_as_sparc_sparc5+:} false; then : 25775 $as_echo_n "(cached) " >&6 25776else 25777 gcc_cv_as_sparc_sparc5=no 25778 if test x$gcc_cv_as != x; then 25779 $as_echo '.text 25780 .register %g2, #scratch 25781 .register %g3, #scratch 25782 .align 4 25783 subxc %g1, %g2, %g3 25784 fpadd8 %f0, %f2, %f4' > conftest.s 25785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5' 25786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25787 (eval $ac_try) 2>&5 25788 ac_status=$? 25789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25790 test $ac_status = 0; }; } 25791 then 25792 gcc_cv_as_sparc_sparc5=yes 25793 else 25794 echo "configure: failed program was" >&5 25795 cat conftest.s >&5 25796 fi 25797 rm -f conftest.o conftest.s 25798 fi 25799fi 25800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5 25801$as_echo "$gcc_cv_as_sparc_sparc5" >&6; } 25802if test $gcc_cv_as_sparc_sparc5 = yes; then 25803 25804$as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h 25805 25806fi 25807 25808 25809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5 25810$as_echo_n "checking assembler for SPARC6 instructions... " >&6; } 25811if ${gcc_cv_as_sparc_sparc6+:} false; then : 25812 $as_echo_n "(cached) " >&6 25813else 25814 gcc_cv_as_sparc_sparc6=no 25815 if test x$gcc_cv_as != x; then 25816 $as_echo '.text 25817 .register %g2, #scratch 25818 .register %g3, #scratch 25819 .align 4 25820 rd %entropy, %g1 25821 fpsll64x %f0, %f2, %f4' > conftest.s 25822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5' 25823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25824 (eval $ac_try) 2>&5 25825 ac_status=$? 25826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25827 test $ac_status = 0; }; } 25828 then 25829 gcc_cv_as_sparc_sparc6=yes 25830 else 25831 echo "configure: failed program was" >&5 25832 cat conftest.s >&5 25833 fi 25834 rm -f conftest.o conftest.s 25835 fi 25836fi 25837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5 25838$as_echo "$gcc_cv_as_sparc_sparc6" >&6; } 25839if test $gcc_cv_as_sparc_sparc6 = yes; then 25840 25841$as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h 25842 25843fi 25844 25845 25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5 25847$as_echo_n "checking assembler for LEON instructions... " >&6; } 25848if ${gcc_cv_as_sparc_leon+:} false; then : 25849 $as_echo_n "(cached) " >&6 25850else 25851 gcc_cv_as_sparc_leon=no 25852 if test x$gcc_cv_as != x; then 25853 $as_echo '.text 25854 .register %g2, #scratch 25855 .register %g3, #scratch 25856 .align 4 25857 smac %g2, %g3, %g1 25858 umac %g2, %g3, %g1 25859 casa [%g2] 0xb, %g3, %g1' > conftest.s 25860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5' 25861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25862 (eval $ac_try) 2>&5 25863 ac_status=$? 25864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25865 test $ac_status = 0; }; } 25866 then 25867 gcc_cv_as_sparc_leon=yes 25868 else 25869 echo "configure: failed program was" >&5 25870 cat conftest.s >&5 25871 fi 25872 rm -f conftest.o conftest.s 25873 fi 25874fi 25875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5 25876$as_echo "$gcc_cv_as_sparc_leon" >&6; } 25877if test $gcc_cv_as_sparc_leon = yes; then 25878 25879$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h 25880 25881fi 25882 25883 ;; 25884 25885 i[34567]86-*-* | x86_64-*-*) 25886 case $target_os in 25887 cygwin*) 25888 # Full C++ conformance when using a shared libstdc++-v3 requires some 25889 # support from the Cygwin DLL, which in more recent versions exports 25890 # wrappers to aid in interposing and redirecting operators new, delete, 25891 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we 25892 # are configuring for a version of Cygwin that exports the wrappers. 25893 if test x$host = x$target && test x$host_cpu = xi686; then 25894 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj" 25895if test "x$ac_cv_func___wrap__Znaj" = xyes; then : 25896 gcc_ac_cygwin_dll_wrappers=yes 25897else 25898 gcc_ac_cygwin_dll_wrappers=no 25899fi 25900 25901 else 25902 # Can't check presence of libc functions during cross-compile, so 25903 # we just have to assume we're building for an up-to-date target. 25904 gcc_ac_cygwin_dll_wrappers=yes 25905 fi 25906 25907cat >>confdefs.h <<_ACEOF 25908#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi` 25909_ACEOF 25910 25911 esac 25912 case $target_os in 25913 cygwin* | pe | mingw32*) 25914 # Recent binutils allows the three-operand form of ".comm" on PE. This 25915 # definition is used unconditionally to initialise the default state of 25916 # the target option variable that governs usage of the feature. 25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5 25918$as_echo_n "checking assembler for .comm with alignment... " >&6; } 25919if ${gcc_cv_as_comm_has_align+:} false; then : 25920 $as_echo_n "(cached) " >&6 25921else 25922 gcc_cv_as_comm_has_align=no 25923 if test $in_tree_gas = yes; then 25924 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52` 25925 then gcc_cv_as_comm_has_align=yes 25926fi 25927 elif test x$gcc_cv_as != x; then 25928 $as_echo '.comm foo,1,32' > conftest.s 25929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_comm_has_align=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_comm_has_align" >&5 25945$as_echo "$gcc_cv_as_comm_has_align" >&6; } 25946 25947 25948 25949cat >>confdefs.h <<_ACEOF 25950#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi` 25951_ACEOF 25952 25953 # Used for DWARF 2 in PE 25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5 25955$as_echo_n "checking assembler for .secrel32 relocs... " >&6; } 25956if ${gcc_cv_as_ix86_pe_secrel32+:} false; then : 25957 $as_echo_n "(cached) " >&6 25958else 25959 gcc_cv_as_ix86_pe_secrel32=no 25960 if test $in_tree_gas = yes; then 25961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91` 25962 then gcc_cv_as_ix86_pe_secrel32=yes 25963fi 25964 elif test x$gcc_cv_as != x; then 25965 $as_echo '.text 25966foo: nop 25967.data 25968 .secrel32 foo' > conftest.s 25969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 25970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 25971 (eval $ac_try) 2>&5 25972 ac_status=$? 25973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25974 test $ac_status = 0; }; } 25975 then 25976 if test x$gcc_cv_ld != x \ 25977 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then 25978 gcc_cv_as_ix86_pe_secrel32=yes 25979 fi 25980 rm -f conftest 25981 else 25982 echo "configure: failed program was" >&5 25983 cat conftest.s >&5 25984 fi 25985 rm -f conftest.o conftest.s 25986 fi 25987fi 25988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5 25989$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; } 25990if test $gcc_cv_as_ix86_pe_secrel32 = yes; then 25991 25992$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h 25993 25994fi 25995 25996 # Test if the assembler supports the extended form of the .section 25997 # directive that specifies section alignment. LTO support uses this, 25998 # but normally only after installation, so we warn but don't fail the 25999 # configure if LTO is enabled but the assembler does not support it. 26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5 26001$as_echo_n "checking assembler for .section with alignment... " >&6; } 26002if ${gcc_cv_as_section_has_align+:} false; then : 26003 $as_echo_n "(cached) " >&6 26004else 26005 gcc_cv_as_section_has_align=no 26006 if test $in_tree_gas = yes; then 26007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1` 26008 then gcc_cv_as_section_has_align=yes 26009fi 26010 elif test x$gcc_cv_as != x; then 26011 $as_echo '.section lto_test,"dr0"' > conftest.s 26012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5' 26013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26014 (eval $ac_try) 2>&5 26015 ac_status=$? 26016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26017 test $ac_status = 0; }; } 26018 then 26019 gcc_cv_as_section_has_align=yes 26020 else 26021 echo "configure: failed program was" >&5 26022 cat conftest.s >&5 26023 fi 26024 rm -f conftest.o conftest.s 26025 fi 26026fi 26027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5 26028$as_echo "$gcc_cv_as_section_has_align" >&6; } 26029 26030 26031 if test x$gcc_cv_as_section_has_align != xyes; then 26032 case ",$enable_languages," in 26033 *,lto,*) 26034 { $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 26035$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;} 26036 ;; 26037 esac 26038 fi 26039 ;; 26040 esac 26041 26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5 26043$as_echo_n "checking assembler for -xbrace_comment... " >&6; } 26044if ${gcc_cv_as_ix86_xbrace_comment+:} false; then : 26045 $as_echo_n "(cached) " >&6 26046else 26047 gcc_cv_as_ix86_xbrace_comment=no 26048 if test x$gcc_cv_as != x; then 26049 $as_echo '.text' > conftest.s 26050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5' 26051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26052 (eval $ac_try) 2>&5 26053 ac_status=$? 26054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26055 test $ac_status = 0; }; } 26056 then 26057 gcc_cv_as_ix86_xbrace_comment=yes 26058 else 26059 echo "configure: failed program was" >&5 26060 cat conftest.s >&5 26061 fi 26062 rm -f conftest.o conftest.s 26063 fi 26064fi 26065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5 26066$as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; } 26067if test $gcc_cv_as_ix86_xbrace_comment = yes; then 26068 26069$as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h 26070 26071fi 26072 26073 26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5 26075$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; } 26076if ${gcc_cv_as_ix86_filds+:} false; then : 26077 $as_echo_n "(cached) " >&6 26078else 26079 gcc_cv_as_ix86_filds=no 26080 if test x$gcc_cv_as != x; then 26081 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s 26082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26084 (eval $ac_try) 2>&5 26085 ac_status=$? 26086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26087 test $ac_status = 0; }; } 26088 then 26089 gcc_cv_as_ix86_filds=yes 26090 else 26091 echo "configure: failed program was" >&5 26092 cat conftest.s >&5 26093 fi 26094 rm -f conftest.o conftest.s 26095 fi 26096fi 26097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5 26098$as_echo "$gcc_cv_as_ix86_filds" >&6; } 26099if test $gcc_cv_as_ix86_filds = yes; then 26100 26101$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h 26102 26103fi 26104 26105 26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5 26107$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; } 26108if ${gcc_cv_as_ix86_fildq+:} false; then : 26109 $as_echo_n "(cached) " >&6 26110else 26111 gcc_cv_as_ix86_fildq=no 26112 if test x$gcc_cv_as != x; then 26113 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s 26114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26116 (eval $ac_try) 2>&5 26117 ac_status=$? 26118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26119 test $ac_status = 0; }; } 26120 then 26121 gcc_cv_as_ix86_fildq=yes 26122 else 26123 echo "configure: failed program was" >&5 26124 cat conftest.s >&5 26125 fi 26126 rm -f conftest.o conftest.s 26127 fi 26128fi 26129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5 26130$as_echo "$gcc_cv_as_ix86_fildq" >&6; } 26131if test $gcc_cv_as_ix86_fildq = yes; then 26132 26133$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h 26134 26135fi 26136 26137 26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5 26139$as_echo_n "checking assembler for cmov syntax... " >&6; } 26140if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then : 26141 $as_echo_n "(cached) " >&6 26142else 26143 gcc_cv_as_ix86_cmov_sun_syntax=no 26144 if test x$gcc_cv_as != x; then 26145 $as_echo 'cmovl.l %edx, %eax' > conftest.s 26146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26148 (eval $ac_try) 2>&5 26149 ac_status=$? 26150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26151 test $ac_status = 0; }; } 26152 then 26153 gcc_cv_as_ix86_cmov_sun_syntax=yes 26154 else 26155 echo "configure: failed program was" >&5 26156 cat conftest.s >&5 26157 fi 26158 rm -f conftest.o conftest.s 26159 fi 26160fi 26161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5 26162$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; } 26163if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then 26164 26165$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h 26166 26167fi 26168 26169 26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5 26171$as_echo_n "checking assembler for ffreep mnemonic... " >&6; } 26172if ${gcc_cv_as_ix86_ffreep+:} false; then : 26173 $as_echo_n "(cached) " >&6 26174else 26175 gcc_cv_as_ix86_ffreep=no 26176 if test x$gcc_cv_as != x; then 26177 $as_echo 'ffreep %st(1)' > conftest.s 26178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26180 (eval $ac_try) 2>&5 26181 ac_status=$? 26182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26183 test $ac_status = 0; }; } 26184 then 26185 gcc_cv_as_ix86_ffreep=yes 26186 else 26187 echo "configure: failed program was" >&5 26188 cat conftest.s >&5 26189 fi 26190 rm -f conftest.o conftest.s 26191 fi 26192fi 26193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5 26194$as_echo "$gcc_cv_as_ix86_ffreep" >&6; } 26195if test $gcc_cv_as_ix86_ffreep = yes; then 26196 26197$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h 26198 26199fi 26200 26201 26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5 26203$as_echo_n "checking assembler for .quad directive... " >&6; } 26204if ${gcc_cv_as_ix86_quad+:} false; then : 26205 $as_echo_n "(cached) " >&6 26206else 26207 gcc_cv_as_ix86_quad=no 26208 if test x$gcc_cv_as != x; then 26209 $as_echo '.quad 0' > conftest.s 26210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26212 (eval $ac_try) 2>&5 26213 ac_status=$? 26214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26215 test $ac_status = 0; }; } 26216 then 26217 gcc_cv_as_ix86_quad=yes 26218 else 26219 echo "configure: failed program was" >&5 26220 cat conftest.s >&5 26221 fi 26222 rm -f conftest.o conftest.s 26223 fi 26224fi 26225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5 26226$as_echo "$gcc_cv_as_ix86_quad" >&6; } 26227if test $gcc_cv_as_ix86_quad = yes; then 26228 26229$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h 26230 26231fi 26232 26233 26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5 26235$as_echo_n "checking assembler for sahf mnemonic... " >&6; } 26236if ${gcc_cv_as_ix86_sahf+:} false; then : 26237 $as_echo_n "(cached) " >&6 26238else 26239 gcc_cv_as_ix86_sahf=no 26240 if test x$gcc_cv_as != x; then 26241 $as_echo '.code64 26242 sahf' > conftest.s 26243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26245 (eval $ac_try) 2>&5 26246 ac_status=$? 26247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26248 test $ac_status = 0; }; } 26249 then 26250 gcc_cv_as_ix86_sahf=yes 26251 else 26252 echo "configure: failed program was" >&5 26253 cat conftest.s >&5 26254 fi 26255 rm -f conftest.o conftest.s 26256 fi 26257fi 26258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5 26259$as_echo "$gcc_cv_as_ix86_sahf" >&6; } 26260if test $gcc_cv_as_ix86_sahf = yes; then 26261 26262$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h 26263 26264fi 26265 26266 26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5 26268$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; } 26269if ${gcc_cv_as_ix86_interunit_movq+:} false; then : 26270 $as_echo_n "(cached) " >&6 26271else 26272 gcc_cv_as_ix86_interunit_movq=no 26273 if test x$gcc_cv_as != x; then 26274 $as_echo '.code64 26275 movq %mm0, %rax 26276 movq %rax, %xmm0' > conftest.s 26277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26279 (eval $ac_try) 2>&5 26280 ac_status=$? 26281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26282 test $ac_status = 0; }; } 26283 then 26284 gcc_cv_as_ix86_interunit_movq=yes 26285 else 26286 echo "configure: failed program was" >&5 26287 cat conftest.s >&5 26288 fi 26289 rm -f conftest.o conftest.s 26290 fi 26291fi 26292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5 26293$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; } 26294 26295 26296 26297cat >>confdefs.h <<_ACEOF 26298#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi` 26299_ACEOF 26300 26301 26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5 26303$as_echo_n "checking assembler for hle prefixes... " >&6; } 26304if ${gcc_cv_as_ix86_hle+:} false; then : 26305 $as_echo_n "(cached) " >&6 26306else 26307 gcc_cv_as_ix86_hle=no 26308 if test x$gcc_cv_as != x; then 26309 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s 26310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26312 (eval $ac_try) 2>&5 26313 ac_status=$? 26314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26315 test $ac_status = 0; }; } 26316 then 26317 gcc_cv_as_ix86_hle=yes 26318 else 26319 echo "configure: failed program was" >&5 26320 cat conftest.s >&5 26321 fi 26322 rm -f conftest.o conftest.s 26323 fi 26324fi 26325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5 26326$as_echo "$gcc_cv_as_ix86_hle" >&6; } 26327if test $gcc_cv_as_ix86_hle = yes; then 26328 26329$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h 26330 26331fi 26332 26333 26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5 26335$as_echo_n "checking assembler for swap suffix... " >&6; } 26336if ${gcc_cv_as_ix86_swap+:} false; then : 26337 $as_echo_n "(cached) " >&6 26338else 26339 gcc_cv_as_ix86_swap=no 26340 if test x$gcc_cv_as != x; then 26341 $as_echo 'movl.s %esp, %ebp' > conftest.s 26342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26344 (eval $ac_try) 2>&5 26345 ac_status=$? 26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26347 test $ac_status = 0; }; } 26348 then 26349 gcc_cv_as_ix86_swap=yes 26350 else 26351 echo "configure: failed program was" >&5 26352 cat conftest.s >&5 26353 fi 26354 rm -f conftest.o conftest.s 26355 fi 26356fi 26357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5 26358$as_echo "$gcc_cv_as_ix86_swap" >&6; } 26359if test $gcc_cv_as_ix86_swap = yes; then 26360 26361$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h 26362 26363fi 26364 26365 26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5 26367$as_echo_n "checking assembler for different section symbol subtraction... " >&6; } 26368if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then : 26369 $as_echo_n "(cached) " >&6 26370else 26371 gcc_cv_as_ix86_diff_sect_delta=no 26372 if test x$gcc_cv_as != x; then 26373 $as_echo '.section .rodata 26374.L1: 26375 .long .L2-.L1 26376 .long .L3-.L1 26377 .text 26378.L3: nop 26379.L2: nop' > conftest.s 26380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26382 (eval $ac_try) 2>&5 26383 ac_status=$? 26384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26385 test $ac_status = 0; }; } 26386 then 26387 gcc_cv_as_ix86_diff_sect_delta=yes 26388 else 26389 echo "configure: failed program was" >&5 26390 cat conftest.s >&5 26391 fi 26392 rm -f conftest.o conftest.s 26393 fi 26394fi 26395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5 26396$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; } 26397if test $gcc_cv_as_ix86_diff_sect_delta = yes; then 26398 26399$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h 26400 26401fi 26402 26403 26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5 26405$as_echo_n "checking assembler for rep and lock prefix... " >&6; } 26406if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then : 26407 $as_echo_n "(cached) " >&6 26408else 26409 gcc_cv_as_ix86_rep_lock_prefix=no 26410 if test x$gcc_cv_as != x; then 26411 $as_echo 'rep movsl 26412 rep ret 26413 rep nop 26414 rep bsf %ecx, %eax 26415 rep bsr %ecx, %eax 26416 lock addl %edi, (%eax,%esi) 26417 lock orl $0, (%esp)' > conftest.s 26418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26420 (eval $ac_try) 2>&5 26421 ac_status=$? 26422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26423 test $ac_status = 0; }; } 26424 then 26425 gcc_cv_as_ix86_rep_lock_prefix=yes 26426 else 26427 echo "configure: failed program was" >&5 26428 cat conftest.s >&5 26429 fi 26430 rm -f conftest.o conftest.s 26431 fi 26432fi 26433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5 26434$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; } 26435if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then 26436 26437$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h 26438 26439fi 26440 26441 26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5 26443$as_echo_n "checking assembler for ud2 mnemonic... " >&6; } 26444if ${gcc_cv_as_ix86_ud2+:} false; then : 26445 $as_echo_n "(cached) " >&6 26446else 26447 gcc_cv_as_ix86_ud2=no 26448 if test x$gcc_cv_as != x; then 26449 $as_echo 'ud2' > conftest.s 26450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26452 (eval $ac_try) 2>&5 26453 ac_status=$? 26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26455 test $ac_status = 0; }; } 26456 then 26457 gcc_cv_as_ix86_ud2=yes 26458 else 26459 echo "configure: failed program was" >&5 26460 cat conftest.s >&5 26461 fi 26462 rm -f conftest.o conftest.s 26463 fi 26464fi 26465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5 26466$as_echo "$gcc_cv_as_ix86_ud2" >&6; } 26467if test $gcc_cv_as_ix86_ud2 = yes; then 26468 26469$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h 26470 26471fi 26472 26473 26474 # Enforce 32-bit output with gas and gld. 26475 if test x$gas = xyes; then 26476 as_ix86_gas_32_opt="--32" 26477 fi 26478 if echo "$ld_ver" | grep GNU > /dev/null; then 26479 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then 26480 ld_ix86_gld_32_opt="-melf_i386_sol2" 26481 else 26482 ld_ix86_gld_32_opt="-melf_i386" 26483 fi 26484 fi 26485 26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5 26487$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; } 26488if ${gcc_cv_as_ix86_tlsgdplt+:} false; then : 26489 $as_echo_n "(cached) " >&6 26490else 26491 gcc_cv_as_ix86_tlsgdplt=no 26492 if test x$gcc_cv_as != x; then 26493 $as_echo 'call tls_gd@tlsgdplt' > conftest.s 26494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 26495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26496 (eval $ac_try) 2>&5 26497 ac_status=$? 26498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26499 test $ac_status = 0; }; } 26500 then 26501 if test x$gcc_cv_ld != x \ 26502 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then 26503 gcc_cv_as_ix86_tlsgdplt=yes 26504 fi 26505 rm -f conftest 26506 else 26507 echo "configure: failed program was" >&5 26508 cat conftest.s >&5 26509 fi 26510 rm -f conftest.o conftest.s 26511 fi 26512fi 26513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5 26514$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; } 26515if test $gcc_cv_as_ix86_tlsgdplt = yes; then 26516 26517$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h 26518 26519fi 26520 26521 26522 conftest_s=' 26523 .section .tdata,"aw'$tls_section_flag'",@progbits 26524tls_ld: 26525 .section .text,"ax",@progbits 26526 call tls_ld@tlsldmplt' 26527 26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5 26529$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; } 26530if ${gcc_cv_as_ix86_tlsldmplt+:} false; then : 26531 $as_echo_n "(cached) " >&6 26532else 26533 gcc_cv_as_ix86_tlsldmplt=no 26534 if test x$gcc_cv_as != x; then 26535 $as_echo "$conftest_s" > conftest.s 26536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 26537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26538 (eval $ac_try) 2>&5 26539 ac_status=$? 26540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26541 test $ac_status = 0; }; } 26542 then 26543 if test x$gcc_cv_ld != x \ 26544 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then 26545 gcc_cv_as_ix86_tlsldmplt=yes 26546 fi 26547 rm -f conftest 26548 else 26549 echo "configure: failed program was" >&5 26550 cat conftest.s >&5 26551 fi 26552 rm -f conftest.o conftest.s 26553 fi 26554fi 26555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5 26556$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; } 26557 26558 26559 26560cat >>confdefs.h <<_ACEOF 26561#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi` 26562_ACEOF 26563 26564 26565 conftest_s=' 26566 .section .text,"ax",@progbits 26567 .globl _start 26568 .type _start, @function 26569_start: 26570 leal value@tlsldm(%ebx), %eax 26571 call ___tls_get_addr@plt 26572 26573 .section .tdata,"aw'$tls_section_flag'",@progbits 26574 .type value, @object 26575value:' 26576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5 26577$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; } 26578if ${gcc_cv_as_ix86_tlsldm+:} false; then : 26579 $as_echo_n "(cached) " >&6 26580else 26581 gcc_cv_as_ix86_tlsldm=no 26582 if test x$gcc_cv_as != x; then 26583 $as_echo "$conftest_s" > conftest.s 26584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 26585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26586 (eval $ac_try) 2>&5 26587 ac_status=$? 26588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26589 test $ac_status = 0; }; } 26590 then 26591 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 26592 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then 26593 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \ 26594 || dis conftest 2>/dev/null | grep nop > /dev/null; then 26595 gcc_cv_as_ix86_tlsldm=yes 26596 fi 26597 fi 26598 rm -f conftest 26599 else 26600 echo "configure: failed program was" >&5 26601 cat conftest.s >&5 26602 fi 26603 rm -f conftest.o conftest.s 26604 fi 26605fi 26606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5 26607$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; } 26608 26609 26610 26611cat >>confdefs.h <<_ACEOF 26612#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi` 26613_ACEOF 26614 26615 26616 conftest_s=' 26617 .data 26618bar: 26619 .byte 1 26620 .text 26621 .global _start 26622_start: 26623 cmpl $0, bar@GOT 26624 jmp *_start@GOT' 26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5 26626$as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; } 26627if ${gcc_cv_as_ix86_got32x+:} false; then : 26628 $as_echo_n "(cached) " >&6 26629else 26630 gcc_cv_as_ix86_got32x=no 26631 if test x$gcc_cv_as != x; then 26632 $as_echo "$conftest_s" > conftest.s 26633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 26634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26635 (eval $ac_try) 2>&5 26636 ac_status=$? 26637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26638 test $ac_status = 0; }; } 26639 then 26640 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ 26641 && test x$gcc_cv_readelf != x \ 26642 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \ 26643 | grep R_386_GOT32X > /dev/null 2>&1 \ 26644 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then 26645 if $gcc_cv_objdump -dw conftest 2>&1 \ 26646 | grep 0xffffff > /dev/null 2>&1; then 26647 gcc_cv_as_ix86_got32x=no 26648 else 26649 gcc_cv_as_ix86_got32x=yes 26650 fi 26651 fi 26652 rm -f conftest 26653 else 26654 echo "configure: failed program was" >&5 26655 cat conftest.s >&5 26656 fi 26657 rm -f conftest.o conftest.s 26658 fi 26659fi 26660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5 26661$as_echo "$gcc_cv_as_ix86_got32x" >&6; } 26662 26663 26664 26665cat >>confdefs.h <<_ACEOF 26666#define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi` 26667_ACEOF 26668 26669 26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5 26671$as_echo_n "checking assembler for GOTOFF in data... " >&6; } 26672if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then : 26673 $as_echo_n "(cached) " >&6 26674else 26675 gcc_cv_as_ix86_gotoff_in_data=no 26676 if test $in_tree_gas = yes; then 26677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 26678 then gcc_cv_as_ix86_gotoff_in_data=yes 26679fi 26680 elif test x$gcc_cv_as != x; then 26681 $as_echo ' .text 26682.L0: 26683 nop 26684 .data 26685 .long .L0@GOTOFF' > conftest.s 26686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 26687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26688 (eval $ac_try) 2>&5 26689 ac_status=$? 26690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26691 test $ac_status = 0; }; } 26692 then 26693 gcc_cv_as_ix86_gotoff_in_data=yes 26694 else 26695 echo "configure: failed program was" >&5 26696 cat conftest.s >&5 26697 fi 26698 rm -f conftest.o conftest.s 26699 fi 26700fi 26701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5 26702$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; } 26703 26704 26705 26706cat >>confdefs.h <<_ACEOF 26707#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi` 26708_ACEOF 26709 26710 26711 conftest_s=' 26712 .section .text,"ax",@progbits 26713 .globl _start 26714 .type _start, @function 26715_start: 26716 leal ld@tlsldm(%ecx), %eax 26717 call *___tls_get_addr@GOT(%ecx) 26718 leal gd@tlsgd(%ecx), %eax 26719 call *___tls_get_addr@GOT(%ecx) 26720 26721 .section .tdata,"aw'$tls_section_flag'",@progbits 26722 .type ld, @object 26723ld: 26724 .byte 0 26725 .globl gd 26726 .type gd, @object 26727gd: 26728 .byte 0' 26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5 26730$as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; } 26731if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then : 26732 $as_echo_n "(cached) " >&6 26733else 26734 gcc_cv_as_ix86_tls_get_addr_via_got=no 26735 if test x$gcc_cv_as != x; then 26736 $as_echo "$conftest_s" > conftest.s 26737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5' 26738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26739 (eval $ac_try) 2>&5 26740 ac_status=$? 26741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26742 test $ac_status = 0; }; } 26743 then 26744 if test x$gcc_cv_ld != x \ 26745 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then 26746 gcc_cv_as_ix86_tls_get_addr_via_got=yes 26747 fi 26748 rm -f conftest 26749 else 26750 echo "configure: failed program was" >&5 26751 cat conftest.s >&5 26752 fi 26753 rm -f conftest.o conftest.s 26754 fi 26755fi 26756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5 26757$as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; } 26758 26759 26760 26761cat >>confdefs.h <<_ACEOF 26762#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` 26763_ACEOF 26764 26765 ;; 26766 26767 ia64*-*-*) 26768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5 26769$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; } 26770if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then : 26771 $as_echo_n "(cached) " >&6 26772else 26773 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no 26774 if test $in_tree_gas = yes; then 26775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 26776 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes 26777fi 26778 elif test x$gcc_cv_as != x; then 26779 $as_echo ' .text 26780 addl r15 = @ltoffx(x#), gp 26781 ;; 26782 ld8.mov r16 = [r15], x# 26783' > conftest.s 26784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26786 (eval $ac_try) 2>&5 26787 ac_status=$? 26788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26789 test $ac_status = 0; }; } 26790 then 26791 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes 26792 else 26793 echo "configure: failed program was" >&5 26794 cat conftest.s >&5 26795 fi 26796 rm -f conftest.o conftest.s 26797 fi 26798fi 26799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5 26800$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; } 26801if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then 26802 26803$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h 26804 26805fi 26806 26807 26808 ;; 26809 26810 powerpc*-*-*) 26811 26812 case $target in 26813 *-*-darwin*) 26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5 26815$as_echo_n "checking assembler for .machine directive support... " >&6; } 26816if ${gcc_cv_as_machine_directive+:} false; then : 26817 $as_echo_n "(cached) " >&6 26818else 26819 gcc_cv_as_machine_directive=no 26820 if test x$gcc_cv_as != x; then 26821 $as_echo ' .machine ppc7400' > conftest.s 26822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26824 (eval $ac_try) 2>&5 26825 ac_status=$? 26826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26827 test $ac_status = 0; }; } 26828 then 26829 gcc_cv_as_machine_directive=yes 26830 else 26831 echo "configure: failed program was" >&5 26832 cat conftest.s >&5 26833 fi 26834 rm -f conftest.o conftest.s 26835 fi 26836fi 26837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5 26838$as_echo "$gcc_cv_as_machine_directive" >&6; } 26839 26840 26841 if test x$gcc_cv_as_machine_directive != xyes; then 26842 echo "*** This target requires an assembler supporting \".machine\"" >&2 26843 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2 26844 test x$build = x$target && exit 1 26845 fi 26846 ;; 26847 esac 26848 26849 case $target in 26850 *-*-aix*) conftest_s=' .machine "pwr5" 26851 .csect .text[PR] 26852 mfcr 3,128';; 26853 *-*-darwin*) conftest_s=' .text 26854 mfcr r3,128';; 26855 *) conftest_s=' .machine power4 26856 .text 26857 mfcr 3,128';; 26858 esac 26859 26860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5 26861$as_echo_n "checking assembler for mfcr field support... " >&6; } 26862if ${gcc_cv_as_powerpc_mfcrf+:} false; then : 26863 $as_echo_n "(cached) " >&6 26864else 26865 gcc_cv_as_powerpc_mfcrf=no 26866 if test $in_tree_gas = yes; then 26867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 26868 then gcc_cv_as_powerpc_mfcrf=yes 26869fi 26870 elif test x$gcc_cv_as != x; then 26871 $as_echo "$conftest_s" > conftest.s 26872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 26873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26874 (eval $ac_try) 2>&5 26875 ac_status=$? 26876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26877 test $ac_status = 0; }; } 26878 then 26879 gcc_cv_as_powerpc_mfcrf=yes 26880 else 26881 echo "configure: failed program was" >&5 26882 cat conftest.s >&5 26883 fi 26884 rm -f conftest.o conftest.s 26885 fi 26886fi 26887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5 26888$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; } 26889if test $gcc_cv_as_powerpc_mfcrf = yes; then 26890 26891$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h 26892 26893fi 26894 26895 26896 case $target in 26897 *-*-aix*) conftest_s=' .csect .text[PR] 26898LCF..0: 26899 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';; 26900 *-*-darwin*) 26901 conftest_s=' .text 26902LCF0: 26903 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';; 26904 *) conftest_s=' .text 26905.LCF0: 26906 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';; 26907 esac 26908 26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5 26910$as_echo_n "checking assembler for rel16 relocs... " >&6; } 26911if ${gcc_cv_as_powerpc_rel16+:} false; then : 26912 $as_echo_n "(cached) " >&6 26913else 26914 gcc_cv_as_powerpc_rel16=no 26915 if test $in_tree_gas = yes; then 26916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` 26917 then gcc_cv_as_powerpc_rel16=yes 26918fi 26919 elif test x$gcc_cv_as != x; then 26920 $as_echo "$conftest_s" > conftest.s 26921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' 26922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26923 (eval $ac_try) 2>&5 26924 ac_status=$? 26925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26926 test $ac_status = 0; }; } 26927 then 26928 gcc_cv_as_powerpc_rel16=yes 26929 else 26930 echo "configure: failed program was" >&5 26931 cat conftest.s >&5 26932 fi 26933 rm -f conftest.o conftest.s 26934 fi 26935fi 26936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5 26937$as_echo "$gcc_cv_as_powerpc_rel16" >&6; } 26938if test $gcc_cv_as_powerpc_rel16 = yes; then 26939 26940$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h 26941 26942fi 26943 26944 26945 case $target in 26946 *-*-aix*) conftest_s=' .machine "pwr7" 26947 .csect .text[PR] 26948 lxvd2x 1,2,3';; 26949 *) conftest_s=' .machine power7 26950 .text 26951 lxvd2x 1,2,3';; 26952 esac 26953 26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5 26955$as_echo_n "checking assembler for vector-scalar support... " >&6; } 26956if ${gcc_cv_as_powerpc_vsx+:} false; then : 26957 $as_echo_n "(cached) " >&6 26958else 26959 gcc_cv_as_powerpc_vsx=no 26960 if test $in_tree_gas = yes; then 26961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2` 26962 then gcc_cv_as_powerpc_vsx=yes 26963fi 26964 elif test x$gcc_cv_as != x; then 26965 $as_echo "$conftest_s" > conftest.s 26966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5' 26967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 26968 (eval $ac_try) 2>&5 26969 ac_status=$? 26970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26971 test $ac_status = 0; }; } 26972 then 26973 gcc_cv_as_powerpc_vsx=yes 26974 else 26975 echo "configure: failed program was" >&5 26976 cat conftest.s >&5 26977 fi 26978 rm -f conftest.o conftest.s 26979 fi 26980fi 26981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5 26982$as_echo "$gcc_cv_as_powerpc_vsx" >&6; } 26983if test $gcc_cv_as_powerpc_vsx = yes; then 26984 26985$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h 26986 26987fi 26988 26989 26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 26991$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 26992if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then : 26993 $as_echo_n "(cached) " >&6 26994else 26995 gcc_cv_as_powerpc_gnu_attribute=no 26996 if test $in_tree_gas = yes; then 26997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 26998 then gcc_cv_as_powerpc_gnu_attribute=yes 26999fi 27000 elif test x$gcc_cv_as != x; then 27001 $as_echo '.gnu_attribute 4,1' > conftest.s 27002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27004 (eval $ac_try) 2>&5 27005 ac_status=$? 27006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27007 test $ac_status = 0; }; } 27008 then 27009 gcc_cv_as_powerpc_gnu_attribute=yes 27010 else 27011 echo "configure: failed program was" >&5 27012 cat conftest.s >&5 27013 fi 27014 rm -f conftest.o conftest.s 27015 fi 27016fi 27017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5 27018$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; } 27019if test $gcc_cv_as_powerpc_gnu_attribute = yes; then 27020 27021$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 27022 27023fi 27024 27025 27026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5 27027$as_echo_n "checking assembler for tls marker support... " >&6; } 27028if ${gcc_cv_as_powerpc_tls_markers+:} false; then : 27029 $as_echo_n "(cached) " >&6 27030else 27031 gcc_cv_as_powerpc_tls_markers=no 27032 if test $in_tree_gas = yes; then 27033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0` 27034 then gcc_cv_as_powerpc_tls_markers=yes 27035fi 27036 elif test x$gcc_cv_as != x; then 27037 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s 27038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27040 (eval $ac_try) 2>&5 27041 ac_status=$? 27042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27043 test $ac_status = 0; }; } 27044 then 27045 gcc_cv_as_powerpc_tls_markers=yes 27046 else 27047 echo "configure: failed program was" >&5 27048 cat conftest.s >&5 27049 fi 27050 rm -f conftest.o conftest.s 27051 fi 27052fi 27053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5 27054$as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; } 27055if test $gcc_cv_as_powerpc_tls_markers = yes; then 27056 27057$as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h 27058 27059fi 27060 27061 27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5 27063$as_echo_n "checking assembler for prologue entry point marker support... " >&6; } 27064if ${gcc_cv_as_powerpc_entry_markers+:} false; then : 27065 $as_echo_n "(cached) " >&6 27066else 27067 gcc_cv_as_powerpc_entry_markers=no 27068 if test $in_tree_gas = yes; then 27069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0` 27070 then gcc_cv_as_powerpc_entry_markers=yes 27071fi 27072 elif test x$gcc_cv_as != x; then 27073 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s 27074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5' 27075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27076 (eval $ac_try) 2>&5 27077 ac_status=$? 27078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27079 test $ac_status = 0; }; } 27080 then 27081 gcc_cv_as_powerpc_entry_markers=yes 27082 else 27083 echo "configure: failed program was" >&5 27084 cat conftest.s >&5 27085 fi 27086 rm -f conftest.o conftest.s 27087 fi 27088fi 27089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5 27090$as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; } 27091if test $gcc_cv_as_powerpc_entry_markers = yes; then 27092 27093$as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h 27094 27095fi 27096 27097 27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5 27099$as_echo_n "checking assembler for plt sequence marker support... " >&6; } 27100if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then : 27101 $as_echo_n "(cached) " >&6 27102else 27103 gcc_cv_as_powerpc_pltseq_markers=no 27104 if test $in_tree_gas = yes; then 27105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0` 27106 then gcc_cv_as_powerpc_pltseq_markers=yes 27107fi 27108 elif test x$gcc_cv_as != x; then 27109 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s 27110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5' 27111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27112 (eval $ac_try) 2>&5 27113 ac_status=$? 27114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27115 test $ac_status = 0; }; } 27116 then 27117 gcc_cv_as_powerpc_pltseq_markers=yes 27118 else 27119 echo "configure: failed program was" >&5 27120 cat conftest.s >&5 27121 fi 27122 rm -f conftest.o conftest.s 27123 fi 27124fi 27125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5 27126$as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; } 27127if test $gcc_cv_as_powerpc_pltseq_markers = yes; then 27128 27129$as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h 27130 27131fi 27132 27133 27134 case $target in 27135 *-*-aix*) 27136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5 27137$as_echo_n "checking assembler for AIX .ref support... " >&6; } 27138if ${gcc_cv_as_aix_ref+:} false; then : 27139 $as_echo_n "(cached) " >&6 27140else 27141 gcc_cv_as_aix_ref=no 27142 if test $in_tree_gas = yes; then 27143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0` 27144 then gcc_cv_as_aix_ref=yes 27145fi 27146 elif test x$gcc_cv_as != x; then 27147 $as_echo ' .csect stuff[rw] 27148 stuff: 27149 .long 1 27150 .extern sym 27151 .ref sym 27152 ' > conftest.s 27153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27155 (eval $ac_try) 2>&5 27156 ac_status=$? 27157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27158 test $ac_status = 0; }; } 27159 then 27160 gcc_cv_as_aix_ref=yes 27161 else 27162 echo "configure: failed program was" >&5 27163 cat conftest.s >&5 27164 fi 27165 rm -f conftest.o conftest.s 27166 fi 27167fi 27168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5 27169$as_echo "$gcc_cv_as_aix_ref" >&6; } 27170if test $gcc_cv_as_aix_ref = yes; then 27171 27172$as_echo "#define HAVE_AS_REF 1" >>confdefs.h 27173 27174fi 27175 27176 27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5 27178$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; } 27179if ${gcc_cv_as_aix_dwloc+:} false; then : 27180 $as_echo_n "(cached) " >&6 27181else 27182 gcc_cv_as_aix_dwloc=no 27183 if test $in_tree_gas = yes; then 27184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0` 27185 then gcc_cv_as_aix_dwloc=yes 27186fi 27187 elif test x$gcc_cv_as != x; then 27188 $as_echo ' .dwsect 0xA0000 27189 Lframe..0: 27190 .vbyte 4,Lframe..0 27191 ' > conftest.s 27192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27194 (eval $ac_try) 2>&5 27195 ac_status=$? 27196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27197 test $ac_status = 0; }; } 27198 then 27199 gcc_cv_as_aix_dwloc=yes 27200 else 27201 echo "configure: failed program was" >&5 27202 cat conftest.s >&5 27203 fi 27204 rm -f conftest.o conftest.s 27205 fi 27206fi 27207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5 27208$as_echo "$gcc_cv_as_aix_dwloc" >&6; } 27209if test $gcc_cv_as_aix_dwloc = yes; then 27210 27211$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h 27212 27213fi 27214 27215 ;; 27216 esac 27217 ;; 27218 27219 mips*-*-*) 27220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5 27221$as_echo_n "checking assembler for explicit relocation support... " >&6; } 27222if ${gcc_cv_as_mips_explicit_relocs+:} false; then : 27223 $as_echo_n "(cached) " >&6 27224else 27225 gcc_cv_as_mips_explicit_relocs=no 27226 if test $in_tree_gas = yes; then 27227 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0` 27228 then gcc_cv_as_mips_explicit_relocs=yes 27229fi 27230 elif test x$gcc_cv_as != x; then 27231 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s 27232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27234 (eval $ac_try) 2>&5 27235 ac_status=$? 27236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27237 test $ac_status = 0; }; } 27238 then 27239 gcc_cv_as_mips_explicit_relocs=yes 27240 else 27241 echo "configure: failed program was" >&5 27242 cat conftest.s >&5 27243 fi 27244 rm -f conftest.o conftest.s 27245 fi 27246fi 27247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5 27248$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; } 27249if test $gcc_cv_as_mips_explicit_relocs = yes; then 27250 if test x$target_cpu_default = x 27251 then target_cpu_default=MASK_EXPLICIT_RELOCS 27252 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS" 27253 fi 27254fi 27255 27256 27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5 27258$as_echo_n "checking assembler for -mno-shared support... " >&6; } 27259if ${gcc_cv_as_mips_no_shared+:} false; then : 27260 $as_echo_n "(cached) " >&6 27261else 27262 gcc_cv_as_mips_no_shared=no 27263 if test $in_tree_gas = yes; then 27264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0` 27265 then gcc_cv_as_mips_no_shared=yes 27266fi 27267 elif test x$gcc_cv_as != x; then 27268 $as_echo 'nop' > conftest.s 27269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5' 27270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27271 (eval $ac_try) 2>&5 27272 ac_status=$? 27273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27274 test $ac_status = 0; }; } 27275 then 27276 gcc_cv_as_mips_no_shared=yes 27277 else 27278 echo "configure: failed program was" >&5 27279 cat conftest.s >&5 27280 fi 27281 rm -f conftest.o conftest.s 27282 fi 27283fi 27284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5 27285$as_echo "$gcc_cv_as_mips_no_shared" >&6; } 27286if test $gcc_cv_as_mips_no_shared = yes; then 27287 27288$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h 27289 27290fi 27291 27292 27293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 27294$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 27295if ${gcc_cv_as_mips_gnu_attribute+:} false; then : 27296 $as_echo_n "(cached) " >&6 27297else 27298 gcc_cv_as_mips_gnu_attribute=no 27299 if test $in_tree_gas = yes; then 27300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 27301 then gcc_cv_as_mips_gnu_attribute=yes 27302fi 27303 elif test x$gcc_cv_as != x; then 27304 $as_echo '.gnu_attribute 4,1' > conftest.s 27305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27307 (eval $ac_try) 2>&5 27308 ac_status=$? 27309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27310 test $ac_status = 0; }; } 27311 then 27312 gcc_cv_as_mips_gnu_attribute=yes 27313 else 27314 echo "configure: failed program was" >&5 27315 cat conftest.s >&5 27316 fi 27317 rm -f conftest.o conftest.s 27318 fi 27319fi 27320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5 27321$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; } 27322if test $gcc_cv_as_mips_gnu_attribute = yes; then 27323 27324$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 27325 27326fi 27327 27328 27329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5 27330$as_echo_n "checking assembler for .module support... " >&6; } 27331if ${gcc_cv_as_mips_dot_module+:} false; then : 27332 $as_echo_n "(cached) " >&6 27333else 27334 gcc_cv_as_mips_dot_module=no 27335 if test x$gcc_cv_as != x; then 27336 $as_echo '.module mips2 27337 .module fp=xx' > conftest.s 27338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5' 27339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27340 (eval $ac_try) 2>&5 27341 ac_status=$? 27342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27343 test $ac_status = 0; }; } 27344 then 27345 gcc_cv_as_mips_dot_module=yes 27346 else 27347 echo "configure: failed program was" >&5 27348 cat conftest.s >&5 27349 fi 27350 rm -f conftest.o conftest.s 27351 fi 27352fi 27353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5 27354$as_echo "$gcc_cv_as_mips_dot_module" >&6; } 27355if test $gcc_cv_as_mips_dot_module = yes; then 27356 27357$as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h 27358 27359fi 27360 27361 if test x$gcc_cv_as_mips_dot_module = xno \ 27362 && test x$with_fp_32 != x; then 27363 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5 27364 fi 27365 27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5 27367$as_echo_n "checking assembler for .micromips support... " >&6; } 27368if ${gcc_cv_as_micromips_support+:} false; then : 27369 $as_echo_n "(cached) " >&6 27370else 27371 gcc_cv_as_micromips_support=no 27372 if test x$gcc_cv_as != x; then 27373 $as_echo '.set micromips' > conftest.s 27374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5' 27375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27376 (eval $ac_try) 2>&5 27377 ac_status=$? 27378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27379 test $ac_status = 0; }; } 27380 then 27381 gcc_cv_as_micromips_support=yes 27382 else 27383 echo "configure: failed program was" >&5 27384 cat conftest.s >&5 27385 fi 27386 rm -f conftest.o conftest.s 27387 fi 27388fi 27389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5 27390$as_echo "$gcc_cv_as_micromips_support" >&6; } 27391if test $gcc_cv_as_micromips_support = yes; then 27392 27393$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h 27394 27395fi 27396 27397 27398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5 27399$as_echo_n "checking assembler for .dtprelword support... " >&6; } 27400if ${gcc_cv_as_mips_dtprelword+:} false; then : 27401 $as_echo_n "(cached) " >&6 27402else 27403 gcc_cv_as_mips_dtprelword=no 27404 if test $in_tree_gas = yes; then 27405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 27406 then gcc_cv_as_mips_dtprelword=yes 27407fi 27408 elif test x$gcc_cv_as != x; then 27409 $as_echo '.section .tdata,"awT",@progbits 27410x: 27411 .word 2 27412 .text 27413 .dtprelword x+0x8000' > conftest.s 27414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27416 (eval $ac_try) 2>&5 27417 ac_status=$? 27418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27419 test $ac_status = 0; }; } 27420 then 27421 gcc_cv_as_mips_dtprelword=yes 27422 else 27423 echo "configure: failed program was" >&5 27424 cat conftest.s >&5 27425 fi 27426 rm -f conftest.o conftest.s 27427 fi 27428fi 27429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5 27430$as_echo "$gcc_cv_as_mips_dtprelword" >&6; } 27431if test $gcc_cv_as_mips_dtprelword = yes; then 27432 27433$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h 27434 27435fi 27436 27437 27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5 27439$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; } 27440if ${gcc_cv_as_mips_dspr1_mult+:} false; then : 27441 $as_echo_n "(cached) " >&6 27442else 27443 gcc_cv_as_mips_dspr1_mult=no 27444 if test x$gcc_cv_as != x; then 27445 $as_echo ' .set mips32r2 27446 .set nodspr2 27447 .set dsp 27448 madd $ac3,$4,$5 27449 maddu $ac3,$4,$5 27450 msub $ac3,$4,$5 27451 msubu $ac3,$4,$5 27452 mult $ac3,$4,$5 27453 multu $ac3,$4,$5' > conftest.s 27454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27456 (eval $ac_try) 2>&5 27457 ac_status=$? 27458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27459 test $ac_status = 0; }; } 27460 then 27461 gcc_cv_as_mips_dspr1_mult=yes 27462 else 27463 echo "configure: failed program was" >&5 27464 cat conftest.s >&5 27465 fi 27466 rm -f conftest.o conftest.s 27467 fi 27468fi 27469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5 27470$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; } 27471if test $gcc_cv_as_mips_dspr1_mult = yes; then 27472 27473$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h 27474 27475fi 27476 27477 27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5 27479$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; } 27480 gcc_cv_as_ld_jalr_reloc=no 27481 if test $gcc_cv_as_mips_explicit_relocs = yes; then 27482 if test $in_tree_ld = yes ; then 27483 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 \ 27484 && test $in_tree_ld_is_elf = yes; then 27485 gcc_cv_as_ld_jalr_reloc=yes 27486 fi 27487 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then 27488 echo ' .ent x' > conftest.s 27489 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s 27490 echo ' lw $25,%call16(y)($28)' >> conftest.s 27491 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s 27492 echo '1: jalr $25' >> conftest.s 27493 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s 27494 echo '1: jalr $25' >> conftest.s 27495 echo ' .end x' >> conftest.s 27496 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \ 27497 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then 27498 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \ 27499 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then 27500 gcc_cv_as_ld_jalr_reloc=yes 27501 fi 27502 fi 27503 rm -f conftest.* 27504 fi 27505 fi 27506 if test $gcc_cv_as_ld_jalr_reloc = yes; then 27507 if test x$target_cpu_default = x; then 27508 target_cpu_default=MASK_RELAX_PIC_CALLS 27509 else 27510 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS" 27511 fi 27512 fi 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5 27514$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; } 27515 27516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5 27517$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; } 27518if ${gcc_cv_ld_mips_personality_relaxation+:} false; then : 27519 $as_echo_n "(cached) " >&6 27520else 27521 gcc_cv_ld_mips_personality_relaxation=no 27522 if test $in_tree_ld = yes ; then 27523 if test "$gcc_cv_gld_major_version" -eq 2 \ 27524 -a "$gcc_cv_gld_minor_version" -ge 21 \ 27525 -o "$gcc_cv_gld_major_version" -gt 2; then 27526 gcc_cv_ld_mips_personality_relaxation=yes 27527 fi 27528 elif test x$gcc_cv_as != x \ 27529 -a x$gcc_cv_ld != x \ 27530 -a x$gcc_cv_readelf != x ; then 27531 cat > conftest.s <<EOF 27532 .cfi_startproc 27533 .cfi_personality 0x80,indirect_ptr 27534 .ent test 27535test: 27536 nop 27537 .end test 27538 .cfi_endproc 27539 27540 .section .data,"aw",@progbits 27541indirect_ptr: 27542 .dc.a personality 27543EOF 27544 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \ 27545 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then 27546 if $gcc_cv_readelf -d conftest 2>&1 \ 27547 | grep TEXTREL > /dev/null 2>&1; then 27548 : 27549 elif $gcc_cv_readelf --relocs conftest 2>&1 \ 27550 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then 27551 : 27552 else 27553 gcc_cv_ld_mips_personality_relaxation=yes 27554 fi 27555 fi 27556 fi 27557 rm -f conftest.s conftest.o conftest 27558fi 27559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5 27560$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; } 27561 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then 27562 27563$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h 27564 27565 fi 27566 27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5 27568$as_echo_n "checking assembler for -mnan= support... " >&6; } 27569if ${gcc_cv_as_mips_nan+:} false; then : 27570 $as_echo_n "(cached) " >&6 27571else 27572 gcc_cv_as_mips_nan=no 27573 if test x$gcc_cv_as != x; then 27574 $as_echo '' > conftest.s 27575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5' 27576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27577 (eval $ac_try) 2>&5 27578 ac_status=$? 27579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27580 test $ac_status = 0; }; } 27581 then 27582 gcc_cv_as_mips_nan=yes 27583 else 27584 echo "configure: failed program was" >&5 27585 cat conftest.s >&5 27586 fi 27587 rm -f conftest.o conftest.s 27588 fi 27589fi 27590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5 27591$as_echo "$gcc_cv_as_mips_nan" >&6; } 27592if test $gcc_cv_as_mips_nan = yes; then 27593 27594$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h 27595 27596fi 27597 27598 if test x$gcc_cv_as_mips_nan = xno \ 27599 && test x$with_nan != x; then 27600 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5 27601 fi 27602 ;; 27603 riscv*-*-*) 27604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5 27605$as_echo_n "checking assembler for .attribute support... " >&6; } 27606if ${gcc_cv_as_riscv_attribute+:} false; then : 27607 $as_echo_n "(cached) " >&6 27608else 27609 gcc_cv_as_riscv_attribute=no 27610 if test $in_tree_gas = yes; then 27611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0` 27612 then gcc_cv_as_riscv_attribute=yes 27613fi 27614 elif test x$gcc_cv_as != x; then 27615 $as_echo '.attribute stack_align,4' > conftest.s 27616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27618 (eval $ac_try) 2>&5 27619 ac_status=$? 27620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27621 test $ac_status = 0; }; } 27622 then 27623 gcc_cv_as_riscv_attribute=yes 27624 else 27625 echo "configure: failed program was" >&5 27626 cat conftest.s >&5 27627 fi 27628 rm -f conftest.o conftest.s 27629 fi 27630fi 27631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5 27632$as_echo "$gcc_cv_as_riscv_attribute" >&6; } 27633if test $gcc_cv_as_riscv_attribute = yes; then 27634 27635$as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h 27636 27637fi 27638 27639 ;; 27640 s390*-*-*) 27641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5 27642$as_echo_n "checking assembler for .gnu_attribute support... " >&6; } 27643if ${gcc_cv_as_s390_gnu_attribute+:} false; then : 27644 $as_echo_n "(cached) " >&6 27645else 27646 gcc_cv_as_s390_gnu_attribute=no 27647 if test $in_tree_gas = yes; then 27648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 27649 then gcc_cv_as_s390_gnu_attribute=yes 27650fi 27651 elif test x$gcc_cv_as != x; then 27652 $as_echo '.gnu_attribute 8,1' > conftest.s 27653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27655 (eval $ac_try) 2>&5 27656 ac_status=$? 27657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27658 test $ac_status = 0; }; } 27659 then 27660 gcc_cv_as_s390_gnu_attribute=yes 27661 else 27662 echo "configure: failed program was" >&5 27663 cat conftest.s >&5 27664 fi 27665 rm -f conftest.o conftest.s 27666 fi 27667fi 27668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5 27669$as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; } 27670if test $gcc_cv_as_s390_gnu_attribute = yes; then 27671 27672$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h 27673 27674fi 27675 27676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5 27677$as_echo_n "checking assembler for .machine and .machinemode support... " >&6; } 27678if ${gcc_cv_as_s390_machine_machinemode+:} false; then : 27679 $as_echo_n "(cached) " >&6 27680else 27681 gcc_cv_as_s390_machine_machinemode=no 27682 if test $in_tree_gas = yes; then 27683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0` 27684 then gcc_cv_as_s390_machine_machinemode=yes 27685fi 27686 elif test x$gcc_cv_as != x; then 27687 $as_echo ' .machinemode push 27688 .machinemode pop 27689 .machine push 27690 .machine pop' > conftest.s 27691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27693 (eval $ac_try) 2>&5 27694 ac_status=$? 27695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27696 test $ac_status = 0; }; } 27697 then 27698 gcc_cv_as_s390_machine_machinemode=yes 27699 else 27700 echo "configure: failed program was" >&5 27701 cat conftest.s >&5 27702 fi 27703 rm -f conftest.o conftest.s 27704 fi 27705fi 27706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5 27707$as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; } 27708if test $gcc_cv_as_s390_machine_machinemode = yes; then 27709 27710$as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h 27711 27712fi 27713 27714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5 27715$as_echo_n "checking assembler for architecture modifiers support... " >&6; } 27716if ${gcc_cv_as_s390_architecture_modifiers+:} false; then : 27717 $as_echo_n "(cached) " >&6 27718else 27719 gcc_cv_as_s390_architecture_modifiers=no 27720 if test $in_tree_gas = yes; then 27721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0` 27722 then gcc_cv_as_s390_architecture_modifiers=yes 27723fi 27724 elif test x$gcc_cv_as != x; then 27725 $as_echo ' .machine z13+vx ' > conftest.s 27726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27728 (eval $ac_try) 2>&5 27729 ac_status=$? 27730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27731 test $ac_status = 0; }; } 27732 then 27733 gcc_cv_as_s390_architecture_modifiers=yes 27734 else 27735 echo "configure: failed program was" >&5 27736 cat conftest.s >&5 27737 fi 27738 rm -f conftest.o conftest.s 27739 fi 27740fi 27741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5 27742$as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; } 27743if test $gcc_cv_as_s390_architecture_modifiers = yes; then 27744 27745$as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h 27746 27747fi 27748 27749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5 27750$as_echo_n "checking assembler for vector load/store alignment hints... " >&6; } 27751if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then : 27752 $as_echo_n "(cached) " >&6 27753else 27754 gcc_cv_as_s390_vector_loadstore_alignment_hints=no 27755 if test $in_tree_gas = yes; then 27756 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0` 27757 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes 27758fi 27759 elif test x$gcc_cv_as != x; then 27760 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s 27761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27763 (eval $ac_try) 2>&5 27764 ac_status=$? 27765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27766 test $ac_status = 0; }; } 27767 then 27768 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes 27769 else 27770 echo "configure: failed program was" >&5 27771 cat conftest.s >&5 27772 fi 27773 rm -f conftest.o conftest.s 27774 fi 27775fi 27776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5 27777$as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; } 27778if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then 27779 27780$as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h 27781 27782fi 27783 27784 27785 ;; 27786esac 27787 27788# Mips and HP-UX need the GNU assembler. 27789# Linux on IA64 might be able to use the Intel assembler. 27790 27791case "$target" in 27792 mips*-*-* | *-*-hpux* ) 27793 if test x$gas_flag = xyes \ 27794 || test x"$host" != x"$build" \ 27795 || test ! -x "$gcc_cv_as" \ 27796 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then 27797 : 27798 else 27799 echo "*** This configuration requires the GNU assembler" >&2 27800 exit 1 27801 fi 27802 ;; 27803esac 27804 27805# ??? Not all targets support dwarf2 debug_line, even within a version 27806# of gas. Moreover, we need to emit a valid instruction to trigger any 27807# info to the output file. So, as supported targets are added to gas 2.11, 27808# add some instruction here to (also) show we expect this might work. 27809# ??? Once 2.11 is released, probably need to add first known working 27810# version to the per-target configury. 27811case "$cpu_type" in 27812 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \ 27813 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc | spu \ 27814 | tilegx | tilepro | visium | xstormy16 | xtensa) 27815 insn="nop" 27816 ;; 27817 ia64 | s390) 27818 insn="nop 0" 27819 ;; 27820 mmix) 27821 insn="swym 0" 27822 ;; 27823esac 27824if test x"$insn" != x; then 27825 conftest_s="\ 27826 .file 1 \"conftest.s\" 27827 .loc 1 3 0 27828 $insn" 27829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5 27830$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; } 27831if ${gcc_cv_as_dwarf2_debug_line+:} false; then : 27832 $as_echo_n "(cached) " >&6 27833else 27834 gcc_cv_as_dwarf2_debug_line=no 27835 if test $in_tree_gas = yes; then 27836 if test $in_tree_gas_is_elf = yes \ 27837 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 27838 then gcc_cv_as_dwarf2_debug_line=yes 27839fi 27840 elif test x$gcc_cv_as != x; then 27841 $as_echo "$conftest_s" > conftest.s 27842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27844 (eval $ac_try) 2>&5 27845 ac_status=$? 27846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27847 test $ac_status = 0; }; } 27848 then 27849 if test x$gcc_cv_objdump != x \ 27850 && $gcc_cv_objdump -h conftest.o 2> /dev/null \ 27851 | grep debug_line > /dev/null 2>&1; then 27852 gcc_cv_as_dwarf2_debug_line=yes 27853 elif test x$gcc_cv_otool != x \ 27854 && $gcc_cv_otool -l conftest.o 2> /dev/null \ 27855 | grep debug_line > /dev/null 2>&1; then 27856 gcc_cv_as_dwarf2_debug_line=yes 27857 fi 27858 else 27859 echo "configure: failed program was" >&5 27860 cat conftest.s >&5 27861 fi 27862 rm -f conftest.o conftest.s 27863 fi 27864fi 27865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5 27866$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; } 27867 27868 27869 27870# The .debug_line file table must be in the exact order that 27871# we specified the files, since these indices are also used 27872# by DW_AT_decl_file. Approximate this test by testing if 27873# the assembler bitches if the same index is assigned twice. 27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5 27875$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; } 27876if ${gcc_cv_as_dwarf2_file_buggy+:} false; then : 27877 $as_echo_n "(cached) " >&6 27878else 27879 gcc_cv_as_dwarf2_file_buggy=no 27880 if test x$gcc_cv_as != x; then 27881 $as_echo ' .file 1 "foo.s" 27882 .file 1 "bar.s"' > conftest.s 27883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27885 (eval $ac_try) 2>&5 27886 ac_status=$? 27887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27888 test $ac_status = 0; }; } 27889 then 27890 gcc_cv_as_dwarf2_file_buggy=yes 27891 else 27892 echo "configure: failed program was" >&5 27893 cat conftest.s >&5 27894 fi 27895 rm -f conftest.o conftest.s 27896 fi 27897fi 27898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5 27899$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; } 27900 27901 27902 27903 if test $gcc_cv_as_dwarf2_debug_line = yes \ 27904 && test $gcc_cv_as_dwarf2_file_buggy = no; then 27905 27906$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h 27907 27908 27909 if test $gcc_cv_as_leb128 = yes; then 27910 conftest_s="\ 27911 .file 1 \"conftest.s\" 27912 .loc 1 3 0 view .LVU1 27913 $insn 27914 .data 27915 .uleb128 .LVU1 27916 .uleb128 .LVU1 27917" 27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5 27919$as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; } 27920if ${gcc_cv_as_dwarf2_debug_view+:} false; then : 27921 $as_echo_n "(cached) " >&6 27922else 27923 gcc_cv_as_dwarf2_debug_view=no 27924 if test $in_tree_gas = yes; then 27925 if test $in_tree_gas_is_elf = yes \ 27926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0` 27927 then gcc_cv_as_dwarf2_debug_view=yes 27928fi 27929 elif test x$gcc_cv_as != x; then 27930 $as_echo "$conftest_s" > conftest.s 27931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 27932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27933 (eval $ac_try) 2>&5 27934 ac_status=$? 27935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27936 test $ac_status = 0; }; } 27937 then 27938 gcc_cv_as_dwarf2_debug_view=yes 27939 else 27940 echo "configure: failed program was" >&5 27941 cat conftest.s >&5 27942 fi 27943 rm -f conftest.o conftest.s 27944 fi 27945fi 27946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5 27947$as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; } 27948if test $gcc_cv_as_dwarf2_debug_view = yes; then 27949 27950$as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h 27951 27952fi 27953 27954 fi 27955 fi 27956 27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5 27958$as_echo_n "checking assembler for --gdwarf2 option... " >&6; } 27959if ${gcc_cv_as_gdwarf2_flag+:} false; then : 27960 $as_echo_n "(cached) " >&6 27961else 27962 gcc_cv_as_gdwarf2_flag=no 27963 if test $in_tree_gas = yes; then 27964 if test $in_tree_gas_is_elf = yes \ 27965 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 27966 then gcc_cv_as_gdwarf2_flag=yes 27967fi 27968 elif test x$gcc_cv_as != x; then 27969 $as_echo "$insn" > conftest.s 27970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5' 27971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 27972 (eval $ac_try) 2>&5 27973 ac_status=$? 27974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27975 test $ac_status = 0; }; } 27976 then 27977 gcc_cv_as_gdwarf2_flag=yes 27978 else 27979 echo "configure: failed program was" >&5 27980 cat conftest.s >&5 27981 fi 27982 rm -f conftest.o conftest.s 27983 fi 27984fi 27985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5 27986$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; } 27987if test $gcc_cv_as_gdwarf2_flag = yes; then 27988 27989$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h 27990 27991fi 27992 27993 27994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5 27995$as_echo_n "checking assembler for --gstabs option... " >&6; } 27996if ${gcc_cv_as_gstabs_flag+:} false; then : 27997 $as_echo_n "(cached) " >&6 27998else 27999 gcc_cv_as_gstabs_flag=no 28000 if test $in_tree_gas = yes; then 28001 if test $in_tree_gas_is_elf = yes \ 28002 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0` 28003 then gcc_cv_as_gstabs_flag=yes 28004fi 28005 elif test x$gcc_cv_as != x; then 28006 $as_echo "$insn" > conftest.s 28007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5' 28008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28009 (eval $ac_try) 2>&5 28010 ac_status=$? 28011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28012 test $ac_status = 0; }; } 28013 then 28014 gcc_cv_as_gstabs_flag=yes 28015 else 28016 echo "configure: failed program was" >&5 28017 cat conftest.s >&5 28018 fi 28019 rm -f conftest.o conftest.s 28020 fi 28021fi 28022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5 28023$as_echo "$gcc_cv_as_gstabs_flag" >&6; } 28024if test $gcc_cv_as_gstabs_flag = yes; then 28025 28026$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h 28027 28028fi 28029 28030 28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5 28032$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; } 28033if ${gcc_cv_as_debug_prefix_map_flag+:} false; then : 28034 $as_echo_n "(cached) " >&6 28035else 28036 gcc_cv_as_debug_prefix_map_flag=no 28037 if test $in_tree_gas = yes; then 28038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0` 28039 then gcc_cv_as_debug_prefix_map_flag=yes 28040fi 28041 elif test x$gcc_cv_as != x; then 28042 $as_echo "$insn" > conftest.s 28043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5' 28044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28045 (eval $ac_try) 2>&5 28046 ac_status=$? 28047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28048 test $ac_status = 0; }; } 28049 then 28050 gcc_cv_as_debug_prefix_map_flag=yes 28051 else 28052 echo "configure: failed program was" >&5 28053 cat conftest.s >&5 28054 fi 28055 rm -f conftest.o conftest.s 28056 fi 28057fi 28058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5 28059$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; } 28060if test $gcc_cv_as_debug_prefix_map_flag = yes; then 28061 28062$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h 28063 28064fi 28065 28066fi 28067 28068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5 28069$as_echo_n "checking assembler for compressed debug sections... " >&6; } 28070if ${gcc_cv_as_compress_debug+:} false; then : 28071 $as_echo_n "(cached) " >&6 28072else 28073 gcc_cv_as_compress_debug=no 28074 if test x$gcc_cv_as != x; then 28075 $as_echo '' > conftest.s 28076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28078 (eval $ac_try) 2>&5 28079 ac_status=$? 28080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28081 test $ac_status = 0; }; } 28082 then 28083 # gas compiled without zlib cannot compress debug sections and warns 28084 # about it, but still exits successfully. So check for this, too. 28085 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null 28086 then 28087 gcc_cv_as_compress_debug=0 28088 # Since binutils 2.26, gas supports --compress-debug-sections=type, 28089 # defaulting to the ELF gABI format. 28090 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1 28091 then 28092 gcc_cv_as_compress_debug=2 28093 gcc_cv_as_compress_debug_option="--compress-debug-sections" 28094 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections" 28095 # Before binutils 2.26, gas only supported --compress-debug-options and 28096 # emitted the traditional GNU format. 28097 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1 28098 then 28099 gcc_cv_as_compress_debug=1 28100 gcc_cv_as_compress_debug_option="--compress-debug-sections" 28101 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections" 28102 else 28103 gcc_cv_as_compress_debug=0 28104 fi 28105 else 28106 echo "configure: failed program was" >&5 28107 cat conftest.s >&5 28108 fi 28109 rm -f conftest.o conftest.s 28110 fi 28111fi 28112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5 28113$as_echo "$gcc_cv_as_compress_debug" >&6; } 28114 28115 28116 28117cat >>confdefs.h <<_ACEOF 28118#define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug 28119_ACEOF 28120 28121 28122cat >>confdefs.h <<_ACEOF 28123#define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option" 28124_ACEOF 28125 28126 28127cat >>confdefs.h <<_ACEOF 28128#define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option" 28129_ACEOF 28130 28131 28132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5 28133$as_echo_n "checking assembler for .lcomm with alignment... " >&6; } 28134if ${gcc_cv_as_lcomm_with_alignment+:} false; then : 28135 $as_echo_n "(cached) " >&6 28136else 28137 gcc_cv_as_lcomm_with_alignment=no 28138 if test x$gcc_cv_as != x; then 28139 $as_echo '.lcomm bar,4,16' > conftest.s 28140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28142 (eval $ac_try) 2>&5 28143 ac_status=$? 28144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28145 test $ac_status = 0; }; } 28146 then 28147 gcc_cv_as_lcomm_with_alignment=yes 28148 else 28149 echo "configure: failed program was" >&5 28150 cat conftest.s >&5 28151 fi 28152 rm -f conftest.o conftest.s 28153 fi 28154fi 28155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5 28156$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; } 28157if test $gcc_cv_as_lcomm_with_alignment = yes; then 28158 28159$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h 28160 28161fi 28162 28163 28164if test x$with_sysroot = x && test x$host = x$target \ 28165 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \ 28166 && test "$prefix" != "NONE"; then 28167 28168cat >>confdefs.h <<_ACEOF 28169#define PREFIX_INCLUDE_DIR "$prefix/include" 28170_ACEOF 28171 28172fi 28173 28174# Determine the version of glibc, if any, used on the target. 28175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5 28176$as_echo_n "checking for target glibc version... " >&6; } 28177 28178# Check whether --with-glibc-version was given. 28179if test "${with_glibc_version+set}" = set; then : 28180 withval=$with_glibc_version; 28181if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then 28182 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'` 28183 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'` 28184else 28185 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5 28186fi 28187else 28188 28189glibc_version_major=0 28190glibc_version_minor=0 28191if test -f $target_header_dir/features.h \ 28192 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \ 28193 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then 28194 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'` 28195 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'` 28196fi 28197fi 28198 28199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5 28200$as_echo "$glibc_version_major.$glibc_version_minor" >&6; } 28201 28202cat >>confdefs.h <<_ACEOF 28203#define TARGET_GLIBC_MAJOR $glibc_version_major 28204_ACEOF 28205 28206 28207cat >>confdefs.h <<_ACEOF 28208#define TARGET_GLIBC_MINOR $glibc_version_minor 28209_ACEOF 28210 28211 28212# Check whether --enable-gnu-unique-object was given. 28213if test "${enable_gnu_unique_object+set}" = set; then : 28214 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in 28215 yes | no) ;; 28216 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object. 28217Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; 28218 esac 28219else 28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5 28221$as_echo_n "checking assembler for gnu_unique_object... " >&6; } 28222if ${gcc_cv_as_gnu_unique_object+:} false; then : 28223 $as_echo_n "(cached) " >&6 28224else 28225 gcc_cv_as_gnu_unique_object=no 28226 if test $in_tree_gas = yes; then 28227 if test $in_tree_gas_is_elf = yes \ 28228 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52` 28229 then gcc_cv_as_gnu_unique_object=yes 28230fi 28231 elif test x$gcc_cv_as != x; then 28232 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s 28233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' 28234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28235 (eval $ac_try) 2>&5 28236 ac_status=$? 28237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28238 test $ac_status = 0; }; } 28239 then 28240 gcc_cv_as_gnu_unique_object=yes 28241 else 28242 echo "configure: failed program was" >&5 28243 cat conftest.s >&5 28244 fi 28245 rm -f conftest.o conftest.s 28246 fi 28247fi 28248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5 28249$as_echo "$gcc_cv_as_gnu_unique_object" >&6; } 28250if test $gcc_cv_as_gnu_unique_object = yes; then 28251 # We need to unquote above to to use the definition from config.gcc. 28252# Also check for ld.so support, i.e. glibc 2.11 or higher. 28253 28254if test $glibc_version_major -gt 2 \ 28255 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then : 28256 enable_gnu_unique_object=yes 28257fi 28258 28259fi 28260 28261fi 28262 28263if test x$enable_gnu_unique_object = xyes; then 28264 28265$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h 28266 28267fi 28268 28269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5 28270$as_echo_n "checking assembler for tolerance to line number 0... " >&6; } 28271if ${gcc_cv_as_line_zero+:} false; then : 28272 $as_echo_n "(cached) " >&6 28273else 28274 gcc_cv_as_line_zero=no 28275 if test $in_tree_gas = yes; then 28276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91` 28277 then gcc_cv_as_line_zero=yes 28278fi 28279 elif test "x$gcc_cv_as" != x; then 28280 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s 28281 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out' 28282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28283 (eval $ac_try) 2>&5 28284 ac_status=$? 28285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28286 test $ac_status = 0; }; } && 28287 test "x`cat conftest.out`" = x 28288 then 28289 gcc_cv_as_line_zero=yes 28290 else 28291 echo "configure: failed program was" >&5 28292 cat conftest.s >&5 28293 echo "configure: error output was" >&5 28294 cat conftest.out >&5 28295 fi 28296 rm -f conftest.o conftest.s conftest.out 28297 fi 28298fi 28299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5 28300$as_echo "$gcc_cv_as_line_zero" >&6; } 28301if test "x$gcc_cv_as_line_zero" = xyes; then 28302 28303$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h 28304 28305fi 28306 28307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5 28308$as_echo_n "checking support for thin archives... " >&6; } 28309thin_archive_support=no 28310echo 'int main (void) { return 0; }' > conftest.c 28311if ($AR --version | sed 1q | grep "GNU ar" \ 28312 && $CC $CFLAGS -c conftest.c \ 28313 && $AR rcT conftest.a conftest.o \ 28314 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then 28315 thin_archive_support=yes 28316fi 28317rm -f conftest.c conftest.o conftest.a conftest 28318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5 28319$as_echo "$thin_archive_support" >&6; } 28320 28321 28322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5 28323$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; } 28324gcc_cv_ld_eh_frame_hdr=no 28325if test $in_tree_ld = yes ; then 28326 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 \ 28327 && test $in_tree_ld_is_elf = yes; then 28328 gcc_cv_ld_eh_frame_hdr=yes 28329 fi 28330elif test x$gcc_cv_ld != x; then 28331 if echo "$ld_ver" | grep GNU > /dev/null; then 28332 # Check if linker supports --eh-frame-hdr option 28333 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then 28334 gcc_cv_ld_eh_frame_hdr=yes 28335 fi 28336 else 28337 case "$target" in 28338 *-*-solaris2*) 28339 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251. 28340 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then 28341 gcc_cv_ld_eh_frame_hdr=yes 28342 fi 28343 ;; 28344 esac 28345 fi 28346fi 28347 28348if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then 28349 28350$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h 28351 28352fi 28353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5 28354$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; } 28355 28356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5 28357$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; } 28358gcc_cv_ld_eh_frame_ciev3=no 28359if test $in_tree_ld = yes ; then 28360 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 \ 28361 && test $in_tree_ld_is_elf = yes; then 28362 gcc_cv_ld_eh_frame_ciev3=yes 28363 fi 28364elif test x$gcc_cv_ld != x; then 28365 if echo "$ld_ver" | grep GNU > /dev/null; then 28366 gcc_cv_ld_eh_frame_ciev3=yes 28367 if test 0"$ld_date" -lt 20040513; then 28368 if test -n "$ld_date"; then 28369 # If there was date string, but was earlier than 2004-05-13, fail 28370 gcc_cv_ld_eh_frame_ciev3=no 28371 elif test "$ld_vers_major" -lt 2; then 28372 gcc_cv_ld_eh_frame_ciev3=no 28373 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then 28374 gcc_cv_ld_eh_frame_ciev3=no 28375 fi 28376 fi 28377 else 28378 case "$target" in 28379 *-*-solaris2*) 28380 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1. 28381 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then 28382 gcc_cv_ld_eh_frame_ciev3=yes 28383 fi 28384 ;; 28385 esac 28386 fi 28387fi 28388 28389cat >>confdefs.h <<_ACEOF 28390#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi` 28391_ACEOF 28392 28393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5 28394$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; } 28395 28396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5 28397$as_echo_n "checking linker position independent executable support... " >&6; } 28398gcc_cv_ld_pie=no 28399if test $in_tree_ld = yes ; then 28400 case "$target" in 28401 # Full PIE support on Solaris was only introduced in gld 2.26. 28402 *-*-solaris2*) gcc_gld_pie_min_version=26 ;; 28403 *) gcc_gld_pie_min_version=15 ;; 28404 esac 28405 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 \ 28406 && test $in_tree_ld_is_elf = yes; then 28407 gcc_cv_ld_pie=yes 28408 fi 28409elif test x$gcc_cv_ld != x; then 28410 # Check if linker supports -pie option 28411 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then 28412 gcc_cv_ld_pie=yes 28413 case "$target" in 28414 *-*-solaris2*) 28415 if echo "$ld_ver" | grep GNU > /dev/null \ 28416 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then 28417 gcc_cv_ld_pie=no 28418 fi 28419 ;; 28420 esac 28421 else 28422 case "$target" in 28423 *-*-solaris2.1[1-9]*) 28424 # Solaris 11.3 added PIE support. 28425 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then 28426 gcc_cv_ld_pie=yes 28427 fi 28428 ;; 28429 esac 28430 fi 28431fi 28432if test x"$gcc_cv_ld_pie" = xyes; then 28433 28434$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h 28435 28436fi 28437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5 28438$as_echo "$gcc_cv_ld_pie" >&6; } 28439 28440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5 28441$as_echo_n "checking linker PIE support with copy reloc... " >&6; } 28442gcc_cv_ld_pie_copyreloc=no 28443if test $gcc_cv_ld_pie = yes ; then 28444 if test $in_tree_ld = yes ; then 28445 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 28446 gcc_cv_ld_pie_copyreloc=yes 28447 fi 28448 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 28449 # Check if linker supports -pie option with copy reloc 28450 case "$target" in 28451 i?86-*-linux* | x86_64-*-linux*) 28452 cat > conftest1.s <<EOF 28453 .globl a_glob 28454 .data 28455 .type a_glob, @object 28456 .size a_glob, 4 28457a_glob: 28458 .long 2 28459EOF 28460 cat > conftest2.s <<EOF 28461 .text 28462 .globl main 28463 .type main, @function 28464main: 28465 movl %eax, a_glob(%rip) 28466 .size main, .-main 28467 .globl ptr 28468 .section .data.rel,"aw",@progbits 28469 .type ptr, @object 28470ptr: 28471 .quad a_glob 28472EOF 28473 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 28474 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \ 28475 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 28476 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then 28477 gcc_cv_ld_pie_copyreloc=yes 28478 fi 28479 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s 28480 ;; 28481 esac 28482 fi 28483fi 28484 28485cat >>confdefs.h <<_ACEOF 28486#define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi` 28487_ACEOF 28488 28489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5 28490$as_echo "$gcc_cv_ld_pie_copyreloc" >&6; } 28491 28492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5 28493$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; } 28494gcc_cv_ld_eh_gc_sections=no 28495if test $in_tree_ld = yes ; then 28496 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 \ 28497 && test $in_tree_ld_is_elf = yes; then 28498 gcc_cv_ld_eh_gc_sections=yes 28499 fi 28500elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 28501 cat > conftest.s <<EOF 28502 .section .text 28503.globl _start 28504 .type _start, @function 28505_start: 28506 .long foo 28507 .size _start, .-_start 28508 .section .text.foo,"ax",@progbits 28509 .type foo, @function 28510foo: 28511 .long 0 28512 .size foo, .-foo 28513 .section .gcc_except_table.foo,"a",@progbits 28514.L0: 28515 .long 0 28516 .section .eh_frame,"a",@progbits 28517 .long .L0 28518EOF 28519 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 28520 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 28521 | grep "gc-sections option ignored" > /dev/null; then 28522 gcc_cv_ld_eh_gc_sections=no 28523 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 28524 | grep gcc_except_table > /dev/null; then 28525 gcc_cv_ld_eh_gc_sections=yes 28526 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections. 28527 if test x$gcc_cv_as_comdat_group != xyes; then 28528 gcc_cv_ld_eh_gc_sections=no 28529 cat > conftest.s <<EOF 28530 .section .text 28531.globl _start 28532 .type _start, @function 28533_start: 28534 .long foo 28535 .size _start, .-_start 28536 .section .gnu.linkonce.t.foo,"ax",@progbits 28537 .type foo, @function 28538foo: 28539 .long 0 28540 .size foo, .-foo 28541 .section .gcc_except_table.foo,"a",@progbits 28542.L0: 28543 .long 0 28544 .section .eh_frame,"a",@progbits 28545 .long .L0 28546EOF 28547 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 28548 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 28549 | grep "gc-sections option ignored" > /dev/null; then 28550 gcc_cv_ld_eh_gc_sections=no 28551 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 28552 | grep gcc_except_table > /dev/null; then 28553 gcc_cv_ld_eh_gc_sections=yes 28554 fi 28555 fi 28556 fi 28557 fi 28558 fi 28559 rm -f conftest.s conftest.o conftest 28560fi 28561case "$target" in 28562 hppa*-*-linux*) 28563 # ??? This apparently exposes a binutils bug with PC-relative relocations. 28564 gcc_cv_ld_eh_gc_sections=no 28565 ;; 28566esac 28567if test x$gcc_cv_ld_eh_gc_sections = xyes; then 28568 28569$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h 28570 28571fi 28572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5 28573$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; } 28574 28575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5 28576$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; } 28577gcc_cv_ld_eh_gc_sections_bug=no 28578if test $in_tree_ld = yes ; then 28579 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 \ 28580 && test $in_tree_ld_is_elf = yes; then 28581 gcc_cv_ld_eh_gc_sections_bug=yes 28582 fi 28583elif 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 28584 gcc_cv_ld_eh_gc_sections_bug=yes 28585 cat > conftest.s <<EOF 28586 .section .text 28587.globl _start 28588 .type _start, @function 28589_start: 28590 .long foo 28591 .size _start, .-_start 28592 .section .text.startup.foo,"ax",@progbits 28593 .type foo, @function 28594foo: 28595 .long 0 28596 .size foo, .-foo 28597 .section .gcc_except_table.foo,"a",@progbits 28598.L0: 28599 .long 0 28600 .section .eh_frame,"a",@progbits 28601 .long .L0 28602EOF 28603 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 28604 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ 28605 | grep "gc-sections option ignored" > /dev/null; then 28606 : 28607 elif $gcc_cv_objdump -h conftest 2> /dev/null \ 28608 | grep gcc_except_table > /dev/null; then 28609 gcc_cv_ld_eh_gc_sections_bug=no 28610 fi 28611 fi 28612 rm -f conftest.s conftest.o conftest 28613fi 28614if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then 28615 28616$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h 28617 28618fi 28619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5 28620$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; } 28621 28622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5 28623$as_echo_n "checking linker for compressed debug sections... " >&6; } 28624# gold/gld support compressed debug sections since binutils 2.19/2.21 28625# In binutils 2.26, gld gained support for the ELF gABI format. 28626if test $in_tree_ld = yes ; then 28627 gcc_cv_ld_compress_debug=0 28628 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 \ 28629 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then 28630 gcc_cv_ld_compress_debug=2 28631 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 28632 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 \ 28633 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then 28634 gcc_cv_ld_compress_debug=3 28635 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 28636 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 \ 28637 && test $in_tree_ld_is_elf = yes; then 28638 gcc_cv_ld_compress_debug=1 28639 fi 28640elif echo "$ld_ver" | grep GNU > /dev/null; then 28641 if test "$ld_vers_major" -lt 2 \ 28642 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then 28643 gcc_cv_ld_compress_debug=0 28644 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then 28645 gcc_cv_ld_compress_debug=1 28646 else 28647 gcc_cv_ld_compress_debug=3 28648 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 28649 fi 28650 if test $ld_is_gold = yes; then 28651 gcc_cv_ld_compress_debug=2 28652 gcc_cv_ld_compress_debug_option="--compress-debug-sections" 28653 fi 28654else 28655 case "${target}" in 28656 *-*-solaris2*) 28657 # Introduced in Solaris 11.2. 28658 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then 28659 gcc_cv_ld_compress_debug=3 28660 gcc_cv_ld_compress_debug_option="-z compress-sections" 28661 else 28662 gcc_cv_ld_compress_debug=0 28663 fi 28664 ;; 28665 *) 28666 # Assume linkers other than GNU ld don't support compessed debug 28667 # sections. 28668 gcc_cv_ld_compress_debug=0 28669 ;; 28670 esac 28671fi 28672 28673cat >>confdefs.h <<_ACEOF 28674#define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug 28675_ACEOF 28676 28677 28678cat >>confdefs.h <<_ACEOF 28679#define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option" 28680_ACEOF 28681 28682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5 28683$as_echo "$gcc_cv_ld_compress_debug" >&6; } 28684 28685if test x"$ld64_flag" = x"yes"; then 28686 28687 # Set defaults for possibly untestable items. 28688 gcc_cv_ld64_export_dynamic=0 28689 28690 if test "$build" = "$host"; then 28691 darwin_try_test=1 28692 else 28693 darwin_try_test=0 28694 fi 28695 28696 # On Darwin, because of FAT library support, it is often possible to execute 28697 # exes from compatible archs even when the host differs from the build system. 28698 case "$build","$host" in 28699 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*) 28700 darwin_try_test=1;; 28701 *) ;; 28702 esac 28703 28704 # If the configurer specified a minimum ld64 version to be supported, then use 28705 # that to determine feature support. 28706 if test x"${gcc_cv_ld64_version}" != x; then 28707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5 28708$as_echo_n "checking ld64 specified version... " >&6; } 28709 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'` 28710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5 28711$as_echo "$gcc_cv_ld64_major" >&6; } 28712 if test "$gcc_cv_ld64_major" -ge 236; then 28713 gcc_cv_ld64_export_dynamic=1 28714 fi 28715 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then 28716 # If the version was not specified, try to find it. 28717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5 28718$as_echo_n "checking linker version... " >&6; } 28719 if test x"${gcc_cv_ld64_version}" = x; then 28720 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'` 28721 fi 28722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5 28723$as_echo "$gcc_cv_ld64_version" >&6; } 28724 28725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5 28726$as_echo_n "checking linker for -export_dynamic support... " >&6; } 28727 gcc_cv_ld64_export_dynamic=1 28728 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then 28729 gcc_cv_ld64_export_dynamic=0 28730 fi 28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5 28732$as_echo "$gcc_cv_ld64_export_dynamic" >&6; } 28733 fi 28734 28735 if test x"${gcc_cv_ld64_version}" != x; then 28736 28737cat >>confdefs.h <<_ACEOF 28738#define LD64_VERSION "${gcc_cv_ld64_version}" 28739_ACEOF 28740 28741 fi 28742 28743 28744cat >>confdefs.h <<_ACEOF 28745#define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic 28746_ACEOF 28747 28748fi 28749 28750# -------- 28751# UNSORTED 28752# -------- 28753 28754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 28755$as_echo_n "checking linker --as-needed support... " >&6; } 28756if ${gcc_cv_ld_as_needed+:} false; then : 28757 $as_echo_n "(cached) " >&6 28758else 28759 gcc_cv_ld_as_needed=no 28760gcc_cv_ld_as_needed_option='--as-needed' 28761gcc_cv_ld_no_as_needed_option='--no-as-needed' 28762if test $in_tree_ld = yes ; then 28763 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 \ 28764 && test $in_tree_ld_is_elf = yes; then 28765 gcc_cv_ld_as_needed=yes 28766 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then 28767 gcc_cv_ld_as_needed_option='--push-state --as-needed' 28768 gcc_cv_ld_no_as_needed_option='--pop-state' 28769 fi 28770 fi 28771elif test x$gcc_cv_ld != x; then 28772 # Check if linker supports --as-needed and --no-as-needed options 28773 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then 28774 gcc_cv_ld_as_needed=yes 28775 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \ 28776 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \ 28777 && echo "$ld_ver" | grep GNU > /dev/null \ 28778 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then 28779 # Use these options only when both ld.bfd and ld.gold support 28780 # --push-state/--pop-state, which unfortunately wasn't added 28781 # at the same time. 28782 gcc_cv_ld_as_needed_option='--push-state --as-needed' 28783 gcc_cv_ld_no_as_needed_option='--pop-state' 28784 fi 28785 fi 28786 case "$target:$gnu_ld" in 28787 *-*-solaris2*:no) 28788 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native 28789 # forms. 28790 gcc_cv_ld_as_needed=yes 28791 gcc_cv_ld_as_needed_option="-z ignore" 28792 gcc_cv_ld_no_as_needed_option="-z record" 28793 ;; 28794 esac 28795fi 28796# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses 28797# dl_iterate_phdr, i.e. since Solaris 11. 28798case "$target" in 28799 *-*-solaris2.1[1-9]*) 28800 case "$target" in 28801 i?86-*-* | x86_64-*-*) 28802 if echo "$ld_ver" | grep GNU > /dev/null; then 28803 # Doesn't work with gld on Solaris/x86 due to PR ld/12320. 28804 gcc_cv_ld_as_needed=no 28805 fi 28806 ;; 28807 esac 28808 ;; 28809 *-*-solaris2*) 28810 gcc_cv_ld_as_needed=no 28811 ;; 28812esac 28813 28814fi 28815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5 28816$as_echo "$gcc_cv_ld_as_needed" >&6; } 28817if test x"$gcc_cv_ld_as_needed" = xyes; then 28818 28819$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h 28820 28821 28822cat >>confdefs.h <<_ACEOF 28823#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option" 28824_ACEOF 28825 28826 28827cat >>confdefs.h <<_ACEOF 28828#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option" 28829_ACEOF 28830 28831fi 28832 28833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5 28834$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; } 28835saved_LDFLAGS="$LDFLAGS" 28836for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do 28837 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map" 28838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28839/* end confdefs.h. */ 28840int main(void) {return 0;} 28841_ACEOF 28842if ac_fn_cxx_try_link "$LINENO"; then : 28843 gcc_cv_ld_clearcap=yes; break 28844else 28845 gcc_cv_ld_clearcap=no 28846fi 28847rm -f core conftest.err conftest.$ac_objext \ 28848 conftest$ac_exeext conftest.$ac_ext 28849done 28850LDFLAGS="$saved_LDFLAGS" 28851if test "x$gcc_cv_ld_clearcap" = xyes; then 28852 28853$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h 28854 28855 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map" 28856 28857fi 28858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5 28859$as_echo "$gcc_cv_ld_clearcap" >&6; } 28860 28861case "$target" in 28862 powerpc*-*-*) 28863 case "$target" in 28864 *le-*-linux*) 28865 emul_name="-melf32lppc" 28866 ;; 28867 *) 28868 emul_name="-melf32ppc" 28869 ;; 28870 esac 28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5 28872$as_echo_n "checking linker .gnu.attributes long double support... " >&6; } 28873if ${gcc_cv_ld_ppc_attr+:} false; then : 28874 $as_echo_n "(cached) " >&6 28875else 28876 gcc_cv_ld_ppc_attr=no 28877 if test x"$ld_is_gold" = xyes; then 28878 gcc_cv_ld_ppc_attr=yes 28879 elif test $in_tree_ld = yes ; then 28880 if test "$gcc_cv_gld_major_version" -eq 2 \ 28881 -a "$gcc_cv_gld_minor_version" -ge 28 \ 28882 -o "$gcc_cv_gld_major_version" -gt 2; then 28883 gcc_cv_ld_ppc_attr=yes 28884 fi 28885 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 28886 # check that merging the long double .gnu_attribute doesn't warn 28887 cat > conftest1.s <<EOF 28888 .gnu_attribute 4,1 28889EOF 28890 cat > conftest2.s <<EOF 28891 .gnu_attribute 4,9 28892EOF 28893 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 28894 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 28895 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \ 28896 && test ! -s conftest.err; then 28897 gcc_cv_ld_ppc_attr=yes 28898 fi 28899 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s 28900 fi 28901 28902fi 28903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5 28904$as_echo "$gcc_cv_ld_ppc_attr" >&6; } 28905 if test x$gcc_cv_ld_ppc_attr = xyes; then 28906 28907$as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h 28908 28909 fi 28910 ;; 28911esac 28912 28913case "$target:$tm_file" in 28914 powerpc64-*-freebsd* | powerpc64-*-netbsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*) 28915 case "$target" in 28916 *le-*-linux*) 28917 emul_name="-melf64lppc" 28918 ;; 28919 *-*-linux* | *-*-netbsd*) 28920 emul_name="-melf64ppc" 28921 ;; 28922 *-*-freebsd*) 28923 emul_name="-melf64ppc_fbsd" 28924 ;; 28925 esac 28926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5 28927$as_echo_n "checking linker support for omitting dot symbols... " >&6; } 28928if ${gcc_cv_ld_no_dot_syms+:} false; then : 28929 $as_echo_n "(cached) " >&6 28930else 28931 gcc_cv_ld_no_dot_syms=no 28932 if test x"$ld_is_gold" = xyes; then 28933 gcc_cv_ld_no_dot_syms=yes 28934 elif test $in_tree_ld = yes ; then 28935 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 28936 gcc_cv_ld_no_dot_syms=yes 28937 fi 28938 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 28939 cat > conftest1.s <<EOF 28940 .text 28941 bl .foo 28942EOF 28943 cat > conftest2.s <<EOF 28944 .section ".opd","aw" 28945 .align 3 28946 .globl foo 28947 .type foo,@function 28948foo: 28949 .quad .LEfoo,.TOC.@tocbase,0 28950 .text 28951.LEfoo: 28952 blr 28953 .size foo,.-.LEfoo 28954EOF 28955 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \ 28956 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \ 28957 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then 28958 gcc_cv_ld_no_dot_syms=yes 28959 fi 28960 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s 28961 fi 28962 28963fi 28964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5 28965$as_echo "$gcc_cv_ld_no_dot_syms" >&6; } 28966 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then 28967 28968$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h 28969 28970 fi 28971 28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5 28973$as_echo_n "checking linker large toc support... " >&6; } 28974if ${gcc_cv_ld_large_toc+:} false; then : 28975 $as_echo_n "(cached) " >&6 28976else 28977 gcc_cv_ld_large_toc=no 28978 if test x"$ld_is_gold" = xyes; then 28979 gcc_cv_ld_large_toc=yes 28980 elif test $in_tree_ld = yes ; then 28981 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 28982 gcc_cv_ld_large_toc=yes 28983 fi 28984 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then 28985 cat > conftest.s <<EOF 28986 .section ".tbss","awT",@nobits 28987 .align 3 28988ie0: .space 8 28989 .global _start 28990 .text 28991_start: 28992 addis 9,13,ie0@got@tprel@ha 28993 ld 9,ie0@got@tprel@l(9) 28994EOF 28995 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 28996 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then 28997 gcc_cv_ld_large_toc=yes 28998 fi 28999 rm -f conftest conftest.o conftest.s 29000 fi 29001 29002fi 29003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5 29004$as_echo "$gcc_cv_ld_large_toc" >&6; } 29005 if test x"$gcc_cv_ld_large_toc" = xyes; then 29006 29007$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h 29008 29009 fi 29010 29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5 29012$as_echo_n "checking linker toc pointer alignment... " >&6; } 29013if ${gcc_cv_ld_toc_align+:} false; then : 29014 $as_echo_n "(cached) " >&6 29015else 29016 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then 29017 cat > conftest.s <<EOF 29018 .global _start 29019 .text 29020_start: 29021 addis 9,2,x@got@ha 29022 .section .data.rel.ro,"aw",@progbits 29023 .p2align 16 29024 .space 32768 29025x: .quad .TOC. 29026EOF 29027 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ 29028 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then 29029 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)) }'` 29030 fi 29031 rm -f conftest conftest.o conftest.s 29032 fi 29033 29034fi 29035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5 29036$as_echo "$gcc_cv_ld_toc_align" >&6; } 29037 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then 29038 29039cat >>confdefs.h <<_ACEOF 29040#define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align 29041_ACEOF 29042 29043 fi 29044 ;; 29045esac 29046 29047case "$target" in 29048 *-*-aix*) 29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5 29050$as_echo_n "checking linker large toc support... " >&6; } 29051if ${gcc_cv_ld_large_toc+:} false; then : 29052 $as_echo_n "(cached) " >&6 29053else 29054 gcc_cv_ld_large_toc=no 29055 if test x$gcc_cv_as != x ; then 29056 cat > conftest.s <<EOF 29057 .toc 29058LC..1: 29059 .tc a[TC],a[RW] 29060 .extern a[RW] 29061 .csect .text[PR] 29062.largetoctest: 29063 addis 9,LC..1@u(2) 29064 ld 3,LC..1@l(9) 29065EOF 29066 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then 29067 gcc_cv_ld_large_toc=yes 29068 fi 29069 rm -f conftest conftest.o conftest.s 29070 fi 29071 29072fi 29073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5 29074$as_echo "$gcc_cv_ld_large_toc" >&6; } 29075 if test x"$gcc_cv_ld_large_toc" = xyes; then 29076 29077$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h 29078 29079 fi 29080 ;; 29081esac 29082 29083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5 29084$as_echo_n "checking linker --build-id support... " >&6; } 29085if ${gcc_cv_ld_buildid+:} false; then : 29086 $as_echo_n "(cached) " >&6 29087else 29088 gcc_cv_ld_buildid=no 29089 if test $in_tree_ld = yes ; then 29090 if test "$gcc_cv_gld_major_version" -eq 2 -a \ 29091 "$gcc_cv_gld_minor_version" -ge 18 -o \ 29092 "$gcc_cv_gld_major_version" -gt 2 \ 29093 && test $in_tree_ld_is_elf = yes; then 29094 gcc_cv_ld_buildid=yes 29095 fi 29096 elif test x$gcc_cv_ld != x; then 29097 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then 29098 gcc_cv_ld_buildid=yes 29099 fi 29100 fi 29101fi 29102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5 29103$as_echo "$gcc_cv_ld_buildid" >&6; } 29104if test x"$gcc_cv_ld_buildid" = xyes; then 29105 29106$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h 29107 29108fi 29109 29110# Check whether --enable-linker-build-id was given. 29111if test "${enable_linker_build_id+set}" = set; then : 29112 enableval=$enable_linker_build_id; 29113else 29114 enable_linker_build_id=no 29115fi 29116 29117 29118if test x"$enable_linker_build_id" = xyes; then 29119 if test x"$gcc_cv_ld_buildid" = xyes; then 29120 29121$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h 29122 29123 else 29124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5 29125$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;} 29126 fi 29127fi 29128 29129# In binutils 2.21, GNU ld gained support for new emulations fully 29130# supporting the Solaris 2 ABI. Detect their presence in the linker used. 29131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5 29132$as_echo_n "checking linker *_sol2 emulation support... " >&6; } 29133if ${gcc_cv_ld_sol2_emulation+:} false; then : 29134 $as_echo_n "(cached) " >&6 29135else 29136 gcc_cv_ld_sol2_emulation=no 29137 if test $in_tree_ld = yes ; then 29138 if test "$gcc_cv_gld_major_version" -eq 2 -a \ 29139 "$gcc_cv_gld_minor_version" -ge 21 -o \ 29140 "$gcc_cv_gld_major_version" -gt 2 \ 29141 && test $in_tree_ld_is_elf = yes; then 29142 gcc_cv_ld_sol2_emulation=yes 29143 fi 29144 elif test x$gcc_cv_ld != x; then 29145 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \ 29146 grep _sol2 > /dev/null; then 29147 gcc_cv_ld_sol2_emulation=yes 29148 fi 29149 fi 29150fi 29151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5 29152$as_echo "$gcc_cv_ld_sol2_emulation" >&6; } 29153if test x"$gcc_cv_ld_sol2_emulation" = xyes; then 29154 29155$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h 29156 29157fi 29158 29159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5 29160$as_echo_n "checking linker --sysroot support... " >&6; } 29161if ${gcc_cv_ld_sysroot+:} false; then : 29162 $as_echo_n "(cached) " >&6 29163else 29164 gcc_cv_ld_sysroot=no 29165 if test $in_tree_ld = yes ; then 29166 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 29167 gcc_cv_ld_sysroot=yes 29168 fi 29169 elif test x$gcc_cv_ld != x; then 29170 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then 29171 gcc_cv_ld_sysroot=yes 29172 fi 29173 fi 29174fi 29175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5 29176$as_echo "$gcc_cv_ld_sysroot" >&6; } 29177if test x"$gcc_cv_ld_sysroot" = xyes; then 29178 29179$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h 29180 29181fi 29182 29183case $target in 29184*-*-solaris2*) 29185 # Check for system-provided CRTs on Solaris 11.x and Solaris 12. 29186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5 29187$as_echo_n "checking system-provided CRTs on Solaris... " >&6; } 29188if ${gcc_cv_solaris_crts+:} false; then : 29189 $as_echo_n "(cached) " >&6 29190else 29191 gcc_cv_solaris_crts=no 29192 if test x$host != x$target; then 29193 if test "x$with_sysroot" = xyes; then 29194 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root" 29195 else 29196 target_sysroot="${with_sysroot}" 29197 fi 29198 fi 29199 target_libdir="$target_sysroot/usr/lib" 29200 # At the time they were added, gcrt1.o became a symlink for backwards 29201 # compatibility on x86, while crt1.o was added on sparc, so check for that. 29202 case $target in 29203 i?86-*-solaris2* | x86_64-*-solaris2*) 29204 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi 29205 ;; 29206 sparc*-*-solaris2*) 29207 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi 29208 ;; 29209 esac 29210fi 29211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5 29212$as_echo "$gcc_cv_solaris_crts" >&6; } 29213 ;; 29214esac 29215if test x$gcc_cv_solaris_crts = xyes; then 29216 29217$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h 29218 29219fi 29220 29221# Check whether --enable-libssp was given. 29222if test "${enable_libssp+set}" = set; then : 29223 enableval=$enable_libssp; case "${enableval}" in 29224 yes|no) 29225 ;; 29226 *) 29227 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5 29228 ;; 29229esac 29230fi 29231 29232 29233# Test for stack protector support in target C library. 29234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5 29235$as_echo_n "checking __stack_chk_fail in target C library... " >&6; } 29236if ${gcc_cv_libc_provides_ssp+:} false; then : 29237 $as_echo_n "(cached) " >&6 29238else 29239 gcc_cv_libc_provides_ssp=no 29240 if test "x$enable_libssp" = "xno"; then 29241 gcc_cv_libc_provides_ssp=yes 29242 elif test "x$enable_libssp" = "xyes"; then 29243 gcc_cv_libc_provides_ssp=no 29244 else 29245 case "$target" in 29246 *-*-musl*) 29247 # All versions of musl provide stack protector 29248 gcc_cv_libc_provides_ssp=yes;; 29249 *-*-linux* | *-*-kfreebsd*-gnu) 29250 # glibc 2.4 and later provides __stack_chk_fail and 29251 # either __stack_chk_guard, or TLS access to stack guard canary. 29252 29253if test $glibc_version_major -gt 2 \ 29254 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 29255 gcc_cv_libc_provides_ssp=yes 29256else 29257 29258 if test -f $target_header_dir/features.h \ 29259 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \ 29260 $target_header_dir/features.h > /dev/null; then 29261 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \ 29262 $target_header_dir/features.h > /dev/null && \ 29263 test -f $target_header_dir/bits/uClibc_config.h && \ 29264 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \ 29265 $target_header_dir/bits/uClibc_config.h > /dev/null; then 29266 gcc_cv_libc_provides_ssp=yes 29267 fi 29268 # all versions of Bionic support stack protector 29269 elif test -f $target_header_dir/sys/cdefs.h \ 29270 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \ 29271 $target_header_dir/sys/cdefs.h > /dev/null; then 29272 gcc_cv_libc_provides_ssp=yes 29273 fi 29274fi 29275 ;; 29276 *-*-gnu*) 29277 # Avoid complicated tests (see 29278 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now 29279 # simply assert that glibc does provide this, which is true for all 29280 # realistically usable GNU/Hurd configurations. 29281 # All supported versions of musl provide it as well 29282 gcc_cv_libc_provides_ssp=yes;; 29283 *-*-darwin* | *-*-freebsd* | *-*-netbsd*) 29284 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail" 29285if test "x$ac_cv_func___stack_chk_fail" = xyes; then : 29286 gcc_cv_libc_provides_ssp=yes 29287else 29288 echo "no __stack_chk_fail on this target" 29289fi 29290 29291 ;; 29292 *) gcc_cv_libc_provides_ssp=no ;; 29293 esac 29294 fi 29295fi 29296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5 29297$as_echo "$gcc_cv_libc_provides_ssp" >&6; } 29298 29299if test x$gcc_cv_libc_provides_ssp = xyes; then 29300 29301$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h 29302 29303fi 29304 29305# Check whether --enable-default-ssp was given. 29306# Check whether --enable-default-ssp was given. 29307if test "${enable_default_ssp+set}" = set; then : 29308 enableval=$enable_default_ssp; 29309if test x$gcc_cv_libc_provides_ssp = xyes; then 29310 case "$target" in 29311 ia64*-*-*) enable_default_ssp=no ;; 29312 *) enable_default_ssp=$enableval ;; 29313 esac 29314else 29315 enable_default_ssp=no 29316fi 29317else 29318 enable_default_ssp=no 29319fi 29320 29321if test x$enable_default_ssp = xyes ; then 29322 29323$as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h 29324 29325fi 29326 29327 29328# Test for <sys/sdt.h> on the target. 29329 29330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 29331$as_echo_n "checking sys/sdt.h in the target C library... " >&6; } 29332have_sys_sdt_h=no 29333if test -f $target_header_dir/sys/sdt.h; then 29334 have_sys_sdt_h=yes 29335 29336$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h 29337 29338fi 29339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 29340$as_echo "$have_sys_sdt_h" >&6; } 29341 29342# Check if TFmode long double should be used by default or not. 29343# Some glibc targets used DFmode long double, but with glibc 2.4 29344# and later they can use TFmode. 29345case "$target" in 29346 powerpc*-*-linux* | \ 29347 sparc*-*-linux* | \ 29348 s390*-*-linux* | \ 29349 alpha*-*-linux*) 29350 29351# Check whether --with-long-double-128 was given. 29352if test "${with_long_double_128+set}" = set; then : 29353 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128" 29354else 29355 29356if test $glibc_version_major -gt 2 \ 29357 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 29358 gcc_cv_target_ldbl128=yes 29359else 29360 29361 gcc_cv_target_ldbl128=no 29362 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \ 29363 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \ 29364 && gcc_cv_target_ldbl128=yes 29365 29366fi 29367fi 29368 29369 ;; 29370esac 29371if test x$gcc_cv_target_ldbl128 = xyes; then 29372 29373$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h 29374 29375fi 29376 29377# Check if TFmode long double target should use the IBM extended double or IEEE 29378# 128-bit floating point formats if long doubles are 128-bits long. The long 29379# double type can only be switched on powerpc64 bit Linux systems where VSX is 29380# supported. Other PowerPC systems do not build the IEEE 128-bit emulator in 29381# libgcc. 29382 29383# Check whether --with-long-double-format was given. 29384if test "${with_long_double_format+set}" = set; then : 29385 withval=$with_long_double_format; 29386case "$target:$with_long_double_format" in 29387 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm) 29388 : 29389 ;; 29390 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm) 29391 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems 29392 case "$with_cpu" in 29393 power7 | power8 | power9 | power1*) 29394 : 29395 ;; 29396 *) 29397 as_fn_error $? "Configuration option --with-long-double-format is only \ 29398supported if the default cpu is power7 or newer" "$LINENO" 5 29399 with_long_double_format="" 29400 ;; 29401 esac 29402 ;; 29403 xpowerpc64*-*-linux*:*) 29404 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5 29405 with_long_double_format="" 29406 ;; 29407 *) 29408 as_fn_error $? "Configure option --with-long-double-format is only supported \ 29409on 64-bit PowerPC VSX Linux systems" "$LINENO" 5 29410 with_long_double_format="" 29411 ;; 29412esac 29413fi 29414 29415 29416# Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP 29417# values in the TCB. Currently, only GLIBC 2.23 and later support this. 29418gcc_cv_libc_provides_hwcap_in_tcb=no 29419case "$target" in 29420 powerpc*-*-linux*) 29421 29422if test $glibc_version_major -gt 2 \ 29423 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then : 29424 gcc_cv_libc_provides_hwcap_in_tcb=yes 29425fi 29426 ;; 29427esac 29428if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then 29429 29430$as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h 29431 29432fi 29433 29434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5 29435$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; } 29436gcc_cv_target_dl_iterate_phdr=unknown 29437case "$target" in 29438 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes 29439 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in 29440 # libdl there, both complicating its use and breaking compatibility 29441 # between Solaris 10 updates. 29442 *-*-solaris2.1[1-9]*) 29443 # <link.h> needs both a dl_iterate_phdr declaration and support for 29444 # compilation with largefile support. 29445 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \ 29446 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then 29447 gcc_cv_target_dl_iterate_phdr=yes 29448 else 29449 gcc_cv_target_dl_iterate_phdr=no 29450 fi 29451 ;; 29452 *-*-dragonfly* | *-*-freebsd*) 29453 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then 29454 gcc_cv_target_dl_iterate_phdr=yes 29455 else 29456 gcc_cv_target_dl_iterate_phdr=no 29457 fi 29458 ;; 29459 *-linux-musl*) 29460 gcc_cv_target_dl_iterate_phdr=yes 29461 ;; 29462esac 29463 29464if test x$gcc_cv_target_dl_iterate_phdr = xyes; then 29465 29466$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h 29467 29468fi 29469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5 29470$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; } 29471 29472# We no longer support different GC mechanisms. Emit an error if 29473# the user configures with --with-gc. 29474 29475# Check whether --with-gc was given. 29476if test "${with_gc+set}" = set; then : 29477 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5 29478fi 29479 29480 29481# Libraries to use on the host. This will normally be set by the top 29482# level Makefile. Here we simply capture the value for our Makefile. 29483if test -z "${HOST_LIBS+set}"; then 29484 HOST_LIBS= 29485fi 29486 29487 29488# Use the system's zlib library. 29489 29490 # Use the system's zlib library. 29491 zlibdir="-L\$(top_builddir)/../zlib" 29492 zlibinc="-I\$(top_srcdir)/../zlib" 29493 29494# Check whether --with-system-zlib was given. 29495if test "${with_system_zlib+set}" = set; then : 29496 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 29497 zlibdir= 29498 zlibinc= 29499 fi 29500 29501fi 29502 29503 29504 29505 29506 29507 29508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 29509$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 29510 # Check whether --enable-maintainer-mode was given. 29511if test "${enable_maintainer_mode+set}" = set; then : 29512 enableval=$enable_maintainer_mode; maintainer_mode=$enableval 29513else 29514 maintainer_mode=no 29515fi 29516 29517 29518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5 29519$as_echo "$maintainer_mode" >&6; } 29520 29521if test "$maintainer_mode" = "yes"; then 29522 MAINT='' 29523else 29524 MAINT='#' 29525fi 29526 29527 29528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5 29529$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; } 29530 # Check whether --enable-link-mutex was given. 29531if test "${enable_link_mutex+set}" = set; then : 29532 enableval=$enable_link_mutex; do_link_mutex=$enableval 29533else 29534 do_link_mutex=no 29535fi 29536 29537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5 29538$as_echo "$do_link_mutex" >&6; } 29539 29540if test "$do_link_mutex" = "yes"; then 29541 DO_LINK_MUTEX=true 29542else 29543 DO_LINK_MUTEX=false 29544fi 29545 29546 29547# -------------- 29548# Language hooks 29549# -------------- 29550 29551# Make empty files to contain the specs and options for each language. 29552# Then add #include lines to for a compiler that has specs and/or options. 29553 29554subdirs= 29555lang_opt_files= 29556lang_specs_files= 29557lang_tree_files= 29558# These (without "all_") are set in each config-lang.in. 29559# `language' must be a single word so is spelled singularly. 29560all_languages= 29561all_compilers= 29562all_outputs='Makefile' 29563# List of language configure and makefile fragments. 29564all_lang_configurefrags= 29565all_lang_makefrags= 29566# Additional files for gengtype 29567all_gtfiles="$target_gtfiles" 29568 29569# These are the languages that are set in --enable-languages, 29570# and are available in the GCC tree. 29571all_selected_languages= 29572 29573# Add the language fragments. 29574# Languages are added via two mechanisms. Some information must be 29575# recorded in makefile variables, these are defined in config-lang.in. 29576# We accumulate them and plug them into the main Makefile. 29577# The other mechanism is a set of hooks for each of the main targets 29578# like `clean', `install', etc. 29579 29580language_hooks="Make-hooks" 29581 29582for lang in ${srcdir}/*/config-lang.in 29583do 29584 test "$lang" = "${srcdir}/*/config-lang.in" && continue 29585 29586 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` 29587 if test "x$lang_alias" = x 29588 then 29589 echo "$lang doesn't set \$language." 1>&2 29590 exit 1 29591 fi 29592 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" 29593 subdirs="$subdirs $subdir" 29594 29595 # $gcc_subdir is where the gcc integration files are to be found 29596 # for a language, both for internal compiler purposes (compiler 29597 # sources implementing front-end to GCC tree converters), and for 29598 # build infrastructure purposes (Make-lang.in, etc.) 29599 # 29600 # This will be <subdir> (relative to $srcdir) if a line like 29601 # gcc_subdir="<subdir>" or gcc_subdir=<subdir> 29602 # is found in <langdir>/config-lang.in, and will remain <langdir> 29603 # otherwise. 29604 # 29605 # Except for the language alias (fetched above), the regular 29606 # "config-lang.in" contents are always retrieved from $gcc_subdir, 29607 # so a <langdir>/config-lang.in setting gcc_subdir typically sets 29608 # only this and the language alias. 29609 29610 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang` 29611 if [ "$gcc_subdir" = "" ]; then 29612 gcc_subdir="$subdir" 29613 fi 29614 29615 case ",$enable_languages," in 29616 *,$lang_alias,*) 29617 all_selected_languages="$all_selected_languages $lang_alias" 29618 if test -f $srcdir/$gcc_subdir/lang-specs.h; then 29619 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h" 29620 fi 29621 ;; 29622 esac 29623 29624 language= 29625 boot_language= 29626 compilers= 29627 outputs= 29628 gtfiles= 29629 subdir_requires= 29630 . ${srcdir}/$gcc_subdir/config-lang.in 29631 if test "x$language" = x 29632 then 29633 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2 29634 exit 1 29635 fi 29636 29637 ok=: 29638 case ",$enable_languages," in 29639 *,$lang_alias,*) ;; 29640 *) 29641 for i in $subdir_requires; do 29642 test -f "${srcdir}/$i/config-lang.in" && continue 29643 ok=false 29644 break 29645 done 29646 ;; 29647 esac 29648 $ok || continue 29649 29650 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in" 29651 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in" 29652 if test -f $srcdir/$gcc_subdir/lang.opt; then 29653 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt" 29654 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt" 29655 fi 29656 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then 29657 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def" 29658 fi 29659 all_languages="$all_languages $language" 29660 all_compilers="$all_compilers $compilers" 29661 all_outputs="$all_outputs $outputs" 29662 all_gtfiles="$all_gtfiles [$subdir] $gtfiles" 29663 case ",$enable_languages," in 29664 *,lto,*) 29665 29666$as_echo "#define ENABLE_LTO 1" >>confdefs.h 29667 29668 enable_lto=yes 29669 29670 ;; 29671 *) ;; 29672 esac 29673done 29674 29675check_languages= 29676for language in $all_selected_languages 29677do 29678 check_languages="$check_languages check-$language" 29679done 29680 29681selftest_languages= 29682for language in $all_selected_languages 29683do 29684 selftest_languages="$selftest_languages selftest-$language" 29685done 29686 29687# We link each language in with a set of hooks, reached indirectly via 29688# lang.${target}. Only do so for selected languages. 29689 29690rm -f Make-hooks 29691touch Make-hooks 29692target_list="all.cross start.encap rest.encap tags \ 29693 install-common install-man install-info install-pdf install-html dvi \ 29694 pdf html uninstall info man srcextra srcman srcinfo \ 29695 mostlyclean clean distclean maintainer-clean install-plugin" 29696 29697for t in $target_list 29698do 29699 x= 29700 for lang in $all_selected_languages 29701 do 29702 x="$x $lang.$t" 29703 done 29704 echo "lang.$t: $x" >> Make-hooks 29705done 29706 29707# -------- 29708# Option include files 29709# -------- 29710 29711${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk 29712option_includes="option-includes.mk" 29713 29714 29715# -------- 29716# UNSORTED 29717# -------- 29718 29719# Create .gdbinit. 29720 29721echo "dir ." > .gdbinit 29722echo "dir ${srcdir}" >> .gdbinit 29723if test x$gdb_needs_out_file_path = xyes 29724then 29725 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit 29726fi 29727if test "x$subdirs" != x; then 29728 for s in $subdirs 29729 do 29730 echo "dir ${srcdir}/$s" >> .gdbinit 29731 done 29732fi 29733echo "source ${srcdir}/gdbinit.in" >> .gdbinit 29734echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit 29735 29736# Put a breakpoint on __asan_report_error to help with debugging buffer 29737# overflow. 29738case "$CFLAGS" in 29739*-fsanitize=address*) 29740 echo "source ${srcdir}/gdbasan.in" >> .gdbinit 29741 ;; 29742esac 29743 29744gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)' 29745 29746 29747 29748# Find a directory in which to install a shared libgcc. 29749 29750# Check whether --enable-version-specific-runtime-libs was given. 29751if test "${enable_version_specific_runtime_libs+set}" = set; then : 29752 enableval=$enable_version_specific_runtime_libs; 29753fi 29754 29755 29756# Substitute configuration variables 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 29779 29780 29781 29782 29783 29784 29785 29786 29787 29788 29789 29790 29791 29792 29793 29794 29795 29796 29797 29798 29799 29800 29801 29802 29803 29804 29805 29806 29807 29808 29809 29810 29811 29812 29813 29814 29815 29816 29817 29818 29819 29820 29821 29822 29823 29824# Echo link setup. 29825if test x${build} = x${host} ; then 29826 if test x${host} = x${target} ; then 29827 echo "Links are now set up to build a native compiler for ${target}." 1>&2 29828 else 29829 echo "Links are now set up to build a cross-compiler" 1>&2 29830 echo " from ${host} to ${target}." 1>&2 29831 fi 29832else 29833 if test x${host} = x${target} ; then 29834 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2 29835 echo " for ${target}." 1>&2 29836 else 29837 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2 29838 echo " from ${host} to ${target}." 1>&2 29839 fi 29840fi 29841 29842 29843 29844 29845 29846 29847if test "x${ISLLIBS}" != "x" ; then 29848 29849$as_echo "#define HAVE_isl 1" >>confdefs.h 29850 29851fi 29852 29853# Check for plugin support 29854 # Check whether --enable-plugin was given. 29855if test "${enable_plugin+set}" = set; then : 29856 enableval=$enable_plugin; enable_plugin=$enableval 29857else 29858 enable_plugin=yes; default_plugin=yes 29859fi 29860 29861 29862 pluginlibs= 29863 plugin_check=yes 29864 29865 case "${host}" in 29866 *-*-mingw*) 29867 # Since plugin support under MinGW is not as straightforward as on 29868 # other platforms (e.g., we have to link import library, etc), we 29869 # only enable it if explicitly requested. 29870 if test x"$default_plugin" = x"yes"; then 29871 enable_plugin=no 29872 elif test x"$enable_plugin" = x"yes"; then 29873 # Use make's target variable to derive import library name. 29874 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a' 29875 plugin_check=no 29876 fi 29877 ;; 29878 *-*-darwin*) 29879 if test x$build = x$host; then 29880 export_sym_check="nm${exeext} -g" 29881 elif test x$host = x$target; then 29882 export_sym_check="$gcc_cv_nm -g" 29883 else 29884 export_sym_check= 29885 fi 29886 ;; 29887 *) 29888 if test x$build = x$host; then 29889 export_sym_check="objdump${exeext} -T" 29890 elif test x$host = x$target; then 29891 export_sym_check="$gcc_cv_objdump -T" 29892 else 29893 export_sym_check= 29894 fi 29895 ;; 29896 esac 29897 29898 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then 29899 29900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5 29901$as_echo_n "checking for exported symbols... " >&6; } 29902 if test "x$export_sym_check" != x; then 29903 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c 29904 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1 29905 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 29906 : # No need to use a flag 29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29908$as_echo "yes" >&6; } 29909 else 29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29911$as_echo "yes" >&6; } 29912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5 29913$as_echo_n "checking for -rdynamic... " >&6; } 29914 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1 29915 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then 29916 plugin_rdynamic=yes 29917 pluginlibs="-rdynamic" 29918 else 29919 plugin_rdynamic=no 29920 enable_plugin=no 29921 fi 29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5 29923$as_echo "$plugin_rdynamic" >&6; } 29924 fi 29925 else 29926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5 29927$as_echo "unable to check" >&6; } 29928 fi 29929 29930 # Check -ldl 29931 saved_LIBS="$LIBS" 29932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 29933$as_echo_n "checking for library containing dlopen... " >&6; } 29934if ${ac_cv_search_dlopen+:} false; then : 29935 $as_echo_n "(cached) " >&6 29936else 29937 ac_func_search_save_LIBS=$LIBS 29938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29939/* end confdefs.h. */ 29940 29941/* Override any GCC internal prototype to avoid an error. 29942 Use char because int might match the return type of a GCC 29943 builtin and then its argument prototype would still apply. */ 29944#ifdef __cplusplus 29945extern "C" 29946#endif 29947char dlopen (); 29948int 29949main () 29950{ 29951return dlopen (); 29952 ; 29953 return 0; 29954} 29955_ACEOF 29956for ac_lib in '' dl; do 29957 if test -z "$ac_lib"; then 29958 ac_res="none required" 29959 else 29960 ac_res=-l$ac_lib 29961 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29962 fi 29963 if ac_fn_cxx_try_link "$LINENO"; then : 29964 ac_cv_search_dlopen=$ac_res 29965fi 29966rm -f core conftest.err conftest.$ac_objext \ 29967 conftest$ac_exeext 29968 if ${ac_cv_search_dlopen+:} false; then : 29969 break 29970fi 29971done 29972if ${ac_cv_search_dlopen+:} false; then : 29973 29974else 29975 ac_cv_search_dlopen=no 29976fi 29977rm conftest.$ac_ext 29978LIBS=$ac_func_search_save_LIBS 29979fi 29980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 29981$as_echo "$ac_cv_search_dlopen" >&6; } 29982ac_res=$ac_cv_search_dlopen 29983if test "$ac_res" != no; then : 29984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29985 29986fi 29987 29988 if test x"$ac_cv_search_dlopen" = x"-ldl"; then 29989 pluginlibs="$pluginlibs -ldl" 29990 fi 29991 LIBS="$saved_LIBS" 29992 29993 # Check that we can build shared objects with -fPIC -shared 29994 saved_LDFLAGS="$LDFLAGS" 29995 saved_CFLAGS="$CFLAGS" 29996 case "${host}" in 29997 *-*-darwin*) 29998 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` 29999 CFLAGS="$CFLAGS -fPIC" 30000 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup" 30001 ;; 30002 *) 30003 CFLAGS="$CFLAGS -fPIC" 30004 LDFLAGS="$LDFLAGS -fPIC -shared" 30005 ;; 30006 esac 30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5 30008$as_echo_n "checking for -fPIC -shared... " >&6; } 30009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30010/* end confdefs.h. */ 30011extern int X; 30012int 30013main () 30014{ 30015return X == 0; 30016 ; 30017 return 0; 30018} 30019_ACEOF 30020if ac_fn_cxx_try_link "$LINENO"; then : 30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30022$as_echo "yes" >&6; }; have_pic_shared=yes 30023else 30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30025$as_echo "no" >&6; }; have_pic_shared=no 30026fi 30027rm -f core conftest.err conftest.$ac_objext \ 30028 conftest$ac_exeext conftest.$ac_ext 30029 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then 30030 pluginlibs= 30031 enable_plugin=no 30032 fi 30033 LDFLAGS="$saved_LDFLAGS" 30034 CFLAGS="$saved_CFLAGS" 30035 30036 # If plugin support had been requested but not available, fail. 30037 if test x"$enable_plugin" = x"no" ; then 30038 if test x"$default_plugin" != x"yes"; then 30039 as_fn_error $? " 30040 Building GCC with plugin support requires a host that supports 30041 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5 30042 fi 30043 fi 30044 fi 30045 30046 30047 30048if test x"$enable_plugin" = x"yes"; then 30049 30050$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h 30051 30052fi 30053 30054 30055# Enable --enable-host-shared 30056# Check whether --enable-host-shared was given. 30057if test "${enable_host_shared+set}" = set; then : 30058 enableval=$enable_host_shared; PICFLAG=-fPIC 30059else 30060 PICFLAG= 30061fi 30062 30063 30064 30065 30066 30067# Check whether --enable-libquadmath-support was given. 30068if test "${enable_libquadmath_support+set}" = set; then : 30069 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 30070else 30071 ENABLE_LIBQUADMATH_SUPPORT=yes 30072fi 30073 30074if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then 30075 30076$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h 30077 30078fi 30079 30080 30081# Specify what hash style to use by default. 30082 30083# Check whether --with-linker-hash-style was given. 30084if test "${with_linker_hash_style+set}" = set; then : 30085 withval=$with_linker_hash_style; case x"$withval" in 30086 xsysv) 30087 LINKER_HASH_STYLE=sysv 30088 ;; 30089 xgnu) 30090 LINKER_HASH_STYLE=gnu 30091 ;; 30092 xboth) 30093 LINKER_HASH_STYLE=both 30094 ;; 30095 *) 30096 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5 30097 ;; 30098 esac 30099else 30100 LINKER_HASH_STYLE='' 30101fi 30102 30103if test x"${LINKER_HASH_STYLE}" != x; then 30104 30105cat >>confdefs.h <<_ACEOF 30106#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE" 30107_ACEOF 30108 30109fi 30110 30111# Specify what should be the default of -fdiagnostics-color option. 30112 30113# Check whether --with-diagnostics-color was given. 30114if test "${with_diagnostics_color+set}" = set; then : 30115 withval=$with_diagnostics_color; case x"$withval" in 30116 xnever) 30117 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO 30118 ;; 30119 xauto) 30120 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO 30121 ;; 30122 xauto-if-env) 30123 DIAGNOSTICS_COLOR_DEFAULT=-1 30124 ;; 30125 xalways) 30126 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES 30127 ;; 30128 *) 30129 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5 30130 ;; 30131 esac 30132else 30133 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO 30134fi 30135 30136 30137cat >>confdefs.h <<_ACEOF 30138#define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT 30139_ACEOF 30140 30141 30142# Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit 30143# of jit/jit-playback.c. 30144gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"` 30145echo "gcc_driver_version: ${gcc_driver_version}" 30146cat > gcc-driver-name.h <<EOF 30147#define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}" 30148EOF 30149 30150# Check whether --enable-default-pie was given. 30151# Check whether --enable-default-pie was given. 30152if test "${enable_default_pie+set}" = set; then : 30153 enableval=$enable_default_pie; enable_default_pie=$enableval 30154else 30155 enable_default_pie=no 30156fi 30157 30158if test x$enable_default_pie = xyes ; then 30159 30160$as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h 30161 30162fi 30163 30164 30165# Check if -fno-PIE works. 30166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5 30167$as_echo_n "checking for -fno-PIE option... " >&6; } 30168if ${gcc_cv_c_no_fpie+:} false; then : 30169 $as_echo_n "(cached) " >&6 30170else 30171 saved_CXXFLAGS="$CXXFLAGS" 30172 CXXFLAGS="$CXXFLAGS -fno-PIE" 30173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30174/* end confdefs.h. */ 30175int main(void) {return 0;} 30176_ACEOF 30177if ac_fn_cxx_try_compile "$LINENO"; then : 30178 gcc_cv_c_no_fpie=yes 30179else 30180 gcc_cv_c_no_fpie=no 30181fi 30182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30183 CXXFLAGS="$saved_CXXFLAGS" 30184fi 30185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5 30186$as_echo "$gcc_cv_c_no_fpie" >&6; } 30187if test "$gcc_cv_c_no_fpie" = "yes"; then 30188 NO_PIE_CFLAGS="-fno-PIE" 30189fi 30190 30191 30192# Check if -no-pie works. 30193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5 30194$as_echo_n "checking for -no-pie option... " >&6; } 30195if ${gcc_cv_no_pie+:} false; then : 30196 $as_echo_n "(cached) " >&6 30197else 30198 saved_LDFLAGS="$LDFLAGS" 30199 LDFLAGS="$LDFLAGS -no-pie" 30200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30201/* end confdefs.h. */ 30202int main(void) {return 0;} 30203_ACEOF 30204if ac_fn_cxx_try_link "$LINENO"; then : 30205 gcc_cv_no_pie=yes 30206else 30207 gcc_cv_no_pie=no 30208fi 30209rm -f core conftest.err conftest.$ac_objext \ 30210 conftest$ac_exeext conftest.$ac_ext 30211 LDFLAGS="$saved_LDFLAGS" 30212fi 30213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5 30214$as_echo "$gcc_cv_no_pie" >&6; } 30215if test "$gcc_cv_no_pie" = "yes"; then 30216 NO_PIE_FLAG="-no-pie" 30217fi 30218 30219 30220# Check linker supports '-z bndplt' 30221ld_bndplt_support=no 30222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5 30223$as_echo_n "checking linker -z bndplt option... " >&6; } 30224if test x"$ld_is_gold" = xno; then 30225 if test $in_tree_ld = yes ; then 30226 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 30227 ld_bndplt_support=yes 30228 fi 30229 elif test x$gcc_cv_ld != x; then 30230 # Check if linker supports -a bndplt option 30231 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then 30232 ld_bndplt_support=yes 30233 fi 30234 fi 30235fi 30236if test x"$ld_bndplt_support" = xyes; then 30237 30238$as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h 30239 30240fi 30241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5 30242$as_echo "$ld_bndplt_support" >&6; } 30243 30244# Check linker supports '--push-state'/'--pop-state' 30245ld_pushpopstate_support=no 30246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5 30247$as_echo_n "checking linker --push-state/--pop-state options... " >&6; } 30248if test x"$ld_is_gold" = xno; then 30249 if test $in_tree_ld = yes ; then 30250 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 30251 ld_pushpopstate_support=yes 30252 fi 30253 elif test x$gcc_cv_ld != x; then 30254 # Check if linker supports --push-state/--pop-state options 30255 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then 30256 ld_pushpopstate_support=yes 30257 fi 30258 fi 30259fi 30260if test x"$ld_pushpopstate_support" = xyes; then 30261 30262$as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h 30263 30264fi 30265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5 30266$as_echo "$ld_pushpopstate_support" >&6; } 30267 30268# Configure the subdirectories 30269# AC_CONFIG_SUBDIRS($subdirs) 30270 30271# Create the Makefile 30272# and configure language subdirectories 30273ac_config_files="$ac_config_files $all_outputs" 30274 30275 30276ac_config_commands="$ac_config_commands default" 30277 30278cat >confcache <<\_ACEOF 30279# This file is a shell script that caches the results of configure 30280# tests run on this system so they can be shared between configure 30281# scripts and configure runs, see configure's option --config-cache. 30282# It is not useful on other systems. If it contains results you don't 30283# want to keep, you may remove or edit it. 30284# 30285# config.status only pays attention to the cache file if you give it 30286# the --recheck option to rerun configure. 30287# 30288# `ac_cv_env_foo' variables (set or unset) will be overridden when 30289# loading this file, other *unset* `ac_cv_foo' will be assigned the 30290# following values. 30291 30292_ACEOF 30293 30294# The following way of writing the cache mishandles newlines in values, 30295# but we know of no workaround that is simple, portable, and efficient. 30296# So, we kill variables containing newlines. 30297# Ultrix sh set writes to stderr and can't be redirected directly, 30298# and sets the high bit in the cache file unless we assign to the vars. 30299( 30300 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 30301 eval ac_val=\$$ac_var 30302 case $ac_val in #( 30303 *${as_nl}*) 30304 case $ac_var in #( 30305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 30306$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 30307 esac 30308 case $ac_var in #( 30309 _ | IFS | as_nl) ;; #( 30310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 30311 *) { eval $ac_var=; unset $ac_var;} ;; 30312 esac ;; 30313 esac 30314 done 30315 30316 (set) 2>&1 | 30317 case $as_nl`(ac_space=' '; set) 2>&1` in #( 30318 *${as_nl}ac_space=\ *) 30319 # `set' does not quote correctly, so add quotes: double-quote 30320 # substitution turns \\\\ into \\, and sed turns \\ into \. 30321 sed -n \ 30322 "s/'/'\\\\''/g; 30323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 30324 ;; #( 30325 *) 30326 # `set' quotes correctly as required by POSIX, so do not add quotes. 30327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 30328 ;; 30329 esac | 30330 sort 30331) | 30332 sed ' 30333 /^ac_cv_env_/b end 30334 t clear 30335 :clear 30336 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 30337 t end 30338 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 30339 :end' >>confcache 30340if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 30341 if test -w "$cache_file"; then 30342 if test "x$cache_file" != "x/dev/null"; then 30343 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 30344$as_echo "$as_me: updating cache $cache_file" >&6;} 30345 if test ! -f "$cache_file" || test -h "$cache_file"; then 30346 cat confcache >"$cache_file" 30347 else 30348 case $cache_file in #( 30349 */* | ?:*) 30350 mv -f confcache "$cache_file"$$ && 30351 mv -f "$cache_file"$$ "$cache_file" ;; #( 30352 *) 30353 mv -f confcache "$cache_file" ;; 30354 esac 30355 fi 30356 fi 30357 else 30358 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 30359$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 30360 fi 30361fi 30362rm -f confcache 30363 30364test "x$prefix" = xNONE && prefix=$ac_default_prefix 30365# Let make expand exec_prefix. 30366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30367 30368DEFS=-DHAVE_CONFIG_H 30369 30370ac_libobjs= 30371ac_ltlibobjs= 30372U= 30373for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 30374 # 1. Remove the extension, and $U if already installed. 30375 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 30376 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 30377 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 30378 # will be set to the directory where LIBOBJS objects are built. 30379 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 30380 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 30381done 30382LIBOBJS=$ac_libobjs 30383 30384LTLIBOBJS=$ac_ltlibobjs 30385 30386 30387 30388 30389: "${CONFIG_STATUS=./config.status}" 30390ac_write_fail=0 30391ac_clean_files_save=$ac_clean_files 30392ac_clean_files="$ac_clean_files $CONFIG_STATUS" 30393{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 30394$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 30395as_write_fail=0 30396cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 30397#! $SHELL 30398# Generated by $as_me. 30399# Run this file to recreate the current configuration. 30400# Compiler output produced by configure, useful for debugging 30401# configure, is in config.log if it exists. 30402 30403debug=false 30404ac_cs_recheck=false 30405ac_cs_silent=false 30406 30407SHELL=\${CONFIG_SHELL-$SHELL} 30408export SHELL 30409_ASEOF 30410cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 30411## -------------------- ## 30412## M4sh Initialization. ## 30413## -------------------- ## 30414 30415# Be more Bourne compatible 30416DUALCASE=1; export DUALCASE # for MKS sh 30417if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 30418 emulate sh 30419 NULLCMD=: 30420 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 30421 # is contrary to our usage. Disable this feature. 30422 alias -g '${1+"$@"}'='"$@"' 30423 setopt NO_GLOB_SUBST 30424else 30425 case `(set -o) 2>/dev/null` in #( 30426 *posix*) : 30427 set -o posix ;; #( 30428 *) : 30429 ;; 30430esac 30431fi 30432 30433 30434as_nl=' 30435' 30436export as_nl 30437# Printing a long string crashes Solaris 7 /usr/bin/printf. 30438as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 30439as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 30440as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 30441# Prefer a ksh shell builtin over an external printf program on Solaris, 30442# but without wasting forks for bash or zsh. 30443if test -z "$BASH_VERSION$ZSH_VERSION" \ 30444 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 30445 as_echo='print -r --' 30446 as_echo_n='print -rn --' 30447elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 30448 as_echo='printf %s\n' 30449 as_echo_n='printf %s' 30450else 30451 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 30452 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 30453 as_echo_n='/usr/ucb/echo -n' 30454 else 30455 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 30456 as_echo_n_body='eval 30457 arg=$1; 30458 case $arg in #( 30459 *"$as_nl"*) 30460 expr "X$arg" : "X\\(.*\\)$as_nl"; 30461 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 30462 esac; 30463 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 30464 ' 30465 export as_echo_n_body 30466 as_echo_n='sh -c $as_echo_n_body as_echo' 30467 fi 30468 export as_echo_body 30469 as_echo='sh -c $as_echo_body as_echo' 30470fi 30471 30472# The user is always right. 30473if test "${PATH_SEPARATOR+set}" != set; then 30474 PATH_SEPARATOR=: 30475 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 30476 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 30477 PATH_SEPARATOR=';' 30478 } 30479fi 30480 30481 30482# IFS 30483# We need space, tab and new line, in precisely that order. Quoting is 30484# there to prevent editors from complaining about space-tab. 30485# (If _AS_PATH_WALK were called with IFS unset, it would disable word 30486# splitting by setting IFS to empty value.) 30487IFS=" "" $as_nl" 30488 30489# Find who we are. Look in the path if we contain no directory separator. 30490as_myself= 30491case $0 in #(( 30492 *[\\/]* ) as_myself=$0 ;; 30493 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30494for as_dir in $PATH 30495do 30496 IFS=$as_save_IFS 30497 test -z "$as_dir" && as_dir=. 30498 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 30499 done 30500IFS=$as_save_IFS 30501 30502 ;; 30503esac 30504# We did not find ourselves, most probably we were run as `sh COMMAND' 30505# in which case we are not to be found in the path. 30506if test "x$as_myself" = x; then 30507 as_myself=$0 30508fi 30509if test ! -f "$as_myself"; then 30510 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 30511 exit 1 30512fi 30513 30514# Unset variables that we do not need and which cause bugs (e.g. in 30515# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 30516# suppresses any "Segmentation fault" message there. '((' could 30517# trigger a bug in pdksh 5.2.14. 30518for as_var in BASH_ENV ENV MAIL MAILPATH 30519do eval test x\${$as_var+set} = xset \ 30520 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 30521done 30522PS1='$ ' 30523PS2='> ' 30524PS4='+ ' 30525 30526# NLS nuisances. 30527LC_ALL=C 30528export LC_ALL 30529LANGUAGE=C 30530export LANGUAGE 30531 30532# CDPATH. 30533(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 30534 30535 30536# as_fn_error STATUS ERROR [LINENO LOG_FD] 30537# ---------------------------------------- 30538# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 30539# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 30540# script with STATUS, using 1 if that was 0. 30541as_fn_error () 30542{ 30543 as_status=$1; test $as_status -eq 0 && as_status=1 30544 if test "$4"; then 30545 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 30546 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 30547 fi 30548 $as_echo "$as_me: error: $2" >&2 30549 as_fn_exit $as_status 30550} # as_fn_error 30551 30552 30553# as_fn_set_status STATUS 30554# ----------------------- 30555# Set $? to STATUS, without forking. 30556as_fn_set_status () 30557{ 30558 return $1 30559} # as_fn_set_status 30560 30561# as_fn_exit STATUS 30562# ----------------- 30563# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 30564as_fn_exit () 30565{ 30566 set +e 30567 as_fn_set_status $1 30568 exit $1 30569} # as_fn_exit 30570 30571# as_fn_unset VAR 30572# --------------- 30573# Portably unset VAR. 30574as_fn_unset () 30575{ 30576 { eval $1=; unset $1;} 30577} 30578as_unset=as_fn_unset 30579# as_fn_append VAR VALUE 30580# ---------------------- 30581# Append the text in VALUE to the end of the definition contained in VAR. Take 30582# advantage of any shell optimizations that allow amortized linear growth over 30583# repeated appends, instead of the typical quadratic growth present in naive 30584# implementations. 30585if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 30586 eval 'as_fn_append () 30587 { 30588 eval $1+=\$2 30589 }' 30590else 30591 as_fn_append () 30592 { 30593 eval $1=\$$1\$2 30594 } 30595fi # as_fn_append 30596 30597# as_fn_arith ARG... 30598# ------------------ 30599# Perform arithmetic evaluation on the ARGs, and store the result in the 30600# global $as_val. Take advantage of shells that can avoid forks. The arguments 30601# must be portable across $(()) and expr. 30602if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 30603 eval 'as_fn_arith () 30604 { 30605 as_val=$(( $* )) 30606 }' 30607else 30608 as_fn_arith () 30609 { 30610 as_val=`expr "$@" || test $? -eq 1` 30611 } 30612fi # as_fn_arith 30613 30614 30615if expr a : '\(a\)' >/dev/null 2>&1 && 30616 test "X`expr 00001 : '.*\(...\)'`" = X001; then 30617 as_expr=expr 30618else 30619 as_expr=false 30620fi 30621 30622if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 30623 as_basename=basename 30624else 30625 as_basename=false 30626fi 30627 30628if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 30629 as_dirname=dirname 30630else 30631 as_dirname=false 30632fi 30633 30634as_me=`$as_basename -- "$0" || 30635$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 30636 X"$0" : 'X\(//\)$' \| \ 30637 X"$0" : 'X\(/\)' \| . 2>/dev/null || 30638$as_echo X/"$0" | 30639 sed '/^.*\/\([^/][^/]*\)\/*$/{ 30640 s//\1/ 30641 q 30642 } 30643 /^X\/\(\/\/\)$/{ 30644 s//\1/ 30645 q 30646 } 30647 /^X\/\(\/\).*/{ 30648 s//\1/ 30649 q 30650 } 30651 s/.*/./; q'` 30652 30653# Avoid depending upon Character Ranges. 30654as_cr_letters='abcdefghijklmnopqrstuvwxyz' 30655as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 30656as_cr_Letters=$as_cr_letters$as_cr_LETTERS 30657as_cr_digits='0123456789' 30658as_cr_alnum=$as_cr_Letters$as_cr_digits 30659 30660ECHO_C= ECHO_N= ECHO_T= 30661case `echo -n x` in #((((( 30662-n*) 30663 case `echo 'xy\c'` in 30664 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 30665 xy) ECHO_C='\c';; 30666 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 30667 ECHO_T=' ';; 30668 esac;; 30669*) 30670 ECHO_N='-n';; 30671esac 30672 30673rm -f conf$$ conf$$.exe conf$$.file 30674if test -d conf$$.dir; then 30675 rm -f conf$$.dir/conf$$.file 30676else 30677 rm -f conf$$.dir 30678 mkdir conf$$.dir 2>/dev/null 30679fi 30680if (echo >conf$$.file) 2>/dev/null; then 30681 if ln -s conf$$.file conf$$ 2>/dev/null; then 30682 as_ln_s='ln -s' 30683 # ... but there are two gotchas: 30684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 30685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 30686 # In both cases, we have to default to `cp -pR'. 30687 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 30688 as_ln_s='cp -pR' 30689 elif ln conf$$.file conf$$ 2>/dev/null; then 30690 as_ln_s=ln 30691 else 30692 as_ln_s='cp -pR' 30693 fi 30694else 30695 as_ln_s='cp -pR' 30696fi 30697rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 30698rmdir conf$$.dir 2>/dev/null 30699 30700 30701# as_fn_mkdir_p 30702# ------------- 30703# Create "$as_dir" as a directory, including parents if necessary. 30704as_fn_mkdir_p () 30705{ 30706 30707 case $as_dir in #( 30708 -*) as_dir=./$as_dir;; 30709 esac 30710 test -d "$as_dir" || eval $as_mkdir_p || { 30711 as_dirs= 30712 while :; do 30713 case $as_dir in #( 30714 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 30715 *) as_qdir=$as_dir;; 30716 esac 30717 as_dirs="'$as_qdir' $as_dirs" 30718 as_dir=`$as_dirname -- "$as_dir" || 30719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30720 X"$as_dir" : 'X\(//\)[^/]' \| \ 30721 X"$as_dir" : 'X\(//\)$' \| \ 30722 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 30723$as_echo X"$as_dir" | 30724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30725 s//\1/ 30726 q 30727 } 30728 /^X\(\/\/\)[^/].*/{ 30729 s//\1/ 30730 q 30731 } 30732 /^X\(\/\/\)$/{ 30733 s//\1/ 30734 q 30735 } 30736 /^X\(\/\).*/{ 30737 s//\1/ 30738 q 30739 } 30740 s/.*/./; q'` 30741 test -d "$as_dir" && break 30742 done 30743 test -z "$as_dirs" || eval "mkdir $as_dirs" 30744 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 30745 30746 30747} # as_fn_mkdir_p 30748if mkdir -p . 2>/dev/null; then 30749 as_mkdir_p='mkdir -p "$as_dir"' 30750else 30751 test -d ./-p && rmdir ./-p 30752 as_mkdir_p=false 30753fi 30754 30755 30756# as_fn_executable_p FILE 30757# ----------------------- 30758# Test if FILE is an executable regular file. 30759as_fn_executable_p () 30760{ 30761 test -f "$1" && test -x "$1" 30762} # as_fn_executable_p 30763as_test_x='test -x' 30764as_executable_p=as_fn_executable_p 30765 30766# Sed expression to map a string onto a valid CPP name. 30767as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 30768 30769# Sed expression to map a string onto a valid variable name. 30770as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 30771 30772 30773exec 6>&1 30774## ----------------------------------- ## 30775## Main body of $CONFIG_STATUS script. ## 30776## ----------------------------------- ## 30777_ASEOF 30778test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 30779 30780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30781# Save the log message, to keep $0 and so on meaningful, and to 30782# report actual input values of CONFIG_FILES etc. instead of their 30783# values after options handling. 30784ac_log=" 30785This file was extended by $as_me, which was 30786generated by GNU Autoconf 2.69. Invocation command line was 30787 30788 CONFIG_FILES = $CONFIG_FILES 30789 CONFIG_HEADERS = $CONFIG_HEADERS 30790 CONFIG_LINKS = $CONFIG_LINKS 30791 CONFIG_COMMANDS = $CONFIG_COMMANDS 30792 $ $0 $@ 30793 30794on `(hostname || uname -n) 2>/dev/null | sed 1q` 30795" 30796 30797_ACEOF 30798 30799case $ac_config_files in *" 30800"*) set x $ac_config_files; shift; ac_config_files=$*;; 30801esac 30802 30803case $ac_config_headers in *" 30804"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 30805esac 30806 30807 30808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30809# Files that config.status was made for. 30810config_files="$ac_config_files" 30811config_headers="$ac_config_headers" 30812config_links="$ac_config_links" 30813config_commands="$ac_config_commands" 30814 30815_ACEOF 30816 30817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30818ac_cs_usage="\ 30819\`$as_me' instantiates files and other configuration actions 30820from templates according to the current configuration. Unless the files 30821and actions are specified as TAGs, all are instantiated by default. 30822 30823Usage: $0 [OPTION]... [TAG]... 30824 30825 -h, --help print this help, then exit 30826 -V, --version print version number and configuration settings, then exit 30827 --config print configuration, then exit 30828 -q, --quiet, --silent 30829 do not print progress messages 30830 -d, --debug don't remove temporary files 30831 --recheck update $as_me by reconfiguring in the same conditions 30832 --file=FILE[:TEMPLATE] 30833 instantiate the configuration file FILE 30834 --header=FILE[:TEMPLATE] 30835 instantiate the configuration header FILE 30836 30837Configuration files: 30838$config_files 30839 30840Configuration headers: 30841$config_headers 30842 30843Configuration links: 30844$config_links 30845 30846Configuration commands: 30847$config_commands 30848 30849Report bugs to the package provider." 30850 30851_ACEOF 30852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30853ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 30854ac_cs_version="\\ 30855config.status 30856configured by $0, generated by GNU Autoconf 2.69, 30857 with options \\"\$ac_cs_config\\" 30858 30859Copyright (C) 2012 Free Software Foundation, Inc. 30860This config.status script is free software; the Free Software Foundation 30861gives unlimited permission to copy, distribute and modify it." 30862 30863ac_pwd='$ac_pwd' 30864srcdir='$srcdir' 30865AWK='$AWK' 30866test -n "\$AWK" || AWK=awk 30867_ACEOF 30868 30869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30870# The default lists apply if the user does not specify any file. 30871ac_need_defaults=: 30872while test $# != 0 30873do 30874 case $1 in 30875 --*=?*) 30876 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30877 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 30878 ac_shift=: 30879 ;; 30880 --*=) 30881 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30882 ac_optarg= 30883 ac_shift=: 30884 ;; 30885 *) 30886 ac_option=$1 30887 ac_optarg=$2 30888 ac_shift=shift 30889 ;; 30890 esac 30891 30892 case $ac_option in 30893 # Handling of the options. 30894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 30895 ac_cs_recheck=: ;; 30896 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 30897 $as_echo "$ac_cs_version"; exit ;; 30898 --config | --confi | --conf | --con | --co | --c ) 30899 $as_echo "$ac_cs_config"; exit ;; 30900 --debug | --debu | --deb | --de | --d | -d ) 30901 debug=: ;; 30902 --file | --fil | --fi | --f ) 30903 $ac_shift 30904 case $ac_optarg in 30905 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30906 '') as_fn_error $? "missing file argument" ;; 30907 esac 30908 as_fn_append CONFIG_FILES " '$ac_optarg'" 30909 ac_need_defaults=false;; 30910 --header | --heade | --head | --hea ) 30911 $ac_shift 30912 case $ac_optarg in 30913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30914 esac 30915 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 30916 ac_need_defaults=false;; 30917 --he | --h) 30918 # Conflict between --help and --header 30919 as_fn_error $? "ambiguous option: \`$1' 30920Try \`$0 --help' for more information.";; 30921 --help | --hel | -h ) 30922 $as_echo "$ac_cs_usage"; exit ;; 30923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 30924 | -silent | --silent | --silen | --sile | --sil | --si | --s) 30925 ac_cs_silent=: ;; 30926 30927 # This is an error. 30928 -*) as_fn_error $? "unrecognized option: \`$1' 30929Try \`$0 --help' for more information." ;; 30930 30931 *) as_fn_append ac_config_targets " $1" 30932 ac_need_defaults=false ;; 30933 30934 esac 30935 shift 30936done 30937 30938ac_configure_extra_args= 30939 30940if $ac_cs_silent; then 30941 exec 6>/dev/null 30942 ac_configure_extra_args="$ac_configure_extra_args --silent" 30943fi 30944 30945_ACEOF 30946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30947if \$ac_cs_recheck; then 30948 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 30949 shift 30950 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 30951 CONFIG_SHELL='$SHELL' 30952 export CONFIG_SHELL 30953 exec "\$@" 30954fi 30955 30956_ACEOF 30957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30958exec 5>>config.log 30959{ 30960 echo 30961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 30962## Running $as_me. ## 30963_ASBOX 30964 $as_echo "$ac_log" 30965} >&5 30966 30967_ACEOF 30968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30969# 30970# INIT-COMMANDS 30971# 30972ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 30973subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 30974subdirs='$subdirs' 30975 30976_ACEOF 30977 30978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30979 30980# Handling of arguments. 30981for ac_config_target in $ac_config_targets 30982do 30983 case $ac_config_target in 30984 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;; 30985 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; 30986 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;; 30987 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;; 30988 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;; 30989 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;; 30990 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;; 30991 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;; 30992 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 30993 30994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 30995 esac 30996done 30997 30998 30999# If the user did not use the arguments to specify the items to instantiate, 31000# then the envvar interface is used. Set only those that are not. 31001# We use the long form for the default assignment because of an extremely 31002# bizarre bug on SunOS 4.1.3. 31003if $ac_need_defaults; then 31004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 31005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 31006 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 31007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 31008fi 31009 31010# Have a temporary directory for convenience. Make it in the build tree 31011# simply because there is no reason against having it here, and in addition, 31012# creating and moving files from /tmp can sometimes cause problems. 31013# Hook for its removal unless debugging. 31014# Note that there is a small window in which the directory will not be cleaned: 31015# after its creation but before its name has been assigned to `$tmp'. 31016$debug || 31017{ 31018 tmp= ac_tmp= 31019 trap 'exit_status=$? 31020 : "${ac_tmp:=$tmp}" 31021 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 31022' 0 31023 trap 'as_fn_exit 1' 1 2 13 15 31024} 31025# Create a (secure) tmp directory for tmp files. 31026 31027{ 31028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 31029 test -d "$tmp" 31030} || 31031{ 31032 tmp=./conf$$-$RANDOM 31033 (umask 077 && mkdir "$tmp") 31034} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 31035ac_tmp=$tmp 31036 31037# Set up the scripts for CONFIG_FILES section. 31038# No need to generate them if there are no CONFIG_FILES. 31039# This happens for instance with `./config.status config.h'. 31040if test -n "$CONFIG_FILES"; then 31041 31042if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 31043 ac_cs_awk_getline=: 31044 ac_cs_awk_pipe_init= 31045 ac_cs_awk_read_file=' 31046 while ((getline aline < (F[key])) > 0) 31047 print(aline) 31048 close(F[key])' 31049 ac_cs_awk_pipe_fini= 31050else 31051 ac_cs_awk_getline=false 31052 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 31053 ac_cs_awk_read_file=' 31054 print "|#_!!_#|" 31055 print "cat " F[key] " &&" 31056 '$ac_cs_awk_pipe_init 31057 # The final `:' finishes the AND list. 31058 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 31059fi 31060ac_cr=`echo X | tr X '\015'` 31061# On cygwin, bash can eat \r inside `` if the user requested igncr. 31062# But we know of no other shell where ac_cr would be empty at this 31063# point, so we can use a bashism as a fallback. 31064if test "x$ac_cr" = x; then 31065 eval ac_cr=\$\'\\r\' 31066fi 31067ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 31068if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 31069 ac_cs_awk_cr='\\r' 31070else 31071 ac_cs_awk_cr=$ac_cr 31072fi 31073 31074echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 31075_ACEOF 31076 31077# Create commands to substitute file output variables. 31078{ 31079 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 31080 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 31081 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 31082 echo "_ACAWK" && 31083 echo "_ACEOF" 31084} >conf$$files.sh && 31085. ./conf$$files.sh || 31086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31087rm -f conf$$files.sh 31088 31089{ 31090 echo "cat >conf$$subs.awk <<_ACEOF" && 31091 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 31092 echo "_ACEOF" 31093} >conf$$subs.sh || 31094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31095ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 31096ac_delim='%!_!# ' 31097for ac_last_try in false false false false false :; do 31098 . ./conf$$subs.sh || 31099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31100 31101 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 31102 if test $ac_delim_n = $ac_delim_num; then 31103 break 31104 elif $ac_last_try; then 31105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31106 else 31107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31108 fi 31109done 31110rm -f conf$$subs.sh 31111 31112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31113cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 31114_ACEOF 31115sed -n ' 31116h 31117s/^/S["/; s/!.*/"]=/ 31118p 31119g 31120s/^[^!]*!// 31121:repl 31122t repl 31123s/'"$ac_delim"'$// 31124t delim 31125:nl 31126h 31127s/\(.\{148\}\)..*/\1/ 31128t more1 31129s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 31130p 31131n 31132b repl 31133:more1 31134s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31135p 31136g 31137s/.\{148\}// 31138t nl 31139:delim 31140h 31141s/\(.\{148\}\)..*/\1/ 31142t more2 31143s/["\\]/\\&/g; s/^/"/; s/$/"/ 31144p 31145b 31146:more2 31147s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31148p 31149g 31150s/.\{148\}// 31151t delim 31152' <conf$$subs.awk | sed ' 31153/^[^""]/{ 31154 N 31155 s/\n// 31156} 31157' >>$CONFIG_STATUS || ac_write_fail=1 31158rm -f conf$$subs.awk 31159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31160_ACAWK 31161cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 31162 for (key in S) S_is_set[key] = 1 31163 FS = "" 31164 \$ac_cs_awk_pipe_init 31165} 31166{ 31167 line = $ 0 31168 nfields = split(line, field, "@") 31169 substed = 0 31170 len = length(field[1]) 31171 for (i = 2; i < nfields; i++) { 31172 key = field[i] 31173 keylen = length(key) 31174 if (S_is_set[key]) { 31175 value = S[key] 31176 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 31177 len += length(value) + length(field[++i]) 31178 substed = 1 31179 } else 31180 len += 1 + keylen 31181 } 31182 if (nfields == 3 && !substed) { 31183 key = field[2] 31184 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 31185 \$ac_cs_awk_read_file 31186 next 31187 } 31188 } 31189 print line 31190} 31191\$ac_cs_awk_pipe_fini 31192_ACAWK 31193_ACEOF 31194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31195if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 31196 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 31197else 31198 cat 31199fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 31200 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 31201_ACEOF 31202 31203# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 31204# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 31205# trailing colons and then remove the whole line if VPATH becomes empty 31206# (actually we leave an empty line to preserve line numbers). 31207if test "x$srcdir" = x.; then 31208 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 31209h 31210s/// 31211s/^/:/ 31212s/[ ]*$/:/ 31213s/:\$(srcdir):/:/g 31214s/:\${srcdir}:/:/g 31215s/:@srcdir@:/:/g 31216s/^:*// 31217s/:*$// 31218x 31219s/\(=[ ]*\).*/\1/ 31220G 31221s/\n// 31222s/^[^=]*=[ ]*$// 31223}' 31224fi 31225 31226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31227fi # test -n "$CONFIG_FILES" 31228 31229# Set up the scripts for CONFIG_HEADERS section. 31230# No need to generate them if there are no CONFIG_HEADERS. 31231# This happens for instance with `./config.status Makefile'. 31232if test -n "$CONFIG_HEADERS"; then 31233cat >"$ac_tmp/defines.awk" <<\_ACAWK || 31234BEGIN { 31235_ACEOF 31236 31237# Transform confdefs.h into an awk script `defines.awk', embedded as 31238# here-document in config.status, that substitutes the proper values into 31239# config.h.in to produce config.h. 31240 31241# Create a delimiter string that does not exist in confdefs.h, to ease 31242# handling of long lines. 31243ac_delim='%!_!# ' 31244for ac_last_try in false false :; do 31245 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 31246 if test -z "$ac_tt"; then 31247 break 31248 elif $ac_last_try; then 31249 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 31250 else 31251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31252 fi 31253done 31254 31255# For the awk script, D is an array of macro values keyed by name, 31256# likewise P contains macro parameters if any. Preserve backslash 31257# newline sequences. 31258 31259ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 31260sed -n ' 31261s/.\{148\}/&'"$ac_delim"'/g 31262t rset 31263:rset 31264s/^[ ]*#[ ]*define[ ][ ]*/ / 31265t def 31266d 31267:def 31268s/\\$// 31269t bsnl 31270s/["\\]/\\&/g 31271s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31272D["\1"]=" \3"/p 31273s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 31274d 31275:bsnl 31276s/["\\]/\\&/g 31277s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31278D["\1"]=" \3\\\\\\n"\\/p 31279t cont 31280s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 31281t cont 31282d 31283:cont 31284n 31285s/.\{148\}/&'"$ac_delim"'/g 31286t clear 31287:clear 31288s/\\$// 31289t bsnlc 31290s/["\\]/\\&/g; s/^/"/; s/$/"/p 31291d 31292:bsnlc 31293s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 31294b cont 31295' <confdefs.h | sed ' 31296s/'"$ac_delim"'/"\\\ 31297"/g' >>$CONFIG_STATUS || ac_write_fail=1 31298 31299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31300 for (key in D) D_is_set[key] = 1 31301 FS = "" 31302} 31303/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 31304 line = \$ 0 31305 split(line, arg, " ") 31306 if (arg[1] == "#") { 31307 defundef = arg[2] 31308 mac1 = arg[3] 31309 } else { 31310 defundef = substr(arg[1], 2) 31311 mac1 = arg[2] 31312 } 31313 split(mac1, mac2, "(") #) 31314 macro = mac2[1] 31315 prefix = substr(line, 1, index(line, defundef) - 1) 31316 if (D_is_set[macro]) { 31317 # Preserve the white space surrounding the "#". 31318 print prefix "define", macro P[macro] D[macro] 31319 next 31320 } else { 31321 # Replace #undef with comments. This is necessary, for example, 31322 # in the case of _POSIX_SOURCE, which is predefined and required 31323 # on some systems where configure will not decide to define it. 31324 if (defundef == "undef") { 31325 print "/*", prefix defundef, macro, "*/" 31326 next 31327 } 31328 } 31329} 31330{ print } 31331_ACAWK 31332_ACEOF 31333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31334 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 31335fi # test -n "$CONFIG_HEADERS" 31336 31337 31338eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 31339shift 31340for ac_tag 31341do 31342 case $ac_tag in 31343 :[FHLC]) ac_mode=$ac_tag; continue;; 31344 esac 31345 case $ac_mode$ac_tag in 31346 :[FHL]*:*);; 31347 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 31348 :[FH]-) ac_tag=-:-;; 31349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 31350 esac 31351 ac_save_IFS=$IFS 31352 IFS=: 31353 set x $ac_tag 31354 IFS=$ac_save_IFS 31355 shift 31356 ac_file=$1 31357 shift 31358 31359 case $ac_mode in 31360 :L) ac_source=$1;; 31361 :[FH]) 31362 ac_file_inputs= 31363 for ac_f 31364 do 31365 case $ac_f in 31366 -) ac_f="$ac_tmp/stdin";; 31367 *) # Look for the file first in the build tree, then in the source tree 31368 # (if the path is not absolute). The absolute path cannot be DOS-style, 31369 # because $ac_f cannot contain `:'. 31370 test -f "$ac_f" || 31371 case $ac_f in 31372 [\\/$]*) false;; 31373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 31374 esac || 31375 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 31376 esac 31377 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 31378 as_fn_append ac_file_inputs " '$ac_f'" 31379 done 31380 31381 # Let's still pretend it is `configure' which instantiates (i.e., don't 31382 # use $as_me), people would be surprised to read: 31383 # /* config.h. Generated by config.status. */ 31384 configure_input='Generated from '` 31385 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 31386 `' by configure.' 31387 if test x"$ac_file" != x-; then 31388 configure_input="$ac_file. $configure_input" 31389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 31390$as_echo "$as_me: creating $ac_file" >&6;} 31391 fi 31392 # Neutralize special characters interpreted by sed in replacement strings. 31393 case $configure_input in #( 31394 *\&* | *\|* | *\\* ) 31395 ac_sed_conf_input=`$as_echo "$configure_input" | 31396 sed 's/[\\\\&|]/\\\\&/g'`;; #( 31397 *) ac_sed_conf_input=$configure_input;; 31398 esac 31399 31400 case $ac_tag in 31401 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 31402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 31403 esac 31404 ;; 31405 esac 31406 31407 ac_dir=`$as_dirname -- "$ac_file" || 31408$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31409 X"$ac_file" : 'X\(//\)[^/]' \| \ 31410 X"$ac_file" : 'X\(//\)$' \| \ 31411 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 31412$as_echo X"$ac_file" | 31413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31414 s//\1/ 31415 q 31416 } 31417 /^X\(\/\/\)[^/].*/{ 31418 s//\1/ 31419 q 31420 } 31421 /^X\(\/\/\)$/{ 31422 s//\1/ 31423 q 31424 } 31425 /^X\(\/\).*/{ 31426 s//\1/ 31427 q 31428 } 31429 s/.*/./; q'` 31430 as_dir="$ac_dir"; as_fn_mkdir_p 31431 ac_builddir=. 31432 31433case "$ac_dir" in 31434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31435*) 31436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 31437 # A ".." for each directory in $ac_dir_suffix. 31438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31439 case $ac_top_builddir_sub in 31440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31442 esac ;; 31443esac 31444ac_abs_top_builddir=$ac_pwd 31445ac_abs_builddir=$ac_pwd$ac_dir_suffix 31446# for backward compatibility: 31447ac_top_builddir=$ac_top_build_prefix 31448 31449case $srcdir in 31450 .) # We are building in place. 31451 ac_srcdir=. 31452 ac_top_srcdir=$ac_top_builddir_sub 31453 ac_abs_top_srcdir=$ac_pwd ;; 31454 [\\/]* | ?:[\\/]* ) # Absolute name. 31455 ac_srcdir=$srcdir$ac_dir_suffix; 31456 ac_top_srcdir=$srcdir 31457 ac_abs_top_srcdir=$srcdir ;; 31458 *) # Relative name. 31459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31460 ac_top_srcdir=$ac_top_build_prefix$srcdir 31461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31462esac 31463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31464 31465 31466 case $ac_mode in 31467 :F) 31468 # 31469 # CONFIG_FILE 31470 # 31471 31472_ACEOF 31473 31474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31475# If the template does not know about datarootdir, expand it. 31476# FIXME: This hack should be removed a few years after 2.60. 31477ac_datarootdir_hack=; ac_datarootdir_seen= 31478ac_sed_dataroot=' 31479/datarootdir/ { 31480 p 31481 q 31482} 31483/@datadir@/p 31484/@docdir@/p 31485/@infodir@/p 31486/@localedir@/p 31487/@mandir@/p' 31488case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 31489*datarootdir*) ac_datarootdir_seen=yes;; 31490*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 31491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 31492$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 31493_ACEOF 31494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31495 ac_datarootdir_hack=' 31496 s&@datadir@&$datadir&g 31497 s&@docdir@&$docdir&g 31498 s&@infodir@&$infodir&g 31499 s&@localedir@&$localedir&g 31500 s&@mandir@&$mandir&g 31501 s&\\\${datarootdir}&$datarootdir&g' ;; 31502esac 31503_ACEOF 31504 31505# Neutralize VPATH when `$srcdir' = `.'. 31506# Shell code in configure.ac might set extrasub. 31507# FIXME: do we really want to maintain this feature? 31508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31509ac_sed_extra="$ac_vpsub 31510$extrasub 31511_ACEOF 31512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31513:t 31514/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 31515s|@configure_input@|$ac_sed_conf_input|;t t 31516s&@top_builddir@&$ac_top_builddir_sub&;t t 31517s&@top_build_prefix@&$ac_top_build_prefix&;t t 31518s&@srcdir@&$ac_srcdir&;t t 31519s&@abs_srcdir@&$ac_abs_srcdir&;t t 31520s&@top_srcdir@&$ac_top_srcdir&;t t 31521s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 31522s&@builddir@&$ac_builddir&;t t 31523s&@abs_builddir@&$ac_abs_builddir&;t t 31524s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 31525$ac_datarootdir_hack 31526" 31527eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 31528if $ac_cs_awk_getline; then 31529 $AWK -f "$ac_tmp/subs.awk" 31530else 31531 $AWK -f "$ac_tmp/subs.awk" | $SHELL 31532fi \ 31533 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31534 31535test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 31536 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 31537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 31538 "$ac_tmp/out"`; test -z "$ac_out"; } && 31539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31540which seems to be undefined. Please make sure it is defined" >&5 31541$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31542which seems to be undefined. Please make sure it is defined" >&2;} 31543 31544 rm -f "$ac_tmp/stdin" 31545 case $ac_file in 31546 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 31547 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 31548 esac \ 31549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31550 ;; 31551 :H) 31552 # 31553 # CONFIG_HEADER 31554 # 31555 if test x"$ac_file" != x-; then 31556 { 31557 $as_echo "/* $configure_input */" \ 31558 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 31559 } >"$ac_tmp/config.h" \ 31560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31561 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 31562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 31563$as_echo "$as_me: $ac_file is unchanged" >&6;} 31564 else 31565 rm -f "$ac_file" 31566 mv "$ac_tmp/config.h" "$ac_file" \ 31567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31568 fi 31569 else 31570 $as_echo "/* $configure_input */" \ 31571 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 31572 || as_fn_error $? "could not create -" "$LINENO" 5 31573 fi 31574 ;; 31575 :L) 31576 # 31577 # CONFIG_LINK 31578 # 31579 31580 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 31581 : 31582 else 31583 # Prefer the file from the source tree if names are identical. 31584 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 31585 ac_source=$srcdir/$ac_source 31586 fi 31587 31588 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 31589$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 31590 31591 if test ! -r "$ac_source"; then 31592 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 31593 fi 31594 rm -f "$ac_file" 31595 31596 # Try a relative symlink, then a hard link, then a copy. 31597 case $ac_source in 31598 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 31599 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 31600 esac 31601 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 31602 ln "$ac_source" "$ac_file" 2>/dev/null || 31603 cp -p "$ac_source" "$ac_file" || 31604 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 31605 fi 31606 ;; 31607 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 31608$as_echo "$as_me: executing $ac_file commands" >&6;} 31609 ;; 31610 esac 31611 31612 31613 case $ac_file$ac_mode in 31614 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; 31615 "gccdepdir":C) 31616 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR 31617 for lang in $subdirs c-family common 31618 do 31619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR 31620 done ;; 31621 "as":F) chmod +x as ;; 31622 "collect-ld":F) chmod +x collect-ld ;; 31623 "nm":F) chmod +x nm ;; 31624 "default":C) 31625case ${CONFIG_HEADERS} in 31626 *auto-host.h:config.in*) 31627 echo > cstamp-h ;; 31628esac 31629# Make sure all the subdirs exist. 31630for d in $subdirs doc build common c-family 31631do 31632 test -d $d || mkdir $d 31633done 31634 ;; 31635 31636 esac 31637done # for ac_tag 31638 31639 31640as_fn_exit 0 31641_ACEOF 31642ac_clean_files=$ac_clean_files_save 31643 31644test $ac_write_fail = 0 || 31645 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 31646 31647 31648# configure is writing to config.log, and then calls config.status. 31649# config.status does its own redirection, appending to config.log. 31650# Unfortunately, on DOS this fails, as config.log is still kept open 31651# by configure, so config.status won't be able to write to it; its 31652# output is simply discarded. So we exec the FD to /dev/null, 31653# effectively closing config.log, so it can be properly (re)opened and 31654# appended to by config.status. When coming back to configure, we 31655# need to make the FD available again. 31656if test "$no_create" != yes; then 31657 ac_cs_success=: 31658 ac_config_status_args= 31659 test "$silent" = yes && 31660 ac_config_status_args="$ac_config_status_args --quiet" 31661 exec 5>/dev/null 31662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 31663 exec 5>>config.log 31664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 31665 # would make configure fail if this is the last instruction. 31666 $ac_cs_success || as_fn_exit 1 31667fi 31668if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 31670$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 31671fi 31672