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 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="move-if-change" 586enable_option_checking=no 587ac_subst_vars='LTLIBOBJS 588LIBOBJS 589compare_exclusions 590stage2_werror_flag 591stage1_checking 592stage1_cflags 593MAINT 594MAINTAINER_MODE_FALSE 595MAINTAINER_MODE_TRUE 596COMPILER_NM_FOR_TARGET 597COMPILER_LD_FOR_TARGET 598COMPILER_AS_FOR_TARGET 599FLAGS_FOR_TARGET 600RAW_CXX_FOR_TARGET 601WINDMC_FOR_TARGET 602WINDRES_FOR_TARGET 603STRIP_FOR_TARGET 604READELF_FOR_TARGET 605RANLIB_FOR_TARGET 606OTOOL_FOR_TARGET 607OBJDUMP_FOR_TARGET 608OBJCOPY_FOR_TARGET 609NM_FOR_TARGET 610LIPO_FOR_TARGET 611LD_FOR_TARGET 612DSYMUTIL_FOR_TARGET 613DLLTOOL_FOR_TARGET 614AS_FOR_TARGET 615AR_FOR_TARGET 616GDC_FOR_TARGET 617GOC_FOR_TARGET 618GFORTRAN_FOR_TARGET 619GCC_FOR_TARGET 620CXX_FOR_TARGET 621CC_FOR_TARGET 622READELF 623OTOOL 624OBJDUMP 625OBJCOPY 626WINDMC 627WINDRES 628STRIP 629RANLIB 630NM 631LIPO 632LD 633DSYMUTIL 634DLLTOOL 635AS 636AR 637RUNTEST 638EXPECT 639MAKEINFO 640FLEX 641LEX 642M4 643BISON 644YACC 645WINDRES_FOR_BUILD 646WINDMC_FOR_BUILD 647RANLIB_FOR_BUILD 648NM_FOR_BUILD 649LD_FOR_BUILD 650LDFLAGS_FOR_BUILD 651GDC_FOR_BUILD 652GOC_FOR_BUILD 653GFORTRAN_FOR_BUILD 654DSYMUTIL_FOR_BUILD 655DLLTOOL_FOR_BUILD 656CXX_FOR_BUILD 657CXXFLAGS_FOR_BUILD 658CFLAGS_FOR_BUILD 659CC_FOR_BUILD 660AS_FOR_BUILD 661AR_FOR_BUILD 662target_configdirs 663configdirs 664build_configdirs 665INSTALL_GDB_TK 666GDB_TK 667CONFIGURE_GDB_TK 668build_tooldir 669tooldir 670GCC_SHLIB_SUBDIR 671RPATH_ENVVAR 672target_configargs 673host_configargs 674build_configargs 675BUILD_CONFIG 676LDFLAGS_FOR_TARGET 677CXXFLAGS_FOR_TARGET 678CFLAGS_FOR_TARGET 679DEBUG_PREFIX_CFLAGS_FOR_TARGET 680SYSROOT_CFLAGS_FOR_TARGET 681get_gcc_base_ver 682extra_host_zlib_configure_flags 683extra_host_libiberty_configure_flags 684stage1_languages 685host_shared 686extra_linker_plugin_flags 687extra_linker_plugin_configure_flags 688islinc 689isllibs 690poststage1_ldflags 691poststage1_libs 692stage1_ldflags 693stage1_libs 694extra_isl_gmp_configure_flags 695extra_mpc_mpfr_configure_flags 696extra_mpc_gmp_configure_flags 697extra_mpfr_configure_flags 698gmpinc 699gmplibs 700do_compare 701GNATMAKE 702GNATBIND 703ac_ct_CXX 704CXXFLAGS 705CXX 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713extra_liboffloadmic_configure_flags 714target_subdir 715host_subdir 716build_subdir 717build_libsubdir 718AWK 719SED 720LN_S 721LN 722INSTALL_DATA 723INSTALL_SCRIPT 724INSTALL_PROGRAM 725target_os 726target_vendor 727target_cpu 728target 729host_os 730host_vendor 731host_cpu 732host 733target_noncanonical 734host_noncanonical 735build_noncanonical 736build_os 737build_vendor 738build_cpu 739build 740TOPLEVEL_CONFIGURE_ARGUMENTS 741target_alias 742host_alias 743build_alias 744LIBS 745ECHO_T 746ECHO_N 747ECHO_C 748DEFS 749mandir 750localedir 751libdir 752psdir 753pdfdir 754dvidir 755htmldir 756infodir 757docdir 758oldincludedir 759includedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL' 779ac_subst_files='serialization_dependencies 780host_makefile_frag 781target_makefile_frag 782alphaieee_frag 783ospace_frag' 784ac_user_opts=' 785enable_option_checking 786with_build_libsubdir 787with_system_zlib 788enable_as_accelerator_for 789enable_offload_targets 790enable_gold 791enable_ld 792enable_compressed_debug_sections 793enable_libquadmath 794enable_libquadmath_support 795enable_libada 796enable_libssp 797enable_libstdcxx 798enable_liboffloadmic 799enable_bootstrap 800with_mpc 801with_mpc_include 802with_mpc_lib 803with_mpfr_dir 804with_mpfr 805with_mpfr_include 806with_mpfr_lib 807with_gmp_dir 808with_gmp 809with_gmp_include 810with_gmp_lib 811with_stage1_libs 812with_static_standard_libraries 813with_stage1_ldflags 814with_boot_libs 815with_boot_ldflags 816with_isl 817with_isl_include 818with_isl_lib 819enable_isl_version_check 820enable_lto 821enable_linker_plugin_configure_flags 822enable_linker_plugin_flags 823enable_host_shared 824enable_stage1_languages 825enable_objc_gc 826with_target_bdw_gc 827with_target_bdw_gc_include 828with_target_bdw_gc_lib 829with_gcc_major_version_only 830with_build_sysroot 831with_debug_prefix_map 832with_build_config 833enable_vtable_verify 834enable_serial_configure 835with_build_time_tools 836enable_maintainer_mode 837enable_stage1_checking 838enable_werror 839' 840 ac_precious_vars='build_alias 841host_alias 842target_alias 843CC 844CFLAGS 845LDFLAGS 846LIBS 847CPPFLAGS 848CXX 849CXXFLAGS 850CCC 851build_configargs 852host_configargs 853target_configargs 854AR 855AS 856DLLTOOL 857DSYMUTIL 858LD 859LIPO 860NM 861RANLIB 862STRIP 863WINDRES 864WINDMC 865OBJCOPY 866OBJDUMP 867OTOOL 868READELF 869CC_FOR_TARGET 870CXX_FOR_TARGET 871GCC_FOR_TARGET 872GFORTRAN_FOR_TARGET 873GOC_FOR_TARGET 874GDC_FOR_TARGET 875AR_FOR_TARGET 876AS_FOR_TARGET 877DLLTOOL_FOR_TARGET 878DSYMUTIL_FOR_TARGET 879LD_FOR_TARGET 880LIPO_FOR_TARGET 881NM_FOR_TARGET 882OBJCOPY_FOR_TARGET 883OBJDUMP_FOR_TARGET 884OTOOL_FOR_TARGET 885RANLIB_FOR_TARGET 886READELF_FOR_TARGET 887STRIP_FOR_TARGET 888WINDRES_FOR_TARGET 889WINDMC_FOR_TARGET' 890 891 892# Initialize some variables set by options. 893ac_init_help= 894ac_init_version=false 895ac_unrecognized_opts= 896ac_unrecognized_sep= 897# The variables have the same names as the options, with 898# dashes changed to underlines. 899cache_file=/dev/null 900exec_prefix=NONE 901no_create= 902no_recursion= 903prefix=NONE 904program_prefix=NONE 905program_suffix=NONE 906program_transform_name=s,x,x, 907silent= 908site= 909srcdir= 910verbose= 911x_includes=NONE 912x_libraries=NONE 913 914# Installation directory options. 915# These are left unexpanded so users can "make install exec_prefix=/foo" 916# and all the variables that are supposed to be based on exec_prefix 917# by default will actually change. 918# Use braces instead of parens because sh, perl, etc. also accept them. 919# (The list follows the same order as the GNU Coding Standards.) 920bindir='${exec_prefix}/bin' 921sbindir='${exec_prefix}/sbin' 922libexecdir='${exec_prefix}/libexec' 923datarootdir='${prefix}/share' 924datadir='${datarootdir}' 925sysconfdir='${prefix}/etc' 926sharedstatedir='${prefix}/com' 927localstatedir='${prefix}/var' 928includedir='${prefix}/include' 929oldincludedir='/usr/include' 930docdir='${datarootdir}/doc/${PACKAGE}' 931infodir='${datarootdir}/info' 932htmldir='${docdir}' 933dvidir='${docdir}' 934pdfdir='${docdir}' 935psdir='${docdir}' 936libdir='${exec_prefix}/lib' 937localedir='${datarootdir}/locale' 938mandir='${datarootdir}/man' 939 940ac_prev= 941ac_dashdash= 942for ac_option 943do 944 # If the previous option needs an argument, assign it. 945 if test -n "$ac_prev"; then 946 eval $ac_prev=\$ac_option 947 ac_prev= 948 continue 949 fi 950 951 case $ac_option in 952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 953 *=) ac_optarg= ;; 954 *) ac_optarg=yes ;; 955 esac 956 957 # Accept the important Cygnus configure options, so we can diagnose typos. 958 959 case $ac_dashdash$ac_option in 960 --) 961 ac_dashdash=yes ;; 962 963 -bindir | --bindir | --bindi | --bind | --bin | --bi) 964 ac_prev=bindir ;; 965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 966 bindir=$ac_optarg ;; 967 968 -build | --build | --buil | --bui | --bu) 969 ac_prev=build_alias ;; 970 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 971 build_alias=$ac_optarg ;; 972 973 -cache-file | --cache-file | --cache-fil | --cache-fi \ 974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 975 ac_prev=cache_file ;; 976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 978 cache_file=$ac_optarg ;; 979 980 --config-cache | -C) 981 cache_file=config.cache ;; 982 983 -datadir | --datadir | --datadi | --datad) 984 ac_prev=datadir ;; 985 -datadir=* | --datadir=* | --datadi=* | --datad=*) 986 datadir=$ac_optarg ;; 987 988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 989 | --dataroo | --dataro | --datar) 990 ac_prev=datarootdir ;; 991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 993 datarootdir=$ac_optarg ;; 994 995 -disable-* | --disable-*) 996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 997 # Reject names that are not valid shell variable names. 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 999 as_fn_error $? "invalid feature name: $ac_useropt" 1000 ac_useropt_orig=$ac_useropt 1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1002 case $ac_user_opts in 1003 *" 1004"enable_$ac_useropt" 1005"*) ;; 1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1007 ac_unrecognized_sep=', ';; 1008 esac 1009 eval enable_$ac_useropt=no ;; 1010 1011 -docdir | --docdir | --docdi | --doc | --do) 1012 ac_prev=docdir ;; 1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1014 docdir=$ac_optarg ;; 1015 1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1017 ac_prev=dvidir ;; 1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1019 dvidir=$ac_optarg ;; 1020 1021 -enable-* | --enable-*) 1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1025 as_fn_error $? "invalid feature name: $ac_useropt" 1026 ac_useropt_orig=$ac_useropt 1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1028 case $ac_user_opts in 1029 *" 1030"enable_$ac_useropt" 1031"*) ;; 1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1033 ac_unrecognized_sep=', ';; 1034 esac 1035 eval enable_$ac_useropt=\$ac_optarg ;; 1036 1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1039 | --exec | --exe | --ex) 1040 ac_prev=exec_prefix ;; 1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1043 | --exec=* | --exe=* | --ex=*) 1044 exec_prefix=$ac_optarg ;; 1045 1046 -gas | --gas | --ga | --g) 1047 # Obsolete; use --with-gas. 1048 with_gas=yes ;; 1049 1050 -help | --help | --hel | --he | -h) 1051 ac_init_help=long ;; 1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1053 ac_init_help=recursive ;; 1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1055 ac_init_help=short ;; 1056 1057 -host | --host | --hos | --ho) 1058 ac_prev=host_alias ;; 1059 -host=* | --host=* | --hos=* | --ho=*) 1060 host_alias=$ac_optarg ;; 1061 1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1063 ac_prev=htmldir ;; 1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1065 | --ht=*) 1066 htmldir=$ac_optarg ;; 1067 1068 -includedir | --includedir | --includedi | --included | --include \ 1069 | --includ | --inclu | --incl | --inc) 1070 ac_prev=includedir ;; 1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1072 | --includ=* | --inclu=* | --incl=* | --inc=*) 1073 includedir=$ac_optarg ;; 1074 1075 -infodir | --infodir | --infodi | --infod | --info | --inf) 1076 ac_prev=infodir ;; 1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1078 infodir=$ac_optarg ;; 1079 1080 -libdir | --libdir | --libdi | --libd) 1081 ac_prev=libdir ;; 1082 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1083 libdir=$ac_optarg ;; 1084 1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1086 | --libexe | --libex | --libe) 1087 ac_prev=libexecdir ;; 1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1089 | --libexe=* | --libex=* | --libe=*) 1090 libexecdir=$ac_optarg ;; 1091 1092 -localedir | --localedir | --localedi | --localed | --locale) 1093 ac_prev=localedir ;; 1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1095 localedir=$ac_optarg ;; 1096 1097 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1098 | --localstate | --localstat | --localsta | --localst | --locals) 1099 ac_prev=localstatedir ;; 1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1102 localstatedir=$ac_optarg ;; 1103 1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1105 ac_prev=mandir ;; 1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1107 mandir=$ac_optarg ;; 1108 1109 -nfp | --nfp | --nf) 1110 # Obsolete; use --without-fp. 1111 with_fp=no ;; 1112 1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1114 | --no-cr | --no-c | -n) 1115 no_create=yes ;; 1116 1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1119 no_recursion=yes ;; 1120 1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1123 | --oldin | --oldi | --old | --ol | --o) 1124 ac_prev=oldincludedir ;; 1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1128 oldincludedir=$ac_optarg ;; 1129 1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1131 ac_prev=prefix ;; 1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1133 prefix=$ac_optarg ;; 1134 1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1136 | --program-pre | --program-pr | --program-p) 1137 ac_prev=program_prefix ;; 1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1140 program_prefix=$ac_optarg ;; 1141 1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1143 | --program-suf | --program-su | --program-s) 1144 ac_prev=program_suffix ;; 1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1147 program_suffix=$ac_optarg ;; 1148 1149 -program-transform-name | --program-transform-name \ 1150 | --program-transform-nam | --program-transform-na \ 1151 | --program-transform-n | --program-transform- \ 1152 | --program-transform | --program-transfor \ 1153 | --program-transfo | --program-transf \ 1154 | --program-trans | --program-tran \ 1155 | --progr-tra | --program-tr | --program-t) 1156 ac_prev=program_transform_name ;; 1157 -program-transform-name=* | --program-transform-name=* \ 1158 | --program-transform-nam=* | --program-transform-na=* \ 1159 | --program-transform-n=* | --program-transform-=* \ 1160 | --program-transform=* | --program-transfor=* \ 1161 | --program-transfo=* | --program-transf=* \ 1162 | --program-trans=* | --program-tran=* \ 1163 | --progr-tra=* | --program-tr=* | --program-t=*) 1164 program_transform_name=$ac_optarg ;; 1165 1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1167 ac_prev=pdfdir ;; 1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1169 pdfdir=$ac_optarg ;; 1170 1171 -psdir | --psdir | --psdi | --psd | --ps) 1172 ac_prev=psdir ;; 1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1174 psdir=$ac_optarg ;; 1175 1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1177 | -silent | --silent | --silen | --sile | --sil) 1178 silent=yes ;; 1179 1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1181 ac_prev=sbindir ;; 1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1183 | --sbi=* | --sb=*) 1184 sbindir=$ac_optarg ;; 1185 1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1188 | --sharedst | --shareds | --shared | --share | --shar \ 1189 | --sha | --sh) 1190 ac_prev=sharedstatedir ;; 1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1194 | --sha=* | --sh=*) 1195 sharedstatedir=$ac_optarg ;; 1196 1197 -site | --site | --sit) 1198 ac_prev=site ;; 1199 -site=* | --site=* | --sit=*) 1200 site=$ac_optarg ;; 1201 1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1203 ac_prev=srcdir ;; 1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1205 srcdir=$ac_optarg ;; 1206 1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1208 | --syscon | --sysco | --sysc | --sys | --sy) 1209 ac_prev=sysconfdir ;; 1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1212 sysconfdir=$ac_optarg ;; 1213 1214 -target | --target | --targe | --targ | --tar | --ta | --t) 1215 ac_prev=target_alias ;; 1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1217 target_alias=$ac_optarg ;; 1218 1219 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1220 verbose=yes ;; 1221 1222 -version | --version | --versio | --versi | --vers | -V) 1223 ac_init_version=: ;; 1224 1225 -with-* | --with-*) 1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1229 as_fn_error $? "invalid package name: $ac_useropt" 1230 ac_useropt_orig=$ac_useropt 1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1232 case $ac_user_opts in 1233 *" 1234"with_$ac_useropt" 1235"*) ;; 1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1237 ac_unrecognized_sep=', ';; 1238 esac 1239 eval with_$ac_useropt=\$ac_optarg ;; 1240 1241 -without-* | --without-*) 1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1243 # Reject names that are not valid shell variable names. 1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1245 as_fn_error $? "invalid package name: $ac_useropt" 1246 ac_useropt_orig=$ac_useropt 1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1248 case $ac_user_opts in 1249 *" 1250"with_$ac_useropt" 1251"*) ;; 1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1253 ac_unrecognized_sep=', ';; 1254 esac 1255 eval with_$ac_useropt=no ;; 1256 1257 --x) 1258 # Obsolete; use --with-x. 1259 with_x=yes ;; 1260 1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1262 | --x-incl | --x-inc | --x-in | --x-i) 1263 ac_prev=x_includes ;; 1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1266 x_includes=$ac_optarg ;; 1267 1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1270 ac_prev=x_libraries ;; 1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1273 x_libraries=$ac_optarg ;; 1274 1275 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1276Try \`$0 --help' for more information" 1277 ;; 1278 1279 *=*) 1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1281 # Reject names that are not valid shell variable names. 1282 case $ac_envvar in #( 1283 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1285 esac 1286 eval $ac_envvar=\$ac_optarg 1287 export $ac_envvar ;; 1288 1289 *) 1290 # FIXME: should be removed in autoconf 3.0. 1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1294 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1295 ;; 1296 1297 esac 1298done 1299 1300if test -n "$ac_prev"; then 1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1302 as_fn_error $? "missing argument to $ac_option" 1303fi 1304 1305if test -n "$ac_unrecognized_opts"; then 1306 case $enable_option_checking in 1307 no) ;; 1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1310 esac 1311fi 1312 1313# Check all directory arguments for consistency. 1314for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1315 datadir sysconfdir sharedstatedir localstatedir includedir \ 1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1317 libdir localedir mandir 1318do 1319 eval ac_val=\$$ac_var 1320 # Remove trailing slashes. 1321 case $ac_val in 1322 */ ) 1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1324 eval $ac_var=\$ac_val;; 1325 esac 1326 # Be sure to have absolute directory names. 1327 case $ac_val in 1328 [\\/$]* | ?:[\\/]* ) continue;; 1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1330 esac 1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1332done 1333 1334# There might be people who depend on the old broken behavior: `$host' 1335# used to hold the argument of --host etc. 1336# FIXME: To remove some day. 1337build=$build_alias 1338host=$host_alias 1339target=$target_alias 1340 1341# FIXME: To remove some day. 1342if test "x$host_alias" != x; then 1343 if test "x$build_alias" = x; then 1344 cross_compiling=maybe 1345 elif test "x$build_alias" != "x$host_alias"; then 1346 cross_compiling=yes 1347 fi 1348fi 1349 1350ac_tool_prefix= 1351test -n "$host_alias" && ac_tool_prefix=$host_alias- 1352 1353test "$silent" = yes && exec 6>/dev/null 1354 1355 1356ac_pwd=`pwd` && test -n "$ac_pwd" && 1357ac_ls_di=`ls -di .` && 1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1359 as_fn_error $? "working directory cannot be determined" 1360test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1361 as_fn_error $? "pwd does not report name of working directory" 1362 1363 1364# Find the source files, if location was not specified. 1365if test -z "$srcdir"; then 1366 ac_srcdir_defaulted=yes 1367 # Try the directory containing this script, then the parent directory. 1368 ac_confdir=`$as_dirname -- "$as_myself" || 1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1370 X"$as_myself" : 'X\(//\)[^/]' \| \ 1371 X"$as_myself" : 'X\(//\)$' \| \ 1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1373$as_echo X"$as_myself" | 1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\/\)[^/].*/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\/\)$/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\).*/{ 1387 s//\1/ 1388 q 1389 } 1390 s/.*/./; q'` 1391 srcdir=$ac_confdir 1392 if test ! -r "$srcdir/$ac_unique_file"; then 1393 srcdir=.. 1394 fi 1395else 1396 ac_srcdir_defaulted=no 1397fi 1398if test ! -r "$srcdir/$ac_unique_file"; then 1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1400 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1401fi 1402ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1403ac_abs_confdir=`( 1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1405 pwd)` 1406# When building in place, set srcdir=. 1407if test "$ac_abs_confdir" = "$ac_pwd"; then 1408 srcdir=. 1409fi 1410# Remove unnecessary trailing slashes from srcdir. 1411# Double slashes in file names in object file debugging info 1412# mess up M-x gdb in Emacs. 1413case $srcdir in 1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1415esac 1416case $srcdir in 1417 *" "*) 1418 as_fn_error $? "path to source, $srcdir, contains spaces" 1419 ;; 1420esac 1421ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` 1422 1423for ac_var in $ac_precious_vars; do 1424 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1425 eval ac_env_${ac_var}_value=\$${ac_var} 1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1427 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1428done 1429 1430# 1431# Report the --help message. 1432# 1433if test "$ac_init_help" = "long"; then 1434 # Omit some internal or obsolete options to make the list less imposing. 1435 # This message is too long to be a string in the A/UX 3.1 sh. 1436 cat <<_ACEOF 1437\`configure' configures this package to adapt to many kinds of systems. 1438 1439Usage: $0 [OPTION]... [VAR=VALUE]... 1440 1441To assign environment variables (e.g., CC, CFLAGS...), specify them as 1442VAR=VALUE. See below for descriptions of some of the useful variables. 1443 1444Defaults for the options are specified in brackets. 1445 1446Configuration: 1447 -h, --help display this help and exit 1448 --help=short display options specific to this package 1449 --help=recursive display the short help of all the included packages 1450 -V, --version display version information and exit 1451 -q, --quiet, --silent do not print \`checking ...' messages 1452 --cache-file=FILE cache test results in FILE [disabled] 1453 -C, --config-cache alias for \`--cache-file=config.cache' 1454 -n, --no-create do not create output files 1455 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1456 1457Installation directories: 1458 --prefix=PREFIX install architecture-independent files in PREFIX 1459 [$ac_default_prefix] 1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1461 [PREFIX] 1462 1463By default, \`make install' will install all the files in 1464\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1465an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1466for instance \`--prefix=\$HOME'. 1467 1468For better control, use the options below. 1469 1470Fine tuning of the installation directories: 1471 --bindir=DIR user executables [EPREFIX/bin] 1472 --sbindir=DIR system admin executables [EPREFIX/sbin] 1473 --libexecdir=DIR program executables [EPREFIX/libexec] 1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1477 --libdir=DIR object code libraries [EPREFIX/lib] 1478 --includedir=DIR C header files [PREFIX/include] 1479 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1482 --infodir=DIR info documentation [DATAROOTDIR/info] 1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1484 --mandir=DIR man documentation [DATAROOTDIR/man] 1485 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1486 --htmldir=DIR html documentation [DOCDIR] 1487 --dvidir=DIR dvi documentation [DOCDIR] 1488 --pdfdir=DIR pdf documentation [DOCDIR] 1489 --psdir=DIR ps documentation [DOCDIR] 1490_ACEOF 1491 1492 cat <<\_ACEOF 1493 1494Program names: 1495 --program-prefix=PREFIX prepend PREFIX to installed program names 1496 --program-suffix=SUFFIX append SUFFIX to installed program names 1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1498 1499System types: 1500 --build=BUILD configure for building on BUILD [guessed] 1501 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1502 --target=TARGET configure for building compilers for TARGET [HOST] 1503_ACEOF 1504fi 1505 1506if test -n "$ac_init_help"; then 1507 1508 cat <<\_ACEOF 1509 1510Optional Features: 1511 --disable-option-checking ignore unrecognized --enable/--with options 1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1514 --enable-as-accelerator-for=ARG 1515 build as offload target compiler. Specify offload 1516 host triple by ARG 1517 --enable-offload-targets=LIST 1518 enable offloading to devices from comma-separated 1519 LIST of TARGET[=DIR]. Use optional path to find 1520 offload target compiler during the build 1521 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1522 --enable-ld[=ARG] build ld [ARG={default,yes,no}] 1523 --enable-compressed-debug-sections={all,gas,gold,ld,none} 1524 Enable compressed debug sections for gas, gold or ld 1525 by default 1526 --disable-libquadmath do not build libquadmath directory 1527 --disable-libquadmath-support 1528 disable libquadmath support for Fortran 1529 --enable-libada build libada directory 1530 --enable-libssp build libssp directory 1531 --disable-libstdcxx do not build libstdc++-v3 directory 1532 --enable-liboffloadmic=ARG 1533 build liboffloadmic [ARG={no,host,target}] 1534 --enable-bootstrap enable bootstrapping [yes if native build] 1535 --disable-isl-version-check 1536 disable check for isl version 1537 --enable-lto enable link time optimization support 1538 --enable-linker-plugin-configure-flags=FLAGS 1539 additional flags for configuring linker plugins 1540 [none] 1541 --enable-linker-plugin-flags=FLAGS 1542 additional flags for configuring and building linker 1543 plugins [none] 1544 --enable-host-shared build host code as shared libraries 1545 --enable-stage1-languages[=all] 1546 choose additional languages to build during stage1. 1547 Mostly useful for compiler development 1548 --enable-objc-gc enable use of Boehm's garbage collector with the GNU 1549 Objective-C runtime 1550 --enable-vtable-verify Enable vtable verification feature 1551 --enable-serial-[{host,target,build}-]configure 1552 force sequential configuration of sub-packages for 1553 the host, target or build machine, or all 1554 sub-packages 1555 --enable-maintainer-mode 1556 enable make rules and dependencies not useful (and 1557 sometimes confusing) to the casual installer 1558 --enable-stage1-checking[=all] 1559 choose additional checking for stage1 of the 1560 compiler 1561 --enable-werror enable -Werror in bootstrap stage2 and later 1562 1563Optional Packages: 1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1566 --with-build-libsubdir=DIR Directory where to find libraries for build system 1567 --with-system-zlib use installed libz 1568 --with-mpc=PATH specify prefix directory for installed MPC package. 1569 Equivalent to --with-mpc-include=PATH/include plus 1570 --with-mpc-lib=PATH/lib 1571 --with-mpc-include=PATH specify directory for installed MPC include files 1572 --with-mpc-lib=PATH specify directory for the installed MPC library 1573 --with-mpfr-dir=PATH this option has been REMOVED 1574 --with-mpfr=PATH specify prefix directory for installed MPFR package. 1575 Equivalent to --with-mpfr-include=PATH/include plus 1576 --with-mpfr-lib=PATH/lib 1577 --with-mpfr-include=PATH 1578 specify directory for installed MPFR include files 1579 --with-mpfr-lib=PATH specify directory for the installed MPFR library 1580 --with-gmp-dir=PATH this option has been REMOVED 1581 --with-gmp=PATH specify prefix directory for the installed GMP 1582 package. Equivalent to 1583 --with-gmp-include=PATH/include plus 1584 --with-gmp-lib=PATH/lib 1585 --with-gmp-include=PATH specify directory for installed GMP include files 1586 --with-gmp-lib=PATH specify directory for the installed GMP library 1587 --with-stage1-libs=LIBS libraries for stage1 1588 --with-static-standard-libraries 1589 use -static-libstdc++ and -static-libgcc 1590 (default=auto) 1591 --with-stage1-ldflags=FLAGS 1592 linker flags for stage1 1593 --with-boot-libs=LIBS libraries for stage2 and later 1594 --with-boot-ldflags=FLAGS 1595 linker flags for stage2 and later 1596 --with-isl=PATH Specify prefix directory for the installed isl 1597 package. Equivalent to 1598 --with-isl-include=PATH/include plus 1599 --with-isl-lib=PATH/lib 1600 --with-isl-include=PATH Specify directory for installed isl include files 1601 --with-isl-lib=PATH Specify the directory for the installed isl library 1602 --with-target-bdw-gc=PATHLIST 1603 specify prefix directory for installed bdw-gc 1604 package. Equivalent to 1605 --with-target-bdw-gc-include=PATH/include plus 1606 --with-target-bdw-gc-lib=PATH/lib 1607 --with-target-bdw-gc-include=PATHLIST 1608 specify directories for installed bdw-gc include 1609 files 1610 --with-target-bdw-gc-lib=PATHLIST 1611 specify directories for installed bdw-gc library 1612 --with-gcc-major-version-only 1613 use only GCC major number in filesystem paths 1614 --with-build-sysroot=SYSROOT 1615 use sysroot as the system root during the build 1616 --with-debug-prefix-map='A=B C=D ...' 1617 map A to B, C to D ... in debug information 1618 --with-build-config='NAME NAME2...' 1619 use config/NAME.mk build configuration 1620 --with-build-time-tools=PATH 1621 use given path to find target tools during the build 1622 1623Some influential environment variables: 1624 CC C compiler command 1625 CFLAGS C compiler flags 1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1627 nonstandard directory <lib dir> 1628 LIBS libraries to pass to the linker, e.g. -l<library> 1629 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1630 you have headers in a nonstandard directory <include dir> 1631 CXX C++ compiler command 1632 CXXFLAGS C++ compiler flags 1633 build_configargs 1634 additional configure arguments for build directories 1635 host_configargs 1636 additional configure arguments for host directories 1637 target_configargs 1638 additional configure arguments for target directories 1639 AR AR for the host 1640 AS AS for the host 1641 DLLTOOL DLLTOOL for the host 1642 DSYMUTIL DSYMUTIL for the host 1643 LD LD for the host 1644 LIPO LIPO for the host 1645 NM NM for the host 1646 RANLIB RANLIB for the host 1647 STRIP STRIP for the host 1648 WINDRES WINDRES for the host 1649 WINDMC WINDMC for the host 1650 OBJCOPY OBJCOPY for the host 1651 OBJDUMP OBJDUMP for the host 1652 OTOOL OTOOL for the host 1653 READELF READELF for the host 1654 CC_FOR_TARGET 1655 CC for the target 1656 CXX_FOR_TARGET 1657 CXX for the target 1658 GCC_FOR_TARGET 1659 GCC for the target 1660 GFORTRAN_FOR_TARGET 1661 GFORTRAN for the target 1662 GOC_FOR_TARGET 1663 GOC for the target 1664 GDC_FOR_TARGET 1665 GDC for the target 1666 AR_FOR_TARGET 1667 AR for the target 1668 AS_FOR_TARGET 1669 AS for the target 1670 DLLTOOL_FOR_TARGET 1671 DLLTOOL for the target 1672 DSYMUTIL_FOR_TARGET 1673 DSYMUTIL for the target 1674 LD_FOR_TARGET 1675 LD for the target 1676 LIPO_FOR_TARGET 1677 LIPO for the target 1678 NM_FOR_TARGET 1679 NM for the target 1680 OBJCOPY_FOR_TARGET 1681 OBJCOPY for the target 1682 OBJDUMP_FOR_TARGET 1683 OBJDUMP for the target 1684 OTOOL_FOR_TARGET 1685 OTOOL for the target 1686 RANLIB_FOR_TARGET 1687 RANLIB for the target 1688 READELF_FOR_TARGET 1689 READELF for the target 1690 STRIP_FOR_TARGET 1691 STRIP for the target 1692 WINDRES_FOR_TARGET 1693 WINDRES for the target 1694 WINDMC_FOR_TARGET 1695 WINDMC for the target 1696 1697Use these variables to override the choices made by `configure' or to help 1698it to find libraries and programs with nonstandard names/locations. 1699 1700Report bugs to the package provider. 1701_ACEOF 1702ac_status=$? 1703fi 1704 1705if test "$ac_init_help" = "recursive"; then 1706 # If there are subdirs, report their specific --help. 1707 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1708 test -d "$ac_dir" || 1709 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1710 continue 1711 ac_builddir=. 1712 1713case "$ac_dir" in 1714.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1715*) 1716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1717 # A ".." for each directory in $ac_dir_suffix. 1718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1719 case $ac_top_builddir_sub in 1720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1722 esac ;; 1723esac 1724ac_abs_top_builddir=$ac_pwd 1725ac_abs_builddir=$ac_pwd$ac_dir_suffix 1726# for backward compatibility: 1727ac_top_builddir=$ac_top_build_prefix 1728 1729case $srcdir in 1730 .) # We are building in place. 1731 ac_srcdir=. 1732 ac_top_srcdir=$ac_top_builddir_sub 1733 ac_abs_top_srcdir=$ac_pwd ;; 1734 [\\/]* | ?:[\\/]* ) # Absolute name. 1735 ac_srcdir=$srcdir$ac_dir_suffix; 1736 ac_top_srcdir=$srcdir 1737 ac_abs_top_srcdir=$srcdir ;; 1738 *) # Relative name. 1739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1740 ac_top_srcdir=$ac_top_build_prefix$srcdir 1741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1742esac 1743ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1744 1745 cd "$ac_dir" || { ac_status=$?; continue; } 1746 # Check for guested configure. 1747 if test -f "$ac_srcdir/configure.gnu"; then 1748 echo && 1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1750 elif test -f "$ac_srcdir/configure"; then 1751 echo && 1752 $SHELL "$ac_srcdir/configure" --help=recursive 1753 else 1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1755 fi || ac_status=$? 1756 cd "$ac_pwd" || { ac_status=$?; break; } 1757 done 1758fi 1759 1760test -n "$ac_init_help" && exit $ac_status 1761if $ac_init_version; then 1762 cat <<\_ACEOF 1763configure 1764generated by GNU Autoconf 2.69 1765 1766Copyright (C) 2012 Free Software Foundation, Inc. 1767This configure script is free software; the Free Software Foundation 1768gives unlimited permission to copy, distribute and modify it. 1769_ACEOF 1770 exit 1771fi 1772 1773## ------------------------ ## 1774## Autoconf initialization. ## 1775## ------------------------ ## 1776 1777# ac_fn_c_try_compile LINENO 1778# -------------------------- 1779# Try to compile conftest.$ac_ext, and return whether this succeeded. 1780ac_fn_c_try_compile () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 rm -f conftest.$ac_objext 1784 if { { ac_try="$ac_compile" 1785case "(($ac_try" in 1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1787 *) ac_try_echo=$ac_try;; 1788esac 1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1790$as_echo "$ac_try_echo"; } >&5 1791 (eval "$ac_compile") 2>conftest.err 1792 ac_status=$? 1793 if test -s conftest.err; then 1794 grep -v '^ *+' conftest.err >conftest.er1 1795 cat conftest.er1 >&5 1796 mv -f conftest.er1 conftest.err 1797 fi 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; } && { 1800 test -z "$ac_c_werror_flag" || 1801 test ! -s conftest.err 1802 } && test -s conftest.$ac_objext; then : 1803 ac_retval=0 1804else 1805 $as_echo "$as_me: failed program was:" >&5 1806sed 's/^/| /' conftest.$ac_ext >&5 1807 1808 ac_retval=1 1809fi 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 as_fn_set_status $ac_retval 1812 1813} # ac_fn_c_try_compile 1814 1815# ac_fn_cxx_try_compile LINENO 1816# ---------------------------- 1817# Try to compile conftest.$ac_ext, and return whether this succeeded. 1818ac_fn_cxx_try_compile () 1819{ 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 rm -f conftest.$ac_objext 1822 if { { ac_try="$ac_compile" 1823case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826esac 1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828$as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_compile") 2>conftest.err 1830 ac_status=$? 1831 if test -s conftest.err; then 1832 grep -v '^ *+' conftest.err >conftest.er1 1833 cat conftest.er1 >&5 1834 mv -f conftest.er1 conftest.err 1835 fi 1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1837 test $ac_status = 0; } && { 1838 test -z "$ac_cxx_werror_flag" || 1839 test ! -s conftest.err 1840 } && test -s conftest.$ac_objext; then : 1841 ac_retval=0 1842else 1843 $as_echo "$as_me: failed program was:" >&5 1844sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=1 1847fi 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 as_fn_set_status $ac_retval 1850 1851} # ac_fn_cxx_try_compile 1852 1853# ac_fn_cxx_try_link LINENO 1854# ------------------------- 1855# Try to link conftest.$ac_ext, and return whether this succeeded. 1856ac_fn_cxx_try_link () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 rm -f conftest.$ac_objext conftest$ac_exeext 1860 if { { ac_try="$ac_link" 1861case "(($ac_try" in 1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1863 *) ac_try_echo=$ac_try;; 1864esac 1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1866$as_echo "$ac_try_echo"; } >&5 1867 (eval "$ac_link") 2>conftest.err 1868 ac_status=$? 1869 if test -s conftest.err; then 1870 grep -v '^ *+' conftest.err >conftest.er1 1871 cat conftest.er1 >&5 1872 mv -f conftest.er1 conftest.err 1873 fi 1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1875 test $ac_status = 0; } && { 1876 test -z "$ac_cxx_werror_flag" || 1877 test ! -s conftest.err 1878 } && test -s conftest$ac_exeext && { 1879 test "$cross_compiling" = yes || 1880 test -x conftest$ac_exeext 1881 }; then : 1882 ac_retval=0 1883else 1884 $as_echo "$as_me: failed program was:" >&5 1885sed 's/^/| /' conftest.$ac_ext >&5 1886 1887 ac_retval=1 1888fi 1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1891 # interfere with the next link command; also delete a directory that is 1892 # left behind by Apple's compiler. We do this before executing the actions. 1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 as_fn_set_status $ac_retval 1896 1897} # ac_fn_cxx_try_link 1898 1899# ac_fn_c_try_link LINENO 1900# ----------------------- 1901# Try to link conftest.$ac_ext, and return whether this succeeded. 1902ac_fn_c_try_link () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 rm -f conftest.$ac_objext conftest$ac_exeext 1906 if { { ac_try="$ac_link" 1907case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912$as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_link") 2>conftest.err 1914 ac_status=$? 1915 if test -s conftest.err; then 1916 grep -v '^ *+' conftest.err >conftest.er1 1917 cat conftest.er1 >&5 1918 mv -f conftest.er1 conftest.err 1919 fi 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } && { 1922 test -z "$ac_c_werror_flag" || 1923 test ! -s conftest.err 1924 } && test -s conftest$ac_exeext && { 1925 test "$cross_compiling" = yes || 1926 test -x conftest$ac_exeext 1927 }; then : 1928 ac_retval=0 1929else 1930 $as_echo "$as_me: failed program was:" >&5 1931sed 's/^/| /' conftest.$ac_ext >&5 1932 1933 ac_retval=1 1934fi 1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1937 # interfere with the next link command; also delete a directory that is 1938 # left behind by Apple's compiler. We do this before executing the actions. 1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 as_fn_set_status $ac_retval 1942 1943} # ac_fn_c_try_link 1944cat >config.log <<_ACEOF 1945This file contains any messages produced by compilers while 1946running configure, to aid debugging if configure makes a mistake. 1947 1948It was created by $as_me, which was 1949generated by GNU Autoconf 2.69. Invocation command line was 1950 1951 $ $0 $@ 1952 1953_ACEOF 1954exec 5>>config.log 1955{ 1956cat <<_ASUNAME 1957## --------- ## 1958## Platform. ## 1959## --------- ## 1960 1961hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1962uname -m = `(uname -m) 2>/dev/null || echo unknown` 1963uname -r = `(uname -r) 2>/dev/null || echo unknown` 1964uname -s = `(uname -s) 2>/dev/null || echo unknown` 1965uname -v = `(uname -v) 2>/dev/null || echo unknown` 1966 1967/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1968/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1969 1970/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1971/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1973/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1974/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1975/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1976/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1977 1978_ASUNAME 1979 1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1981for as_dir in $PATH 1982do 1983 IFS=$as_save_IFS 1984 test -z "$as_dir" && as_dir=. 1985 $as_echo "PATH: $as_dir" 1986 done 1987IFS=$as_save_IFS 1988 1989} >&5 1990 1991cat >&5 <<_ACEOF 1992 1993 1994## ----------- ## 1995## Core tests. ## 1996## ----------- ## 1997 1998_ACEOF 1999 2000 2001# Keep a trace of the command line. 2002# Strip out --no-create and --no-recursion so they do not pile up. 2003# Strip out --silent because we don't want to record it for future runs. 2004# Also quote any args containing shell meta-characters. 2005# Make two passes to allow for proper duplicate-argument suppression. 2006ac_configure_args= 2007ac_configure_args0= 2008ac_configure_args1= 2009ac_must_keep_next=false 2010for ac_pass in 1 2 2011do 2012 for ac_arg 2013 do 2014 case $ac_arg in 2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2017 | -silent | --silent | --silen | --sile | --sil) 2018 continue ;; 2019 *\'*) 2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2021 esac 2022 case $ac_pass in 2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2024 2) 2025 as_fn_append ac_configure_args1 " '$ac_arg'" 2026 if test $ac_must_keep_next = true; then 2027 ac_must_keep_next=false # Got value, back to normal. 2028 else 2029 case $ac_arg in 2030 *=* | --config-cache | -C | -disable-* | --disable-* \ 2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2033 | -with-* | --with-* | -without-* | --without-* | --x) 2034 case "$ac_configure_args0 " in 2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2036 esac 2037 ;; 2038 -* ) ac_must_keep_next=true ;; 2039 esac 2040 fi 2041 as_fn_append ac_configure_args " '$ac_arg'" 2042 ;; 2043 esac 2044 done 2045done 2046{ ac_configure_args0=; unset ac_configure_args0;} 2047{ ac_configure_args1=; unset ac_configure_args1;} 2048 2049# When interrupted or exit'd, cleanup temporary files, and complete 2050# config.log. We remove comments because anyway the quotes in there 2051# would cause problems or look ugly. 2052# WARNING: Use '\'' to represent an apostrophe within the trap. 2053# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2054trap 'exit_status=$? 2055 # Save into config.log some information that might help in debugging. 2056 { 2057 echo 2058 2059 $as_echo "## ---------------- ## 2060## Cache variables. ## 2061## ---------------- ##" 2062 echo 2063 # The following way of writing the cache mishandles newlines in values, 2064( 2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2066 eval ac_val=\$$ac_var 2067 case $ac_val in #( 2068 *${as_nl}*) 2069 case $ac_var in #( 2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2072 esac 2073 case $ac_var in #( 2074 _ | IFS | as_nl) ;; #( 2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2076 *) { eval $ac_var=; unset $ac_var;} ;; 2077 esac ;; 2078 esac 2079 done 2080 (set) 2>&1 | 2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2082 *${as_nl}ac_space=\ *) 2083 sed -n \ 2084 "s/'\''/'\''\\\\'\'''\''/g; 2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2086 ;; #( 2087 *) 2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2089 ;; 2090 esac | 2091 sort 2092) 2093 echo 2094 2095 $as_echo "## ----------------- ## 2096## Output variables. ## 2097## ----------------- ##" 2098 echo 2099 for ac_var in $ac_subst_vars 2100 do 2101 eval ac_val=\$$ac_var 2102 case $ac_val in 2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2104 esac 2105 $as_echo "$ac_var='\''$ac_val'\''" 2106 done | sort 2107 echo 2108 2109 if test -n "$ac_subst_files"; then 2110 $as_echo "## ------------------- ## 2111## File substitutions. ## 2112## ------------------- ##" 2113 echo 2114 for ac_var in $ac_subst_files 2115 do 2116 eval ac_val=\$$ac_var 2117 case $ac_val in 2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2119 esac 2120 $as_echo "$ac_var='\''$ac_val'\''" 2121 done | sort 2122 echo 2123 fi 2124 2125 if test -s confdefs.h; then 2126 $as_echo "## ----------- ## 2127## confdefs.h. ## 2128## ----------- ##" 2129 echo 2130 cat confdefs.h 2131 echo 2132 fi 2133 test "$ac_signal" != 0 && 2134 $as_echo "$as_me: caught signal $ac_signal" 2135 $as_echo "$as_me: exit $exit_status" 2136 } >&5 2137 rm -f core *.core core.conftest.* && 2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2139 exit $exit_status 2140' 0 2141for ac_signal in 1 2 13 15; do 2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2143done 2144ac_signal=0 2145 2146# confdefs.h avoids OS command line length limits that DEFS can exceed. 2147rm -f -r conftest* confdefs.h 2148 2149$as_echo "/* confdefs.h */" > confdefs.h 2150 2151# Predefined preprocessor variables. 2152 2153cat >>confdefs.h <<_ACEOF 2154#define PACKAGE_NAME "$PACKAGE_NAME" 2155_ACEOF 2156 2157cat >>confdefs.h <<_ACEOF 2158#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2159_ACEOF 2160 2161cat >>confdefs.h <<_ACEOF 2162#define PACKAGE_VERSION "$PACKAGE_VERSION" 2163_ACEOF 2164 2165cat >>confdefs.h <<_ACEOF 2166#define PACKAGE_STRING "$PACKAGE_STRING" 2167_ACEOF 2168 2169cat >>confdefs.h <<_ACEOF 2170#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2171_ACEOF 2172 2173cat >>confdefs.h <<_ACEOF 2174#define PACKAGE_URL "$PACKAGE_URL" 2175_ACEOF 2176 2177 2178# Let the site file select an alternate cache file if it wants to. 2179# Prefer an explicitly selected file to automatically selected ones. 2180ac_site_file1=NONE 2181ac_site_file2=NONE 2182if test -n "$CONFIG_SITE"; then 2183 # We do not want a PATH search for config.site. 2184 case $CONFIG_SITE in #(( 2185 -*) ac_site_file1=./$CONFIG_SITE;; 2186 */*) ac_site_file1=$CONFIG_SITE;; 2187 *) ac_site_file1=./$CONFIG_SITE;; 2188 esac 2189elif test "x$prefix" != xNONE; then 2190 ac_site_file1=$prefix/share/config.site 2191 ac_site_file2=$prefix/etc/config.site 2192else 2193 ac_site_file1=$ac_default_prefix/share/config.site 2194 ac_site_file2=$ac_default_prefix/etc/config.site 2195fi 2196for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2197do 2198 test "x$ac_site_file" = xNONE && continue 2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2201$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2202 sed 's/^/| /' "$ac_site_file" >&5 2203 . "$ac_site_file" \ 2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2206as_fn_error $? "failed to load site script $ac_site_file 2207See \`config.log' for more details" "$LINENO" 5; } 2208 fi 2209done 2210 2211if test -r "$cache_file"; then 2212 # Some versions of bash will fail to source /dev/null (special files 2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2216$as_echo "$as_me: loading cache $cache_file" >&6;} 2217 case $cache_file in 2218 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2219 *) . "./$cache_file";; 2220 esac 2221 fi 2222else 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2224$as_echo "$as_me: creating cache $cache_file" >&6;} 2225 >$cache_file 2226fi 2227 2228# Check that the precious variables saved in the cache have kept the same 2229# value. 2230ac_cache_corrupted=false 2231for ac_var in $ac_precious_vars; do 2232 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2233 eval ac_new_set=\$ac_env_${ac_var}_set 2234 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2235 eval ac_new_val=\$ac_env_${ac_var}_value 2236 case $ac_old_set,$ac_new_set in 2237 set,) 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2239$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2240 ac_cache_corrupted=: ;; 2241 ,set) 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2243$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2244 ac_cache_corrupted=: ;; 2245 ,);; 2246 *) 2247 if test "x$ac_old_val" != "x$ac_new_val"; then 2248 # differences in whitespace do not lead to failure. 2249 ac_old_val_w=`echo x $ac_old_val` 2250 ac_new_val_w=`echo x $ac_new_val` 2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2253$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2254 ac_cache_corrupted=: 2255 else 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2257$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2258 eval $ac_var=\$ac_old_val 2259 fi 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2261$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2263$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2264 fi;; 2265 esac 2266 # Pass precious variables to config.status. 2267 if test "$ac_new_set" = set; then 2268 case $ac_new_val in 2269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2270 *) ac_arg=$ac_var=$ac_new_val ;; 2271 esac 2272 case " $ac_configure_args " in 2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2274 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2275 esac 2276 fi 2277done 2278if $ac_cache_corrupted; then 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2282$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2283 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2284fi 2285## -------------------- ## 2286## Main body of script. ## 2287## -------------------- ## 2288 2289ac_ext=c 2290ac_cpp='$CPP $CPPFLAGS' 2291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2293ac_compiler_gnu=$ac_cv_c_compiler_gnu 2294 2295 2296 2297 2298 2299 2300 2301 2302progname=$0 2303# if PWD already has a value, it is probably wrong. 2304if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi 2305 2306# Export original configure arguments for use by sub-configures. 2307# Quote arguments with shell meta charatcers. 2308TOPLEVEL_CONFIGURE_ARGUMENTS= 2309set -- "$progname" "$@" 2310for ac_arg 2311do 2312 case "$ac_arg" in 2313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) 2314 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 2315 # if the argument is of the form -foo=baz, quote the baz part only 2316 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; 2317 *) ;; 2318 esac 2319 # Add the quoted argument to the list. 2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" 2321done 2322if test "$silent" = yes; then 2323 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" 2324fi 2325# Remove the initial space we just introduced and, as these will be 2326# expanded by make, quote '$'. 2327TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 2328 2329 2330# Find the build, host, and target systems. 2331ac_aux_dir= 2332for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2333 if test -f "$ac_dir/install-sh"; then 2334 ac_aux_dir=$ac_dir 2335 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c" 2336 break 2337 elif test -f "$ac_dir/install.sh"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c" 2340 break 2341 elif test -f "$ac_dir/shtool"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c" 2344 break 2345 fi 2346done 2347if test -z "$ac_aux_dir"; then 2348 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2349fi 2350 2351# These three variables are undocumented and unsupported, 2352# and are intended to be withdrawn in a future Autoconf release. 2353# They can cause serious problems if a builder's source tree is in a directory 2354# whose full name contains unusual characters. 2355ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2356ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2357ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2358 2359 2360# Make sure we can run config.sub. 2361$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2362 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2363 2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2365$as_echo_n "checking build system type... " >&6; } 2366if ${ac_cv_build+:} false; then : 2367 $as_echo_n "(cached) " >&6 2368else 2369 ac_build_alias=$build_alias 2370test "x$ac_build_alias" = x && 2371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2372test "x$ac_build_alias" = x && 2373 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2374ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2376 2377fi 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2379$as_echo "$ac_cv_build" >&6; } 2380case $ac_cv_build in 2381*-*-*) ;; 2382*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2383esac 2384build=$ac_cv_build 2385ac_save_IFS=$IFS; IFS='-' 2386set x $ac_cv_build 2387shift 2388build_cpu=$1 2389build_vendor=$2 2390shift; shift 2391# Remember, the first character of IFS is used to create $*, 2392# except with old shells: 2393build_os=$* 2394IFS=$ac_save_IFS 2395case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2396 2397 2398 case ${build_alias} in 2399 "") build_noncanonical=${build} ;; 2400 *) build_noncanonical=${build_alias} ;; 2401esac 2402 2403 2404 2405 case ${host_alias} in 2406 "") host_noncanonical=${build_noncanonical} ;; 2407 *) host_noncanonical=${host_alias} ;; 2408esac 2409 2410 2411 2412 case ${target_alias} in 2413 "") target_noncanonical=${host_noncanonical} ;; 2414 *) target_noncanonical=${target_alias} ;; 2415esac 2416 2417 2418 2419 2420test "$host_noncanonical" = "$target_noncanonical" && 2421 test "$program_prefix$program_suffix$program_transform_name" = \ 2422 NONENONEs,x,x, && 2423 program_transform_name=s,y,y, 2424 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2426$as_echo_n "checking host system type... " >&6; } 2427if ${ac_cv_host+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429else 2430 if test "x$host_alias" = x; then 2431 ac_cv_host=$ac_cv_build 2432else 2433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2435fi 2436 2437fi 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2439$as_echo "$ac_cv_host" >&6; } 2440case $ac_cv_host in 2441*-*-*) ;; 2442*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2443esac 2444host=$ac_cv_host 2445ac_save_IFS=$IFS; IFS='-' 2446set x $ac_cv_host 2447shift 2448host_cpu=$1 2449host_vendor=$2 2450shift; shift 2451# Remember, the first character of IFS is used to create $*, 2452# except with old shells: 2453host_os=$* 2454IFS=$ac_save_IFS 2455case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2456 2457 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2459$as_echo_n "checking target system type... " >&6; } 2460if ${ac_cv_target+:} false; then : 2461 $as_echo_n "(cached) " >&6 2462else 2463 if test "x$target_alias" = x; then 2464 ac_cv_target=$ac_cv_host 2465else 2466 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2468fi 2469 2470fi 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2472$as_echo "$ac_cv_target" >&6; } 2473case $ac_cv_target in 2474*-*-*) ;; 2475*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2476esac 2477target=$ac_cv_target 2478ac_save_IFS=$IFS; IFS='-' 2479set x $ac_cv_target 2480shift 2481target_cpu=$1 2482target_vendor=$2 2483shift; shift 2484# Remember, the first character of IFS is used to create $*, 2485# except with old shells: 2486target_os=$* 2487IFS=$ac_save_IFS 2488case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2489 2490 2491# The aliases save the names the user supplied, while $host etc. 2492# will get canonicalized. 2493test -n "$target_alias" && 2494 test "$program_prefix$program_suffix$program_transform_name" = \ 2495 NONENONEs,x,x, && 2496 program_prefix=${target_alias}- 2497 2498test "$program_prefix" != NONE && 2499 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2500# Use a double $ so make ignores it. 2501test "$program_suffix" != NONE && 2502 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2503# Double any \ or $. 2504# By default was `s,x,x', remove it if useless. 2505ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2506program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2507 2508 2509 2510# Get 'install' or 'install-sh' and its variants. 2511# Find a good install program. We prefer a C program (faster), 2512# so one script is as good as another. But avoid the broken or 2513# incompatible versions: 2514# SysV /etc/install, /usr/sbin/install 2515# SunOS /usr/etc/install 2516# IRIX /sbin/install 2517# AIX /bin/install 2518# AmigaOS /C/install, which installs bootblocks on floppy discs 2519# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2520# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2521# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2522# OS/2's system install, which has a completely different semantic 2523# ./install, which can be erroneously created by make from ./install.sh. 2524# Reject install programs that cannot install multiple files. 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2526$as_echo_n "checking for a BSD-compatible install... " >&6; } 2527if test -z "$INSTALL"; then 2528if ${ac_cv_path_install+:} false; then : 2529 $as_echo_n "(cached) " >&6 2530else 2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532for as_dir in $PATH 2533do 2534 IFS=$as_save_IFS 2535 test -z "$as_dir" && as_dir=. 2536 # Account for people who put trailing slashes in PATH elements. 2537case $as_dir/ in #(( 2538 ./ | .// | /[cC]/* | \ 2539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2540 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2541 /usr/ucb/* ) ;; 2542 *) 2543 # OSF1 and SCO ODT 3.0 have their own names for install. 2544 # Don't use installbsd from OSF since it installs stuff as root 2545 # by default. 2546 for ac_prog in ginstall scoinst install; do 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2549 if test $ac_prog = install && 2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2551 # AIX install. It has an incompatible calling convention. 2552 : 2553 elif test $ac_prog = install && 2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2555 # program-specific install script used by HP pwplus--don't use. 2556 : 2557 else 2558 rm -rf conftest.one conftest.two conftest.dir 2559 echo one > conftest.one 2560 echo two > conftest.two 2561 mkdir conftest.dir 2562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2563 test -s conftest.one && test -s conftest.two && 2564 test -s conftest.dir/conftest.one && 2565 test -s conftest.dir/conftest.two 2566 then 2567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2568 break 3 2569 fi 2570 fi 2571 fi 2572 done 2573 done 2574 ;; 2575esac 2576 2577 done 2578IFS=$as_save_IFS 2579 2580rm -rf conftest.one conftest.two conftest.dir 2581 2582fi 2583 if test "${ac_cv_path_install+set}" = set; then 2584 INSTALL=$ac_cv_path_install 2585 else 2586 # As a last resort, use the slow shell script. Don't cache a 2587 # value for INSTALL within a source directory, because that will 2588 # break other packages using the cache if that directory is 2589 # removed, or if the value is a relative name. 2590 INSTALL=$ac_install_sh 2591 fi 2592fi 2593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2594$as_echo "$INSTALL" >&6; } 2595 2596# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2597# It thinks the first close brace ends the variable substitution. 2598test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2599 2600test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2601 2602test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2603 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 2605$as_echo_n "checking whether ln works... " >&6; } 2606if ${acx_cv_prog_LN+:} false; then : 2607 $as_echo_n "(cached) " >&6 2608else 2609 rm -f conftestdata_t 2610echo >conftestdata_f 2611if ln conftestdata_f conftestdata_t 2>/dev/null 2612then 2613 acx_cv_prog_LN=ln 2614else 2615 acx_cv_prog_LN=no 2616fi 2617rm -f conftestdata_f conftestdata_t 2618 2619fi 2620if test $acx_cv_prog_LN = no; then 2621 LN="cp" 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 2623$as_echo "no, using $LN" >&6; } 2624else 2625 LN="$acx_cv_prog_LN" 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2627$as_echo "yes" >&6; } 2628fi 2629 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 2631$as_echo_n "checking whether ln -s works... " >&6; } 2632LN_S=$as_ln_s 2633if test "$LN_S" = "ln -s"; then 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2635$as_echo "yes" >&6; } 2636else 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 2638$as_echo "no, using $LN_S" >&6; } 2639fi 2640 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 2642$as_echo_n "checking for a sed that does not truncate output... " >&6; } 2643if ${ac_cv_path_SED+:} false; then : 2644 $as_echo_n "(cached) " >&6 2645else 2646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 2647 for ac_i in 1 2 3 4 5 6 7; do 2648 ac_script="$ac_script$as_nl$ac_script" 2649 done 2650 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 2651 { ac_script=; unset ac_script;} 2652 if test -z "$SED"; then 2653 ac_path_SED_found=false 2654 # Loop through the user's path and test for each of PROGNAME-LIST 2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656for as_dir in $PATH 2657do 2658 IFS=$as_save_IFS 2659 test -z "$as_dir" && as_dir=. 2660 for ac_prog in sed gsed; do 2661 for ac_exec_ext in '' $ac_executable_extensions; do 2662 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 2663 as_fn_executable_p "$ac_path_SED" || continue 2664# Check for GNU ac_path_SED and select it if it is found. 2665 # Check for GNU $ac_path_SED 2666case `"$ac_path_SED" --version 2>&1` in 2667*GNU*) 2668 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 2669*) 2670 ac_count=0 2671 $as_echo_n 0123456789 >"conftest.in" 2672 while : 2673 do 2674 cat "conftest.in" "conftest.in" >"conftest.tmp" 2675 mv "conftest.tmp" "conftest.in" 2676 cp "conftest.in" "conftest.nl" 2677 $as_echo '' >> "conftest.nl" 2678 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 2679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2680 as_fn_arith $ac_count + 1 && ac_count=$as_val 2681 if test $ac_count -gt ${ac_path_SED_max-0}; then 2682 # Best one so far, save it but keep looking for a better one 2683 ac_cv_path_SED="$ac_path_SED" 2684 ac_path_SED_max=$ac_count 2685 fi 2686 # 10*(2^10) chars as input seems more than enough 2687 test $ac_count -gt 10 && break 2688 done 2689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2690esac 2691 2692 $ac_path_SED_found && break 3 2693 done 2694 done 2695 done 2696IFS=$as_save_IFS 2697 if test -z "$ac_cv_path_SED"; then 2698 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 2699 fi 2700else 2701 ac_cv_path_SED=$SED 2702fi 2703 2704fi 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 2706$as_echo "$ac_cv_path_SED" >&6; } 2707 SED="$ac_cv_path_SED" 2708 rm -f conftest.sed 2709 2710for ac_prog in gawk mawk nawk awk 2711do 2712 # Extract the first word of "$ac_prog", so it can be a program name with args. 2713set dummy $ac_prog; ac_word=$2 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2715$as_echo_n "checking for $ac_word... " >&6; } 2716if ${ac_cv_prog_AWK+:} false; then : 2717 $as_echo_n "(cached) " >&6 2718else 2719 if test -n "$AWK"; then 2720 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2721else 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2729 ac_cv_prog_AWK="$ac_prog" 2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2731 break 2 2732 fi 2733done 2734 done 2735IFS=$as_save_IFS 2736 2737fi 2738fi 2739AWK=$ac_cv_prog_AWK 2740if test -n "$AWK"; then 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2742$as_echo "$AWK" >&6; } 2743else 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2745$as_echo "no" >&6; } 2746fi 2747 2748 2749 test -n "$AWK" && break 2750done 2751 2752 2753srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 2754 2755# We pass INSTALL explicitly to sub-makes. Make sure that it is not 2756# a relative path. 2757if test "$INSTALL" = "${srcdir}/install-sh -c"; then 2758 INSTALL="${srcpwd}/install-sh -c" 2759fi 2760 2761# Set srcdir to "." if that's what it is. 2762# This is important for multilib support. 2763pwd=`${PWDCMD-pwd}` 2764if test "${pwd}" = "${srcpwd}" ; then 2765 srcdir=. 2766fi 2767 2768topsrcdir=$srcpwd 2769 2770extra_host_args= 2771 2772### To add a new directory to the tree, first choose whether it is a target 2773### or a host dependent tool. Then put it into the appropriate list 2774### (library or tools, host or target), doing a dependency sort. 2775 2776# Subdirs will be configured in the order listed in build_configdirs, 2777# configdirs, or target_configdirs; see the serialization section below. 2778 2779# Dependency sorting is only needed when *configuration* must be done in 2780# a particular order. In all cases a dependency should be specified in 2781# the Makefile, whether or not it's implicitly specified here. 2782 2783# Double entries in build_configdirs, configdirs, or target_configdirs may 2784# cause circular dependencies and break everything horribly. 2785 2786# these library is used by various programs built for the build 2787# environment 2788# 2789build_libs="build-libiberty build-libcpp" 2790 2791# these tools are built for the build environment 2792build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" 2793 2794# these libraries are used by various programs built for the host environment 2795#f 2796host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" 2797 2798# these tools are built for the host environment 2799# Note, the powerpc-eabi build depends on sim occurring before gdb in order to 2800# know that we are building the simulator. 2801# binutils, gas and ld appear in that order because it makes sense to run 2802# "make check" in that particular order. 2803# If --enable-gold is used, "gold" may replace "ld". 2804host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" 2805 2806# these libraries are built for the target environment, and are built after 2807# the host libraries and the host tools (which may be a cross compiler) 2808# Note that libiberty is not a target library. 2809target_libraries="target-libgcc \ 2810 target-libbacktrace \ 2811 target-libgloss \ 2812 target-newlib \ 2813 target-libgomp \ 2814 target-liboffloadmic \ 2815 target-libhsail-rt \ 2816 target-libatomic \ 2817 target-libitm \ 2818 target-libstdc++-v3 \ 2819 target-libsanitizer \ 2820 target-libvtv \ 2821 target-libssp \ 2822 target-libquadmath \ 2823 target-libgfortran \ 2824 target-libffi \ 2825 target-libobjc \ 2826 target-libada \ 2827 target-libgo \ 2828 target-libphobos \ 2829 target-zlib" 2830 2831# these tools are built using the target libraries, and are intended to 2832# run only in the target environment 2833# 2834# note: any program that *uses* libraries that are in the "target_libraries" 2835# list belongs in this list. 2836# 2837target_tools="target-rda" 2838 2839################################################################################ 2840 2841## All tools belong in one of the four categories, and are assigned above 2842## We assign ${configdirs} this way to remove all embedded newlines. This 2843## is important because configure will choke if they ever get through. 2844## ${configdirs} is directories we build using the host tools. 2845## ${target_configdirs} is directories we build using the target tools. 2846configdirs=`echo ${host_libs} ${host_tools}` 2847target_configdirs=`echo ${target_libraries} ${target_tools}` 2848build_configdirs=`echo ${build_libs} ${build_tools}` 2849 2850 2851 2852################################################################################ 2853 2854srcname="gnu development package" 2855 2856# This gets set non-empty for some net releases of packages. 2857appdirs="" 2858 2859# Define is_cross_compiler to save on calls to 'test'. 2860is_cross_compiler= 2861if test x"${host}" = x"${target}" ; then 2862 is_cross_compiler=no 2863else 2864 is_cross_compiler=yes 2865fi 2866 2867# Find the build and target subdir names. 2868 2869# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2870# have matching libraries, they should use host libraries: Makefile.tpl 2871# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2872# However, they still use the build modules, because the corresponding 2873# host modules (e.g. bison) are only built for the host when bootstrap 2874# finishes. So: 2875# - build_subdir is where we find build modules, and never changes. 2876# - build_libsubdir is where we find build libraries, and can be overridden. 2877 2878# Prefix 'build-' so this never conflicts with target_subdir. 2879build_subdir="build-${build_noncanonical}" 2880 2881# Check whether --with-build-libsubdir was given. 2882if test "${with_build_libsubdir+set}" = set; then : 2883 withval=$with_build_libsubdir; build_libsubdir="$withval" 2884else 2885 build_libsubdir="$build_subdir" 2886fi 2887 2888# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2889if ( test $srcdir = . && test -d gcc ) \ 2890 || test -d $srcdir/../host-${host_noncanonical}; then 2891 host_subdir="host-${host_noncanonical}" 2892else 2893 host_subdir=. 2894fi 2895# No prefix. 2896target_subdir=${target_noncanonical} 2897 2898# Be sure to cover against remnants of an in-tree build. 2899if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then 2900 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. 2901Use a pristine source tree when building in a separate tree" "$LINENO" 5 2902fi 2903 2904# Skipdirs are removed silently. 2905skipdirs= 2906# Noconfigdirs are removed loudly. 2907noconfigdirs="" 2908 2909use_gnu_ld= 2910# Make sure we don't let GNU ld be added if we didn't want it. 2911if test x$with_gnu_ld = xno ; then 2912 use_gnu_ld=no 2913 noconfigdirs="$noconfigdirs ld gold" 2914fi 2915 2916use_gnu_as= 2917# Make sure we don't let GNU as be added if we didn't want it. 2918if test x$with_gnu_as = xno ; then 2919 use_gnu_as=no 2920 noconfigdirs="$noconfigdirs gas" 2921fi 2922 2923use_included_zlib= 2924 2925# Check whether --with-system-zlib was given. 2926if test "${with_system_zlib+set}" = set; then : 2927 withval=$with_system_zlib; 2928fi 2929 2930# Make sure we don't let ZLIB be added if we didn't want it. 2931if test x$with_system_zlib = xyes ; then 2932 use_included_zlib=no 2933 noconfigdirs="$noconfigdirs zlib" 2934fi 2935 2936# some tools are so dependent upon X11 that if we're not building with X, 2937# it's not even worth trying to configure, much less build, that tool. 2938 2939case ${with_x} in 2940 yes | "") ;; # the default value for this tree is that X11 is available 2941 no) 2942 skipdirs="${skipdirs} tk itcl libgui" 2943 # We won't be able to build gdbtk without X. 2944 enable_gdbtk=no 2945 ;; 2946 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 2947esac 2948 2949# Some are only suitable for cross toolchains. 2950# Remove these if host=target. 2951cross_only="target-libgloss target-newlib target-opcodes" 2952 2953case $is_cross_compiler in 2954 no) skipdirs="${skipdirs} ${cross_only}" ;; 2955esac 2956 2957# If both --with-headers and --with-libs are specified, default to 2958# --without-newlib. 2959if test x"${with_headers}" != x && test x"${with_headers}" != xno \ 2960 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 2961 if test x"${with_newlib}" = x ; then 2962 with_newlib=no 2963 fi 2964fi 2965 2966# Recognize --with-newlib/--without-newlib. 2967case ${with_newlib} in 2968 no) skipdirs="${skipdirs} target-newlib" ;; 2969 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 2970esac 2971 2972# Check whether --enable-as-accelerator-for was given. 2973if test "${enable_as_accelerator_for+set}" = set; then : 2974 enableval=$enable_as_accelerator_for; 2975fi 2976 2977 2978# Check whether --enable-offload-targets was given. 2979if test "${enable_offload_targets+set}" = set; then : 2980 enableval=$enable_offload_targets; 2981 if test x"$enable_offload_targets" = x; then 2982 as_fn_error $? "no offload targets specified" "$LINENO" 5 2983 fi 2984 2985else 2986 enable_offload_targets= 2987fi 2988 2989 2990# Handle --enable-gold, --enable-ld. 2991# --disable-gold [--enable-ld] 2992# Build only ld. Default option. 2993# --enable-gold [--enable-ld] 2994# Build both gold and ld. Install gold as "ld.gold", install ld 2995# as "ld.bfd" and "ld". 2996# --enable-gold=default [--enable-ld] 2997# Build both gold and ld. Install gold as "ld.gold" and "ld", 2998# install ld as "ld.bfd". 2999# --enable-gold[=default] --disable-ld 3000# Build only gold, which is then installed as both "ld.gold" and "ld". 3001# --enable-gold --enable-ld=default 3002# Build both gold (installed as "ld.gold") and ld (installed as "ld" 3003# and ld.bfd). 3004# In other words, ld is default 3005# --enable-gold=default --enable-ld=default 3006# Error. 3007 3008default_ld= 3009# Check whether --enable-gold was given. 3010if test "${enable_gold+set}" = set; then : 3011 enableval=$enable_gold; ENABLE_GOLD=$enableval 3012else 3013 ENABLE_GOLD=no 3014fi 3015 3016case "${ENABLE_GOLD}" in 3017 yes|default) 3018 # Check for ELF target. 3019 is_elf=no 3020 case "${target}" in 3021 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ 3022 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ 3023 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ 3024 | *-*-solaris2* | *-*-nto* | *-*-nacl*) 3025 case "${target}" in 3026 *-*-linux*aout* | *-*-linux*oldld*) 3027 ;; 3028 *) 3029 is_elf=yes 3030 ;; 3031 esac 3032 esac 3033 3034 if test "$is_elf" = "yes"; then 3035 # Check for target supported by gold. 3036 case "${target}" in 3037 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ 3038 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) 3039 configdirs="$configdirs gold" 3040 if test x${ENABLE_GOLD} = xdefault; then 3041 default_ld=gold 3042 fi 3043 ENABLE_GOLD=yes 3044 ;; 3045 esac 3046 fi 3047 ;; 3048 no) 3049 ;; 3050 *) 3051 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 3052 ;; 3053esac 3054 3055# Check whether --enable-ld was given. 3056if test "${enable_ld+set}" = set; then : 3057 enableval=$enable_ld; ENABLE_LD=$enableval 3058else 3059 ENABLE_LD=yes 3060fi 3061 3062 3063case "${ENABLE_LD}" in 3064 default) 3065 if test x${default_ld} != x; then 3066 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 3067 fi 3068 ;; 3069 yes) 3070 ;; 3071 no) 3072 if test x${ENABLE_GOLD} != xyes; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 3074$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} 3075 fi 3076 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` 3077 ;; 3078 *) 3079 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 3080 ;; 3081esac 3082 3083# PR gas/19109 3084# Decide the default method for compressing debug sections. 3085# Provide a configure time option to override our default. 3086# Check whether --enable-compressed_debug_sections was given. 3087if test "${enable_compressed_debug_sections+set}" = set; then : 3088 enableval=$enable_compressed_debug_sections; 3089 if test x"$enable_compressed_debug_sections" = xyes; then 3090 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 3091 fi 3092 3093else 3094 enable_compressed_debug_sections= 3095fi 3096 3097 3098# Configure extra directories which are host specific 3099 3100case "${host}" in 3101 *-cygwin*) 3102 configdirs="$configdirs libtermcap" ;; 3103esac 3104 3105# A target can indicate whether a language isn't supported for some reason. 3106# Only spaces may be used in this macro; not newlines or tabs. 3107unsupported_languages= 3108 3109# Remove more programs from consideration, based on the host or 3110# target this usually means that a port of the program doesn't 3111# exist yet. 3112 3113case "${host}" in 3114 i[3456789]86-*-msdosdjgpp*) 3115 noconfigdirs="$noconfigdirs tcl tk itcl" 3116 ;; 3117esac 3118 3119 3120# Check whether --enable-libquadmath was given. 3121if test "${enable_libquadmath+set}" = set; then : 3122 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval 3123else 3124 ENABLE_LIBQUADMATH=yes 3125fi 3126 3127if test "${ENABLE_LIBQUADMATH}" = "no" ; then 3128 noconfigdirs="$noconfigdirs target-libquadmath" 3129fi 3130 3131 3132# Check whether --enable-libquadmath-support was given. 3133if test "${enable_libquadmath_support+set}" = set; then : 3134 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 3135else 3136 ENABLE_LIBQUADMATH_SUPPORT=yes 3137fi 3138 3139enable_libquadmath_support= 3140if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then 3141 enable_libquadmath_support=no 3142fi 3143 3144 3145# Check whether --enable-libada was given. 3146if test "${enable_libada+set}" = set; then : 3147 enableval=$enable_libada; ENABLE_LIBADA=$enableval 3148else 3149 ENABLE_LIBADA=yes 3150fi 3151 3152if test "${ENABLE_LIBADA}" != "yes" ; then 3153 noconfigdirs="$noconfigdirs gnattools" 3154fi 3155 3156# Check whether --enable-libssp was given. 3157if test "${enable_libssp+set}" = set; then : 3158 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval 3159else 3160 ENABLE_LIBSSP=yes 3161fi 3162 3163 3164# Check whether --enable-libstdcxx was given. 3165if test "${enable_libstdcxx+set}" = set; then : 3166 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval 3167else 3168 ENABLE_LIBSTDCXX=default 3169fi 3170 3171if test "${ENABLE_LIBSTDCXX}" = "no" ; then 3172 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3173fi 3174 3175# If this is accelerator compiler and its target is intelmic we enable 3176# target liboffloadmic by default. If this is compiler with offloading 3177# for intelmic we enable host liboffloadmic by default. Otherwise 3178# liboffloadmic is disabled by default. 3179# Check whether --enable-liboffloadmic was given. 3180if test "${enable_liboffloadmic+set}" = set; then : 3181 enableval=$enable_liboffloadmic; case "$enableval" in 3182 no | host | target) 3183 enable_liboffloadmic=$enableval ;; 3184 *) 3185 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; 3186esac 3187else 3188 if test x"$enable_as_accelerator_for" != x; then 3189 case "${target}" in 3190 *-intelmic-* | *-intelmicemul-*) 3191 enable_liboffloadmic=target 3192 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" 3193 ;; 3194 *) 3195 enable_liboffloadmic=no 3196 ;; 3197 esac 3198else 3199 case "${enable_offload_targets}" in 3200 *-intelmic-* | *-intelmicemul-*) 3201 enable_liboffloadmic=host 3202 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" 3203 ;; 3204 *) 3205 enable_liboffloadmic=no 3206 ;; 3207 esac 3208fi 3209fi 3210 3211 3212 3213# Enable libgomp by default on hosted POSIX systems, and a few others. 3214if test x$enable_libgomp = x ; then 3215 case "${target}" in 3216 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 3217 ;; 3218 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) 3219 ;; 3220 *-*-solaris2* | *-*-hpux11*) 3221 ;; 3222 *-*-darwin* | *-*-aix*) 3223 ;; 3224 nvptx*-*-* | amdgcn*-*-*) 3225 ;; 3226 *) 3227 noconfigdirs="$noconfigdirs target-libgomp" 3228 ;; 3229 esac 3230fi 3231 3232# Disable libatomic on unsupported systems. 3233if test -d ${srcdir}/libatomic; then 3234 if test x$enable_libatomic = x; then 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 3236$as_echo_n "checking for libatomic support... " >&6; } 3237 if (srcdir=${srcdir}/libatomic; \ 3238 . ${srcdir}/configure.tgt; \ 3239 test -n "$UNSUPPORTED") 3240 then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242$as_echo "no" >&6; } 3243 noconfigdirs="$noconfigdirs target-libatomic" 3244 else 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3246$as_echo "yes" >&6; } 3247 fi 3248 fi 3249fi 3250 3251# Disable liboffloadmic on unsupported systems. 3252if test -d ${srcdir}/liboffloadmic; then 3253 if test x$enable_liboffloadmic != xno; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 3255$as_echo_n "checking for liboffloadmic support... " >&6; } 3256 if (srcdir=${srcdir}/liboffloadmic; \ 3257 . ${srcdir}/configure.tgt; \ 3258 test -n "$UNSUPPORTED") 3259 then 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262 noconfigdirs="$noconfigdirs target-liboffloadmic" 3263 else 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3265$as_echo "yes" >&6; } 3266 fi 3267 fi 3268fi 3269 3270# Disable libitm on unsupported systems. 3271if test -d ${srcdir}/libitm; then 3272 if test x$enable_libitm = x; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 3274$as_echo_n "checking for libitm support... " >&6; } 3275 if (srcdir=${srcdir}/libitm; \ 3276 . ${srcdir}/configure.tgt; \ 3277 test -n "$UNSUPPORTED") 3278 then 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3280$as_echo "no" >&6; } 3281 noconfigdirs="$noconfigdirs target-libitm" 3282 else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3284$as_echo "yes" >&6; } 3285 fi 3286 fi 3287fi 3288 3289# Disable libsanitizer on unsupported systems. 3290if test -d ${srcdir}/libsanitizer; then 3291 if test x$enable_libsanitizer = x; then 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 3293$as_echo_n "checking for libsanitizer support... " >&6; } 3294 if (srcdir=${srcdir}/libsanitizer; \ 3295 . ${srcdir}/configure.tgt; \ 3296 test -n "$UNSUPPORTED") 3297 then 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299$as_echo "no" >&6; } 3300 noconfigdirs="$noconfigdirs target-libsanitizer" 3301 else 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3303$as_echo "yes" >&6; } 3304 fi 3305 fi 3306fi 3307 3308# Disable libvtv on unsupported systems. 3309if test -d ${srcdir}/libvtv; then 3310 if test x$enable_libvtv = x; then 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 3312$as_echo_n "checking for libvtv support... " >&6; } 3313 if (srcdir=${srcdir}/libvtv; \ 3314 . ${srcdir}/configure.tgt; \ 3315 test "$VTV_SUPPORTED" != "yes") 3316 then 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318$as_echo "no" >&6; } 3319 noconfigdirs="$noconfigdirs target-libvtv" 3320 else 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3322$as_echo "yes" >&6; } 3323 fi 3324 fi 3325fi 3326 3327 3328# Disable libhsail-rt on unsupported systems. 3329if test -d ${srcdir}/libhsail-rt; then 3330 if test x$enable_libhsail_rt = x; then 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 3332$as_echo_n "checking for libhsail-rt support... " >&6; } 3333 if (srcdir=${srcdir}/libhsail-rt; \ 3334 . ${srcdir}/configure.tgt; \ 3335 test -n "$UNSUPPORTED") 3336 then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3338$as_echo "no" >&6; } 3339 unsupported_languages="$unsupported_languages brig" 3340 # This implicitly disables also target-libhsail-rt as it won't 3341 # get added to the build without BRIG FE. 3342 else 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3344$as_echo "yes" >&6; } 3345 fi 3346 fi 3347fi 3348 3349 3350# Disable libquadmath for some systems. 3351case "${target}" in 3352 avr-*-*) 3353 noconfigdirs="$noconfigdirs target-libquadmath" 3354 ;; 3355 # libquadmath is unused on AIX and libquadmath build process use of 3356 # LD_LIBRARY_PATH can break AIX bootstrap. 3357 powerpc-*-aix* | rs6000-*-aix*) 3358 noconfigdirs="$noconfigdirs target-libquadmath" 3359 ;; 3360esac 3361 3362# Disable libssp for some systems. 3363case "${target}" in 3364 avr-*-*) 3365 # No hosted I/O support. 3366 noconfigdirs="$noconfigdirs target-libssp" 3367 ;; 3368 bpf-*-*) 3369 noconfigdirs="$noconfigdirs target-libssp" 3370 ;; 3371 powerpc-*-aix* | rs6000-*-aix*) 3372 noconfigdirs="$noconfigdirs target-libssp" 3373 ;; 3374 pru-*-*) 3375 # No hosted I/O support. 3376 noconfigdirs="$noconfigdirs target-libssp" 3377 ;; 3378 rl78-*-*) 3379 # libssp uses a misaligned load to trigger a fault, but the RL78 3380 # doesn't fault for those - instead, it gives a build-time error 3381 # for explicit misaligned loads. 3382 noconfigdirs="$noconfigdirs target-libssp" 3383 ;; 3384 visium-*-*) 3385 # No hosted I/O support. 3386 noconfigdirs="$noconfigdirs target-libssp" 3387 ;; 3388esac 3389 3390# Disable libstdc++-v3 for some systems. 3391# Allow user to override this if they pass --enable-libstdc++-v3 3392if test "${ENABLE_LIBSTDCXX}" = "default" ; then 3393 case "${target}" in 3394 *-*-vxworks*) 3395 # VxWorks uses the Dinkumware C++ library. 3396 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3397 ;; 3398 amdgcn*-*-*) 3399 # Not ported/fails to build when using newlib. 3400 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3401 ;; 3402 arm*-wince-pe*) 3403 # the C++ libraries don't build on top of CE's C libraries 3404 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3405 ;; 3406 avr-*-*) 3407 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3408 ;; 3409 bpf-*-*) 3410 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3411 ;; 3412 ft32-*-*) 3413 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3414 ;; 3415 esac 3416fi 3417 3418# Disable C++ on systems where it is known to not work. 3419# For testing, you can override this with --enable-languages=c++. 3420case ,${enable_languages}, in 3421 *,c++,*) 3422 ;; 3423 *) 3424 case "${target}" in 3425 bpf-*-*) 3426 unsupported_languages="$unsupported_languages c++" 3427 ;; 3428 esac 3429 ;; 3430esac 3431 3432# Disable Objc on systems where it is known to not work. 3433# For testing, you can override this with --enable-languages=objc. 3434case ,${enable_languages}, in 3435 *,objc,*) 3436 ;; 3437 *) 3438 case "${target}" in 3439 bpf-*-*) 3440 unsupported_languages="$unsupported_languages objc" 3441 ;; 3442 esac 3443 ;; 3444esac 3445 3446# Disable D on systems where it is known to not work. 3447# For testing, you can override this with --enable-languages=d. 3448case ,${enable_languages}, in 3449 *,d,*) 3450 ;; 3451 *) 3452 case "${target}" in 3453 *-*-darwin*) 3454 unsupported_languages="$unsupported_languages d" 3455 ;; 3456 bpf-*-*) 3457 unsupported_languages="$unsupported_languages d" 3458 ;; 3459 esac 3460 ;; 3461esac 3462 3463# Disable libphobos on unsupported systems. 3464# For testing, you can override this with --enable-libphobos. 3465if test -d ${srcdir}/libphobos; then 3466 if test x$enable_libphobos = x; then 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 3468$as_echo_n "checking for libphobos support... " >&6; } 3469 if (srcdir=${srcdir}/libphobos; \ 3470 . ${srcdir}/configure.tgt; \ 3471 test "$LIBPHOBOS_SUPPORTED" != "yes") 3472 then 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3474$as_echo "no" >&6; } 3475 noconfigdirs="$noconfigdirs target-libphobos" 3476 else 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3478$as_echo "yes" >&6; } 3479 fi 3480 fi 3481fi 3482 3483# Disable Fortran for some systems. 3484case "${target}" in 3485 mmix-*-*) 3486 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. 3487 unsupported_languages="$unsupported_languages fortran" 3488 ;; 3489 bpf-*-*) 3490 unsupported_languages="$unsupported_languages fortran" 3491 ;; 3492esac 3493 3494# Disable libffi for some systems. 3495case "${target}" in 3496 powerpc-*-darwin*) 3497 ;; 3498 i[3456789]86-*-darwin*) 3499 ;; 3500 x86_64-*-darwin[912]*) 3501 ;; 3502 *-*-darwin*) 3503 noconfigdirs="$noconfigdirs target-libffi" 3504 ;; 3505 *-*-netware*) 3506 noconfigdirs="$noconfigdirs target-libffi" 3507 ;; 3508 *-*-phoenix*) 3509 noconfigdirs="$noconfigdirs target-libffi" 3510 ;; 3511 *-*-rtems*) 3512 noconfigdirs="$noconfigdirs target-libffi" 3513 ;; 3514 *-*-tpf*) 3515 noconfigdirs="$noconfigdirs target-libffi" 3516 ;; 3517 *-*-uclinux*) 3518 noconfigdirs="$noconfigdirs target-libffi" 3519 ;; 3520 *-*-vxworks*) 3521 noconfigdirs="$noconfigdirs target-libffi" 3522 ;; 3523 aarch64*-*-freebsd*) 3524 noconfigdirs="$noconfigdirs target-libffi" 3525 ;; 3526 alpha*-*-*vms*) 3527 noconfigdirs="$noconfigdirs target-libffi" 3528 ;; 3529 arm*-*-freebsd*) 3530 noconfigdirs="$noconfigdirs target-libffi" 3531 ;; 3532 arm-wince-pe) 3533 noconfigdirs="$noconfigdirs target-libffi" 3534 ;; 3535 arm*-*-symbianelf*) 3536 noconfigdirs="$noconfigdirs target-libffi" 3537 ;; 3538 bpf-*-*) 3539 noconfigdirs="$noconfigdirs target-libffi" 3540 ;; 3541 cris-*-* | crisv32-*-*) 3542 case "${target}" in 3543 *-*-linux*) 3544 ;; 3545 *) # See PR46792 regarding target-libffi. 3546 noconfigdirs="$noconfigdirs target-libffi";; 3547 esac 3548 ;; 3549 hppa*64*-*-hpux*) 3550 noconfigdirs="$noconfigdirs target-libffi" 3551 ;; 3552 hppa*-hp-hpux11*) 3553 ;; 3554 hppa*-*-hpux*) 3555 noconfigdirs="$noconfigdirs target-libffi" 3556 ;; 3557 ia64*-*-*vms*) 3558 noconfigdirs="$noconfigdirs target-libffi" 3559 ;; 3560 i[3456789]86-w64-mingw*) 3561 noconfigdirs="$noconfigdirs target-libffi" 3562 ;; 3563 i[3456789]86-*-mingw*) 3564 noconfigdirs="$noconfigdirs target-libffi" 3565 ;; 3566 x86_64-*-mingw*) 3567 noconfigdirs="$noconfigdirs target-libffi" 3568 ;; 3569 mmix-*-*) 3570 noconfigdirs="$noconfigdirs target-libffi" 3571 ;; 3572 powerpc-*-aix*) 3573 ;; 3574 rs6000-*-aix*) 3575 ;; 3576 ft32-*-*) 3577 noconfigdirs="$noconfigdirs target-libffi" 3578 ;; 3579 *-*-lynxos*) 3580 noconfigdirs="$noconfigdirs target-libffi" 3581 ;; 3582esac 3583 3584# Disable the go frontend on systems where it is known to not work. Please keep 3585# this in sync with contrib/config-list.mk. 3586case "${target}" in 3587*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) 3588 unsupported_languages="$unsupported_languages go" 3589 ;; 3590esac 3591 3592# Only allow gdbserver on some systems. 3593if test -d ${srcdir}/gdbserver; then 3594 if test x$enable_gdbserver = x; then 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 3596$as_echo_n "checking for gdbserver support... " >&6; } 3597 if (srcdir=${srcdir}/gdbserver; \ 3598 . ${srcdir}/configure.srv; \ 3599 test -n "$UNSUPPORTED") 3600 then 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3602$as_echo "no" >&6; } 3603 noconfigdirs="$noconfigdirs gdbserver" 3604 else 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3606$as_echo "yes" >&6; } 3607 fi 3608 fi 3609fi 3610 3611# Disable libgo for some systems where it is known to not work. 3612# For testing, you can easily override this with --enable-libgo. 3613if test x$enable_libgo = x; then 3614 case "${target}" in 3615 *-*-darwin*) 3616 # PR 46986 3617 noconfigdirs="$noconfigdirs target-libgo" 3618 ;; 3619 *-*-cygwin* | *-*-mingw*) 3620 noconfigdirs="$noconfigdirs target-libgo" 3621 ;; 3622 bpf-*-*) 3623 noconfigdirs="$noconfigdirs target-libgo" 3624 ;; 3625 esac 3626fi 3627 3628# Default libgloss CPU subdirectory. 3629libgloss_dir="$target_cpu" 3630 3631case "${target}" in 3632 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 3633 libgloss_dir=wince 3634 ;; 3635 aarch64*-*-* ) 3636 libgloss_dir=aarch64 3637 ;; 3638 arm*-*-*) 3639 libgloss_dir=arm 3640 ;; 3641 cris-*-* | crisv32-*-*) 3642 libgloss_dir=cris 3643 ;; 3644 hppa*-*-*) 3645 libgloss_dir=pa 3646 ;; 3647 i[3456789]86-*-*) 3648 libgloss_dir=i386 3649 ;; 3650 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) 3651 libgloss_dir=m68hc11 3652 ;; 3653 m68*-*-* | fido-*-*) 3654 libgloss_dir=m68k 3655 ;; 3656 mips*-*-*) 3657 libgloss_dir=mips 3658 ;; 3659 powerpc*-*-*) 3660 libgloss_dir=rs6000 3661 ;; 3662 pru-*-*) 3663 libgloss_dir=pru 3664 ;; 3665 sparc*-*-*) 3666 libgloss_dir=sparc 3667 ;; 3668esac 3669 3670# Disable newlib and libgloss for various target OSes. 3671case "${target}" in 3672 alpha*-dec-osf*) 3673 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3674 ;; 3675 i[3456789]86-*-linux*) 3676 # This section makes it possible to build newlib natively on linux. 3677 # If we are using a cross compiler then don't configure newlib. 3678 if test x${is_cross_compiler} != xno ; then 3679 noconfigdirs="$noconfigdirs target-newlib" 3680 fi 3681 noconfigdirs="$noconfigdirs target-libgloss" 3682 # If we are not using a cross compiler, do configure newlib. 3683 # Note however, that newlib will only be configured in this situation 3684 # if the --with-newlib option has been given, because otherwise 3685 # 'target-newlib' will appear in skipdirs. 3686 ;; 3687 i[3456789]86-*-rdos*) 3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3689 ;; 3690 sh*-*-pe|mips*-*-pe|arm-wince-pe) 3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3692 ;; 3693 sparc-*-sunos4*) 3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3695 ;; 3696 bpf-*-*) 3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3698 ;; 3699 *-*-aix*) 3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3701 ;; 3702 *-*-beos*) 3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3704 ;; 3705 *-*-chorusos) 3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3707 ;; 3708 *-*-dragonfly*) 3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3710 ;; 3711 *-*-freebsd*) 3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3713 ;; 3714 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3716 ;; 3717 *-*-lynxos*) 3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3719 ;; 3720 *-*-mingw*) 3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3722 ;; 3723 *-*-netbsd*) 3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3725 ;; 3726 *-*-netware*) 3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3728 ;; 3729 *-*-tpf*) 3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3731 ;; 3732 *-*-uclinux*) 3733 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3734 ;; 3735 *-*-vxworks*) 3736 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3737 ;; 3738esac 3739 3740case "${target}" in 3741 *-*-chorusos) 3742 ;; 3743 aarch64-*-darwin*) 3744 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3745 noconfigdirs="$noconfigdirs sim target-rda" 3746 ;; 3747 amdgcn*-*-*) 3748 ;; 3749 arm-*-darwin*) 3750 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3751 noconfigdirs="$noconfigdirs sim target-rda" 3752 ;; 3753 powerpc-*-darwin*) 3754 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3755 noconfigdirs="$noconfigdirs sim target-rda" 3756 ;; 3757 i[3456789]86-*-darwin*) 3758 noconfigdirs="$noconfigdirs ld gprof" 3759 noconfigdirs="$noconfigdirs sim target-rda" 3760 ;; 3761 x86_64-*-darwin[912]*) 3762 noconfigdirs="$noconfigdirs ld gas gprof" 3763 noconfigdirs="$noconfigdirs sim target-rda" 3764 ;; 3765 *-*-darwin*) 3766 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3767 noconfigdirs="$noconfigdirs sim target-rda" 3768 ;; 3769 *-*-dragonfly*) 3770 ;; 3771 *-*-freebsd*) 3772 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ 3773 && ! test -d ${srcdir}/gmp \ 3774 && test -f /usr/local/include/gmp.h; then 3775 with_gmp=/usr/local 3776 fi 3777 ;; 3778 *-*-kaos*) 3779 # Remove unsupported stuff on all kaOS configurations. 3780 noconfigdirs="$noconfigdirs target-libgloss" 3781 ;; 3782 *-*-netbsd*) 3783 ;; 3784 *-*-netware*) 3785 ;; 3786 *-*-phoenix*) 3787 noconfigdirs="$noconfigdirs target-libgloss" 3788 ;; 3789 *-*-rtems*) 3790 noconfigdirs="$noconfigdirs target-libgloss" 3791 ;; 3792 # The tpf target doesn't support gdb yet. 3793 *-*-tpf*) 3794 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" 3795 ;; 3796 *-*-uclinux*) 3797 noconfigdirs="$noconfigdirs target-rda" 3798 ;; 3799 *-*-vxworks*) 3800 ;; 3801 alpha*-dec-osf*) 3802 # ld works, but does not support shared libraries. 3803 # gas doesn't generate exception information. 3804 noconfigdirs="$noconfigdirs gas ld" 3805 ;; 3806 alpha*-*-*vms*) 3807 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 3808 ;; 3809 alpha*-*-*) 3810 # newlib is not 64 bit ready 3811 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3812 ;; 3813 bpf-*-*) 3814 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" 3815 ;; 3816 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 3817 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" 3818 ;; 3819 arc*-*-*) 3820 noconfigdirs="$noconfigdirs sim" 3821 ;; 3822 arm-*-pe*) 3823 noconfigdirs="$noconfigdirs target-libgloss" 3824 ;; 3825 arm-*-riscix*) 3826 noconfigdirs="$noconfigdirs ld target-libgloss" 3827 ;; 3828 avr-*-*) 3829 if test x${with_avrlibc} != xno; then 3830 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3831 fi 3832 ;; 3833 c4x-*-* | tic4x-*-*) 3834 noconfigdirs="$noconfigdirs target-libgloss" 3835 ;; 3836 tic54x-*-*) 3837 noconfigdirs="$noconfigdirs target-libgloss gdb" 3838 ;; 3839 d10v-*-*) 3840 noconfigdirs="$noconfigdirs target-libgloss" 3841 ;; 3842 d30v-*-*) 3843 noconfigdirs="$noconfigdirs gdb" 3844 ;; 3845 fr30-*-elf*) 3846 noconfigdirs="$noconfigdirs gdb" 3847 ;; 3848 ft32-*-*) 3849 noconfigdirs="$noconfigdirs target-rda gprof" 3850 ;; 3851 moxie-*-*) 3852 noconfigdirs="$noconfigdirs" 3853 ;; 3854 h8300*-*-*) 3855 noconfigdirs="$noconfigdirs target-libgloss" 3856 ;; 3857 h8500-*-*) 3858 noconfigdirs="$noconfigdirs target-libgloss" 3859 ;; 3860 hppa1.1-*-osf* | hppa1.1-*-bsd* ) 3861 ;; 3862 hppa*64*-*-hpux*) 3863 noconfigdirs="$noconfigdirs gdb" 3864 ;; 3865 hppa*-*-hpux11*) 3866 noconfigdirs="$noconfigdirs gdb ld" 3867 ;; 3868 hppa*64*-*-linux*) 3869 ;; 3870 hppa*-*-linux*) 3871 ;; 3872 hppa*-*-*elf* | \ 3873 hppa*-*-lites* | \ 3874 hppa*-*-openbsd* | \ 3875 hppa*64*-*-*) 3876 ;; 3877 hppa*-*-pro*) 3878 ;; 3879 hppa*-*-*) 3880 noconfigdirs="$noconfigdirs ld" 3881 ;; 3882 i960-*-*) 3883 noconfigdirs="$noconfigdirs gdb" 3884 ;; 3885 ia64*-*-elf*) 3886 # No gdb support yet. 3887 noconfigdirs="$noconfigdirs readline libgui itcl gdb" 3888 ;; 3889 ia64*-**-hpux*) 3890 # No ld support yet. 3891 noconfigdirs="$noconfigdirs gdb libgui itcl ld" 3892 ;; 3893 ia64*-*-*vms*) 3894 # No ld support yet. 3895 noconfigdirs="$noconfigdirs libgui itcl ld" 3896 ;; 3897 i[3456789]86-w64-mingw*) 3898 ;; 3899 i[3456789]86-*-mingw*) 3900 target_configdirs="$target_configdirs target-winsup" 3901 ;; 3902 *-*-cygwin*) 3903 target_configdirs="$target_configdirs target-libtermcap target-winsup" 3904 noconfigdirs="$noconfigdirs target-libgloss" 3905 # always build newlib if winsup directory is present. 3906 if test -d "$srcdir/winsup/cygwin"; then 3907 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 3908 elif test -d "$srcdir/newlib"; then 3909 echo "Warning: winsup/cygwin is missing so newlib can't be built." 3910 fi 3911 ;; 3912 i[3456789]86-*-pe) 3913 noconfigdirs="$noconfigdirs target-libgloss" 3914 ;; 3915 i[3456789]86-*-sco3.2v5*) 3916 # The linker does not yet know about weak symbols in COFF, 3917 # and is not configured to handle mixed ELF and COFF. 3918 noconfigdirs="$noconfigdirs ld target-libgloss" 3919 ;; 3920 i[3456789]86-*-sco*) 3921 noconfigdirs="$noconfigdirs gprof target-libgloss" 3922 ;; 3923 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) 3924 noconfigdirs="$noconfigdirs target-libgloss" 3925 ;; 3926 i[3456789]86-*-sysv4*) 3927 noconfigdirs="$noconfigdirs target-libgloss" 3928 ;; 3929 i[3456789]86-*-beos*) 3930 noconfigdirs="$noconfigdirs gdb" 3931 ;; 3932 i[3456789]86-*-rdos*) 3933 noconfigdirs="$noconfigdirs gdb" 3934 ;; 3935 mmix-*-*) 3936 noconfigdirs="$noconfigdirs gdb" 3937 ;; 3938 mt-*-*) 3939 noconfigdirs="$noconfigdirs sim" 3940 ;; 3941 nfp-*-*) 3942 noconfigdirs="$noconfigdirs ld gas gdb gprof sim" 3943 noconfigdirs="$noconfigdirs $target_libraries" 3944 ;; 3945 pdp11-*-*) 3946 noconfigdirs="$noconfigdirs gdb gprof" 3947 ;; 3948 powerpc-*-aix*) 3949 # copied from rs6000-*-* entry 3950 noconfigdirs="$noconfigdirs gprof" 3951 ;; 3952 powerpc*-*-winnt* | powerpc*-*-pe*) 3953 target_configdirs="$target_configdirs target-winsup" 3954 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" 3955 # always build newlib. 3956 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 3957 ;; 3958 # This is temporary until we can link against shared libraries 3959 powerpcle-*-solaris*) 3960 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" 3961 ;; 3962 powerpc-*-beos*) 3963 noconfigdirs="$noconfigdirs gdb" 3964 ;; 3965 rs6000-*-lynxos*) 3966 noconfigdirs="$noconfigdirs gprof" 3967 ;; 3968 rs6000-*-aix*) 3969 noconfigdirs="$noconfigdirs gprof" 3970 ;; 3971 rs6000-*-*) 3972 noconfigdirs="$noconfigdirs gprof" 3973 ;; 3974 m68k-apollo-*) 3975 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" 3976 ;; 3977 microblaze*) 3978 noconfigdirs="$noconfigdirs gprof" 3979 ;; 3980 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 3981 if test x$with_newlib = xyes; then 3982 noconfigdirs="$noconfigdirs gprof" 3983 fi 3984 ;; 3985 mips*-*-irix5*) 3986 noconfigdirs="$noconfigdirs gprof target-libgloss" 3987 ;; 3988 mips*-*-irix6*) 3989 noconfigdirs="$noconfigdirs gprof target-libgloss" 3990 ;; 3991 mips*-*-bsd*) 3992 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" 3993 ;; 3994 mips*-*-linux*) 3995 ;; 3996 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ 3997 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) 3998 noconfigdirs="$noconfigdirs ld gas gprof" 3999 ;; 4000 mips*-*-*) 4001 noconfigdirs="$noconfigdirs gprof" 4002 ;; 4003 nvptx*-*-*) 4004 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" 4005 ;; 4006 sh-*-*) 4007 case "${target}" in 4008 sh*-*-elf) 4009 ;; 4010 *) 4011 noconfigdirs="$noconfigdirs target-libgloss" ;; 4012 esac 4013 ;; 4014 sparc-*-sunos4*) 4015 if test x${is_cross_compiler} = xno ; then 4016 use_gnu_ld=no 4017 fi 4018 ;; 4019 tic6x-*-*) 4020 noconfigdirs="$noconfigdirs sim" 4021 ;; 4022 tilepro*-*-* | tilegx*-*-*) 4023 noconfigdirs="$noconfigdirs sim" 4024 ;; 4025 v810-*-*) 4026 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" 4027 ;; 4028 vax-*-*) 4029 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 4030 ;; 4031 wasm32-*-*) 4032 noconfigdirs="$noconfigdirs ld" 4033 ;; 4034esac 4035 4036# If we aren't building newlib, then don't build libgloss, since libgloss 4037# depends upon some newlib header files. 4038case "${noconfigdirs}" in 4039 *target-libgloss*) ;; 4040 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; 4041esac 4042 4043# Work in distributions that contain no compiler tools, like Autoconf. 4044host_makefile_frag=/dev/null 4045if test -d ${srcdir}/config ; then 4046case "${host}" in 4047 i[3456789]86-*-msdosdjgpp*) 4048 host_makefile_frag="config/mh-djgpp" 4049 ;; 4050 *-cygwin*) 4051 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 4053$as_echo_n "checking to see if cat works as expected... " >&6; } 4054echo a >cygwin-cat-check 4055if test `cat cygwin-cat-check` = a ; then 4056 rm cygwin-cat-check 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4058$as_echo "yes" >&6; } 4059else 4060 rm cygwin-cat-check 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4062$as_echo "no" >&6; } 4063 as_fn_error $? "The cat command does not ignore carriage return characters. 4064 Please either mount the build directory in binary mode or run the following 4065 commands before running any configure script: 4066set -o igncr 4067export SHELLOPTS 4068 " "$LINENO" 5 4069fi 4070 4071 host_makefile_frag="config/mh-cygwin" 4072 ;; 4073 *-mingw*) 4074 host_makefile_frag="config/mh-mingw" 4075 ;; 4076 alpha*-linux*) 4077 host_makefile_frag="config/mh-alpha-linux" 4078 ;; 4079 hppa*-hp-hpux10*) 4080 host_makefile_frag="config/mh-pa-hpux10" 4081 ;; 4082 hppa*-hp-hpux*) 4083 host_makefile_frag="config/mh-pa" 4084 ;; 4085 hppa*-*) 4086 host_makefile_frag="config/mh-pa" 4087 ;; 4088 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) 4089 host_makefile_frag="config/mh-darwin" 4090 ;; 4091 powerpc-*-aix*) 4092 host_makefile_frag="config/mh-ppc-aix" 4093 ;; 4094 rs6000-*-aix*) 4095 host_makefile_frag="config/mh-ppc-aix" 4096 ;; 4097esac 4098fi 4099 4100if test "${build}" != "${host}" ; then 4101 AR_FOR_BUILD=${AR_FOR_BUILD-ar} 4102 AS_FOR_BUILD=${AS_FOR_BUILD-as} 4103 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} 4104 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} 4105 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} 4106 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} 4107 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} 4108 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} 4109 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} 4110 LD_FOR_BUILD=${LD_FOR_BUILD-ld} 4111 NM_FOR_BUILD=${NM_FOR_BUILD-nm} 4112 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} 4113 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} 4114 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} 4115else 4116 AR_FOR_BUILD="\$(AR)" 4117 AS_FOR_BUILD="\$(AS)" 4118 CC_FOR_BUILD="\$(CC)" 4119 CXX_FOR_BUILD="\$(CXX)" 4120 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" 4121 GFORTRAN_FOR_BUILD="\$(GFORTRAN)" 4122 GOC_FOR_BUILD="\$(GOC)" 4123 GDC_FOR_BUILD="\$(GDC)" 4124 DLLTOOL_FOR_BUILD="\$(DLLTOOL)" 4125 LD_FOR_BUILD="\$(LD)" 4126 NM_FOR_BUILD="\$(NM)" 4127 RANLIB_FOR_BUILD="\$(RANLIB)" 4128 WINDRES_FOR_BUILD="\$(WINDRES)" 4129 WINDMC_FOR_BUILD="\$(WINDMC)" 4130fi 4131 4132ac_ext=c 4133ac_cpp='$CPP $CPPFLAGS' 4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4136ac_compiler_gnu=$ac_cv_c_compiler_gnu 4137if test -n "$ac_tool_prefix"; then 4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4139set dummy ${ac_tool_prefix}gcc; ac_word=$2 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4141$as_echo_n "checking for $ac_word... " >&6; } 4142if ${ac_cv_prog_CC+:} false; then : 4143 $as_echo_n "(cached) " >&6 4144else 4145 if test -n "$CC"; then 4146 ac_cv_prog_CC="$CC" # Let the user override the test. 4147else 4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4149for as_dir in $PATH 4150do 4151 IFS=$as_save_IFS 4152 test -z "$as_dir" && as_dir=. 4153 for ac_exec_ext in '' $ac_executable_extensions; do 4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4155 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4157 break 2 4158 fi 4159done 4160 done 4161IFS=$as_save_IFS 4162 4163fi 4164fi 4165CC=$ac_cv_prog_CC 4166if test -n "$CC"; then 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4168$as_echo "$CC" >&6; } 4169else 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4171$as_echo "no" >&6; } 4172fi 4173 4174 4175fi 4176if test -z "$ac_cv_prog_CC"; then 4177 ac_ct_CC=$CC 4178 # Extract the first word of "gcc", so it can be a program name with args. 4179set dummy gcc; ac_word=$2 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4181$as_echo_n "checking for $ac_word... " >&6; } 4182if ${ac_cv_prog_ac_ct_CC+:} false; then : 4183 $as_echo_n "(cached) " >&6 4184else 4185 if test -n "$ac_ct_CC"; then 4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4187else 4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH 4190do 4191 IFS=$as_save_IFS 4192 test -z "$as_dir" && as_dir=. 4193 for ac_exec_ext in '' $ac_executable_extensions; do 4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4195 ac_cv_prog_ac_ct_CC="gcc" 4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4197 break 2 4198 fi 4199done 4200 done 4201IFS=$as_save_IFS 4202 4203fi 4204fi 4205ac_ct_CC=$ac_cv_prog_ac_ct_CC 4206if test -n "$ac_ct_CC"; then 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4208$as_echo "$ac_ct_CC" >&6; } 4209else 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4211$as_echo "no" >&6; } 4212fi 4213 4214 if test "x$ac_ct_CC" = x; then 4215 CC="" 4216 else 4217 case $cross_compiling:$ac_tool_warned in 4218yes:) 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4221ac_tool_warned=yes ;; 4222esac 4223 CC=$ac_ct_CC 4224 fi 4225else 4226 CC="$ac_cv_prog_CC" 4227fi 4228 4229if test -z "$CC"; then 4230 if test -n "$ac_tool_prefix"; then 4231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4232set dummy ${ac_tool_prefix}cc; ac_word=$2 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4234$as_echo_n "checking for $ac_word... " >&6; } 4235if ${ac_cv_prog_CC+:} false; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 if test -n "$CC"; then 4239 ac_cv_prog_CC="$CC" # Let the user override the test. 4240else 4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4242for as_dir in $PATH 4243do 4244 IFS=$as_save_IFS 4245 test -z "$as_dir" && as_dir=. 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4248 ac_cv_prog_CC="${ac_tool_prefix}cc" 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4250 break 2 4251 fi 4252done 4253 done 4254IFS=$as_save_IFS 4255 4256fi 4257fi 4258CC=$ac_cv_prog_CC 4259if test -n "$CC"; then 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4261$as_echo "$CC" >&6; } 4262else 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4264$as_echo "no" >&6; } 4265fi 4266 4267 4268 fi 4269fi 4270if test -z "$CC"; then 4271 # Extract the first word of "cc", so it can be a program name with args. 4272set dummy cc; ac_word=$2 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4274$as_echo_n "checking for $ac_word... " >&6; } 4275if ${ac_cv_prog_CC+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 if test -n "$CC"; then 4279 ac_cv_prog_CC="$CC" # Let the user override the test. 4280else 4281 ac_prog_rejected=no 4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4283for as_dir in $PATH 4284do 4285 IFS=$as_save_IFS 4286 test -z "$as_dir" && as_dir=. 4287 for ac_exec_ext in '' $ac_executable_extensions; do 4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4290 ac_prog_rejected=yes 4291 continue 4292 fi 4293 ac_cv_prog_CC="cc" 4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4295 break 2 4296 fi 4297done 4298 done 4299IFS=$as_save_IFS 4300 4301if test $ac_prog_rejected = yes; then 4302 # We found a bogon in the path, so make sure we never use it. 4303 set dummy $ac_cv_prog_CC 4304 shift 4305 if test $# != 0; then 4306 # We chose a different compiler from the bogus one. 4307 # However, it has the same basename, so the bogon will be chosen 4308 # first if we set CC to just the basename; use the full file name. 4309 shift 4310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4311 fi 4312fi 4313fi 4314fi 4315CC=$ac_cv_prog_CC 4316if test -n "$CC"; then 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4318$as_echo "$CC" >&6; } 4319else 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4321$as_echo "no" >&6; } 4322fi 4323 4324 4325fi 4326if test -z "$CC"; then 4327 if test -n "$ac_tool_prefix"; then 4328 for ac_prog in cl.exe 4329 do 4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4331set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4333$as_echo_n "checking for $ac_word... " >&6; } 4334if ${ac_cv_prog_CC+:} false; then : 4335 $as_echo_n "(cached) " >&6 4336else 4337 if test -n "$CC"; then 4338 ac_cv_prog_CC="$CC" # Let the user override the test. 4339else 4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH 4342do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_exec_ext in '' $ac_executable_extensions; do 4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4349 break 2 4350 fi 4351done 4352 done 4353IFS=$as_save_IFS 4354 4355fi 4356fi 4357CC=$ac_cv_prog_CC 4358if test -n "$CC"; then 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4360$as_echo "$CC" >&6; } 4361else 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4363$as_echo "no" >&6; } 4364fi 4365 4366 4367 test -n "$CC" && break 4368 done 4369fi 4370if test -z "$CC"; then 4371 ac_ct_CC=$CC 4372 for ac_prog in cl.exe 4373do 4374 # Extract the first word of "$ac_prog", so it can be a program name with args. 4375set dummy $ac_prog; ac_word=$2 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4377$as_echo_n "checking for $ac_word... " >&6; } 4378if ${ac_cv_prog_ac_ct_CC+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 if test -n "$ac_ct_CC"; then 4382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4383else 4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385for as_dir in $PATH 4386do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4391 ac_cv_prog_ac_ct_CC="$ac_prog" 4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4393 break 2 4394 fi 4395done 4396 done 4397IFS=$as_save_IFS 4398 4399fi 4400fi 4401ac_ct_CC=$ac_cv_prog_ac_ct_CC 4402if test -n "$ac_ct_CC"; then 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4404$as_echo "$ac_ct_CC" >&6; } 4405else 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4407$as_echo "no" >&6; } 4408fi 4409 4410 4411 test -n "$ac_ct_CC" && break 4412done 4413 4414 if test "x$ac_ct_CC" = x; then 4415 CC="" 4416 else 4417 case $cross_compiling:$ac_tool_warned in 4418yes:) 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4421ac_tool_warned=yes ;; 4422esac 4423 CC=$ac_ct_CC 4424 fi 4425fi 4426 4427fi 4428 4429 4430test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4432as_fn_error $? "no acceptable C compiler found in \$PATH 4433See \`config.log' for more details" "$LINENO" 5; } 4434 4435# Provide some information about the compiler. 4436$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4437set X $ac_compile 4438ac_compiler=$2 4439for ac_option in --version -v -V -qversion; do 4440 { { ac_try="$ac_compiler $ac_option >&5" 4441case "(($ac_try" in 4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4443 *) ac_try_echo=$ac_try;; 4444esac 4445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4446$as_echo "$ac_try_echo"; } >&5 4447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4448 ac_status=$? 4449 if test -s conftest.err; then 4450 sed '10a\ 4451... rest of stderr output deleted ... 4452 10q' conftest.err >conftest.er1 4453 cat conftest.er1 >&5 4454 fi 4455 rm -f conftest.er1 conftest.err 4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4457 test $ac_status = 0; } 4458done 4459 4460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4461/* end confdefs.h. */ 4462 4463int 4464main () 4465{ 4466 4467 ; 4468 return 0; 4469} 4470_ACEOF 4471ac_clean_files_save=$ac_clean_files 4472ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4473# Try to create an executable without -o first, disregard a.out. 4474# It will help us diagnose broken compilers, and finding out an intuition 4475# of exeext. 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4477$as_echo_n "checking whether the C compiler works... " >&6; } 4478ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4479 4480# The possible output files: 4481ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4482 4483ac_rmfiles= 4484for ac_file in $ac_files 4485do 4486 case $ac_file in 4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4488 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4489 esac 4490done 4491rm -f $ac_rmfiles 4492 4493if { { ac_try="$ac_link_default" 4494case "(($ac_try" in 4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4496 *) ac_try_echo=$ac_try;; 4497esac 4498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4499$as_echo "$ac_try_echo"; } >&5 4500 (eval "$ac_link_default") 2>&5 4501 ac_status=$? 4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4503 test $ac_status = 0; }; then : 4504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4505# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4506# in a Makefile. We should not override ac_cv_exeext if it was cached, 4507# so that the user can short-circuit this test for compilers unknown to 4508# Autoconf. 4509for ac_file in $ac_files '' 4510do 4511 test -f "$ac_file" || continue 4512 case $ac_file in 4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4514 ;; 4515 [ab].out ) 4516 # We found the default executable, but exeext='' is most 4517 # certainly right. 4518 break;; 4519 *.* ) 4520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4521 then :; else 4522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4523 fi 4524 # We set ac_cv_exeext here because the later test for it is not 4525 # safe: cross compilers may not add the suffix if given an `-o' 4526 # argument, so we may need to know it at that point already. 4527 # Even if this section looks crufty: it has the advantage of 4528 # actually working. 4529 break;; 4530 * ) 4531 break;; 4532 esac 4533done 4534test "$ac_cv_exeext" = no && ac_cv_exeext= 4535 4536else 4537 ac_file='' 4538fi 4539if test -z "$ac_file"; then : 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541$as_echo "no" >&6; } 4542$as_echo "$as_me: failed program was:" >&5 4543sed 's/^/| /' conftest.$ac_ext >&5 4544 4545{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4547as_fn_error 77 "C compiler cannot create executables 4548See \`config.log' for more details" "$LINENO" 5; } 4549else 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4551$as_echo "yes" >&6; } 4552fi 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4554$as_echo_n "checking for C compiler default output file name... " >&6; } 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4556$as_echo "$ac_file" >&6; } 4557ac_exeext=$ac_cv_exeext 4558 4559rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4560ac_clean_files=$ac_clean_files_save 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4562$as_echo_n "checking for suffix of executables... " >&6; } 4563if { { ac_try="$ac_link" 4564case "(($ac_try" in 4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4566 *) ac_try_echo=$ac_try;; 4567esac 4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4569$as_echo "$ac_try_echo"; } >&5 4570 (eval "$ac_link") 2>&5 4571 ac_status=$? 4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4573 test $ac_status = 0; }; then : 4574 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4575# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4576# work properly (i.e., refer to `conftest.exe'), while it won't with 4577# `rm'. 4578for ac_file in conftest.exe conftest conftest.*; do 4579 test -f "$ac_file" || continue 4580 case $ac_file in 4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4583 break;; 4584 * ) break;; 4585 esac 4586done 4587else 4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4590as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4591See \`config.log' for more details" "$LINENO" 5; } 4592fi 4593rm -f conftest conftest$ac_cv_exeext 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4595$as_echo "$ac_cv_exeext" >&6; } 4596 4597rm -f conftest.$ac_ext 4598EXEEXT=$ac_cv_exeext 4599ac_exeext=$EXEEXT 4600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4601/* end confdefs.h. */ 4602#include <stdio.h> 4603int 4604main () 4605{ 4606FILE *f = fopen ("conftest.out", "w"); 4607 return ferror (f) || fclose (f) != 0; 4608 4609 ; 4610 return 0; 4611} 4612_ACEOF 4613ac_clean_files="$ac_clean_files conftest.out" 4614# Check that the compiler produces executables we can run. If not, either 4615# the compiler is broken, or we cross compile. 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4617$as_echo_n "checking whether we are cross compiling... " >&6; } 4618if test "$cross_compiling" != yes; then 4619 { { ac_try="$ac_link" 4620case "(($ac_try" in 4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4622 *) ac_try_echo=$ac_try;; 4623esac 4624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4625$as_echo "$ac_try_echo"; } >&5 4626 (eval "$ac_link") 2>&5 4627 ac_status=$? 4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4629 test $ac_status = 0; } 4630 if { ac_try='./conftest$ac_cv_exeext' 4631 { { case "(($ac_try" in 4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4633 *) ac_try_echo=$ac_try;; 4634esac 4635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4636$as_echo "$ac_try_echo"; } >&5 4637 (eval "$ac_try") 2>&5 4638 ac_status=$? 4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4640 test $ac_status = 0; }; }; then 4641 cross_compiling=no 4642 else 4643 if test "$cross_compiling" = maybe; then 4644 cross_compiling=yes 4645 else 4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4648as_fn_error $? "cannot run C compiled programs. 4649If you meant to cross compile, use \`--host'. 4650See \`config.log' for more details" "$LINENO" 5; } 4651 fi 4652 fi 4653fi 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4655$as_echo "$cross_compiling" >&6; } 4656 4657rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4658ac_clean_files=$ac_clean_files_save 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4660$as_echo_n "checking for suffix of object files... " >&6; } 4661if ${ac_cv_objext+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666 4667int 4668main () 4669{ 4670 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675rm -f conftest.o conftest.obj 4676if { { ac_try="$ac_compile" 4677case "(($ac_try" in 4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4679 *) ac_try_echo=$ac_try;; 4680esac 4681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4682$as_echo "$ac_try_echo"; } >&5 4683 (eval "$ac_compile") 2>&5 4684 ac_status=$? 4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4686 test $ac_status = 0; }; then : 4687 for ac_file in conftest.o conftest.obj conftest.*; do 4688 test -f "$ac_file" || continue; 4689 case $ac_file in 4690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4692 break;; 4693 esac 4694done 4695else 4696 $as_echo "$as_me: failed program was:" >&5 4697sed 's/^/| /' conftest.$ac_ext >&5 4698 4699{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4701as_fn_error $? "cannot compute suffix of object files: cannot compile 4702See \`config.log' for more details" "$LINENO" 5; } 4703fi 4704rm -f conftest.$ac_cv_objext conftest.$ac_ext 4705fi 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4707$as_echo "$ac_cv_objext" >&6; } 4708OBJEXT=$ac_cv_objext 4709ac_objext=$OBJEXT 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4711$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4712if ${ac_cv_c_compiler_gnu+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716/* end confdefs.h. */ 4717 4718int 4719main () 4720{ 4721#ifndef __GNUC__ 4722 choke me 4723#endif 4724 4725 ; 4726 return 0; 4727} 4728_ACEOF 4729if ac_fn_c_try_compile "$LINENO"; then : 4730 ac_compiler_gnu=yes 4731else 4732 ac_compiler_gnu=no 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735ac_cv_c_compiler_gnu=$ac_compiler_gnu 4736 4737fi 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4739$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4740if test $ac_compiler_gnu = yes; then 4741 GCC=yes 4742else 4743 GCC= 4744fi 4745ac_test_CFLAGS=${CFLAGS+set} 4746ac_save_CFLAGS=$CFLAGS 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4748$as_echo_n "checking whether $CC accepts -g... " >&6; } 4749if ${ac_cv_prog_cc_g+:} false; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 ac_save_c_werror_flag=$ac_c_werror_flag 4753 ac_c_werror_flag=yes 4754 ac_cv_prog_cc_g=no 4755 CFLAGS="-g" 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758 4759int 4760main () 4761{ 4762 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767if ac_fn_c_try_compile "$LINENO"; then : 4768 ac_cv_prog_cc_g=yes 4769else 4770 CFLAGS="" 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772/* end confdefs.h. */ 4773 4774int 4775main () 4776{ 4777 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782if ac_fn_c_try_compile "$LINENO"; then : 4783 4784else 4785 ac_c_werror_flag=$ac_save_c_werror_flag 4786 CFLAGS="-g" 4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4788/* end confdefs.h. */ 4789 4790int 4791main () 4792{ 4793 4794 ; 4795 return 0; 4796} 4797_ACEOF 4798if ac_fn_c_try_compile "$LINENO"; then : 4799 ac_cv_prog_cc_g=yes 4800fi 4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4802fi 4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4804fi 4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4806 ac_c_werror_flag=$ac_save_c_werror_flag 4807fi 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4809$as_echo "$ac_cv_prog_cc_g" >&6; } 4810if test "$ac_test_CFLAGS" = set; then 4811 CFLAGS=$ac_save_CFLAGS 4812elif test $ac_cv_prog_cc_g = yes; then 4813 if test "$GCC" = yes; then 4814 CFLAGS="-g -O2" 4815 else 4816 CFLAGS="-g" 4817 fi 4818else 4819 if test "$GCC" = yes; then 4820 CFLAGS="-O2" 4821 else 4822 CFLAGS= 4823 fi 4824fi 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4827if ${ac_cv_prog_cc_c89+:} false; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 ac_cv_prog_cc_c89=no 4831ac_save_CC=$CC 4832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4833/* end confdefs.h. */ 4834#include <stdarg.h> 4835#include <stdio.h> 4836struct stat; 4837/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4838struct buf { int x; }; 4839FILE * (*rcsopen) (struct buf *, struct stat *, int); 4840static char *e (p, i) 4841 char **p; 4842 int i; 4843{ 4844 return p[i]; 4845} 4846static char *f (char * (*g) (char **, int), char **p, ...) 4847{ 4848 char *s; 4849 va_list v; 4850 va_start (v,p); 4851 s = g (p, va_arg (v,int)); 4852 va_end (v); 4853 return s; 4854} 4855 4856/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4857 function prototypes and stuff, but not '\xHH' hex character constants. 4858 These don't provoke an error unfortunately, instead are silently treated 4859 as 'x'. The following induces an error, until -std is added to get 4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4861 array size at least. It's necessary to write '\x00'==0 to get something 4862 that's true only with -std. */ 4863int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4864 4865/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4866 inside strings and character constants. */ 4867#define FOO(x) 'x' 4868int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4869 4870int test (int i, double x); 4871struct s1 {int (*f) (int a);}; 4872struct s2 {int (*f) (double a);}; 4873int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4874int argc; 4875char **argv; 4876int 4877main () 4878{ 4879return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4880 ; 4881 return 0; 4882} 4883_ACEOF 4884for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4886do 4887 CC="$ac_save_CC $ac_arg" 4888 if ac_fn_c_try_compile "$LINENO"; then : 4889 ac_cv_prog_cc_c89=$ac_arg 4890fi 4891rm -f core conftest.err conftest.$ac_objext 4892 test "x$ac_cv_prog_cc_c89" != "xno" && break 4893done 4894rm -f conftest.$ac_ext 4895CC=$ac_save_CC 4896 4897fi 4898# AC_CACHE_VAL 4899case "x$ac_cv_prog_cc_c89" in 4900 x) 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4902$as_echo "none needed" >&6; } ;; 4903 xno) 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4905$as_echo "unsupported" >&6; } ;; 4906 *) 4907 CC="$CC $ac_cv_prog_cc_c89" 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4909$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4910esac 4911if test "x$ac_cv_prog_cc_c89" != xno; then : 4912 4913fi 4914 4915ac_ext=c 4916ac_cpp='$CPP $CPPFLAGS' 4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4919ac_compiler_gnu=$ac_cv_c_compiler_gnu 4920 4921ac_ext=cpp 4922ac_cpp='$CXXCPP $CPPFLAGS' 4923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4926if test -z "$CXX"; then 4927 if test -n "$CCC"; then 4928 CXX=$CCC 4929 else 4930 if test -n "$ac_tool_prefix"; then 4931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4932 do 4933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4934set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4936$as_echo_n "checking for $ac_word... " >&6; } 4937if ${ac_cv_prog_CXX+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 if test -n "$CXX"; then 4941 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4942else 4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4944for as_dir in $PATH 4945do 4946 IFS=$as_save_IFS 4947 test -z "$as_dir" && as_dir=. 4948 for ac_exec_ext in '' $ac_executable_extensions; do 4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4952 break 2 4953 fi 4954done 4955 done 4956IFS=$as_save_IFS 4957 4958fi 4959fi 4960CXX=$ac_cv_prog_CXX 4961if test -n "$CXX"; then 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4963$as_echo "$CXX" >&6; } 4964else 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4966$as_echo "no" >&6; } 4967fi 4968 4969 4970 test -n "$CXX" && break 4971 done 4972fi 4973if test -z "$CXX"; then 4974 ac_ct_CXX=$CXX 4975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4976do 4977 # Extract the first word of "$ac_prog", so it can be a program name with args. 4978set dummy $ac_prog; ac_word=$2 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4980$as_echo_n "checking for $ac_word... " >&6; } 4981if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983else 4984 if test -n "$ac_ct_CXX"; then 4985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4986else 4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4988for as_dir in $PATH 4989do 4990 IFS=$as_save_IFS 4991 test -z "$as_dir" && as_dir=. 4992 for ac_exec_ext in '' $ac_executable_extensions; do 4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4994 ac_cv_prog_ac_ct_CXX="$ac_prog" 4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4996 break 2 4997 fi 4998done 4999 done 5000IFS=$as_save_IFS 5001 5002fi 5003fi 5004ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5005if test -n "$ac_ct_CXX"; then 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5007$as_echo "$ac_ct_CXX" >&6; } 5008else 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5010$as_echo "no" >&6; } 5011fi 5012 5013 5014 test -n "$ac_ct_CXX" && break 5015done 5016 5017 if test "x$ac_ct_CXX" = x; then 5018 CXX="g++" 5019 else 5020 case $cross_compiling:$ac_tool_warned in 5021yes:) 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5024ac_tool_warned=yes ;; 5025esac 5026 CXX=$ac_ct_CXX 5027 fi 5028fi 5029 5030 fi 5031fi 5032# Provide some information about the compiler. 5033$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5034set X $ac_compile 5035ac_compiler=$2 5036for ac_option in --version -v -V -qversion; do 5037 { { ac_try="$ac_compiler $ac_option >&5" 5038case "(($ac_try" in 5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5040 *) ac_try_echo=$ac_try;; 5041esac 5042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5043$as_echo "$ac_try_echo"; } >&5 5044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5045 ac_status=$? 5046 if test -s conftest.err; then 5047 sed '10a\ 5048... rest of stderr output deleted ... 5049 10q' conftest.err >conftest.er1 5050 cat conftest.er1 >&5 5051 fi 5052 rm -f conftest.er1 conftest.err 5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5054 test $ac_status = 0; } 5055done 5056 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5058$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5059if ${ac_cv_cxx_compiler_gnu+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5063/* end confdefs.h. */ 5064 5065int 5066main () 5067{ 5068#ifndef __GNUC__ 5069 choke me 5070#endif 5071 5072 ; 5073 return 0; 5074} 5075_ACEOF 5076if ac_fn_cxx_try_compile "$LINENO"; then : 5077 ac_compiler_gnu=yes 5078else 5079 ac_compiler_gnu=no 5080fi 5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5082ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5083 5084fi 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5086$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5087if test $ac_compiler_gnu = yes; then 5088 GXX=yes 5089else 5090 GXX= 5091fi 5092ac_test_CXXFLAGS=${CXXFLAGS+set} 5093ac_save_CXXFLAGS=$CXXFLAGS 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5095$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5096if ${ac_cv_prog_cxx_g+:} false; then : 5097 $as_echo_n "(cached) " >&6 5098else 5099 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5100 ac_cxx_werror_flag=yes 5101 ac_cv_prog_cxx_g=no 5102 CXXFLAGS="-g" 5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5104/* end confdefs.h. */ 5105 5106int 5107main () 5108{ 5109 5110 ; 5111 return 0; 5112} 5113_ACEOF 5114if ac_fn_cxx_try_compile "$LINENO"; then : 5115 ac_cv_prog_cxx_g=yes 5116else 5117 CXXFLAGS="" 5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5119/* end confdefs.h. */ 5120 5121int 5122main () 5123{ 5124 5125 ; 5126 return 0; 5127} 5128_ACEOF 5129if ac_fn_cxx_try_compile "$LINENO"; then : 5130 5131else 5132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5133 CXXFLAGS="-g" 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136 5137int 5138main () 5139{ 5140 5141 ; 5142 return 0; 5143} 5144_ACEOF 5145if ac_fn_cxx_try_compile "$LINENO"; then : 5146 ac_cv_prog_cxx_g=yes 5147fi 5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5149fi 5150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5151fi 5152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5154fi 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5156$as_echo "$ac_cv_prog_cxx_g" >&6; } 5157if test "$ac_test_CXXFLAGS" = set; then 5158 CXXFLAGS=$ac_save_CXXFLAGS 5159elif test $ac_cv_prog_cxx_g = yes; then 5160 if test "$GXX" = yes; then 5161 CXXFLAGS="-g -O2" 5162 else 5163 CXXFLAGS="-g" 5164 fi 5165else 5166 if test "$GXX" = yes; then 5167 CXXFLAGS="-O2" 5168 else 5169 CXXFLAGS= 5170 fi 5171fi 5172ac_ext=c 5173ac_cpp='$CPP $CPPFLAGS' 5174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5176ac_compiler_gnu=$ac_cv_c_compiler_gnu 5177 5178 5179# We must set the default linker to the linker used by gcc for the correct 5180# operation of libtool. If LD is not defined and we are using gcc, try to 5181# set the LD default to the ld used by gcc. 5182if test -z "$LD"; then 5183 if test "$GCC" = yes; then 5184 case $build in 5185 *-*-mingw*) 5186 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; 5187 *) 5188 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; 5189 esac 5190 case $gcc_prog_ld in 5191 # Accept absolute paths. 5192 [\\/]* | [A-Za-z]:[\\/]*) 5193 LD="$gcc_prog_ld" ;; 5194 esac 5195 fi 5196fi 5197 5198# Check whether -static-libstdc++ -static-libgcc is supported. 5199have_static_libs=no 5200if test "$GCC" = yes; then 5201 saved_LDFLAGS="$LDFLAGS" 5202 5203 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 5205$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } 5206 ac_ext=cpp 5207ac_cpp='$CXXCPP $CPPFLAGS' 5208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5211 5212 5213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5214/* end confdefs.h. */ 5215 5216#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 5217#error -static-libstdc++ not implemented 5218#endif 5219int main() {} 5220_ACEOF 5221if ac_fn_cxx_try_link "$LINENO"; then : 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5223$as_echo "yes" >&6; }; have_static_libs=yes 5224else 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5226$as_echo "no" >&6; } 5227fi 5228rm -f core conftest.err conftest.$ac_objext \ 5229 conftest$ac_exeext conftest.$ac_ext 5230 ac_ext=c 5231ac_cpp='$CPP $CPPFLAGS' 5232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5234ac_compiler_gnu=$ac_cv_c_compiler_gnu 5235 5236 5237 LDFLAGS="$saved_LDFLAGS" 5238fi 5239 5240 5241 5242 5243if test -n "$ac_tool_prefix"; then 5244 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 5245set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5247$as_echo_n "checking for $ac_word... " >&6; } 5248if ${ac_cv_prog_GNATBIND+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 if test -n "$GNATBIND"; then 5252 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 5253else 5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5255for as_dir in $PATH 5256do 5257 IFS=$as_save_IFS 5258 test -z "$as_dir" && as_dir=. 5259 for ac_exec_ext in '' $ac_executable_extensions; do 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5261 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5263 break 2 5264 fi 5265done 5266 done 5267IFS=$as_save_IFS 5268 5269fi 5270fi 5271GNATBIND=$ac_cv_prog_GNATBIND 5272if test -n "$GNATBIND"; then 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 5274$as_echo "$GNATBIND" >&6; } 5275else 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5277$as_echo "no" >&6; } 5278fi 5279 5280 5281fi 5282if test -z "$ac_cv_prog_GNATBIND"; then 5283 ac_ct_GNATBIND=$GNATBIND 5284 # Extract the first word of "gnatbind", so it can be a program name with args. 5285set dummy gnatbind; ac_word=$2 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5287$as_echo_n "checking for $ac_word... " >&6; } 5288if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 if test -n "$ac_ct_GNATBIND"; then 5292 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5301 ac_cv_prog_ac_ct_GNATBIND="gnatbind" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305done 5306 done 5307IFS=$as_save_IFS 5308 5309fi 5310fi 5311ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND 5312if test -n "$ac_ct_GNATBIND"; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 5314$as_echo "$ac_ct_GNATBIND" >&6; } 5315else 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5317$as_echo "no" >&6; } 5318fi 5319 5320 if test "x$ac_ct_GNATBIND" = x; then 5321 GNATBIND="no" 5322 else 5323 case $cross_compiling:$ac_tool_warned in 5324yes:) 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5327ac_tool_warned=yes ;; 5328esac 5329 GNATBIND=$ac_ct_GNATBIND 5330 fi 5331else 5332 GNATBIND="$ac_cv_prog_GNATBIND" 5333fi 5334 5335if test -n "$ac_tool_prefix"; then 5336 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. 5337set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5339$as_echo_n "checking for $ac_word... " >&6; } 5340if ${ac_cv_prog_GNATMAKE+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 if test -n "$GNATMAKE"; then 5344 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. 5345else 5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347for as_dir in $PATH 5348do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5353 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357done 5358 done 5359IFS=$as_save_IFS 5360 5361fi 5362fi 5363GNATMAKE=$ac_cv_prog_GNATMAKE 5364if test -n "$GNATMAKE"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 5366$as_echo "$GNATMAKE" >&6; } 5367else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369$as_echo "no" >&6; } 5370fi 5371 5372 5373fi 5374if test -z "$ac_cv_prog_GNATMAKE"; then 5375 ac_ct_GNATMAKE=$GNATMAKE 5376 # Extract the first word of "gnatmake", so it can be a program name with args. 5377set dummy gnatmake; ac_word=$2 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5379$as_echo_n "checking for $ac_word... " >&6; } 5380if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : 5381 $as_echo_n "(cached) " >&6 5382else 5383 if test -n "$ac_ct_GNATMAKE"; then 5384 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. 5385else 5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5393 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397done 5398 done 5399IFS=$as_save_IFS 5400 5401fi 5402fi 5403ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE 5404if test -n "$ac_ct_GNATMAKE"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 5406$as_echo "$ac_ct_GNATMAKE" >&6; } 5407else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409$as_echo "no" >&6; } 5410fi 5411 5412 if test "x$ac_ct_GNATMAKE" = x; then 5413 GNATMAKE="no" 5414 else 5415 case $cross_compiling:$ac_tool_warned in 5416yes:) 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5419ac_tool_warned=yes ;; 5420esac 5421 GNATMAKE=$ac_ct_GNATMAKE 5422 fi 5423else 5424 GNATMAKE="$ac_cv_prog_GNATMAKE" 5425fi 5426 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 5428$as_echo_n "checking whether compiler driver understands Ada... " >&6; } 5429if ${acx_cv_cc_gcc_supports_ada+:} false; then : 5430 $as_echo_n "(cached) " >&6 5431else 5432 cat >conftest.adb <<EOF 5433procedure conftest is begin null; end conftest; 5434EOF 5435acx_cv_cc_gcc_supports_ada=no 5436# There is a bug in old released versions of GCC which causes the 5437# driver to exit successfully when the appropriate language module 5438# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 5439# Therefore we must check for the error message as well as an 5440# unsuccessful exit. 5441# Other compilers, like HP Tru64 UNIX cc, exit successfully when 5442# given a .adb file, but produce no object file. So we must check 5443# if an object file was really produced to guard against this. 5444errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` 5445if test x"$errors" = x && test -f conftest.$ac_objext; then 5446 acx_cv_cc_gcc_supports_ada=yes 5447fi 5448rm -f conftest.* 5449fi 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 5451$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } 5452 5453if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 5454 have_gnat=yes 5455else 5456 have_gnat=no 5457fi 5458 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 5460$as_echo_n "checking how to compare bootstrapped objects... " >&6; } 5461if ${gcc_cv_prog_cmp_skip+:} false; then : 5462 $as_echo_n "(cached) " >&6 5463else 5464 echo abfoo >t1 5465 echo cdfoo >t2 5466 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' 5467 if cmp t1 t2 2 2 > /dev/null 2>&1; then 5468 if cmp t1 t2 1 1 > /dev/null 2>&1; then 5469 : 5470 else 5471 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' 5472 fi 5473 fi 5474 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 5475 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 5476 : 5477 else 5478 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' 5479 fi 5480 fi 5481 rm t1 t2 5482 5483fi 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 5485$as_echo "$gcc_cv_prog_cmp_skip" >&6; } 5486do_compare="$gcc_cv_prog_cmp_skip" 5487 5488 5489 5490# Check whether --enable-bootstrap was given. 5491if test "${enable_bootstrap+set}" = set; then : 5492 enableval=$enable_bootstrap; 5493else 5494 enable_bootstrap=default 5495fi 5496 5497 5498# Issue errors and warnings for invalid/strange bootstrap combinations. 5499if test -r $srcdir/gcc/configure; then 5500 have_compiler=yes 5501else 5502 have_compiler=no 5503fi 5504 5505case "$have_compiler:$host:$target:$enable_bootstrap" in 5506 *:*:*:no) ;; 5507 5508 # Default behavior. Enable bootstrap if we have a compiler 5509 # and we are in a native configuration. 5510 yes:$build:$build:default) 5511 enable_bootstrap=yes ;; 5512 5513 *:*:*:default) 5514 enable_bootstrap=no ;; 5515 5516 # We have a compiler and we are in a native configuration, bootstrap is ok 5517 yes:$build:$build:yes) 5518 ;; 5519 5520 # Other configurations, but we have a compiler. Assume the user knows 5521 # what he's doing. 5522 yes:*:*:yes) 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 5524$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} 5525 ;; 5526 5527 # No compiler: if they passed --enable-bootstrap explicitly, fail 5528 no:*:*:yes) 5529 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; 5530 5531 # Fail if wrong command line 5532 *) 5533 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 5534 ;; 5535esac 5536 5537# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a 5538# C++98 compiler can still start the bootstrap. 5539if test "$enable_bootstrap:$GXX" = "yes:yes"; then 5540 CXX="$CXX -std=gnu++98" 5541fi 5542 5543# Used for setting $lt_cv_objdir 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 5545$as_echo_n "checking for objdir... " >&6; } 5546if ${lt_cv_objdir+:} false; then : 5547 $as_echo_n "(cached) " >&6 5548else 5549 rm -f .libs 2>/dev/null 5550mkdir .libs 2>/dev/null 5551if test -d .libs; then 5552 lt_cv_objdir=.libs 5553else 5554 # MS-DOS does not allow filenames that begin with a dot. 5555 lt_cv_objdir=_libs 5556fi 5557rmdir .libs 2>/dev/null 5558fi 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 5560$as_echo "$lt_cv_objdir" >&6; } 5561objdir=$lt_cv_objdir 5562 5563 5564 5565 5566 5567cat >>confdefs.h <<_ACEOF 5568#define LT_OBJDIR "$lt_cv_objdir/" 5569_ACEOF 5570 5571 5572 5573# Check for GMP, MPFR and MPC 5574gmplibs="-lmpc -lmpfr -lgmp" 5575gmpinc= 5576have_gmp=no 5577 5578# Specify a location for mpc 5579# check for this first so it ends up on the link line before mpfr. 5580 5581# Check whether --with-mpc was given. 5582if test "${with_mpc+set}" = set; then : 5583 withval=$with_mpc; 5584fi 5585 5586 5587# Check whether --with-mpc-include was given. 5588if test "${with_mpc_include+set}" = set; then : 5589 withval=$with_mpc_include; 5590fi 5591 5592 5593# Check whether --with-mpc-lib was given. 5594if test "${with_mpc_lib+set}" = set; then : 5595 withval=$with_mpc_lib; 5596fi 5597 5598 5599if test "x$with_mpc" != x; then 5600 gmplibs="-L$with_mpc/lib $gmplibs" 5601 gmpinc="-I$with_mpc/include $gmpinc" 5602fi 5603if test "x$with_mpc_include" != x; then 5604 gmpinc="-I$with_mpc_include $gmpinc" 5605fi 5606if test "x$with_mpc_lib" != x; then 5607 gmplibs="-L$with_mpc_lib $gmplibs" 5608fi 5609if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then 5610 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" 5611 gmpinc='-I$$s/mpc/src '"$gmpinc" 5612 # Do not test the mpc version. Assume that it is sufficient, since 5613 # it is in the source tree, and the library has not been built yet 5614 # but it would be included on the link line in the version check below 5615 # hence making the test fail. 5616 have_gmp=yes 5617fi 5618 5619# Specify a location for mpfr 5620# check for this first so it ends up on the link line before gmp. 5621 5622# Check whether --with-mpfr-dir was given. 5623if test "${with_mpfr_dir+set}" = set; then : 5624 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. 5625Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 5626fi 5627 5628 5629 5630# Check whether --with-mpfr was given. 5631if test "${with_mpfr+set}" = set; then : 5632 withval=$with_mpfr; 5633fi 5634 5635 5636# Check whether --with-mpfr-include was given. 5637if test "${with_mpfr_include+set}" = set; then : 5638 withval=$with_mpfr_include; 5639fi 5640 5641 5642# Check whether --with-mpfr-lib was given. 5643if test "${with_mpfr_lib+set}" = set; then : 5644 withval=$with_mpfr_lib; 5645fi 5646 5647 5648if test "x$with_mpfr" != x; then 5649 gmplibs="-L$with_mpfr/lib $gmplibs" 5650 gmpinc="-I$with_mpfr/include $gmpinc" 5651fi 5652if test "x$with_mpfr_include" != x; then 5653 gmpinc="-I$with_mpfr_include $gmpinc" 5654fi 5655if test "x$with_mpfr_lib" != x; then 5656 gmplibs="-L$with_mpfr_lib $gmplibs" 5657fi 5658if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then 5659 # MPFR v3.1.0 moved the sources into a src sub-directory. 5660 if ! test -d ${srcdir}/mpfr/src; then 5661 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 5662 fi 5663 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" 5664 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" 5665 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" 5666 # Do not test the mpfr version. Assume that it is sufficient, since 5667 # it is in the source tree, and the library has not been built yet 5668 # but it would be included on the link line in the version check below 5669 # hence making the test fail. 5670 have_gmp=yes 5671fi 5672 5673# Specify a location for gmp 5674 5675# Check whether --with-gmp-dir was given. 5676if test "${with_gmp_dir+set}" = set; then : 5677 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. 5678Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 5679fi 5680 5681 5682 5683# Check whether --with-gmp was given. 5684if test "${with_gmp+set}" = set; then : 5685 withval=$with_gmp; 5686fi 5687 5688 5689# Check whether --with-gmp-include was given. 5690if test "${with_gmp_include+set}" = set; then : 5691 withval=$with_gmp_include; 5692fi 5693 5694 5695# Check whether --with-gmp-lib was given. 5696if test "${with_gmp_lib+set}" = set; then : 5697 withval=$with_gmp_lib; 5698fi 5699 5700 5701 5702if test "x$with_gmp" != x; then 5703 gmplibs="-L$with_gmp/lib $gmplibs" 5704 gmpinc="-I$with_gmp/include $gmpinc" 5705fi 5706if test "x$with_gmp_include" != x; then 5707 gmpinc="-I$with_gmp_include $gmpinc" 5708fi 5709if test "x$with_gmp_lib" != x; then 5710 gmplibs="-L$with_gmp_lib $gmplibs" 5711fi 5712if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then 5713 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" 5714 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" 5715 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 5716 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 5717 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' 5718 # Do not test the gmp version. Assume that it is sufficient, since 5719 # it is in the source tree, and the library has not been built yet 5720 # but it would be included on the link line in the version check below 5721 # hence making the test fail. 5722 have_gmp=yes 5723fi 5724 5725if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then 5726 have_gmp=yes 5727 saved_CFLAGS="$CFLAGS" 5728 CFLAGS="$CFLAGS $gmpinc" 5729 # Check for the recommended and required versions of GMP. 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 5731$as_echo_n "checking for the correct version of gmp.h... " >&6; } 5732 5733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5734/* end confdefs.h. */ 5735#include "gmp.h" 5736int 5737main () 5738{ 5739 5740 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 5741 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) 5742 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) 5743 choke me 5744 #endif 5745 5746 ; 5747 return 0; 5748} 5749_ACEOF 5750if ac_fn_c_try_compile "$LINENO"; then : 5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5752/* end confdefs.h. */ 5753#include <gmp.h> 5754int 5755main () 5756{ 5757 5758 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 5759 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) 5760 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) 5761 choke me 5762 #endif 5763 5764 ; 5765 return 0; 5766} 5767_ACEOF 5768if ac_fn_c_try_compile "$LINENO"; then : 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5770$as_echo "yes" >&6; } 5771else 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5773$as_echo "buggy but acceptable" >&6; } 5774fi 5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5776else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778$as_echo "no" >&6; }; have_gmp=no 5779fi 5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5781 5782 # If we have GMP, check the MPFR version. 5783 if test x"$have_gmp" = xyes; then 5784 # Check for the recommended and required versions of MPFR. 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 5786$as_echo_n "checking for the correct version of mpfr.h... " >&6; } 5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5788/* end confdefs.h. */ 5789#include <gmp.h> 5790 #include <mpfr.h> 5791int 5792main () 5793{ 5794 5795 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) 5796 choke me 5797 #endif 5798 5799 ; 5800 return 0; 5801} 5802_ACEOF 5803if ac_fn_c_try_compile "$LINENO"; then : 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805/* end confdefs.h. */ 5806#include <gmp.h> 5807 #include <mpfr.h> 5808int 5809main () 5810{ 5811 5812 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) 5813 choke me 5814 #endif 5815 5816 ; 5817 return 0; 5818} 5819_ACEOF 5820if ac_fn_c_try_compile "$LINENO"; then : 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5822$as_echo "yes" >&6; } 5823else 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5825$as_echo "buggy but acceptable" >&6; } 5826fi 5827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5828else 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5830$as_echo "no" >&6; }; have_gmp=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833 fi 5834 5835 # Check for the MPC header version. 5836 if test x"$have_gmp" = xyes ; then 5837 # Check for the recommended and required versions of MPC. 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 5839$as_echo_n "checking for the correct version of mpc.h... " >&6; } 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842#include <mpc.h> 5843int 5844main () 5845{ 5846 5847 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) 5848 choke me 5849 #endif 5850 5851 ; 5852 return 0; 5853} 5854_ACEOF 5855if ac_fn_c_try_compile "$LINENO"; then : 5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5857/* end confdefs.h. */ 5858#include <mpc.h> 5859int 5860main () 5861{ 5862 5863 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) 5864 choke me 5865 #endif 5866 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871if ac_fn_c_try_compile "$LINENO"; then : 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5873$as_echo "yes" >&6; } 5874else 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5876$as_echo "buggy but acceptable" >&6; } 5877fi 5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5879else 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5881$as_echo "no" >&6; }; have_gmp=no 5882fi 5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5884 fi 5885 5886 # Now check the MPFR library. 5887 if test x"$have_gmp" = xyes; then 5888 saved_LIBS="$LIBS" 5889 LIBS="$LIBS $gmplibs" 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 5891$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894#include <mpc.h> 5895int 5896main () 5897{ 5898 5899 mpfr_t n; 5900 mpfr_t x; 5901 mpc_t c; 5902 int t; 5903 mpfr_init (n); 5904 mpfr_init (x); 5905 mpfr_atan2 (n, n, x, MPFR_RNDN); 5906 mpfr_erfc (n, x, MPFR_RNDN); 5907 mpfr_subnormalize (x, t, MPFR_RNDN); 5908 mpfr_clear(n); 5909 mpfr_clear(x); 5910 mpc_init2 (c, 53); 5911 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); 5912 mpc_cosh (c, c, MPC_RNDNN); 5913 mpc_pow (c, c, c, MPC_RNDNN); 5914 mpc_acosh (c, c, MPC_RNDNN); 5915 mpc_clear (c); 5916 5917 ; 5918 return 0; 5919} 5920_ACEOF 5921if ac_fn_c_try_link "$LINENO"; then : 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5923$as_echo "yes" >&6; } 5924else 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5926$as_echo "no" >&6; }; have_gmp=no 5927fi 5928rm -f core conftest.err conftest.$ac_objext \ 5929 conftest$ac_exeext conftest.$ac_ext 5930 LIBS="$saved_LIBS" 5931 fi 5932 5933 CFLAGS="$saved_CFLAGS" 5934 5935# The library versions listed in the error message below should match 5936# the HARD-minimums enforced above. 5937 if test x$have_gmp != xyes; then 5938 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. 5939Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify 5940their locations. Source code for these libraries can be found at 5941their respective hosting sites as well as at 5942https://gcc.gnu.org/pub/gcc/infrastructure/. See also 5943http://gcc.gnu.org/install/prerequisites.html for additional info. If 5944you obtained GMP, MPFR and/or MPC from a vendor distribution package, 5945make sure that you have installed both the libraries and the header 5946files. They may be located in separate packages." "$LINENO" 5 5947 fi 5948fi 5949 5950# Flags needed for both GMP, MPFR and/or MPC. 5951 5952 5953 5954 5955 5956 5957 5958# Libraries to use for stage1 or when not bootstrapping. 5959 5960# Check whether --with-stage1-libs was given. 5961if test "${with_stage1_libs+set}" = set; then : 5962 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then 5963 stage1_libs= 5964 else 5965 stage1_libs=$withval 5966 fi 5967else 5968 stage1_libs= 5969fi 5970 5971 5972 5973# Whether or not to use -static-libstdc++ and -static-libgcc. The 5974# default is yes if gcc is being built; no otherwise. The reason for 5975# this default is that gdb is sometimes linked against GNU Source 5976# Highlight, which is a shared library that uses C++ exceptions. In 5977# this case, -static-libstdc++ will cause crashes. 5978 5979# Check whether --with-static-standard-libraries was given. 5980if test "${with_static_standard_libraries+set}" = set; then : 5981 withval=$with_static_standard_libraries; 5982else 5983 with_static_standard_libraries=auto 5984fi 5985 5986if test "$with_static_standard_libraries" = auto; then 5987 with_static_standard_libraries=$have_compiler 5988fi 5989 5990# Linker flags to use for stage1 or when not bootstrapping. 5991 5992# Check whether --with-stage1-ldflags was given. 5993if test "${with_stage1_ldflags+set}" = set; then : 5994 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then 5995 stage1_ldflags= 5996 else 5997 stage1_ldflags=$withval 5998 fi 5999else 6000 stage1_ldflags= 6001 # In stage 1, default to linking libstdc++ and libgcc statically with GCC 6002 # if supported. But if the user explicitly specified the libraries to use, 6003 # trust that they are doing what they want. 6004 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ 6005 -a "$have_static_libs" = yes; then 6006 stage1_ldflags="-static-libstdc++ -static-libgcc" 6007 fi 6008fi 6009 6010 6011 6012# Libraries to use for stage2 and later builds. 6013 6014# Check whether --with-boot-libs was given. 6015if test "${with_boot_libs+set}" = set; then : 6016 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then 6017 poststage1_libs= 6018 else 6019 poststage1_libs=$withval 6020 fi 6021else 6022 poststage1_libs= 6023fi 6024 6025 6026 6027# Linker flags to use for stage2 and later builds. 6028 6029# Check whether --with-boot-ldflags was given. 6030if test "${with_boot_ldflags+set}" = set; then : 6031 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then 6032 poststage1_ldflags= 6033 else 6034 poststage1_ldflags=$withval 6035 fi 6036else 6037 poststage1_ldflags= 6038 # In stages 2 and 3, default to linking libstdc++ and libgcc 6039 # statically. But if the user explicitly specified the libraries to 6040 # use, trust that they are doing what they want. 6041 if test "$poststage1_libs" = ""; then 6042 poststage1_ldflags="-static-libstdc++ -static-libgcc" 6043 fi 6044fi 6045 6046 6047 6048# GCC GRAPHITE dependency isl. 6049# Basic setup is inlined here, actual checks are in config/isl.m4 6050 6051 6052# Check whether --with-isl was given. 6053if test "${with_isl+set}" = set; then : 6054 withval=$with_isl; 6055fi 6056 6057 6058# Treat --without-isl as a request to disable 6059# GRAPHITE support and skip all following checks. 6060if test "x$with_isl" != "xno"; then 6061 # Check for isl 6062 6063 6064# Check whether --with-isl-include was given. 6065if test "${with_isl_include+set}" = set; then : 6066 withval=$with_isl_include; 6067fi 6068 6069 6070# Check whether --with-isl-lib was given. 6071if test "${with_isl_lib+set}" = set; then : 6072 withval=$with_isl_lib; 6073fi 6074 6075 6076 # Check whether --enable-isl-version-check was given. 6077if test "${enable_isl_version_check+set}" = set; then : 6078 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval 6079else 6080 ENABLE_ISL_CHECK=yes 6081fi 6082 6083 6084 # Initialize isllibs and islinc. 6085 case $with_isl in 6086 no) 6087 isllibs= 6088 islinc= 6089 ;; 6090 "" | yes) 6091 ;; 6092 *) 6093 isllibs="-L$with_isl/lib" 6094 islinc="-I$with_isl/include" 6095 ;; 6096 esac 6097 if test "x${with_isl_include}" != x ; then 6098 islinc="-I$with_isl_include" 6099 fi 6100 if test "x${with_isl_lib}" != x; then 6101 isllibs="-L$with_isl_lib" 6102 fi 6103 if test "x${islinc}" = x && test "x${isllibs}" = x \ 6104 && test -d ${srcdir}/isl; then 6105 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' 6106 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' 6107 ENABLE_ISL_CHECK=no 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 6109$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} 6110 fi 6111 6112 isllibs="${isllibs} -lisl" 6113 6114 6115 6116 if test "${ENABLE_ISL_CHECK}" = yes ; then 6117 _isl_saved_CFLAGS=$CFLAGS 6118 _isl_saved_LDFLAGS=$LDFLAGS 6119 _isl_saved_LIBS=$LIBS 6120 6121 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" 6122 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" 6123 LIBS="${_isl_saved_LIBS} -lisl -lgmp" 6124 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 6126$as_echo_n "checking for isl 0.15 or later... " >&6; } 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129#include <isl/schedule.h> 6130int 6131main () 6132{ 6133isl_options_set_schedule_serialize_sccs (NULL, 0); 6134 ; 6135 return 0; 6136} 6137_ACEOF 6138if ac_fn_c_try_link "$LINENO"; then : 6139 gcc_cv_isl=yes 6140else 6141 gcc_cv_isl=no 6142fi 6143rm -f core conftest.err conftest.$ac_objext \ 6144 conftest$ac_exeext conftest.$ac_ext 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 6146$as_echo "$gcc_cv_isl" >&6; } 6147 6148 if test "${gcc_cv_isl}" = no ; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 6150$as_echo "required isl version is 0.15 or later" >&6; } 6151 fi 6152 6153 CFLAGS=$_isl_saved_CFLAGS 6154 LDFLAGS=$_isl_saved_LDFLAGS 6155 LIBS=$_isl_saved_LIBS 6156 fi 6157 6158 6159 6160 6161 6162 6163 if test "x${with_isl}" = xno; then 6164 graphite_requested=no 6165 elif test "x${with_isl}" != x \ 6166 || test "x${with_isl_include}" != x \ 6167 || test "x${with_isl_lib}" != x ; then 6168 graphite_requested=yes 6169 else 6170 graphite_requested=no 6171 fi 6172 6173 6174 6175 if test "${gcc_cv_isl}" = no ; then 6176 isllibs= 6177 islinc= 6178 fi 6179 6180 if test "${graphite_requested}" = yes \ 6181 && test "x${isllibs}" = x \ 6182 && test "x${islinc}" = x ; then 6183 6184 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 6185 fi 6186 6187 6188fi 6189 6190# If the isl check failed, disable builds of in-tree variant of isl 6191if test "x$with_isl" = xno || 6192 test "x$gcc_cv_isl" = xno; then 6193 noconfigdirs="$noconfigdirs isl" 6194 islinc= 6195fi 6196 6197 6198 6199 6200# Check for LTO support. 6201# Check whether --enable-lto was given. 6202if test "${enable_lto+set}" = set; then : 6203 enableval=$enable_lto; enable_lto=$enableval 6204else 6205 enable_lto=yes; default_enable_lto=yes 6206fi 6207 6208 6209 6210 6211 6212target_elf=no 6213case $target in 6214 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ 6215 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ 6216 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ 6217 nvptx-*-none) 6218 target_elf=no 6219 ;; 6220 *) 6221 target_elf=yes 6222 ;; 6223esac 6224 6225if test $target_elf = yes; then : 6226 # ELF platforms build the lto-plugin always. 6227 case $target in 6228 m68010-*) 6229 build_lto_plugin=no;; 6230 *) 6231 build_lto_plugin=yes;; 6232 esac 6233 6234else 6235 if test x"$default_enable_lto" = x"yes" ; then 6236 case $target in 6237 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; 6238 # On other non-ELF platforms, LTO has yet to be validated. 6239 *) enable_lto=no ;; 6240 esac 6241 else 6242 # Apart from ELF platforms, only Windows and Darwin support LTO so far. 6243 # It would also be nice to check the binutils support, but we don't 6244 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just 6245 # warn during gcc/ subconfigure; unless you're bootstrapping with 6246 # -flto it won't be needed until after installation anyway. 6247 case $target in 6248 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; 6249 *) if test x"$enable_lto" = x"yes"; then 6250 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 6251 fi 6252 ;; 6253 esac 6254 fi 6255 # Among non-ELF, only Windows platforms support the lto-plugin so far. 6256 # Build it unless LTO was explicitly disabled. 6257 case $target in 6258 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; 6259 *) ;; 6260 esac 6261 6262fi 6263 6264 6265# Check whether --enable-linker-plugin-configure-flags was given. 6266if test "${enable_linker_plugin_configure_flags+set}" = set; then : 6267 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval 6268else 6269 extra_linker_plugin_configure_flags= 6270fi 6271 6272 6273# Check whether --enable-linker-plugin-flags was given. 6274if test "${enable_linker_plugin_flags+set}" = set; then : 6275 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval 6276else 6277 extra_linker_plugin_flags= 6278fi 6279 6280 6281 6282# Enable --enable-host-shared. 6283# Checked early to determine whether jit is an 'all' language 6284# Check whether --enable-host-shared was given. 6285if test "${enable_host_shared+set}" = set; then : 6286 enableval=$enable_host_shared; host_shared=$enableval 6287else 6288 host_shared=no 6289fi 6290 6291 6292 6293# By default, C and C++ are the only stage 1 languages. 6294stage1_languages=,c, 6295 6296# Target libraries that we bootstrap. 6297bootstrap_target_libs=,target-libgcc, 6298 6299# Figure out what language subdirectories are present. 6300# Look if the user specified --enable-languages="..."; if not, use 6301# the environment variable $LANGUAGES if defined. $LANGUAGES might 6302# go away some day. 6303# NB: embedded tabs in this IF block -- do not untabify 6304if test -d ${srcdir}/gcc; then 6305 if test x"${enable_languages+set}" != xset; then 6306 if test x"${LANGUAGES+set}" = xset; then 6307 enable_languages="${LANGUAGES}" 6308 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 6309 else 6310 enable_languages=default 6311 fi 6312 else 6313 if test x"${enable_languages}" = x || 6314 test x"${enable_languages}" = xyes; 6315 then 6316 echo configure.ac: --enable-languages needs at least one language argument 1>&2 6317 exit 1 6318 fi 6319 fi 6320 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` 6321 6322 # 'f95' is the old name for the 'fortran' language. We issue a warning 6323 # and make the substitution. 6324 case ,${enable_languages}, in 6325 *,f95,*) 6326 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 6327 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` 6328 ;; 6329 esac 6330 6331 # If bootstrapping, C++ must be enabled. 6332 case ",$enable_languages,:$enable_bootstrap" in 6333 *,c++,*:*) ;; 6334 *:yes) 6335 if test -f ${srcdir}/gcc/cp/config-lang.in; then 6336 enable_languages="${enable_languages},c++" 6337 else 6338 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 6339 fi 6340 ;; 6341 esac 6342 6343 # First scan to see if an enabled language requires some other language. 6344 # We assume that a given config-lang.in will list all the language 6345 # front ends it requires, even if some are required indirectly. 6346 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 6347 case ${lang_frag} in 6348 ..) ;; 6349 # The odd quoting in the next line works around 6350 # an apparent bug in bash 1.12 on linux. 6351 ${srcdir}/gcc/[*]/config-lang.in) ;; 6352 *) 6353 # From the config-lang.in, get $language, $lang_requires, and 6354 # $lang_requires_boot_languages. 6355 language= 6356 lang_requires= 6357 lang_requires_boot_languages= 6358 # set srcdir during sourcing lang_frag to the gcc dir. 6359 # Sadly overriding srcdir on the . line doesn't work in plain sh as it 6360 # polutes this shell 6361 saved_srcdir=${srcdir} 6362 srcdir=${srcdir}/gcc . ${lang_frag} 6363 srcdir=${saved_srcdir} 6364 for other in ${lang_requires} ${lang_requires_boot_languages}; do 6365 case ,${enable_languages}, in 6366 *,$other,*) ;; 6367 *,default,*) ;; 6368 *,all,*) ;; 6369 *,$language,*) 6370 echo " \`$other' language required by \`$language'; enabling" 1>&2 6371 enable_languages="${enable_languages},${other}" 6372 ;; 6373 esac 6374 done 6375 for other in ${lang_requires_boot_languages} ; do 6376 if test "$other" != "c"; then 6377 case ,${enable_stage1_languages}, in 6378 *,$other,*) ;; 6379 *,default,*) ;; 6380 *,all,*) ;; 6381 *) 6382 case ,${enable_languages}, in 6383 *,$language,*) 6384 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 6385 enable_stage1_languages="$enable_stage1_languages,${other}" 6386 ;; 6387 esac 6388 ;; 6389 esac 6390 fi 6391 done 6392 ;; 6393 esac 6394 done 6395 6396 new_enable_languages=,c, 6397 6398 # If LTO is enabled, add the LTO front end. 6399 if test "$enable_lto" = "yes" ; then 6400 case ,${enable_languages}, in 6401 *,lto,*) ;; 6402 *) enable_languages="${enable_languages},lto" ;; 6403 esac 6404 if test "${build_lto_plugin}" = "yes" ; then 6405 configdirs="$configdirs lto-plugin" 6406 fi 6407 fi 6408 6409 # If we're building an offloading compiler, add the LTO front end. 6410 if test x"$enable_as_accelerator_for" != x ; then 6411 case ,${enable_languages}, in 6412 *,lto,*) ;; 6413 *) enable_languages="${enable_languages},lto" ;; 6414 esac 6415 fi 6416 6417 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` 6418 potential_languages=,c, 6419 6420 enabled_target_libs= 6421 disabled_target_libs= 6422 6423 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 6424 case ${lang_frag} in 6425 ..) ;; 6426 # The odd quoting in the next line works around 6427 # an apparent bug in bash 1.12 on linux. 6428 ${srcdir}/gcc/[*]/config-lang.in) ;; 6429 *) 6430 # From the config-lang.in, get $language, $target_libs, 6431 # $lang_dirs, $boot_language, and $build_by_default 6432 language= 6433 target_libs= 6434 lang_dirs= 6435 subdir_requires= 6436 boot_language=no 6437 build_by_default=yes 6438 # set srcdir during sourcing. See above about save & restore 6439 saved_srcdir=${srcdir} 6440 srcdir=${srcdir}/gcc . ${lang_frag} 6441 srcdir=${saved_srcdir} 6442 if test x${language} = x; then 6443 echo "${lang_frag} doesn't set \$language." 1>&2 6444 exit 1 6445 fi 6446 6447 if test "$language" = "c++"; then 6448 boot_language=yes 6449 fi 6450 6451 add_this_lang=no 6452 # C is always enabled, so no need to add it again 6453 if test "$language" != "c"; then 6454 case ,${enable_languages}, in 6455 *,${language},*) 6456 # Language was explicitly selected; include it 6457 add_this_lang=yes 6458 ;; 6459 *,all,*) 6460 # All languages are enabled 6461 add_this_lang=all 6462 ;; 6463 *,default,*) 6464 # 'default' was selected, select it if it is a default language 6465 add_this_lang=${build_by_default} 6466 ;; 6467 esac 6468 fi 6469 6470 # Disable languages that need other directories if these aren't available. 6471 for i in $subdir_requires; do 6472 test -f "$srcdir/gcc/$i/config-lang.in" && continue 6473 case ${add_this_lang} in 6474 yes) 6475 # Specifically requested language; tell them. 6476 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 6477 ;; 6478 all) 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 6480$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} 6481 add_this_lang=unsupported 6482 ;; 6483 *) 6484 # Silently disable. 6485 add_this_lang=unsupported 6486 ;; 6487 esac 6488 done 6489 6490 # Disable Ada if no preexisting GNAT is available. 6491 case ${add_this_lang}:${language}:${have_gnat} in 6492 yes:ada:no) 6493 # Specifically requested language; tell them. 6494 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 6495 ;; 6496 all:ada:no) 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 6498$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} 6499 add_this_lang=unsupported 6500 ;; 6501 *:ada:no) 6502 # Silently disable. 6503 add_this_lang=unsupported 6504 ;; 6505 esac 6506 6507 # Disable jit if -enable-host-shared not specified 6508 case ${add_this_lang}:${language}:${host_shared} in 6509 yes:jit:no) 6510 # PR jit/64780: explicitly specify --enable-host-shared 6511 as_fn_error $? " 6512Enabling language \"jit\" requires --enable-host-shared. 6513 6514--enable-host-shared typically slows the rest of the compiler down by 6515a few %, so you must explicitly enable it. 6516 6517If you want to build both the jit and the regular compiler, it is often 6518best to do this via two separate configure/builds, in separate 6519directories, to avoid imposing the performance cost of 6520--enable-host-shared on the regular compiler." "$LINENO" 5 6521 ;; 6522 all:jit:no) 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 6524$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} 6525 add_this_lang=unsupported 6526 ;; 6527 *:jit:no) 6528 # Silently disable. 6529 add_this_lang=unsupported 6530 ;; 6531 esac 6532 6533 # Disable a language that is unsupported by the target. 6534 case "${add_this_lang}: $unsupported_languages " in 6535 no:*) ;; 6536 unsupported:*) ;; 6537 *:*" $language "*) 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 6539$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} 6540 add_this_lang=unsupported 6541 ;; 6542 esac 6543 6544 case $add_this_lang in 6545 unsupported) 6546 # Remove language-dependent dirs. 6547 disabled_target_libs="$disabled_target_libs $target_libs" 6548 noconfigdirs="$noconfigdirs $lang_dirs" 6549 ;; 6550 no) 6551 # Remove language-dependent dirs; still show language as supported. 6552 disabled_target_libs="$disabled_target_libs $target_libs" 6553 noconfigdirs="$noconfigdirs $lang_dirs" 6554 potential_languages="${potential_languages}${language}," 6555 ;; 6556 all|yes) 6557 new_enable_languages="${new_enable_languages}${language}," 6558 potential_languages="${potential_languages}${language}," 6559 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` 6560 enabled_target_libs="$enabled_target_libs $target_libs" 6561 case "${boot_language}:,$enable_stage1_languages," in 6562 yes:* | *:*,$language,* | *:*,yes, | *:*,all,) 6563 # Add to (comma-separated) list of stage 1 languages. 6564 case ",$stage1_languages," in 6565 *,$language,* | ,yes, | ,all,) ;; 6566 *) stage1_languages="${stage1_languages}${language}," ;; 6567 esac 6568 # We need to bootstrap any supporting libraries. 6569 bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," 6570 ;; 6571 esac 6572 ;; 6573 esac 6574 ;; 6575 esac 6576 done 6577 6578 # Add target libraries which are only needed for disabled languages 6579 # to noconfigdirs. 6580 if test -n "$disabled_target_libs"; then 6581 for dir in $disabled_target_libs; do 6582 case " $enabled_target_libs " in 6583 *" ${dir} "*) ;; 6584 *) noconfigdirs="$noconfigdirs $dir" ;; 6585 esac 6586 done 6587 fi 6588 6589 # Check whether --enable-stage1-languages was given. 6590if test "${enable_stage1_languages+set}" = set; then : 6591 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in 6592 ,no,|,,) 6593 # Set it to something that will have no effect in the loop below 6594 enable_stage1_languages=c ;; 6595 ,yes,) 6596 enable_stage1_languages=`echo $new_enable_languages | \ 6597 sed -e "s/^,//" -e "s/,$//" ` ;; 6598 *,all,*) 6599 enable_stage1_languages=`echo ,$enable_stage1_languages, | \ 6600 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; 6601 esac 6602 6603 # Add "good" languages from enable_stage1_languages to stage1_languages, 6604 # while "bad" languages go in missing_languages. Leave no duplicates. 6605 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do 6606 case $potential_languages in 6607 *,$i,*) 6608 case $stage1_languages in 6609 *,$i,*) ;; 6610 *) stage1_languages="$stage1_languages$i," ;; 6611 esac ;; 6612 *) 6613 case $missing_languages in 6614 *,$i,*) ;; 6615 *) missing_languages="$missing_languages$i," ;; 6616 esac ;; 6617 esac 6618 done 6619fi 6620 6621 6622 # Remove leading/trailing commas that were added for simplicity 6623 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` 6624 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` 6625 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` 6626 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` 6627 6628 if test "x$missing_languages" != x; then 6629 as_fn_error $? " 6630The following requested languages could not be built: ${missing_languages} 6631Supported languages are: ${potential_languages}" "$LINENO" 5 6632 fi 6633 if test "x$new_enable_languages" != "x$enable_languages"; then 6634 echo The following languages will be built: ${new_enable_languages} 6635 enable_languages="$new_enable_languages" 6636 fi 6637 6638 6639 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` 6640fi 6641 6642# Handle --disable-<component> generically. 6643for dir in $configdirs $build_configdirs $target_configdirs ; do 6644 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` 6645 varname=`echo $dirname | sed -e s/+/_/g` 6646 if eval test x\${enable_${varname}} "=" xno ; then 6647 noconfigdirs="$noconfigdirs $dir" 6648 fi 6649done 6650 6651# Check for Boehm's garbage collector 6652# Check whether --enable-objc-gc was given. 6653if test "${enable_objc_gc+set}" = set; then : 6654 enableval=$enable_objc_gc; 6655fi 6656 6657 6658# Check whether --with-target-bdw-gc was given. 6659if test "${with_target_bdw_gc+set}" = set; then : 6660 withval=$with_target_bdw_gc; 6661fi 6662 6663 6664# Check whether --with-target-bdw-gc-include was given. 6665if test "${with_target_bdw_gc_include+set}" = set; then : 6666 withval=$with_target_bdw_gc_include; 6667fi 6668 6669 6670# Check whether --with-target-bdw-gc-lib was given. 6671if test "${with_target_bdw_gc_lib+set}" = set; then : 6672 withval=$with_target_bdw_gc_lib; 6673fi 6674 6675 6676case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 6678$as_echo_n "checking for bdw garbage collector... " >&6; } 6679 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 6681$as_echo "using bdw-gc in default locations" >&6; } 6682 else 6683 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then 6684 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 6685 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then 6686 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 6687 else 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 6689$as_echo "using paths configured with --with-target-bdw-gc options" >&6; } 6690 fi 6691 fi 6692esac 6693 6694# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ 6695case ,${enable_languages}, in 6696 *,c++,*) 6697 # Disable libitm, libsanitizer if we're not building libstdc++ 6698 case "${noconfigdirs}" in 6699 *target-libstdc++-v3*) 6700 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" 6701 ;; 6702 *) ;; 6703 esac 6704 ;; 6705 *) 6706 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" 6707 ;; 6708esac 6709 6710# Remove the entries in $skipdirs and $noconfigdirs from $configdirs, 6711# $build_configdirs and $target_configdirs. 6712# If we have the source for $noconfigdirs entries, add them to $notsupp. 6713 6714notsupp="" 6715for dir in . $skipdirs $noconfigdirs ; do 6716 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` 6717 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6718 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` 6719 if test -r $srcdir/$dirname/configure ; then 6720 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6721 true 6722 else 6723 notsupp="$notsupp $dir" 6724 fi 6725 fi 6726 fi 6727 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6728 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` 6729 if test -r $srcdir/$dirname/configure ; then 6730 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6731 true 6732 else 6733 notsupp="$notsupp $dir" 6734 fi 6735 fi 6736 fi 6737 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6738 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` 6739 if test -r $srcdir/$dirname/configure ; then 6740 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6741 true 6742 else 6743 notsupp="$notsupp $dir" 6744 fi 6745 fi 6746 fi 6747done 6748 6749# Quietly strip out all directories which aren't configurable in this tree. 6750# This relies on all configurable subdirectories being autoconfiscated, which 6751# is now the case. 6752build_configdirs_all="$build_configdirs" 6753build_configdirs= 6754for i in ${build_configdirs_all} ; do 6755 j=`echo $i | sed -e s/build-//g` 6756 if test -f ${srcdir}/$j/configure ; then 6757 build_configdirs="${build_configdirs} $i" 6758 fi 6759done 6760 6761configdirs_all="$configdirs" 6762configdirs= 6763for i in ${configdirs_all} ; do 6764 if test -f ${srcdir}/$i/configure ; then 6765 configdirs="${configdirs} $i" 6766 fi 6767done 6768 6769target_configdirs_all="$target_configdirs" 6770target_configdirs= 6771for i in ${target_configdirs_all} ; do 6772 j=`echo $i | sed -e s/target-//g` 6773 if test -f ${srcdir}/$j/configure ; then 6774 target_configdirs="${target_configdirs} $i" 6775 fi 6776done 6777 6778# libiberty-linker-plugin is special: it doesn't have its own source directory, 6779# so we have to add it after the preceding checks. 6780if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x 6781then 6782 case " $configdirs " in 6783 *" libiberty "*) 6784 # If we can build libiberty, we can also build libiberty-linker-plugin. 6785 configdirs="$configdirs libiberty-linker-plugin" 6786 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ 6787 --with-libiberty=../libiberty-linker-plugin";; 6788 *) 6789 as_fn_error $? "libiberty missing" "$LINENO" 5;; 6790 esac 6791fi 6792 6793# Sometimes we have special requirements for the host libiberty. 6794extra_host_libiberty_configure_flags= 6795extra_host_zlib_configure_flags= 6796case " $configdirs " in 6797 *" lto-plugin "* | *" libcc1 "*) 6798 # When these are to be built as shared libraries, the same applies to 6799 # libiberty. 6800 extra_host_libiberty_configure_flags=--enable-shared 6801 ;; 6802 *" bfd "*) 6803 # When bfd is to be built as a shared library, the same applies to 6804 # zlib. 6805 if test "$enable_shared" = "yes"; then 6806 extra_host_zlib_configure_flags=--enable-host-shared 6807 fi 6808 ;; 6809esac 6810 6811 6812 6813# Produce a warning message for the subdirs we can't configure. 6814# This isn't especially interesting in the Cygnus tree, but in the individual 6815# FSF releases, it's important to let people know when their machine isn't 6816# supported by the one or two programs in a package. 6817 6818if test -n "${notsupp}" && test -z "${norecursion}" ; then 6819 # If $appdirs is non-empty, at least one of those directories must still 6820 # be configured, or we error out. (E.g., if the gas release supports a 6821 # specified target in some subdirs but not the gas subdir, we shouldn't 6822 # pretend that all is well.) 6823 if test -n "$appdirs" ; then 6824 for dir in $appdirs ; do 6825 if test -r $dir/Makefile.in ; then 6826 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6827 appdirs="" 6828 break 6829 fi 6830 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then 6831 appdirs="" 6832 break 6833 fi 6834 fi 6835 done 6836 if test -n "$appdirs" ; then 6837 echo "*** This configuration is not supported by this package." 1>&2 6838 exit 1 6839 fi 6840 fi 6841 # Okay, some application will build, or we don't care to check. Still 6842 # notify of subdirs not getting built. 6843 echo "*** This configuration is not supported in the following subdirectories:" 1>&2 6844 echo " ${notsupp}" 1>&2 6845 echo " (Any other directories should still work fine.)" 1>&2 6846fi 6847 6848case "$host" in 6849 *msdosdjgpp*) 6850 enable_gdbtk=no ;; 6851esac 6852 6853# To find our prefix, in gcc_cv_tool_prefix. 6854 6855# The user is always right. 6856if test "${PATH_SEPARATOR+set}" != set; then 6857 echo "#! /bin/sh" >conf$$.sh 6858 echo "exit 0" >>conf$$.sh 6859 chmod +x conf$$.sh 6860 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6861 PATH_SEPARATOR=';' 6862 else 6863 PATH_SEPARATOR=: 6864 fi 6865 rm -f conf$$.sh 6866fi 6867 6868 6869 get_gcc_base_ver="cat" 6870 6871# Check whether --with-gcc-major-version-only was given. 6872if test "${with_gcc_major_version_only+set}" = set; then : 6873 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 6874 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 6875 fi 6876 6877fi 6878 6879 6880 6881 6882 6883 6884if test "x$exec_prefix" = xNONE; then 6885 if test "x$prefix" = xNONE; then 6886 gcc_cv_tool_prefix=$ac_default_prefix 6887 else 6888 gcc_cv_tool_prefix=$prefix 6889 fi 6890else 6891 gcc_cv_tool_prefix=$exec_prefix 6892fi 6893 6894# If there is no compiler in the tree, use the PATH only. In any 6895# case, if there is no compiler in the tree nobody should use 6896# AS_FOR_TARGET and LD_FOR_TARGET. 6897if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then 6898 if test x$with_gcc_major_version_only = xyes ; then 6899 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` 6900 else 6901 gcc_version=`cat $srcdir/gcc/BASE-VER` 6902 fi 6903 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6904 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" 6905 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6906 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" 6907 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6908 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" 6909else 6910 gcc_cv_tool_dirs= 6911fi 6912 6913if test x$build = x$target && test -n "$md_exec_prefix"; then 6914 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" 6915fi 6916 6917 6918 6919copy_dirs= 6920 6921 6922# Check whether --with-build-sysroot was given. 6923if test "${with_build_sysroot+set}" = set; then : 6924 withval=$with_build_sysroot; if test x"$withval" != x ; then 6925 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" 6926 fi 6927else 6928 SYSROOT_CFLAGS_FOR_TARGET= 6929fi 6930 6931 6932 6933 6934# Check whether --with-debug-prefix-map was given. 6935if test "${with_debug_prefix_map+set}" = set; then : 6936 withval=$with_debug_prefix_map; if test x"$withval" != x; then 6937 DEBUG_PREFIX_CFLAGS_FOR_TARGET= 6938 for debug_map in $withval; do 6939 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" 6940 done 6941 fi 6942else 6943 DEBUG_PREFIX_CFLAGS_FOR_TARGET= 6944fi 6945 6946 6947 6948# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS 6949# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS 6950# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). 6951# We want to ensure that TARGET libraries (which we know are built with 6952# gcc) are built with "-O2 -g", so include those options when setting 6953# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. 6954if test "x$CFLAGS_FOR_TARGET" = x; then 6955 if test "x${is_cross_compiler}" = xyes; then 6956 CFLAGS_FOR_TARGET="-g -O2" 6957 else 6958 CFLAGS_FOR_TARGET=$CFLAGS 6959 case " $CFLAGS " in 6960 *" -O2 "*) ;; 6961 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; 6962 esac 6963 case " $CFLAGS " in 6964 *" -g "* | *" -g3 "*) ;; 6965 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; 6966 esac 6967 fi 6968fi 6969 6970 6971if test "x$CXXFLAGS_FOR_TARGET" = x; then 6972 if test "x${is_cross_compiler}" = xyes; then 6973 CXXFLAGS_FOR_TARGET="-g -O2" 6974 else 6975 CXXFLAGS_FOR_TARGET=$CXXFLAGS 6976 case " $CXXFLAGS " in 6977 *" -O2 "*) ;; 6978 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; 6979 esac 6980 case " $CXXFLAGS " in 6981 *" -g "* | *" -g3 "*) ;; 6982 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; 6983 esac 6984 fi 6985fi 6986 6987 6988 6989 6990# Handle --with-headers=XXX. If the value is not "yes", the contents of 6991# the named directory are copied to $(tooldir)/sys-include. 6992if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then 6993 if test x${is_cross_compiler} = xno ; then 6994 echo 1>&2 '***' --with-headers is only supported when cross compiling 6995 exit 1 6996 fi 6997 if test x"${with_headers}" != xyes ; then 6998 x=${gcc_cv_tool_prefix} 6999 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" 7000 fi 7001fi 7002 7003# Handle --with-libs=XXX. If the value is not "yes", the contents of 7004# the name directories are copied to $(tooldir)/lib. Multiple directories 7005# are permitted. 7006if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 7007 if test x${is_cross_compiler} = xno ; then 7008 echo 1>&2 '***' --with-libs is only supported when cross compiling 7009 exit 1 7010 fi 7011 if test x"${with_libs}" != xyes ; then 7012 # Copy the libraries in reverse order, so that files in the first named 7013 # library override files in subsequent libraries. 7014 x=${gcc_cv_tool_prefix} 7015 for l in ${with_libs}; do 7016 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" 7017 done 7018 fi 7019fi 7020 7021# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. 7022# 7023# This is done by determining whether or not the appropriate directory 7024# is available, and by checking whether or not specific configurations 7025# have requested that this magic not happen. 7026# 7027# The command line options always override the explicit settings in 7028# configure.ac, and the settings in configure.ac override this magic. 7029# 7030# If the default for a toolchain is to use GNU as and ld, and you don't 7031# want to do that, then you should use the --without-gnu-as and 7032# --without-gnu-ld options for the configure script. Similarly, if 7033# the default is to use the included zlib and you don't want to do that, 7034# you should use the --with-system-zlib option for the configure script. 7035 7036if test x${use_gnu_as} = x && 7037 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then 7038 with_gnu_as=yes 7039 extra_host_args="$extra_host_args --with-gnu-as" 7040fi 7041 7042if test x${use_gnu_ld} = x && 7043 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then 7044 with_gnu_ld=yes 7045 extra_host_args="$extra_host_args --with-gnu-ld" 7046fi 7047 7048if test x${use_included_zlib} = x && 7049 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then 7050 : 7051else 7052 with_system_zlib=yes 7053 extra_host_args="$extra_host_args --with-system-zlib" 7054fi 7055 7056# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure 7057# can detect this case. 7058 7059if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then 7060 with_newlib=yes 7061 extra_host_args="$extra_host_args --with-newlib" 7062fi 7063 7064# Handle ${copy_dirs} 7065set fnord ${copy_dirs} 7066shift 7067while test $# != 0 ; do 7068 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then 7069 : 7070 else 7071 echo Copying $1 to $2 7072 7073 # Use the install script to create the directory and all required 7074 # parent directories. 7075 if test -d $2 ; then 7076 : 7077 else 7078 echo >config.temp 7079 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED 7080 fi 7081 7082 # Copy the directory, assuming we have tar. 7083 # FIXME: Should we use B in the second tar? Not all systems support it. 7084 (cd $1; tar -cf - .) | (cd $2; tar -xpf -) 7085 7086 # It is the responsibility of the user to correctly adjust all 7087 # symlinks. If somebody can figure out how to handle them correctly 7088 # here, feel free to add the code. 7089 7090 echo $1 > $2/COPIED 7091 fi 7092 shift; shift 7093done 7094 7095# Determine a target-dependent exec_prefix that the installed 7096# gcc will search in. Keep this list sorted by triplet, with 7097# the *-*-osname triplets last. 7098md_exec_prefix= 7099case "${target}" in 7100 i[34567]86-pc-msdosdjgpp*) 7101 md_exec_prefix=/dev/env/DJDIR/bin 7102 ;; 7103 *-*-hpux* | \ 7104 *-*-nto-qnx* | \ 7105 *-*-solaris2*) 7106 md_exec_prefix=/usr/ccs/bin 7107 ;; 7108esac 7109 7110extra_arflags_for_target= 7111extra_nmflags_for_target= 7112extra_ranlibflags_for_target= 7113target_makefile_frag=/dev/null 7114case "${target}" in 7115 spu-*-*) 7116 target_makefile_frag="config/mt-spu" 7117 ;; 7118 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 7119 target_makefile_frag="config/mt-sde" 7120 ;; 7121 mipsisa*-*-elfoabi*) 7122 target_makefile_frag="config/mt-mips-elfoabi" 7123 ;; 7124 mips*-*-*linux* | mips*-*-gnu*) 7125 target_makefile_frag="config/mt-mips-gnu" 7126 ;; 7127 nios2-*-elf*) 7128 target_makefile_frag="config/mt-nios2-elf" 7129 ;; 7130 *-*-linux-android*) 7131 target_makefile_frag="config/mt-android" 7132 ;; 7133 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 7134 target_makefile_frag="config/mt-gnu" 7135 ;; 7136 *-*-aix4.[3456789]* | *-*-aix[56789].*) 7137 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 7138 # commands to handle both 32-bit and 64-bit objects. These flags are 7139 # harmless if we're using GNU nm or ar. 7140 extra_arflags_for_target=" -X32_64" 7141 extra_nmflags_for_target=" -B -X32_64" 7142 ;; 7143esac 7144 7145alphaieee_frag=/dev/null 7146case $target in 7147 alpha*-*-*) 7148 # This just makes sure to use the -mieee option to build target libs. 7149 # This should probably be set individually by each library. 7150 alphaieee_frag="config/mt-alphaieee" 7151 ;; 7152esac 7153 7154# If --enable-target-optspace always use -Os instead of -O2 to build 7155# the target libraries, similarly if it is not specified, use -Os 7156# on selected platforms. 7157ospace_frag=/dev/null 7158case "${enable_target_optspace}:${target}" in 7159 yes:*) 7160 ospace_frag="config/mt-ospace" 7161 ;; 7162 :d30v-*) 7163 ospace_frag="config/mt-d30v" 7164 ;; 7165 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) 7166 ospace_frag="config/mt-ospace" 7167 ;; 7168 no:* | :*) 7169 ;; 7170 *) 7171 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 7172 ;; 7173esac 7174 7175# Some systems (e.g., one of the i386-aix systems the gas testers are 7176# using) don't handle "\$" correctly, so don't use it here. 7177tooldir='${exec_prefix}'/${target_noncanonical} 7178build_tooldir=${tooldir} 7179 7180# Create a .gdbinit file which runs the one in srcdir 7181# and tells GDB to look there for source files. 7182 7183if test -r ${srcdir}/.gdbinit ; then 7184 case ${srcdir} in 7185 .) ;; 7186 *) cat > ./.gdbinit <<EOF 7187# ${NO_EDIT} 7188dir ${srcdir} 7189dir . 7190source ${srcdir}/.gdbinit 7191EOF 7192 ;; 7193 esac 7194fi 7195 7196# Make sure that the compiler is able to generate an executable. If it 7197# can't, we are probably in trouble. We don't care whether we can run the 7198# executable--we might be using a cross compiler--we only care whether it 7199# can be created. At this point the main configure script has set CC. 7200we_are_ok=no 7201echo "int main () { return 0; }" > conftest.c 7202${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 7203if test $? = 0 ; then 7204 if test -s conftest || test -s conftest.exe ; then 7205 we_are_ok=yes 7206 fi 7207fi 7208case $we_are_ok in 7209 no) 7210 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." 7211 echo 1>&2 "*** You must set the environment variable CC to a working compiler." 7212 rm -f conftest* 7213 exit 1 7214 ;; 7215esac 7216rm -f conftest* 7217 7218# Decide which environment variable is used to find dynamic libraries. 7219case "${host}" in 7220 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; 7221 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; 7222 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; 7223 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; 7224esac 7225 7226# On systems where the dynamic library environment variable is PATH, 7227# gcc/ will put dynamic libraries into a subdirectory to avoid adding 7228# built executables to PATH. 7229if test "$RPATH_ENVVAR" = PATH; then 7230 GCC_SHLIB_SUBDIR=/shlib 7231else 7232 GCC_SHLIB_SUBDIR= 7233fi 7234 7235# Adjust the toplevel makefile according to whether bootstrap was selected. 7236case $enable_bootstrap in 7237 yes) 7238 bootstrap_suffix=bootstrap 7239 BUILD_CONFIG=bootstrap-debug 7240 ;; 7241 no) 7242 bootstrap_suffix=no-bootstrap 7243 BUILD_CONFIG= 7244 ;; 7245esac 7246 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 7248$as_echo_n "checking for default BUILD_CONFIG... " >&6; } 7249 7250 7251# Check whether --with-build-config was given. 7252if test "${with_build_config+set}" = set; then : 7253 withval=$with_build_config; case $with_build_config in 7254 yes) with_build_config= ;; 7255 no) with_build_config= BUILD_CONFIG= ;; 7256 esac 7257fi 7258 7259 7260if test "x${with_build_config}" != x; then 7261 BUILD_CONFIG=$with_build_config 7262else 7263 case $BUILD_CONFIG in 7264 bootstrap-debug) 7265 if echo "int f (void) { return 0; }" > conftest.c && 7266 ${CC} -c conftest.c && 7267 mv conftest.o conftest.o.g0 && 7268 ${CC} -c -g conftest.c && 7269 mv conftest.o conftest.o.g && 7270 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then 7271 : 7272 else 7273 BUILD_CONFIG= 7274 fi 7275 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g 7276 ;; 7277 esac 7278fi 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 7280$as_echo "$BUILD_CONFIG" >&6; } 7281 7282 7283# Use same top-level configure hooks in libgcc/libstdc++/libvtv. 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 7285$as_echo_n "checking for --enable-vtable-verify... " >&6; } 7286# Check whether --enable-vtable-verify was given. 7287if test "${enable_vtable_verify+set}" = set; then : 7288 enableval=$enable_vtable_verify; case "$enableval" in 7289 yes) enable_vtable_verify=yes ;; 7290 no) enable_vtable_verify=no ;; 7291 *) enable_vtable_verify=no;; 7292 esac 7293else 7294 enable_vtable_verify=no 7295fi 7296 7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 7298$as_echo "$enable_vtable_verify" >&6; } 7299 7300# Record target_configdirs and the configure arguments for target and 7301# build configuration in Makefile. 7302target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 7303build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` 7304bootstrap_fixincludes=no 7305 7306# If we are building libgomp, bootstrap it. 7307if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then 7308 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, 7309fi 7310 7311# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan 7312# or bootstrap-ubsan, bootstrap it. 7313if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then 7314 case "$BUILD_CONFIG" in 7315 *bootstrap-asan* | *bootstrap-ubsan* ) 7316 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, 7317 bootstrap_fixincludes=yes 7318 ;; 7319 esac 7320fi 7321 7322# If we are building libvtv and --enable-vtable-verify, bootstrap it. 7323if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && 7324 test "$enable_vtable_verify" != no; then 7325 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, 7326fi 7327 7328# Determine whether gdb needs tk/tcl or not. 7329# Use 'maybe' since enable_gdbtk might be true even if tk isn't available 7330# and in that case we want gdb to be built without tk. Ugh! 7331# In fact I believe gdb is the *only* package directly dependent on tk, 7332# so we should be able to put the 'maybe's in unconditionally and 7333# leave out the maybe dependencies when enable_gdbtk is false. I'm not 7334# 100% sure that that's safe though. 7335 7336gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" 7337case "$enable_gdbtk" in 7338 no) 7339 GDB_TK="" ;; 7340 yes) 7341 GDB_TK="${gdb_tk}" ;; 7342 *) 7343 # Only add the dependency on gdbtk when GDBtk is part of the gdb 7344 # distro. Eventually someone will fix this and move Insight, nee 7345 # gdbtk to a separate directory. 7346 if test -d ${srcdir}/gdb/gdbtk ; then 7347 GDB_TK="${gdb_tk}" 7348 else 7349 GDB_TK="" 7350 fi 7351 ;; 7352esac 7353CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` 7354INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` 7355 7356# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing 7357# else does, only include them if one of these is built. The Makefile 7358# provides the ordering, so it's enough here to add to the list. 7359case " ${configdirs} " in 7360 *\ gdb\ *) 7361 configdirs="${configdirs} gnulib gdbsupport" 7362 ;; 7363 *\ gdbserver\ *) 7364 configdirs="${configdirs} gnulib gdbsupport" 7365 ;; 7366esac 7367 7368# Strip out unwanted targets. 7369 7370# While at that, we remove Makefiles if we were started for recursive 7371# configuration, so that the top-level Makefile reconfigures them, 7372# like we used to do when configure itself was recursive. 7373 7374# Loop over modules. We used to use the "$extrasub" feature from Autoconf 7375# but now we're fixing up the Makefile ourselves with the additional 7376# commands passed to AC_CONFIG_FILES. Use separate variables 7377# extrasub-{build,host,target} not because there is any reason to split 7378# the substitutions up that way, but only to remain below the limit of 7379# 99 commands in a script, for HP-UX sed. 7380 7381# Do not nest @if/@endif or @unless/@endunless pairs, because 7382# configure will not warn you at all. 7383 7384case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in 7385 yes:yes:*\ gold\ *:*,c++,*) ;; 7386 yes:yes:*\ gold\ *:*) 7387 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 7388 ;; 7389esac 7390 7391extrasub_build= 7392for module in ${build_configdirs} ; do 7393 if test -z "${no_recursion}" \ 7394 && test -f ${build_subdir}/${module}/Makefile; then 7395 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" 7396 rm -f ${build_subdir}/${module}/Makefile 7397 fi 7398 extrasub_build="$extrasub_build 7399/^@if build-$module\$/d 7400/^@endif build-$module\$/d 7401/^@unless build-$module\$/,/^@endunless build-$module\$/d 7402/^@if build-$module-$bootstrap_suffix\$/d 7403/^@endif build-$module-$bootstrap_suffix\$/d 7404/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" 7405done 7406extrasub_host= 7407for module in ${configdirs} ; do 7408 if test -z "${no_recursion}"; then 7409 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do 7410 if test -f ${file}; then 7411 echo 1>&2 "*** removing ${file} to force reconfigure" 7412 rm -f ${file} 7413 fi 7414 done 7415 fi 7416 case ${module},${bootstrap_fixincludes} in 7417 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; 7418 *) host_bootstrap_suffix=$bootstrap_suffix ;; 7419 esac 7420 extrasub_host="$extrasub_host 7421/^@if $module\$/d 7422/^@endif $module\$/d 7423/^@unless $module\$/,/^@endunless $module\$/d 7424/^@if $module-$host_bootstrap_suffix\$/d 7425/^@endif $module-$host_bootstrap_suffix\$/d 7426/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" 7427done 7428extrasub_target= 7429for module in ${target_configdirs} ; do 7430 if test -z "${no_recursion}" \ 7431 && test -f ${target_subdir}/${module}/Makefile; then 7432 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" 7433 rm -f ${target_subdir}/${module}/Makefile 7434 fi 7435 7436 # We only bootstrap target libraries listed in bootstrap_target_libs. 7437 case $bootstrap_target_libs in 7438 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; 7439 *) target_bootstrap_suffix=no-bootstrap ;; 7440 esac 7441 7442 extrasub_target="$extrasub_target 7443/^@if target-$module\$/d 7444/^@endif target-$module\$/d 7445/^@unless target-$module\$/,/^@endunless target-$module\$/d 7446/^@if target-$module-$target_bootstrap_suffix\$/d 7447/^@endif target-$module-$target_bootstrap_suffix\$/d 7448/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" 7449done 7450 7451# Do the final fixup along with target modules. 7452extrasub_target="$extrasub_target 7453/^@if /,/^@endif /d 7454/^@unless /d 7455/^@endunless /d" 7456 7457# Create the serialization dependencies. This uses a temporary file. 7458 7459# Check whether --enable-serial-configure was given. 7460if test "${enable_serial_configure+set}" = set; then : 7461 enableval=$enable_serial_configure; 7462fi 7463 7464 7465case ${enable_serial_configure} in 7466 yes) 7467 enable_serial_build_configure=yes 7468 enable_serial_host_configure=yes 7469 enable_serial_target_configure=yes 7470 ;; 7471esac 7472 7473# These force 'configure's to be done one at a time, to avoid problems 7474# with contention over a shared config.cache. 7475rm -f serdep.tmp 7476echo '# serdep.tmp' > serdep.tmp 7477olditem= 7478test "x${enable_serial_build_configure}" = xyes && 7479for item in ${build_configdirs} ; do 7480 case ${olditem} in 7481 "") ;; 7482 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; 7483 esac 7484 olditem=${item} 7485done 7486olditem= 7487test "x${enable_serial_host_configure}" = xyes && 7488for item in ${configdirs} ; do 7489 case ${olditem} in 7490 "") ;; 7491 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; 7492 esac 7493 olditem=${item} 7494done 7495olditem= 7496test "x${enable_serial_target_configure}" = xyes && 7497for item in ${target_configdirs} ; do 7498 case ${olditem} in 7499 "") ;; 7500 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; 7501 esac 7502 olditem=${item} 7503done 7504serialization_dependencies=serdep.tmp 7505 7506 7507# Base args. Strip norecursion, cache-file, srcdir, host, build, 7508# target, nonopt, and variable assignments. These are the ones we 7509# might not want to pass down to subconfigures. The exception being 7510# --cache-file=/dev/null, which is used to turn off the use of cache 7511# files altogether, and which should be passed on to subconfigures. 7512# Also strip program-prefix, program-suffix, and program-transform-name, 7513# so that we can pass down a consistent program-transform-name. 7514baseargs= 7515tbaseargs= 7516keep_next=no 7517skip_next=no 7518eval "set -- $ac_configure_args" 7519for ac_arg 7520do 7521 if test X"$skip_next" = X"yes"; then 7522 skip_next=no 7523 continue 7524 fi 7525 if test X"$keep_next" = X"yes"; then 7526 case $ac_arg in 7527 *\'*) 7528 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 7529 esac 7530 baseargs="$baseargs '$ac_arg'" 7531 tbaseargs="$tbaseargs '$ac_arg'" 7532 keep_next=no 7533 continue 7534 fi 7535 7536 # Handle separated arguments. Based on the logic generated by 7537 # autoconf 2.59. 7538 case $ac_arg in 7539 *=* | --config-cache | -C | -disable-* | --disable-* \ 7540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 7541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 7542 | -with-* | --with-* | -without-* | --without-* | --x) 7543 separate_arg=no 7544 ;; 7545 -*) 7546 separate_arg=yes 7547 ;; 7548 *) 7549 separate_arg=no 7550 ;; 7551 esac 7552 7553 skip_targ=no 7554 case $ac_arg in 7555 7556 --with-* | --without-*) 7557 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` 7558 7559 case $libopt in 7560 *[-_]include) 7561 lib=`echo "$libopt" | sed 's,[-_]include$,,'` 7562 ;; 7563 *[-_]lib) 7564 lib=`echo "$libopt" | sed 's,[-_]lib$,,'` 7565 ;; 7566 *) 7567 lib=$libopt 7568 ;; 7569 esac 7570 7571 7572 case $lib in 7573 mpc | mpfr | gmp | isl) 7574 # If we're processing --with-$lib, --with-$lib-include or 7575 # --with-$lib-lib, for one of the libs above, and target is 7576 # different from host, don't pass the current argument to any 7577 # target library's configure. 7578 if test x$is_cross_compiler = xyes; then 7579 skip_targ=yes 7580 fi 7581 ;; 7582 esac 7583 ;; 7584 esac 7585 7586 case "$ac_arg" in 7587 --cache-file=/dev/null | \ 7588 -cache-file=/dev/null ) 7589 # Handled here to avoid the test to skip args below. 7590 baseargs="$baseargs '$ac_arg'" 7591 tbaseargs="$tbaseargs '$ac_arg'" 7592 # Assert: $separate_arg should always be no. 7593 keep_next=$separate_arg 7594 ;; 7595 --no*) 7596 continue 7597 ;; 7598 --c* | \ 7599 --sr* | \ 7600 --ho* | \ 7601 --bu* | \ 7602 --t* | \ 7603 --program-* | \ 7604 -cache_file* | \ 7605 -srcdir* | \ 7606 -host* | \ 7607 -build* | \ 7608 -target* | \ 7609 -program-prefix* | \ 7610 -program-suffix* | \ 7611 -program-transform-name* ) 7612 skip_next=$separate_arg 7613 continue 7614 ;; 7615 -*) 7616 # An option. Add it. 7617 case $ac_arg in 7618 *\'*) 7619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 7620 esac 7621 baseargs="$baseargs '$ac_arg'" 7622 if test X"$skip_targ" = Xno; then 7623 tbaseargs="$tbaseargs '$ac_arg'" 7624 fi 7625 keep_next=$separate_arg 7626 ;; 7627 *) 7628 # Either a variable assignment, or a nonopt (triplet). Don't 7629 # pass it down; let the Makefile handle this. 7630 continue 7631 ;; 7632 esac 7633done 7634# Remove the initial space we just introduced and, as these will be 7635# expanded by make, quote '$'. 7636baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 7637 7638# Add in --program-transform-name, after --program-prefix and 7639# --program-suffix have been applied to it. Autoconf has already 7640# doubled dollar signs and backslashes in program_transform_name; we want 7641# the backslashes un-doubled, and then the entire thing wrapped in single 7642# quotes, because this will be expanded first by make and then by the shell. 7643# Also, because we want to override the logic in subdir configure scripts to 7644# choose program_transform_name, replace any s,x,x, with s,y,y,. 7645sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out 7646${program_transform_name} 7647EOF_SED 7648gcc_transform_name=`cat conftestsed.out` 7649rm -f conftestsed.out 7650baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" 7651tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" 7652if test "$silent" = yes; then 7653 baseargs="$baseargs --silent" 7654 tbaseargs="$tbaseargs --silent" 7655fi 7656baseargs="$baseargs --disable-option-checking" 7657tbaseargs="$tbaseargs --disable-option-checking" 7658 7659# Record and document user additions to sub configure arguments. 7660 7661 7662 7663 7664# For the build-side libraries, we just need to pretend we're native, 7665# and not use the same cache file. Multilibs are neither needed nor 7666# desired. We can't even use the same cache file for all build-side 7667# libraries, as they're compiled differently; some with C, some with 7668# C++ or with different feature-enabling options. 7669build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" 7670 7671# For host modules, accept cache file option, or specification as blank. 7672case "${cache_file}" in 7673"") # empty 7674 cache_file_option="" ;; 7675/* | [A-Za-z]:[\\/]* ) # absolute path 7676 cache_file_option="--cache-file=${cache_file}" ;; 7677*) # relative path 7678 cache_file_option="--cache-file=../${cache_file}" ;; 7679esac 7680 7681# Host dirs don't like to share a cache file either, horribly enough. 7682# This seems to be due to autoconf 2.5x stupidity. 7683host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" 7684 7685target_configargs="$target_configargs ${tbaseargs}" 7686 7687# Passing a --with-cross-host argument lets the target libraries know 7688# whether they are being built with a cross-compiler or being built 7689# native. However, it would be better to use other mechanisms to make the 7690# sorts of decisions they want to make on this basis. Please consider 7691# this option to be deprecated. FIXME. 7692if test x${is_cross_compiler} = xyes ; then 7693 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" 7694fi 7695 7696# Special user-friendly check for native x86_64-linux build, if 7697# multilib is not explicitly enabled. 7698case "$target:$have_compiler:$host:$target:$enable_multilib" in 7699 x86_64-*linux*:yes:$build:$build:) 7700 # Make sure we have a development environment that handles 32-bit 7701 dev64=no 7702 echo "int main () { return 0; }" > conftest.c 7703 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 7704 if test $? = 0 ; then 7705 if test -s conftest || test -s conftest.exe ; then 7706 dev64=yes 7707 fi 7708 fi 7709 rm -f conftest* 7710 if test x${dev64} != xyes ; then 7711 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 7712 fi 7713 ;; 7714esac 7715 7716# Default to --enable-multilib. 7717if test x${enable_multilib} = x ; then 7718 target_configargs="--enable-multilib ${target_configargs}" 7719fi 7720 7721# Pass --with-newlib if appropriate. Note that target_configdirs has 7722# changed from the earlier setting of with_newlib. 7723if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then 7724 target_configargs="--with-newlib ${target_configargs}" 7725fi 7726 7727# Different target subdirs use different values of certain variables 7728# (notably CXX). Worse, multilibs use *lots* of different values. 7729# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that 7730# it doesn't automatically accept command-line overrides of them. 7731# This means it's not safe for target subdirs to share a cache file, 7732# which is disgusting, but there you have it. Hopefully this can be 7733# fixed in future. It's still worthwhile to use a cache file for each 7734# directory. I think. 7735 7736# Pass the appropriate --build, --host, --target and --cache-file arguments. 7737# We need to pass --target, as newer autoconf's requires consistency 7738# for target_alias and gcc doesn't manage it consistently. 7739target_configargs="--cache-file=./config.cache ${target_configargs}" 7740 7741FLAGS_FOR_TARGET= 7742case " $target_configdirs " in 7743 *" newlib "*) 7744 case " $target_configargs " in 7745 *" --with-newlib "*) 7746 case "$target" in 7747 *-cygwin*) 7748 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' 7749 ;; 7750 esac 7751 7752 # If we're not building GCC, don't discard standard headers. 7753 if test -d ${srcdir}/gcc; then 7754 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' 7755 7756 if test "${build}" != "${host}"; then 7757 # On Canadian crosses, CC_FOR_TARGET will have already been set 7758 # by `configure', so we won't have an opportunity to add -Bgcc/ 7759 # to it. This is right: we don't want to search that directory 7760 # for binaries, but we want the header files in there, so add 7761 # them explicitly. 7762 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' 7763 7764 # Someone might think of using the pre-installed headers on 7765 # Canadian crosses, in case the installed compiler is not fully 7766 # compatible with the compiler being built. In this case, it 7767 # would be better to flag an error than risking having 7768 # incompatible object files being constructed. We can't 7769 # guarantee that an error will be flagged, but let's hope the 7770 # compiler will do it, when presented with incompatible header 7771 # files. 7772 fi 7773 fi 7774 7775 case "${target}-${is_cross_compiler}" in 7776 i[3456789]86-*-linux*-no) 7777 # Here host == target, so we don't need to build gcc, 7778 # so we don't want to discard standard headers. 7779 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` 7780 ;; 7781 *) 7782 # If we're building newlib, use its generic headers last, but search 7783 # for any libc-related directories first (so make it the last -B 7784 # switch). 7785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' 7786 7787 # If we're building libgloss, find the startup file, simulator library 7788 # and linker script. 7789 case " $target_configdirs " in 7790 *" libgloss "*) 7791 # Look for startup file, simulator library and maybe linker script. 7792 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" 7793 # Look for libnosys.a in case the target needs it. 7794 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' 7795 # Most targets have the linker script in the source directory. 7796 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" 7797 ;; 7798 esac 7799 ;; 7800 esac 7801 ;; 7802 esac 7803 ;; 7804esac 7805 7806case "$target" in 7807 x86_64-*mingw* | *-w64-mingw*) 7808 # MinGW-w64 does not use newlib, nor does it use winsup. It may, 7809 # however, use a symlink named 'mingw' in ${prefix} . 7810 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' 7811 ;; 7812 *-mingw*) 7813 # MinGW can't be handled as Cygwin above since it does not use newlib. 7814 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' 7815 ;; 7816esac 7817 7818# Allow the user to override the flags for 7819# our build compiler if desired. 7820if test x"${build}" = x"${host}" ; then 7821 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 7822 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} 7823 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} 7824fi 7825 7826# On Canadian crosses, we'll be searching the right directories for 7827# the previously-installed cross compiler, so don't bother to add 7828# flags for directories within the install tree of the compiler 7829# being built; programs in there won't even run. 7830if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then 7831 # Search for pre-installed headers if nothing else fits. 7832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' 7833fi 7834 7835if test "x${use_gnu_ld}" = x && 7836 echo " ${configdirs} " | grep " ld " > /dev/null ; then 7837 # Arrange for us to find uninstalled linker scripts. 7838 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' 7839fi 7840 7841# Search for other target-specific linker scripts and such. 7842case "${target}" in 7843 mep*) 7844 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" 7845 ;; 7846esac 7847 7848# Makefile fragments. 7849for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; 7850do 7851 eval fragval=\$$frag 7852 if test $fragval != /dev/null; then 7853 eval $frag=${srcdir}/$fragval 7854 fi 7855done 7856 7857 7858 7859 7860 7861# Miscellanea: directories, flags, etc. 7862 7863 7864 7865 7866 7867 7868 7869 7870# Build module lists & subconfigure args. 7871 7872 7873 7874# Host module lists & subconfigure args. 7875 7876 7877 7878 7879# Target module lists & subconfigure args. 7880 7881 7882 7883# Build tools. 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902# Generate default definitions for YACC, M4, LEX and other programs that run 7903# on the build machine. These are used if the Makefile can't locate these 7904# programs in objdir. 7905MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 7906 7907for ac_prog in 'bison -y' byacc yacc 7908do 7909 # Extract the first word of "$ac_prog", so it can be a program name with args. 7910set dummy $ac_prog; ac_word=$2 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7912$as_echo_n "checking for $ac_word... " >&6; } 7913if ${ac_cv_prog_YACC+:} false; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 if test -n "$YACC"; then 7917 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7918else 7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7920for as_dir in $PATH 7921do 7922 IFS=$as_save_IFS 7923 test -z "$as_dir" && as_dir=. 7924 for ac_exec_ext in '' $ac_executable_extensions; do 7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7926 ac_cv_prog_YACC="$ac_prog" 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7928 break 2 7929 fi 7930done 7931 done 7932IFS=$as_save_IFS 7933 7934fi 7935fi 7936YACC=$ac_cv_prog_YACC 7937if test -n "$YACC"; then 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7939$as_echo "$YACC" >&6; } 7940else 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942$as_echo "no" >&6; } 7943fi 7944 7945 7946 test -n "$YACC" && break 7947done 7948test -n "$YACC" || YACC="$MISSING bison -y" 7949 7950case " $build_configdirs " in 7951 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; 7952esac 7953 7954for ac_prog in bison 7955do 7956 # Extract the first word of "$ac_prog", so it can be a program name with args. 7957set dummy $ac_prog; ac_word=$2 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7959$as_echo_n "checking for $ac_word... " >&6; } 7960if ${ac_cv_prog_BISON+:} false; then : 7961 $as_echo_n "(cached) " >&6 7962else 7963 if test -n "$BISON"; then 7964 ac_cv_prog_BISON="$BISON" # Let the user override the test. 7965else 7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7967for as_dir in $PATH 7968do 7969 IFS=$as_save_IFS 7970 test -z "$as_dir" && as_dir=. 7971 for ac_exec_ext in '' $ac_executable_extensions; do 7972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7973 ac_cv_prog_BISON="$ac_prog" 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7975 break 2 7976 fi 7977done 7978 done 7979IFS=$as_save_IFS 7980 7981fi 7982fi 7983BISON=$ac_cv_prog_BISON 7984if test -n "$BISON"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 7986$as_echo "$BISON" >&6; } 7987else 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989$as_echo "no" >&6; } 7990fi 7991 7992 7993 test -n "$BISON" && break 7994done 7995test -n "$BISON" || BISON="$MISSING bison" 7996 7997case " $build_configdirs " in 7998 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; 7999esac 8000 8001for ac_prog in gm4 gnum4 m4 8002do 8003 # Extract the first word of "$ac_prog", so it can be a program name with args. 8004set dummy $ac_prog; ac_word=$2 8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8006$as_echo_n "checking for $ac_word... " >&6; } 8007if ${ac_cv_prog_M4+:} false; then : 8008 $as_echo_n "(cached) " >&6 8009else 8010 if test -n "$M4"; then 8011 ac_cv_prog_M4="$M4" # Let the user override the test. 8012else 8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8014for as_dir in $PATH 8015do 8016 IFS=$as_save_IFS 8017 test -z "$as_dir" && as_dir=. 8018 for ac_exec_ext in '' $ac_executable_extensions; do 8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8020 ac_cv_prog_M4="$ac_prog" 8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8022 break 2 8023 fi 8024done 8025 done 8026IFS=$as_save_IFS 8027 8028fi 8029fi 8030M4=$ac_cv_prog_M4 8031if test -n "$M4"; then 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 8033$as_echo "$M4" >&6; } 8034else 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8036$as_echo "no" >&6; } 8037fi 8038 8039 8040 test -n "$M4" && break 8041done 8042test -n "$M4" || M4="$MISSING m4" 8043 8044case " $build_configdirs " in 8045 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; 8046esac 8047 8048for ac_prog in flex lex 8049do 8050 # Extract the first word of "$ac_prog", so it can be a program name with args. 8051set dummy $ac_prog; ac_word=$2 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8053$as_echo_n "checking for $ac_word... " >&6; } 8054if ${ac_cv_prog_LEX+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 if test -n "$LEX"; then 8058 ac_cv_prog_LEX="$LEX" # Let the user override the test. 8059else 8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8061for as_dir in $PATH 8062do 8063 IFS=$as_save_IFS 8064 test -z "$as_dir" && as_dir=. 8065 for ac_exec_ext in '' $ac_executable_extensions; do 8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8067 ac_cv_prog_LEX="$ac_prog" 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8069 break 2 8070 fi 8071done 8072 done 8073IFS=$as_save_IFS 8074 8075fi 8076fi 8077LEX=$ac_cv_prog_LEX 8078if test -n "$LEX"; then 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 8080$as_echo "$LEX" >&6; } 8081else 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8083$as_echo "no" >&6; } 8084fi 8085 8086 8087 test -n "$LEX" && break 8088done 8089test -n "$LEX" || LEX="$MISSING flex" 8090 8091case " $build_configdirs " in 8092 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; 8093 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; 8094esac 8095 8096for ac_prog in flex 8097do 8098 # Extract the first word of "$ac_prog", so it can be a program name with args. 8099set dummy $ac_prog; ac_word=$2 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8101$as_echo_n "checking for $ac_word... " >&6; } 8102if ${ac_cv_prog_FLEX+:} false; then : 8103 $as_echo_n "(cached) " >&6 8104else 8105 if test -n "$FLEX"; then 8106 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 8107else 8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8109for as_dir in $PATH 8110do 8111 IFS=$as_save_IFS 8112 test -z "$as_dir" && as_dir=. 8113 for ac_exec_ext in '' $ac_executable_extensions; do 8114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8115 ac_cv_prog_FLEX="$ac_prog" 8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8117 break 2 8118 fi 8119done 8120 done 8121IFS=$as_save_IFS 8122 8123fi 8124fi 8125FLEX=$ac_cv_prog_FLEX 8126if test -n "$FLEX"; then 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 8128$as_echo "$FLEX" >&6; } 8129else 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8131$as_echo "no" >&6; } 8132fi 8133 8134 8135 test -n "$FLEX" && break 8136done 8137test -n "$FLEX" || FLEX="$MISSING flex" 8138 8139case " $build_configdirs " in 8140 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; 8141esac 8142 8143for ac_prog in makeinfo 8144do 8145 # Extract the first word of "$ac_prog", so it can be a program name with args. 8146set dummy $ac_prog; ac_word=$2 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8148$as_echo_n "checking for $ac_word... " >&6; } 8149if ${ac_cv_prog_MAKEINFO+:} false; then : 8150 $as_echo_n "(cached) " >&6 8151else 8152 if test -n "$MAKEINFO"; then 8153 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 8154else 8155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8156for as_dir in $PATH 8157do 8158 IFS=$as_save_IFS 8159 test -z "$as_dir" && as_dir=. 8160 for ac_exec_ext in '' $ac_executable_extensions; do 8161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8162 ac_cv_prog_MAKEINFO="$ac_prog" 8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8164 break 2 8165 fi 8166done 8167 done 8168IFS=$as_save_IFS 8169 8170fi 8171fi 8172MAKEINFO=$ac_cv_prog_MAKEINFO 8173if test -n "$MAKEINFO"; then 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 8175$as_echo "$MAKEINFO" >&6; } 8176else 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8178$as_echo "no" >&6; } 8179fi 8180 8181 8182 test -n "$MAKEINFO" && break 8183done 8184test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" 8185 8186case " $build_configdirs " in 8187 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; 8188 *) 8189 8190 # For an installed makeinfo, we require it to be from texinfo 4.7 or 8191 # higher, else we use the "missing" dummy. 8192 if ${MAKEINFO} --version \ 8193 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then 8194 : 8195 else 8196 MAKEINFO="$MISSING makeinfo" 8197 fi 8198 ;; 8199 8200esac 8201 8202# FIXME: expect and dejagnu may become build tools? 8203 8204for ac_prog in expect 8205do 8206 # Extract the first word of "$ac_prog", so it can be a program name with args. 8207set dummy $ac_prog; ac_word=$2 8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8209$as_echo_n "checking for $ac_word... " >&6; } 8210if ${ac_cv_prog_EXPECT+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 if test -n "$EXPECT"; then 8214 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. 8215else 8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8217for as_dir in $PATH 8218do 8219 IFS=$as_save_IFS 8220 test -z "$as_dir" && as_dir=. 8221 for ac_exec_ext in '' $ac_executable_extensions; do 8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8223 ac_cv_prog_EXPECT="$ac_prog" 8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8225 break 2 8226 fi 8227done 8228 done 8229IFS=$as_save_IFS 8230 8231fi 8232fi 8233EXPECT=$ac_cv_prog_EXPECT 8234if test -n "$EXPECT"; then 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 8236$as_echo "$EXPECT" >&6; } 8237else 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8239$as_echo "no" >&6; } 8240fi 8241 8242 8243 test -n "$EXPECT" && break 8244done 8245test -n "$EXPECT" || EXPECT="expect" 8246 8247case " $configdirs " in 8248 *" expect "*) 8249 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' 8250 ;; 8251esac 8252 8253for ac_prog in runtest 8254do 8255 # Extract the first word of "$ac_prog", so it can be a program name with args. 8256set dummy $ac_prog; ac_word=$2 8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8258$as_echo_n "checking for $ac_word... " >&6; } 8259if ${ac_cv_prog_RUNTEST+:} false; then : 8260 $as_echo_n "(cached) " >&6 8261else 8262 if test -n "$RUNTEST"; then 8263 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. 8264else 8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8266for as_dir in $PATH 8267do 8268 IFS=$as_save_IFS 8269 test -z "$as_dir" && as_dir=. 8270 for ac_exec_ext in '' $ac_executable_extensions; do 8271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8272 ac_cv_prog_RUNTEST="$ac_prog" 8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8274 break 2 8275 fi 8276done 8277 done 8278IFS=$as_save_IFS 8279 8280fi 8281fi 8282RUNTEST=$ac_cv_prog_RUNTEST 8283if test -n "$RUNTEST"; then 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 8285$as_echo "$RUNTEST" >&6; } 8286else 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8288$as_echo "no" >&6; } 8289fi 8290 8291 8292 test -n "$RUNTEST" && break 8293done 8294test -n "$RUNTEST" || RUNTEST="runtest" 8295 8296case " $configdirs " in 8297 *" dejagnu "*) 8298 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' 8299 ;; 8300esac 8301 8302 8303# Host tools. 8304ncn_tool_prefix= 8305test -n "$host_alias" && ncn_tool_prefix=$host_alias- 8306ncn_target_tool_prefix= 8307test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- 8308 8309 8310 8311if test -n "$AR"; then 8312 ac_cv_prog_AR=$AR 8313elif test -n "$ac_cv_prog_AR"; then 8314 AR=$ac_cv_prog_AR 8315fi 8316 8317if test -n "$ac_cv_prog_AR"; then 8318 for ncn_progname in ar; do 8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8320set dummy ${ncn_progname}; ac_word=$2 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8322$as_echo_n "checking for $ac_word... " >&6; } 8323if ${ac_cv_prog_AR+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 if test -n "$AR"; then 8327 ac_cv_prog_AR="$AR" # Let the user override the test. 8328else 8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8330for as_dir in $PATH 8331do 8332 IFS=$as_save_IFS 8333 test -z "$as_dir" && as_dir=. 8334 for ac_exec_ext in '' $ac_executable_extensions; do 8335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8336 ac_cv_prog_AR="${ncn_progname}" 8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8338 break 2 8339 fi 8340done 8341 done 8342IFS=$as_save_IFS 8343 8344fi 8345fi 8346AR=$ac_cv_prog_AR 8347if test -n "$AR"; then 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8349$as_echo "$AR" >&6; } 8350else 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8352$as_echo "no" >&6; } 8353fi 8354 8355 8356 done 8357fi 8358 8359for ncn_progname in ar; do 8360 if test -n "$ncn_tool_prefix"; then 8361 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8362set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8364$as_echo_n "checking for $ac_word... " >&6; } 8365if ${ac_cv_prog_AR+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 if test -n "$AR"; then 8369 ac_cv_prog_AR="$AR" # Let the user override the test. 8370else 8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8372for as_dir in $PATH 8373do 8374 IFS=$as_save_IFS 8375 test -z "$as_dir" && as_dir=. 8376 for ac_exec_ext in '' $ac_executable_extensions; do 8377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8378 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" 8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8380 break 2 8381 fi 8382done 8383 done 8384IFS=$as_save_IFS 8385 8386fi 8387fi 8388AR=$ac_cv_prog_AR 8389if test -n "$AR"; then 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8391$as_echo "$AR" >&6; } 8392else 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8394$as_echo "no" >&6; } 8395fi 8396 8397 8398 fi 8399 if test -z "$ac_cv_prog_AR" && test $build = $host ; then 8400 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8401set dummy ${ncn_progname}; ac_word=$2 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8403$as_echo_n "checking for $ac_word... " >&6; } 8404if ${ac_cv_prog_AR+:} false; then : 8405 $as_echo_n "(cached) " >&6 8406else 8407 if test -n "$AR"; then 8408 ac_cv_prog_AR="$AR" # Let the user override the test. 8409else 8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8411for as_dir in $PATH 8412do 8413 IFS=$as_save_IFS 8414 test -z "$as_dir" && as_dir=. 8415 for ac_exec_ext in '' $ac_executable_extensions; do 8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8417 ac_cv_prog_AR="${ncn_progname}" 8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8419 break 2 8420 fi 8421done 8422 done 8423IFS=$as_save_IFS 8424 8425fi 8426fi 8427AR=$ac_cv_prog_AR 8428if test -n "$AR"; then 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8430$as_echo "$AR" >&6; } 8431else 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8433$as_echo "no" >&6; } 8434fi 8435 8436 8437 fi 8438 test -n "$ac_cv_prog_AR" && break 8439done 8440 8441if test -z "$ac_cv_prog_AR" ; then 8442 set dummy ar 8443 if test $build = $host ; then 8444 AR="$2" 8445 else 8446 AR="${ncn_tool_prefix}$2" 8447 fi 8448fi 8449 8450 8451 8452if test -n "$AS"; then 8453 ac_cv_prog_AS=$AS 8454elif test -n "$ac_cv_prog_AS"; then 8455 AS=$ac_cv_prog_AS 8456fi 8457 8458if test -n "$ac_cv_prog_AS"; then 8459 for ncn_progname in as; do 8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8461set dummy ${ncn_progname}; 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_AS+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 if test -n "$AS"; then 8468 ac_cv_prog_AS="$AS" # 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_AS="${ncn_progname}" 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 8485fi 8486fi 8487AS=$ac_cv_prog_AS 8488if test -n "$AS"; then 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8490$as_echo "$AS" >&6; } 8491else 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8493$as_echo "no" >&6; } 8494fi 8495 8496 8497 done 8498fi 8499 8500for ncn_progname in as; do 8501 if test -n "$ncn_tool_prefix"; then 8502 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8503set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8505$as_echo_n "checking for $ac_word... " >&6; } 8506if ${ac_cv_prog_AS+:} false; then : 8507 $as_echo_n "(cached) " >&6 8508else 8509 if test -n "$AS"; then 8510 ac_cv_prog_AS="$AS" # Let the user override the test. 8511else 8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8513for as_dir in $PATH 8514do 8515 IFS=$as_save_IFS 8516 test -z "$as_dir" && as_dir=. 8517 for ac_exec_ext in '' $ac_executable_extensions; do 8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8519 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8521 break 2 8522 fi 8523done 8524 done 8525IFS=$as_save_IFS 8526 8527fi 8528fi 8529AS=$ac_cv_prog_AS 8530if test -n "$AS"; then 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8532$as_echo "$AS" >&6; } 8533else 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8535$as_echo "no" >&6; } 8536fi 8537 8538 8539 fi 8540 if test -z "$ac_cv_prog_AS" && test $build = $host ; then 8541 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8542set dummy ${ncn_progname}; ac_word=$2 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8544$as_echo_n "checking for $ac_word... " >&6; } 8545if ${ac_cv_prog_AS+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 if test -n "$AS"; then 8549 ac_cv_prog_AS="$AS" # Let the user override the test. 8550else 8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8552for as_dir in $PATH 8553do 8554 IFS=$as_save_IFS 8555 test -z "$as_dir" && as_dir=. 8556 for ac_exec_ext in '' $ac_executable_extensions; do 8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8558 ac_cv_prog_AS="${ncn_progname}" 8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8560 break 2 8561 fi 8562done 8563 done 8564IFS=$as_save_IFS 8565 8566fi 8567fi 8568AS=$ac_cv_prog_AS 8569if test -n "$AS"; then 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8571$as_echo "$AS" >&6; } 8572else 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8574$as_echo "no" >&6; } 8575fi 8576 8577 8578 fi 8579 test -n "$ac_cv_prog_AS" && break 8580done 8581 8582if test -z "$ac_cv_prog_AS" ; then 8583 set dummy as 8584 if test $build = $host ; then 8585 AS="$2" 8586 else 8587 AS="${ncn_tool_prefix}$2" 8588 fi 8589fi 8590 8591 8592 8593if test -n "$DLLTOOL"; then 8594 ac_cv_prog_DLLTOOL=$DLLTOOL 8595elif test -n "$ac_cv_prog_DLLTOOL"; then 8596 DLLTOOL=$ac_cv_prog_DLLTOOL 8597fi 8598 8599if test -n "$ac_cv_prog_DLLTOOL"; then 8600 for ncn_progname in dlltool; do 8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8602set dummy ${ncn_progname}; ac_word=$2 8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8604$as_echo_n "checking for $ac_word... " >&6; } 8605if ${ac_cv_prog_DLLTOOL+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 if test -n "$DLLTOOL"; then 8609 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8610else 8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8612for as_dir in $PATH 8613do 8614 IFS=$as_save_IFS 8615 test -z "$as_dir" && as_dir=. 8616 for ac_exec_ext in '' $ac_executable_extensions; do 8617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8618 ac_cv_prog_DLLTOOL="${ncn_progname}" 8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8620 break 2 8621 fi 8622done 8623 done 8624IFS=$as_save_IFS 8625 8626fi 8627fi 8628DLLTOOL=$ac_cv_prog_DLLTOOL 8629if test -n "$DLLTOOL"; then 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8631$as_echo "$DLLTOOL" >&6; } 8632else 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8634$as_echo "no" >&6; } 8635fi 8636 8637 8638 done 8639fi 8640 8641for ncn_progname in dlltool; do 8642 if test -n "$ncn_tool_prefix"; then 8643 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8644set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8646$as_echo_n "checking for $ac_word... " >&6; } 8647if ${ac_cv_prog_DLLTOOL+:} false; then : 8648 $as_echo_n "(cached) " >&6 8649else 8650 if test -n "$DLLTOOL"; then 8651 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8652else 8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8654for as_dir in $PATH 8655do 8656 IFS=$as_save_IFS 8657 test -z "$as_dir" && as_dir=. 8658 for ac_exec_ext in '' $ac_executable_extensions; do 8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8660 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" 8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8662 break 2 8663 fi 8664done 8665 done 8666IFS=$as_save_IFS 8667 8668fi 8669fi 8670DLLTOOL=$ac_cv_prog_DLLTOOL 8671if test -n "$DLLTOOL"; then 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8673$as_echo "$DLLTOOL" >&6; } 8674else 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8676$as_echo "no" >&6; } 8677fi 8678 8679 8680 fi 8681 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then 8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8683set dummy ${ncn_progname}; ac_word=$2 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8685$as_echo_n "checking for $ac_word... " >&6; } 8686if ${ac_cv_prog_DLLTOOL+:} false; then : 8687 $as_echo_n "(cached) " >&6 8688else 8689 if test -n "$DLLTOOL"; then 8690 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8691else 8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8693for as_dir in $PATH 8694do 8695 IFS=$as_save_IFS 8696 test -z "$as_dir" && as_dir=. 8697 for ac_exec_ext in '' $ac_executable_extensions; do 8698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8699 ac_cv_prog_DLLTOOL="${ncn_progname}" 8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8701 break 2 8702 fi 8703done 8704 done 8705IFS=$as_save_IFS 8706 8707fi 8708fi 8709DLLTOOL=$ac_cv_prog_DLLTOOL 8710if test -n "$DLLTOOL"; then 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8712$as_echo "$DLLTOOL" >&6; } 8713else 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8715$as_echo "no" >&6; } 8716fi 8717 8718 8719 fi 8720 test -n "$ac_cv_prog_DLLTOOL" && break 8721done 8722 8723if test -z "$ac_cv_prog_DLLTOOL" ; then 8724 set dummy dlltool 8725 if test $build = $host ; then 8726 DLLTOOL="$2" 8727 else 8728 DLLTOOL="${ncn_tool_prefix}$2" 8729 fi 8730fi 8731 8732 8733 8734if test -n "$DSYMUTIL"; then 8735 ac_cv_prog_DSYMUTIL=$DSYMUTIL 8736elif test -n "$ac_cv_prog_DSYMUTIL"; then 8737 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8738fi 8739 8740if test -n "$ac_cv_prog_DSYMUTIL"; then 8741 for ncn_progname in dsymutil; do 8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8743set dummy ${ncn_progname}; ac_word=$2 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8745$as_echo_n "checking for $ac_word... " >&6; } 8746if ${ac_cv_prog_DSYMUTIL+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748else 8749 if test -n "$DSYMUTIL"; then 8750 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8751else 8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8753for as_dir in $PATH 8754do 8755 IFS=$as_save_IFS 8756 test -z "$as_dir" && as_dir=. 8757 for ac_exec_ext in '' $ac_executable_extensions; do 8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8759 ac_cv_prog_DSYMUTIL="${ncn_progname}" 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8761 break 2 8762 fi 8763done 8764 done 8765IFS=$as_save_IFS 8766 8767fi 8768fi 8769DSYMUTIL=$ac_cv_prog_DSYMUTIL 8770if test -n "$DSYMUTIL"; then 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8772$as_echo "$DSYMUTIL" >&6; } 8773else 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8775$as_echo "no" >&6; } 8776fi 8777 8778 8779 done 8780fi 8781 8782for ncn_progname in dsymutil; do 8783 if test -n "$ncn_tool_prefix"; then 8784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8785set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8787$as_echo_n "checking for $ac_word... " >&6; } 8788if ${ac_cv_prog_DSYMUTIL+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 if test -n "$DSYMUTIL"; then 8792 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8793else 8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8795for as_dir in $PATH 8796do 8797 IFS=$as_save_IFS 8798 test -z "$as_dir" && as_dir=. 8799 for ac_exec_ext in '' $ac_executable_extensions; do 8800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8801 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8803 break 2 8804 fi 8805done 8806 done 8807IFS=$as_save_IFS 8808 8809fi 8810fi 8811DSYMUTIL=$ac_cv_prog_DSYMUTIL 8812if test -n "$DSYMUTIL"; then 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8814$as_echo "$DSYMUTIL" >&6; } 8815else 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8817$as_echo "no" >&6; } 8818fi 8819 8820 8821 fi 8822 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then 8823 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8824set dummy ${ncn_progname}; ac_word=$2 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8826$as_echo_n "checking for $ac_word... " >&6; } 8827if ${ac_cv_prog_DSYMUTIL+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 if test -n "$DSYMUTIL"; then 8831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8832else 8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8834for as_dir in $PATH 8835do 8836 IFS=$as_save_IFS 8837 test -z "$as_dir" && as_dir=. 8838 for ac_exec_ext in '' $ac_executable_extensions; do 8839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8840 ac_cv_prog_DSYMUTIL="${ncn_progname}" 8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8842 break 2 8843 fi 8844done 8845 done 8846IFS=$as_save_IFS 8847 8848fi 8849fi 8850DSYMUTIL=$ac_cv_prog_DSYMUTIL 8851if test -n "$DSYMUTIL"; then 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8853$as_echo "$DSYMUTIL" >&6; } 8854else 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8856$as_echo "no" >&6; } 8857fi 8858 8859 8860 fi 8861 test -n "$ac_cv_prog_DSYMUTIL" && break 8862done 8863 8864if test -z "$ac_cv_prog_DSYMUTIL" ; then 8865 set dummy dsymutil 8866 if test $build = $host ; then 8867 DSYMUTIL="$2" 8868 else 8869 DSYMUTIL="${ncn_tool_prefix}$2" 8870 fi 8871fi 8872 8873 8874 8875if test -n "$LD"; then 8876 ac_cv_prog_LD=$LD 8877elif test -n "$ac_cv_prog_LD"; then 8878 LD=$ac_cv_prog_LD 8879fi 8880 8881if test -n "$ac_cv_prog_LD"; then 8882 for ncn_progname in ld; do 8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8884set dummy ${ncn_progname}; ac_word=$2 8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8886$as_echo_n "checking for $ac_word... " >&6; } 8887if ${ac_cv_prog_LD+:} false; then : 8888 $as_echo_n "(cached) " >&6 8889else 8890 if test -n "$LD"; then 8891 ac_cv_prog_LD="$LD" # Let the user override the test. 8892else 8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8894for as_dir in $PATH 8895do 8896 IFS=$as_save_IFS 8897 test -z "$as_dir" && as_dir=. 8898 for ac_exec_ext in '' $ac_executable_extensions; do 8899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8900 ac_cv_prog_LD="${ncn_progname}" 8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8902 break 2 8903 fi 8904done 8905 done 8906IFS=$as_save_IFS 8907 8908fi 8909fi 8910LD=$ac_cv_prog_LD 8911if test -n "$LD"; then 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8913$as_echo "$LD" >&6; } 8914else 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8916$as_echo "no" >&6; } 8917fi 8918 8919 8920 done 8921fi 8922 8923for ncn_progname in ld; do 8924 if test -n "$ncn_tool_prefix"; then 8925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8926set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8928$as_echo_n "checking for $ac_word... " >&6; } 8929if ${ac_cv_prog_LD+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 if test -n "$LD"; then 8933 ac_cv_prog_LD="$LD" # Let the user override the test. 8934else 8935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8936for as_dir in $PATH 8937do 8938 IFS=$as_save_IFS 8939 test -z "$as_dir" && as_dir=. 8940 for ac_exec_ext in '' $ac_executable_extensions; do 8941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8942 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" 8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8944 break 2 8945 fi 8946done 8947 done 8948IFS=$as_save_IFS 8949 8950fi 8951fi 8952LD=$ac_cv_prog_LD 8953if test -n "$LD"; then 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8955$as_echo "$LD" >&6; } 8956else 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8958$as_echo "no" >&6; } 8959fi 8960 8961 8962 fi 8963 if test -z "$ac_cv_prog_LD" && test $build = $host ; then 8964 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8965set dummy ${ncn_progname}; ac_word=$2 8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8967$as_echo_n "checking for $ac_word... " >&6; } 8968if ${ac_cv_prog_LD+:} false; then : 8969 $as_echo_n "(cached) " >&6 8970else 8971 if test -n "$LD"; then 8972 ac_cv_prog_LD="$LD" # Let the user override the test. 8973else 8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8975for as_dir in $PATH 8976do 8977 IFS=$as_save_IFS 8978 test -z "$as_dir" && as_dir=. 8979 for ac_exec_ext in '' $ac_executable_extensions; do 8980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8981 ac_cv_prog_LD="${ncn_progname}" 8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8983 break 2 8984 fi 8985done 8986 done 8987IFS=$as_save_IFS 8988 8989fi 8990fi 8991LD=$ac_cv_prog_LD 8992if test -n "$LD"; then 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8994$as_echo "$LD" >&6; } 8995else 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8997$as_echo "no" >&6; } 8998fi 8999 9000 9001 fi 9002 test -n "$ac_cv_prog_LD" && break 9003done 9004 9005if test -z "$ac_cv_prog_LD" ; then 9006 set dummy ld 9007 if test $build = $host ; then 9008 LD="$2" 9009 else 9010 LD="${ncn_tool_prefix}$2" 9011 fi 9012fi 9013 9014 9015 9016if test -n "$LIPO"; then 9017 ac_cv_prog_LIPO=$LIPO 9018elif test -n "$ac_cv_prog_LIPO"; then 9019 LIPO=$ac_cv_prog_LIPO 9020fi 9021 9022if test -n "$ac_cv_prog_LIPO"; then 9023 for ncn_progname in lipo; do 9024 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9025set dummy ${ncn_progname}; ac_word=$2 9026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9027$as_echo_n "checking for $ac_word... " >&6; } 9028if ${ac_cv_prog_LIPO+:} false; then : 9029 $as_echo_n "(cached) " >&6 9030else 9031 if test -n "$LIPO"; then 9032 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9033else 9034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9035for as_dir in $PATH 9036do 9037 IFS=$as_save_IFS 9038 test -z "$as_dir" && as_dir=. 9039 for ac_exec_ext in '' $ac_executable_extensions; do 9040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9041 ac_cv_prog_LIPO="${ncn_progname}" 9042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9043 break 2 9044 fi 9045done 9046 done 9047IFS=$as_save_IFS 9048 9049fi 9050fi 9051LIPO=$ac_cv_prog_LIPO 9052if test -n "$LIPO"; then 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9054$as_echo "$LIPO" >&6; } 9055else 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9057$as_echo "no" >&6; } 9058fi 9059 9060 9061 done 9062fi 9063 9064for ncn_progname in lipo; do 9065 if test -n "$ncn_tool_prefix"; then 9066 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9067set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9069$as_echo_n "checking for $ac_word... " >&6; } 9070if ${ac_cv_prog_LIPO+:} false; then : 9071 $as_echo_n "(cached) " >&6 9072else 9073 if test -n "$LIPO"; then 9074 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9075else 9076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9077for as_dir in $PATH 9078do 9079 IFS=$as_save_IFS 9080 test -z "$as_dir" && as_dir=. 9081 for ac_exec_ext in '' $ac_executable_extensions; do 9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9083 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" 9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9085 break 2 9086 fi 9087done 9088 done 9089IFS=$as_save_IFS 9090 9091fi 9092fi 9093LIPO=$ac_cv_prog_LIPO 9094if test -n "$LIPO"; then 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9096$as_echo "$LIPO" >&6; } 9097else 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9099$as_echo "no" >&6; } 9100fi 9101 9102 9103 fi 9104 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then 9105 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9106set dummy ${ncn_progname}; ac_word=$2 9107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9108$as_echo_n "checking for $ac_word... " >&6; } 9109if ${ac_cv_prog_LIPO+:} false; then : 9110 $as_echo_n "(cached) " >&6 9111else 9112 if test -n "$LIPO"; then 9113 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9114else 9115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9116for as_dir in $PATH 9117do 9118 IFS=$as_save_IFS 9119 test -z "$as_dir" && as_dir=. 9120 for ac_exec_ext in '' $ac_executable_extensions; do 9121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9122 ac_cv_prog_LIPO="${ncn_progname}" 9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9124 break 2 9125 fi 9126done 9127 done 9128IFS=$as_save_IFS 9129 9130fi 9131fi 9132LIPO=$ac_cv_prog_LIPO 9133if test -n "$LIPO"; then 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9135$as_echo "$LIPO" >&6; } 9136else 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9138$as_echo "no" >&6; } 9139fi 9140 9141 9142 fi 9143 test -n "$ac_cv_prog_LIPO" && break 9144done 9145 9146if test -z "$ac_cv_prog_LIPO" ; then 9147 set dummy lipo 9148 if test $build = $host ; then 9149 LIPO="$2" 9150 else 9151 LIPO="${ncn_tool_prefix}$2" 9152 fi 9153fi 9154 9155 9156 9157if test -n "$NM"; then 9158 ac_cv_prog_NM=$NM 9159elif test -n "$ac_cv_prog_NM"; then 9160 NM=$ac_cv_prog_NM 9161fi 9162 9163if test -n "$ac_cv_prog_NM"; then 9164 for ncn_progname in nm; do 9165 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9166set dummy ${ncn_progname}; ac_word=$2 9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9168$as_echo_n "checking for $ac_word... " >&6; } 9169if ${ac_cv_prog_NM+:} false; then : 9170 $as_echo_n "(cached) " >&6 9171else 9172 if test -n "$NM"; then 9173 ac_cv_prog_NM="$NM" # Let the user override the test. 9174else 9175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9176for as_dir in $PATH 9177do 9178 IFS=$as_save_IFS 9179 test -z "$as_dir" && as_dir=. 9180 for ac_exec_ext in '' $ac_executable_extensions; do 9181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9182 ac_cv_prog_NM="${ncn_progname}" 9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9184 break 2 9185 fi 9186done 9187 done 9188IFS=$as_save_IFS 9189 9190fi 9191fi 9192NM=$ac_cv_prog_NM 9193if test -n "$NM"; then 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9195$as_echo "$NM" >&6; } 9196else 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9198$as_echo "no" >&6; } 9199fi 9200 9201 9202 done 9203fi 9204 9205for ncn_progname in nm; do 9206 if test -n "$ncn_tool_prefix"; then 9207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9208set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9210$as_echo_n "checking for $ac_word... " >&6; } 9211if ${ac_cv_prog_NM+:} false; then : 9212 $as_echo_n "(cached) " >&6 9213else 9214 if test -n "$NM"; then 9215 ac_cv_prog_NM="$NM" # Let the user override the test. 9216else 9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9218for as_dir in $PATH 9219do 9220 IFS=$as_save_IFS 9221 test -z "$as_dir" && as_dir=. 9222 for ac_exec_ext in '' $ac_executable_extensions; do 9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9224 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" 9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9226 break 2 9227 fi 9228done 9229 done 9230IFS=$as_save_IFS 9231 9232fi 9233fi 9234NM=$ac_cv_prog_NM 9235if test -n "$NM"; then 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9237$as_echo "$NM" >&6; } 9238else 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9240$as_echo "no" >&6; } 9241fi 9242 9243 9244 fi 9245 if test -z "$ac_cv_prog_NM" && test $build = $host ; then 9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9247set dummy ${ncn_progname}; ac_word=$2 9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9249$as_echo_n "checking for $ac_word... " >&6; } 9250if ${ac_cv_prog_NM+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252else 9253 if test -n "$NM"; then 9254 ac_cv_prog_NM="$NM" # Let the user override the test. 9255else 9256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9257for as_dir in $PATH 9258do 9259 IFS=$as_save_IFS 9260 test -z "$as_dir" && as_dir=. 9261 for ac_exec_ext in '' $ac_executable_extensions; do 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9263 ac_cv_prog_NM="${ncn_progname}" 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9265 break 2 9266 fi 9267done 9268 done 9269IFS=$as_save_IFS 9270 9271fi 9272fi 9273NM=$ac_cv_prog_NM 9274if test -n "$NM"; then 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9276$as_echo "$NM" >&6; } 9277else 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9279$as_echo "no" >&6; } 9280fi 9281 9282 9283 fi 9284 test -n "$ac_cv_prog_NM" && break 9285done 9286 9287if test -z "$ac_cv_prog_NM" ; then 9288 set dummy nm 9289 if test $build = $host ; then 9290 NM="$2" 9291 else 9292 NM="${ncn_tool_prefix}$2" 9293 fi 9294fi 9295 9296 9297 9298if test -n "$RANLIB"; then 9299 ac_cv_prog_RANLIB=$RANLIB 9300elif test -n "$ac_cv_prog_RANLIB"; then 9301 RANLIB=$ac_cv_prog_RANLIB 9302fi 9303 9304if test -n "$ac_cv_prog_RANLIB"; then 9305 for ncn_progname in ranlib; do 9306 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9307set dummy ${ncn_progname}; ac_word=$2 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9309$as_echo_n "checking for $ac_word... " >&6; } 9310if ${ac_cv_prog_RANLIB+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 if test -n "$RANLIB"; then 9314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9315else 9316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9317for as_dir in $PATH 9318do 9319 IFS=$as_save_IFS 9320 test -z "$as_dir" && as_dir=. 9321 for ac_exec_ext in '' $ac_executable_extensions; do 9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9323 ac_cv_prog_RANLIB="${ncn_progname}" 9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9325 break 2 9326 fi 9327done 9328 done 9329IFS=$as_save_IFS 9330 9331fi 9332fi 9333RANLIB=$ac_cv_prog_RANLIB 9334if test -n "$RANLIB"; then 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9336$as_echo "$RANLIB" >&6; } 9337else 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9339$as_echo "no" >&6; } 9340fi 9341 9342 9343 done 9344fi 9345 9346for ncn_progname in ranlib; do 9347 if test -n "$ncn_tool_prefix"; then 9348 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9349set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9351$as_echo_n "checking for $ac_word... " >&6; } 9352if ${ac_cv_prog_RANLIB+:} false; then : 9353 $as_echo_n "(cached) " >&6 9354else 9355 if test -n "$RANLIB"; then 9356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9357else 9358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9359for as_dir in $PATH 9360do 9361 IFS=$as_save_IFS 9362 test -z "$as_dir" && as_dir=. 9363 for ac_exec_ext in '' $ac_executable_extensions; do 9364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9365 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" 9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9367 break 2 9368 fi 9369done 9370 done 9371IFS=$as_save_IFS 9372 9373fi 9374fi 9375RANLIB=$ac_cv_prog_RANLIB 9376if test -n "$RANLIB"; then 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9378$as_echo "$RANLIB" >&6; } 9379else 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9381$as_echo "no" >&6; } 9382fi 9383 9384 9385 fi 9386 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then 9387 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9388set dummy ${ncn_progname}; ac_word=$2 9389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9390$as_echo_n "checking for $ac_word... " >&6; } 9391if ${ac_cv_prog_RANLIB+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 if test -n "$RANLIB"; then 9395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9396else 9397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9398for as_dir in $PATH 9399do 9400 IFS=$as_save_IFS 9401 test -z "$as_dir" && as_dir=. 9402 for ac_exec_ext in '' $ac_executable_extensions; do 9403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9404 ac_cv_prog_RANLIB="${ncn_progname}" 9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9406 break 2 9407 fi 9408done 9409 done 9410IFS=$as_save_IFS 9411 9412fi 9413fi 9414RANLIB=$ac_cv_prog_RANLIB 9415if test -n "$RANLIB"; then 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9417$as_echo "$RANLIB" >&6; } 9418else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9420$as_echo "no" >&6; } 9421fi 9422 9423 9424 fi 9425 test -n "$ac_cv_prog_RANLIB" && break 9426done 9427 9428if test -z "$ac_cv_prog_RANLIB" ; then 9429 RANLIB="true" 9430fi 9431 9432 9433 9434if test -n "$STRIP"; then 9435 ac_cv_prog_STRIP=$STRIP 9436elif test -n "$ac_cv_prog_STRIP"; then 9437 STRIP=$ac_cv_prog_STRIP 9438fi 9439 9440if test -n "$ac_cv_prog_STRIP"; then 9441 for ncn_progname in strip; do 9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9443set dummy ${ncn_progname}; ac_word=$2 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9445$as_echo_n "checking for $ac_word... " >&6; } 9446if ${ac_cv_prog_STRIP+:} false; then : 9447 $as_echo_n "(cached) " >&6 9448else 9449 if test -n "$STRIP"; then 9450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9451else 9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9453for as_dir in $PATH 9454do 9455 IFS=$as_save_IFS 9456 test -z "$as_dir" && as_dir=. 9457 for ac_exec_ext in '' $ac_executable_extensions; do 9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9459 ac_cv_prog_STRIP="${ncn_progname}" 9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9461 break 2 9462 fi 9463done 9464 done 9465IFS=$as_save_IFS 9466 9467fi 9468fi 9469STRIP=$ac_cv_prog_STRIP 9470if test -n "$STRIP"; then 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9472$as_echo "$STRIP" >&6; } 9473else 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9475$as_echo "no" >&6; } 9476fi 9477 9478 9479 done 9480fi 9481 9482for ncn_progname in strip; do 9483 if test -n "$ncn_tool_prefix"; then 9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9487$as_echo_n "checking for $ac_word... " >&6; } 9488if ${ac_cv_prog_STRIP+:} false; then : 9489 $as_echo_n "(cached) " >&6 9490else 9491 if test -n "$STRIP"; then 9492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9493else 9494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9495for as_dir in $PATH 9496do 9497 IFS=$as_save_IFS 9498 test -z "$as_dir" && as_dir=. 9499 for ac_exec_ext in '' $ac_executable_extensions; do 9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9501 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" 9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9503 break 2 9504 fi 9505done 9506 done 9507IFS=$as_save_IFS 9508 9509fi 9510fi 9511STRIP=$ac_cv_prog_STRIP 9512if test -n "$STRIP"; then 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9514$as_echo "$STRIP" >&6; } 9515else 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9517$as_echo "no" >&6; } 9518fi 9519 9520 9521 fi 9522 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then 9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9524set dummy ${ncn_progname}; ac_word=$2 9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9526$as_echo_n "checking for $ac_word... " >&6; } 9527if ${ac_cv_prog_STRIP+:} false; then : 9528 $as_echo_n "(cached) " >&6 9529else 9530 if test -n "$STRIP"; then 9531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9532else 9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9534for as_dir in $PATH 9535do 9536 IFS=$as_save_IFS 9537 test -z "$as_dir" && as_dir=. 9538 for ac_exec_ext in '' $ac_executable_extensions; do 9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9540 ac_cv_prog_STRIP="${ncn_progname}" 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9542 break 2 9543 fi 9544done 9545 done 9546IFS=$as_save_IFS 9547 9548fi 9549fi 9550STRIP=$ac_cv_prog_STRIP 9551if test -n "$STRIP"; then 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9553$as_echo "$STRIP" >&6; } 9554else 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9556$as_echo "no" >&6; } 9557fi 9558 9559 9560 fi 9561 test -n "$ac_cv_prog_STRIP" && break 9562done 9563 9564if test -z "$ac_cv_prog_STRIP" ; then 9565 STRIP="true" 9566fi 9567 9568 9569 9570if test -n "$WINDRES"; then 9571 ac_cv_prog_WINDRES=$WINDRES 9572elif test -n "$ac_cv_prog_WINDRES"; then 9573 WINDRES=$ac_cv_prog_WINDRES 9574fi 9575 9576if test -n "$ac_cv_prog_WINDRES"; then 9577 for ncn_progname in windres; do 9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9579set dummy ${ncn_progname}; ac_word=$2 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9581$as_echo_n "checking for $ac_word... " >&6; } 9582if ${ac_cv_prog_WINDRES+:} false; then : 9583 $as_echo_n "(cached) " >&6 9584else 9585 if test -n "$WINDRES"; then 9586 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9587else 9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9589for as_dir in $PATH 9590do 9591 IFS=$as_save_IFS 9592 test -z "$as_dir" && as_dir=. 9593 for ac_exec_ext in '' $ac_executable_extensions; do 9594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9595 ac_cv_prog_WINDRES="${ncn_progname}" 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9597 break 2 9598 fi 9599done 9600 done 9601IFS=$as_save_IFS 9602 9603fi 9604fi 9605WINDRES=$ac_cv_prog_WINDRES 9606if test -n "$WINDRES"; then 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9608$as_echo "$WINDRES" >&6; } 9609else 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9611$as_echo "no" >&6; } 9612fi 9613 9614 9615 done 9616fi 9617 9618for ncn_progname in windres; do 9619 if test -n "$ncn_tool_prefix"; then 9620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9621set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9623$as_echo_n "checking for $ac_word... " >&6; } 9624if ${ac_cv_prog_WINDRES+:} false; then : 9625 $as_echo_n "(cached) " >&6 9626else 9627 if test -n "$WINDRES"; then 9628 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9629else 9630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9631for as_dir in $PATH 9632do 9633 IFS=$as_save_IFS 9634 test -z "$as_dir" && as_dir=. 9635 for ac_exec_ext in '' $ac_executable_extensions; do 9636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9637 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" 9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9639 break 2 9640 fi 9641done 9642 done 9643IFS=$as_save_IFS 9644 9645fi 9646fi 9647WINDRES=$ac_cv_prog_WINDRES 9648if test -n "$WINDRES"; then 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9650$as_echo "$WINDRES" >&6; } 9651else 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9653$as_echo "no" >&6; } 9654fi 9655 9656 9657 fi 9658 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then 9659 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9660set dummy ${ncn_progname}; ac_word=$2 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9662$as_echo_n "checking for $ac_word... " >&6; } 9663if ${ac_cv_prog_WINDRES+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 if test -n "$WINDRES"; then 9667 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9668else 9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9670for as_dir in $PATH 9671do 9672 IFS=$as_save_IFS 9673 test -z "$as_dir" && as_dir=. 9674 for ac_exec_ext in '' $ac_executable_extensions; do 9675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9676 ac_cv_prog_WINDRES="${ncn_progname}" 9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9678 break 2 9679 fi 9680done 9681 done 9682IFS=$as_save_IFS 9683 9684fi 9685fi 9686WINDRES=$ac_cv_prog_WINDRES 9687if test -n "$WINDRES"; then 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9689$as_echo "$WINDRES" >&6; } 9690else 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9692$as_echo "no" >&6; } 9693fi 9694 9695 9696 fi 9697 test -n "$ac_cv_prog_WINDRES" && break 9698done 9699 9700if test -z "$ac_cv_prog_WINDRES" ; then 9701 set dummy windres 9702 if test $build = $host ; then 9703 WINDRES="$2" 9704 else 9705 WINDRES="${ncn_tool_prefix}$2" 9706 fi 9707fi 9708 9709 9710 9711if test -n "$WINDMC"; then 9712 ac_cv_prog_WINDMC=$WINDMC 9713elif test -n "$ac_cv_prog_WINDMC"; then 9714 WINDMC=$ac_cv_prog_WINDMC 9715fi 9716 9717if test -n "$ac_cv_prog_WINDMC"; then 9718 for ncn_progname in windmc; do 9719 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9720set dummy ${ncn_progname}; ac_word=$2 9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9722$as_echo_n "checking for $ac_word... " >&6; } 9723if ${ac_cv_prog_WINDMC+:} false; then : 9724 $as_echo_n "(cached) " >&6 9725else 9726 if test -n "$WINDMC"; then 9727 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9728else 9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9730for as_dir in $PATH 9731do 9732 IFS=$as_save_IFS 9733 test -z "$as_dir" && as_dir=. 9734 for ac_exec_ext in '' $ac_executable_extensions; do 9735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9736 ac_cv_prog_WINDMC="${ncn_progname}" 9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9738 break 2 9739 fi 9740done 9741 done 9742IFS=$as_save_IFS 9743 9744fi 9745fi 9746WINDMC=$ac_cv_prog_WINDMC 9747if test -n "$WINDMC"; then 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9749$as_echo "$WINDMC" >&6; } 9750else 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9752$as_echo "no" >&6; } 9753fi 9754 9755 9756 done 9757fi 9758 9759for ncn_progname in windmc; do 9760 if test -n "$ncn_tool_prefix"; then 9761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9762set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9764$as_echo_n "checking for $ac_word... " >&6; } 9765if ${ac_cv_prog_WINDMC+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 if test -n "$WINDMC"; then 9769 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9770else 9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9772for as_dir in $PATH 9773do 9774 IFS=$as_save_IFS 9775 test -z "$as_dir" && as_dir=. 9776 for ac_exec_ext in '' $ac_executable_extensions; do 9777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9778 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" 9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9780 break 2 9781 fi 9782done 9783 done 9784IFS=$as_save_IFS 9785 9786fi 9787fi 9788WINDMC=$ac_cv_prog_WINDMC 9789if test -n "$WINDMC"; then 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9791$as_echo "$WINDMC" >&6; } 9792else 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9794$as_echo "no" >&6; } 9795fi 9796 9797 9798 fi 9799 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then 9800 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9801set dummy ${ncn_progname}; ac_word=$2 9802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9803$as_echo_n "checking for $ac_word... " >&6; } 9804if ${ac_cv_prog_WINDMC+:} false; then : 9805 $as_echo_n "(cached) " >&6 9806else 9807 if test -n "$WINDMC"; then 9808 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9809else 9810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9811for as_dir in $PATH 9812do 9813 IFS=$as_save_IFS 9814 test -z "$as_dir" && as_dir=. 9815 for ac_exec_ext in '' $ac_executable_extensions; do 9816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9817 ac_cv_prog_WINDMC="${ncn_progname}" 9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9819 break 2 9820 fi 9821done 9822 done 9823IFS=$as_save_IFS 9824 9825fi 9826fi 9827WINDMC=$ac_cv_prog_WINDMC 9828if test -n "$WINDMC"; then 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9830$as_echo "$WINDMC" >&6; } 9831else 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9833$as_echo "no" >&6; } 9834fi 9835 9836 9837 fi 9838 test -n "$ac_cv_prog_WINDMC" && break 9839done 9840 9841if test -z "$ac_cv_prog_WINDMC" ; then 9842 set dummy windmc 9843 if test $build = $host ; then 9844 WINDMC="$2" 9845 else 9846 WINDMC="${ncn_tool_prefix}$2" 9847 fi 9848fi 9849 9850 9851 9852if test -n "$OBJCOPY"; then 9853 ac_cv_prog_OBJCOPY=$OBJCOPY 9854elif test -n "$ac_cv_prog_OBJCOPY"; then 9855 OBJCOPY=$ac_cv_prog_OBJCOPY 9856fi 9857 9858if test -n "$ac_cv_prog_OBJCOPY"; then 9859 for ncn_progname in objcopy; do 9860 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9861set dummy ${ncn_progname}; ac_word=$2 9862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9863$as_echo_n "checking for $ac_word... " >&6; } 9864if ${ac_cv_prog_OBJCOPY+:} false; then : 9865 $as_echo_n "(cached) " >&6 9866else 9867 if test -n "$OBJCOPY"; then 9868 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9869else 9870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9871for as_dir in $PATH 9872do 9873 IFS=$as_save_IFS 9874 test -z "$as_dir" && as_dir=. 9875 for ac_exec_ext in '' $ac_executable_extensions; do 9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9877 ac_cv_prog_OBJCOPY="${ncn_progname}" 9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9879 break 2 9880 fi 9881done 9882 done 9883IFS=$as_save_IFS 9884 9885fi 9886fi 9887OBJCOPY=$ac_cv_prog_OBJCOPY 9888if test -n "$OBJCOPY"; then 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9890$as_echo "$OBJCOPY" >&6; } 9891else 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9893$as_echo "no" >&6; } 9894fi 9895 9896 9897 done 9898fi 9899 9900for ncn_progname in objcopy; do 9901 if test -n "$ncn_tool_prefix"; then 9902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9903set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9905$as_echo_n "checking for $ac_word... " >&6; } 9906if ${ac_cv_prog_OBJCOPY+:} false; then : 9907 $as_echo_n "(cached) " >&6 9908else 9909 if test -n "$OBJCOPY"; then 9910 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9911else 9912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9913for as_dir in $PATH 9914do 9915 IFS=$as_save_IFS 9916 test -z "$as_dir" && as_dir=. 9917 for ac_exec_ext in '' $ac_executable_extensions; do 9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9919 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" 9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9921 break 2 9922 fi 9923done 9924 done 9925IFS=$as_save_IFS 9926 9927fi 9928fi 9929OBJCOPY=$ac_cv_prog_OBJCOPY 9930if test -n "$OBJCOPY"; then 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9932$as_echo "$OBJCOPY" >&6; } 9933else 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9935$as_echo "no" >&6; } 9936fi 9937 9938 9939 fi 9940 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then 9941 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9942set dummy ${ncn_progname}; ac_word=$2 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9944$as_echo_n "checking for $ac_word... " >&6; } 9945if ${ac_cv_prog_OBJCOPY+:} false; then : 9946 $as_echo_n "(cached) " >&6 9947else 9948 if test -n "$OBJCOPY"; then 9949 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9950else 9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9952for as_dir in $PATH 9953do 9954 IFS=$as_save_IFS 9955 test -z "$as_dir" && as_dir=. 9956 for ac_exec_ext in '' $ac_executable_extensions; do 9957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9958 ac_cv_prog_OBJCOPY="${ncn_progname}" 9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9960 break 2 9961 fi 9962done 9963 done 9964IFS=$as_save_IFS 9965 9966fi 9967fi 9968OBJCOPY=$ac_cv_prog_OBJCOPY 9969if test -n "$OBJCOPY"; then 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9971$as_echo "$OBJCOPY" >&6; } 9972else 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9974$as_echo "no" >&6; } 9975fi 9976 9977 9978 fi 9979 test -n "$ac_cv_prog_OBJCOPY" && break 9980done 9981 9982if test -z "$ac_cv_prog_OBJCOPY" ; then 9983 set dummy objcopy 9984 if test $build = $host ; then 9985 OBJCOPY="$2" 9986 else 9987 OBJCOPY="${ncn_tool_prefix}$2" 9988 fi 9989fi 9990 9991 9992 9993if test -n "$OBJDUMP"; then 9994 ac_cv_prog_OBJDUMP=$OBJDUMP 9995elif test -n "$ac_cv_prog_OBJDUMP"; then 9996 OBJDUMP=$ac_cv_prog_OBJDUMP 9997fi 9998 9999if test -n "$ac_cv_prog_OBJDUMP"; then 10000 for ncn_progname in objdump; do 10001 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10002set dummy ${ncn_progname}; ac_word=$2 10003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10004$as_echo_n "checking for $ac_word... " >&6; } 10005if ${ac_cv_prog_OBJDUMP+:} false; then : 10006 $as_echo_n "(cached) " >&6 10007else 10008 if test -n "$OBJDUMP"; then 10009 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10010else 10011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10012for as_dir in $PATH 10013do 10014 IFS=$as_save_IFS 10015 test -z "$as_dir" && as_dir=. 10016 for ac_exec_ext in '' $ac_executable_extensions; do 10017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10018 ac_cv_prog_OBJDUMP="${ncn_progname}" 10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10020 break 2 10021 fi 10022done 10023 done 10024IFS=$as_save_IFS 10025 10026fi 10027fi 10028OBJDUMP=$ac_cv_prog_OBJDUMP 10029if test -n "$OBJDUMP"; then 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10031$as_echo "$OBJDUMP" >&6; } 10032else 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10034$as_echo "no" >&6; } 10035fi 10036 10037 10038 done 10039fi 10040 10041for ncn_progname in objdump; do 10042 if test -n "$ncn_tool_prefix"; then 10043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 10044set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10046$as_echo_n "checking for $ac_word... " >&6; } 10047if ${ac_cv_prog_OBJDUMP+:} false; then : 10048 $as_echo_n "(cached) " >&6 10049else 10050 if test -n "$OBJDUMP"; then 10051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10052else 10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10054for as_dir in $PATH 10055do 10056 IFS=$as_save_IFS 10057 test -z "$as_dir" && as_dir=. 10058 for ac_exec_ext in '' $ac_executable_extensions; do 10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10060 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" 10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10062 break 2 10063 fi 10064done 10065 done 10066IFS=$as_save_IFS 10067 10068fi 10069fi 10070OBJDUMP=$ac_cv_prog_OBJDUMP 10071if test -n "$OBJDUMP"; then 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10073$as_echo "$OBJDUMP" >&6; } 10074else 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10076$as_echo "no" >&6; } 10077fi 10078 10079 10080 fi 10081 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then 10082 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10083set dummy ${ncn_progname}; ac_word=$2 10084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10085$as_echo_n "checking for $ac_word... " >&6; } 10086if ${ac_cv_prog_OBJDUMP+:} false; then : 10087 $as_echo_n "(cached) " >&6 10088else 10089 if test -n "$OBJDUMP"; then 10090 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10091else 10092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10093for as_dir in $PATH 10094do 10095 IFS=$as_save_IFS 10096 test -z "$as_dir" && as_dir=. 10097 for ac_exec_ext in '' $ac_executable_extensions; do 10098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10099 ac_cv_prog_OBJDUMP="${ncn_progname}" 10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10101 break 2 10102 fi 10103done 10104 done 10105IFS=$as_save_IFS 10106 10107fi 10108fi 10109OBJDUMP=$ac_cv_prog_OBJDUMP 10110if test -n "$OBJDUMP"; then 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10112$as_echo "$OBJDUMP" >&6; } 10113else 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10115$as_echo "no" >&6; } 10116fi 10117 10118 10119 fi 10120 test -n "$ac_cv_prog_OBJDUMP" && break 10121done 10122 10123if test -z "$ac_cv_prog_OBJDUMP" ; then 10124 set dummy objdump 10125 if test $build = $host ; then 10126 OBJDUMP="$2" 10127 else 10128 OBJDUMP="${ncn_tool_prefix}$2" 10129 fi 10130fi 10131 10132 10133 10134if test -n "$OTOOL"; then 10135 ac_cv_prog_OTOOL=$OTOOL 10136elif test -n "$ac_cv_prog_OTOOL"; then 10137 OTOOL=$ac_cv_prog_OTOOL 10138fi 10139 10140if test -n "$ac_cv_prog_OTOOL"; then 10141 for ncn_progname in otool; do 10142 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10143set dummy ${ncn_progname}; ac_word=$2 10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10145$as_echo_n "checking for $ac_word... " >&6; } 10146if ${ac_cv_prog_OTOOL+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 if test -n "$OTOOL"; then 10150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10151else 10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10153for as_dir in $PATH 10154do 10155 IFS=$as_save_IFS 10156 test -z "$as_dir" && as_dir=. 10157 for ac_exec_ext in '' $ac_executable_extensions; do 10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10159 ac_cv_prog_OTOOL="${ncn_progname}" 10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10161 break 2 10162 fi 10163done 10164 done 10165IFS=$as_save_IFS 10166 10167fi 10168fi 10169OTOOL=$ac_cv_prog_OTOOL 10170if test -n "$OTOOL"; then 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10172$as_echo "$OTOOL" >&6; } 10173else 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10175$as_echo "no" >&6; } 10176fi 10177 10178 10179 done 10180fi 10181 10182for ncn_progname in otool; do 10183 if test -n "$ncn_tool_prefix"; then 10184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 10185set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 10186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10187$as_echo_n "checking for $ac_word... " >&6; } 10188if ${ac_cv_prog_OTOOL+:} false; then : 10189 $as_echo_n "(cached) " >&6 10190else 10191 if test -n "$OTOOL"; then 10192 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10193else 10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10195for as_dir in $PATH 10196do 10197 IFS=$as_save_IFS 10198 test -z "$as_dir" && as_dir=. 10199 for ac_exec_ext in '' $ac_executable_extensions; do 10200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10201 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" 10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10203 break 2 10204 fi 10205done 10206 done 10207IFS=$as_save_IFS 10208 10209fi 10210fi 10211OTOOL=$ac_cv_prog_OTOOL 10212if test -n "$OTOOL"; then 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10214$as_echo "$OTOOL" >&6; } 10215else 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10217$as_echo "no" >&6; } 10218fi 10219 10220 10221 fi 10222 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then 10223 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10224set dummy ${ncn_progname}; ac_word=$2 10225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10226$as_echo_n "checking for $ac_word... " >&6; } 10227if ${ac_cv_prog_OTOOL+:} false; then : 10228 $as_echo_n "(cached) " >&6 10229else 10230 if test -n "$OTOOL"; then 10231 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10232else 10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10234for as_dir in $PATH 10235do 10236 IFS=$as_save_IFS 10237 test -z "$as_dir" && as_dir=. 10238 for ac_exec_ext in '' $ac_executable_extensions; do 10239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10240 ac_cv_prog_OTOOL="${ncn_progname}" 10241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10242 break 2 10243 fi 10244done 10245 done 10246IFS=$as_save_IFS 10247 10248fi 10249fi 10250OTOOL=$ac_cv_prog_OTOOL 10251if test -n "$OTOOL"; then 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10253$as_echo "$OTOOL" >&6; } 10254else 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10256$as_echo "no" >&6; } 10257fi 10258 10259 10260 fi 10261 test -n "$ac_cv_prog_OTOOL" && break 10262done 10263 10264if test -z "$ac_cv_prog_OTOOL" ; then 10265 set dummy otool 10266 if test $build = $host ; then 10267 OTOOL="$2" 10268 else 10269 OTOOL="${ncn_tool_prefix}$2" 10270 fi 10271fi 10272 10273 10274 10275if test -n "$READELF"; then 10276 ac_cv_prog_READELF=$READELF 10277elif test -n "$ac_cv_prog_READELF"; then 10278 READELF=$ac_cv_prog_READELF 10279fi 10280 10281if test -n "$ac_cv_prog_READELF"; then 10282 for ncn_progname in readelf; do 10283 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10284set dummy ${ncn_progname}; ac_word=$2 10285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10286$as_echo_n "checking for $ac_word... " >&6; } 10287if ${ac_cv_prog_READELF+:} false; then : 10288 $as_echo_n "(cached) " >&6 10289else 10290 if test -n "$READELF"; then 10291 ac_cv_prog_READELF="$READELF" # Let the user override the test. 10292else 10293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10294for as_dir in $PATH 10295do 10296 IFS=$as_save_IFS 10297 test -z "$as_dir" && as_dir=. 10298 for ac_exec_ext in '' $ac_executable_extensions; do 10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10300 ac_cv_prog_READELF="${ncn_progname}" 10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10302 break 2 10303 fi 10304done 10305 done 10306IFS=$as_save_IFS 10307 10308fi 10309fi 10310READELF=$ac_cv_prog_READELF 10311if test -n "$READELF"; then 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10313$as_echo "$READELF" >&6; } 10314else 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10316$as_echo "no" >&6; } 10317fi 10318 10319 10320 done 10321fi 10322 10323for ncn_progname in readelf; do 10324 if test -n "$ncn_tool_prefix"; then 10325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 10326set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 10327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10328$as_echo_n "checking for $ac_word... " >&6; } 10329if ${ac_cv_prog_READELF+:} false; then : 10330 $as_echo_n "(cached) " >&6 10331else 10332 if test -n "$READELF"; then 10333 ac_cv_prog_READELF="$READELF" # Let the user override the test. 10334else 10335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10336for as_dir in $PATH 10337do 10338 IFS=$as_save_IFS 10339 test -z "$as_dir" && as_dir=. 10340 for ac_exec_ext in '' $ac_executable_extensions; do 10341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10342 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" 10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10344 break 2 10345 fi 10346done 10347 done 10348IFS=$as_save_IFS 10349 10350fi 10351fi 10352READELF=$ac_cv_prog_READELF 10353if test -n "$READELF"; then 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10355$as_echo "$READELF" >&6; } 10356else 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10358$as_echo "no" >&6; } 10359fi 10360 10361 10362 fi 10363 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then 10364 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10365set dummy ${ncn_progname}; ac_word=$2 10366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10367$as_echo_n "checking for $ac_word... " >&6; } 10368if ${ac_cv_prog_READELF+:} false; then : 10369 $as_echo_n "(cached) " >&6 10370else 10371 if test -n "$READELF"; then 10372 ac_cv_prog_READELF="$READELF" # Let the user override the test. 10373else 10374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10375for as_dir in $PATH 10376do 10377 IFS=$as_save_IFS 10378 test -z "$as_dir" && as_dir=. 10379 for ac_exec_ext in '' $ac_executable_extensions; do 10380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10381 ac_cv_prog_READELF="${ncn_progname}" 10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10383 break 2 10384 fi 10385done 10386 done 10387IFS=$as_save_IFS 10388 10389fi 10390fi 10391READELF=$ac_cv_prog_READELF 10392if test -n "$READELF"; then 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10394$as_echo "$READELF" >&6; } 10395else 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10397$as_echo "no" >&6; } 10398fi 10399 10400 10401 fi 10402 test -n "$ac_cv_prog_READELF" && break 10403done 10404 10405if test -z "$ac_cv_prog_READELF" ; then 10406 set dummy readelf 10407 if test $build = $host ; then 10408 READELF="$2" 10409 else 10410 READELF="${ncn_tool_prefix}$2" 10411 fi 10412fi 10413 10414 10415 10416 10417 10418 10419# Target tools. 10420 10421# Check whether --with-build-time-tools was given. 10422if test "${with_build_time_tools+set}" = set; then : 10423 withval=$with_build_time_tools; case x"$withval" in 10424 x/*) ;; 10425 *) 10426 with_build_time_tools= 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 10428$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} 10429 ;; 10430 esac 10431else 10432 with_build_time_tools= 10433fi 10434 10435 10436 10437 10438if test -n "$CC_FOR_TARGET"; then 10439 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET 10440elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then 10441 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10442fi 10443 10444if test -n "$ac_cv_prog_CC_FOR_TARGET"; then 10445 for ncn_progname in cc gcc; do 10446 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10447set dummy ${ncn_progname}; ac_word=$2 10448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10449$as_echo_n "checking for $ac_word... " >&6; } 10450if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10451 $as_echo_n "(cached) " >&6 10452else 10453 if test -n "$CC_FOR_TARGET"; then 10454 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10455else 10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10457for as_dir in $PATH 10458do 10459 IFS=$as_save_IFS 10460 test -z "$as_dir" && as_dir=. 10461 for ac_exec_ext in '' $ac_executable_extensions; do 10462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10463 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" 10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10465 break 2 10466 fi 10467done 10468 done 10469IFS=$as_save_IFS 10470 10471fi 10472fi 10473CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10474if test -n "$CC_FOR_TARGET"; then 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10476$as_echo "$CC_FOR_TARGET" >&6; } 10477else 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10479$as_echo "no" >&6; } 10480fi 10481 10482 10483 done 10484fi 10485 10486if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10487 for ncn_progname in cc gcc; do 10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10489$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10490 if test -x $with_build_time_tools/${ncn_progname}; then 10491 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10493$as_echo "yes" >&6; } 10494 break 10495 else 10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10497$as_echo "no" >&6; } 10498 fi 10499 done 10500fi 10501 10502if test -z "$ac_cv_prog_CC_FOR_TARGET"; then 10503 for ncn_progname in cc gcc; do 10504 if test -n "$ncn_target_tool_prefix"; then 10505 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10506set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10508$as_echo_n "checking for $ac_word... " >&6; } 10509if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10510 $as_echo_n "(cached) " >&6 10511else 10512 if test -n "$CC_FOR_TARGET"; then 10513 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10514else 10515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10516for as_dir in $PATH 10517do 10518 IFS=$as_save_IFS 10519 test -z "$as_dir" && as_dir=. 10520 for ac_exec_ext in '' $ac_executable_extensions; do 10521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10522 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10524 break 2 10525 fi 10526done 10527 done 10528IFS=$as_save_IFS 10529 10530fi 10531fi 10532CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10533if test -n "$CC_FOR_TARGET"; then 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10535$as_echo "$CC_FOR_TARGET" >&6; } 10536else 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10538$as_echo "no" >&6; } 10539fi 10540 10541 10542 fi 10543 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then 10544 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10545set dummy ${ncn_progname}; ac_word=$2 10546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10547$as_echo_n "checking for $ac_word... " >&6; } 10548if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10549 $as_echo_n "(cached) " >&6 10550else 10551 if test -n "$CC_FOR_TARGET"; then 10552 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10553else 10554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10555for as_dir in $PATH 10556do 10557 IFS=$as_save_IFS 10558 test -z "$as_dir" && as_dir=. 10559 for ac_exec_ext in '' $ac_executable_extensions; do 10560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10561 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" 10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10563 break 2 10564 fi 10565done 10566 done 10567IFS=$as_save_IFS 10568 10569fi 10570fi 10571CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10572if test -n "$CC_FOR_TARGET"; then 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10574$as_echo "$CC_FOR_TARGET" >&6; } 10575else 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10577$as_echo "no" >&6; } 10578fi 10579 10580 10581 fi 10582 test -n "$ac_cv_prog_CC_FOR_TARGET" && break 10583 done 10584fi 10585 10586if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then 10587 set dummy cc gcc 10588 if test $build = $target ; then 10589 CC_FOR_TARGET="$2" 10590 else 10591 CC_FOR_TARGET="${ncn_target_tool_prefix}$2" 10592 fi 10593else 10594 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" 10595fi 10596 10597 10598 10599if test -n "$CXX_FOR_TARGET"; then 10600 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET 10601elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then 10602 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10603fi 10604 10605if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then 10606 for ncn_progname in c++ g++ cxx gxx; do 10607 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10608set dummy ${ncn_progname}; ac_word=$2 10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10610$as_echo_n "checking for $ac_word... " >&6; } 10611if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10612 $as_echo_n "(cached) " >&6 10613else 10614 if test -n "$CXX_FOR_TARGET"; then 10615 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10616else 10617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10618for as_dir in $PATH 10619do 10620 IFS=$as_save_IFS 10621 test -z "$as_dir" && as_dir=. 10622 for ac_exec_ext in '' $ac_executable_extensions; do 10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10624 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" 10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10626 break 2 10627 fi 10628done 10629 done 10630IFS=$as_save_IFS 10631 10632fi 10633fi 10634CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10635if test -n "$CXX_FOR_TARGET"; then 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10637$as_echo "$CXX_FOR_TARGET" >&6; } 10638else 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10640$as_echo "no" >&6; } 10641fi 10642 10643 10644 done 10645fi 10646 10647if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then 10648 for ncn_progname in c++ g++ cxx gxx; do 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10650$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10651 if test -x $with_build_time_tools/${ncn_progname}; then 10652 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10654$as_echo "yes" >&6; } 10655 break 10656 else 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10658$as_echo "no" >&6; } 10659 fi 10660 done 10661fi 10662 10663if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then 10664 for ncn_progname in c++ g++ cxx gxx; do 10665 if test -n "$ncn_target_tool_prefix"; then 10666 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10667set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10669$as_echo_n "checking for $ac_word... " >&6; } 10670if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10671 $as_echo_n "(cached) " >&6 10672else 10673 if test -n "$CXX_FOR_TARGET"; then 10674 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10675else 10676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10677for as_dir in $PATH 10678do 10679 IFS=$as_save_IFS 10680 test -z "$as_dir" && as_dir=. 10681 for ac_exec_ext in '' $ac_executable_extensions; do 10682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10683 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10685 break 2 10686 fi 10687done 10688 done 10689IFS=$as_save_IFS 10690 10691fi 10692fi 10693CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10694if test -n "$CXX_FOR_TARGET"; then 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10696$as_echo "$CXX_FOR_TARGET" >&6; } 10697else 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10699$as_echo "no" >&6; } 10700fi 10701 10702 10703 fi 10704 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then 10705 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10706set dummy ${ncn_progname}; ac_word=$2 10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10708$as_echo_n "checking for $ac_word... " >&6; } 10709if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10710 $as_echo_n "(cached) " >&6 10711else 10712 if test -n "$CXX_FOR_TARGET"; then 10713 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10714else 10715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10716for as_dir in $PATH 10717do 10718 IFS=$as_save_IFS 10719 test -z "$as_dir" && as_dir=. 10720 for ac_exec_ext in '' $ac_executable_extensions; do 10721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10722 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" 10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10724 break 2 10725 fi 10726done 10727 done 10728IFS=$as_save_IFS 10729 10730fi 10731fi 10732CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10733if test -n "$CXX_FOR_TARGET"; then 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10735$as_echo "$CXX_FOR_TARGET" >&6; } 10736else 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10738$as_echo "no" >&6; } 10739fi 10740 10741 10742 fi 10743 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break 10744 done 10745fi 10746 10747if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then 10748 set dummy c++ g++ cxx gxx 10749 if test $build = $target ; then 10750 CXX_FOR_TARGET="$2" 10751 else 10752 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" 10753 fi 10754else 10755 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" 10756fi 10757 10758 10759 10760if test -n "$GCC_FOR_TARGET"; then 10761 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET 10762elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then 10763 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10764fi 10765 10766if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then 10767 for ncn_progname in gcc; do 10768 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10769set dummy ${ncn_progname}; ac_word=$2 10770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10771$as_echo_n "checking for $ac_word... " >&6; } 10772if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10773 $as_echo_n "(cached) " >&6 10774else 10775 if test -n "$GCC_FOR_TARGET"; then 10776 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10777else 10778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10779for as_dir in $PATH 10780do 10781 IFS=$as_save_IFS 10782 test -z "$as_dir" && as_dir=. 10783 for ac_exec_ext in '' $ac_executable_extensions; do 10784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10785 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" 10786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10787 break 2 10788 fi 10789done 10790 done 10791IFS=$as_save_IFS 10792 10793fi 10794fi 10795GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10796if test -n "$GCC_FOR_TARGET"; then 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10798$as_echo "$GCC_FOR_TARGET" >&6; } 10799else 10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10801$as_echo "no" >&6; } 10802fi 10803 10804 10805 done 10806fi 10807 10808if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10809 for ncn_progname in gcc; do 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10811$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10812 if test -x $with_build_time_tools/${ncn_progname}; then 10813 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10815$as_echo "yes" >&6; } 10816 break 10817 else 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10819$as_echo "no" >&6; } 10820 fi 10821 done 10822fi 10823 10824if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then 10825 for ncn_progname in gcc; do 10826 if test -n "$ncn_target_tool_prefix"; then 10827 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10828set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10830$as_echo_n "checking for $ac_word... " >&6; } 10831if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10832 $as_echo_n "(cached) " >&6 10833else 10834 if test -n "$GCC_FOR_TARGET"; then 10835 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10836else 10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10838for as_dir in $PATH 10839do 10840 IFS=$as_save_IFS 10841 test -z "$as_dir" && as_dir=. 10842 for ac_exec_ext in '' $ac_executable_extensions; do 10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10844 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10846 break 2 10847 fi 10848done 10849 done 10850IFS=$as_save_IFS 10851 10852fi 10853fi 10854GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10855if test -n "$GCC_FOR_TARGET"; then 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10857$as_echo "$GCC_FOR_TARGET" >&6; } 10858else 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10860$as_echo "no" >&6; } 10861fi 10862 10863 10864 fi 10865 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then 10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10867set dummy ${ncn_progname}; ac_word=$2 10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10869$as_echo_n "checking for $ac_word... " >&6; } 10870if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10871 $as_echo_n "(cached) " >&6 10872else 10873 if test -n "$GCC_FOR_TARGET"; then 10874 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10875else 10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10877for as_dir in $PATH 10878do 10879 IFS=$as_save_IFS 10880 test -z "$as_dir" && as_dir=. 10881 for ac_exec_ext in '' $ac_executable_extensions; do 10882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10883 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" 10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10885 break 2 10886 fi 10887done 10888 done 10889IFS=$as_save_IFS 10890 10891fi 10892fi 10893GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10894if test -n "$GCC_FOR_TARGET"; then 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10896$as_echo "$GCC_FOR_TARGET" >&6; } 10897else 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10899$as_echo "no" >&6; } 10900fi 10901 10902 10903 fi 10904 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break 10905 done 10906fi 10907 10908if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then 10909 GCC_FOR_TARGET="${CC_FOR_TARGET}" 10910else 10911 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" 10912fi 10913 10914 10915 10916if test -n "$GFORTRAN_FOR_TARGET"; then 10917 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET 10918elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10919 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10920fi 10921 10922if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10923 for ncn_progname in gfortran; do 10924 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10925set dummy ${ncn_progname}; ac_word=$2 10926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10927$as_echo_n "checking for $ac_word... " >&6; } 10928if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 10929 $as_echo_n "(cached) " >&6 10930else 10931 if test -n "$GFORTRAN_FOR_TARGET"; then 10932 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10933else 10934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10935for as_dir in $PATH 10936do 10937 IFS=$as_save_IFS 10938 test -z "$as_dir" && as_dir=. 10939 for ac_exec_ext in '' $ac_executable_extensions; do 10940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10941 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" 10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10943 break 2 10944 fi 10945done 10946 done 10947IFS=$as_save_IFS 10948 10949fi 10950fi 10951GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10952if test -n "$GFORTRAN_FOR_TARGET"; then 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10954$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10955else 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10957$as_echo "no" >&6; } 10958fi 10959 10960 10961 done 10962fi 10963 10964if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then 10965 for ncn_progname in gfortran; do 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10967$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10968 if test -x $with_build_time_tools/${ncn_progname}; then 10969 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10971$as_echo "yes" >&6; } 10972 break 10973 else 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10975$as_echo "no" >&6; } 10976 fi 10977 done 10978fi 10979 10980if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10981 for ncn_progname in gfortran; do 10982 if test -n "$ncn_target_tool_prefix"; then 10983 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10984set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10986$as_echo_n "checking for $ac_word... " >&6; } 10987if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 10988 $as_echo_n "(cached) " >&6 10989else 10990 if test -n "$GFORTRAN_FOR_TARGET"; then 10991 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10992else 10993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10994for as_dir in $PATH 10995do 10996 IFS=$as_save_IFS 10997 test -z "$as_dir" && as_dir=. 10998 for ac_exec_ext in '' $ac_executable_extensions; do 10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11000 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11002 break 2 11003 fi 11004done 11005 done 11006IFS=$as_save_IFS 11007 11008fi 11009fi 11010GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 11011if test -n "$GFORTRAN_FOR_TARGET"; then 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 11013$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 11014else 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11016$as_echo "no" >&6; } 11017fi 11018 11019 11020 fi 11021 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then 11022 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11023set dummy ${ncn_progname}; ac_word=$2 11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11025$as_echo_n "checking for $ac_word... " >&6; } 11026if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 11027 $as_echo_n "(cached) " >&6 11028else 11029 if test -n "$GFORTRAN_FOR_TARGET"; then 11030 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 11031else 11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11033for as_dir in $PATH 11034do 11035 IFS=$as_save_IFS 11036 test -z "$as_dir" && as_dir=. 11037 for ac_exec_ext in '' $ac_executable_extensions; do 11038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11039 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" 11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11041 break 2 11042 fi 11043done 11044 done 11045IFS=$as_save_IFS 11046 11047fi 11048fi 11049GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 11050if test -n "$GFORTRAN_FOR_TARGET"; then 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 11052$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 11053else 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11055$as_echo "no" >&6; } 11056fi 11057 11058 11059 fi 11060 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break 11061 done 11062fi 11063 11064if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then 11065 set dummy gfortran 11066 if test $build = $target ; then 11067 GFORTRAN_FOR_TARGET="$2" 11068 else 11069 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" 11070 fi 11071else 11072 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" 11073fi 11074 11075 11076 11077if test -n "$GOC_FOR_TARGET"; then 11078 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET 11079elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then 11080 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 11081fi 11082 11083if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then 11084 for ncn_progname in gccgo; do 11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11086set dummy ${ncn_progname}; ac_word=$2 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11088$as_echo_n "checking for $ac_word... " >&6; } 11089if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 11090 $as_echo_n "(cached) " >&6 11091else 11092 if test -n "$GOC_FOR_TARGET"; then 11093 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 11094else 11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11096for as_dir in $PATH 11097do 11098 IFS=$as_save_IFS 11099 test -z "$as_dir" && as_dir=. 11100 for ac_exec_ext in '' $ac_executable_extensions; do 11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11102 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11104 break 2 11105 fi 11106done 11107 done 11108IFS=$as_save_IFS 11109 11110fi 11111fi 11112GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 11113if test -n "$GOC_FOR_TARGET"; then 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 11115$as_echo "$GOC_FOR_TARGET" >&6; } 11116else 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11118$as_echo "no" >&6; } 11119fi 11120 11121 11122 done 11123fi 11124 11125if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then 11126 for ncn_progname in gccgo; do 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11128$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11129 if test -x $with_build_time_tools/${ncn_progname}; then 11130 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11132$as_echo "yes" >&6; } 11133 break 11134 else 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11136$as_echo "no" >&6; } 11137 fi 11138 done 11139fi 11140 11141if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then 11142 for ncn_progname in gccgo; do 11143 if test -n "$ncn_target_tool_prefix"; then 11144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11145set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11147$as_echo_n "checking for $ac_word... " >&6; } 11148if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 11149 $as_echo_n "(cached) " >&6 11150else 11151 if test -n "$GOC_FOR_TARGET"; then 11152 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 11153else 11154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11155for as_dir in $PATH 11156do 11157 IFS=$as_save_IFS 11158 test -z "$as_dir" && as_dir=. 11159 for ac_exec_ext in '' $ac_executable_extensions; do 11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11161 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11163 break 2 11164 fi 11165done 11166 done 11167IFS=$as_save_IFS 11168 11169fi 11170fi 11171GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 11172if test -n "$GOC_FOR_TARGET"; then 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 11174$as_echo "$GOC_FOR_TARGET" >&6; } 11175else 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11177$as_echo "no" >&6; } 11178fi 11179 11180 11181 fi 11182 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then 11183 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11184set dummy ${ncn_progname}; ac_word=$2 11185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11186$as_echo_n "checking for $ac_word... " >&6; } 11187if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 11188 $as_echo_n "(cached) " >&6 11189else 11190 if test -n "$GOC_FOR_TARGET"; then 11191 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 11192else 11193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11194for as_dir in $PATH 11195do 11196 IFS=$as_save_IFS 11197 test -z "$as_dir" && as_dir=. 11198 for ac_exec_ext in '' $ac_executable_extensions; do 11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11200 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" 11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11202 break 2 11203 fi 11204done 11205 done 11206IFS=$as_save_IFS 11207 11208fi 11209fi 11210GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 11211if test -n "$GOC_FOR_TARGET"; then 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 11213$as_echo "$GOC_FOR_TARGET" >&6; } 11214else 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11216$as_echo "no" >&6; } 11217fi 11218 11219 11220 fi 11221 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break 11222 done 11223fi 11224 11225if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then 11226 set dummy gccgo 11227 if test $build = $target ; then 11228 GOC_FOR_TARGET="$2" 11229 else 11230 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" 11231 fi 11232else 11233 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" 11234fi 11235 11236 11237 11238if test -n "$GDC_FOR_TARGET"; then 11239 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET 11240elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then 11241 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET 11242fi 11243 11244if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then 11245 for ncn_progname in gdc; do 11246 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11247set dummy ${ncn_progname}; ac_word=$2 11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11249$as_echo_n "checking for $ac_word... " >&6; } 11250if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : 11251 $as_echo_n "(cached) " >&6 11252else 11253 if test -n "$GDC_FOR_TARGET"; then 11254 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. 11255else 11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11257for as_dir in $PATH 11258do 11259 IFS=$as_save_IFS 11260 test -z "$as_dir" && as_dir=. 11261 for ac_exec_ext in '' $ac_executable_extensions; do 11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11263 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" 11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11265 break 2 11266 fi 11267done 11268 done 11269IFS=$as_save_IFS 11270 11271fi 11272fi 11273GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET 11274if test -n "$GDC_FOR_TARGET"; then 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 11276$as_echo "$GDC_FOR_TARGET" >&6; } 11277else 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11279$as_echo "no" >&6; } 11280fi 11281 11282 11283 done 11284fi 11285 11286if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then 11287 for ncn_progname in gdc; do 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11289$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11290 if test -x $with_build_time_tools/${ncn_progname}; then 11291 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11293$as_echo "yes" >&6; } 11294 break 11295 else 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11297$as_echo "no" >&6; } 11298 fi 11299 done 11300fi 11301 11302if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then 11303 for ncn_progname in gdc; do 11304 if test -n "$ncn_target_tool_prefix"; then 11305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11308$as_echo_n "checking for $ac_word... " >&6; } 11309if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 if test -n "$GDC_FOR_TARGET"; then 11313 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. 11314else 11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11316for as_dir in $PATH 11317do 11318 IFS=$as_save_IFS 11319 test -z "$as_dir" && as_dir=. 11320 for ac_exec_ext in '' $ac_executable_extensions; do 11321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11322 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11324 break 2 11325 fi 11326done 11327 done 11328IFS=$as_save_IFS 11329 11330fi 11331fi 11332GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET 11333if test -n "$GDC_FOR_TARGET"; then 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 11335$as_echo "$GDC_FOR_TARGET" >&6; } 11336else 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11338$as_echo "no" >&6; } 11339fi 11340 11341 11342 fi 11343 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then 11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11345set dummy ${ncn_progname}; ac_word=$2 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11347$as_echo_n "checking for $ac_word... " >&6; } 11348if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : 11349 $as_echo_n "(cached) " >&6 11350else 11351 if test -n "$GDC_FOR_TARGET"; then 11352 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. 11353else 11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11355for as_dir in $PATH 11356do 11357 IFS=$as_save_IFS 11358 test -z "$as_dir" && as_dir=. 11359 for ac_exec_ext in '' $ac_executable_extensions; do 11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11361 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11363 break 2 11364 fi 11365done 11366 done 11367IFS=$as_save_IFS 11368 11369fi 11370fi 11371GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET 11372if test -n "$GDC_FOR_TARGET"; then 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 11374$as_echo "$GDC_FOR_TARGET" >&6; } 11375else 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11377$as_echo "no" >&6; } 11378fi 11379 11380 11381 fi 11382 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break 11383 done 11384fi 11385 11386if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then 11387 set dummy gdc 11388 if test $build = $target ; then 11389 GDC_FOR_TARGET="$2" 11390 else 11391 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" 11392 fi 11393else 11394 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" 11395fi 11396 11397 11398 11399cat > conftest.c << \EOF 11400#ifdef __GNUC__ 11401 gcc_yay; 11402#endif 11403EOF 11404if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then 11405 have_gcc_for_target=yes 11406else 11407 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc 11408 have_gcc_for_target=no 11409fi 11410rm conftest.c 11411 11412 11413 11414 11415if test -z "$ac_cv_path_AR_FOR_TARGET" ; then 11416 if test -n "$with_build_time_tools"; then 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 11418$as_echo_n "checking for ar in $with_build_time_tools... " >&6; } 11419 if test -x $with_build_time_tools/ar; then 11420 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar 11421 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 11423$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } 11424 else 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11426$as_echo "no" >&6; } 11427 fi 11428 elif test $build != $host && test $have_gcc_for_target = yes; then 11429 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` 11430 test $AR_FOR_TARGET = ar && AR_FOR_TARGET= 11431 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET 11432 fi 11433fi 11434if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11435 # Extract the first word of "ar", so it can be a program name with args. 11436set dummy ar; ac_word=$2 11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11438$as_echo_n "checking for $ac_word... " >&6; } 11439if ${ac_cv_path_AR_FOR_TARGET+:} false; then : 11440 $as_echo_n "(cached) " >&6 11441else 11442 case $AR_FOR_TARGET in 11443 [\\/]* | ?:[\\/]*) 11444 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. 11445 ;; 11446 *) 11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11448for as_dir in $gcc_cv_tool_dirs 11449do 11450 IFS=$as_save_IFS 11451 test -z "$as_dir" && as_dir=. 11452 for ac_exec_ext in '' $ac_executable_extensions; do 11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11454 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11456 break 2 11457 fi 11458done 11459 done 11460IFS=$as_save_IFS 11461 11462 ;; 11463esac 11464fi 11465AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET 11466if test -n "$AR_FOR_TARGET"; then 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11468$as_echo "$AR_FOR_TARGET" >&6; } 11469else 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11471$as_echo "no" >&6; } 11472fi 11473 11474 11475fi 11476if test -z "$ac_cv_path_AR_FOR_TARGET" ; then 11477 11478 11479if test -n "$AR_FOR_TARGET"; then 11480 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET 11481elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then 11482 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11483fi 11484 11485if test -n "$ac_cv_prog_AR_FOR_TARGET"; then 11486 for ncn_progname in ar; do 11487 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11488set dummy ${ncn_progname}; ac_word=$2 11489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11490$as_echo_n "checking for $ac_word... " >&6; } 11491if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11492 $as_echo_n "(cached) " >&6 11493else 11494 if test -n "$AR_FOR_TARGET"; then 11495 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11496else 11497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11498for as_dir in $PATH 11499do 11500 IFS=$as_save_IFS 11501 test -z "$as_dir" && as_dir=. 11502 for ac_exec_ext in '' $ac_executable_extensions; do 11503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11504 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" 11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11506 break 2 11507 fi 11508done 11509 done 11510IFS=$as_save_IFS 11511 11512fi 11513fi 11514AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11515if test -n "$AR_FOR_TARGET"; then 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11517$as_echo "$AR_FOR_TARGET" >&6; } 11518else 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11520$as_echo "no" >&6; } 11521fi 11522 11523 11524 done 11525fi 11526 11527if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then 11528 for ncn_progname in ar; do 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11530$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11531 if test -x $with_build_time_tools/${ncn_progname}; then 11532 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11534$as_echo "yes" >&6; } 11535 break 11536 else 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11538$as_echo "no" >&6; } 11539 fi 11540 done 11541fi 11542 11543if test -z "$ac_cv_prog_AR_FOR_TARGET"; then 11544 for ncn_progname in ar; do 11545 if test -n "$ncn_target_tool_prefix"; then 11546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11547set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11549$as_echo_n "checking for $ac_word... " >&6; } 11550if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11551 $as_echo_n "(cached) " >&6 11552else 11553 if test -n "$AR_FOR_TARGET"; then 11554 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11555else 11556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11557for as_dir in $PATH 11558do 11559 IFS=$as_save_IFS 11560 test -z "$as_dir" && as_dir=. 11561 for ac_exec_ext in '' $ac_executable_extensions; do 11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11563 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11565 break 2 11566 fi 11567done 11568 done 11569IFS=$as_save_IFS 11570 11571fi 11572fi 11573AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11574if test -n "$AR_FOR_TARGET"; then 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11576$as_echo "$AR_FOR_TARGET" >&6; } 11577else 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11579$as_echo "no" >&6; } 11580fi 11581 11582 11583 fi 11584 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then 11585 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11586set dummy ${ncn_progname}; ac_word=$2 11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11588$as_echo_n "checking for $ac_word... " >&6; } 11589if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11590 $as_echo_n "(cached) " >&6 11591else 11592 if test -n "$AR_FOR_TARGET"; then 11593 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11594else 11595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11596for as_dir in $PATH 11597do 11598 IFS=$as_save_IFS 11599 test -z "$as_dir" && as_dir=. 11600 for ac_exec_ext in '' $ac_executable_extensions; do 11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11602 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" 11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11604 break 2 11605 fi 11606done 11607 done 11608IFS=$as_save_IFS 11609 11610fi 11611fi 11612AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11613if test -n "$AR_FOR_TARGET"; then 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11615$as_echo "$AR_FOR_TARGET" >&6; } 11616else 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11618$as_echo "no" >&6; } 11619fi 11620 11621 11622 fi 11623 test -n "$ac_cv_prog_AR_FOR_TARGET" && break 11624 done 11625fi 11626 11627if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then 11628 set dummy ar 11629 if test $build = $target ; then 11630 AR_FOR_TARGET="$2" 11631 else 11632 AR_FOR_TARGET="${ncn_target_tool_prefix}$2" 11633 fi 11634else 11635 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" 11636fi 11637 11638else 11639 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET 11640fi 11641 11642 11643 11644 11645if test -z "$ac_cv_path_AS_FOR_TARGET" ; then 11646 if test -n "$with_build_time_tools"; then 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 11648$as_echo_n "checking for as in $with_build_time_tools... " >&6; } 11649 if test -x $with_build_time_tools/as; then 11650 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as 11651 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 11653$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } 11654 else 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11656$as_echo "no" >&6; } 11657 fi 11658 elif test $build != $host && test $have_gcc_for_target = yes; then 11659 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` 11660 test $AS_FOR_TARGET = as && AS_FOR_TARGET= 11661 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET 11662 fi 11663fi 11664if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11665 # Extract the first word of "as", so it can be a program name with args. 11666set dummy as; ac_word=$2 11667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11668$as_echo_n "checking for $ac_word... " >&6; } 11669if ${ac_cv_path_AS_FOR_TARGET+:} false; then : 11670 $as_echo_n "(cached) " >&6 11671else 11672 case $AS_FOR_TARGET in 11673 [\\/]* | ?:[\\/]*) 11674 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. 11675 ;; 11676 *) 11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11678for as_dir in $gcc_cv_tool_dirs 11679do 11680 IFS=$as_save_IFS 11681 test -z "$as_dir" && as_dir=. 11682 for ac_exec_ext in '' $ac_executable_extensions; do 11683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11684 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11686 break 2 11687 fi 11688done 11689 done 11690IFS=$as_save_IFS 11691 11692 ;; 11693esac 11694fi 11695AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET 11696if test -n "$AS_FOR_TARGET"; then 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11698$as_echo "$AS_FOR_TARGET" >&6; } 11699else 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11701$as_echo "no" >&6; } 11702fi 11703 11704 11705fi 11706if test -z "$ac_cv_path_AS_FOR_TARGET" ; then 11707 11708 11709if test -n "$AS_FOR_TARGET"; then 11710 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET 11711elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then 11712 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11713fi 11714 11715if test -n "$ac_cv_prog_AS_FOR_TARGET"; then 11716 for ncn_progname in as; do 11717 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11718set dummy ${ncn_progname}; ac_word=$2 11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11720$as_echo_n "checking for $ac_word... " >&6; } 11721if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11722 $as_echo_n "(cached) " >&6 11723else 11724 if test -n "$AS_FOR_TARGET"; then 11725 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11726else 11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11728for as_dir in $PATH 11729do 11730 IFS=$as_save_IFS 11731 test -z "$as_dir" && as_dir=. 11732 for ac_exec_ext in '' $ac_executable_extensions; do 11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11734 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" 11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11736 break 2 11737 fi 11738done 11739 done 11740IFS=$as_save_IFS 11741 11742fi 11743fi 11744AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11745if test -n "$AS_FOR_TARGET"; then 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11747$as_echo "$AS_FOR_TARGET" >&6; } 11748else 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11750$as_echo "no" >&6; } 11751fi 11752 11753 11754 done 11755fi 11756 11757if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then 11758 for ncn_progname in as; do 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11760$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11761 if test -x $with_build_time_tools/${ncn_progname}; then 11762 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11764$as_echo "yes" >&6; } 11765 break 11766 else 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11768$as_echo "no" >&6; } 11769 fi 11770 done 11771fi 11772 11773if test -z "$ac_cv_prog_AS_FOR_TARGET"; then 11774 for ncn_progname in as; do 11775 if test -n "$ncn_target_tool_prefix"; then 11776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11777set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11779$as_echo_n "checking for $ac_word... " >&6; } 11780if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11781 $as_echo_n "(cached) " >&6 11782else 11783 if test -n "$AS_FOR_TARGET"; then 11784 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11785else 11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11787for as_dir in $PATH 11788do 11789 IFS=$as_save_IFS 11790 test -z "$as_dir" && as_dir=. 11791 for ac_exec_ext in '' $ac_executable_extensions; do 11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11793 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11795 break 2 11796 fi 11797done 11798 done 11799IFS=$as_save_IFS 11800 11801fi 11802fi 11803AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11804if test -n "$AS_FOR_TARGET"; then 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11806$as_echo "$AS_FOR_TARGET" >&6; } 11807else 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11809$as_echo "no" >&6; } 11810fi 11811 11812 11813 fi 11814 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then 11815 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11816set dummy ${ncn_progname}; ac_word=$2 11817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11818$as_echo_n "checking for $ac_word... " >&6; } 11819if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11820 $as_echo_n "(cached) " >&6 11821else 11822 if test -n "$AS_FOR_TARGET"; then 11823 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11824else 11825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11826for as_dir in $PATH 11827do 11828 IFS=$as_save_IFS 11829 test -z "$as_dir" && as_dir=. 11830 for ac_exec_ext in '' $ac_executable_extensions; do 11831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11832 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" 11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11834 break 2 11835 fi 11836done 11837 done 11838IFS=$as_save_IFS 11839 11840fi 11841fi 11842AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11843if test -n "$AS_FOR_TARGET"; then 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11845$as_echo "$AS_FOR_TARGET" >&6; } 11846else 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11848$as_echo "no" >&6; } 11849fi 11850 11851 11852 fi 11853 test -n "$ac_cv_prog_AS_FOR_TARGET" && break 11854 done 11855fi 11856 11857if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then 11858 set dummy as 11859 if test $build = $target ; then 11860 AS_FOR_TARGET="$2" 11861 else 11862 AS_FOR_TARGET="${ncn_target_tool_prefix}$2" 11863 fi 11864else 11865 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" 11866fi 11867 11868else 11869 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET 11870fi 11871 11872 11873 11874 11875if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then 11876 if test -n "$with_build_time_tools"; then 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 11878$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } 11879 if test -x $with_build_time_tools/dlltool; then 11880 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool 11881 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 11883$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } 11884 else 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11886$as_echo "no" >&6; } 11887 fi 11888 elif test $build != $host && test $have_gcc_for_target = yes; then 11889 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` 11890 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= 11891 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11892 fi 11893fi 11894if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11895 # Extract the first word of "dlltool", so it can be a program name with args. 11896set dummy dlltool; ac_word=$2 11897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11898$as_echo_n "checking for $ac_word... " >&6; } 11899if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : 11900 $as_echo_n "(cached) " >&6 11901else 11902 case $DLLTOOL_FOR_TARGET in 11903 [\\/]* | ?:[\\/]*) 11904 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. 11905 ;; 11906 *) 11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11908for as_dir in $gcc_cv_tool_dirs 11909do 11910 IFS=$as_save_IFS 11911 test -z "$as_dir" && as_dir=. 11912 for ac_exec_ext in '' $ac_executable_extensions; do 11913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11914 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11916 break 2 11917 fi 11918done 11919 done 11920IFS=$as_save_IFS 11921 11922 ;; 11923esac 11924fi 11925DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET 11926if test -n "$DLLTOOL_FOR_TARGET"; then 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11928$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11929else 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11931$as_echo "no" >&6; } 11932fi 11933 11934 11935fi 11936if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then 11937 11938 11939if test -n "$DLLTOOL_FOR_TARGET"; then 11940 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11941elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11942 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11943fi 11944 11945if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11946 for ncn_progname in dlltool; do 11947 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11948set dummy ${ncn_progname}; ac_word=$2 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11950$as_echo_n "checking for $ac_word... " >&6; } 11951if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953else 11954 if test -n "$DLLTOOL_FOR_TARGET"; then 11955 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11956else 11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11958for as_dir in $PATH 11959do 11960 IFS=$as_save_IFS 11961 test -z "$as_dir" && as_dir=. 11962 for ac_exec_ext in '' $ac_executable_extensions; do 11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11964 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" 11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11966 break 2 11967 fi 11968done 11969 done 11970IFS=$as_save_IFS 11971 11972fi 11973fi 11974DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11975if test -n "$DLLTOOL_FOR_TARGET"; then 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11977$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11978else 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11980$as_echo "no" >&6; } 11981fi 11982 11983 11984 done 11985fi 11986 11987if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then 11988 for ncn_progname in dlltool; do 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11990$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11991 if test -x $with_build_time_tools/${ncn_progname}; then 11992 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11994$as_echo "yes" >&6; } 11995 break 11996 else 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11998$as_echo "no" >&6; } 11999 fi 12000 done 12001fi 12002 12003if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 12004 for ncn_progname in dlltool; do 12005 if test -n "$ncn_target_tool_prefix"; then 12006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12007set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12009$as_echo_n "checking for $ac_word... " >&6; } 12010if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 12011 $as_echo_n "(cached) " >&6 12012else 12013 if test -n "$DLLTOOL_FOR_TARGET"; then 12014 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 12015else 12016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12017for as_dir in $PATH 12018do 12019 IFS=$as_save_IFS 12020 test -z "$as_dir" && as_dir=. 12021 for ac_exec_ext in '' $ac_executable_extensions; do 12022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12023 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12025 break 2 12026 fi 12027done 12028 done 12029IFS=$as_save_IFS 12030 12031fi 12032fi 12033DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 12034if test -n "$DLLTOOL_FOR_TARGET"; then 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 12036$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 12037else 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12039$as_echo "no" >&6; } 12040fi 12041 12042 12043 fi 12044 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then 12045 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12046set dummy ${ncn_progname}; ac_word=$2 12047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12048$as_echo_n "checking for $ac_word... " >&6; } 12049if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 12050 $as_echo_n "(cached) " >&6 12051else 12052 if test -n "$DLLTOOL_FOR_TARGET"; then 12053 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 12054else 12055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12056for as_dir in $PATH 12057do 12058 IFS=$as_save_IFS 12059 test -z "$as_dir" && as_dir=. 12060 for ac_exec_ext in '' $ac_executable_extensions; do 12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12062 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" 12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12064 break 2 12065 fi 12066done 12067 done 12068IFS=$as_save_IFS 12069 12070fi 12071fi 12072DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 12073if test -n "$DLLTOOL_FOR_TARGET"; then 12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 12075$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 12076else 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12078$as_echo "no" >&6; } 12079fi 12080 12081 12082 fi 12083 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break 12084 done 12085fi 12086 12087if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then 12088 set dummy dlltool 12089 if test $build = $target ; then 12090 DLLTOOL_FOR_TARGET="$2" 12091 else 12092 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" 12093 fi 12094else 12095 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" 12096fi 12097 12098else 12099 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET 12100fi 12101 12102 12103 12104 12105if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then 12106 if test -n "$with_build_time_tools"; then 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 12108$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } 12109 if test -x $with_build_time_tools/dsymutil; then 12110 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil 12111 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 12113$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } 12114 else 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12116$as_echo "no" >&6; } 12117 fi 12118 elif test $build != $host && test $have_gcc_for_target = yes; then 12119 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` 12120 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= 12121 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET 12122 fi 12123fi 12124if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12125 # Extract the first word of "dsymutil", so it can be a program name with args. 12126set dummy dsymutil; ac_word=$2 12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12128$as_echo_n "checking for $ac_word... " >&6; } 12129if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : 12130 $as_echo_n "(cached) " >&6 12131else 12132 case $DSYMUTIL_FOR_TARGET in 12133 [\\/]* | ?:[\\/]*) 12134 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. 12135 ;; 12136 *) 12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12138for as_dir in $gcc_cv_tool_dirs 12139do 12140 IFS=$as_save_IFS 12141 test -z "$as_dir" && as_dir=. 12142 for ac_exec_ext in '' $ac_executable_extensions; do 12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12144 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12146 break 2 12147 fi 12148done 12149 done 12150IFS=$as_save_IFS 12151 12152 ;; 12153esac 12154fi 12155DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET 12156if test -n "$DSYMUTIL_FOR_TARGET"; then 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 12158$as_echo "$DSYMUTIL_FOR_TARGET" >&6; } 12159else 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12161$as_echo "no" >&6; } 12162fi 12163 12164 12165fi 12166if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then 12167 12168 12169if test -n "$DSYMUTIL_FOR_TARGET"; then 12170 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET 12171elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then 12172 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET 12173fi 12174 12175if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then 12176 for ncn_progname in dsymutil; do 12177 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12178set dummy ${ncn_progname}; ac_word=$2 12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12180$as_echo_n "checking for $ac_word... " >&6; } 12181if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : 12182 $as_echo_n "(cached) " >&6 12183else 12184 if test -n "$DSYMUTIL_FOR_TARGET"; then 12185 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. 12186else 12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12188for as_dir in $PATH 12189do 12190 IFS=$as_save_IFS 12191 test -z "$as_dir" && as_dir=. 12192 for ac_exec_ext in '' $ac_executable_extensions; do 12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12194 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" 12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12196 break 2 12197 fi 12198done 12199 done 12200IFS=$as_save_IFS 12201 12202fi 12203fi 12204DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET 12205if test -n "$DSYMUTIL_FOR_TARGET"; then 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 12207$as_echo "$DSYMUTIL_FOR_TARGET" >&6; } 12208else 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12210$as_echo "no" >&6; } 12211fi 12212 12213 12214 done 12215fi 12216 12217if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then 12218 for ncn_progname in dsymutil; do 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12220$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12221 if test -x $with_build_time_tools/${ncn_progname}; then 12222 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12224$as_echo "yes" >&6; } 12225 break 12226 else 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12228$as_echo "no" >&6; } 12229 fi 12230 done 12231fi 12232 12233if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then 12234 for ncn_progname in dsymutil; do 12235 if test -n "$ncn_target_tool_prefix"; then 12236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12237set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12239$as_echo_n "checking for $ac_word... " >&6; } 12240if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : 12241 $as_echo_n "(cached) " >&6 12242else 12243 if test -n "$DSYMUTIL_FOR_TARGET"; then 12244 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. 12245else 12246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12247for as_dir in $PATH 12248do 12249 IFS=$as_save_IFS 12250 test -z "$as_dir" && as_dir=. 12251 for ac_exec_ext in '' $ac_executable_extensions; do 12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12253 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12255 break 2 12256 fi 12257done 12258 done 12259IFS=$as_save_IFS 12260 12261fi 12262fi 12263DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET 12264if test -n "$DSYMUTIL_FOR_TARGET"; then 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 12266$as_echo "$DSYMUTIL_FOR_TARGET" >&6; } 12267else 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12269$as_echo "no" >&6; } 12270fi 12271 12272 12273 fi 12274 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then 12275 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12276set dummy ${ncn_progname}; ac_word=$2 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12278$as_echo_n "checking for $ac_word... " >&6; } 12279if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : 12280 $as_echo_n "(cached) " >&6 12281else 12282 if test -n "$DSYMUTIL_FOR_TARGET"; then 12283 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. 12284else 12285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12286for as_dir in $PATH 12287do 12288 IFS=$as_save_IFS 12289 test -z "$as_dir" && as_dir=. 12290 for ac_exec_ext in '' $ac_executable_extensions; do 12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12292 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" 12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12294 break 2 12295 fi 12296done 12297 done 12298IFS=$as_save_IFS 12299 12300fi 12301fi 12302DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET 12303if test -n "$DSYMUTIL_FOR_TARGET"; then 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 12305$as_echo "$DSYMUTIL_FOR_TARGET" >&6; } 12306else 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12308$as_echo "no" >&6; } 12309fi 12310 12311 12312 fi 12313 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break 12314 done 12315fi 12316 12317if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then 12318 set dummy dsymutil 12319 if test $build = $target ; then 12320 DSYMUTIL_FOR_TARGET="$2" 12321 else 12322 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" 12323 fi 12324else 12325 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" 12326fi 12327 12328else 12329 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET 12330fi 12331 12332 12333 12334 12335if test -z "$ac_cv_path_LD_FOR_TARGET" ; then 12336 if test -n "$with_build_time_tools"; then 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 12338$as_echo_n "checking for ld in $with_build_time_tools... " >&6; } 12339 if test -x $with_build_time_tools/ld; then 12340 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld 12341 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 12343$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } 12344 else 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12346$as_echo "no" >&6; } 12347 fi 12348 elif test $build != $host && test $have_gcc_for_target = yes; then 12349 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` 12350 test $LD_FOR_TARGET = ld && LD_FOR_TARGET= 12351 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET 12352 fi 12353fi 12354if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12355 # Extract the first word of "ld", so it can be a program name with args. 12356set dummy ld; ac_word=$2 12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12358$as_echo_n "checking for $ac_word... " >&6; } 12359if ${ac_cv_path_LD_FOR_TARGET+:} false; then : 12360 $as_echo_n "(cached) " >&6 12361else 12362 case $LD_FOR_TARGET in 12363 [\\/]* | ?:[\\/]*) 12364 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. 12365 ;; 12366 *) 12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12368for as_dir in $gcc_cv_tool_dirs 12369do 12370 IFS=$as_save_IFS 12371 test -z "$as_dir" && as_dir=. 12372 for ac_exec_ext in '' $ac_executable_extensions; do 12373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12374 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12376 break 2 12377 fi 12378done 12379 done 12380IFS=$as_save_IFS 12381 12382 ;; 12383esac 12384fi 12385LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET 12386if test -n "$LD_FOR_TARGET"; then 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 12388$as_echo "$LD_FOR_TARGET" >&6; } 12389else 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12391$as_echo "no" >&6; } 12392fi 12393 12394 12395fi 12396if test -z "$ac_cv_path_LD_FOR_TARGET" ; then 12397 12398 12399if test -n "$LD_FOR_TARGET"; then 12400 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET 12401elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then 12402 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 12403fi 12404 12405if test -n "$ac_cv_prog_LD_FOR_TARGET"; then 12406 for ncn_progname in ld; do 12407 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12408set dummy ${ncn_progname}; ac_word=$2 12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12410$as_echo_n "checking for $ac_word... " >&6; } 12411if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 12412 $as_echo_n "(cached) " >&6 12413else 12414 if test -n "$LD_FOR_TARGET"; then 12415 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 12416else 12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12418for as_dir in $PATH 12419do 12420 IFS=$as_save_IFS 12421 test -z "$as_dir" && as_dir=. 12422 for ac_exec_ext in '' $ac_executable_extensions; do 12423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12424 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" 12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12426 break 2 12427 fi 12428done 12429 done 12430IFS=$as_save_IFS 12431 12432fi 12433fi 12434LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 12435if test -n "$LD_FOR_TARGET"; then 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 12437$as_echo "$LD_FOR_TARGET" >&6; } 12438else 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12440$as_echo "no" >&6; } 12441fi 12442 12443 12444 done 12445fi 12446 12447if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then 12448 for ncn_progname in ld; do 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12450$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12451 if test -x $with_build_time_tools/${ncn_progname}; then 12452 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12454$as_echo "yes" >&6; } 12455 break 12456 else 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12458$as_echo "no" >&6; } 12459 fi 12460 done 12461fi 12462 12463if test -z "$ac_cv_prog_LD_FOR_TARGET"; then 12464 for ncn_progname in ld; do 12465 if test -n "$ncn_target_tool_prefix"; then 12466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12467set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12469$as_echo_n "checking for $ac_word... " >&6; } 12470if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 12471 $as_echo_n "(cached) " >&6 12472else 12473 if test -n "$LD_FOR_TARGET"; then 12474 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 12475else 12476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12477for as_dir in $PATH 12478do 12479 IFS=$as_save_IFS 12480 test -z "$as_dir" && as_dir=. 12481 for ac_exec_ext in '' $ac_executable_extensions; do 12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12483 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12485 break 2 12486 fi 12487done 12488 done 12489IFS=$as_save_IFS 12490 12491fi 12492fi 12493LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 12494if test -n "$LD_FOR_TARGET"; then 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 12496$as_echo "$LD_FOR_TARGET" >&6; } 12497else 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12499$as_echo "no" >&6; } 12500fi 12501 12502 12503 fi 12504 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then 12505 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12506set dummy ${ncn_progname}; ac_word=$2 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12508$as_echo_n "checking for $ac_word... " >&6; } 12509if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 12510 $as_echo_n "(cached) " >&6 12511else 12512 if test -n "$LD_FOR_TARGET"; then 12513 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 12514else 12515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12516for as_dir in $PATH 12517do 12518 IFS=$as_save_IFS 12519 test -z "$as_dir" && as_dir=. 12520 for ac_exec_ext in '' $ac_executable_extensions; do 12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12522 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" 12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12524 break 2 12525 fi 12526done 12527 done 12528IFS=$as_save_IFS 12529 12530fi 12531fi 12532LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 12533if test -n "$LD_FOR_TARGET"; then 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 12535$as_echo "$LD_FOR_TARGET" >&6; } 12536else 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12538$as_echo "no" >&6; } 12539fi 12540 12541 12542 fi 12543 test -n "$ac_cv_prog_LD_FOR_TARGET" && break 12544 done 12545fi 12546 12547if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then 12548 set dummy ld 12549 if test $build = $target ; then 12550 LD_FOR_TARGET="$2" 12551 else 12552 LD_FOR_TARGET="${ncn_target_tool_prefix}$2" 12553 fi 12554else 12555 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" 12556fi 12557 12558else 12559 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET 12560fi 12561 12562 12563 12564 12565if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then 12566 if test -n "$with_build_time_tools"; then 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 12568$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } 12569 if test -x $with_build_time_tools/lipo; then 12570 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo 12571 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 12573$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } 12574 else 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12576$as_echo "no" >&6; } 12577 fi 12578 elif test $build != $host && test $have_gcc_for_target = yes; then 12579 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` 12580 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= 12581 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 12582 fi 12583fi 12584if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12585 # Extract the first word of "lipo", so it can be a program name with args. 12586set dummy lipo; ac_word=$2 12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12588$as_echo_n "checking for $ac_word... " >&6; } 12589if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : 12590 $as_echo_n "(cached) " >&6 12591else 12592 case $LIPO_FOR_TARGET in 12593 [\\/]* | ?:[\\/]*) 12594 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. 12595 ;; 12596 *) 12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12598for as_dir in $gcc_cv_tool_dirs 12599do 12600 IFS=$as_save_IFS 12601 test -z "$as_dir" && as_dir=. 12602 for ac_exec_ext in '' $ac_executable_extensions; do 12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12604 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12606 break 2 12607 fi 12608done 12609 done 12610IFS=$as_save_IFS 12611 12612 ;; 12613esac 12614fi 12615LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET 12616if test -n "$LIPO_FOR_TARGET"; then 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12618$as_echo "$LIPO_FOR_TARGET" >&6; } 12619else 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12621$as_echo "no" >&6; } 12622fi 12623 12624 12625fi 12626if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then 12627 12628 12629if test -n "$LIPO_FOR_TARGET"; then 12630 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 12631elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then 12632 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12633fi 12634 12635if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then 12636 for ncn_progname in lipo; do 12637 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12638set dummy ${ncn_progname}; ac_word=$2 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12640$as_echo_n "checking for $ac_word... " >&6; } 12641if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 12642 $as_echo_n "(cached) " >&6 12643else 12644 if test -n "$LIPO_FOR_TARGET"; then 12645 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 12646else 12647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12648for as_dir in $PATH 12649do 12650 IFS=$as_save_IFS 12651 test -z "$as_dir" && as_dir=. 12652 for ac_exec_ext in '' $ac_executable_extensions; do 12653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12654 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" 12655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12656 break 2 12657 fi 12658done 12659 done 12660IFS=$as_save_IFS 12661 12662fi 12663fi 12664LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12665if test -n "$LIPO_FOR_TARGET"; then 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12667$as_echo "$LIPO_FOR_TARGET" >&6; } 12668else 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12670$as_echo "no" >&6; } 12671fi 12672 12673 12674 done 12675fi 12676 12677if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then 12678 for ncn_progname in lipo; do 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12680$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12681 if test -x $with_build_time_tools/${ncn_progname}; then 12682 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12684$as_echo "yes" >&6; } 12685 break 12686 else 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12688$as_echo "no" >&6; } 12689 fi 12690 done 12691fi 12692 12693if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then 12694 for ncn_progname in lipo; do 12695 if test -n "$ncn_target_tool_prefix"; then 12696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12697set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12699$as_echo_n "checking for $ac_word... " >&6; } 12700if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 12701 $as_echo_n "(cached) " >&6 12702else 12703 if test -n "$LIPO_FOR_TARGET"; then 12704 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 12705else 12706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12707for as_dir in $PATH 12708do 12709 IFS=$as_save_IFS 12710 test -z "$as_dir" && as_dir=. 12711 for ac_exec_ext in '' $ac_executable_extensions; do 12712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12713 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12715 break 2 12716 fi 12717done 12718 done 12719IFS=$as_save_IFS 12720 12721fi 12722fi 12723LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12724if test -n "$LIPO_FOR_TARGET"; then 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12726$as_echo "$LIPO_FOR_TARGET" >&6; } 12727else 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12729$as_echo "no" >&6; } 12730fi 12731 12732 12733 fi 12734 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then 12735 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12736set dummy ${ncn_progname}; ac_word=$2 12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12738$as_echo_n "checking for $ac_word... " >&6; } 12739if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 12740 $as_echo_n "(cached) " >&6 12741else 12742 if test -n "$LIPO_FOR_TARGET"; then 12743 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 12744else 12745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12746for as_dir in $PATH 12747do 12748 IFS=$as_save_IFS 12749 test -z "$as_dir" && as_dir=. 12750 for ac_exec_ext in '' $ac_executable_extensions; do 12751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12752 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" 12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12754 break 2 12755 fi 12756done 12757 done 12758IFS=$as_save_IFS 12759 12760fi 12761fi 12762LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12763if test -n "$LIPO_FOR_TARGET"; then 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12765$as_echo "$LIPO_FOR_TARGET" >&6; } 12766else 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12768$as_echo "no" >&6; } 12769fi 12770 12771 12772 fi 12773 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break 12774 done 12775fi 12776 12777if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then 12778 set dummy lipo 12779 if test $build = $target ; then 12780 LIPO_FOR_TARGET="$2" 12781 else 12782 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" 12783 fi 12784else 12785 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" 12786fi 12787 12788else 12789 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET 12790fi 12791 12792 12793 12794 12795if test -z "$ac_cv_path_NM_FOR_TARGET" ; then 12796 if test -n "$with_build_time_tools"; then 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 12798$as_echo_n "checking for nm in $with_build_time_tools... " >&6; } 12799 if test -x $with_build_time_tools/nm; then 12800 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm 12801 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 12803$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } 12804 else 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12806$as_echo "no" >&6; } 12807 fi 12808 elif test $build != $host && test $have_gcc_for_target = yes; then 12809 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` 12810 test $NM_FOR_TARGET = nm && NM_FOR_TARGET= 12811 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET 12812 fi 12813fi 12814if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12815 # Extract the first word of "nm", so it can be a program name with args. 12816set dummy nm; ac_word=$2 12817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12818$as_echo_n "checking for $ac_word... " >&6; } 12819if ${ac_cv_path_NM_FOR_TARGET+:} false; then : 12820 $as_echo_n "(cached) " >&6 12821else 12822 case $NM_FOR_TARGET in 12823 [\\/]* | ?:[\\/]*) 12824 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. 12825 ;; 12826 *) 12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12828for as_dir in $gcc_cv_tool_dirs 12829do 12830 IFS=$as_save_IFS 12831 test -z "$as_dir" && as_dir=. 12832 for ac_exec_ext in '' $ac_executable_extensions; do 12833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12834 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12836 break 2 12837 fi 12838done 12839 done 12840IFS=$as_save_IFS 12841 12842 ;; 12843esac 12844fi 12845NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET 12846if test -n "$NM_FOR_TARGET"; then 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12848$as_echo "$NM_FOR_TARGET" >&6; } 12849else 12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12851$as_echo "no" >&6; } 12852fi 12853 12854 12855fi 12856if test -z "$ac_cv_path_NM_FOR_TARGET" ; then 12857 12858 12859if test -n "$NM_FOR_TARGET"; then 12860 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET 12861elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then 12862 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12863fi 12864 12865if test -n "$ac_cv_prog_NM_FOR_TARGET"; then 12866 for ncn_progname in nm; do 12867 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12868set dummy ${ncn_progname}; ac_word=$2 12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12870$as_echo_n "checking for $ac_word... " >&6; } 12871if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12872 $as_echo_n "(cached) " >&6 12873else 12874 if test -n "$NM_FOR_TARGET"; then 12875 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12876else 12877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12878for as_dir in $PATH 12879do 12880 IFS=$as_save_IFS 12881 test -z "$as_dir" && as_dir=. 12882 for ac_exec_ext in '' $ac_executable_extensions; do 12883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12884 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" 12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12886 break 2 12887 fi 12888done 12889 done 12890IFS=$as_save_IFS 12891 12892fi 12893fi 12894NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12895if test -n "$NM_FOR_TARGET"; then 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12897$as_echo "$NM_FOR_TARGET" >&6; } 12898else 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12900$as_echo "no" >&6; } 12901fi 12902 12903 12904 done 12905fi 12906 12907if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then 12908 for ncn_progname in nm; do 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12910$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12911 if test -x $with_build_time_tools/${ncn_progname}; then 12912 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12914$as_echo "yes" >&6; } 12915 break 12916 else 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12918$as_echo "no" >&6; } 12919 fi 12920 done 12921fi 12922 12923if test -z "$ac_cv_prog_NM_FOR_TARGET"; then 12924 for ncn_progname in nm; do 12925 if test -n "$ncn_target_tool_prefix"; then 12926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12927set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12929$as_echo_n "checking for $ac_word... " >&6; } 12930if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12931 $as_echo_n "(cached) " >&6 12932else 12933 if test -n "$NM_FOR_TARGET"; then 12934 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12935else 12936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12937for as_dir in $PATH 12938do 12939 IFS=$as_save_IFS 12940 test -z "$as_dir" && as_dir=. 12941 for ac_exec_ext in '' $ac_executable_extensions; do 12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12943 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12945 break 2 12946 fi 12947done 12948 done 12949IFS=$as_save_IFS 12950 12951fi 12952fi 12953NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12954if test -n "$NM_FOR_TARGET"; then 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12956$as_echo "$NM_FOR_TARGET" >&6; } 12957else 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12959$as_echo "no" >&6; } 12960fi 12961 12962 12963 fi 12964 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then 12965 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12966set dummy ${ncn_progname}; ac_word=$2 12967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12968$as_echo_n "checking for $ac_word... " >&6; } 12969if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12970 $as_echo_n "(cached) " >&6 12971else 12972 if test -n "$NM_FOR_TARGET"; then 12973 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12974else 12975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12976for as_dir in $PATH 12977do 12978 IFS=$as_save_IFS 12979 test -z "$as_dir" && as_dir=. 12980 for ac_exec_ext in '' $ac_executable_extensions; do 12981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12982 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" 12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12984 break 2 12985 fi 12986done 12987 done 12988IFS=$as_save_IFS 12989 12990fi 12991fi 12992NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12993if test -n "$NM_FOR_TARGET"; then 12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12995$as_echo "$NM_FOR_TARGET" >&6; } 12996else 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12998$as_echo "no" >&6; } 12999fi 13000 13001 13002 fi 13003 test -n "$ac_cv_prog_NM_FOR_TARGET" && break 13004 done 13005fi 13006 13007if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then 13008 set dummy nm 13009 if test $build = $target ; then 13010 NM_FOR_TARGET="$2" 13011 else 13012 NM_FOR_TARGET="${ncn_target_tool_prefix}$2" 13013 fi 13014else 13015 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" 13016fi 13017 13018else 13019 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET 13020fi 13021 13022 13023 13024 13025if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then 13026 if test -n "$with_build_time_tools"; then 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 13028$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } 13029 if test -x $with_build_time_tools/objcopy; then 13030 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy 13031 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 13033$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } 13034 else 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13036$as_echo "no" >&6; } 13037 fi 13038 elif test $build != $host && test $have_gcc_for_target = yes; then 13039 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` 13040 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= 13041 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 13042 fi 13043fi 13044if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13045 # Extract the first word of "objcopy", so it can be a program name with args. 13046set dummy objcopy; ac_word=$2 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13048$as_echo_n "checking for $ac_word... " >&6; } 13049if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051else 13052 case $OBJCOPY_FOR_TARGET in 13053 [\\/]* | ?:[\\/]*) 13054 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. 13055 ;; 13056 *) 13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13058for as_dir in $gcc_cv_tool_dirs 13059do 13060 IFS=$as_save_IFS 13061 test -z "$as_dir" && as_dir=. 13062 for ac_exec_ext in '' $ac_executable_extensions; do 13063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13064 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13066 break 2 13067 fi 13068done 13069 done 13070IFS=$as_save_IFS 13071 13072 ;; 13073esac 13074fi 13075OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET 13076if test -n "$OBJCOPY_FOR_TARGET"; then 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 13078$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 13079else 13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13081$as_echo "no" >&6; } 13082fi 13083 13084 13085fi 13086if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then 13087 13088 13089if test -n "$OBJCOPY_FOR_TARGET"; then 13090 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 13091elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 13092 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 13093fi 13094 13095if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 13096 for ncn_progname in objcopy; do 13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13098set dummy ${ncn_progname}; ac_word=$2 13099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13100$as_echo_n "checking for $ac_word... " >&6; } 13101if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 13102 $as_echo_n "(cached) " >&6 13103else 13104 if test -n "$OBJCOPY_FOR_TARGET"; then 13105 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 13106else 13107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13108for as_dir in $PATH 13109do 13110 IFS=$as_save_IFS 13111 test -z "$as_dir" && as_dir=. 13112 for ac_exec_ext in '' $ac_executable_extensions; do 13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13114 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" 13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13116 break 2 13117 fi 13118done 13119 done 13120IFS=$as_save_IFS 13121 13122fi 13123fi 13124OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 13125if test -n "$OBJCOPY_FOR_TARGET"; then 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 13127$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 13128else 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13130$as_echo "no" >&6; } 13131fi 13132 13133 13134 done 13135fi 13136 13137if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then 13138 for ncn_progname in objcopy; do 13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13140$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13141 if test -x $with_build_time_tools/${ncn_progname}; then 13142 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13144$as_echo "yes" >&6; } 13145 break 13146 else 13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13148$as_echo "no" >&6; } 13149 fi 13150 done 13151fi 13152 13153if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 13154 for ncn_progname in objcopy; do 13155 if test -n "$ncn_target_tool_prefix"; then 13156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13157set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13159$as_echo_n "checking for $ac_word... " >&6; } 13160if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 13161 $as_echo_n "(cached) " >&6 13162else 13163 if test -n "$OBJCOPY_FOR_TARGET"; then 13164 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 13165else 13166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13167for as_dir in $PATH 13168do 13169 IFS=$as_save_IFS 13170 test -z "$as_dir" && as_dir=. 13171 for ac_exec_ext in '' $ac_executable_extensions; do 13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13173 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13175 break 2 13176 fi 13177done 13178 done 13179IFS=$as_save_IFS 13180 13181fi 13182fi 13183OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 13184if test -n "$OBJCOPY_FOR_TARGET"; then 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 13186$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 13187else 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13189$as_echo "no" >&6; } 13190fi 13191 13192 13193 fi 13194 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then 13195 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13196set dummy ${ncn_progname}; ac_word=$2 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13198$as_echo_n "checking for $ac_word... " >&6; } 13199if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201else 13202 if test -n "$OBJCOPY_FOR_TARGET"; then 13203 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 13204else 13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13206for as_dir in $PATH 13207do 13208 IFS=$as_save_IFS 13209 test -z "$as_dir" && as_dir=. 13210 for ac_exec_ext in '' $ac_executable_extensions; do 13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13212 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" 13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13214 break 2 13215 fi 13216done 13217 done 13218IFS=$as_save_IFS 13219 13220fi 13221fi 13222OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 13223if test -n "$OBJCOPY_FOR_TARGET"; then 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 13225$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 13226else 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13228$as_echo "no" >&6; } 13229fi 13230 13231 13232 fi 13233 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break 13234 done 13235fi 13236 13237if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then 13238 set dummy objcopy 13239 if test $build = $target ; then 13240 OBJCOPY_FOR_TARGET="$2" 13241 else 13242 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" 13243 fi 13244else 13245 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" 13246fi 13247 13248else 13249 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET 13250fi 13251 13252 13253 13254 13255if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then 13256 if test -n "$with_build_time_tools"; then 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 13258$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } 13259 if test -x $with_build_time_tools/objdump; then 13260 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump 13261 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 13263$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } 13264 else 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13266$as_echo "no" >&6; } 13267 fi 13268 elif test $build != $host && test $have_gcc_for_target = yes; then 13269 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` 13270 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= 13271 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 13272 fi 13273fi 13274if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13275 # Extract the first word of "objdump", so it can be a program name with args. 13276set dummy objdump; ac_word=$2 13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13278$as_echo_n "checking for $ac_word... " >&6; } 13279if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : 13280 $as_echo_n "(cached) " >&6 13281else 13282 case $OBJDUMP_FOR_TARGET in 13283 [\\/]* | ?:[\\/]*) 13284 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. 13285 ;; 13286 *) 13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13288for as_dir in $gcc_cv_tool_dirs 13289do 13290 IFS=$as_save_IFS 13291 test -z "$as_dir" && as_dir=. 13292 for ac_exec_ext in '' $ac_executable_extensions; do 13293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13294 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13296 break 2 13297 fi 13298done 13299 done 13300IFS=$as_save_IFS 13301 13302 ;; 13303esac 13304fi 13305OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET 13306if test -n "$OBJDUMP_FOR_TARGET"; then 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 13308$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 13309else 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13311$as_echo "no" >&6; } 13312fi 13313 13314 13315fi 13316if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then 13317 13318 13319if test -n "$OBJDUMP_FOR_TARGET"; then 13320 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 13321elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 13322 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 13323fi 13324 13325if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 13326 for ncn_progname in objdump; do 13327 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13328set dummy ${ncn_progname}; ac_word=$2 13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13330$as_echo_n "checking for $ac_word... " >&6; } 13331if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 13332 $as_echo_n "(cached) " >&6 13333else 13334 if test -n "$OBJDUMP_FOR_TARGET"; then 13335 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 13336else 13337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13338for as_dir in $PATH 13339do 13340 IFS=$as_save_IFS 13341 test -z "$as_dir" && as_dir=. 13342 for ac_exec_ext in '' $ac_executable_extensions; do 13343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13344 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" 13345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13346 break 2 13347 fi 13348done 13349 done 13350IFS=$as_save_IFS 13351 13352fi 13353fi 13354OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 13355if test -n "$OBJDUMP_FOR_TARGET"; then 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 13357$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 13358else 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13360$as_echo "no" >&6; } 13361fi 13362 13363 13364 done 13365fi 13366 13367if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then 13368 for ncn_progname in objdump; do 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13370$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13371 if test -x $with_build_time_tools/${ncn_progname}; then 13372 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13374$as_echo "yes" >&6; } 13375 break 13376 else 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13378$as_echo "no" >&6; } 13379 fi 13380 done 13381fi 13382 13383if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 13384 for ncn_progname in objdump; do 13385 if test -n "$ncn_target_tool_prefix"; then 13386 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13387set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13389$as_echo_n "checking for $ac_word... " >&6; } 13390if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 13391 $as_echo_n "(cached) " >&6 13392else 13393 if test -n "$OBJDUMP_FOR_TARGET"; then 13394 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 13395else 13396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13397for as_dir in $PATH 13398do 13399 IFS=$as_save_IFS 13400 test -z "$as_dir" && as_dir=. 13401 for ac_exec_ext in '' $ac_executable_extensions; do 13402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13403 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13405 break 2 13406 fi 13407done 13408 done 13409IFS=$as_save_IFS 13410 13411fi 13412fi 13413OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 13414if test -n "$OBJDUMP_FOR_TARGET"; then 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 13416$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 13417else 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13419$as_echo "no" >&6; } 13420fi 13421 13422 13423 fi 13424 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then 13425 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13426set dummy ${ncn_progname}; ac_word=$2 13427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13428$as_echo_n "checking for $ac_word... " >&6; } 13429if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 13430 $as_echo_n "(cached) " >&6 13431else 13432 if test -n "$OBJDUMP_FOR_TARGET"; then 13433 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 13434else 13435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13436for as_dir in $PATH 13437do 13438 IFS=$as_save_IFS 13439 test -z "$as_dir" && as_dir=. 13440 for ac_exec_ext in '' $ac_executable_extensions; do 13441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13442 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" 13443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13444 break 2 13445 fi 13446done 13447 done 13448IFS=$as_save_IFS 13449 13450fi 13451fi 13452OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 13453if test -n "$OBJDUMP_FOR_TARGET"; then 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 13455$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 13456else 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13458$as_echo "no" >&6; } 13459fi 13460 13461 13462 fi 13463 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break 13464 done 13465fi 13466 13467if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then 13468 set dummy objdump 13469 if test $build = $target ; then 13470 OBJDUMP_FOR_TARGET="$2" 13471 else 13472 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" 13473 fi 13474else 13475 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" 13476fi 13477 13478else 13479 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET 13480fi 13481 13482 13483 13484 13485if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then 13486 if test -n "$with_build_time_tools"; then 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 13488$as_echo_n "checking for otool in $with_build_time_tools... " >&6; } 13489 if test -x $with_build_time_tools/otool; then 13490 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool 13491 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET 13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 13493$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } 13494 else 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13496$as_echo "no" >&6; } 13497 fi 13498 elif test $build != $host && test $have_gcc_for_target = yes; then 13499 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` 13500 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= 13501 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET 13502 fi 13503fi 13504if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13505 # Extract the first word of "otool", so it can be a program name with args. 13506set dummy otool; ac_word=$2 13507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13508$as_echo_n "checking for $ac_word... " >&6; } 13509if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : 13510 $as_echo_n "(cached) " >&6 13511else 13512 case $OTOOL_FOR_TARGET in 13513 [\\/]* | ?:[\\/]*) 13514 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. 13515 ;; 13516 *) 13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13518for as_dir in $gcc_cv_tool_dirs 13519do 13520 IFS=$as_save_IFS 13521 test -z "$as_dir" && as_dir=. 13522 for ac_exec_ext in '' $ac_executable_extensions; do 13523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13524 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13526 break 2 13527 fi 13528done 13529 done 13530IFS=$as_save_IFS 13531 13532 ;; 13533esac 13534fi 13535OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET 13536if test -n "$OTOOL_FOR_TARGET"; then 13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 13538$as_echo "$OTOOL_FOR_TARGET" >&6; } 13539else 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13541$as_echo "no" >&6; } 13542fi 13543 13544 13545fi 13546if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then 13547 13548 13549if test -n "$OTOOL_FOR_TARGET"; then 13550 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET 13551elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then 13552 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET 13553fi 13554 13555if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then 13556 for ncn_progname in otool; do 13557 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13558set dummy ${ncn_progname}; ac_word=$2 13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13560$as_echo_n "checking for $ac_word... " >&6; } 13561if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : 13562 $as_echo_n "(cached) " >&6 13563else 13564 if test -n "$OTOOL_FOR_TARGET"; then 13565 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. 13566else 13567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13568for as_dir in $PATH 13569do 13570 IFS=$as_save_IFS 13571 test -z "$as_dir" && as_dir=. 13572 for ac_exec_ext in '' $ac_executable_extensions; do 13573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13574 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" 13575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13576 break 2 13577 fi 13578done 13579 done 13580IFS=$as_save_IFS 13581 13582fi 13583fi 13584OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET 13585if test -n "$OTOOL_FOR_TARGET"; then 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 13587$as_echo "$OTOOL_FOR_TARGET" >&6; } 13588else 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13590$as_echo "no" >&6; } 13591fi 13592 13593 13594 done 13595fi 13596 13597if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then 13598 for ncn_progname in otool; do 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13600$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13601 if test -x $with_build_time_tools/${ncn_progname}; then 13602 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13604$as_echo "yes" >&6; } 13605 break 13606 else 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13608$as_echo "no" >&6; } 13609 fi 13610 done 13611fi 13612 13613if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then 13614 for ncn_progname in otool; do 13615 if test -n "$ncn_target_tool_prefix"; then 13616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13617set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13619$as_echo_n "checking for $ac_word... " >&6; } 13620if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : 13621 $as_echo_n "(cached) " >&6 13622else 13623 if test -n "$OTOOL_FOR_TARGET"; then 13624 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. 13625else 13626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13627for as_dir in $PATH 13628do 13629 IFS=$as_save_IFS 13630 test -z "$as_dir" && as_dir=. 13631 for ac_exec_ext in '' $ac_executable_extensions; do 13632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13633 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13635 break 2 13636 fi 13637done 13638 done 13639IFS=$as_save_IFS 13640 13641fi 13642fi 13643OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET 13644if test -n "$OTOOL_FOR_TARGET"; then 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 13646$as_echo "$OTOOL_FOR_TARGET" >&6; } 13647else 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13649$as_echo "no" >&6; } 13650fi 13651 13652 13653 fi 13654 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then 13655 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13656set dummy ${ncn_progname}; ac_word=$2 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13658$as_echo_n "checking for $ac_word... " >&6; } 13659if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : 13660 $as_echo_n "(cached) " >&6 13661else 13662 if test -n "$OTOOL_FOR_TARGET"; then 13663 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. 13664else 13665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13666for as_dir in $PATH 13667do 13668 IFS=$as_save_IFS 13669 test -z "$as_dir" && as_dir=. 13670 for ac_exec_ext in '' $ac_executable_extensions; do 13671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13672 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" 13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13674 break 2 13675 fi 13676done 13677 done 13678IFS=$as_save_IFS 13679 13680fi 13681fi 13682OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET 13683if test -n "$OTOOL_FOR_TARGET"; then 13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 13685$as_echo "$OTOOL_FOR_TARGET" >&6; } 13686else 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13688$as_echo "no" >&6; } 13689fi 13690 13691 13692 fi 13693 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break 13694 done 13695fi 13696 13697if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then 13698 set dummy otool 13699 if test $build = $target ; then 13700 OTOOL_FOR_TARGET="$2" 13701 else 13702 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" 13703 fi 13704else 13705 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" 13706fi 13707 13708else 13709 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET 13710fi 13711 13712 13713 13714 13715if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then 13716 if test -n "$with_build_time_tools"; then 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 13718$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } 13719 if test -x $with_build_time_tools/ranlib; then 13720 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib 13721 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 13723$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } 13724 else 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13726$as_echo "no" >&6; } 13727 fi 13728 elif test $build != $host && test $have_gcc_for_target = yes; then 13729 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` 13730 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= 13731 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 13732 fi 13733fi 13734if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13735 # Extract the first word of "ranlib", so it can be a program name with args. 13736set dummy ranlib; ac_word=$2 13737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13738$as_echo_n "checking for $ac_word... " >&6; } 13739if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : 13740 $as_echo_n "(cached) " >&6 13741else 13742 case $RANLIB_FOR_TARGET in 13743 [\\/]* | ?:[\\/]*) 13744 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. 13745 ;; 13746 *) 13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13748for as_dir in $gcc_cv_tool_dirs 13749do 13750 IFS=$as_save_IFS 13751 test -z "$as_dir" && as_dir=. 13752 for ac_exec_ext in '' $ac_executable_extensions; do 13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13754 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13756 break 2 13757 fi 13758done 13759 done 13760IFS=$as_save_IFS 13761 13762 ;; 13763esac 13764fi 13765RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET 13766if test -n "$RANLIB_FOR_TARGET"; then 13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 13768$as_echo "$RANLIB_FOR_TARGET" >&6; } 13769else 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13771$as_echo "no" >&6; } 13772fi 13773 13774 13775fi 13776if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then 13777 13778 13779if test -n "$RANLIB_FOR_TARGET"; then 13780 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 13781elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then 13782 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 13783fi 13784 13785if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then 13786 for ncn_progname in ranlib; do 13787 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13788set dummy ${ncn_progname}; ac_word=$2 13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13790$as_echo_n "checking for $ac_word... " >&6; } 13791if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 13792 $as_echo_n "(cached) " >&6 13793else 13794 if test -n "$RANLIB_FOR_TARGET"; then 13795 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 13796else 13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13798for as_dir in $PATH 13799do 13800 IFS=$as_save_IFS 13801 test -z "$as_dir" && as_dir=. 13802 for ac_exec_ext in '' $ac_executable_extensions; do 13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13804 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" 13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13806 break 2 13807 fi 13808done 13809 done 13810IFS=$as_save_IFS 13811 13812fi 13813fi 13814RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 13815if test -n "$RANLIB_FOR_TARGET"; then 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 13817$as_echo "$RANLIB_FOR_TARGET" >&6; } 13818else 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13820$as_echo "no" >&6; } 13821fi 13822 13823 13824 done 13825fi 13826 13827if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then 13828 for ncn_progname in ranlib; do 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13830$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13831 if test -x $with_build_time_tools/${ncn_progname}; then 13832 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13834$as_echo "yes" >&6; } 13835 break 13836 else 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13838$as_echo "no" >&6; } 13839 fi 13840 done 13841fi 13842 13843if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then 13844 for ncn_progname in ranlib; do 13845 if test -n "$ncn_target_tool_prefix"; then 13846 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13847set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13849$as_echo_n "checking for $ac_word... " >&6; } 13850if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 13851 $as_echo_n "(cached) " >&6 13852else 13853 if test -n "$RANLIB_FOR_TARGET"; then 13854 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 13855else 13856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13857for as_dir in $PATH 13858do 13859 IFS=$as_save_IFS 13860 test -z "$as_dir" && as_dir=. 13861 for ac_exec_ext in '' $ac_executable_extensions; do 13862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13863 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13865 break 2 13866 fi 13867done 13868 done 13869IFS=$as_save_IFS 13870 13871fi 13872fi 13873RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 13874if test -n "$RANLIB_FOR_TARGET"; then 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 13876$as_echo "$RANLIB_FOR_TARGET" >&6; } 13877else 13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13879$as_echo "no" >&6; } 13880fi 13881 13882 13883 fi 13884 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then 13885 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13886set dummy ${ncn_progname}; ac_word=$2 13887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13888$as_echo_n "checking for $ac_word... " >&6; } 13889if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 13890 $as_echo_n "(cached) " >&6 13891else 13892 if test -n "$RANLIB_FOR_TARGET"; then 13893 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 13894else 13895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13896for as_dir in $PATH 13897do 13898 IFS=$as_save_IFS 13899 test -z "$as_dir" && as_dir=. 13900 for ac_exec_ext in '' $ac_executable_extensions; do 13901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13902 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" 13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13904 break 2 13905 fi 13906done 13907 done 13908IFS=$as_save_IFS 13909 13910fi 13911fi 13912RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 13913if test -n "$RANLIB_FOR_TARGET"; then 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 13915$as_echo "$RANLIB_FOR_TARGET" >&6; } 13916else 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13918$as_echo "no" >&6; } 13919fi 13920 13921 13922 fi 13923 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break 13924 done 13925fi 13926 13927if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then 13928 set dummy ranlib 13929 if test $build = $target ; then 13930 RANLIB_FOR_TARGET="$2" 13931 else 13932 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" 13933 fi 13934else 13935 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" 13936fi 13937 13938else 13939 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET 13940fi 13941 13942 13943 13944 13945if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then 13946 if test -n "$with_build_time_tools"; then 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 13948$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } 13949 if test -x $with_build_time_tools/readelf; then 13950 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf 13951 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 13953$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } 13954 else 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13956$as_echo "no" >&6; } 13957 fi 13958 elif test $build != $host && test $have_gcc_for_target = yes; then 13959 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` 13960 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= 13961 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET 13962 fi 13963fi 13964if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13965 # Extract the first word of "readelf", so it can be a program name with args. 13966set dummy readelf; ac_word=$2 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13968$as_echo_n "checking for $ac_word... " >&6; } 13969if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : 13970 $as_echo_n "(cached) " >&6 13971else 13972 case $READELF_FOR_TARGET in 13973 [\\/]* | ?:[\\/]*) 13974 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. 13975 ;; 13976 *) 13977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13978for as_dir in $gcc_cv_tool_dirs 13979do 13980 IFS=$as_save_IFS 13981 test -z "$as_dir" && as_dir=. 13982 for ac_exec_ext in '' $ac_executable_extensions; do 13983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13984 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13986 break 2 13987 fi 13988done 13989 done 13990IFS=$as_save_IFS 13991 13992 ;; 13993esac 13994fi 13995READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET 13996if test -n "$READELF_FOR_TARGET"; then 13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13998$as_echo "$READELF_FOR_TARGET" >&6; } 13999else 14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14001$as_echo "no" >&6; } 14002fi 14003 14004 14005fi 14006if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then 14007 14008 14009if test -n "$READELF_FOR_TARGET"; then 14010 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET 14011elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then 14012 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 14013fi 14014 14015if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then 14016 for ncn_progname in readelf; do 14017 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14018set dummy ${ncn_progname}; ac_word=$2 14019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14020$as_echo_n "checking for $ac_word... " >&6; } 14021if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 14022 $as_echo_n "(cached) " >&6 14023else 14024 if test -n "$READELF_FOR_TARGET"; then 14025 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 14026else 14027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14028for as_dir in $PATH 14029do 14030 IFS=$as_save_IFS 14031 test -z "$as_dir" && as_dir=. 14032 for ac_exec_ext in '' $ac_executable_extensions; do 14033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14034 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" 14035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14036 break 2 14037 fi 14038done 14039 done 14040IFS=$as_save_IFS 14041 14042fi 14043fi 14044READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 14045if test -n "$READELF_FOR_TARGET"; then 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 14047$as_echo "$READELF_FOR_TARGET" >&6; } 14048else 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14050$as_echo "no" >&6; } 14051fi 14052 14053 14054 done 14055fi 14056 14057if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then 14058 for ncn_progname in readelf; do 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 14060$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 14061 if test -x $with_build_time_tools/${ncn_progname}; then 14062 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14064$as_echo "yes" >&6; } 14065 break 14066 else 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14068$as_echo "no" >&6; } 14069 fi 14070 done 14071fi 14072 14073if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then 14074 for ncn_progname in readelf; do 14075 if test -n "$ncn_target_tool_prefix"; then 14076 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 14077set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 14078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14079$as_echo_n "checking for $ac_word... " >&6; } 14080if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 14081 $as_echo_n "(cached) " >&6 14082else 14083 if test -n "$READELF_FOR_TARGET"; then 14084 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 14085else 14086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14087for as_dir in $PATH 14088do 14089 IFS=$as_save_IFS 14090 test -z "$as_dir" && as_dir=. 14091 for ac_exec_ext in '' $ac_executable_extensions; do 14092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14093 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 14094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14095 break 2 14096 fi 14097done 14098 done 14099IFS=$as_save_IFS 14100 14101fi 14102fi 14103READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 14104if test -n "$READELF_FOR_TARGET"; then 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 14106$as_echo "$READELF_FOR_TARGET" >&6; } 14107else 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14109$as_echo "no" >&6; } 14110fi 14111 14112 14113 fi 14114 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then 14115 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14116set dummy ${ncn_progname}; ac_word=$2 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14118$as_echo_n "checking for $ac_word... " >&6; } 14119if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 14120 $as_echo_n "(cached) " >&6 14121else 14122 if test -n "$READELF_FOR_TARGET"; then 14123 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 14124else 14125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14126for as_dir in $PATH 14127do 14128 IFS=$as_save_IFS 14129 test -z "$as_dir" && as_dir=. 14130 for ac_exec_ext in '' $ac_executable_extensions; do 14131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14132 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" 14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14134 break 2 14135 fi 14136done 14137 done 14138IFS=$as_save_IFS 14139 14140fi 14141fi 14142READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 14143if test -n "$READELF_FOR_TARGET"; then 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 14145$as_echo "$READELF_FOR_TARGET" >&6; } 14146else 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14148$as_echo "no" >&6; } 14149fi 14150 14151 14152 fi 14153 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break 14154 done 14155fi 14156 14157if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then 14158 set dummy readelf 14159 if test $build = $target ; then 14160 READELF_FOR_TARGET="$2" 14161 else 14162 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" 14163 fi 14164else 14165 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" 14166fi 14167 14168else 14169 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET 14170fi 14171 14172 14173 14174 14175if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then 14176 if test -n "$with_build_time_tools"; then 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 14178$as_echo_n "checking for strip in $with_build_time_tools... " >&6; } 14179 if test -x $with_build_time_tools/strip; then 14180 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip 14181 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 14183$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } 14184 else 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14186$as_echo "no" >&6; } 14187 fi 14188 elif test $build != $host && test $have_gcc_for_target = yes; then 14189 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` 14190 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= 14191 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 14192 fi 14193fi 14194if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 14195 # Extract the first word of "strip", so it can be a program name with args. 14196set dummy strip; ac_word=$2 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14198$as_echo_n "checking for $ac_word... " >&6; } 14199if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : 14200 $as_echo_n "(cached) " >&6 14201else 14202 case $STRIP_FOR_TARGET in 14203 [\\/]* | ?:[\\/]*) 14204 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. 14205 ;; 14206 *) 14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14208for as_dir in $gcc_cv_tool_dirs 14209do 14210 IFS=$as_save_IFS 14211 test -z "$as_dir" && as_dir=. 14212 for ac_exec_ext in '' $ac_executable_extensions; do 14213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14214 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14216 break 2 14217 fi 14218done 14219 done 14220IFS=$as_save_IFS 14221 14222 ;; 14223esac 14224fi 14225STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET 14226if test -n "$STRIP_FOR_TARGET"; then 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 14228$as_echo "$STRIP_FOR_TARGET" >&6; } 14229else 14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14231$as_echo "no" >&6; } 14232fi 14233 14234 14235fi 14236if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then 14237 14238 14239if test -n "$STRIP_FOR_TARGET"; then 14240 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 14241elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then 14242 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 14243fi 14244 14245if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then 14246 for ncn_progname in strip; do 14247 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14248set dummy ${ncn_progname}; ac_word=$2 14249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14250$as_echo_n "checking for $ac_word... " >&6; } 14251if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 14252 $as_echo_n "(cached) " >&6 14253else 14254 if test -n "$STRIP_FOR_TARGET"; then 14255 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 14256else 14257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14258for as_dir in $PATH 14259do 14260 IFS=$as_save_IFS 14261 test -z "$as_dir" && as_dir=. 14262 for ac_exec_ext in '' $ac_executable_extensions; do 14263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14264 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" 14265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14266 break 2 14267 fi 14268done 14269 done 14270IFS=$as_save_IFS 14271 14272fi 14273fi 14274STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 14275if test -n "$STRIP_FOR_TARGET"; then 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 14277$as_echo "$STRIP_FOR_TARGET" >&6; } 14278else 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14280$as_echo "no" >&6; } 14281fi 14282 14283 14284 done 14285fi 14286 14287if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then 14288 for ncn_progname in strip; do 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 14290$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 14291 if test -x $with_build_time_tools/${ncn_progname}; then 14292 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14294$as_echo "yes" >&6; } 14295 break 14296 else 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14298$as_echo "no" >&6; } 14299 fi 14300 done 14301fi 14302 14303if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then 14304 for ncn_progname in strip; do 14305 if test -n "$ncn_target_tool_prefix"; then 14306 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 14307set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 14308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14309$as_echo_n "checking for $ac_word... " >&6; } 14310if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 14311 $as_echo_n "(cached) " >&6 14312else 14313 if test -n "$STRIP_FOR_TARGET"; then 14314 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 14315else 14316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14317for as_dir in $PATH 14318do 14319 IFS=$as_save_IFS 14320 test -z "$as_dir" && as_dir=. 14321 for ac_exec_ext in '' $ac_executable_extensions; do 14322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14323 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 14324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14325 break 2 14326 fi 14327done 14328 done 14329IFS=$as_save_IFS 14330 14331fi 14332fi 14333STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 14334if test -n "$STRIP_FOR_TARGET"; then 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 14336$as_echo "$STRIP_FOR_TARGET" >&6; } 14337else 14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14339$as_echo "no" >&6; } 14340fi 14341 14342 14343 fi 14344 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then 14345 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14346set dummy ${ncn_progname}; ac_word=$2 14347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14348$as_echo_n "checking for $ac_word... " >&6; } 14349if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 14350 $as_echo_n "(cached) " >&6 14351else 14352 if test -n "$STRIP_FOR_TARGET"; then 14353 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 14354else 14355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14356for as_dir in $PATH 14357do 14358 IFS=$as_save_IFS 14359 test -z "$as_dir" && as_dir=. 14360 for ac_exec_ext in '' $ac_executable_extensions; do 14361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14362 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" 14363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14364 break 2 14365 fi 14366done 14367 done 14368IFS=$as_save_IFS 14369 14370fi 14371fi 14372STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 14373if test -n "$STRIP_FOR_TARGET"; then 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 14375$as_echo "$STRIP_FOR_TARGET" >&6; } 14376else 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14378$as_echo "no" >&6; } 14379fi 14380 14381 14382 fi 14383 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break 14384 done 14385fi 14386 14387if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then 14388 set dummy strip 14389 if test $build = $target ; then 14390 STRIP_FOR_TARGET="$2" 14391 else 14392 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" 14393 fi 14394else 14395 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" 14396fi 14397 14398else 14399 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET 14400fi 14401 14402 14403 14404 14405if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then 14406 if test -n "$with_build_time_tools"; then 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 14408$as_echo_n "checking for windres in $with_build_time_tools... " >&6; } 14409 if test -x $with_build_time_tools/windres; then 14410 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres 14411 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 14413$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } 14414 else 14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14416$as_echo "no" >&6; } 14417 fi 14418 elif test $build != $host && test $have_gcc_for_target = yes; then 14419 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` 14420 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= 14421 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 14422 fi 14423fi 14424if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 14425 # Extract the first word of "windres", so it can be a program name with args. 14426set dummy windres; ac_word=$2 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14428$as_echo_n "checking for $ac_word... " >&6; } 14429if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : 14430 $as_echo_n "(cached) " >&6 14431else 14432 case $WINDRES_FOR_TARGET in 14433 [\\/]* | ?:[\\/]*) 14434 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. 14435 ;; 14436 *) 14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14438for as_dir in $gcc_cv_tool_dirs 14439do 14440 IFS=$as_save_IFS 14441 test -z "$as_dir" && as_dir=. 14442 for ac_exec_ext in '' $ac_executable_extensions; do 14443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14444 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 14445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14446 break 2 14447 fi 14448done 14449 done 14450IFS=$as_save_IFS 14451 14452 ;; 14453esac 14454fi 14455WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET 14456if test -n "$WINDRES_FOR_TARGET"; then 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 14458$as_echo "$WINDRES_FOR_TARGET" >&6; } 14459else 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14461$as_echo "no" >&6; } 14462fi 14463 14464 14465fi 14466if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then 14467 14468 14469if test -n "$WINDRES_FOR_TARGET"; then 14470 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 14471elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then 14472 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 14473fi 14474 14475if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then 14476 for ncn_progname in windres; do 14477 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14478set dummy ${ncn_progname}; ac_word=$2 14479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14480$as_echo_n "checking for $ac_word... " >&6; } 14481if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 14482 $as_echo_n "(cached) " >&6 14483else 14484 if test -n "$WINDRES_FOR_TARGET"; then 14485 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 14486else 14487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14488for as_dir in $PATH 14489do 14490 IFS=$as_save_IFS 14491 test -z "$as_dir" && as_dir=. 14492 for ac_exec_ext in '' $ac_executable_extensions; do 14493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14494 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" 14495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14496 break 2 14497 fi 14498done 14499 done 14500IFS=$as_save_IFS 14501 14502fi 14503fi 14504WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 14505if test -n "$WINDRES_FOR_TARGET"; then 14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 14507$as_echo "$WINDRES_FOR_TARGET" >&6; } 14508else 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14510$as_echo "no" >&6; } 14511fi 14512 14513 14514 done 14515fi 14516 14517if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then 14518 for ncn_progname in windres; do 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 14520$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 14521 if test -x $with_build_time_tools/${ncn_progname}; then 14522 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14524$as_echo "yes" >&6; } 14525 break 14526 else 14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14528$as_echo "no" >&6; } 14529 fi 14530 done 14531fi 14532 14533if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then 14534 for ncn_progname in windres; do 14535 if test -n "$ncn_target_tool_prefix"; then 14536 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 14537set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 14538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14539$as_echo_n "checking for $ac_word... " >&6; } 14540if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 14541 $as_echo_n "(cached) " >&6 14542else 14543 if test -n "$WINDRES_FOR_TARGET"; then 14544 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 14545else 14546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14547for as_dir in $PATH 14548do 14549 IFS=$as_save_IFS 14550 test -z "$as_dir" && as_dir=. 14551 for ac_exec_ext in '' $ac_executable_extensions; do 14552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14553 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 14554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14555 break 2 14556 fi 14557done 14558 done 14559IFS=$as_save_IFS 14560 14561fi 14562fi 14563WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 14564if test -n "$WINDRES_FOR_TARGET"; then 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 14566$as_echo "$WINDRES_FOR_TARGET" >&6; } 14567else 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14569$as_echo "no" >&6; } 14570fi 14571 14572 14573 fi 14574 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then 14575 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14576set dummy ${ncn_progname}; ac_word=$2 14577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14578$as_echo_n "checking for $ac_word... " >&6; } 14579if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 14580 $as_echo_n "(cached) " >&6 14581else 14582 if test -n "$WINDRES_FOR_TARGET"; then 14583 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 14584else 14585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14586for as_dir in $PATH 14587do 14588 IFS=$as_save_IFS 14589 test -z "$as_dir" && as_dir=. 14590 for ac_exec_ext in '' $ac_executable_extensions; do 14591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14592 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" 14593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14594 break 2 14595 fi 14596done 14597 done 14598IFS=$as_save_IFS 14599 14600fi 14601fi 14602WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 14603if test -n "$WINDRES_FOR_TARGET"; then 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 14605$as_echo "$WINDRES_FOR_TARGET" >&6; } 14606else 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14608$as_echo "no" >&6; } 14609fi 14610 14611 14612 fi 14613 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break 14614 done 14615fi 14616 14617if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then 14618 set dummy windres 14619 if test $build = $target ; then 14620 WINDRES_FOR_TARGET="$2" 14621 else 14622 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" 14623 fi 14624else 14625 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" 14626fi 14627 14628else 14629 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET 14630fi 14631 14632 14633 14634 14635if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then 14636 if test -n "$with_build_time_tools"; then 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 14638$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } 14639 if test -x $with_build_time_tools/windmc; then 14640 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc 14641 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 14643$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } 14644 else 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14646$as_echo "no" >&6; } 14647 fi 14648 elif test $build != $host && test $have_gcc_for_target = yes; then 14649 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` 14650 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= 14651 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 14652 fi 14653fi 14654if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 14655 # Extract the first word of "windmc", so it can be a program name with args. 14656set dummy windmc; ac_word=$2 14657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14658$as_echo_n "checking for $ac_word... " >&6; } 14659if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : 14660 $as_echo_n "(cached) " >&6 14661else 14662 case $WINDMC_FOR_TARGET in 14663 [\\/]* | ?:[\\/]*) 14664 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. 14665 ;; 14666 *) 14667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14668for as_dir in $gcc_cv_tool_dirs 14669do 14670 IFS=$as_save_IFS 14671 test -z "$as_dir" && as_dir=. 14672 for ac_exec_ext in '' $ac_executable_extensions; do 14673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14674 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 14675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14676 break 2 14677 fi 14678done 14679 done 14680IFS=$as_save_IFS 14681 14682 ;; 14683esac 14684fi 14685WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET 14686if test -n "$WINDMC_FOR_TARGET"; then 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 14688$as_echo "$WINDMC_FOR_TARGET" >&6; } 14689else 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14691$as_echo "no" >&6; } 14692fi 14693 14694 14695fi 14696if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then 14697 14698 14699if test -n "$WINDMC_FOR_TARGET"; then 14700 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 14701elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then 14702 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 14703fi 14704 14705if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then 14706 for ncn_progname in windmc; do 14707 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14708set dummy ${ncn_progname}; ac_word=$2 14709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14710$as_echo_n "checking for $ac_word... " >&6; } 14711if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 14712 $as_echo_n "(cached) " >&6 14713else 14714 if test -n "$WINDMC_FOR_TARGET"; then 14715 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 14716else 14717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14718for as_dir in $PATH 14719do 14720 IFS=$as_save_IFS 14721 test -z "$as_dir" && as_dir=. 14722 for ac_exec_ext in '' $ac_executable_extensions; do 14723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14724 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" 14725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14726 break 2 14727 fi 14728done 14729 done 14730IFS=$as_save_IFS 14731 14732fi 14733fi 14734WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 14735if test -n "$WINDMC_FOR_TARGET"; then 14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 14737$as_echo "$WINDMC_FOR_TARGET" >&6; } 14738else 14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14740$as_echo "no" >&6; } 14741fi 14742 14743 14744 done 14745fi 14746 14747if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then 14748 for ncn_progname in windmc; do 14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 14750$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 14751 if test -x $with_build_time_tools/${ncn_progname}; then 14752 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14754$as_echo "yes" >&6; } 14755 break 14756 else 14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14758$as_echo "no" >&6; } 14759 fi 14760 done 14761fi 14762 14763if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then 14764 for ncn_progname in windmc; do 14765 if test -n "$ncn_target_tool_prefix"; then 14766 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 14767set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 14768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14769$as_echo_n "checking for $ac_word... " >&6; } 14770if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 14771 $as_echo_n "(cached) " >&6 14772else 14773 if test -n "$WINDMC_FOR_TARGET"; then 14774 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 14775else 14776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14777for as_dir in $PATH 14778do 14779 IFS=$as_save_IFS 14780 test -z "$as_dir" && as_dir=. 14781 for ac_exec_ext in '' $ac_executable_extensions; do 14782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14783 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 14784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14785 break 2 14786 fi 14787done 14788 done 14789IFS=$as_save_IFS 14790 14791fi 14792fi 14793WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 14794if test -n "$WINDMC_FOR_TARGET"; then 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 14796$as_echo "$WINDMC_FOR_TARGET" >&6; } 14797else 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14799$as_echo "no" >&6; } 14800fi 14801 14802 14803 fi 14804 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then 14805 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14806set dummy ${ncn_progname}; ac_word=$2 14807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14808$as_echo_n "checking for $ac_word... " >&6; } 14809if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 14810 $as_echo_n "(cached) " >&6 14811else 14812 if test -n "$WINDMC_FOR_TARGET"; then 14813 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 14814else 14815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14816for as_dir in $PATH 14817do 14818 IFS=$as_save_IFS 14819 test -z "$as_dir" && as_dir=. 14820 for ac_exec_ext in '' $ac_executable_extensions; do 14821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14822 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" 14823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14824 break 2 14825 fi 14826done 14827 done 14828IFS=$as_save_IFS 14829 14830fi 14831fi 14832WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 14833if test -n "$WINDMC_FOR_TARGET"; then 14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 14835$as_echo "$WINDMC_FOR_TARGET" >&6; } 14836else 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14838$as_echo "no" >&6; } 14839fi 14840 14841 14842 fi 14843 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break 14844 done 14845fi 14846 14847if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then 14848 set dummy windmc 14849 if test $build = $target ; then 14850 WINDMC_FOR_TARGET="$2" 14851 else 14852 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" 14853 fi 14854else 14855 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" 14856fi 14857 14858else 14859 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET 14860fi 14861 14862 14863RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" 14864 14865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 14866$as_echo_n "checking where to find the target ar... " >&6; } 14867if test "x${build}" != "x${host}" ; then 14868 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then 14869 # We already found the complete path 14870 ac_dir=`dirname $AR_FOR_TARGET` 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14872$as_echo "pre-installed in $ac_dir" >&6; } 14873 else 14874 # Canadian cross, just use what we found 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14876$as_echo "pre-installed" >&6; } 14877 fi 14878else 14879 ok=yes 14880 case " ${configdirs} " in 14881 *" binutils "*) ;; 14882 *) ok=no ;; 14883 esac 14884 14885 if test $ok = yes; then 14886 # An in-tree tool is available and we can use it 14887 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14889$as_echo "just compiled" >&6; } 14890 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then 14891 # We already found the complete path 14892 ac_dir=`dirname $AR_FOR_TARGET` 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14894$as_echo "pre-installed in $ac_dir" >&6; } 14895 elif test "x$target" = "x$host"; then 14896 # We can use an host tool 14897 AR_FOR_TARGET='$(AR)' 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14899$as_echo "host tool" >&6; } 14900 else 14901 # We need a cross tool 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14903$as_echo "pre-installed" >&6; } 14904 fi 14905fi 14906 14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 14908$as_echo_n "checking where to find the target as... " >&6; } 14909if test "x${build}" != "x${host}" ; then 14910 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then 14911 # We already found the complete path 14912 ac_dir=`dirname $AS_FOR_TARGET` 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14914$as_echo "pre-installed in $ac_dir" >&6; } 14915 else 14916 # Canadian cross, just use what we found 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14918$as_echo "pre-installed" >&6; } 14919 fi 14920else 14921 ok=yes 14922 case " ${configdirs} " in 14923 *" gas "*) ;; 14924 *) ok=no ;; 14925 esac 14926 14927 if test $ok = yes; then 14928 # An in-tree tool is available and we can use it 14929 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14931$as_echo "just compiled" >&6; } 14932 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then 14933 # We already found the complete path 14934 ac_dir=`dirname $AS_FOR_TARGET` 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14936$as_echo "pre-installed in $ac_dir" >&6; } 14937 elif test "x$target" = "x$host"; then 14938 # We can use an host tool 14939 AS_FOR_TARGET='$(AS)' 14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14941$as_echo "host tool" >&6; } 14942 else 14943 # We need a cross tool 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14945$as_echo "pre-installed" >&6; } 14946 fi 14947fi 14948 14949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 14950$as_echo_n "checking where to find the target cc... " >&6; } 14951if test "x${build}" != "x${host}" ; then 14952 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then 14953 # We already found the complete path 14954 ac_dir=`dirname $CC_FOR_TARGET` 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14956$as_echo "pre-installed in $ac_dir" >&6; } 14957 else 14958 # Canadian cross, just use what we found 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14960$as_echo "pre-installed" >&6; } 14961 fi 14962else 14963 ok=yes 14964 case " ${configdirs} " in 14965 *" gcc "*) ;; 14966 *) ok=no ;; 14967 esac 14968 14969 if test $ok = yes; then 14970 # An in-tree tool is available and we can use it 14971 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' 14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14973$as_echo "just compiled" >&6; } 14974 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then 14975 # We already found the complete path 14976 ac_dir=`dirname $CC_FOR_TARGET` 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14978$as_echo "pre-installed in $ac_dir" >&6; } 14979 elif test "x$target" = "x$host"; then 14980 # We can use an host tool 14981 CC_FOR_TARGET='$(CC)' 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14983$as_echo "host tool" >&6; } 14984 else 14985 # We need a cross tool 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14987$as_echo "pre-installed" >&6; } 14988 fi 14989fi 14990 14991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 14992$as_echo_n "checking where to find the target c++... " >&6; } 14993if test "x${build}" != "x${host}" ; then 14994 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then 14995 # We already found the complete path 14996 ac_dir=`dirname $CXX_FOR_TARGET` 14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14998$as_echo "pre-installed in $ac_dir" >&6; } 14999 else 15000 # Canadian cross, just use what we found 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15002$as_echo "pre-installed" >&6; } 15003 fi 15004else 15005 ok=yes 15006 case " ${configdirs} " in 15007 *" gcc "*) ;; 15008 *) ok=no ;; 15009 esac 15010 case ,${enable_languages}, in 15011 *,c++,*) ;; 15012 *) ok=no ;; 15013 esac 15014 if test $ok = yes; then 15015 # An in-tree tool is available and we can use it 15016 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' 15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15018$as_echo "just compiled" >&6; } 15019 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then 15020 # We already found the complete path 15021 ac_dir=`dirname $CXX_FOR_TARGET` 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15023$as_echo "pre-installed in $ac_dir" >&6; } 15024 elif test "x$target" = "x$host"; then 15025 # We can use an host tool 15026 CXX_FOR_TARGET='$(CXX)' 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15028$as_echo "host tool" >&6; } 15029 else 15030 # We need a cross tool 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15032$as_echo "pre-installed" >&6; } 15033 fi 15034fi 15035 15036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 15037$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } 15038if test "x${build}" != "x${host}" ; then 15039 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then 15040 # We already found the complete path 15041 ac_dir=`dirname $RAW_CXX_FOR_TARGET` 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15043$as_echo "pre-installed in $ac_dir" >&6; } 15044 else 15045 # Canadian cross, just use what we found 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15047$as_echo "pre-installed" >&6; } 15048 fi 15049else 15050 ok=yes 15051 case " ${configdirs} " in 15052 *" gcc "*) ;; 15053 *) ok=no ;; 15054 esac 15055 case ,${enable_languages}, in 15056 *,c++,*) ;; 15057 *) ok=no ;; 15058 esac 15059 if test $ok = yes; then 15060 # An in-tree tool is available and we can use it 15061 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15063$as_echo "just compiled" >&6; } 15064 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then 15065 # We already found the complete path 15066 ac_dir=`dirname $RAW_CXX_FOR_TARGET` 15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15068$as_echo "pre-installed in $ac_dir" >&6; } 15069 elif test "x$target" = "x$host"; then 15070 # We can use an host tool 15071 RAW_CXX_FOR_TARGET='$(CXX)' 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15073$as_echo "host tool" >&6; } 15074 else 15075 # We need a cross tool 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15077$as_echo "pre-installed" >&6; } 15078 fi 15079fi 15080 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 15082$as_echo_n "checking where to find the target dlltool... " >&6; } 15083if test "x${build}" != "x${host}" ; then 15084 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then 15085 # We already found the complete path 15086 ac_dir=`dirname $DLLTOOL_FOR_TARGET` 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15088$as_echo "pre-installed in $ac_dir" >&6; } 15089 else 15090 # Canadian cross, just use what we found 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15092$as_echo "pre-installed" >&6; } 15093 fi 15094else 15095 ok=yes 15096 case " ${configdirs} " in 15097 *" binutils "*) ;; 15098 *) ok=no ;; 15099 esac 15100 15101 if test $ok = yes; then 15102 # An in-tree tool is available and we can use it 15103 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15105$as_echo "just compiled" >&6; } 15106 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then 15107 # We already found the complete path 15108 ac_dir=`dirname $DLLTOOL_FOR_TARGET` 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15110$as_echo "pre-installed in $ac_dir" >&6; } 15111 elif test "x$target" = "x$host"; then 15112 # We can use an host tool 15113 DLLTOOL_FOR_TARGET='$(DLLTOOL)' 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15115$as_echo "host tool" >&6; } 15116 else 15117 # We need a cross tool 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15119$as_echo "pre-installed" >&6; } 15120 fi 15121fi 15122 15123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 15124$as_echo_n "checking where to find the target dsymutil... " >&6; } 15125if test "x${build}" != "x${host}" ; then 15126 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then 15127 # We already found the complete path 15128 ac_dir=`dirname $DSYMUTIL_FOR_TARGET` 15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15130$as_echo "pre-installed in $ac_dir" >&6; } 15131 else 15132 # Canadian cross, just use what we found 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15134$as_echo "pre-installed" >&6; } 15135 fi 15136else 15137 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then 15138 # We already found the complete path 15139 ac_dir=`dirname $DSYMUTIL_FOR_TARGET` 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15141$as_echo "pre-installed in $ac_dir" >&6; } 15142 elif test "x$target" = "x$host"; then 15143 # We can use an host tool 15144 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15146$as_echo "host tool" >&6; } 15147 else 15148 # We need a cross tool 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15150$as_echo "pre-installed" >&6; } 15151 fi 15152fi 15153 15154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 15155$as_echo_n "checking where to find the target gcc... " >&6; } 15156if test "x${build}" != "x${host}" ; then 15157 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then 15158 # We already found the complete path 15159 ac_dir=`dirname $GCC_FOR_TARGET` 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15161$as_echo "pre-installed in $ac_dir" >&6; } 15162 else 15163 # Canadian cross, just use what we found 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15165$as_echo "pre-installed" >&6; } 15166 fi 15167else 15168 ok=yes 15169 case " ${configdirs} " in 15170 *" gcc "*) ;; 15171 *) ok=no ;; 15172 esac 15173 15174 if test $ok = yes; then 15175 # An in-tree tool is available and we can use it 15176 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15178$as_echo "just compiled" >&6; } 15179 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then 15180 # We already found the complete path 15181 ac_dir=`dirname $GCC_FOR_TARGET` 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15183$as_echo "pre-installed in $ac_dir" >&6; } 15184 elif test "x$target" = "x$host"; then 15185 # We can use an host tool 15186 GCC_FOR_TARGET='$()' 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15188$as_echo "host tool" >&6; } 15189 else 15190 # We need a cross tool 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15192$as_echo "pre-installed" >&6; } 15193 fi 15194fi 15195 15196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 15197$as_echo_n "checking where to find the target gfortran... " >&6; } 15198if test "x${build}" != "x${host}" ; then 15199 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then 15200 # We already found the complete path 15201 ac_dir=`dirname $GFORTRAN_FOR_TARGET` 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15203$as_echo "pre-installed in $ac_dir" >&6; } 15204 else 15205 # Canadian cross, just use what we found 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15207$as_echo "pre-installed" >&6; } 15208 fi 15209else 15210 ok=yes 15211 case " ${configdirs} " in 15212 *" gcc "*) ;; 15213 *) ok=no ;; 15214 esac 15215 case ,${enable_languages}, in 15216 *,fortran,*) ;; 15217 *) ok=no ;; 15218 esac 15219 if test $ok = yes; then 15220 # An in-tree tool is available and we can use it 15221 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' 15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15223$as_echo "just compiled" >&6; } 15224 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then 15225 # We already found the complete path 15226 ac_dir=`dirname $GFORTRAN_FOR_TARGET` 15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15228$as_echo "pre-installed in $ac_dir" >&6; } 15229 elif test "x$target" = "x$host"; then 15230 # We can use an host tool 15231 GFORTRAN_FOR_TARGET='$(GFORTRAN)' 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15233$as_echo "host tool" >&6; } 15234 else 15235 # We need a cross tool 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15237$as_echo "pre-installed" >&6; } 15238 fi 15239fi 15240 15241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 15242$as_echo_n "checking where to find the target gccgo... " >&6; } 15243if test "x${build}" != "x${host}" ; then 15244 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then 15245 # We already found the complete path 15246 ac_dir=`dirname $GOC_FOR_TARGET` 15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15248$as_echo "pre-installed in $ac_dir" >&6; } 15249 else 15250 # Canadian cross, just use what we found 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15252$as_echo "pre-installed" >&6; } 15253 fi 15254else 15255 ok=yes 15256 case " ${configdirs} " in 15257 *" gcc "*) ;; 15258 *) ok=no ;; 15259 esac 15260 case ,${enable_languages}, in 15261 *,go,*) ;; 15262 *) ok=no ;; 15263 esac 15264 if test $ok = yes; then 15265 # An in-tree tool is available and we can use it 15266 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15268$as_echo "just compiled" >&6; } 15269 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then 15270 # We already found the complete path 15271 ac_dir=`dirname $GOC_FOR_TARGET` 15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15273$as_echo "pre-installed in $ac_dir" >&6; } 15274 elif test "x$target" = "x$host"; then 15275 # We can use an host tool 15276 GOC_FOR_TARGET='$(GOC)' 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15278$as_echo "host tool" >&6; } 15279 else 15280 # We need a cross tool 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15282$as_echo "pre-installed" >&6; } 15283 fi 15284fi 15285 15286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 15287$as_echo_n "checking where to find the target gdc... " >&6; } 15288if test "x${build}" != "x${host}" ; then 15289 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then 15290 # We already found the complete path 15291 ac_dir=`dirname $GDC_FOR_TARGET` 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15293$as_echo "pre-installed in $ac_dir" >&6; } 15294 else 15295 # Canadian cross, just use what we found 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15297$as_echo "pre-installed" >&6; } 15298 fi 15299else 15300 ok=yes 15301 case " ${configdirs} " in 15302 *" gcc "*) ;; 15303 *) ok=no ;; 15304 esac 15305 case ,${enable_languages}, in 15306 *,d,*) ;; 15307 *) ok=no ;; 15308 esac 15309 if test $ok = yes; then 15310 # An in-tree tool is available and we can use it 15311 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15313$as_echo "just compiled" >&6; } 15314 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then 15315 # We already found the complete path 15316 ac_dir=`dirname $GDC_FOR_TARGET` 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15318$as_echo "pre-installed in $ac_dir" >&6; } 15319 elif test "x$target" = "x$host"; then 15320 # We can use an host tool 15321 GDC_FOR_TARGET='$(GDC)' 15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15323$as_echo "host tool" >&6; } 15324 else 15325 # We need a cross tool 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15327$as_echo "pre-installed" >&6; } 15328 fi 15329fi 15330 15331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 15332$as_echo_n "checking where to find the target ld... " >&6; } 15333if test "x${build}" != "x${host}" ; then 15334 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then 15335 # We already found the complete path 15336 ac_dir=`dirname $LD_FOR_TARGET` 15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15338$as_echo "pre-installed in $ac_dir" >&6; } 15339 else 15340 # Canadian cross, just use what we found 15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15342$as_echo "pre-installed" >&6; } 15343 fi 15344else 15345 ok=yes 15346 case " ${configdirs} " in 15347 *" ld "*) ;; 15348 *) ok=no ;; 15349 esac 15350 15351 if test $ok = yes; then 15352 # An in-tree tool is available and we can use it 15353 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15355$as_echo "just compiled" >&6; } 15356 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then 15357 # We already found the complete path 15358 ac_dir=`dirname $LD_FOR_TARGET` 15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15360$as_echo "pre-installed in $ac_dir" >&6; } 15361 elif test "x$target" = "x$host"; then 15362 # We can use an host tool 15363 LD_FOR_TARGET='$(LD)' 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15365$as_echo "host tool" >&6; } 15366 else 15367 # We need a cross tool 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15369$as_echo "pre-installed" >&6; } 15370 fi 15371fi 15372 15373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 15374$as_echo_n "checking where to find the target lipo... " >&6; } 15375if test "x${build}" != "x${host}" ; then 15376 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then 15377 # We already found the complete path 15378 ac_dir=`dirname $LIPO_FOR_TARGET` 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15380$as_echo "pre-installed in $ac_dir" >&6; } 15381 else 15382 # Canadian cross, just use what we found 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15384$as_echo "pre-installed" >&6; } 15385 fi 15386else 15387 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then 15388 # We already found the complete path 15389 ac_dir=`dirname $LIPO_FOR_TARGET` 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15391$as_echo "pre-installed in $ac_dir" >&6; } 15392 elif test "x$target" = "x$host"; then 15393 # We can use an host tool 15394 LIPO_FOR_TARGET='$(LIPO)' 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15396$as_echo "host tool" >&6; } 15397 else 15398 # We need a cross tool 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15400$as_echo "pre-installed" >&6; } 15401 fi 15402fi 15403 15404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 15405$as_echo_n "checking where to find the target nm... " >&6; } 15406if test "x${build}" != "x${host}" ; then 15407 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then 15408 # We already found the complete path 15409 ac_dir=`dirname $NM_FOR_TARGET` 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15411$as_echo "pre-installed in $ac_dir" >&6; } 15412 else 15413 # Canadian cross, just use what we found 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15415$as_echo "pre-installed" >&6; } 15416 fi 15417else 15418 ok=yes 15419 case " ${configdirs} " in 15420 *" binutils "*) ;; 15421 *) ok=no ;; 15422 esac 15423 15424 if test $ok = yes; then 15425 # An in-tree tool is available and we can use it 15426 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15428$as_echo "just compiled" >&6; } 15429 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then 15430 # We already found the complete path 15431 ac_dir=`dirname $NM_FOR_TARGET` 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15433$as_echo "pre-installed in $ac_dir" >&6; } 15434 elif test "x$target" = "x$host"; then 15435 # We can use an host tool 15436 NM_FOR_TARGET='$(NM)' 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15438$as_echo "host tool" >&6; } 15439 else 15440 # We need a cross tool 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15442$as_echo "pre-installed" >&6; } 15443 fi 15444fi 15445 15446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 15447$as_echo_n "checking where to find the target objcopy... " >&6; } 15448if test "x${build}" != "x${host}" ; then 15449 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then 15450 # We already found the complete path 15451 ac_dir=`dirname $OBJCOPY_FOR_TARGET` 15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15453$as_echo "pre-installed in $ac_dir" >&6; } 15454 else 15455 # Canadian cross, just use what we found 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15457$as_echo "pre-installed" >&6; } 15458 fi 15459else 15460 ok=yes 15461 case " ${configdirs} " in 15462 *" binutils "*) ;; 15463 *) ok=no ;; 15464 esac 15465 15466 if test $ok = yes; then 15467 # An in-tree tool is available and we can use it 15468 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15470$as_echo "just compiled" >&6; } 15471 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then 15472 # We already found the complete path 15473 ac_dir=`dirname $OBJCOPY_FOR_TARGET` 15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15475$as_echo "pre-installed in $ac_dir" >&6; } 15476 elif test "x$target" = "x$host"; then 15477 # We can use an host tool 15478 OBJCOPY_FOR_TARGET='$(OBJCOPY)' 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15480$as_echo "host tool" >&6; } 15481 else 15482 # We need a cross tool 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15484$as_echo "pre-installed" >&6; } 15485 fi 15486fi 15487 15488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 15489$as_echo_n "checking where to find the target objdump... " >&6; } 15490if test "x${build}" != "x${host}" ; then 15491 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then 15492 # We already found the complete path 15493 ac_dir=`dirname $OBJDUMP_FOR_TARGET` 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15495$as_echo "pre-installed in $ac_dir" >&6; } 15496 else 15497 # Canadian cross, just use what we found 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15499$as_echo "pre-installed" >&6; } 15500 fi 15501else 15502 ok=yes 15503 case " ${configdirs} " in 15504 *" binutils "*) ;; 15505 *) ok=no ;; 15506 esac 15507 15508 if test $ok = yes; then 15509 # An in-tree tool is available and we can use it 15510 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' 15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15512$as_echo "just compiled" >&6; } 15513 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then 15514 # We already found the complete path 15515 ac_dir=`dirname $OBJDUMP_FOR_TARGET` 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15517$as_echo "pre-installed in $ac_dir" >&6; } 15518 elif test "x$target" = "x$host"; then 15519 # We can use an host tool 15520 OBJDUMP_FOR_TARGET='$(OBJDUMP)' 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15522$as_echo "host tool" >&6; } 15523 else 15524 # We need a cross tool 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15526$as_echo "pre-installed" >&6; } 15527 fi 15528fi 15529 15530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 15531$as_echo_n "checking where to find the target otool... " >&6; } 15532if test "x${build}" != "x${host}" ; then 15533 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then 15534 # We already found the complete path 15535 ac_dir=`dirname $OTOOL_FOR_TARGET` 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15537$as_echo "pre-installed in $ac_dir" >&6; } 15538 else 15539 # Canadian cross, just use what we found 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15541$as_echo "pre-installed" >&6; } 15542 fi 15543else 15544 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then 15545 # We already found the complete path 15546 ac_dir=`dirname $OTOOL_FOR_TARGET` 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15548$as_echo "pre-installed in $ac_dir" >&6; } 15549 elif test "x$target" = "x$host"; then 15550 # We can use an host tool 15551 OTOOL_FOR_TARGET='$(OTOOL)' 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15553$as_echo "host tool" >&6; } 15554 else 15555 # We need a cross tool 15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15557$as_echo "pre-installed" >&6; } 15558 fi 15559fi 15560 15561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 15562$as_echo_n "checking where to find the target ranlib... " >&6; } 15563if test "x${build}" != "x${host}" ; then 15564 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then 15565 # We already found the complete path 15566 ac_dir=`dirname $RANLIB_FOR_TARGET` 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15568$as_echo "pre-installed in $ac_dir" >&6; } 15569 else 15570 # Canadian cross, just use what we found 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15572$as_echo "pre-installed" >&6; } 15573 fi 15574else 15575 ok=yes 15576 case " ${configdirs} " in 15577 *" binutils "*) ;; 15578 *) ok=no ;; 15579 esac 15580 15581 if test $ok = yes; then 15582 # An in-tree tool is available and we can use it 15583 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' 15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15585$as_echo "just compiled" >&6; } 15586 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then 15587 # We already found the complete path 15588 ac_dir=`dirname $RANLIB_FOR_TARGET` 15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15590$as_echo "pre-installed in $ac_dir" >&6; } 15591 elif test "x$target" = "x$host"; then 15592 # We can use an host tool 15593 RANLIB_FOR_TARGET='$(RANLIB)' 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15595$as_echo "host tool" >&6; } 15596 else 15597 # We need a cross tool 15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15599$as_echo "pre-installed" >&6; } 15600 fi 15601fi 15602 15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 15604$as_echo_n "checking where to find the target readelf... " >&6; } 15605if test "x${build}" != "x${host}" ; then 15606 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then 15607 # We already found the complete path 15608 ac_dir=`dirname $READELF_FOR_TARGET` 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15610$as_echo "pre-installed in $ac_dir" >&6; } 15611 else 15612 # Canadian cross, just use what we found 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15614$as_echo "pre-installed" >&6; } 15615 fi 15616else 15617 ok=yes 15618 case " ${configdirs} " in 15619 *" binutils "*) ;; 15620 *) ok=no ;; 15621 esac 15622 15623 if test $ok = yes; then 15624 # An in-tree tool is available and we can use it 15625 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15627$as_echo "just compiled" >&6; } 15628 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then 15629 # We already found the complete path 15630 ac_dir=`dirname $READELF_FOR_TARGET` 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15632$as_echo "pre-installed in $ac_dir" >&6; } 15633 elif test "x$target" = "x$host"; then 15634 # We can use an host tool 15635 READELF_FOR_TARGET='$(READELF)' 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15637$as_echo "host tool" >&6; } 15638 else 15639 # We need a cross tool 15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15641$as_echo "pre-installed" >&6; } 15642 fi 15643fi 15644 15645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 15646$as_echo_n "checking where to find the target strip... " >&6; } 15647if test "x${build}" != "x${host}" ; then 15648 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then 15649 # We already found the complete path 15650 ac_dir=`dirname $STRIP_FOR_TARGET` 15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15652$as_echo "pre-installed in $ac_dir" >&6; } 15653 else 15654 # Canadian cross, just use what we found 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15656$as_echo "pre-installed" >&6; } 15657 fi 15658else 15659 ok=yes 15660 case " ${configdirs} " in 15661 *" binutils "*) ;; 15662 *) ok=no ;; 15663 esac 15664 15665 if test $ok = yes; then 15666 # An in-tree tool is available and we can use it 15667 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15669$as_echo "just compiled" >&6; } 15670 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then 15671 # We already found the complete path 15672 ac_dir=`dirname $STRIP_FOR_TARGET` 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15674$as_echo "pre-installed in $ac_dir" >&6; } 15675 elif test "x$target" = "x$host"; then 15676 # We can use an host tool 15677 STRIP_FOR_TARGET='$(STRIP)' 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15679$as_echo "host tool" >&6; } 15680 else 15681 # We need a cross tool 15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15683$as_echo "pre-installed" >&6; } 15684 fi 15685fi 15686 15687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 15688$as_echo_n "checking where to find the target windres... " >&6; } 15689if test "x${build}" != "x${host}" ; then 15690 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then 15691 # We already found the complete path 15692 ac_dir=`dirname $WINDRES_FOR_TARGET` 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15694$as_echo "pre-installed in $ac_dir" >&6; } 15695 else 15696 # Canadian cross, just use what we found 15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15698$as_echo "pre-installed" >&6; } 15699 fi 15700else 15701 ok=yes 15702 case " ${configdirs} " in 15703 *" binutils "*) ;; 15704 *) ok=no ;; 15705 esac 15706 15707 if test $ok = yes; then 15708 # An in-tree tool is available and we can use it 15709 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' 15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15711$as_echo "just compiled" >&6; } 15712 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then 15713 # We already found the complete path 15714 ac_dir=`dirname $WINDRES_FOR_TARGET` 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15716$as_echo "pre-installed in $ac_dir" >&6; } 15717 elif test "x$target" = "x$host"; then 15718 # We can use an host tool 15719 WINDRES_FOR_TARGET='$(WINDRES)' 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15721$as_echo "host tool" >&6; } 15722 else 15723 # We need a cross tool 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15725$as_echo "pre-installed" >&6; } 15726 fi 15727fi 15728 15729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 15730$as_echo_n "checking where to find the target windmc... " >&6; } 15731if test "x${build}" != "x${host}" ; then 15732 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then 15733 # We already found the complete path 15734 ac_dir=`dirname $WINDMC_FOR_TARGET` 15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15736$as_echo "pre-installed in $ac_dir" >&6; } 15737 else 15738 # Canadian cross, just use what we found 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15740$as_echo "pre-installed" >&6; } 15741 fi 15742else 15743 ok=yes 15744 case " ${configdirs} " in 15745 *" binutils "*) ;; 15746 *) ok=no ;; 15747 esac 15748 15749 if test $ok = yes; then 15750 # An in-tree tool is available and we can use it 15751 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' 15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15753$as_echo "just compiled" >&6; } 15754 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then 15755 # We already found the complete path 15756 ac_dir=`dirname $WINDMC_FOR_TARGET` 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15758$as_echo "pre-installed in $ac_dir" >&6; } 15759 elif test "x$target" = "x$host"; then 15760 # We can use an host tool 15761 WINDMC_FOR_TARGET='$(WINDMC)' 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15763$as_echo "host tool" >&6; } 15764 else 15765 # We need a cross tool 15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15767$as_echo "pre-installed" >&6; } 15768 fi 15769fi 15770 15771 15772 15773 15774 15775# Certain tools may need extra flags. 15776AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} 15777RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} 15778NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} 15779 15780# When building target libraries, except in a Canadian cross, we use 15781# the same toolchain as the compiler we just built. 15782COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' 15783COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' 15784COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' 15785if test $host = $build; then 15786 case " $configdirs " in 15787 *" gcc "*) 15788 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' 15789 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' 15790 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} 15791 ;; 15792 esac 15793fi 15794 15795 15796 15797 15798 15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 15800$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 15801# Check whether --enable-maintainer-mode was given. 15802if test "${enable_maintainer_mode+set}" = set; then : 15803 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 15804else 15805 USE_MAINTAINER_MODE=no 15806fi 15807 15808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 15809$as_echo "$USE_MAINTAINER_MODE" >&6; } 15810 15811 15812if test "$USE_MAINTAINER_MODE" = yes; then 15813 MAINTAINER_MODE_TRUE= 15814 MAINTAINER_MODE_FALSE='#' 15815else 15816 MAINTAINER_MODE_TRUE='#' 15817 MAINTAINER_MODE_FALSE= 15818fi 15819MAINT=$MAINTAINER_MODE_TRUE 15820 15821# --------------------- 15822# GCC bootstrap support 15823# --------------------- 15824 15825# Stage specific cflags for build. 15826stage1_cflags="-g" 15827case $build in 15828 vax-*-*) 15829 case ${GCC} in 15830 yes) stage1_cflags="-g -Wa,-J" ;; 15831 *) stage1_cflags="-g -J" ;; 15832 esac ;; 15833esac 15834 15835 15836 15837# Enable --enable-checking in stage1 of the compiler. 15838# Check whether --enable-stage1-checking was given. 15839if test "${enable_stage1_checking+set}" = set; then : 15840 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} 15841else 15842 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then 15843 # For --disable-checking or implicit --enable-checking=release, avoid 15844 # setting --enable-checking=gc in the default stage1 checking for LTO 15845 # bootstraps. See PR62077. 15846 case $BUILD_CONFIG in 15847 *lto*) 15848 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; 15849 *) 15850 stage1_checking=--enable-checking=yes,types;; 15851 esac 15852 if test "x$enable_checking" = x && \ 15853 test -d ${srcdir}/gcc && \ 15854 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then 15855 stage1_checking=--enable-checking=yes,types,extra 15856 fi 15857else 15858 stage1_checking=--enable-checking=$enable_checking,types 15859fi 15860fi 15861 15862 15863 15864# Enable -Werror in bootstrap stage2 and later. 15865# Check whether --enable-werror was given. 15866if test "${enable_werror+set}" = set; then : 15867 enableval=$enable_werror; 15868case ${enable_werror} in 15869 yes) stage2_werror_flag="--enable-werror-always" ;; 15870 *) stage2_werror_flag="" ;; 15871esac 15872 15873else 15874 15875if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then 15876 case $BUILD_CONFIG in 15877 bootstrap-debug) 15878 stage2_werror_flag="--enable-werror-always" ;; 15879 "") 15880 stage2_werror_flag="--enable-werror-always" ;; 15881 esac 15882fi 15883 15884fi 15885 15886 15887 15888 15889# Specify what files to not compare during bootstrap. 15890 15891compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" 15892case "$target" in 15893 hppa*64*-*-hpux*) ;; 15894 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; 15895 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; 15896esac 15897 15898 15899ac_config_files="$ac_config_files Makefile" 15900 15901cat >confcache <<\_ACEOF 15902# This file is a shell script that caches the results of configure 15903# tests run on this system so they can be shared between configure 15904# scripts and configure runs, see configure's option --config-cache. 15905# It is not useful on other systems. If it contains results you don't 15906# want to keep, you may remove or edit it. 15907# 15908# config.status only pays attention to the cache file if you give it 15909# the --recheck option to rerun configure. 15910# 15911# `ac_cv_env_foo' variables (set or unset) will be overridden when 15912# loading this file, other *unset* `ac_cv_foo' will be assigned the 15913# following values. 15914 15915_ACEOF 15916 15917# The following way of writing the cache mishandles newlines in values, 15918# but we know of no workaround that is simple, portable, and efficient. 15919# So, we kill variables containing newlines. 15920# Ultrix sh set writes to stderr and can't be redirected directly, 15921# and sets the high bit in the cache file unless we assign to the vars. 15922( 15923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15924 eval ac_val=\$$ac_var 15925 case $ac_val in #( 15926 *${as_nl}*) 15927 case $ac_var in #( 15928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15929$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15930 esac 15931 case $ac_var in #( 15932 _ | IFS | as_nl) ;; #( 15933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15934 *) { eval $ac_var=; unset $ac_var;} ;; 15935 esac ;; 15936 esac 15937 done 15938 15939 (set) 2>&1 | 15940 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15941 *${as_nl}ac_space=\ *) 15942 # `set' does not quote correctly, so add quotes: double-quote 15943 # substitution turns \\\\ into \\, and sed turns \\ into \. 15944 sed -n \ 15945 "s/'/'\\\\''/g; 15946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15947 ;; #( 15948 *) 15949 # `set' quotes correctly as required by POSIX, so do not add quotes. 15950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15951 ;; 15952 esac | 15953 sort 15954) | 15955 sed ' 15956 /^ac_cv_env_/b end 15957 t clear 15958 :clear 15959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15960 t end 15961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15962 :end' >>confcache 15963if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15964 if test -w "$cache_file"; then 15965 if test "x$cache_file" != "x/dev/null"; then 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15967$as_echo "$as_me: updating cache $cache_file" >&6;} 15968 if test ! -f "$cache_file" || test -h "$cache_file"; then 15969 cat confcache >"$cache_file" 15970 else 15971 case $cache_file in #( 15972 */* | ?:*) 15973 mv -f confcache "$cache_file"$$ && 15974 mv -f "$cache_file"$$ "$cache_file" ;; #( 15975 *) 15976 mv -f confcache "$cache_file" ;; 15977 esac 15978 fi 15979 fi 15980 else 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15982$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15983 fi 15984fi 15985rm -f confcache 15986 15987test "x$prefix" = xNONE && prefix=$ac_default_prefix 15988# Let make expand exec_prefix. 15989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15990 15991# Transform confdefs.h into DEFS. 15992# Protect against shell expansion while executing Makefile rules. 15993# Protect against Makefile macro expansion. 15994# 15995# If the first sed substitution is executed (which looks for macros that 15996# take arguments), then branch to the quote section. Otherwise, 15997# look for a macro that doesn't take arguments. 15998ac_script=' 15999:mline 16000/\\$/{ 16001 N 16002 s,\\\n,, 16003 b mline 16004} 16005t clear 16006:clear 16007s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 16008t quote 16009s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 16010t quote 16011b any 16012:quote 16013s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 16014s/\[/\\&/g 16015s/\]/\\&/g 16016s/\$/$$/g 16017H 16018:any 16019${ 16020 g 16021 s/^\n// 16022 s/\n/ /g 16023 p 16024} 16025' 16026DEFS=`sed -n "$ac_script" confdefs.h` 16027 16028 16029ac_libobjs= 16030ac_ltlibobjs= 16031U= 16032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16033 # 1. Remove the extension, and $U if already installed. 16034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16035 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16037 # will be set to the directory where LIBOBJS objects are built. 16038 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16039 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16040done 16041LIBOBJS=$ac_libobjs 16042 16043LTLIBOBJS=$ac_ltlibobjs 16044 16045 16046 16047: "${CONFIG_STATUS=./config.status}" 16048ac_write_fail=0 16049ac_clean_files_save=$ac_clean_files 16050ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16051{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16052$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16053as_write_fail=0 16054cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16055#! $SHELL 16056# Generated by $as_me. 16057# Run this file to recreate the current configuration. 16058# Compiler output produced by configure, useful for debugging 16059# configure, is in config.log if it exists. 16060 16061debug=false 16062ac_cs_recheck=false 16063ac_cs_silent=false 16064 16065SHELL=\${CONFIG_SHELL-$SHELL} 16066export SHELL 16067_ASEOF 16068cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16069## -------------------- ## 16070## M4sh Initialization. ## 16071## -------------------- ## 16072 16073# Be more Bourne compatible 16074DUALCASE=1; export DUALCASE # for MKS sh 16075if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16076 emulate sh 16077 NULLCMD=: 16078 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16079 # is contrary to our usage. Disable this feature. 16080 alias -g '${1+"$@"}'='"$@"' 16081 setopt NO_GLOB_SUBST 16082else 16083 case `(set -o) 2>/dev/null` in #( 16084 *posix*) : 16085 set -o posix ;; #( 16086 *) : 16087 ;; 16088esac 16089fi 16090 16091 16092as_nl=' 16093' 16094export as_nl 16095# Printing a long string crashes Solaris 7 /usr/bin/printf. 16096as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16097as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16098as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16099# Prefer a ksh shell builtin over an external printf program on Solaris, 16100# but without wasting forks for bash or zsh. 16101if test -z "$BASH_VERSION$ZSH_VERSION" \ 16102 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16103 as_echo='print -r --' 16104 as_echo_n='print -rn --' 16105elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16106 as_echo='printf %s\n' 16107 as_echo_n='printf %s' 16108else 16109 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16110 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16111 as_echo_n='/usr/ucb/echo -n' 16112 else 16113 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16114 as_echo_n_body='eval 16115 arg=$1; 16116 case $arg in #( 16117 *"$as_nl"*) 16118 expr "X$arg" : "X\\(.*\\)$as_nl"; 16119 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16120 esac; 16121 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16122 ' 16123 export as_echo_n_body 16124 as_echo_n='sh -c $as_echo_n_body as_echo' 16125 fi 16126 export as_echo_body 16127 as_echo='sh -c $as_echo_body as_echo' 16128fi 16129 16130# The user is always right. 16131if test "${PATH_SEPARATOR+set}" != set; then 16132 PATH_SEPARATOR=: 16133 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16134 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16135 PATH_SEPARATOR=';' 16136 } 16137fi 16138 16139 16140# IFS 16141# We need space, tab and new line, in precisely that order. Quoting is 16142# there to prevent editors from complaining about space-tab. 16143# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16144# splitting by setting IFS to empty value.) 16145IFS=" "" $as_nl" 16146 16147# Find who we are. Look in the path if we contain no directory separator. 16148as_myself= 16149case $0 in #(( 16150 *[\\/]* ) as_myself=$0 ;; 16151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16152for as_dir in $PATH 16153do 16154 IFS=$as_save_IFS 16155 test -z "$as_dir" && as_dir=. 16156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16157 done 16158IFS=$as_save_IFS 16159 16160 ;; 16161esac 16162# We did not find ourselves, most probably we were run as `sh COMMAND' 16163# in which case we are not to be found in the path. 16164if test "x$as_myself" = x; then 16165 as_myself=$0 16166fi 16167if test ! -f "$as_myself"; then 16168 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16169 exit 1 16170fi 16171 16172# Unset variables that we do not need and which cause bugs (e.g. in 16173# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16174# suppresses any "Segmentation fault" message there. '((' could 16175# trigger a bug in pdksh 5.2.14. 16176for as_var in BASH_ENV ENV MAIL MAILPATH 16177do eval test x\${$as_var+set} = xset \ 16178 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16179done 16180PS1='$ ' 16181PS2='> ' 16182PS4='+ ' 16183 16184# NLS nuisances. 16185LC_ALL=C 16186export LC_ALL 16187LANGUAGE=C 16188export LANGUAGE 16189 16190# CDPATH. 16191(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16192 16193 16194# as_fn_error STATUS ERROR [LINENO LOG_FD] 16195# ---------------------------------------- 16196# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16197# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16198# script with STATUS, using 1 if that was 0. 16199as_fn_error () 16200{ 16201 as_status=$1; test $as_status -eq 0 && as_status=1 16202 if test "$4"; then 16203 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16204 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16205 fi 16206 $as_echo "$as_me: error: $2" >&2 16207 as_fn_exit $as_status 16208} # as_fn_error 16209 16210 16211# as_fn_set_status STATUS 16212# ----------------------- 16213# Set $? to STATUS, without forking. 16214as_fn_set_status () 16215{ 16216 return $1 16217} # as_fn_set_status 16218 16219# as_fn_exit STATUS 16220# ----------------- 16221# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16222as_fn_exit () 16223{ 16224 set +e 16225 as_fn_set_status $1 16226 exit $1 16227} # as_fn_exit 16228 16229# as_fn_unset VAR 16230# --------------- 16231# Portably unset VAR. 16232as_fn_unset () 16233{ 16234 { eval $1=; unset $1;} 16235} 16236as_unset=as_fn_unset 16237# as_fn_append VAR VALUE 16238# ---------------------- 16239# Append the text in VALUE to the end of the definition contained in VAR. Take 16240# advantage of any shell optimizations that allow amortized linear growth over 16241# repeated appends, instead of the typical quadratic growth present in naive 16242# implementations. 16243if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16244 eval 'as_fn_append () 16245 { 16246 eval $1+=\$2 16247 }' 16248else 16249 as_fn_append () 16250 { 16251 eval $1=\$$1\$2 16252 } 16253fi # as_fn_append 16254 16255# as_fn_arith ARG... 16256# ------------------ 16257# Perform arithmetic evaluation on the ARGs, and store the result in the 16258# global $as_val. Take advantage of shells that can avoid forks. The arguments 16259# must be portable across $(()) and expr. 16260if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16261 eval 'as_fn_arith () 16262 { 16263 as_val=$(( $* )) 16264 }' 16265else 16266 as_fn_arith () 16267 { 16268 as_val=`expr "$@" || test $? -eq 1` 16269 } 16270fi # as_fn_arith 16271 16272 16273if expr a : '\(a\)' >/dev/null 2>&1 && 16274 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16275 as_expr=expr 16276else 16277 as_expr=false 16278fi 16279 16280if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16281 as_basename=basename 16282else 16283 as_basename=false 16284fi 16285 16286if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16287 as_dirname=dirname 16288else 16289 as_dirname=false 16290fi 16291 16292as_me=`$as_basename -- "$0" || 16293$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16294 X"$0" : 'X\(//\)$' \| \ 16295 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16296$as_echo X/"$0" | 16297 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16298 s//\1/ 16299 q 16300 } 16301 /^X\/\(\/\/\)$/{ 16302 s//\1/ 16303 q 16304 } 16305 /^X\/\(\/\).*/{ 16306 s//\1/ 16307 q 16308 } 16309 s/.*/./; q'` 16310 16311# Avoid depending upon Character Ranges. 16312as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16314as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16315as_cr_digits='0123456789' 16316as_cr_alnum=$as_cr_Letters$as_cr_digits 16317 16318ECHO_C= ECHO_N= ECHO_T= 16319case `echo -n x` in #((((( 16320-n*) 16321 case `echo 'xy\c'` in 16322 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16323 xy) ECHO_C='\c';; 16324 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16325 ECHO_T=' ';; 16326 esac;; 16327*) 16328 ECHO_N='-n';; 16329esac 16330 16331rm -f conf$$ conf$$.exe conf$$.file 16332if test -d conf$$.dir; then 16333 rm -f conf$$.dir/conf$$.file 16334else 16335 rm -f conf$$.dir 16336 mkdir conf$$.dir 2>/dev/null 16337fi 16338if (echo >conf$$.file) 2>/dev/null; then 16339 if ln -s conf$$.file conf$$ 2>/dev/null; then 16340 as_ln_s='ln -s' 16341 # ... but there are two gotchas: 16342 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16343 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16344 # In both cases, we have to default to `cp -pR'. 16345 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16346 as_ln_s='cp -pR' 16347 elif ln conf$$.file conf$$ 2>/dev/null; then 16348 as_ln_s=ln 16349 else 16350 as_ln_s='cp -pR' 16351 fi 16352else 16353 as_ln_s='cp -pR' 16354fi 16355rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16356rmdir conf$$.dir 2>/dev/null 16357 16358 16359# as_fn_mkdir_p 16360# ------------- 16361# Create "$as_dir" as a directory, including parents if necessary. 16362as_fn_mkdir_p () 16363{ 16364 16365 case $as_dir in #( 16366 -*) as_dir=./$as_dir;; 16367 esac 16368 test -d "$as_dir" || eval $as_mkdir_p || { 16369 as_dirs= 16370 while :; do 16371 case $as_dir in #( 16372 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16373 *) as_qdir=$as_dir;; 16374 esac 16375 as_dirs="'$as_qdir' $as_dirs" 16376 as_dir=`$as_dirname -- "$as_dir" || 16377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16378 X"$as_dir" : 'X\(//\)[^/]' \| \ 16379 X"$as_dir" : 'X\(//\)$' \| \ 16380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16381$as_echo X"$as_dir" | 16382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16383 s//\1/ 16384 q 16385 } 16386 /^X\(\/\/\)[^/].*/{ 16387 s//\1/ 16388 q 16389 } 16390 /^X\(\/\/\)$/{ 16391 s//\1/ 16392 q 16393 } 16394 /^X\(\/\).*/{ 16395 s//\1/ 16396 q 16397 } 16398 s/.*/./; q'` 16399 test -d "$as_dir" && break 16400 done 16401 test -z "$as_dirs" || eval "mkdir $as_dirs" 16402 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16403 16404 16405} # as_fn_mkdir_p 16406if mkdir -p . 2>/dev/null; then 16407 as_mkdir_p='mkdir -p "$as_dir"' 16408else 16409 test -d ./-p && rmdir ./-p 16410 as_mkdir_p=false 16411fi 16412 16413 16414# as_fn_executable_p FILE 16415# ----------------------- 16416# Test if FILE is an executable regular file. 16417as_fn_executable_p () 16418{ 16419 test -f "$1" && test -x "$1" 16420} # as_fn_executable_p 16421as_test_x='test -x' 16422as_executable_p=as_fn_executable_p 16423 16424# Sed expression to map a string onto a valid CPP name. 16425as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16426 16427# Sed expression to map a string onto a valid variable name. 16428as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16429 16430 16431exec 6>&1 16432## ----------------------------------- ## 16433## Main body of $CONFIG_STATUS script. ## 16434## ----------------------------------- ## 16435_ASEOF 16436test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16437 16438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16439# Save the log message, to keep $0 and so on meaningful, and to 16440# report actual input values of CONFIG_FILES etc. instead of their 16441# values after options handling. 16442ac_log=" 16443This file was extended by $as_me, which was 16444generated by GNU Autoconf 2.69. Invocation command line was 16445 16446 CONFIG_FILES = $CONFIG_FILES 16447 CONFIG_HEADERS = $CONFIG_HEADERS 16448 CONFIG_LINKS = $CONFIG_LINKS 16449 CONFIG_COMMANDS = $CONFIG_COMMANDS 16450 $ $0 $@ 16451 16452on `(hostname || uname -n) 2>/dev/null | sed 1q` 16453" 16454 16455_ACEOF 16456 16457case $ac_config_files in *" 16458"*) set x $ac_config_files; shift; ac_config_files=$*;; 16459esac 16460 16461 16462 16463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16464# Files that config.status was made for. 16465config_files="$ac_config_files" 16466 16467_ACEOF 16468 16469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16470ac_cs_usage="\ 16471\`$as_me' instantiates files and other configuration actions 16472from templates according to the current configuration. Unless the files 16473and actions are specified as TAGs, all are instantiated by default. 16474 16475Usage: $0 [OPTION]... [TAG]... 16476 16477 -h, --help print this help, then exit 16478 -V, --version print version number and configuration settings, then exit 16479 --config print configuration, then exit 16480 -q, --quiet, --silent 16481 do not print progress messages 16482 -d, --debug don't remove temporary files 16483 --recheck update $as_me by reconfiguring in the same conditions 16484 --file=FILE[:TEMPLATE] 16485 instantiate the configuration file FILE 16486 16487Configuration files: 16488$config_files 16489 16490Report bugs to the package provider." 16491 16492_ACEOF 16493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16494ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16495ac_cs_version="\\ 16496config.status 16497configured by $0, generated by GNU Autoconf 2.69, 16498 with options \\"\$ac_cs_config\\" 16499 16500Copyright (C) 2012 Free Software Foundation, Inc. 16501This config.status script is free software; the Free Software Foundation 16502gives unlimited permission to copy, distribute and modify it." 16503 16504ac_pwd='$ac_pwd' 16505srcdir='$srcdir' 16506INSTALL='$INSTALL' 16507AWK='$AWK' 16508test -n "\$AWK" || AWK=awk 16509_ACEOF 16510 16511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16512# The default lists apply if the user does not specify any file. 16513ac_need_defaults=: 16514while test $# != 0 16515do 16516 case $1 in 16517 --*=?*) 16518 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16519 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16520 ac_shift=: 16521 ;; 16522 --*=) 16523 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16524 ac_optarg= 16525 ac_shift=: 16526 ;; 16527 *) 16528 ac_option=$1 16529 ac_optarg=$2 16530 ac_shift=shift 16531 ;; 16532 esac 16533 16534 case $ac_option in 16535 # Handling of the options. 16536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16537 ac_cs_recheck=: ;; 16538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16539 $as_echo "$ac_cs_version"; exit ;; 16540 --config | --confi | --conf | --con | --co | --c ) 16541 $as_echo "$ac_cs_config"; exit ;; 16542 --debug | --debu | --deb | --de | --d | -d ) 16543 debug=: ;; 16544 --file | --fil | --fi | --f ) 16545 $ac_shift 16546 case $ac_optarg in 16547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16548 '') as_fn_error $? "missing file argument" ;; 16549 esac 16550 as_fn_append CONFIG_FILES " '$ac_optarg'" 16551 ac_need_defaults=false;; 16552 --he | --h | --help | --hel | -h ) 16553 $as_echo "$ac_cs_usage"; exit ;; 16554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16555 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16556 ac_cs_silent=: ;; 16557 16558 # This is an error. 16559 -*) as_fn_error $? "unrecognized option: \`$1' 16560Try \`$0 --help' for more information." ;; 16561 16562 *) as_fn_append ac_config_targets " $1" 16563 ac_need_defaults=false ;; 16564 16565 esac 16566 shift 16567done 16568 16569ac_configure_extra_args= 16570 16571if $ac_cs_silent; then 16572 exec 6>/dev/null 16573 ac_configure_extra_args="$ac_configure_extra_args --silent" 16574fi 16575 16576_ACEOF 16577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16578if \$ac_cs_recheck; then 16579 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16580 shift 16581 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16582 CONFIG_SHELL='$SHELL' 16583 export CONFIG_SHELL 16584 exec "\$@" 16585fi 16586 16587_ACEOF 16588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16589exec 5>>config.log 16590{ 16591 echo 16592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16593## Running $as_me. ## 16594_ASBOX 16595 $as_echo "$ac_log" 16596} >&5 16597 16598_ACEOF 16599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16600# 16601# INIT-COMMANDS 16602# 16603extrasub_build="$extrasub_build" 16604 extrasub_host="$extrasub_host" 16605 extrasub_target="$extrasub_target" 16606 16607_ACEOF 16608 16609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16610 16611# Handling of arguments. 16612for ac_config_target in $ac_config_targets 16613do 16614 case $ac_config_target in 16615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16616 16617 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16618 esac 16619done 16620 16621 16622# If the user did not use the arguments to specify the items to instantiate, 16623# then the envvar interface is used. Set only those that are not. 16624# We use the long form for the default assignment because of an extremely 16625# bizarre bug on SunOS 4.1.3. 16626if $ac_need_defaults; then 16627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16628fi 16629 16630# Have a temporary directory for convenience. Make it in the build tree 16631# simply because there is no reason against having it here, and in addition, 16632# creating and moving files from /tmp can sometimes cause problems. 16633# Hook for its removal unless debugging. 16634# Note that there is a small window in which the directory will not be cleaned: 16635# after its creation but before its name has been assigned to `$tmp'. 16636$debug || 16637{ 16638 tmp= ac_tmp= 16639 trap 'exit_status=$? 16640 : "${ac_tmp:=$tmp}" 16641 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16642' 0 16643 trap 'as_fn_exit 1' 1 2 13 15 16644} 16645# Create a (secure) tmp directory for tmp files. 16646 16647{ 16648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16649 test -d "$tmp" 16650} || 16651{ 16652 tmp=./conf$$-$RANDOM 16653 (umask 077 && mkdir "$tmp") 16654} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16655ac_tmp=$tmp 16656 16657# Set up the scripts for CONFIG_FILES section. 16658# No need to generate them if there are no CONFIG_FILES. 16659# This happens for instance with `./config.status config.h'. 16660if test -n "$CONFIG_FILES"; then 16661 16662if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 16663 ac_cs_awk_getline=: 16664 ac_cs_awk_pipe_init= 16665 ac_cs_awk_read_file=' 16666 while ((getline aline < (F[key])) > 0) 16667 print(aline) 16668 close(F[key])' 16669 ac_cs_awk_pipe_fini= 16670else 16671 ac_cs_awk_getline=false 16672 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 16673 ac_cs_awk_read_file=' 16674 print "|#_!!_#|" 16675 print "cat " F[key] " &&" 16676 '$ac_cs_awk_pipe_init 16677 # The final `:' finishes the AND list. 16678 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 16679fi 16680ac_cr=`echo X | tr X '\015'` 16681# On cygwin, bash can eat \r inside `` if the user requested igncr. 16682# But we know of no other shell where ac_cr would be empty at this 16683# point, so we can use a bashism as a fallback. 16684if test "x$ac_cr" = x; then 16685 eval ac_cr=\$\'\\r\' 16686fi 16687ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16688if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16689 ac_cs_awk_cr='\\r' 16690else 16691 ac_cs_awk_cr=$ac_cr 16692fi 16693 16694echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16695_ACEOF 16696 16697# Create commands to substitute file output variables. 16698{ 16699 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 16700 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 16701 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 16702 echo "_ACAWK" && 16703 echo "_ACEOF" 16704} >conf$$files.sh && 16705. ./conf$$files.sh || 16706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16707rm -f conf$$files.sh 16708 16709{ 16710 echo "cat >conf$$subs.awk <<_ACEOF" && 16711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16712 echo "_ACEOF" 16713} >conf$$subs.sh || 16714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16715ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16716ac_delim='%!_!# ' 16717for ac_last_try in false false false false false :; do 16718 . ./conf$$subs.sh || 16719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16720 16721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16722 if test $ac_delim_n = $ac_delim_num; then 16723 break 16724 elif $ac_last_try; then 16725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16726 else 16727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16728 fi 16729done 16730rm -f conf$$subs.sh 16731 16732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16733cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16734_ACEOF 16735sed -n ' 16736h 16737s/^/S["/; s/!.*/"]=/ 16738p 16739g 16740s/^[^!]*!// 16741:repl 16742t repl 16743s/'"$ac_delim"'$// 16744t delim 16745:nl 16746h 16747s/\(.\{148\}\)..*/\1/ 16748t more1 16749s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16750p 16751n 16752b repl 16753:more1 16754s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16755p 16756g 16757s/.\{148\}// 16758t nl 16759:delim 16760h 16761s/\(.\{148\}\)..*/\1/ 16762t more2 16763s/["\\]/\\&/g; s/^/"/; s/$/"/ 16764p 16765b 16766:more2 16767s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16768p 16769g 16770s/.\{148\}// 16771t delim 16772' <conf$$subs.awk | sed ' 16773/^[^""]/{ 16774 N 16775 s/\n// 16776} 16777' >>$CONFIG_STATUS || ac_write_fail=1 16778rm -f conf$$subs.awk 16779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16780_ACAWK 16781cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16782 for (key in S) S_is_set[key] = 1 16783 FS = "" 16784 \$ac_cs_awk_pipe_init 16785} 16786{ 16787 line = $ 0 16788 nfields = split(line, field, "@") 16789 substed = 0 16790 len = length(field[1]) 16791 for (i = 2; i < nfields; i++) { 16792 key = field[i] 16793 keylen = length(key) 16794 if (S_is_set[key]) { 16795 value = S[key] 16796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16797 len += length(value) + length(field[++i]) 16798 substed = 1 16799 } else 16800 len += 1 + keylen 16801 } 16802 if (nfields == 3 && !substed) { 16803 key = field[2] 16804 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 16805 \$ac_cs_awk_read_file 16806 next 16807 } 16808 } 16809 print line 16810} 16811\$ac_cs_awk_pipe_fini 16812_ACAWK 16813_ACEOF 16814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16815if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16816 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16817else 16818 cat 16819fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16820 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16821_ACEOF 16822 16823# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16824# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16825# trailing colons and then remove the whole line if VPATH becomes empty 16826# (actually we leave an empty line to preserve line numbers). 16827if test "x$srcdir" = x.; then 16828 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16829h 16830s/// 16831s/^/:/ 16832s/[ ]*$/:/ 16833s/:\$(srcdir):/:/g 16834s/:\${srcdir}:/:/g 16835s/:@srcdir@:/:/g 16836s/^:*// 16837s/:*$// 16838x 16839s/\(=[ ]*\).*/\1/ 16840G 16841s/\n// 16842s/^[^=]*=[ ]*$// 16843}' 16844fi 16845 16846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16847fi # test -n "$CONFIG_FILES" 16848 16849 16850eval set X " :F $CONFIG_FILES " 16851shift 16852for ac_tag 16853do 16854 case $ac_tag in 16855 :[FHLC]) ac_mode=$ac_tag; continue;; 16856 esac 16857 case $ac_mode$ac_tag in 16858 :[FHL]*:*);; 16859 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16860 :[FH]-) ac_tag=-:-;; 16861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16862 esac 16863 ac_save_IFS=$IFS 16864 IFS=: 16865 set x $ac_tag 16866 IFS=$ac_save_IFS 16867 shift 16868 ac_file=$1 16869 shift 16870 16871 case $ac_mode in 16872 :L) ac_source=$1;; 16873 :[FH]) 16874 ac_file_inputs= 16875 for ac_f 16876 do 16877 case $ac_f in 16878 -) ac_f="$ac_tmp/stdin";; 16879 *) # Look for the file first in the build tree, then in the source tree 16880 # (if the path is not absolute). The absolute path cannot be DOS-style, 16881 # because $ac_f cannot contain `:'. 16882 test -f "$ac_f" || 16883 case $ac_f in 16884 [\\/$]*) false;; 16885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16886 esac || 16887 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16888 esac 16889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16890 as_fn_append ac_file_inputs " '$ac_f'" 16891 done 16892 16893 # Let's still pretend it is `configure' which instantiates (i.e., don't 16894 # use $as_me), people would be surprised to read: 16895 # /* config.h. Generated by config.status. */ 16896 configure_input='Generated from '` 16897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16898 `' by configure.' 16899 if test x"$ac_file" != x-; then 16900 configure_input="$ac_file. $configure_input" 16901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16902$as_echo "$as_me: creating $ac_file" >&6;} 16903 fi 16904 # Neutralize special characters interpreted by sed in replacement strings. 16905 case $configure_input in #( 16906 *\&* | *\|* | *\\* ) 16907 ac_sed_conf_input=`$as_echo "$configure_input" | 16908 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16909 *) ac_sed_conf_input=$configure_input;; 16910 esac 16911 16912 case $ac_tag in 16913 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16915 esac 16916 ;; 16917 esac 16918 16919 ac_dir=`$as_dirname -- "$ac_file" || 16920$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16921 X"$ac_file" : 'X\(//\)[^/]' \| \ 16922 X"$ac_file" : 'X\(//\)$' \| \ 16923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16924$as_echo X"$ac_file" | 16925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16926 s//\1/ 16927 q 16928 } 16929 /^X\(\/\/\)[^/].*/{ 16930 s//\1/ 16931 q 16932 } 16933 /^X\(\/\/\)$/{ 16934 s//\1/ 16935 q 16936 } 16937 /^X\(\/\).*/{ 16938 s//\1/ 16939 q 16940 } 16941 s/.*/./; q'` 16942 as_dir="$ac_dir"; as_fn_mkdir_p 16943 ac_builddir=. 16944 16945case "$ac_dir" in 16946.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16947*) 16948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16949 # A ".." for each directory in $ac_dir_suffix. 16950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16951 case $ac_top_builddir_sub in 16952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16954 esac ;; 16955esac 16956ac_abs_top_builddir=$ac_pwd 16957ac_abs_builddir=$ac_pwd$ac_dir_suffix 16958# for backward compatibility: 16959ac_top_builddir=$ac_top_build_prefix 16960 16961case $srcdir in 16962 .) # We are building in place. 16963 ac_srcdir=. 16964 ac_top_srcdir=$ac_top_builddir_sub 16965 ac_abs_top_srcdir=$ac_pwd ;; 16966 [\\/]* | ?:[\\/]* ) # Absolute name. 16967 ac_srcdir=$srcdir$ac_dir_suffix; 16968 ac_top_srcdir=$srcdir 16969 ac_abs_top_srcdir=$srcdir ;; 16970 *) # Relative name. 16971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16972 ac_top_srcdir=$ac_top_build_prefix$srcdir 16973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16974esac 16975ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16976 16977 16978 case $ac_mode in 16979 :F) 16980 # 16981 # CONFIG_FILE 16982 # 16983 16984 case $INSTALL in 16985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16987 esac 16988_ACEOF 16989 16990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16991# If the template does not know about datarootdir, expand it. 16992# FIXME: This hack should be removed a few years after 2.60. 16993ac_datarootdir_hack=; ac_datarootdir_seen= 16994ac_sed_dataroot=' 16995/datarootdir/ { 16996 p 16997 q 16998} 16999/@datadir@/p 17000/@docdir@/p 17001/@infodir@/p 17002/@localedir@/p 17003/@mandir@/p' 17004case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17005*datarootdir*) ac_datarootdir_seen=yes;; 17006*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17008$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17009_ACEOF 17010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17011 ac_datarootdir_hack=' 17012 s&@datadir@&$datadir&g 17013 s&@docdir@&$docdir&g 17014 s&@infodir@&$infodir&g 17015 s&@localedir@&$localedir&g 17016 s&@mandir@&$mandir&g 17017 s&\\\${datarootdir}&$datarootdir&g' ;; 17018esac 17019_ACEOF 17020 17021# Neutralize VPATH when `$srcdir' = `.'. 17022# Shell code in configure.ac might set extrasub. 17023# FIXME: do we really want to maintain this feature? 17024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17025ac_sed_extra="$ac_vpsub 17026$extrasub 17027_ACEOF 17028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17029:t 17030/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17031s|@configure_input@|$ac_sed_conf_input|;t t 17032s&@top_builddir@&$ac_top_builddir_sub&;t t 17033s&@top_build_prefix@&$ac_top_build_prefix&;t t 17034s&@srcdir@&$ac_srcdir&;t t 17035s&@abs_srcdir@&$ac_abs_srcdir&;t t 17036s&@top_srcdir@&$ac_top_srcdir&;t t 17037s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17038s&@builddir@&$ac_builddir&;t t 17039s&@abs_builddir@&$ac_abs_builddir&;t t 17040s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17041s&@INSTALL@&$ac_INSTALL&;t t 17042$ac_datarootdir_hack 17043" 17044eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 17045if $ac_cs_awk_getline; then 17046 $AWK -f "$ac_tmp/subs.awk" 17047else 17048 $AWK -f "$ac_tmp/subs.awk" | $SHELL 17049fi \ 17050 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17051 17052test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17053 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17055 "$ac_tmp/out"`; test -z "$ac_out"; } && 17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17057which seems to be undefined. Please make sure it is defined" >&5 17058$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17059which seems to be undefined. Please make sure it is defined" >&2;} 17060 17061 rm -f "$ac_tmp/stdin" 17062 case $ac_file in 17063 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17064 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17065 esac \ 17066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17067 ;; 17068 17069 17070 17071 esac 17072 17073 17074 case $ac_file$ac_mode in 17075 "Makefile":F) sed "$extrasub_build" Makefile | 17076 sed "$extrasub_host" | 17077 sed "$extrasub_target" > mf$$ 17078 mv -f mf$$ Makefile ;; 17079 17080 esac 17081done # for ac_tag 17082 17083 17084as_fn_exit 0 17085_ACEOF 17086ac_clean_files=$ac_clean_files_save 17087 17088test $ac_write_fail = 0 || 17089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17090 17091 17092# configure is writing to config.log, and then calls config.status. 17093# config.status does its own redirection, appending to config.log. 17094# Unfortunately, on DOS this fails, as config.log is still kept open 17095# by configure, so config.status won't be able to write to it; its 17096# output is simply discarded. So we exec the FD to /dev/null, 17097# effectively closing config.log, so it can be properly (re)opened and 17098# appended to by config.status. When coming back to configure, we 17099# need to make the FD available again. 17100if test "$no_create" != yes; then 17101 ac_cs_success=: 17102 ac_config_status_args= 17103 test "$silent" = yes && 17104 ac_config_status_args="$ac_config_status_args --quiet" 17105 exec 5>/dev/null 17106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17107 exec 5>>config.log 17108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17109 # would make configure fail if this is the last instruction. 17110 $ac_cs_success || as_fn_exit 1 17111fi 17112if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17114$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17115fi 17116 17117