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 612DLLTOOL_FOR_TARGET 613AS_FOR_TARGET 614AR_FOR_TARGET 615GDC_FOR_TARGET 616GOC_FOR_TARGET 617GFORTRAN_FOR_TARGET 618GCC_FOR_TARGET 619CXX_FOR_TARGET 620CC_FOR_TARGET 621READELF 622OTOOL 623OBJDUMP 624OBJCOPY 625WINDMC 626WINDRES 627STRIP 628RANLIB 629NM 630LIPO 631LD 632DLLTOOL 633AS 634AR 635RUNTEST 636EXPECT 637MAKEINFO 638FLEX 639LEX 640M4 641BISON 642YACC 643WINDRES_FOR_BUILD 644WINDMC_FOR_BUILD 645RANLIB_FOR_BUILD 646NM_FOR_BUILD 647LD_FOR_BUILD 648LDFLAGS_FOR_BUILD 649GDC_FOR_BUILD 650GOC_FOR_BUILD 651GFORTRAN_FOR_BUILD 652DLLTOOL_FOR_BUILD 653CXX_FOR_BUILD 654CXXFLAGS_FOR_BUILD 655CFLAGS_FOR_BUILD 656CC_FOR_BUILD 657AS_FOR_BUILD 658AR_FOR_BUILD 659target_configdirs 660configdirs 661build_configdirs 662INSTALL_GDB_TK 663GDB_TK 664CONFIGURE_GDB_TK 665build_tooldir 666tooldir 667GCC_SHLIB_SUBDIR 668RPATH_ENVVAR 669target_configargs 670host_configargs 671build_configargs 672BUILD_CONFIG 673LDFLAGS_FOR_TARGET 674CXXFLAGS_FOR_TARGET 675CFLAGS_FOR_TARGET 676DEBUG_PREFIX_CFLAGS_FOR_TARGET 677SYSROOT_CFLAGS_FOR_TARGET 678get_gcc_base_ver 679extra_host_zlib_configure_flags 680extra_host_libiberty_configure_flags 681stage1_languages 682host_shared 683extra_linker_plugin_flags 684extra_linker_plugin_configure_flags 685islinc 686isllibs 687poststage1_ldflags 688poststage1_libs 689stage1_ldflags 690stage1_libs 691extra_isl_gmp_configure_flags 692extra_mpc_mpfr_configure_flags 693extra_mpc_gmp_configure_flags 694extra_mpfr_configure_flags 695gmpinc 696gmplibs 697do_compare 698GNATMAKE 699GNATBIND 700ac_ct_CXX 701CXXFLAGS 702CXX 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710extra_liboffloadmic_configure_flags 711target_subdir 712host_subdir 713build_subdir 714build_libsubdir 715AWK 716SED 717LN_S 718LN 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722target_os 723target_vendor 724target_cpu 725target 726host_os 727host_vendor 728host_cpu 729host 730target_noncanonical 731host_noncanonical 732build_noncanonical 733build_os 734build_vendor 735build_cpu 736build 737TOPLEVEL_CONFIGURE_ARGUMENTS 738target_alias 739host_alias 740build_alias 741LIBS 742ECHO_T 743ECHO_N 744ECHO_C 745DEFS 746mandir 747localedir 748libdir 749psdir 750pdfdir 751dvidir 752htmldir 753infodir 754docdir 755oldincludedir 756includedir 757localstatedir 758sharedstatedir 759sysconfdir 760datadir 761datarootdir 762libexecdir 763sbindir 764bindir 765program_transform_name 766prefix 767exec_prefix 768PACKAGE_URL 769PACKAGE_BUGREPORT 770PACKAGE_STRING 771PACKAGE_VERSION 772PACKAGE_TARNAME 773PACKAGE_NAME 774PATH_SEPARATOR 775SHELL' 776ac_subst_files='serialization_dependencies 777host_makefile_frag 778target_makefile_frag 779alphaieee_frag 780ospace_frag' 781ac_user_opts=' 782enable_option_checking 783with_build_libsubdir 784with_system_zlib 785enable_as_accelerator_for 786enable_offload_targets 787enable_gold 788enable_ld 789enable_compressed_debug_sections 790enable_libquadmath 791enable_libquadmath_support 792enable_libada 793enable_libssp 794enable_libstdcxx 795enable_liboffloadmic 796enable_bootstrap 797with_mpc 798with_mpc_include 799with_mpc_lib 800with_mpfr_dir 801with_mpfr 802with_mpfr_include 803with_mpfr_lib 804with_gmp_dir 805with_gmp 806with_gmp_include 807with_gmp_lib 808with_stage1_libs 809with_stage1_ldflags 810with_boot_libs 811with_boot_ldflags 812with_isl 813with_isl_include 814with_isl_lib 815enable_isl_version_check 816enable_lto 817enable_linker_plugin_configure_flags 818enable_linker_plugin_flags 819enable_host_shared 820enable_stage1_languages 821enable_objc_gc 822with_target_bdw_gc 823with_target_bdw_gc_include 824with_target_bdw_gc_lib 825with_gcc_major_version_only 826with_build_sysroot 827with_debug_prefix_map 828with_build_config 829enable_vtable_verify 830enable_serial_configure 831with_build_time_tools 832enable_maintainer_mode 833enable_stage1_checking 834enable_werror 835' 836 ac_precious_vars='build_alias 837host_alias 838target_alias 839CC 840CFLAGS 841LDFLAGS 842LIBS 843CPPFLAGS 844CXX 845CXXFLAGS 846CCC 847build_configargs 848host_configargs 849target_configargs 850AR 851AS 852DLLTOOL 853LD 854LIPO 855NM 856RANLIB 857STRIP 858WINDRES 859WINDMC 860OBJCOPY 861OBJDUMP 862OTOOL 863READELF 864CC_FOR_TARGET 865CXX_FOR_TARGET 866GCC_FOR_TARGET 867GFORTRAN_FOR_TARGET 868GOC_FOR_TARGET 869GDC_FOR_TARGET 870AR_FOR_TARGET 871AS_FOR_TARGET 872DLLTOOL_FOR_TARGET 873LD_FOR_TARGET 874LIPO_FOR_TARGET 875NM_FOR_TARGET 876OBJCOPY_FOR_TARGET 877OBJDUMP_FOR_TARGET 878OTOOL_FOR_TARGET 879RANLIB_FOR_TARGET 880READELF_FOR_TARGET 881STRIP_FOR_TARGET 882WINDRES_FOR_TARGET 883WINDMC_FOR_TARGET' 884 885 886# Initialize some variables set by options. 887ac_init_help= 888ac_init_version=false 889ac_unrecognized_opts= 890ac_unrecognized_sep= 891# The variables have the same names as the options, with 892# dashes changed to underlines. 893cache_file=/dev/null 894exec_prefix=NONE 895no_create= 896no_recursion= 897prefix=NONE 898program_prefix=NONE 899program_suffix=NONE 900program_transform_name=s,x,x, 901silent= 902site= 903srcdir= 904verbose= 905x_includes=NONE 906x_libraries=NONE 907 908# Installation directory options. 909# These are left unexpanded so users can "make install exec_prefix=/foo" 910# and all the variables that are supposed to be based on exec_prefix 911# by default will actually change. 912# Use braces instead of parens because sh, perl, etc. also accept them. 913# (The list follows the same order as the GNU Coding Standards.) 914bindir='${exec_prefix}/bin' 915sbindir='${exec_prefix}/sbin' 916libexecdir='${exec_prefix}/libexec' 917datarootdir='${prefix}/share' 918datadir='${datarootdir}' 919sysconfdir='${prefix}/etc' 920sharedstatedir='${prefix}/com' 921localstatedir='${prefix}/var' 922includedir='${prefix}/include' 923oldincludedir='/usr/include' 924docdir='${datarootdir}/doc/${PACKAGE}' 925infodir='${datarootdir}/info' 926htmldir='${docdir}' 927dvidir='${docdir}' 928pdfdir='${docdir}' 929psdir='${docdir}' 930libdir='${exec_prefix}/lib' 931localedir='${datarootdir}/locale' 932mandir='${datarootdir}/man' 933 934ac_prev= 935ac_dashdash= 936for ac_option 937do 938 # If the previous option needs an argument, assign it. 939 if test -n "$ac_prev"; then 940 eval $ac_prev=\$ac_option 941 ac_prev= 942 continue 943 fi 944 945 case $ac_option in 946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 947 *=) ac_optarg= ;; 948 *) ac_optarg=yes ;; 949 esac 950 951 # Accept the important Cygnus configure options, so we can diagnose typos. 952 953 case $ac_dashdash$ac_option in 954 --) 955 ac_dashdash=yes ;; 956 957 -bindir | --bindir | --bindi | --bind | --bin | --bi) 958 ac_prev=bindir ;; 959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 960 bindir=$ac_optarg ;; 961 962 -build | --build | --buil | --bui | --bu) 963 ac_prev=build_alias ;; 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 965 build_alias=$ac_optarg ;; 966 967 -cache-file | --cache-file | --cache-fil | --cache-fi \ 968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 969 ac_prev=cache_file ;; 970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 972 cache_file=$ac_optarg ;; 973 974 --config-cache | -C) 975 cache_file=config.cache ;; 976 977 -datadir | --datadir | --datadi | --datad) 978 ac_prev=datadir ;; 979 -datadir=* | --datadir=* | --datadi=* | --datad=*) 980 datadir=$ac_optarg ;; 981 982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 983 | --dataroo | --dataro | --datar) 984 ac_prev=datarootdir ;; 985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 987 datarootdir=$ac_optarg ;; 988 989 -disable-* | --disable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=no ;; 1004 1005 -docdir | --docdir | --docdi | --doc | --do) 1006 ac_prev=docdir ;; 1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1008 docdir=$ac_optarg ;; 1009 1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1011 ac_prev=dvidir ;; 1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1013 dvidir=$ac_optarg ;; 1014 1015 -enable-* | --enable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: $ac_useropt" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=\$ac_optarg ;; 1030 1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1033 | --exec | --exe | --ex) 1034 ac_prev=exec_prefix ;; 1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1037 | --exec=* | --exe=* | --ex=*) 1038 exec_prefix=$ac_optarg ;; 1039 1040 -gas | --gas | --ga | --g) 1041 # Obsolete; use --with-gas. 1042 with_gas=yes ;; 1043 1044 -help | --help | --hel | --he | -h) 1045 ac_init_help=long ;; 1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1047 ac_init_help=recursive ;; 1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1049 ac_init_help=short ;; 1050 1051 -host | --host | --hos | --ho) 1052 ac_prev=host_alias ;; 1053 -host=* | --host=* | --hos=* | --ho=*) 1054 host_alias=$ac_optarg ;; 1055 1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1057 ac_prev=htmldir ;; 1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1059 | --ht=*) 1060 htmldir=$ac_optarg ;; 1061 1062 -includedir | --includedir | --includedi | --included | --include \ 1063 | --includ | --inclu | --incl | --inc) 1064 ac_prev=includedir ;; 1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1066 | --includ=* | --inclu=* | --incl=* | --inc=*) 1067 includedir=$ac_optarg ;; 1068 1069 -infodir | --infodir | --infodi | --infod | --info | --inf) 1070 ac_prev=infodir ;; 1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1072 infodir=$ac_optarg ;; 1073 1074 -libdir | --libdir | --libdi | --libd) 1075 ac_prev=libdir ;; 1076 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1077 libdir=$ac_optarg ;; 1078 1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1080 | --libexe | --libex | --libe) 1081 ac_prev=libexecdir ;; 1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1083 | --libexe=* | --libex=* | --libe=*) 1084 libexecdir=$ac_optarg ;; 1085 1086 -localedir | --localedir | --localedi | --localed | --locale) 1087 ac_prev=localedir ;; 1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1089 localedir=$ac_optarg ;; 1090 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1092 | --localstate | --localstat | --localsta | --localst | --locals) 1093 ac_prev=localstatedir ;; 1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1096 localstatedir=$ac_optarg ;; 1097 1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1099 ac_prev=mandir ;; 1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1101 mandir=$ac_optarg ;; 1102 1103 -nfp | --nfp | --nf) 1104 # Obsolete; use --without-fp. 1105 with_fp=no ;; 1106 1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1108 | --no-cr | --no-c | -n) 1109 no_create=yes ;; 1110 1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1113 no_recursion=yes ;; 1114 1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1117 | --oldin | --oldi | --old | --ol | --o) 1118 ac_prev=oldincludedir ;; 1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1122 oldincludedir=$ac_optarg ;; 1123 1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1125 ac_prev=prefix ;; 1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1127 prefix=$ac_optarg ;; 1128 1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1130 | --program-pre | --program-pr | --program-p) 1131 ac_prev=program_prefix ;; 1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1134 program_prefix=$ac_optarg ;; 1135 1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1137 | --program-suf | --program-su | --program-s) 1138 ac_prev=program_suffix ;; 1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1141 program_suffix=$ac_optarg ;; 1142 1143 -program-transform-name | --program-transform-name \ 1144 | --program-transform-nam | --program-transform-na \ 1145 | --program-transform-n | --program-transform- \ 1146 | --program-transform | --program-transfor \ 1147 | --program-transfo | --program-transf \ 1148 | --program-trans | --program-tran \ 1149 | --progr-tra | --program-tr | --program-t) 1150 ac_prev=program_transform_name ;; 1151 -program-transform-name=* | --program-transform-name=* \ 1152 | --program-transform-nam=* | --program-transform-na=* \ 1153 | --program-transform-n=* | --program-transform-=* \ 1154 | --program-transform=* | --program-transfor=* \ 1155 | --program-transfo=* | --program-transf=* \ 1156 | --program-trans=* | --program-tran=* \ 1157 | --progr-tra=* | --program-tr=* | --program-t=*) 1158 program_transform_name=$ac_optarg ;; 1159 1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1161 ac_prev=pdfdir ;; 1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1163 pdfdir=$ac_optarg ;; 1164 1165 -psdir | --psdir | --psdi | --psd | --ps) 1166 ac_prev=psdir ;; 1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1168 psdir=$ac_optarg ;; 1169 1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1171 | -silent | --silent | --silen | --sile | --sil) 1172 silent=yes ;; 1173 1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1175 ac_prev=sbindir ;; 1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1177 | --sbi=* | --sb=*) 1178 sbindir=$ac_optarg ;; 1179 1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1182 | --sharedst | --shareds | --shared | --share | --shar \ 1183 | --sha | --sh) 1184 ac_prev=sharedstatedir ;; 1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1188 | --sha=* | --sh=*) 1189 sharedstatedir=$ac_optarg ;; 1190 1191 -site | --site | --sit) 1192 ac_prev=site ;; 1193 -site=* | --site=* | --sit=*) 1194 site=$ac_optarg ;; 1195 1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1197 ac_prev=srcdir ;; 1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1199 srcdir=$ac_optarg ;; 1200 1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1202 | --syscon | --sysco | --sysc | --sys | --sy) 1203 ac_prev=sysconfdir ;; 1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1206 sysconfdir=$ac_optarg ;; 1207 1208 -target | --target | --targe | --targ | --tar | --ta | --t) 1209 ac_prev=target_alias ;; 1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1211 target_alias=$ac_optarg ;; 1212 1213 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1214 verbose=yes ;; 1215 1216 -version | --version | --versio | --versi | --vers | -V) 1217 ac_init_version=: ;; 1218 1219 -with-* | --with-*) 1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1221 # Reject names that are not valid shell variable names. 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1223 as_fn_error $? "invalid package name: $ac_useropt" 1224 ac_useropt_orig=$ac_useropt 1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1226 case $ac_user_opts in 1227 *" 1228"with_$ac_useropt" 1229"*) ;; 1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1231 ac_unrecognized_sep=', ';; 1232 esac 1233 eval with_$ac_useropt=\$ac_optarg ;; 1234 1235 -without-* | --without-*) 1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1237 # Reject names that are not valid shell variable names. 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1239 as_fn_error $? "invalid package name: $ac_useropt" 1240 ac_useropt_orig=$ac_useropt 1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1242 case $ac_user_opts in 1243 *" 1244"with_$ac_useropt" 1245"*) ;; 1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1247 ac_unrecognized_sep=', ';; 1248 esac 1249 eval with_$ac_useropt=no ;; 1250 1251 --x) 1252 # Obsolete; use --with-x. 1253 with_x=yes ;; 1254 1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1256 | --x-incl | --x-inc | --x-in | --x-i) 1257 ac_prev=x_includes ;; 1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1260 x_includes=$ac_optarg ;; 1261 1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1264 ac_prev=x_libraries ;; 1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1267 x_libraries=$ac_optarg ;; 1268 1269 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1270Try \`$0 --help' for more information" 1271 ;; 1272 1273 *=*) 1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1275 # Reject names that are not valid shell variable names. 1276 case $ac_envvar in #( 1277 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1279 esac 1280 eval $ac_envvar=\$ac_optarg 1281 export $ac_envvar ;; 1282 1283 *) 1284 # FIXME: should be removed in autoconf 3.0. 1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1289 ;; 1290 1291 esac 1292done 1293 1294if test -n "$ac_prev"; then 1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1296 as_fn_error $? "missing argument to $ac_option" 1297fi 1298 1299if test -n "$ac_unrecognized_opts"; then 1300 case $enable_option_checking in 1301 no) ;; 1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1304 esac 1305fi 1306 1307# Check all directory arguments for consistency. 1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1309 datadir sysconfdir sharedstatedir localstatedir includedir \ 1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1311 libdir localedir mandir 1312do 1313 eval ac_val=\$$ac_var 1314 # Remove trailing slashes. 1315 case $ac_val in 1316 */ ) 1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1318 eval $ac_var=\$ac_val;; 1319 esac 1320 # Be sure to have absolute directory names. 1321 case $ac_val in 1322 [\\/$]* | ?:[\\/]* ) continue;; 1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1324 esac 1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1326done 1327 1328# There might be people who depend on the old broken behavior: `$host' 1329# used to hold the argument of --host etc. 1330# FIXME: To remove some day. 1331build=$build_alias 1332host=$host_alias 1333target=$target_alias 1334 1335# FIXME: To remove some day. 1336if test "x$host_alias" != x; then 1337 if test "x$build_alias" = x; then 1338 cross_compiling=maybe 1339 elif test "x$build_alias" != "x$host_alias"; then 1340 cross_compiling=yes 1341 fi 1342fi 1343 1344ac_tool_prefix= 1345test -n "$host_alias" && ac_tool_prefix=$host_alias- 1346 1347test "$silent" = yes && exec 6>/dev/null 1348 1349 1350ac_pwd=`pwd` && test -n "$ac_pwd" && 1351ac_ls_di=`ls -di .` && 1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1353 as_fn_error $? "working directory cannot be determined" 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1355 as_fn_error $? "pwd does not report name of working directory" 1356 1357 1358# Find the source files, if location was not specified. 1359if test -z "$srcdir"; then 1360 ac_srcdir_defaulted=yes 1361 # Try the directory containing this script, then the parent directory. 1362 ac_confdir=`$as_dirname -- "$as_myself" || 1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1364 X"$as_myself" : 'X\(//\)[^/]' \| \ 1365 X"$as_myself" : 'X\(//\)$' \| \ 1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1367$as_echo X"$as_myself" | 1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\/\)[^/].*/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\/\)$/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\).*/{ 1381 s//\1/ 1382 q 1383 } 1384 s/.*/./; q'` 1385 srcdir=$ac_confdir 1386 if test ! -r "$srcdir/$ac_unique_file"; then 1387 srcdir=.. 1388 fi 1389else 1390 ac_srcdir_defaulted=no 1391fi 1392if test ! -r "$srcdir/$ac_unique_file"; then 1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1395fi 1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1397ac_abs_confdir=`( 1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1399 pwd)` 1400# When building in place, set srcdir=. 1401if test "$ac_abs_confdir" = "$ac_pwd"; then 1402 srcdir=. 1403fi 1404# Remove unnecessary trailing slashes from srcdir. 1405# Double slashes in file names in object file debugging info 1406# mess up M-x gdb in Emacs. 1407case $srcdir in 1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1409esac 1410case $srcdir in 1411 *" "*) 1412 as_fn_error $? "path to source, $srcdir, contains spaces" 1413 ;; 1414esac 1415ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` 1416 1417for ac_var in $ac_precious_vars; do 1418 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1419 eval ac_env_${ac_var}_value=\$${ac_var} 1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1421 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1422done 1423 1424# 1425# Report the --help message. 1426# 1427if test "$ac_init_help" = "long"; then 1428 # Omit some internal or obsolete options to make the list less imposing. 1429 # This message is too long to be a string in the A/UX 3.1 sh. 1430 cat <<_ACEOF 1431\`configure' configures this package to adapt to many kinds of systems. 1432 1433Usage: $0 [OPTION]... [VAR=VALUE]... 1434 1435To assign environment variables (e.g., CC, CFLAGS...), specify them as 1436VAR=VALUE. See below for descriptions of some of the useful variables. 1437 1438Defaults for the options are specified in brackets. 1439 1440Configuration: 1441 -h, --help display this help and exit 1442 --help=short display options specific to this package 1443 --help=recursive display the short help of all the included packages 1444 -V, --version display version information and exit 1445 -q, --quiet, --silent do not print \`checking ...' messages 1446 --cache-file=FILE cache test results in FILE [disabled] 1447 -C, --config-cache alias for \`--cache-file=config.cache' 1448 -n, --no-create do not create output files 1449 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1450 1451Installation directories: 1452 --prefix=PREFIX install architecture-independent files in PREFIX 1453 [$ac_default_prefix] 1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1455 [PREFIX] 1456 1457By default, \`make install' will install all the files in 1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1459an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1460for instance \`--prefix=\$HOME'. 1461 1462For better control, use the options below. 1463 1464Fine tuning of the installation directories: 1465 --bindir=DIR user executables [EPREFIX/bin] 1466 --sbindir=DIR system admin executables [EPREFIX/sbin] 1467 --libexecdir=DIR program executables [EPREFIX/libexec] 1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1471 --libdir=DIR object code libraries [EPREFIX/lib] 1472 --includedir=DIR C header files [PREFIX/include] 1473 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1476 --infodir=DIR info documentation [DATAROOTDIR/info] 1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1478 --mandir=DIR man documentation [DATAROOTDIR/man] 1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1480 --htmldir=DIR html documentation [DOCDIR] 1481 --dvidir=DIR dvi documentation [DOCDIR] 1482 --pdfdir=DIR pdf documentation [DOCDIR] 1483 --psdir=DIR ps documentation [DOCDIR] 1484_ACEOF 1485 1486 cat <<\_ACEOF 1487 1488Program names: 1489 --program-prefix=PREFIX prepend PREFIX to installed program names 1490 --program-suffix=SUFFIX append SUFFIX to installed program names 1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1492 1493System types: 1494 --build=BUILD configure for building on BUILD [guessed] 1495 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1496 --target=TARGET configure for building compilers for TARGET [HOST] 1497_ACEOF 1498fi 1499 1500if test -n "$ac_init_help"; then 1501 1502 cat <<\_ACEOF 1503 1504Optional Features: 1505 --disable-option-checking ignore unrecognized --enable/--with options 1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1508 --enable-as-accelerator-for=ARG 1509 build as offload target compiler. Specify offload 1510 host triple by ARG 1511 --enable-offload-targets=LIST 1512 enable offloading to devices from comma-separated 1513 LIST of TARGET[=DIR]. Use optional path to find 1514 offload target compiler during the build 1515 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1516 --enable-ld[=ARG] build ld [ARG={default,yes,no}] 1517 --enable-compressed-debug-sections={all,gas,gold,ld,none} 1518 Enable compressed debug sections for gas, gold or ld 1519 by default 1520 --disable-libquadmath do not build libquadmath directory 1521 --disable-libquadmath-support 1522 disable libquadmath support for Fortran 1523 --enable-libada build libada directory 1524 --enable-libssp build libssp directory 1525 --disable-libstdcxx do not build libstdc++-v3 directory 1526 --enable-liboffloadmic=ARG 1527 build liboffloadmic [ARG={no,host,target}] 1528 --enable-bootstrap enable bootstrapping [yes if native build] 1529 --disable-isl-version-check 1530 disable check for isl version 1531 --enable-lto enable link time optimization support 1532 --enable-linker-plugin-configure-flags=FLAGS 1533 additional flags for configuring linker plugins 1534 [none] 1535 --enable-linker-plugin-flags=FLAGS 1536 additional flags for configuring and building linker 1537 plugins [none] 1538 --enable-host-shared build host code as shared libraries 1539 --enable-stage1-languages[=all] 1540 choose additional languages to build during stage1. 1541 Mostly useful for compiler development 1542 --enable-objc-gc enable use of Boehm's garbage collector with the GNU 1543 Objective-C runtime 1544 --enable-vtable-verify Enable vtable verification feature 1545 --enable-serial-[{host,target,build}-]configure 1546 force sequential configuration of sub-packages for 1547 the host, target or build machine, or all 1548 sub-packages 1549 --enable-maintainer-mode 1550 enable make rules and dependencies not useful (and 1551 sometimes confusing) to the casual installer 1552 --enable-stage1-checking[=all] 1553 choose additional checking for stage1 of the 1554 compiler 1555 --enable-werror enable -Werror in bootstrap stage2 and later 1556 1557Optional Packages: 1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1560 --with-build-libsubdir=DIR Directory where to find libraries for build system 1561 --with-system-zlib use installed libz 1562 --with-mpc=PATH specify prefix directory for installed MPC package. 1563 Equivalent to --with-mpc-include=PATH/include plus 1564 --with-mpc-lib=PATH/lib 1565 --with-mpc-include=PATH specify directory for installed MPC include files 1566 --with-mpc-lib=PATH specify directory for the installed MPC library 1567 --with-mpfr-dir=PATH this option has been REMOVED 1568 --with-mpfr=PATH specify prefix directory for installed MPFR package. 1569 Equivalent to --with-mpfr-include=PATH/include plus 1570 --with-mpfr-lib=PATH/lib 1571 --with-mpfr-include=PATH 1572 specify directory for installed MPFR include files 1573 --with-mpfr-lib=PATH specify directory for the installed MPFR library 1574 --with-gmp-dir=PATH this option has been REMOVED 1575 --with-gmp=PATH specify prefix directory for the installed GMP 1576 package. Equivalent to 1577 --with-gmp-include=PATH/include plus 1578 --with-gmp-lib=PATH/lib 1579 --with-gmp-include=PATH specify directory for installed GMP include files 1580 --with-gmp-lib=PATH specify directory for the installed GMP library 1581 --with-stage1-libs=LIBS libraries for stage1 1582 --with-stage1-ldflags=FLAGS 1583 linker flags for stage1 1584 --with-boot-libs=LIBS libraries for stage2 and later 1585 --with-boot-ldflags=FLAGS 1586 linker flags for stage2 and later 1587 --with-isl=PATH Specify prefix directory for the installed isl 1588 package. Equivalent to 1589 --with-isl-include=PATH/include plus 1590 --with-isl-lib=PATH/lib 1591 --with-isl-include=PATH Specify directory for installed isl include files 1592 --with-isl-lib=PATH Specify the directory for the installed isl library 1593 --with-target-bdw-gc=PATHLIST 1594 specify prefix directory for installed bdw-gc 1595 package. Equivalent to 1596 --with-target-bdw-gc-include=PATH/include plus 1597 --with-target-bdw-gc-lib=PATH/lib 1598 --with-target-bdw-gc-include=PATHLIST 1599 specify directories for installed bdw-gc include 1600 files 1601 --with-target-bdw-gc-lib=PATHLIST 1602 specify directories for installed bdw-gc library 1603 --with-gcc-major-version-only 1604 use only GCC major number in filesystem paths 1605 --with-build-sysroot=SYSROOT 1606 use sysroot as the system root during the build 1607 --with-debug-prefix-map='A=B C=D ...' 1608 map A to B, C to D ... in debug information 1609 --with-build-config='NAME NAME2...' 1610 use config/NAME.mk build configuration 1611 --with-build-time-tools=PATH 1612 use given path to find target tools during the build 1613 1614Some influential environment variables: 1615 CC C compiler command 1616 CFLAGS C compiler flags 1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1618 nonstandard directory <lib dir> 1619 LIBS libraries to pass to the linker, e.g. -l<library> 1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1621 you have headers in a nonstandard directory <include dir> 1622 CXX C++ compiler command 1623 CXXFLAGS C++ compiler flags 1624 build_configargs 1625 additional configure arguments for build directories 1626 host_configargs 1627 additional configure arguments for host directories 1628 target_configargs 1629 additional configure arguments for target directories 1630 AR AR for the host 1631 AS AS for the host 1632 DLLTOOL DLLTOOL for the host 1633 LD LD for the host 1634 LIPO LIPO for the host 1635 NM NM for the host 1636 RANLIB RANLIB for the host 1637 STRIP STRIP for the host 1638 WINDRES WINDRES for the host 1639 WINDMC WINDMC for the host 1640 OBJCOPY OBJCOPY for the host 1641 OBJDUMP OBJDUMP for the host 1642 OTOOL OTOOL for the host 1643 READELF READELF for the host 1644 CC_FOR_TARGET 1645 CC for the target 1646 CXX_FOR_TARGET 1647 CXX for the target 1648 GCC_FOR_TARGET 1649 GCC for the target 1650 GFORTRAN_FOR_TARGET 1651 GFORTRAN for the target 1652 GOC_FOR_TARGET 1653 GOC for the target 1654 GDC_FOR_TARGET 1655 GDC for the target 1656 AR_FOR_TARGET 1657 AR for the target 1658 AS_FOR_TARGET 1659 AS for the target 1660 DLLTOOL_FOR_TARGET 1661 DLLTOOL for the target 1662 LD_FOR_TARGET 1663 LD for the target 1664 LIPO_FOR_TARGET 1665 LIPO for the target 1666 NM_FOR_TARGET 1667 NM for the target 1668 OBJCOPY_FOR_TARGET 1669 OBJCOPY for the target 1670 OBJDUMP_FOR_TARGET 1671 OBJDUMP for the target 1672 OTOOL_FOR_TARGET 1673 OTOOL for the target 1674 RANLIB_FOR_TARGET 1675 RANLIB for the target 1676 READELF_FOR_TARGET 1677 READELF for the target 1678 STRIP_FOR_TARGET 1679 STRIP for the target 1680 WINDRES_FOR_TARGET 1681 WINDRES for the target 1682 WINDMC_FOR_TARGET 1683 WINDMC for the target 1684 1685Use these variables to override the choices made by `configure' or to help 1686it to find libraries and programs with nonstandard names/locations. 1687 1688Report bugs to the package provider. 1689_ACEOF 1690ac_status=$? 1691fi 1692 1693if test "$ac_init_help" = "recursive"; then 1694 # If there are subdirs, report their specific --help. 1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1696 test -d "$ac_dir" || 1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1698 continue 1699 ac_builddir=. 1700 1701case "$ac_dir" in 1702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1703*) 1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1705 # A ".." for each directory in $ac_dir_suffix. 1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1707 case $ac_top_builddir_sub in 1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1710 esac ;; 1711esac 1712ac_abs_top_builddir=$ac_pwd 1713ac_abs_builddir=$ac_pwd$ac_dir_suffix 1714# for backward compatibility: 1715ac_top_builddir=$ac_top_build_prefix 1716 1717case $srcdir in 1718 .) # We are building in place. 1719 ac_srcdir=. 1720 ac_top_srcdir=$ac_top_builddir_sub 1721 ac_abs_top_srcdir=$ac_pwd ;; 1722 [\\/]* | ?:[\\/]* ) # Absolute name. 1723 ac_srcdir=$srcdir$ac_dir_suffix; 1724 ac_top_srcdir=$srcdir 1725 ac_abs_top_srcdir=$srcdir ;; 1726 *) # Relative name. 1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1728 ac_top_srcdir=$ac_top_build_prefix$srcdir 1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1730esac 1731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1732 1733 cd "$ac_dir" || { ac_status=$?; continue; } 1734 # Check for guested configure. 1735 if test -f "$ac_srcdir/configure.gnu"; then 1736 echo && 1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1738 elif test -f "$ac_srcdir/configure"; then 1739 echo && 1740 $SHELL "$ac_srcdir/configure" --help=recursive 1741 else 1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1743 fi || ac_status=$? 1744 cd "$ac_pwd" || { ac_status=$?; break; } 1745 done 1746fi 1747 1748test -n "$ac_init_help" && exit $ac_status 1749if $ac_init_version; then 1750 cat <<\_ACEOF 1751configure 1752generated by GNU Autoconf 2.69 1753 1754Copyright (C) 2012 Free Software Foundation, Inc. 1755This configure script is free software; the Free Software Foundation 1756gives unlimited permission to copy, distribute and modify it. 1757_ACEOF 1758 exit 1759fi 1760 1761## ------------------------ ## 1762## Autoconf initialization. ## 1763## ------------------------ ## 1764 1765# ac_fn_c_try_compile LINENO 1766# -------------------------- 1767# Try to compile conftest.$ac_ext, and return whether this succeeded. 1768ac_fn_c_try_compile () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 rm -f conftest.$ac_objext 1772 if { { ac_try="$ac_compile" 1773case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_compile") 2>conftest.err 1780 ac_status=$? 1781 if test -s conftest.err; then 1782 grep -v '^ *+' conftest.err >conftest.er1 1783 cat conftest.er1 >&5 1784 mv -f conftest.er1 conftest.err 1785 fi 1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1787 test $ac_status = 0; } && { 1788 test -z "$ac_c_werror_flag" || 1789 test ! -s conftest.err 1790 } && test -s conftest.$ac_objext; then : 1791 ac_retval=0 1792else 1793 $as_echo "$as_me: failed program was:" >&5 1794sed 's/^/| /' conftest.$ac_ext >&5 1795 1796 ac_retval=1 1797fi 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_compile 1802 1803# ac_fn_cxx_try_compile LINENO 1804# ---------------------------- 1805# Try to compile conftest.$ac_ext, and return whether this succeeded. 1806ac_fn_cxx_try_compile () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 rm -f conftest.$ac_objext 1810 if { { ac_try="$ac_compile" 1811case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_compile") 2>conftest.err 1818 ac_status=$? 1819 if test -s conftest.err; then 1820 grep -v '^ *+' conftest.err >conftest.er1 1821 cat conftest.er1 >&5 1822 mv -f conftest.er1 conftest.err 1823 fi 1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1825 test $ac_status = 0; } && { 1826 test -z "$ac_cxx_werror_flag" || 1827 test ! -s conftest.err 1828 } && test -s conftest.$ac_objext; then : 1829 ac_retval=0 1830else 1831 $as_echo "$as_me: failed program was:" >&5 1832sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=1 1835fi 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 as_fn_set_status $ac_retval 1838 1839} # ac_fn_cxx_try_compile 1840 1841# ac_fn_cxx_try_link LINENO 1842# ------------------------- 1843# Try to link conftest.$ac_ext, and return whether this succeeded. 1844ac_fn_cxx_try_link () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 rm -f conftest.$ac_objext conftest$ac_exeext 1848 if { { ac_try="$ac_link" 1849case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852esac 1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854$as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_link") 2>conftest.err 1856 ac_status=$? 1857 if test -s conftest.err; then 1858 grep -v '^ *+' conftest.err >conftest.er1 1859 cat conftest.er1 >&5 1860 mv -f conftest.er1 conftest.err 1861 fi 1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1863 test $ac_status = 0; } && { 1864 test -z "$ac_cxx_werror_flag" || 1865 test ! -s conftest.err 1866 } && test -s conftest$ac_exeext && { 1867 test "$cross_compiling" = yes || 1868 test -x conftest$ac_exeext 1869 }; then : 1870 ac_retval=0 1871else 1872 $as_echo "$as_me: failed program was:" >&5 1873sed 's/^/| /' conftest.$ac_ext >&5 1874 1875 ac_retval=1 1876fi 1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1879 # interfere with the next link command; also delete a directory that is 1880 # left behind by Apple's compiler. We do this before executing the actions. 1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 as_fn_set_status $ac_retval 1884 1885} # ac_fn_cxx_try_link 1886 1887# ac_fn_c_try_link LINENO 1888# ----------------------- 1889# Try to link conftest.$ac_ext, and return whether this succeeded. 1890ac_fn_c_try_link () 1891{ 1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1893 rm -f conftest.$ac_objext conftest$ac_exeext 1894 if { { ac_try="$ac_link" 1895case "(($ac_try" in 1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1897 *) ac_try_echo=$ac_try;; 1898esac 1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1900$as_echo "$ac_try_echo"; } >&5 1901 (eval "$ac_link") 2>conftest.err 1902 ac_status=$? 1903 if test -s conftest.err; then 1904 grep -v '^ *+' conftest.err >conftest.er1 1905 cat conftest.er1 >&5 1906 mv -f conftest.er1 conftest.err 1907 fi 1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1909 test $ac_status = 0; } && { 1910 test -z "$ac_c_werror_flag" || 1911 test ! -s conftest.err 1912 } && test -s conftest$ac_exeext && { 1913 test "$cross_compiling" = yes || 1914 test -x conftest$ac_exeext 1915 }; then : 1916 ac_retval=0 1917else 1918 $as_echo "$as_me: failed program was:" >&5 1919sed 's/^/| /' conftest.$ac_ext >&5 1920 1921 ac_retval=1 1922fi 1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1925 # interfere with the next link command; also delete a directory that is 1926 # left behind by Apple's compiler. We do this before executing the actions. 1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929 as_fn_set_status $ac_retval 1930 1931} # ac_fn_c_try_link 1932cat >config.log <<_ACEOF 1933This file contains any messages produced by compilers while 1934running configure, to aid debugging if configure makes a mistake. 1935 1936It was created by $as_me, which was 1937generated by GNU Autoconf 2.69. Invocation command line was 1938 1939 $ $0 $@ 1940 1941_ACEOF 1942exec 5>>config.log 1943{ 1944cat <<_ASUNAME 1945## --------- ## 1946## Platform. ## 1947## --------- ## 1948 1949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1950uname -m = `(uname -m) 2>/dev/null || echo unknown` 1951uname -r = `(uname -r) 2>/dev/null || echo unknown` 1952uname -s = `(uname -s) 2>/dev/null || echo unknown` 1953uname -v = `(uname -v) 2>/dev/null || echo unknown` 1954 1955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1956/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1957 1958/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1959/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1961/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1962/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1963/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1964/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1965 1966_ASUNAME 1967 1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1969for as_dir in $PATH 1970do 1971 IFS=$as_save_IFS 1972 test -z "$as_dir" && as_dir=. 1973 $as_echo "PATH: $as_dir" 1974 done 1975IFS=$as_save_IFS 1976 1977} >&5 1978 1979cat >&5 <<_ACEOF 1980 1981 1982## ----------- ## 1983## Core tests. ## 1984## ----------- ## 1985 1986_ACEOF 1987 1988 1989# Keep a trace of the command line. 1990# Strip out --no-create and --no-recursion so they do not pile up. 1991# Strip out --silent because we don't want to record it for future runs. 1992# Also quote any args containing shell meta-characters. 1993# Make two passes to allow for proper duplicate-argument suppression. 1994ac_configure_args= 1995ac_configure_args0= 1996ac_configure_args1= 1997ac_must_keep_next=false 1998for ac_pass in 1 2 1999do 2000 for ac_arg 2001 do 2002 case $ac_arg in 2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2005 | -silent | --silent | --silen | --sile | --sil) 2006 continue ;; 2007 *\'*) 2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2009 esac 2010 case $ac_pass in 2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2012 2) 2013 as_fn_append ac_configure_args1 " '$ac_arg'" 2014 if test $ac_must_keep_next = true; then 2015 ac_must_keep_next=false # Got value, back to normal. 2016 else 2017 case $ac_arg in 2018 *=* | --config-cache | -C | -disable-* | --disable-* \ 2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2021 | -with-* | --with-* | -without-* | --without-* | --x) 2022 case "$ac_configure_args0 " in 2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2024 esac 2025 ;; 2026 -* ) ac_must_keep_next=true ;; 2027 esac 2028 fi 2029 as_fn_append ac_configure_args " '$ac_arg'" 2030 ;; 2031 esac 2032 done 2033done 2034{ ac_configure_args0=; unset ac_configure_args0;} 2035{ ac_configure_args1=; unset ac_configure_args1;} 2036 2037# When interrupted or exit'd, cleanup temporary files, and complete 2038# config.log. We remove comments because anyway the quotes in there 2039# would cause problems or look ugly. 2040# WARNING: Use '\'' to represent an apostrophe within the trap. 2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2042trap 'exit_status=$? 2043 # Save into config.log some information that might help in debugging. 2044 { 2045 echo 2046 2047 $as_echo "## ---------------- ## 2048## Cache variables. ## 2049## ---------------- ##" 2050 echo 2051 # The following way of writing the cache mishandles newlines in values, 2052( 2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2054 eval ac_val=\$$ac_var 2055 case $ac_val in #( 2056 *${as_nl}*) 2057 case $ac_var in #( 2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2060 esac 2061 case $ac_var in #( 2062 _ | IFS | as_nl) ;; #( 2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2064 *) { eval $ac_var=; unset $ac_var;} ;; 2065 esac ;; 2066 esac 2067 done 2068 (set) 2>&1 | 2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2070 *${as_nl}ac_space=\ *) 2071 sed -n \ 2072 "s/'\''/'\''\\\\'\'''\''/g; 2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2074 ;; #( 2075 *) 2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2077 ;; 2078 esac | 2079 sort 2080) 2081 echo 2082 2083 $as_echo "## ----------------- ## 2084## Output variables. ## 2085## ----------------- ##" 2086 echo 2087 for ac_var in $ac_subst_vars 2088 do 2089 eval ac_val=\$$ac_var 2090 case $ac_val in 2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2092 esac 2093 $as_echo "$ac_var='\''$ac_val'\''" 2094 done | sort 2095 echo 2096 2097 if test -n "$ac_subst_files"; then 2098 $as_echo "## ------------------- ## 2099## File substitutions. ## 2100## ------------------- ##" 2101 echo 2102 for ac_var in $ac_subst_files 2103 do 2104 eval ac_val=\$$ac_var 2105 case $ac_val in 2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2107 esac 2108 $as_echo "$ac_var='\''$ac_val'\''" 2109 done | sort 2110 echo 2111 fi 2112 2113 if test -s confdefs.h; then 2114 $as_echo "## ----------- ## 2115## confdefs.h. ## 2116## ----------- ##" 2117 echo 2118 cat confdefs.h 2119 echo 2120 fi 2121 test "$ac_signal" != 0 && 2122 $as_echo "$as_me: caught signal $ac_signal" 2123 $as_echo "$as_me: exit $exit_status" 2124 } >&5 2125 rm -f core *.core core.conftest.* && 2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2127 exit $exit_status 2128' 0 2129for ac_signal in 1 2 13 15; do 2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2131done 2132ac_signal=0 2133 2134# confdefs.h avoids OS command line length limits that DEFS can exceed. 2135rm -f -r conftest* confdefs.h 2136 2137$as_echo "/* confdefs.h */" > confdefs.h 2138 2139# Predefined preprocessor variables. 2140 2141cat >>confdefs.h <<_ACEOF 2142#define PACKAGE_NAME "$PACKAGE_NAME" 2143_ACEOF 2144 2145cat >>confdefs.h <<_ACEOF 2146#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2147_ACEOF 2148 2149cat >>confdefs.h <<_ACEOF 2150#define PACKAGE_VERSION "$PACKAGE_VERSION" 2151_ACEOF 2152 2153cat >>confdefs.h <<_ACEOF 2154#define PACKAGE_STRING "$PACKAGE_STRING" 2155_ACEOF 2156 2157cat >>confdefs.h <<_ACEOF 2158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2159_ACEOF 2160 2161cat >>confdefs.h <<_ACEOF 2162#define PACKAGE_URL "$PACKAGE_URL" 2163_ACEOF 2164 2165 2166# Let the site file select an alternate cache file if it wants to. 2167# Prefer an explicitly selected file to automatically selected ones. 2168ac_site_file1=NONE 2169ac_site_file2=NONE 2170if test -n "$CONFIG_SITE"; then 2171 # We do not want a PATH search for config.site. 2172 case $CONFIG_SITE in #(( 2173 -*) ac_site_file1=./$CONFIG_SITE;; 2174 */*) ac_site_file1=$CONFIG_SITE;; 2175 *) ac_site_file1=./$CONFIG_SITE;; 2176 esac 2177elif test "x$prefix" != xNONE; then 2178 ac_site_file1=$prefix/share/config.site 2179 ac_site_file2=$prefix/etc/config.site 2180else 2181 ac_site_file1=$ac_default_prefix/share/config.site 2182 ac_site_file2=$ac_default_prefix/etc/config.site 2183fi 2184for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2185do 2186 test "x$ac_site_file" = xNONE && continue 2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2189$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2190 sed 's/^/| /' "$ac_site_file" >&5 2191 . "$ac_site_file" \ 2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2194as_fn_error $? "failed to load site script $ac_site_file 2195See \`config.log' for more details" "$LINENO" 5; } 2196 fi 2197done 2198 2199if test -r "$cache_file"; then 2200 # Some versions of bash will fail to source /dev/null (special files 2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2204$as_echo "$as_me: loading cache $cache_file" >&6;} 2205 case $cache_file in 2206 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2207 *) . "./$cache_file";; 2208 esac 2209 fi 2210else 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2212$as_echo "$as_me: creating cache $cache_file" >&6;} 2213 >$cache_file 2214fi 2215 2216# Check that the precious variables saved in the cache have kept the same 2217# value. 2218ac_cache_corrupted=false 2219for ac_var in $ac_precious_vars; do 2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2221 eval ac_new_set=\$ac_env_${ac_var}_set 2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2223 eval ac_new_val=\$ac_env_${ac_var}_value 2224 case $ac_old_set,$ac_new_set in 2225 set,) 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2227$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2228 ac_cache_corrupted=: ;; 2229 ,set) 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2231$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2232 ac_cache_corrupted=: ;; 2233 ,);; 2234 *) 2235 if test "x$ac_old_val" != "x$ac_new_val"; then 2236 # differences in whitespace do not lead to failure. 2237 ac_old_val_w=`echo x $ac_old_val` 2238 ac_new_val_w=`echo x $ac_new_val` 2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2241$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2242 ac_cache_corrupted=: 2243 else 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2245$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2246 eval $ac_var=\$ac_old_val 2247 fi 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2249$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2251$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2252 fi;; 2253 esac 2254 # Pass precious variables to config.status. 2255 if test "$ac_new_set" = set; then 2256 case $ac_new_val in 2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2258 *) ac_arg=$ac_var=$ac_new_val ;; 2259 esac 2260 case " $ac_configure_args " in 2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2263 esac 2264 fi 2265done 2266if $ac_cache_corrupted; then 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2270$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2272fi 2273## -------------------- ## 2274## Main body of script. ## 2275## -------------------- ## 2276 2277ac_ext=c 2278ac_cpp='$CPP $CPPFLAGS' 2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2281ac_compiler_gnu=$ac_cv_c_compiler_gnu 2282 2283 2284 2285 2286 2287 2288 2289 2290progname=$0 2291# if PWD already has a value, it is probably wrong. 2292if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi 2293 2294# Export original configure arguments for use by sub-configures. 2295# Quote arguments with shell meta charatcers. 2296TOPLEVEL_CONFIGURE_ARGUMENTS= 2297set -- "$progname" "$@" 2298for ac_arg 2299do 2300 case "$ac_arg" in 2301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) 2302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 2303 # if the argument is of the form -foo=baz, quote the baz part only 2304 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; 2305 *) ;; 2306 esac 2307 # Add the quoted argument to the list. 2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" 2309done 2310if test "$silent" = yes; then 2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" 2312fi 2313# Remove the initial space we just introduced and, as these will be 2314# expanded by make, quote '$'. 2315TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 2316 2317 2318# Find the build, host, and target systems. 2319ac_aux_dir= 2320for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2321 if test -f "$ac_dir/install-sh"; then 2322 ac_aux_dir=$ac_dir 2323 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c" 2324 break 2325 elif test -f "$ac_dir/install.sh"; then 2326 ac_aux_dir=$ac_dir 2327 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c" 2328 break 2329 elif test -f "$ac_dir/shtool"; then 2330 ac_aux_dir=$ac_dir 2331 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c" 2332 break 2333 fi 2334done 2335if test -z "$ac_aux_dir"; then 2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2337fi 2338 2339# These three variables are undocumented and unsupported, 2340# and are intended to be withdrawn in a future Autoconf release. 2341# They can cause serious problems if a builder's source tree is in a directory 2342# whose full name contains unusual characters. 2343ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2344ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2345ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2346 2347 2348# Make sure we can run config.sub. 2349$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2351 2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2353$as_echo_n "checking build system type... " >&6; } 2354if ${ac_cv_build+:} false; then : 2355 $as_echo_n "(cached) " >&6 2356else 2357 ac_build_alias=$build_alias 2358test "x$ac_build_alias" = x && 2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2360test "x$ac_build_alias" = x && 2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2362ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2364 2365fi 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2367$as_echo "$ac_cv_build" >&6; } 2368case $ac_cv_build in 2369*-*-*) ;; 2370*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2371esac 2372build=$ac_cv_build 2373ac_save_IFS=$IFS; IFS='-' 2374set x $ac_cv_build 2375shift 2376build_cpu=$1 2377build_vendor=$2 2378shift; shift 2379# Remember, the first character of IFS is used to create $*, 2380# except with old shells: 2381build_os=$* 2382IFS=$ac_save_IFS 2383case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2384 2385 2386 case ${build_alias} in 2387 "") build_noncanonical=${build} ;; 2388 *) build_noncanonical=${build_alias} ;; 2389esac 2390 2391 2392 2393 case ${host_alias} in 2394 "") host_noncanonical=${build_noncanonical} ;; 2395 *) host_noncanonical=${host_alias} ;; 2396esac 2397 2398 2399 2400 case ${target_alias} in 2401 "") target_noncanonical=${host_noncanonical} ;; 2402 *) target_noncanonical=${target_alias} ;; 2403esac 2404 2405 2406 2407 2408test "$host_noncanonical" = "$target_noncanonical" && 2409 test "$program_prefix$program_suffix$program_transform_name" = \ 2410 NONENONEs,x,x, && 2411 program_transform_name=s,y,y, 2412 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2414$as_echo_n "checking host system type... " >&6; } 2415if ${ac_cv_host+:} false; then : 2416 $as_echo_n "(cached) " >&6 2417else 2418 if test "x$host_alias" = x; then 2419 ac_cv_host=$ac_cv_build 2420else 2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2423fi 2424 2425fi 2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2427$as_echo "$ac_cv_host" >&6; } 2428case $ac_cv_host in 2429*-*-*) ;; 2430*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2431esac 2432host=$ac_cv_host 2433ac_save_IFS=$IFS; IFS='-' 2434set x $ac_cv_host 2435shift 2436host_cpu=$1 2437host_vendor=$2 2438shift; shift 2439# Remember, the first character of IFS is used to create $*, 2440# except with old shells: 2441host_os=$* 2442IFS=$ac_save_IFS 2443case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2444 2445 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2447$as_echo_n "checking target system type... " >&6; } 2448if ${ac_cv_target+:} false; then : 2449 $as_echo_n "(cached) " >&6 2450else 2451 if test "x$target_alias" = x; then 2452 ac_cv_target=$ac_cv_host 2453else 2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2456fi 2457 2458fi 2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2460$as_echo "$ac_cv_target" >&6; } 2461case $ac_cv_target in 2462*-*-*) ;; 2463*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2464esac 2465target=$ac_cv_target 2466ac_save_IFS=$IFS; IFS='-' 2467set x $ac_cv_target 2468shift 2469target_cpu=$1 2470target_vendor=$2 2471shift; shift 2472# Remember, the first character of IFS is used to create $*, 2473# except with old shells: 2474target_os=$* 2475IFS=$ac_save_IFS 2476case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2477 2478 2479# The aliases save the names the user supplied, while $host etc. 2480# will get canonicalized. 2481test -n "$target_alias" && 2482 test "$program_prefix$program_suffix$program_transform_name" = \ 2483 NONENONEs,x,x, && 2484 program_prefix=${target_alias}- 2485 2486test "$program_prefix" != NONE && 2487 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2488# Use a double $ so make ignores it. 2489test "$program_suffix" != NONE && 2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2491# Double any \ or $. 2492# By default was `s,x,x', remove it if useless. 2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2495 2496 2497 2498# Get 'install' or 'install-sh' and its variants. 2499# Find a good install program. We prefer a C program (faster), 2500# so one script is as good as another. But avoid the broken or 2501# incompatible versions: 2502# SysV /etc/install, /usr/sbin/install 2503# SunOS /usr/etc/install 2504# IRIX /sbin/install 2505# AIX /bin/install 2506# AmigaOS /C/install, which installs bootblocks on floppy discs 2507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2508# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2510# OS/2's system install, which has a completely different semantic 2511# ./install, which can be erroneously created by make from ./install.sh. 2512# Reject install programs that cannot install multiple files. 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2514$as_echo_n "checking for a BSD-compatible install... " >&6; } 2515if test -z "$INSTALL"; then 2516if ${ac_cv_path_install+:} false; then : 2517 $as_echo_n "(cached) " >&6 2518else 2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2520for as_dir in $PATH 2521do 2522 IFS=$as_save_IFS 2523 test -z "$as_dir" && as_dir=. 2524 # Account for people who put trailing slashes in PATH elements. 2525case $as_dir/ in #(( 2526 ./ | .// | /[cC]/* | \ 2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2529 /usr/ucb/* ) ;; 2530 *) 2531 # OSF1 and SCO ODT 3.0 have their own names for install. 2532 # Don't use installbsd from OSF since it installs stuff as root 2533 # by default. 2534 for ac_prog in ginstall scoinst install; do 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2537 if test $ac_prog = install && 2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2539 # AIX install. It has an incompatible calling convention. 2540 : 2541 elif test $ac_prog = install && 2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2543 # program-specific install script used by HP pwplus--don't use. 2544 : 2545 else 2546 rm -rf conftest.one conftest.two conftest.dir 2547 echo one > conftest.one 2548 echo two > conftest.two 2549 mkdir conftest.dir 2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2551 test -s conftest.one && test -s conftest.two && 2552 test -s conftest.dir/conftest.one && 2553 test -s conftest.dir/conftest.two 2554 then 2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2556 break 3 2557 fi 2558 fi 2559 fi 2560 done 2561 done 2562 ;; 2563esac 2564 2565 done 2566IFS=$as_save_IFS 2567 2568rm -rf conftest.one conftest.two conftest.dir 2569 2570fi 2571 if test "${ac_cv_path_install+set}" = set; then 2572 INSTALL=$ac_cv_path_install 2573 else 2574 # As a last resort, use the slow shell script. Don't cache a 2575 # value for INSTALL within a source directory, because that will 2576 # break other packages using the cache if that directory is 2577 # removed, or if the value is a relative name. 2578 INSTALL=$ac_install_sh 2579 fi 2580fi 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2582$as_echo "$INSTALL" >&6; } 2583 2584# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2585# It thinks the first close brace ends the variable substitution. 2586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2587 2588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2589 2590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2591 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 2593$as_echo_n "checking whether ln works... " >&6; } 2594if ${acx_cv_prog_LN+:} false; then : 2595 $as_echo_n "(cached) " >&6 2596else 2597 rm -f conftestdata_t 2598echo >conftestdata_f 2599if ln conftestdata_f conftestdata_t 2>/dev/null 2600then 2601 acx_cv_prog_LN=ln 2602else 2603 acx_cv_prog_LN=no 2604fi 2605rm -f conftestdata_f conftestdata_t 2606 2607fi 2608if test $acx_cv_prog_LN = no; then 2609 LN="cp" 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 2611$as_echo "no, using $LN" >&6; } 2612else 2613 LN="$acx_cv_prog_LN" 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2615$as_echo "yes" >&6; } 2616fi 2617 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 2619$as_echo_n "checking whether ln -s works... " >&6; } 2620LN_S=$as_ln_s 2621if test "$LN_S" = "ln -s"; then 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2623$as_echo "yes" >&6; } 2624else 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 2626$as_echo "no, using $LN_S" >&6; } 2627fi 2628 2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 2630$as_echo_n "checking for a sed that does not truncate output... " >&6; } 2631if ${ac_cv_path_SED+:} false; then : 2632 $as_echo_n "(cached) " >&6 2633else 2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 2635 for ac_i in 1 2 3 4 5 6 7; do 2636 ac_script="$ac_script$as_nl$ac_script" 2637 done 2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 2639 { ac_script=; unset ac_script;} 2640 if test -z "$SED"; then 2641 ac_path_SED_found=false 2642 # Loop through the user's path and test for each of PROGNAME-LIST 2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 for ac_prog in sed gsed; do 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 2651 as_fn_executable_p "$ac_path_SED" || continue 2652# Check for GNU ac_path_SED and select it if it is found. 2653 # Check for GNU $ac_path_SED 2654case `"$ac_path_SED" --version 2>&1` in 2655*GNU*) 2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 2657*) 2658 ac_count=0 2659 $as_echo_n 0123456789 >"conftest.in" 2660 while : 2661 do 2662 cat "conftest.in" "conftest.in" >"conftest.tmp" 2663 mv "conftest.tmp" "conftest.in" 2664 cp "conftest.in" "conftest.nl" 2665 $as_echo '' >> "conftest.nl" 2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2668 as_fn_arith $ac_count + 1 && ac_count=$as_val 2669 if test $ac_count -gt ${ac_path_SED_max-0}; then 2670 # Best one so far, save it but keep looking for a better one 2671 ac_cv_path_SED="$ac_path_SED" 2672 ac_path_SED_max=$ac_count 2673 fi 2674 # 10*(2^10) chars as input seems more than enough 2675 test $ac_count -gt 10 && break 2676 done 2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2678esac 2679 2680 $ac_path_SED_found && break 3 2681 done 2682 done 2683 done 2684IFS=$as_save_IFS 2685 if test -z "$ac_cv_path_SED"; then 2686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 2687 fi 2688else 2689 ac_cv_path_SED=$SED 2690fi 2691 2692fi 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 2694$as_echo "$ac_cv_path_SED" >&6; } 2695 SED="$ac_cv_path_SED" 2696 rm -f conftest.sed 2697 2698for ac_prog in gawk mawk nawk awk 2699do 2700 # Extract the first word of "$ac_prog", so it can be a program name with args. 2701set dummy $ac_prog; ac_word=$2 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2703$as_echo_n "checking for $ac_word... " >&6; } 2704if ${ac_cv_prog_AWK+:} false; then : 2705 $as_echo_n "(cached) " >&6 2706else 2707 if test -n "$AWK"; then 2708 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 test -z "$as_dir" && as_dir=. 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2717 ac_cv_prog_AWK="$ac_prog" 2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722 done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727AWK=$ac_cv_prog_AWK 2728if test -n "$AWK"; then 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2730$as_echo "$AWK" >&6; } 2731else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2733$as_echo "no" >&6; } 2734fi 2735 2736 2737 test -n "$AWK" && break 2738done 2739 2740 2741srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 2742 2743# We pass INSTALL explicitly to sub-makes. Make sure that it is not 2744# a relative path. 2745if test "$INSTALL" = "${srcdir}/install-sh -c"; then 2746 INSTALL="${srcpwd}/install-sh -c" 2747fi 2748 2749# Set srcdir to "." if that's what it is. 2750# This is important for multilib support. 2751pwd=`${PWDCMD-pwd}` 2752if test "${pwd}" = "${srcpwd}" ; then 2753 srcdir=. 2754fi 2755 2756topsrcdir=$srcpwd 2757 2758extra_host_args= 2759 2760### To add a new directory to the tree, first choose whether it is a target 2761### or a host dependent tool. Then put it into the appropriate list 2762### (library or tools, host or target), doing a dependency sort. 2763 2764# Subdirs will be configured in the order listed in build_configdirs, 2765# configdirs, or target_configdirs; see the serialization section below. 2766 2767# Dependency sorting is only needed when *configuration* must be done in 2768# a particular order. In all cases a dependency should be specified in 2769# the Makefile, whether or not it's implicitly specified here. 2770 2771# Double entries in build_configdirs, configdirs, or target_configdirs may 2772# cause circular dependencies and break everything horribly. 2773 2774# these library is used by various programs built for the build 2775# environment 2776# 2777build_libs="build-libiberty build-libcpp" 2778 2779# these tools are built for the build environment 2780build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" 2781 2782# these libraries are used by various programs built for the host environment 2783#f 2784host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" 2785 2786# these tools are built for the host environment 2787# Note, the powerpc-eabi build depends on sim occurring before gdb in order to 2788# know that we are building the simulator. 2789# binutils, gas and ld appear in that order because it makes sense to run 2790# "make check" in that particular order. 2791# If --enable-gold is used, "gold" may replace "ld". 2792host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" 2793 2794# these libraries are built for the target environment, and are built after 2795# the host libraries and the host tools (which may be a cross compiler) 2796# Note that libiberty is not a target library. 2797target_libraries="target-libgcc \ 2798 target-libbacktrace \ 2799 target-libgloss \ 2800 target-newlib \ 2801 target-libgomp \ 2802 target-liboffloadmic \ 2803 target-libhsail-rt \ 2804 target-libatomic \ 2805 target-libitm \ 2806 target-libstdc++-v3 \ 2807 target-libsanitizer \ 2808 target-libvtv \ 2809 target-libssp \ 2810 target-libquadmath \ 2811 target-libgfortran \ 2812 target-libffi \ 2813 target-libobjc \ 2814 target-libada \ 2815 target-libgo \ 2816 target-libphobos \ 2817 target-zlib" 2818 2819# these tools are built using the target libraries, and are intended to 2820# run only in the target environment 2821# 2822# note: any program that *uses* libraries that are in the "target_libraries" 2823# list belongs in this list. 2824# 2825target_tools="target-rda" 2826 2827################################################################################ 2828 2829## All tools belong in one of the four categories, and are assigned above 2830## We assign ${configdirs} this way to remove all embedded newlines. This 2831## is important because configure will choke if they ever get through. 2832## ${configdirs} is directories we build using the host tools. 2833## ${target_configdirs} is directories we build using the target tools. 2834configdirs=`echo ${host_libs} ${host_tools}` 2835target_configdirs=`echo ${target_libraries} ${target_tools}` 2836build_configdirs=`echo ${build_libs} ${build_tools}` 2837 2838 2839 2840################################################################################ 2841 2842srcname="gnu development package" 2843 2844# This gets set non-empty for some net releases of packages. 2845appdirs="" 2846 2847# Define is_cross_compiler to save on calls to 'test'. 2848is_cross_compiler= 2849if test x"${host}" = x"${target}" ; then 2850 is_cross_compiler=no 2851else 2852 is_cross_compiler=yes 2853fi 2854 2855# Find the build and target subdir names. 2856 2857# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2858# have matching libraries, they should use host libraries: Makefile.tpl 2859# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2860# However, they still use the build modules, because the corresponding 2861# host modules (e.g. bison) are only built for the host when bootstrap 2862# finishes. So: 2863# - build_subdir is where we find build modules, and never changes. 2864# - build_libsubdir is where we find build libraries, and can be overridden. 2865 2866# Prefix 'build-' so this never conflicts with target_subdir. 2867build_subdir="build-${build_noncanonical}" 2868 2869# Check whether --with-build-libsubdir was given. 2870if test "${with_build_libsubdir+set}" = set; then : 2871 withval=$with_build_libsubdir; build_libsubdir="$withval" 2872else 2873 build_libsubdir="$build_subdir" 2874fi 2875 2876# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2877if ( test $srcdir = . && test -d gcc ) \ 2878 || test -d $srcdir/../host-${host_noncanonical}; then 2879 host_subdir="host-${host_noncanonical}" 2880else 2881 host_subdir=. 2882fi 2883# No prefix. 2884target_subdir=${target_noncanonical} 2885 2886# Be sure to cover against remnants of an in-tree build. 2887if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then 2888 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. 2889Use a pristine source tree when building in a separate tree" "$LINENO" 5 2890fi 2891 2892# Skipdirs are removed silently. 2893skipdirs= 2894# Noconfigdirs are removed loudly. 2895noconfigdirs="" 2896 2897use_gnu_ld= 2898# Make sure we don't let GNU ld be added if we didn't want it. 2899if test x$with_gnu_ld = xno ; then 2900 use_gnu_ld=no 2901 noconfigdirs="$noconfigdirs ld gold" 2902fi 2903 2904use_gnu_as= 2905# Make sure we don't let GNU as be added if we didn't want it. 2906if test x$with_gnu_as = xno ; then 2907 use_gnu_as=no 2908 noconfigdirs="$noconfigdirs gas" 2909fi 2910 2911use_included_zlib= 2912 2913# Check whether --with-system-zlib was given. 2914if test "${with_system_zlib+set}" = set; then : 2915 withval=$with_system_zlib; 2916fi 2917 2918# Make sure we don't let ZLIB be added if we didn't want it. 2919if test x$with_system_zlib = xyes ; then 2920 use_included_zlib=no 2921 noconfigdirs="$noconfigdirs zlib" 2922fi 2923 2924# some tools are so dependent upon X11 that if we're not building with X, 2925# it's not even worth trying to configure, much less build, that tool. 2926 2927case ${with_x} in 2928 yes | "") ;; # the default value for this tree is that X11 is available 2929 no) 2930 skipdirs="${skipdirs} tk itcl libgui" 2931 # We won't be able to build gdbtk without X. 2932 enable_gdbtk=no 2933 ;; 2934 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 2935esac 2936 2937# Some are only suitable for cross toolchains. 2938# Remove these if host=target. 2939cross_only="target-libgloss target-newlib target-opcodes" 2940 2941case $is_cross_compiler in 2942 no) skipdirs="${skipdirs} ${cross_only}" ;; 2943esac 2944 2945# If both --with-headers and --with-libs are specified, default to 2946# --without-newlib. 2947if test x"${with_headers}" != x && test x"${with_headers}" != xno \ 2948 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 2949 if test x"${with_newlib}" = x ; then 2950 with_newlib=no 2951 fi 2952fi 2953 2954# Recognize --with-newlib/--without-newlib. 2955case ${with_newlib} in 2956 no) skipdirs="${skipdirs} target-newlib" ;; 2957 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 2958esac 2959 2960# Check whether --enable-as-accelerator-for was given. 2961if test "${enable_as_accelerator_for+set}" = set; then : 2962 enableval=$enable_as_accelerator_for; 2963fi 2964 2965 2966# Check whether --enable-offload-targets was given. 2967if test "${enable_offload_targets+set}" = set; then : 2968 enableval=$enable_offload_targets; 2969 if test x"$enable_offload_targets" = x; then 2970 as_fn_error $? "no offload targets specified" "$LINENO" 5 2971 fi 2972 2973else 2974 enable_offload_targets= 2975fi 2976 2977 2978# Handle --enable-gold, --enable-ld. 2979# --disable-gold [--enable-ld] 2980# Build only ld. Default option. 2981# --enable-gold [--enable-ld] 2982# Build both gold and ld. Install gold as "ld.gold", install ld 2983# as "ld.bfd" and "ld". 2984# --enable-gold=default [--enable-ld] 2985# Build both gold and ld. Install gold as "ld.gold" and "ld", 2986# install ld as "ld.bfd". 2987# --enable-gold[=default] --disable-ld 2988# Build only gold, which is then installed as both "ld.gold" and "ld". 2989# --enable-gold --enable-ld=default 2990# Build both gold (installed as "ld.gold") and ld (installed as "ld" 2991# and ld.bfd). 2992# In other words, ld is default 2993# --enable-gold=default --enable-ld=default 2994# Error. 2995 2996default_ld= 2997# Check whether --enable-gold was given. 2998if test "${enable_gold+set}" = set; then : 2999 enableval=$enable_gold; ENABLE_GOLD=$enableval 3000else 3001 ENABLE_GOLD=no 3002fi 3003 3004case "${ENABLE_GOLD}" in 3005 yes|default) 3006 # Check for ELF target. 3007 is_elf=no 3008 case "${target}" in 3009 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ 3010 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ 3011 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ 3012 | *-*-solaris2* | *-*-nto* | *-*-nacl*) 3013 case "${target}" in 3014 *-*-linux*aout* | *-*-linux*oldld*) 3015 ;; 3016 *) 3017 is_elf=yes 3018 ;; 3019 esac 3020 esac 3021 3022 if test "$is_elf" = "yes"; then 3023 # Check for target supported by gold. 3024 case "${target}" in 3025 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ 3026 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) 3027 configdirs="$configdirs gold" 3028 if test x${ENABLE_GOLD} = xdefault; then 3029 default_ld=gold 3030 fi 3031 ENABLE_GOLD=yes 3032 ;; 3033 esac 3034 fi 3035 ;; 3036 no) 3037 ;; 3038 *) 3039 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 3040 ;; 3041esac 3042 3043# Check whether --enable-ld was given. 3044if test "${enable_ld+set}" = set; then : 3045 enableval=$enable_ld; ENABLE_LD=$enableval 3046else 3047 ENABLE_LD=yes 3048fi 3049 3050 3051case "${ENABLE_LD}" in 3052 default) 3053 if test x${default_ld} != x; then 3054 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 3055 fi 3056 ;; 3057 yes) 3058 ;; 3059 no) 3060 if test x${ENABLE_GOLD} != xyes; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 3062$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} 3063 fi 3064 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` 3065 ;; 3066 *) 3067 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 3068 ;; 3069esac 3070 3071# PR gas/19109 3072# Decide the default method for compressing debug sections. 3073# Provide a configure time option to override our default. 3074# Check whether --enable-compressed_debug_sections was given. 3075if test "${enable_compressed_debug_sections+set}" = set; then : 3076 enableval=$enable_compressed_debug_sections; 3077 if test x"$enable_compressed_debug_sections" = xyes; then 3078 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 3079 fi 3080 3081else 3082 enable_compressed_debug_sections= 3083fi 3084 3085 3086# Configure extra directories which are host specific 3087 3088case "${host}" in 3089 *-cygwin*) 3090 configdirs="$configdirs libtermcap" ;; 3091esac 3092 3093# A target can indicate whether a language isn't supported for some reason. 3094# Only spaces may be used in this macro; not newlines or tabs. 3095unsupported_languages= 3096 3097# Remove more programs from consideration, based on the host or 3098# target this usually means that a port of the program doesn't 3099# exist yet. 3100 3101case "${host}" in 3102 i[3456789]86-*-msdosdjgpp*) 3103 noconfigdirs="$noconfigdirs tcl tk itcl" 3104 ;; 3105esac 3106 3107 3108# Check whether --enable-libquadmath was given. 3109if test "${enable_libquadmath+set}" = set; then : 3110 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval 3111else 3112 ENABLE_LIBQUADMATH=yes 3113fi 3114 3115if test "${ENABLE_LIBQUADMATH}" = "no" ; then 3116 noconfigdirs="$noconfigdirs target-libquadmath" 3117fi 3118 3119 3120# Check whether --enable-libquadmath-support was given. 3121if test "${enable_libquadmath_support+set}" = set; then : 3122 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 3123else 3124 ENABLE_LIBQUADMATH_SUPPORT=yes 3125fi 3126 3127enable_libquadmath_support= 3128if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then 3129 enable_libquadmath_support=no 3130fi 3131 3132 3133# Check whether --enable-libada was given. 3134if test "${enable_libada+set}" = set; then : 3135 enableval=$enable_libada; ENABLE_LIBADA=$enableval 3136else 3137 ENABLE_LIBADA=yes 3138fi 3139 3140if test "${ENABLE_LIBADA}" != "yes" ; then 3141 noconfigdirs="$noconfigdirs gnattools" 3142fi 3143 3144# Check whether --enable-libssp was given. 3145if test "${enable_libssp+set}" = set; then : 3146 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval 3147else 3148 ENABLE_LIBSSP=yes 3149fi 3150 3151 3152# Check whether --enable-libstdcxx was given. 3153if test "${enable_libstdcxx+set}" = set; then : 3154 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval 3155else 3156 ENABLE_LIBSTDCXX=default 3157fi 3158 3159if test "${ENABLE_LIBSTDCXX}" = "no" ; then 3160 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3161fi 3162 3163# If this is accelerator compiler and its target is intelmic we enable 3164# target liboffloadmic by default. If this is compiler with offloading 3165# for intelmic we enable host liboffloadmic by default. Otherwise 3166# liboffloadmic is disabled by default. 3167# Check whether --enable-liboffloadmic was given. 3168if test "${enable_liboffloadmic+set}" = set; then : 3169 enableval=$enable_liboffloadmic; case "$enableval" in 3170 no | host | target) 3171 enable_liboffloadmic=$enableval ;; 3172 *) 3173 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; 3174esac 3175else 3176 if test x"$enable_as_accelerator_for" != x; then 3177 case "${target}" in 3178 *-intelmic-* | *-intelmicemul-*) 3179 enable_liboffloadmic=target 3180 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" 3181 ;; 3182 *) 3183 enable_liboffloadmic=no 3184 ;; 3185 esac 3186else 3187 case "${enable_offload_targets}" in 3188 *-intelmic-* | *-intelmicemul-*) 3189 enable_liboffloadmic=host 3190 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" 3191 ;; 3192 *) 3193 enable_liboffloadmic=no 3194 ;; 3195 esac 3196fi 3197fi 3198 3199 3200 3201# Enable libgomp by default on hosted POSIX systems, and a few others. 3202if test x$enable_libgomp = x ; then 3203 case "${target}" in 3204 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 3205 ;; 3206 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) 3207 ;; 3208 *-*-solaris2* | *-*-hpux11*) 3209 ;; 3210 *-*-darwin* | *-*-aix*) 3211 ;; 3212 nvptx*-*-*) 3213 ;; 3214 *) 3215 noconfigdirs="$noconfigdirs target-libgomp" 3216 ;; 3217 esac 3218fi 3219 3220# Disable libatomic on unsupported systems. 3221if test -d ${srcdir}/libatomic; then 3222 if test x$enable_libatomic = x; then 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 3224$as_echo_n "checking for libatomic support... " >&6; } 3225 if (srcdir=${srcdir}/libatomic; \ 3226 . ${srcdir}/configure.tgt; \ 3227 test -n "$UNSUPPORTED") 3228 then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3230$as_echo "no" >&6; } 3231 noconfigdirs="$noconfigdirs target-libatomic" 3232 else 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3234$as_echo "yes" >&6; } 3235 fi 3236 fi 3237fi 3238 3239# Disable liboffloadmic on unsupported systems. 3240if test -d ${srcdir}/liboffloadmic; then 3241 if test x$enable_liboffloadmic != xno; then 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 3243$as_echo_n "checking for liboffloadmic support... " >&6; } 3244 if (srcdir=${srcdir}/liboffloadmic; \ 3245 . ${srcdir}/configure.tgt; \ 3246 test -n "$UNSUPPORTED") 3247 then 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3249$as_echo "no" >&6; } 3250 noconfigdirs="$noconfigdirs target-liboffloadmic" 3251 else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3253$as_echo "yes" >&6; } 3254 fi 3255 fi 3256fi 3257 3258# Disable libitm on unsupported systems. 3259if test -d ${srcdir}/libitm; then 3260 if test x$enable_libitm = x; then 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 3262$as_echo_n "checking for libitm support... " >&6; } 3263 if (srcdir=${srcdir}/libitm; \ 3264 . ${srcdir}/configure.tgt; \ 3265 test -n "$UNSUPPORTED") 3266 then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269 noconfigdirs="$noconfigdirs target-libitm" 3270 else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3272$as_echo "yes" >&6; } 3273 fi 3274 fi 3275fi 3276 3277# Disable libsanitizer on unsupported systems. 3278if test -d ${srcdir}/libsanitizer; then 3279 if test x$enable_libsanitizer = x; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 3281$as_echo_n "checking for libsanitizer support... " >&6; } 3282 if (srcdir=${srcdir}/libsanitizer; \ 3283 . ${srcdir}/configure.tgt; \ 3284 test -n "$UNSUPPORTED") 3285 then 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288 noconfigdirs="$noconfigdirs target-libsanitizer" 3289 else 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3291$as_echo "yes" >&6; } 3292 fi 3293 fi 3294fi 3295 3296# Disable libvtv on unsupported systems. 3297if test -d ${srcdir}/libvtv; then 3298 if test x$enable_libvtv = x; then 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 3300$as_echo_n "checking for libvtv support... " >&6; } 3301 if (srcdir=${srcdir}/libvtv; \ 3302 . ${srcdir}/configure.tgt; \ 3303 test "$VTV_SUPPORTED" != "yes") 3304 then 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306$as_echo "no" >&6; } 3307 noconfigdirs="$noconfigdirs target-libvtv" 3308 else 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3310$as_echo "yes" >&6; } 3311 fi 3312 fi 3313fi 3314 3315 3316# Disable libhsail-rt on unsupported systems. 3317if test -d ${srcdir}/libhsail-rt; then 3318 if test x$enable_libhsail_rt = x; then 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 3320$as_echo_n "checking for libhsail-rt support... " >&6; } 3321 if (srcdir=${srcdir}/libhsail-rt; \ 3322 . ${srcdir}/configure.tgt; \ 3323 test -n "$UNSUPPORTED") 3324 then 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3326$as_echo "no" >&6; } 3327 unsupported_languages="$unsupported_languages brig" 3328 # This implicitly disables also target-libhsail-rt as it won't 3329 # get added to the build without BRIG FE. 3330 else 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3332$as_echo "yes" >&6; } 3333 fi 3334 fi 3335fi 3336 3337 3338# Disable libquadmath for some systems. 3339case "${target}" in 3340 avr-*-*) 3341 noconfigdirs="$noconfigdirs target-libquadmath" 3342 ;; 3343 # libquadmath is unused on AIX and libquadmath build process use of 3344 # LD_LIBRARY_PATH can break AIX bootstrap. 3345 powerpc-*-aix* | rs6000-*-aix*) 3346 noconfigdirs="$noconfigdirs target-libquadmath" 3347 ;; 3348esac 3349 3350# Disable libssp for some systems. 3351case "${target}" in 3352 avr-*-*) 3353 # No hosted I/O support. 3354 noconfigdirs="$noconfigdirs target-libssp" 3355 ;; 3356 powerpc-*-aix* | rs6000-*-aix*) 3357 noconfigdirs="$noconfigdirs target-libssp" 3358 ;; 3359 rl78-*-*) 3360 # libssp uses a misaligned load to trigger a fault, but the RL78 3361 # doesn't fault for those - instead, it gives a build-time error 3362 # for explicit misaligned loads. 3363 noconfigdirs="$noconfigdirs target-libssp" 3364 ;; 3365 visium-*-*) 3366 # No hosted I/O support. 3367 noconfigdirs="$noconfigdirs target-libssp" 3368 ;; 3369esac 3370 3371# Disable libstdc++-v3 for some systems. 3372# Allow user to override this if they pass --enable-libstdc++-v3 3373if test "${ENABLE_LIBSTDCXX}" = "default" ; then 3374 case "${target}" in 3375 *-*-vxworks*) 3376 # VxWorks uses the Dinkumware C++ library. 3377 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3378 ;; 3379 arm*-wince-pe*) 3380 # the C++ libraries don't build on top of CE's C libraries 3381 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3382 ;; 3383 avr-*-*) 3384 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3385 ;; 3386 ft32-*-*) 3387 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3388 ;; 3389 esac 3390fi 3391 3392# Disable D on systems where it is known to not work. 3393# For testing, you can override this with --enable-languages=d. 3394case ,${enable_languages}, in 3395 *,d,*) 3396 ;; 3397 *) 3398 case "${target}" in 3399 *-*-darwin*) 3400 unsupported_languages="$unsupported_languages d" 3401 ;; 3402 esac 3403 ;; 3404esac 3405 3406# Disable libphobos on unsupported systems. 3407# For testing, you can override this with --enable-libphobos. 3408if test -d ${srcdir}/libphobos; then 3409 if test x$enable_libphobos = x; then 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 3411$as_echo_n "checking for libphobos support... " >&6; } 3412 if (srcdir=${srcdir}/libphobos; \ 3413 . ${srcdir}/configure.tgt; \ 3414 test "$LIBPHOBOS_SUPPORTED" != "yes") 3415 then 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3417$as_echo "no" >&6; } 3418 noconfigdirs="$noconfigdirs target-libphobos" 3419 else 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3421$as_echo "yes" >&6; } 3422 fi 3423 fi 3424fi 3425 3426# Disable Fortran for some systems. 3427case "${target}" in 3428 mmix-*-*) 3429 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. 3430 unsupported_languages="$unsupported_languages fortran" 3431 ;; 3432esac 3433 3434# Disable libffi for some systems. 3435case "${target}" in 3436 powerpc-*-darwin*) 3437 ;; 3438 i[3456789]86-*-darwin*) 3439 ;; 3440 x86_64-*-darwin[912]*) 3441 ;; 3442 *-*-darwin*) 3443 noconfigdirs="$noconfigdirs target-libffi" 3444 ;; 3445 *-*-netware*) 3446 noconfigdirs="$noconfigdirs target-libffi" 3447 ;; 3448 *-*-phoenix*) 3449 noconfigdirs="$noconfigdirs target-libffi" 3450 ;; 3451 *-*-rtems*) 3452 noconfigdirs="$noconfigdirs target-libffi" 3453 ;; 3454 *-*-tpf*) 3455 noconfigdirs="$noconfigdirs target-libffi" 3456 ;; 3457 *-*-uclinux*) 3458 noconfigdirs="$noconfigdirs target-libffi" 3459 ;; 3460 *-*-vxworks*) 3461 noconfigdirs="$noconfigdirs target-libffi" 3462 ;; 3463 aarch64*-*-freebsd*) 3464 noconfigdirs="$noconfigdirs target-libffi" 3465 ;; 3466 alpha*-*-*vms*) 3467 noconfigdirs="$noconfigdirs target-libffi" 3468 ;; 3469 arm*-*-freebsd*) 3470 noconfigdirs="$noconfigdirs target-libffi" 3471 ;; 3472 arm-wince-pe) 3473 noconfigdirs="$noconfigdirs target-libffi" 3474 ;; 3475 arm*-*-symbianelf*) 3476 noconfigdirs="$noconfigdirs target-libffi" 3477 ;; 3478 cris-*-* | crisv32-*-*) 3479 case "${target}" in 3480 *-*-linux*) 3481 ;; 3482 *) # See PR46792 regarding target-libffi. 3483 noconfigdirs="$noconfigdirs target-libffi";; 3484 esac 3485 ;; 3486 hppa*64*-*-hpux*) 3487 noconfigdirs="$noconfigdirs target-libffi" 3488 ;; 3489 hppa*-hp-hpux11*) 3490 ;; 3491 hppa*-*-hpux*) 3492 noconfigdirs="$noconfigdirs target-libffi" 3493 ;; 3494 ia64*-*-*vms*) 3495 noconfigdirs="$noconfigdirs target-libffi" 3496 ;; 3497 i[3456789]86-w64-mingw*) 3498 noconfigdirs="$noconfigdirs target-libffi" 3499 ;; 3500 i[3456789]86-*-mingw*) 3501 noconfigdirs="$noconfigdirs target-libffi" 3502 ;; 3503 x86_64-*-mingw*) 3504 noconfigdirs="$noconfigdirs target-libffi" 3505 ;; 3506 mmix-*-*) 3507 noconfigdirs="$noconfigdirs target-libffi" 3508 ;; 3509 powerpc-*-aix*) 3510 ;; 3511 rs6000-*-aix*) 3512 ;; 3513 ft32-*-*) 3514 noconfigdirs="$noconfigdirs target-libffi" 3515 ;; 3516 *-*-lynxos*) 3517 noconfigdirs="$noconfigdirs target-libffi" 3518 ;; 3519esac 3520 3521# Disable the go frontend on systems where it is known to not work. Please keep 3522# this in sync with contrib/config-list.mk. 3523case "${target}" in 3524*-*-darwin* | *-*-cygwin* | *-*-mingw*) 3525 unsupported_languages="$unsupported_languages go" 3526 ;; 3527esac 3528 3529# Disable libgo for some systems where it is known to not work. 3530# For testing, you can easily override this with --enable-libgo. 3531if test x$enable_libgo = x; then 3532 case "${target}" in 3533 *-*-darwin*) 3534 # PR 46986 3535 noconfigdirs="$noconfigdirs target-libgo" 3536 ;; 3537 *-*-cygwin* | *-*-mingw*) 3538 noconfigdirs="$noconfigdirs target-libgo" 3539 ;; 3540 esac 3541fi 3542 3543# Default libgloss CPU subdirectory. 3544libgloss_dir="$target_cpu" 3545 3546case "${target}" in 3547 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 3548 libgloss_dir=wince 3549 ;; 3550 aarch64*-*-* ) 3551 libgloss_dir=aarch64 3552 ;; 3553 arm*-*-*) 3554 libgloss_dir=arm 3555 ;; 3556 cris-*-* | crisv32-*-*) 3557 libgloss_dir=cris 3558 ;; 3559 hppa*-*-*) 3560 libgloss_dir=pa 3561 ;; 3562 i[3456789]86-*-*) 3563 libgloss_dir=i386 3564 ;; 3565 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) 3566 libgloss_dir=m68hc11 3567 ;; 3568 m68*-*-* | fido-*-*) 3569 libgloss_dir=m68k 3570 ;; 3571 mips*-*-*) 3572 libgloss_dir=mips 3573 ;; 3574 powerpc*-*-*) 3575 libgloss_dir=rs6000 3576 ;; 3577 sparc*-*-*) 3578 libgloss_dir=sparc 3579 ;; 3580esac 3581 3582# Disable newlib and libgloss for various target OSes. 3583case "${target}" in 3584 alpha*-dec-osf*) 3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3586 ;; 3587 i[3456789]86-*-linux*) 3588 # This section makes it possible to build newlib natively on linux. 3589 # If we are using a cross compiler then don't configure newlib. 3590 if test x${is_cross_compiler} != xno ; then 3591 noconfigdirs="$noconfigdirs target-newlib" 3592 fi 3593 noconfigdirs="$noconfigdirs target-libgloss" 3594 # If we are not using a cross compiler, do configure newlib. 3595 # Note however, that newlib will only be configured in this situation 3596 # if the --with-newlib option has been given, because otherwise 3597 # 'target-newlib' will appear in skipdirs. 3598 ;; 3599 i[3456789]86-*-rdos*) 3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3601 ;; 3602 sh*-*-pe|mips*-*-pe|arm-wince-pe) 3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3604 ;; 3605 sparc-*-sunos4*) 3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3607 ;; 3608 *-*-aix*) 3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3610 ;; 3611 *-*-beos*) 3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3613 ;; 3614 *-*-chorusos) 3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3616 ;; 3617 *-*-dragonfly*) 3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3619 ;; 3620 *-*-freebsd*) 3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3622 ;; 3623 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3625 ;; 3626 *-*-lynxos*) 3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3628 ;; 3629 *-*-mingw*) 3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3631 ;; 3632 *-*-netbsd*) 3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3634 ;; 3635 *-*-netware*) 3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3637 ;; 3638 *-*-tpf*) 3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3640 ;; 3641 *-*-uclinux*) 3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3643 ;; 3644 *-*-vxworks*) 3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3646 ;; 3647esac 3648 3649case "${target}" in 3650 *-*-chorusos) 3651 ;; 3652 aarch64-*-darwin*) 3653 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3654 noconfigdirs="$noconfigdirs sim target-rda" 3655 ;; 3656 amdgcn*-*-*) 3657 ;; 3658 arm-*-darwin*) 3659 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3660 noconfigdirs="$noconfigdirs sim target-rda" 3661 ;; 3662 powerpc-*-darwin*) 3663 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3664 noconfigdirs="$noconfigdirs sim target-rda" 3665 ;; 3666 i[3456789]86-*-darwin*) 3667 noconfigdirs="$noconfigdirs ld gprof" 3668 noconfigdirs="$noconfigdirs sim target-rda" 3669 ;; 3670 x86_64-*-darwin[912]*) 3671 noconfigdirs="$noconfigdirs ld gas gprof" 3672 noconfigdirs="$noconfigdirs sim target-rda" 3673 ;; 3674 *-*-darwin*) 3675 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3676 noconfigdirs="$noconfigdirs sim target-rda" 3677 ;; 3678 *-*-dragonfly*) 3679 ;; 3680 *-*-freebsd*) 3681 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ 3682 && test -f /usr/local/include/gmp.h; then 3683 with_gmp=/usr/local 3684 fi 3685 ;; 3686 *-*-kaos*) 3687 # Remove unsupported stuff on all kaOS configurations. 3688 noconfigdirs="$noconfigdirs target-libgloss" 3689 ;; 3690 *-*-netbsd*) 3691 ;; 3692 *-*-netware*) 3693 ;; 3694 *-*-phoenix*) 3695 noconfigdirs="$noconfigdirs target-libgloss" 3696 ;; 3697 *-*-rtems*) 3698 noconfigdirs="$noconfigdirs target-libgloss" 3699 ;; 3700 # The tpf target doesn't support gdb yet. 3701 *-*-tpf*) 3702 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" 3703 ;; 3704 *-*-uclinux*) 3705 noconfigdirs="$noconfigdirs target-rda" 3706 ;; 3707 *-*-vxworks*) 3708 ;; 3709 alpha*-dec-osf*) 3710 # ld works, but does not support shared libraries. 3711 # gas doesn't generate exception information. 3712 noconfigdirs="$noconfigdirs gas ld" 3713 ;; 3714 alpha*-*-*vms*) 3715 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 3716 ;; 3717 alpha*-*-*) 3718 # newlib is not 64 bit ready 3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3720 ;; 3721 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 3722 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" 3723 ;; 3724 arc*-*-*) 3725 noconfigdirs="$noconfigdirs sim" 3726 ;; 3727 arm-*-pe*) 3728 noconfigdirs="$noconfigdirs target-libgloss" 3729 ;; 3730 arm-*-riscix*) 3731 noconfigdirs="$noconfigdirs ld target-libgloss" 3732 ;; 3733 avr-*-*) 3734 if test x${with_avrlibc} != xno; then 3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3736 fi 3737 ;; 3738 c4x-*-* | tic4x-*-*) 3739 noconfigdirs="$noconfigdirs target-libgloss" 3740 ;; 3741 tic54x-*-*) 3742 noconfigdirs="$noconfigdirs target-libgloss gdb" 3743 ;; 3744 d10v-*-*) 3745 noconfigdirs="$noconfigdirs target-libgloss" 3746 ;; 3747 d30v-*-*) 3748 noconfigdirs="$noconfigdirs gdb" 3749 ;; 3750 fr30-*-elf*) 3751 noconfigdirs="$noconfigdirs gdb" 3752 ;; 3753 ft32-*-*) 3754 noconfigdirs="$noconfigdirs target-rda gprof" 3755 ;; 3756 moxie-*-*) 3757 noconfigdirs="$noconfigdirs" 3758 ;; 3759 h8300*-*-*) 3760 noconfigdirs="$noconfigdirs target-libgloss" 3761 ;; 3762 h8500-*-*) 3763 noconfigdirs="$noconfigdirs target-libgloss" 3764 ;; 3765 hppa1.1-*-osf* | hppa1.1-*-bsd* ) 3766 ;; 3767 hppa*64*-*-hpux*) 3768 noconfigdirs="$noconfigdirs gdb" 3769 ;; 3770 hppa*-*-hpux11*) 3771 noconfigdirs="$noconfigdirs gdb ld" 3772 ;; 3773 hppa*64*-*-linux*) 3774 ;; 3775 hppa*-*-linux*) 3776 ;; 3777 hppa*-*-*elf* | \ 3778 hppa*-*-lites* | \ 3779 hppa*-*-openbsd* | \ 3780 hppa*64*-*-*) 3781 ;; 3782 hppa*-*-pro*) 3783 ;; 3784 hppa*-*-*) 3785 noconfigdirs="$noconfigdirs ld" 3786 ;; 3787 i960-*-*) 3788 noconfigdirs="$noconfigdirs gdb" 3789 ;; 3790 ia64*-*-elf*) 3791 # No gdb support yet. 3792 noconfigdirs="$noconfigdirs readline libgui itcl gdb" 3793 ;; 3794 ia64*-**-hpux*) 3795 # No ld support yet. 3796 noconfigdirs="$noconfigdirs gdb libgui itcl ld" 3797 ;; 3798 ia64*-*-*vms*) 3799 # No ld support yet. 3800 noconfigdirs="$noconfigdirs libgui itcl ld" 3801 ;; 3802 i[3456789]86-w64-mingw*) 3803 ;; 3804 i[3456789]86-*-mingw*) 3805 target_configdirs="$target_configdirs target-winsup" 3806 ;; 3807 *-*-cygwin*) 3808 target_configdirs="$target_configdirs target-libtermcap target-winsup" 3809 noconfigdirs="$noconfigdirs target-libgloss" 3810 # always build newlib if winsup directory is present. 3811 if test -d "$srcdir/winsup/cygwin"; then 3812 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 3813 elif test -d "$srcdir/newlib"; then 3814 echo "Warning: winsup/cygwin is missing so newlib can't be built." 3815 fi 3816 ;; 3817 i[3456789]86-*-pe) 3818 noconfigdirs="$noconfigdirs target-libgloss" 3819 ;; 3820 i[3456789]86-*-sco3.2v5*) 3821 # The linker does not yet know about weak symbols in COFF, 3822 # and is not configured to handle mixed ELF and COFF. 3823 noconfigdirs="$noconfigdirs ld target-libgloss" 3824 ;; 3825 i[3456789]86-*-sco*) 3826 noconfigdirs="$noconfigdirs gprof target-libgloss" 3827 ;; 3828 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) 3829 noconfigdirs="$noconfigdirs target-libgloss" 3830 ;; 3831 i[3456789]86-*-sysv4*) 3832 noconfigdirs="$noconfigdirs target-libgloss" 3833 ;; 3834 i[3456789]86-*-beos*) 3835 noconfigdirs="$noconfigdirs gdb" 3836 ;; 3837 i[3456789]86-*-rdos*) 3838 noconfigdirs="$noconfigdirs gdb" 3839 ;; 3840 mmix-*-*) 3841 noconfigdirs="$noconfigdirs gdb" 3842 ;; 3843 mt-*-*) 3844 noconfigdirs="$noconfigdirs sim" 3845 ;; 3846 nfp-*-*) 3847 noconfigdirs="$noconfigdirs ld gas gdb gprof sim" 3848 noconfigdirs="$noconfigdirs $target_libraries" 3849 ;; 3850 powerpc-*-aix*) 3851 # copied from rs6000-*-* entry 3852 noconfigdirs="$noconfigdirs gprof" 3853 ;; 3854 powerpc*-*-winnt* | powerpc*-*-pe*) 3855 target_configdirs="$target_configdirs target-winsup" 3856 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" 3857 # always build newlib. 3858 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 3859 ;; 3860 # This is temporary until we can link against shared libraries 3861 powerpcle-*-solaris*) 3862 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" 3863 ;; 3864 powerpc-*-beos*) 3865 noconfigdirs="$noconfigdirs gdb" 3866 ;; 3867 rs6000-*-lynxos*) 3868 noconfigdirs="$noconfigdirs gprof" 3869 ;; 3870 rs6000-*-aix*) 3871 noconfigdirs="$noconfigdirs gprof" 3872 ;; 3873 rs6000-*-*) 3874 noconfigdirs="$noconfigdirs gprof" 3875 ;; 3876 m68k-apollo-*) 3877 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" 3878 ;; 3879 microblaze*) 3880 noconfigdirs="$noconfigdirs gprof" 3881 ;; 3882 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 3883 if test x$with_newlib = xyes; then 3884 noconfigdirs="$noconfigdirs gprof" 3885 fi 3886 ;; 3887 mips*-*-irix5*) 3888 noconfigdirs="$noconfigdirs gprof target-libgloss" 3889 ;; 3890 mips*-*-irix6*) 3891 noconfigdirs="$noconfigdirs gprof target-libgloss" 3892 ;; 3893 mips*-*-bsd*) 3894 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" 3895 ;; 3896 mips*-*-linux*) 3897 ;; 3898 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ 3899 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) 3900 noconfigdirs="$noconfigdirs ld gas gprof" 3901 ;; 3902 mips*-*-*) 3903 noconfigdirs="$noconfigdirs gprof" 3904 ;; 3905 nvptx*-*-*) 3906 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" 3907 ;; 3908 sh-*-*) 3909 case "${target}" in 3910 sh*-*-elf) 3911 ;; 3912 *) 3913 noconfigdirs="$noconfigdirs target-libgloss" ;; 3914 esac 3915 ;; 3916 sparc-*-sunos4*) 3917 if test x${is_cross_compiler} = xno ; then 3918 use_gnu_ld=no 3919 fi 3920 ;; 3921 tic6x-*-*) 3922 noconfigdirs="$noconfigdirs sim" 3923 ;; 3924 tilepro*-*-* | tilegx*-*-*) 3925 noconfigdirs="$noconfigdirs sim" 3926 ;; 3927 v810-*-*) 3928 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" 3929 ;; 3930 vax-*-*) 3931 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3932 ;; 3933 wasm32-*-*) 3934 noconfigdirs="$noconfigdirs ld" 3935 ;; 3936esac 3937 3938# If we aren't building newlib, then don't build libgloss, since libgloss 3939# depends upon some newlib header files. 3940case "${noconfigdirs}" in 3941 *target-libgloss*) ;; 3942 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; 3943esac 3944 3945# Work in distributions that contain no compiler tools, like Autoconf. 3946host_makefile_frag=/dev/null 3947if test -d ${srcdir}/config ; then 3948case "${host}" in 3949 i[3456789]86-*-msdosdjgpp*) 3950 host_makefile_frag="config/mh-djgpp" 3951 ;; 3952 *-cygwin*) 3953 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 3955$as_echo_n "checking to see if cat works as expected... " >&6; } 3956echo a >cygwin-cat-check 3957if test `cat cygwin-cat-check` = a ; then 3958 rm cygwin-cat-check 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3960$as_echo "yes" >&6; } 3961else 3962 rm cygwin-cat-check 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3964$as_echo "no" >&6; } 3965 as_fn_error $? "The cat command does not ignore carriage return characters. 3966 Please either mount the build directory in binary mode or run the following 3967 commands before running any configure script: 3968set -o igncr 3969export SHELLOPTS 3970 " "$LINENO" 5 3971fi 3972 3973 host_makefile_frag="config/mh-cygwin" 3974 ;; 3975 *-mingw*) 3976 host_makefile_frag="config/mh-mingw" 3977 ;; 3978 alpha*-linux*) 3979 host_makefile_frag="config/mh-alpha-linux" 3980 ;; 3981 hppa*-hp-hpux10*) 3982 host_makefile_frag="config/mh-pa-hpux10" 3983 ;; 3984 hppa*-hp-hpux*) 3985 host_makefile_frag="config/mh-pa" 3986 ;; 3987 hppa*-*) 3988 host_makefile_frag="config/mh-pa" 3989 ;; 3990 *-*-darwin*) 3991 host_makefile_frag="config/mh-darwin" 3992 ;; 3993 powerpc-*-aix*) 3994 host_makefile_frag="config/mh-ppc-aix" 3995 ;; 3996 rs6000-*-aix*) 3997 host_makefile_frag="config/mh-ppc-aix" 3998 ;; 3999esac 4000fi 4001 4002if test "${build}" != "${host}" ; then 4003 AR_FOR_BUILD=${AR_FOR_BUILD-ar} 4004 AS_FOR_BUILD=${AS_FOR_BUILD-as} 4005 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} 4006 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} 4007 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} 4008 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} 4009 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} 4010 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} 4011 LD_FOR_BUILD=${LD_FOR_BUILD-ld} 4012 NM_FOR_BUILD=${NM_FOR_BUILD-nm} 4013 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} 4014 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} 4015 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} 4016else 4017 AR_FOR_BUILD="\$(AR)" 4018 AS_FOR_BUILD="\$(AS)" 4019 CC_FOR_BUILD="\$(CC)" 4020 CXX_FOR_BUILD="\$(CXX)" 4021 GFORTRAN_FOR_BUILD="\$(GFORTRAN)" 4022 GOC_FOR_BUILD="\$(GOC)" 4023 GDC_FOR_BUILD="\$(GDC)" 4024 DLLTOOL_FOR_BUILD="\$(DLLTOOL)" 4025 LD_FOR_BUILD="\$(LD)" 4026 NM_FOR_BUILD="\$(NM)" 4027 RANLIB_FOR_BUILD="\$(RANLIB)" 4028 WINDRES_FOR_BUILD="\$(WINDRES)" 4029 WINDMC_FOR_BUILD="\$(WINDMC)" 4030fi 4031 4032ac_ext=c 4033ac_cpp='$CPP $CPPFLAGS' 4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4036ac_compiler_gnu=$ac_cv_c_compiler_gnu 4037if test -n "$ac_tool_prefix"; then 4038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4039set dummy ${ac_tool_prefix}gcc; ac_word=$2 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4041$as_echo_n "checking for $ac_word... " >&6; } 4042if ${ac_cv_prog_CC+:} false; then : 4043 $as_echo_n "(cached) " >&6 4044else 4045 if test -n "$CC"; then 4046 ac_cv_prog_CC="$CC" # Let the user override the test. 4047else 4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4049for as_dir in $PATH 4050do 4051 IFS=$as_save_IFS 4052 test -z "$as_dir" && as_dir=. 4053 for ac_exec_ext in '' $ac_executable_extensions; do 4054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4055 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4057 break 2 4058 fi 4059done 4060 done 4061IFS=$as_save_IFS 4062 4063fi 4064fi 4065CC=$ac_cv_prog_CC 4066if test -n "$CC"; then 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4068$as_echo "$CC" >&6; } 4069else 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4071$as_echo "no" >&6; } 4072fi 4073 4074 4075fi 4076if test -z "$ac_cv_prog_CC"; then 4077 ac_ct_CC=$CC 4078 # Extract the first word of "gcc", so it can be a program name with args. 4079set dummy gcc; ac_word=$2 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4081$as_echo_n "checking for $ac_word... " >&6; } 4082if ${ac_cv_prog_ac_ct_CC+:} false; then : 4083 $as_echo_n "(cached) " >&6 4084else 4085 if test -n "$ac_ct_CC"; then 4086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4087else 4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4089for as_dir in $PATH 4090do 4091 IFS=$as_save_IFS 4092 test -z "$as_dir" && as_dir=. 4093 for ac_exec_ext in '' $ac_executable_extensions; do 4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4095 ac_cv_prog_ac_ct_CC="gcc" 4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4097 break 2 4098 fi 4099done 4100 done 4101IFS=$as_save_IFS 4102 4103fi 4104fi 4105ac_ct_CC=$ac_cv_prog_ac_ct_CC 4106if test -n "$ac_ct_CC"; then 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4108$as_echo "$ac_ct_CC" >&6; } 4109else 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4111$as_echo "no" >&6; } 4112fi 4113 4114 if test "x$ac_ct_CC" = x; then 4115 CC="" 4116 else 4117 case $cross_compiling:$ac_tool_warned in 4118yes:) 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4121ac_tool_warned=yes ;; 4122esac 4123 CC=$ac_ct_CC 4124 fi 4125else 4126 CC="$ac_cv_prog_CC" 4127fi 4128 4129if test -z "$CC"; then 4130 if test -n "$ac_tool_prefix"; then 4131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4132set dummy ${ac_tool_prefix}cc; ac_word=$2 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4134$as_echo_n "checking for $ac_word... " >&6; } 4135if ${ac_cv_prog_CC+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 if test -n "$CC"; then 4139 ac_cv_prog_CC="$CC" # Let the user override the test. 4140else 4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4142for as_dir in $PATH 4143do 4144 IFS=$as_save_IFS 4145 test -z "$as_dir" && as_dir=. 4146 for ac_exec_ext in '' $ac_executable_extensions; do 4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4148 ac_cv_prog_CC="${ac_tool_prefix}cc" 4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4150 break 2 4151 fi 4152done 4153 done 4154IFS=$as_save_IFS 4155 4156fi 4157fi 4158CC=$ac_cv_prog_CC 4159if test -n "$CC"; then 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4161$as_echo "$CC" >&6; } 4162else 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4164$as_echo "no" >&6; } 4165fi 4166 4167 4168 fi 4169fi 4170if test -z "$CC"; then 4171 # Extract the first word of "cc", so it can be a program name with args. 4172set dummy cc; ac_word=$2 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4174$as_echo_n "checking for $ac_word... " >&6; } 4175if ${ac_cv_prog_CC+:} false; then : 4176 $as_echo_n "(cached) " >&6 4177else 4178 if test -n "$CC"; then 4179 ac_cv_prog_CC="$CC" # Let the user override the test. 4180else 4181 ac_prog_rejected=no 4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4183for as_dir in $PATH 4184do 4185 IFS=$as_save_IFS 4186 test -z "$as_dir" && as_dir=. 4187 for ac_exec_ext in '' $ac_executable_extensions; do 4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4190 ac_prog_rejected=yes 4191 continue 4192 fi 4193 ac_cv_prog_CC="cc" 4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4195 break 2 4196 fi 4197done 4198 done 4199IFS=$as_save_IFS 4200 4201if test $ac_prog_rejected = yes; then 4202 # We found a bogon in the path, so make sure we never use it. 4203 set dummy $ac_cv_prog_CC 4204 shift 4205 if test $# != 0; then 4206 # We chose a different compiler from the bogus one. 4207 # However, it has the same basename, so the bogon will be chosen 4208 # first if we set CC to just the basename; use the full file name. 4209 shift 4210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4211 fi 4212fi 4213fi 4214fi 4215CC=$ac_cv_prog_CC 4216if test -n "$CC"; then 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4218$as_echo "$CC" >&6; } 4219else 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4221$as_echo "no" >&6; } 4222fi 4223 4224 4225fi 4226if test -z "$CC"; then 4227 if test -n "$ac_tool_prefix"; then 4228 for ac_prog in cl.exe 4229 do 4230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4231set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4233$as_echo_n "checking for $ac_word... " >&6; } 4234if ${ac_cv_prog_CC+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 if test -n "$CC"; then 4238 ac_cv_prog_CC="$CC" # Let the user override the test. 4239else 4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4241for as_dir in $PATH 4242do 4243 IFS=$as_save_IFS 4244 test -z "$as_dir" && as_dir=. 4245 for ac_exec_ext in '' $ac_executable_extensions; do 4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4249 break 2 4250 fi 4251done 4252 done 4253IFS=$as_save_IFS 4254 4255fi 4256fi 4257CC=$ac_cv_prog_CC 4258if test -n "$CC"; then 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4260$as_echo "$CC" >&6; } 4261else 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4263$as_echo "no" >&6; } 4264fi 4265 4266 4267 test -n "$CC" && break 4268 done 4269fi 4270if test -z "$CC"; then 4271 ac_ct_CC=$CC 4272 for ac_prog in cl.exe 4273do 4274 # Extract the first word of "$ac_prog", so it can be a program name with args. 4275set dummy $ac_prog; ac_word=$2 4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4277$as_echo_n "checking for $ac_word... " >&6; } 4278if ${ac_cv_prog_ac_ct_CC+:} false; then : 4279 $as_echo_n "(cached) " >&6 4280else 4281 if test -n "$ac_ct_CC"; then 4282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4283else 4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4285for as_dir in $PATH 4286do 4287 IFS=$as_save_IFS 4288 test -z "$as_dir" && as_dir=. 4289 for ac_exec_ext in '' $ac_executable_extensions; do 4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4291 ac_cv_prog_ac_ct_CC="$ac_prog" 4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4293 break 2 4294 fi 4295done 4296 done 4297IFS=$as_save_IFS 4298 4299fi 4300fi 4301ac_ct_CC=$ac_cv_prog_ac_ct_CC 4302if test -n "$ac_ct_CC"; then 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4304$as_echo "$ac_ct_CC" >&6; } 4305else 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4307$as_echo "no" >&6; } 4308fi 4309 4310 4311 test -n "$ac_ct_CC" && break 4312done 4313 4314 if test "x$ac_ct_CC" = x; then 4315 CC="" 4316 else 4317 case $cross_compiling:$ac_tool_warned in 4318yes:) 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4321ac_tool_warned=yes ;; 4322esac 4323 CC=$ac_ct_CC 4324 fi 4325fi 4326 4327fi 4328 4329 4330test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4332as_fn_error $? "no acceptable C compiler found in \$PATH 4333See \`config.log' for more details" "$LINENO" 5; } 4334 4335# Provide some information about the compiler. 4336$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4337set X $ac_compile 4338ac_compiler=$2 4339for ac_option in --version -v -V -qversion; do 4340 { { ac_try="$ac_compiler $ac_option >&5" 4341case "(($ac_try" in 4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4343 *) ac_try_echo=$ac_try;; 4344esac 4345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4346$as_echo "$ac_try_echo"; } >&5 4347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4348 ac_status=$? 4349 if test -s conftest.err; then 4350 sed '10a\ 4351... rest of stderr output deleted ... 4352 10q' conftest.err >conftest.er1 4353 cat conftest.er1 >&5 4354 fi 4355 rm -f conftest.er1 conftest.err 4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4357 test $ac_status = 0; } 4358done 4359 4360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362 4363int 4364main () 4365{ 4366 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371ac_clean_files_save=$ac_clean_files 4372ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4373# Try to create an executable without -o first, disregard a.out. 4374# It will help us diagnose broken compilers, and finding out an intuition 4375# of exeext. 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4377$as_echo_n "checking whether the C compiler works... " >&6; } 4378ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4379 4380# The possible output files: 4381ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4382 4383ac_rmfiles= 4384for ac_file in $ac_files 4385do 4386 case $ac_file in 4387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4388 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4389 esac 4390done 4391rm -f $ac_rmfiles 4392 4393if { { ac_try="$ac_link_default" 4394case "(($ac_try" in 4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4396 *) ac_try_echo=$ac_try;; 4397esac 4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4399$as_echo "$ac_try_echo"; } >&5 4400 (eval "$ac_link_default") 2>&5 4401 ac_status=$? 4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4403 test $ac_status = 0; }; then : 4404 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4405# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4406# in a Makefile. We should not override ac_cv_exeext if it was cached, 4407# so that the user can short-circuit this test for compilers unknown to 4408# Autoconf. 4409for ac_file in $ac_files '' 4410do 4411 test -f "$ac_file" || continue 4412 case $ac_file in 4413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4414 ;; 4415 [ab].out ) 4416 # We found the default executable, but exeext='' is most 4417 # certainly right. 4418 break;; 4419 *.* ) 4420 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4421 then :; else 4422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4423 fi 4424 # We set ac_cv_exeext here because the later test for it is not 4425 # safe: cross compilers may not add the suffix if given an `-o' 4426 # argument, so we may need to know it at that point already. 4427 # Even if this section looks crufty: it has the advantage of 4428 # actually working. 4429 break;; 4430 * ) 4431 break;; 4432 esac 4433done 4434test "$ac_cv_exeext" = no && ac_cv_exeext= 4435 4436else 4437 ac_file='' 4438fi 4439if test -z "$ac_file"; then : 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4441$as_echo "no" >&6; } 4442$as_echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4447as_fn_error 77 "C compiler cannot create executables 4448See \`config.log' for more details" "$LINENO" 5; } 4449else 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4451$as_echo "yes" >&6; } 4452fi 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4454$as_echo_n "checking for C compiler default output file name... " >&6; } 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4456$as_echo "$ac_file" >&6; } 4457ac_exeext=$ac_cv_exeext 4458 4459rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4460ac_clean_files=$ac_clean_files_save 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4462$as_echo_n "checking for suffix of executables... " >&6; } 4463if { { ac_try="$ac_link" 4464case "(($ac_try" in 4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4466 *) ac_try_echo=$ac_try;; 4467esac 4468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4469$as_echo "$ac_try_echo"; } >&5 4470 (eval "$ac_link") 2>&5 4471 ac_status=$? 4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4473 test $ac_status = 0; }; then : 4474 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4475# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4476# work properly (i.e., refer to `conftest.exe'), while it won't with 4477# `rm'. 4478for ac_file in conftest.exe conftest conftest.*; do 4479 test -f "$ac_file" || continue 4480 case $ac_file in 4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4483 break;; 4484 * ) break;; 4485 esac 4486done 4487else 4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4490as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4491See \`config.log' for more details" "$LINENO" 5; } 4492fi 4493rm -f conftest conftest$ac_cv_exeext 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4495$as_echo "$ac_cv_exeext" >&6; } 4496 4497rm -f conftest.$ac_ext 4498EXEEXT=$ac_cv_exeext 4499ac_exeext=$EXEEXT 4500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4501/* end confdefs.h. */ 4502#include <stdio.h> 4503int 4504main () 4505{ 4506FILE *f = fopen ("conftest.out", "w"); 4507 return ferror (f) || fclose (f) != 0; 4508 4509 ; 4510 return 0; 4511} 4512_ACEOF 4513ac_clean_files="$ac_clean_files conftest.out" 4514# Check that the compiler produces executables we can run. If not, either 4515# the compiler is broken, or we cross compile. 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4517$as_echo_n "checking whether we are cross compiling... " >&6; } 4518if test "$cross_compiling" != yes; then 4519 { { ac_try="$ac_link" 4520case "(($ac_try" in 4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4522 *) ac_try_echo=$ac_try;; 4523esac 4524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4525$as_echo "$ac_try_echo"; } >&5 4526 (eval "$ac_link") 2>&5 4527 ac_status=$? 4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4529 test $ac_status = 0; } 4530 if { ac_try='./conftest$ac_cv_exeext' 4531 { { case "(($ac_try" in 4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4533 *) ac_try_echo=$ac_try;; 4534esac 4535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4536$as_echo "$ac_try_echo"; } >&5 4537 (eval "$ac_try") 2>&5 4538 ac_status=$? 4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4540 test $ac_status = 0; }; }; then 4541 cross_compiling=no 4542 else 4543 if test "$cross_compiling" = maybe; then 4544 cross_compiling=yes 4545 else 4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4548as_fn_error $? "cannot run C compiled programs. 4549If you meant to cross compile, use \`--host'. 4550See \`config.log' for more details" "$LINENO" 5; } 4551 fi 4552 fi 4553fi 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4555$as_echo "$cross_compiling" >&6; } 4556 4557rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4558ac_clean_files=$ac_clean_files_save 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4560$as_echo_n "checking for suffix of object files... " >&6; } 4561if ${ac_cv_objext+:} false; then : 4562 $as_echo_n "(cached) " >&6 4563else 4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4565/* end confdefs.h. */ 4566 4567int 4568main () 4569{ 4570 4571 ; 4572 return 0; 4573} 4574_ACEOF 4575rm -f conftest.o conftest.obj 4576if { { ac_try="$ac_compile" 4577case "(($ac_try" in 4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4579 *) ac_try_echo=$ac_try;; 4580esac 4581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4582$as_echo "$ac_try_echo"; } >&5 4583 (eval "$ac_compile") 2>&5 4584 ac_status=$? 4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4586 test $ac_status = 0; }; then : 4587 for ac_file in conftest.o conftest.obj conftest.*; do 4588 test -f "$ac_file" || continue; 4589 case $ac_file in 4590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4592 break;; 4593 esac 4594done 4595else 4596 $as_echo "$as_me: failed program was:" >&5 4597sed 's/^/| /' conftest.$ac_ext >&5 4598 4599{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4601as_fn_error $? "cannot compute suffix of object files: cannot compile 4602See \`config.log' for more details" "$LINENO" 5; } 4603fi 4604rm -f conftest.$ac_cv_objext conftest.$ac_ext 4605fi 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4607$as_echo "$ac_cv_objext" >&6; } 4608OBJEXT=$ac_cv_objext 4609ac_objext=$OBJEXT 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4611$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4612if ${ac_cv_c_compiler_gnu+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616/* end confdefs.h. */ 4617 4618int 4619main () 4620{ 4621#ifndef __GNUC__ 4622 choke me 4623#endif 4624 4625 ; 4626 return 0; 4627} 4628_ACEOF 4629if ac_fn_c_try_compile "$LINENO"; then : 4630 ac_compiler_gnu=yes 4631else 4632 ac_compiler_gnu=no 4633fi 4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4635ac_cv_c_compiler_gnu=$ac_compiler_gnu 4636 4637fi 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4639$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4640if test $ac_compiler_gnu = yes; then 4641 GCC=yes 4642else 4643 GCC= 4644fi 4645ac_test_CFLAGS=${CFLAGS+set} 4646ac_save_CFLAGS=$CFLAGS 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4648$as_echo_n "checking whether $CC accepts -g... " >&6; } 4649if ${ac_cv_prog_cc_g+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 ac_save_c_werror_flag=$ac_c_werror_flag 4653 ac_c_werror_flag=yes 4654 ac_cv_prog_cc_g=no 4655 CFLAGS="-g" 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658 4659int 4660main () 4661{ 4662 4663 ; 4664 return 0; 4665} 4666_ACEOF 4667if ac_fn_c_try_compile "$LINENO"; then : 4668 ac_cv_prog_cc_g=yes 4669else 4670 CFLAGS="" 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672/* end confdefs.h. */ 4673 4674int 4675main () 4676{ 4677 4678 ; 4679 return 0; 4680} 4681_ACEOF 4682if ac_fn_c_try_compile "$LINENO"; then : 4683 4684else 4685 ac_c_werror_flag=$ac_save_c_werror_flag 4686 CFLAGS="-g" 4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4688/* end confdefs.h. */ 4689 4690int 4691main () 4692{ 4693 4694 ; 4695 return 0; 4696} 4697_ACEOF 4698if ac_fn_c_try_compile "$LINENO"; then : 4699 ac_cv_prog_cc_g=yes 4700fi 4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4702fi 4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4704fi 4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4706 ac_c_werror_flag=$ac_save_c_werror_flag 4707fi 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4709$as_echo "$ac_cv_prog_cc_g" >&6; } 4710if test "$ac_test_CFLAGS" = set; then 4711 CFLAGS=$ac_save_CFLAGS 4712elif test $ac_cv_prog_cc_g = yes; then 4713 if test "$GCC" = yes; then 4714 CFLAGS="-g -O2" 4715 else 4716 CFLAGS="-g" 4717 fi 4718else 4719 if test "$GCC" = yes; then 4720 CFLAGS="-O2" 4721 else 4722 CFLAGS= 4723 fi 4724fi 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4726$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4727if ${ac_cv_prog_cc_c89+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 ac_cv_prog_cc_c89=no 4731ac_save_CC=$CC 4732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4733/* end confdefs.h. */ 4734#include <stdarg.h> 4735#include <stdio.h> 4736struct stat; 4737/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4738struct buf { int x; }; 4739FILE * (*rcsopen) (struct buf *, struct stat *, int); 4740static char *e (p, i) 4741 char **p; 4742 int i; 4743{ 4744 return p[i]; 4745} 4746static char *f (char * (*g) (char **, int), char **p, ...) 4747{ 4748 char *s; 4749 va_list v; 4750 va_start (v,p); 4751 s = g (p, va_arg (v,int)); 4752 va_end (v); 4753 return s; 4754} 4755 4756/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4757 function prototypes and stuff, but not '\xHH' hex character constants. 4758 These don't provoke an error unfortunately, instead are silently treated 4759 as 'x'. The following induces an error, until -std is added to get 4760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4761 array size at least. It's necessary to write '\x00'==0 to get something 4762 that's true only with -std. */ 4763int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4764 4765/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4766 inside strings and character constants. */ 4767#define FOO(x) 'x' 4768int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4769 4770int test (int i, double x); 4771struct s1 {int (*f) (int a);}; 4772struct s2 {int (*f) (double a);}; 4773int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4774int argc; 4775char **argv; 4776int 4777main () 4778{ 4779return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4780 ; 4781 return 0; 4782} 4783_ACEOF 4784for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4786do 4787 CC="$ac_save_CC $ac_arg" 4788 if ac_fn_c_try_compile "$LINENO"; then : 4789 ac_cv_prog_cc_c89=$ac_arg 4790fi 4791rm -f core conftest.err conftest.$ac_objext 4792 test "x$ac_cv_prog_cc_c89" != "xno" && break 4793done 4794rm -f conftest.$ac_ext 4795CC=$ac_save_CC 4796 4797fi 4798# AC_CACHE_VAL 4799case "x$ac_cv_prog_cc_c89" in 4800 x) 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4802$as_echo "none needed" >&6; } ;; 4803 xno) 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4805$as_echo "unsupported" >&6; } ;; 4806 *) 4807 CC="$CC $ac_cv_prog_cc_c89" 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4809$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4810esac 4811if test "x$ac_cv_prog_cc_c89" != xno; then : 4812 4813fi 4814 4815ac_ext=c 4816ac_cpp='$CPP $CPPFLAGS' 4817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4819ac_compiler_gnu=$ac_cv_c_compiler_gnu 4820 4821ac_ext=cpp 4822ac_cpp='$CXXCPP $CPPFLAGS' 4823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4826if test -z "$CXX"; then 4827 if test -n "$CCC"; then 4828 CXX=$CCC 4829 else 4830 if test -n "$ac_tool_prefix"; then 4831 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4832 do 4833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4834set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4836$as_echo_n "checking for $ac_word... " >&6; } 4837if ${ac_cv_prog_CXX+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839else 4840 if test -n "$CXX"; then 4841 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4842else 4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4844for as_dir in $PATH 4845do 4846 IFS=$as_save_IFS 4847 test -z "$as_dir" && as_dir=. 4848 for ac_exec_ext in '' $ac_executable_extensions; do 4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4850 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4852 break 2 4853 fi 4854done 4855 done 4856IFS=$as_save_IFS 4857 4858fi 4859fi 4860CXX=$ac_cv_prog_CXX 4861if test -n "$CXX"; then 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4863$as_echo "$CXX" >&6; } 4864else 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4866$as_echo "no" >&6; } 4867fi 4868 4869 4870 test -n "$CXX" && break 4871 done 4872fi 4873if test -z "$CXX"; then 4874 ac_ct_CXX=$CXX 4875 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4876do 4877 # Extract the first word of "$ac_prog", so it can be a program name with args. 4878set dummy $ac_prog; ac_word=$2 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4880$as_echo_n "checking for $ac_word... " >&6; } 4881if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4882 $as_echo_n "(cached) " >&6 4883else 4884 if test -n "$ac_ct_CXX"; then 4885 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4886else 4887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4888for as_dir in $PATH 4889do 4890 IFS=$as_save_IFS 4891 test -z "$as_dir" && as_dir=. 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4894 ac_cv_prog_ac_ct_CXX="$ac_prog" 4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4896 break 2 4897 fi 4898done 4899 done 4900IFS=$as_save_IFS 4901 4902fi 4903fi 4904ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4905if test -n "$ac_ct_CXX"; then 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4907$as_echo "$ac_ct_CXX" >&6; } 4908else 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4910$as_echo "no" >&6; } 4911fi 4912 4913 4914 test -n "$ac_ct_CXX" && break 4915done 4916 4917 if test "x$ac_ct_CXX" = x; then 4918 CXX="g++" 4919 else 4920 case $cross_compiling:$ac_tool_warned in 4921yes:) 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4924ac_tool_warned=yes ;; 4925esac 4926 CXX=$ac_ct_CXX 4927 fi 4928fi 4929 4930 fi 4931fi 4932# Provide some information about the compiler. 4933$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4934set X $ac_compile 4935ac_compiler=$2 4936for ac_option in --version -v -V -qversion; do 4937 { { ac_try="$ac_compiler $ac_option >&5" 4938case "(($ac_try" in 4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4940 *) ac_try_echo=$ac_try;; 4941esac 4942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4943$as_echo "$ac_try_echo"; } >&5 4944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4945 ac_status=$? 4946 if test -s conftest.err; then 4947 sed '10a\ 4948... rest of stderr output deleted ... 4949 10q' conftest.err >conftest.er1 4950 cat conftest.er1 >&5 4951 fi 4952 rm -f conftest.er1 conftest.err 4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4954 test $ac_status = 0; } 4955done 4956 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4958$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4959if ${ac_cv_cxx_compiler_gnu+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4963/* end confdefs.h. */ 4964 4965int 4966main () 4967{ 4968#ifndef __GNUC__ 4969 choke me 4970#endif 4971 4972 ; 4973 return 0; 4974} 4975_ACEOF 4976if ac_fn_cxx_try_compile "$LINENO"; then : 4977 ac_compiler_gnu=yes 4978else 4979 ac_compiler_gnu=no 4980fi 4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4982ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4983 4984fi 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4986$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4987if test $ac_compiler_gnu = yes; then 4988 GXX=yes 4989else 4990 GXX= 4991fi 4992ac_test_CXXFLAGS=${CXXFLAGS+set} 4993ac_save_CXXFLAGS=$CXXFLAGS 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4995$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4996if ${ac_cv_prog_cxx_g+:} false; then : 4997 $as_echo_n "(cached) " >&6 4998else 4999 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5000 ac_cxx_werror_flag=yes 5001 ac_cv_prog_cxx_g=no 5002 CXXFLAGS="-g" 5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5004/* end confdefs.h. */ 5005 5006int 5007main () 5008{ 5009 5010 ; 5011 return 0; 5012} 5013_ACEOF 5014if ac_fn_cxx_try_compile "$LINENO"; then : 5015 ac_cv_prog_cxx_g=yes 5016else 5017 CXXFLAGS="" 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020 5021int 5022main () 5023{ 5024 5025 ; 5026 return 0; 5027} 5028_ACEOF 5029if ac_fn_cxx_try_compile "$LINENO"; then : 5030 5031else 5032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5033 CXXFLAGS="-g" 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035/* end confdefs.h. */ 5036 5037int 5038main () 5039{ 5040 5041 ; 5042 return 0; 5043} 5044_ACEOF 5045if ac_fn_cxx_try_compile "$LINENO"; then : 5046 ac_cv_prog_cxx_g=yes 5047fi 5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5049fi 5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5051fi 5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5053 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5054fi 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5056$as_echo "$ac_cv_prog_cxx_g" >&6; } 5057if test "$ac_test_CXXFLAGS" = set; then 5058 CXXFLAGS=$ac_save_CXXFLAGS 5059elif test $ac_cv_prog_cxx_g = yes; then 5060 if test "$GXX" = yes; then 5061 CXXFLAGS="-g -O2" 5062 else 5063 CXXFLAGS="-g" 5064 fi 5065else 5066 if test "$GXX" = yes; then 5067 CXXFLAGS="-O2" 5068 else 5069 CXXFLAGS= 5070 fi 5071fi 5072ac_ext=c 5073ac_cpp='$CPP $CPPFLAGS' 5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5076ac_compiler_gnu=$ac_cv_c_compiler_gnu 5077 5078 5079# We must set the default linker to the linker used by gcc for the correct 5080# operation of libtool. If LD is not defined and we are using gcc, try to 5081# set the LD default to the ld used by gcc. 5082if test -z "$LD"; then 5083 if test "$GCC" = yes; then 5084 case $build in 5085 *-*-mingw*) 5086 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; 5087 *) 5088 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; 5089 esac 5090 case $gcc_prog_ld in 5091 # Accept absolute paths. 5092 [\\/]* | [A-Za-z]:[\\/]*) 5093 LD="$gcc_prog_ld" ;; 5094 esac 5095 fi 5096fi 5097 5098# Check whether -static-libstdc++ -static-libgcc is supported. 5099have_static_libs=no 5100if test "$GCC" = yes; then 5101 saved_LDFLAGS="$LDFLAGS" 5102 5103 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 5105$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } 5106 ac_ext=cpp 5107ac_cpp='$CXXCPP $CPPFLAGS' 5108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5111 5112 5113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5114/* end confdefs.h. */ 5115 5116#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 5117#error -static-libstdc++ not implemented 5118#endif 5119int main() {} 5120_ACEOF 5121if ac_fn_cxx_try_link "$LINENO"; then : 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5123$as_echo "yes" >&6; }; have_static_libs=yes 5124else 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5126$as_echo "no" >&6; } 5127fi 5128rm -f core conftest.err conftest.$ac_objext \ 5129 conftest$ac_exeext conftest.$ac_ext 5130 ac_ext=c 5131ac_cpp='$CPP $CPPFLAGS' 5132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5134ac_compiler_gnu=$ac_cv_c_compiler_gnu 5135 5136 5137 LDFLAGS="$saved_LDFLAGS" 5138fi 5139 5140 5141 5142 5143if test -n "$ac_tool_prefix"; then 5144 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 5145set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5147$as_echo_n "checking for $ac_word... " >&6; } 5148if ${ac_cv_prog_GNATBIND+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 if test -n "$GNATBIND"; then 5152 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 5153else 5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5155for as_dir in $PATH 5156do 5157 IFS=$as_save_IFS 5158 test -z "$as_dir" && as_dir=. 5159 for ac_exec_ext in '' $ac_executable_extensions; do 5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5161 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5163 break 2 5164 fi 5165done 5166 done 5167IFS=$as_save_IFS 5168 5169fi 5170fi 5171GNATBIND=$ac_cv_prog_GNATBIND 5172if test -n "$GNATBIND"; then 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 5174$as_echo "$GNATBIND" >&6; } 5175else 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5177$as_echo "no" >&6; } 5178fi 5179 5180 5181fi 5182if test -z "$ac_cv_prog_GNATBIND"; then 5183 ac_ct_GNATBIND=$GNATBIND 5184 # Extract the first word of "gnatbind", so it can be a program name with args. 5185set dummy gnatbind; ac_word=$2 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5187$as_echo_n "checking for $ac_word... " >&6; } 5188if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190else 5191 if test -n "$ac_ct_GNATBIND"; then 5192 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. 5193else 5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5195for as_dir in $PATH 5196do 5197 IFS=$as_save_IFS 5198 test -z "$as_dir" && as_dir=. 5199 for ac_exec_ext in '' $ac_executable_extensions; do 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5201 ac_cv_prog_ac_ct_GNATBIND="gnatbind" 5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5203 break 2 5204 fi 5205done 5206 done 5207IFS=$as_save_IFS 5208 5209fi 5210fi 5211ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND 5212if test -n "$ac_ct_GNATBIND"; then 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 5214$as_echo "$ac_ct_GNATBIND" >&6; } 5215else 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5217$as_echo "no" >&6; } 5218fi 5219 5220 if test "x$ac_ct_GNATBIND" = x; then 5221 GNATBIND="no" 5222 else 5223 case $cross_compiling:$ac_tool_warned in 5224yes:) 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5227ac_tool_warned=yes ;; 5228esac 5229 GNATBIND=$ac_ct_GNATBIND 5230 fi 5231else 5232 GNATBIND="$ac_cv_prog_GNATBIND" 5233fi 5234 5235if test -n "$ac_tool_prefix"; then 5236 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. 5237set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5239$as_echo_n "checking for $ac_word... " >&6; } 5240if ${ac_cv_prog_GNATMAKE+:} false; then : 5241 $as_echo_n "(cached) " >&6 5242else 5243 if test -n "$GNATMAKE"; then 5244 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. 5245else 5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5247for as_dir in $PATH 5248do 5249 IFS=$as_save_IFS 5250 test -z "$as_dir" && as_dir=. 5251 for ac_exec_ext in '' $ac_executable_extensions; do 5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5253 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" 5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5255 break 2 5256 fi 5257done 5258 done 5259IFS=$as_save_IFS 5260 5261fi 5262fi 5263GNATMAKE=$ac_cv_prog_GNATMAKE 5264if test -n "$GNATMAKE"; then 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 5266$as_echo "$GNATMAKE" >&6; } 5267else 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5269$as_echo "no" >&6; } 5270fi 5271 5272 5273fi 5274if test -z "$ac_cv_prog_GNATMAKE"; then 5275 ac_ct_GNATMAKE=$GNATMAKE 5276 # Extract the first word of "gnatmake", so it can be a program name with args. 5277set dummy gnatmake; ac_word=$2 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5279$as_echo_n "checking for $ac_word... " >&6; } 5280if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 if test -n "$ac_ct_GNATMAKE"; then 5284 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. 5285else 5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5287for as_dir in $PATH 5288do 5289 IFS=$as_save_IFS 5290 test -z "$as_dir" && as_dir=. 5291 for ac_exec_ext in '' $ac_executable_extensions; do 5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5293 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5295 break 2 5296 fi 5297done 5298 done 5299IFS=$as_save_IFS 5300 5301fi 5302fi 5303ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE 5304if test -n "$ac_ct_GNATMAKE"; then 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 5306$as_echo "$ac_ct_GNATMAKE" >&6; } 5307else 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5309$as_echo "no" >&6; } 5310fi 5311 5312 if test "x$ac_ct_GNATMAKE" = x; then 5313 GNATMAKE="no" 5314 else 5315 case $cross_compiling:$ac_tool_warned in 5316yes:) 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5319ac_tool_warned=yes ;; 5320esac 5321 GNATMAKE=$ac_ct_GNATMAKE 5322 fi 5323else 5324 GNATMAKE="$ac_cv_prog_GNATMAKE" 5325fi 5326 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 5328$as_echo_n "checking whether compiler driver understands Ada... " >&6; } 5329if ${acx_cv_cc_gcc_supports_ada+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 cat >conftest.adb <<EOF 5333procedure conftest is begin null; end conftest; 5334EOF 5335acx_cv_cc_gcc_supports_ada=no 5336# There is a bug in old released versions of GCC which causes the 5337# driver to exit successfully when the appropriate language module 5338# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 5339# Therefore we must check for the error message as well as an 5340# unsuccessful exit. 5341# Other compilers, like HP Tru64 UNIX cc, exit successfully when 5342# given a .adb file, but produce no object file. So we must check 5343# if an object file was really produced to guard against this. 5344errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` 5345if test x"$errors" = x && test -f conftest.$ac_objext; then 5346 acx_cv_cc_gcc_supports_ada=yes 5347fi 5348rm -f conftest.* 5349fi 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 5351$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } 5352 5353if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 5354 have_gnat=yes 5355else 5356 have_gnat=no 5357fi 5358 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 5360$as_echo_n "checking how to compare bootstrapped objects... " >&6; } 5361if ${gcc_cv_prog_cmp_skip+:} false; then : 5362 $as_echo_n "(cached) " >&6 5363else 5364 echo abfoo >t1 5365 echo cdfoo >t2 5366 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' 5367 if cmp t1 t2 2 2 > /dev/null 2>&1; then 5368 if cmp t1 t2 1 1 > /dev/null 2>&1; then 5369 : 5370 else 5371 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' 5372 fi 5373 fi 5374 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 5375 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 5376 : 5377 else 5378 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' 5379 fi 5380 fi 5381 rm t1 t2 5382 5383fi 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 5385$as_echo "$gcc_cv_prog_cmp_skip" >&6; } 5386do_compare="$gcc_cv_prog_cmp_skip" 5387 5388 5389 5390# Check whether --enable-bootstrap was given. 5391if test "${enable_bootstrap+set}" = set; then : 5392 enableval=$enable_bootstrap; 5393else 5394 enable_bootstrap=default 5395fi 5396 5397 5398# Issue errors and warnings for invalid/strange bootstrap combinations. 5399if test -r $srcdir/gcc/configure; then 5400 have_compiler=yes 5401else 5402 have_compiler=no 5403fi 5404 5405case "$have_compiler:$host:$target:$enable_bootstrap" in 5406 *:*:*:no) ;; 5407 5408 # Default behavior. Enable bootstrap if we have a compiler 5409 # and we are in a native configuration. 5410 yes:$build:$build:default) 5411 enable_bootstrap=yes ;; 5412 5413 *:*:*:default) 5414 enable_bootstrap=no ;; 5415 5416 # We have a compiler and we are in a native configuration, bootstrap is ok 5417 yes:$build:$build:yes) 5418 ;; 5419 5420 # Other configurations, but we have a compiler. Assume the user knows 5421 # what he's doing. 5422 yes:*:*:yes) 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 5424$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} 5425 ;; 5426 5427 # No compiler: if they passed --enable-bootstrap explicitly, fail 5428 no:*:*:yes) 5429 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; 5430 5431 # Fail if wrong command line 5432 *) 5433 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 5434 ;; 5435esac 5436 5437# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a 5438# C++98 compiler can still start the bootstrap. 5439if test "$enable_bootstrap:$GXX" = "yes:yes"; then 5440 CXX="$CXX -std=gnu++98" 5441fi 5442 5443# Used for setting $lt_cv_objdir 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 5445$as_echo_n "checking for objdir... " >&6; } 5446if ${lt_cv_objdir+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448else 5449 rm -f .libs 2>/dev/null 5450mkdir .libs 2>/dev/null 5451if test -d .libs; then 5452 lt_cv_objdir=.libs 5453else 5454 # MS-DOS does not allow filenames that begin with a dot. 5455 lt_cv_objdir=_libs 5456fi 5457rmdir .libs 2>/dev/null 5458fi 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 5460$as_echo "$lt_cv_objdir" >&6; } 5461objdir=$lt_cv_objdir 5462 5463 5464 5465 5466 5467cat >>confdefs.h <<_ACEOF 5468#define LT_OBJDIR "$lt_cv_objdir/" 5469_ACEOF 5470 5471 5472 5473# Check for GMP, MPFR and MPC 5474gmplibs="-lmpc -lmpfr -lgmp" 5475gmpinc= 5476have_gmp=no 5477 5478# Specify a location for mpc 5479# check for this first so it ends up on the link line before mpfr. 5480 5481# Check whether --with-mpc was given. 5482if test "${with_mpc+set}" = set; then : 5483 withval=$with_mpc; 5484fi 5485 5486 5487# Check whether --with-mpc-include was given. 5488if test "${with_mpc_include+set}" = set; then : 5489 withval=$with_mpc_include; 5490fi 5491 5492 5493# Check whether --with-mpc-lib was given. 5494if test "${with_mpc_lib+set}" = set; then : 5495 withval=$with_mpc_lib; 5496fi 5497 5498 5499if test "x$with_mpc" != x; then 5500 gmplibs="-L$with_mpc/lib $gmplibs" 5501 gmpinc="-I$with_mpc/include $gmpinc" 5502fi 5503if test "x$with_mpc_include" != x; then 5504 gmpinc="-I$with_mpc_include $gmpinc" 5505fi 5506if test "x$with_mpc_lib" != x; then 5507 gmplibs="-L$with_mpc_lib $gmplibs" 5508fi 5509if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then 5510 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" 5511 gmpinc='-I$$s/mpc/src '"$gmpinc" 5512 # Do not test the mpc version. Assume that it is sufficient, since 5513 # it is in the source tree, and the library has not been built yet 5514 # but it would be included on the link line in the version check below 5515 # hence making the test fail. 5516 have_gmp=yes 5517fi 5518 5519# Specify a location for mpfr 5520# check for this first so it ends up on the link line before gmp. 5521 5522# Check whether --with-mpfr-dir was given. 5523if test "${with_mpfr_dir+set}" = set; then : 5524 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. 5525Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 5526fi 5527 5528 5529 5530# Check whether --with-mpfr was given. 5531if test "${with_mpfr+set}" = set; then : 5532 withval=$with_mpfr; 5533fi 5534 5535 5536# Check whether --with-mpfr-include was given. 5537if test "${with_mpfr_include+set}" = set; then : 5538 withval=$with_mpfr_include; 5539fi 5540 5541 5542# Check whether --with-mpfr-lib was given. 5543if test "${with_mpfr_lib+set}" = set; then : 5544 withval=$with_mpfr_lib; 5545fi 5546 5547 5548if test "x$with_mpfr" != x; then 5549 gmplibs="-L$with_mpfr/lib $gmplibs" 5550 gmpinc="-I$with_mpfr/include $gmpinc" 5551fi 5552if test "x$with_mpfr_include" != x; then 5553 gmpinc="-I$with_mpfr_include $gmpinc" 5554fi 5555if test "x$with_mpfr_lib" != x; then 5556 gmplibs="-L$with_mpfr_lib $gmplibs" 5557fi 5558if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then 5559 # MPFR v3.1.0 moved the sources into a src sub-directory. 5560 if ! test -d ${srcdir}/mpfr/src; then 5561 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 5562 fi 5563 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" 5564 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" 5565 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" 5566 # Do not test the mpfr version. Assume that it is sufficient, since 5567 # it is in the source tree, and the library has not been built yet 5568 # but it would be included on the link line in the version check below 5569 # hence making the test fail. 5570 have_gmp=yes 5571fi 5572 5573# Specify a location for gmp 5574 5575# Check whether --with-gmp-dir was given. 5576if test "${with_gmp_dir+set}" = set; then : 5577 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. 5578Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 5579fi 5580 5581 5582 5583# Check whether --with-gmp was given. 5584if test "${with_gmp+set}" = set; then : 5585 withval=$with_gmp; 5586fi 5587 5588 5589# Check whether --with-gmp-include was given. 5590if test "${with_gmp_include+set}" = set; then : 5591 withval=$with_gmp_include; 5592fi 5593 5594 5595# Check whether --with-gmp-lib was given. 5596if test "${with_gmp_lib+set}" = set; then : 5597 withval=$with_gmp_lib; 5598fi 5599 5600 5601 5602if test "x$with_gmp" != x; then 5603 gmplibs="-L$with_gmp/lib $gmplibs" 5604 gmpinc="-I$with_gmp/include $gmpinc" 5605fi 5606if test "x$with_gmp_include" != x; then 5607 gmpinc="-I$with_gmp_include $gmpinc" 5608fi 5609if test "x$with_gmp_lib" != x; then 5610 gmplibs="-L$with_gmp_lib $gmplibs" 5611fi 5612if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then 5613 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" 5614 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" 5615 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 5616 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 5617 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' 5618 # Do not test the gmp version. Assume that it is sufficient, since 5619 # it is in the source tree, and the library has not been built yet 5620 # but it would be included on the link line in the version check below 5621 # hence making the test fail. 5622 have_gmp=yes 5623fi 5624 5625if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then 5626 have_gmp=yes 5627 saved_CFLAGS="$CFLAGS" 5628 CFLAGS="$CFLAGS $gmpinc" 5629 # Check for the recommended and required versions of GMP. 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 5631$as_echo_n "checking for the correct version of gmp.h... " >&6; } 5632 5633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5634/* end confdefs.h. */ 5635#include "gmp.h" 5636int 5637main () 5638{ 5639 5640 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 5641 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) 5642 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) 5643 choke me 5644 #endif 5645 5646 ; 5647 return 0; 5648} 5649_ACEOF 5650if ac_fn_c_try_compile "$LINENO"; then : 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5652/* end confdefs.h. */ 5653#include <gmp.h> 5654int 5655main () 5656{ 5657 5658 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 5659 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) 5660 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) 5661 choke me 5662 #endif 5663 5664 ; 5665 return 0; 5666} 5667_ACEOF 5668if ac_fn_c_try_compile "$LINENO"; then : 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5670$as_echo "yes" >&6; } 5671else 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5673$as_echo "buggy but acceptable" >&6; } 5674fi 5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5676else 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5678$as_echo "no" >&6; }; have_gmp=no 5679fi 5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5681 5682 # If we have GMP, check the MPFR version. 5683 if test x"$have_gmp" = xyes; then 5684 # Check for the recommended and required versions of MPFR. 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 5686$as_echo_n "checking for the correct version of mpfr.h... " >&6; } 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689#include <gmp.h> 5690 #include <mpfr.h> 5691int 5692main () 5693{ 5694 5695 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) 5696 choke me 5697 #endif 5698 5699 ; 5700 return 0; 5701} 5702_ACEOF 5703if ac_fn_c_try_compile "$LINENO"; then : 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705/* end confdefs.h. */ 5706#include <gmp.h> 5707 #include <mpfr.h> 5708int 5709main () 5710{ 5711 5712 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) 5713 choke me 5714 #endif 5715 5716 ; 5717 return 0; 5718} 5719_ACEOF 5720if ac_fn_c_try_compile "$LINENO"; then : 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5722$as_echo "yes" >&6; } 5723else 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5725$as_echo "buggy but acceptable" >&6; } 5726fi 5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5728else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5730$as_echo "no" >&6; }; have_gmp=no 5731fi 5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5733 fi 5734 5735 # Check for the MPC header version. 5736 if test x"$have_gmp" = xyes ; then 5737 # Check for the recommended and required versions of MPC. 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 5739$as_echo_n "checking for the correct version of mpc.h... " >&6; } 5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5741/* end confdefs.h. */ 5742#include <mpc.h> 5743int 5744main () 5745{ 5746 5747 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) 5748 choke me 5749 #endif 5750 5751 ; 5752 return 0; 5753} 5754_ACEOF 5755if ac_fn_c_try_compile "$LINENO"; then : 5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5757/* end confdefs.h. */ 5758#include <mpc.h> 5759int 5760main () 5761{ 5762 5763 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) 5764 choke me 5765 #endif 5766 5767 ; 5768 return 0; 5769} 5770_ACEOF 5771if ac_fn_c_try_compile "$LINENO"; then : 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5773$as_echo "yes" >&6; } 5774else 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5776$as_echo "buggy but acceptable" >&6; } 5777fi 5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5779else 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5781$as_echo "no" >&6; }; have_gmp=no 5782fi 5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5784 fi 5785 5786 # Now check the MPFR library. 5787 if test x"$have_gmp" = xyes; then 5788 saved_LIBS="$LIBS" 5789 LIBS="$LIBS $gmplibs" 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 5791$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } 5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793/* end confdefs.h. */ 5794#include <mpc.h> 5795int 5796main () 5797{ 5798 5799 mpfr_t n; 5800 mpfr_t x; 5801 mpc_t c; 5802 int t; 5803 mpfr_init (n); 5804 mpfr_init (x); 5805 mpfr_atan2 (n, n, x, GMP_RNDN); 5806 mpfr_erfc (n, x, GMP_RNDN); 5807 mpfr_subnormalize (x, t, GMP_RNDN); 5808 mpfr_clear(n); 5809 mpfr_clear(x); 5810 mpc_init2 (c, 53); 5811 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); 5812 mpc_cosh (c, c, MPC_RNDNN); 5813 mpc_pow (c, c, c, MPC_RNDNN); 5814 mpc_acosh (c, c, MPC_RNDNN); 5815 mpc_clear (c); 5816 5817 ; 5818 return 0; 5819} 5820_ACEOF 5821if ac_fn_c_try_link "$LINENO"; then : 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5823$as_echo "yes" >&6; } 5824else 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5826$as_echo "no" >&6; }; have_gmp=no 5827fi 5828rm -f core conftest.err conftest.$ac_objext \ 5829 conftest$ac_exeext conftest.$ac_ext 5830 LIBS="$saved_LIBS" 5831 fi 5832 5833 CFLAGS="$saved_CFLAGS" 5834 5835# The library versions listed in the error message below should match 5836# the HARD-minimums enforced above. 5837 if test x$have_gmp != xyes; then 5838 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. 5839Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify 5840their locations. Source code for these libraries can be found at 5841their respective hosting sites as well as at 5842ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also 5843http://gcc.gnu.org/install/prerequisites.html for additional info. If 5844you obtained GMP, MPFR and/or MPC from a vendor distribution package, 5845make sure that you have installed both the libraries and the header 5846files. They may be located in separate packages." "$LINENO" 5 5847 fi 5848fi 5849 5850# Flags needed for both GMP, MPFR and/or MPC. 5851 5852 5853 5854 5855 5856 5857 5858# Libraries to use for stage1 or when not bootstrapping. 5859 5860# Check whether --with-stage1-libs was given. 5861if test "${with_stage1_libs+set}" = set; then : 5862 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then 5863 stage1_libs= 5864 else 5865 stage1_libs=$withval 5866 fi 5867else 5868 stage1_libs= 5869fi 5870 5871 5872 5873# Linker flags to use for stage1 or when not bootstrapping. 5874 5875# Check whether --with-stage1-ldflags was given. 5876if test "${with_stage1_ldflags+set}" = set; then : 5877 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then 5878 stage1_ldflags= 5879 else 5880 stage1_ldflags=$withval 5881 fi 5882else 5883 stage1_ldflags= 5884 # In stage 1, default to linking libstdc++ and libgcc statically with GCC 5885 # if supported. But if the user explicitly specified the libraries to use, 5886 # trust that they are doing what they want. 5887 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then 5888 stage1_ldflags="-static-libstdc++ -static-libgcc" 5889 fi 5890fi 5891 5892 5893 5894# Libraries to use for stage2 and later builds. 5895 5896# Check whether --with-boot-libs was given. 5897if test "${with_boot_libs+set}" = set; then : 5898 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then 5899 poststage1_libs= 5900 else 5901 poststage1_libs=$withval 5902 fi 5903else 5904 poststage1_libs= 5905fi 5906 5907 5908 5909# Linker flags to use for stage2 and later builds. 5910 5911# Check whether --with-boot-ldflags was given. 5912if test "${with_boot_ldflags+set}" = set; then : 5913 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then 5914 poststage1_ldflags= 5915 else 5916 poststage1_ldflags=$withval 5917 fi 5918else 5919 poststage1_ldflags= 5920 # In stages 2 and 3, default to linking libstdc++ and libgcc 5921 # statically. But if the user explicitly specified the libraries to 5922 # use, trust that they are doing what they want. 5923 if test "$poststage1_libs" = ""; then 5924 poststage1_ldflags="-static-libstdc++ -static-libgcc" 5925 fi 5926fi 5927 5928 5929 5930# GCC GRAPHITE dependency isl. 5931# Basic setup is inlined here, actual checks are in config/isl.m4 5932 5933 5934# Check whether --with-isl was given. 5935if test "${with_isl+set}" = set; then : 5936 withval=$with_isl; 5937fi 5938 5939 5940# Treat --without-isl as a request to disable 5941# GRAPHITE support and skip all following checks. 5942if test "x$with_isl" != "xno"; then 5943 # Check for isl 5944 5945 5946# Check whether --with-isl-include was given. 5947if test "${with_isl_include+set}" = set; then : 5948 withval=$with_isl_include; 5949fi 5950 5951 5952# Check whether --with-isl-lib was given. 5953if test "${with_isl_lib+set}" = set; then : 5954 withval=$with_isl_lib; 5955fi 5956 5957 5958 # Check whether --enable-isl-version-check was given. 5959if test "${enable_isl_version_check+set}" = set; then : 5960 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval 5961else 5962 ENABLE_ISL_CHECK=yes 5963fi 5964 5965 5966 # Initialize isllibs and islinc. 5967 case $with_isl in 5968 no) 5969 isllibs= 5970 islinc= 5971 ;; 5972 "" | yes) 5973 ;; 5974 *) 5975 isllibs="-L$with_isl/lib" 5976 islinc="-I$with_isl/include" 5977 ;; 5978 esac 5979 if test "x${with_isl_include}" != x ; then 5980 islinc="-I$with_isl_include" 5981 fi 5982 if test "x${with_isl_lib}" != x; then 5983 isllibs="-L$with_isl_lib" 5984 fi 5985 if test "x${islinc}" = x && test "x${isllibs}" = x \ 5986 && test -d ${srcdir}/isl; then 5987 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' 5988 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' 5989 ENABLE_ISL_CHECK=no 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 5991$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} 5992 fi 5993 5994 isllibs="${isllibs} -lisl" 5995 5996 5997 5998 if test "${ENABLE_ISL_CHECK}" = yes ; then 5999 _isl_saved_CFLAGS=$CFLAGS 6000 _isl_saved_LDFLAGS=$LDFLAGS 6001 _isl_saved_LIBS=$LIBS 6002 6003 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" 6004 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" 6005 LIBS="${_isl_saved_LIBS} -lisl -lgmp" 6006 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 6008$as_echo_n "checking for isl 0.15 or later... " >&6; } 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011#include <isl/schedule.h> 6012int 6013main () 6014{ 6015isl_options_set_schedule_serialize_sccs (NULL, 0); 6016 ; 6017 return 0; 6018} 6019_ACEOF 6020if ac_fn_c_try_link "$LINENO"; then : 6021 gcc_cv_isl=yes 6022else 6023 gcc_cv_isl=no 6024fi 6025rm -f core conftest.err conftest.$ac_objext \ 6026 conftest$ac_exeext conftest.$ac_ext 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 6028$as_echo "$gcc_cv_isl" >&6; } 6029 6030 if test "${gcc_cv_isl}" = no ; then 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 6032$as_echo "required isl version is 0.15 or later" >&6; } 6033 fi 6034 6035 CFLAGS=$_isl_saved_CFLAGS 6036 LDFLAGS=$_isl_saved_LDFLAGS 6037 LIBS=$_isl_saved_LIBS 6038 fi 6039 6040 6041 6042 6043 6044 6045 if test "x${with_isl}" = xno; then 6046 graphite_requested=no 6047 elif test "x${with_isl}" != x \ 6048 || test "x${with_isl_include}" != x \ 6049 || test "x${with_isl_lib}" != x ; then 6050 graphite_requested=yes 6051 else 6052 graphite_requested=no 6053 fi 6054 6055 6056 6057 if test "${gcc_cv_isl}" = no ; then 6058 isllibs= 6059 islinc= 6060 fi 6061 6062 if test "${graphite_requested}" = yes \ 6063 && test "x${isllibs}" = x \ 6064 && test "x${islinc}" = x ; then 6065 6066 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 6067 fi 6068 6069 6070fi 6071 6072# If the isl check failed, disable builds of in-tree variant of isl 6073if test "x$with_isl" = xno || 6074 test "x$gcc_cv_isl" = xno; then 6075 noconfigdirs="$noconfigdirs isl" 6076 islinc= 6077fi 6078 6079 6080 6081 6082# Check for LTO support. 6083# Check whether --enable-lto was given. 6084if test "${enable_lto+set}" = set; then : 6085 enableval=$enable_lto; enable_lto=$enableval 6086else 6087 enable_lto=yes; default_enable_lto=yes 6088fi 6089 6090 6091 6092 6093 6094target_elf=no 6095case $target in 6096 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ 6097 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ 6098 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ 6099 nvptx-*-none) 6100 target_elf=no 6101 ;; 6102 *) 6103 target_elf=yes 6104 ;; 6105esac 6106 6107if test $target_elf = yes; then : 6108 # ELF platforms build the lto-plugin always. 6109 case $target in 6110 m68010-*) 6111 build_lto_plugin=no;; 6112 *) 6113 build_lto_plugin=yes;; 6114 esac 6115 6116else 6117 if test x"$default_enable_lto" = x"yes" ; then 6118 case $target in 6119 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; 6120 # On other non-ELF platforms, LTO has yet to be validated. 6121 *) enable_lto=no ;; 6122 esac 6123 else 6124 # Apart from ELF platforms, only Windows and Darwin support LTO so far. 6125 # It would also be nice to check the binutils support, but we don't 6126 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just 6127 # warn during gcc/ subconfigure; unless you're bootstrapping with 6128 # -flto it won't be needed until after installation anyway. 6129 case $target in 6130 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; 6131 *) if test x"$enable_lto" = x"yes"; then 6132 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 6133 fi 6134 ;; 6135 esac 6136 fi 6137 # Among non-ELF, only Windows platforms support the lto-plugin so far. 6138 # Build it unless LTO was explicitly disabled. 6139 case $target in 6140 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; 6141 *) ;; 6142 esac 6143 6144fi 6145 6146 6147# Check whether --enable-linker-plugin-configure-flags was given. 6148if test "${enable_linker_plugin_configure_flags+set}" = set; then : 6149 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval 6150else 6151 extra_linker_plugin_configure_flags= 6152fi 6153 6154 6155# Check whether --enable-linker-plugin-flags was given. 6156if test "${enable_linker_plugin_flags+set}" = set; then : 6157 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval 6158else 6159 extra_linker_plugin_flags= 6160fi 6161 6162 6163 6164# Enable --enable-host-shared. 6165# Checked early to determine whether jit is an 'all' language 6166# Check whether --enable-host-shared was given. 6167if test "${enable_host_shared+set}" = set; then : 6168 enableval=$enable_host_shared; host_shared=$enableval 6169else 6170 host_shared=no 6171fi 6172 6173 6174 6175# By default, C and C++ are the only stage 1 languages. 6176stage1_languages=,c, 6177 6178# Target libraries that we bootstrap. 6179bootstrap_target_libs=,target-libgcc, 6180 6181# Figure out what language subdirectories are present. 6182# Look if the user specified --enable-languages="..."; if not, use 6183# the environment variable $LANGUAGES if defined. $LANGUAGES might 6184# go away some day. 6185# NB: embedded tabs in this IF block -- do not untabify 6186if test -d ${srcdir}/gcc; then 6187 if test x"${enable_languages+set}" != xset; then 6188 if test x"${LANGUAGES+set}" = xset; then 6189 enable_languages="${LANGUAGES}" 6190 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 6191 else 6192 enable_languages=default 6193 fi 6194 else 6195 if test x"${enable_languages}" = x || 6196 test x"${enable_languages}" = xyes; 6197 then 6198 echo configure.ac: --enable-languages needs at least one language argument 1>&2 6199 exit 1 6200 fi 6201 fi 6202 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` 6203 6204 # 'f95' is the old name for the 'fortran' language. We issue a warning 6205 # and make the substitution. 6206 case ,${enable_languages}, in 6207 *,f95,*) 6208 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 6209 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` 6210 ;; 6211 esac 6212 6213 # If bootstrapping, C++ must be enabled. 6214 case ",$enable_languages,:$enable_bootstrap" in 6215 *,c++,*:*) ;; 6216 *:yes) 6217 if test -f ${srcdir}/gcc/cp/config-lang.in; then 6218 enable_languages="${enable_languages},c++" 6219 else 6220 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 6221 fi 6222 ;; 6223 esac 6224 6225 # First scan to see if an enabled language requires some other language. 6226 # We assume that a given config-lang.in will list all the language 6227 # front ends it requires, even if some are required indirectly. 6228 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 6229 case ${lang_frag} in 6230 ..) ;; 6231 # The odd quoting in the next line works around 6232 # an apparent bug in bash 1.12 on linux. 6233 ${srcdir}/gcc/[*]/config-lang.in) ;; 6234 *) 6235 # From the config-lang.in, get $language, $lang_requires, and 6236 # $lang_requires_boot_languages. 6237 language= 6238 lang_requires= 6239 lang_requires_boot_languages= 6240 # set srcdir during sourcing lang_frag to the gcc dir. 6241 # Sadly overriding srcdir on the . line doesn't work in plain sh as it 6242 # polutes this shell 6243 saved_srcdir=${srcdir} 6244 srcdir=${srcdir}/gcc . ${lang_frag} 6245 srcdir=${saved_srcdir} 6246 for other in ${lang_requires} ${lang_requires_boot_languages}; do 6247 case ,${enable_languages}, in 6248 *,$other,*) ;; 6249 *,default,*) ;; 6250 *,all,*) ;; 6251 *,$language,*) 6252 echo " \`$other' language required by \`$language'; enabling" 1>&2 6253 enable_languages="${enable_languages},${other}" 6254 ;; 6255 esac 6256 done 6257 for other in ${lang_requires_boot_languages} ; do 6258 if test "$other" != "c"; then 6259 case ,${enable_stage1_languages}, in 6260 *,$other,*) ;; 6261 *,default,*) ;; 6262 *,all,*) ;; 6263 *) 6264 case ,${enable_languages}, in 6265 *,$language,*) 6266 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 6267 enable_stage1_languages="$enable_stage1_languages,${other}" 6268 ;; 6269 esac 6270 ;; 6271 esac 6272 fi 6273 done 6274 ;; 6275 esac 6276 done 6277 6278 new_enable_languages=,c, 6279 6280 # If LTO is enabled, add the LTO front end. 6281 if test "$enable_lto" = "yes" ; then 6282 case ,${enable_languages}, in 6283 *,lto,*) ;; 6284 *) enable_languages="${enable_languages},lto" ;; 6285 esac 6286 if test "${build_lto_plugin}" = "yes" ; then 6287 configdirs="$configdirs lto-plugin" 6288 fi 6289 fi 6290 6291 # If we're building an offloading compiler, add the LTO front end. 6292 if test x"$enable_as_accelerator_for" != x ; then 6293 case ,${enable_languages}, in 6294 *,lto,*) ;; 6295 *) enable_languages="${enable_languages},lto" ;; 6296 esac 6297 fi 6298 6299 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` 6300 potential_languages=,c, 6301 6302 enabled_target_libs= 6303 disabled_target_libs= 6304 6305 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 6306 case ${lang_frag} in 6307 ..) ;; 6308 # The odd quoting in the next line works around 6309 # an apparent bug in bash 1.12 on linux. 6310 ${srcdir}/gcc/[*]/config-lang.in) ;; 6311 *) 6312 # From the config-lang.in, get $language, $target_libs, 6313 # $lang_dirs, $boot_language, and $build_by_default 6314 language= 6315 target_libs= 6316 lang_dirs= 6317 subdir_requires= 6318 boot_language=no 6319 build_by_default=yes 6320 # set srcdir during sourcing. See above about save & restore 6321 saved_srcdir=${srcdir} 6322 srcdir=${srcdir}/gcc . ${lang_frag} 6323 srcdir=${saved_srcdir} 6324 if test x${language} = x; then 6325 echo "${lang_frag} doesn't set \$language." 1>&2 6326 exit 1 6327 fi 6328 6329 if test "$language" = "c++"; then 6330 boot_language=yes 6331 fi 6332 6333 add_this_lang=no 6334 # C is always enabled, so no need to add it again 6335 if test "$language" != "c"; then 6336 case ,${enable_languages}, in 6337 *,${language},*) 6338 # Language was explicitly selected; include it 6339 add_this_lang=yes 6340 ;; 6341 *,all,*) 6342 # All languages are enabled 6343 add_this_lang=all 6344 ;; 6345 *,default,*) 6346 # 'default' was selected, select it if it is a default language 6347 add_this_lang=${build_by_default} 6348 ;; 6349 esac 6350 fi 6351 6352 # Disable languages that need other directories if these aren't available. 6353 for i in $subdir_requires; do 6354 test -f "$srcdir/gcc/$i/config-lang.in" && continue 6355 case ${add_this_lang} in 6356 yes) 6357 # Specifically requested language; tell them. 6358 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 6359 ;; 6360 all) 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 6362$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} 6363 add_this_lang=unsupported 6364 ;; 6365 *) 6366 # Silently disable. 6367 add_this_lang=unsupported 6368 ;; 6369 esac 6370 done 6371 6372 # Disable Ada if no preexisting GNAT is available. 6373 case ${add_this_lang}:${language}:${have_gnat} in 6374 yes:ada:no) 6375 # Specifically requested language; tell them. 6376 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 6377 ;; 6378 all:ada:no) 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 6380$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} 6381 add_this_lang=unsupported 6382 ;; 6383 *:ada:no) 6384 # Silently disable. 6385 add_this_lang=unsupported 6386 ;; 6387 esac 6388 6389 # Disable jit if -enable-host-shared not specified 6390 case ${add_this_lang}:${language}:${host_shared} in 6391 yes:jit:no) 6392 # PR jit/64780: explicitly specify --enable-host-shared 6393 as_fn_error $? " 6394Enabling language \"jit\" requires --enable-host-shared. 6395 6396--enable-host-shared typically slows the rest of the compiler down by 6397a few %, so you must explicitly enable it. 6398 6399If you want to build both the jit and the regular compiler, it is often 6400best to do this via two separate configure/builds, in separate 6401directories, to avoid imposing the performance cost of 6402--enable-host-shared on the regular compiler." "$LINENO" 5 6403 ;; 6404 all:jit:no) 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 6406$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} 6407 add_this_lang=unsupported 6408 ;; 6409 *:jit:no) 6410 # Silently disable. 6411 add_this_lang=unsupported 6412 ;; 6413 esac 6414 6415 # Disable a language that is unsupported by the target. 6416 case "${add_this_lang}: $unsupported_languages " in 6417 no:*) ;; 6418 unsupported:*) ;; 6419 *:*" $language "*) 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 6421$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} 6422 add_this_lang=unsupported 6423 ;; 6424 esac 6425 6426 case $add_this_lang in 6427 unsupported) 6428 # Remove language-dependent dirs. 6429 disabled_target_libs="$disabled_target_libs $target_libs" 6430 noconfigdirs="$noconfigdirs $lang_dirs" 6431 ;; 6432 no) 6433 # Remove language-dependent dirs; still show language as supported. 6434 disabled_target_libs="$disabled_target_libs $target_libs" 6435 noconfigdirs="$noconfigdirs $lang_dirs" 6436 potential_languages="${potential_languages}${language}," 6437 ;; 6438 all|yes) 6439 new_enable_languages="${new_enable_languages}${language}," 6440 potential_languages="${potential_languages}${language}," 6441 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` 6442 enabled_target_libs="$enabled_target_libs $target_libs" 6443 case "${boot_language}:,$enable_stage1_languages," in 6444 yes:* | *:*,$language,* | *:*,yes, | *:*,all,) 6445 # Add to (comma-separated) list of stage 1 languages. 6446 case ",$stage1_languages," in 6447 *,$language,* | ,yes, | ,all,) ;; 6448 *) stage1_languages="${stage1_languages}${language}," ;; 6449 esac 6450 # We need to bootstrap any supporting libraries. 6451 bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," 6452 ;; 6453 esac 6454 ;; 6455 esac 6456 ;; 6457 esac 6458 done 6459 6460 # Add target libraries which are only needed for disabled languages 6461 # to noconfigdirs. 6462 if test -n "$disabled_target_libs"; then 6463 for dir in $disabled_target_libs; do 6464 case " $enabled_target_libs " in 6465 *" ${dir} "*) ;; 6466 *) noconfigdirs="$noconfigdirs $dir" ;; 6467 esac 6468 done 6469 fi 6470 6471 # Check whether --enable-stage1-languages was given. 6472if test "${enable_stage1_languages+set}" = set; then : 6473 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in 6474 ,no,|,,) 6475 # Set it to something that will have no effect in the loop below 6476 enable_stage1_languages=c ;; 6477 ,yes,) 6478 enable_stage1_languages=`echo $new_enable_languages | \ 6479 sed -e "s/^,//" -e "s/,$//" ` ;; 6480 *,all,*) 6481 enable_stage1_languages=`echo ,$enable_stage1_languages, | \ 6482 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; 6483 esac 6484 6485 # Add "good" languages from enable_stage1_languages to stage1_languages, 6486 # while "bad" languages go in missing_languages. Leave no duplicates. 6487 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do 6488 case $potential_languages in 6489 *,$i,*) 6490 case $stage1_languages in 6491 *,$i,*) ;; 6492 *) stage1_languages="$stage1_languages$i," ;; 6493 esac ;; 6494 *) 6495 case $missing_languages in 6496 *,$i,*) ;; 6497 *) missing_languages="$missing_languages$i," ;; 6498 esac ;; 6499 esac 6500 done 6501fi 6502 6503 6504 # Remove leading/trailing commas that were added for simplicity 6505 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` 6506 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` 6507 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` 6508 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` 6509 6510 if test "x$missing_languages" != x; then 6511 as_fn_error $? " 6512The following requested languages could not be built: ${missing_languages} 6513Supported languages are: ${potential_languages}" "$LINENO" 5 6514 fi 6515 if test "x$new_enable_languages" != "x$enable_languages"; then 6516 echo The following languages will be built: ${new_enable_languages} 6517 enable_languages="$new_enable_languages" 6518 fi 6519 6520 6521 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` 6522fi 6523 6524# Handle --disable-<component> generically. 6525for dir in $configdirs $build_configdirs $target_configdirs ; do 6526 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` 6527 varname=`echo $dirname | sed -e s/+/_/g` 6528 if eval test x\${enable_${varname}} "=" xno ; then 6529 noconfigdirs="$noconfigdirs $dir" 6530 fi 6531done 6532 6533# Check for Boehm's garbage collector 6534# Check whether --enable-objc-gc was given. 6535if test "${enable_objc_gc+set}" = set; then : 6536 enableval=$enable_objc_gc; 6537fi 6538 6539 6540# Check whether --with-target-bdw-gc was given. 6541if test "${with_target_bdw_gc+set}" = set; then : 6542 withval=$with_target_bdw_gc; 6543fi 6544 6545 6546# Check whether --with-target-bdw-gc-include was given. 6547if test "${with_target_bdw_gc_include+set}" = set; then : 6548 withval=$with_target_bdw_gc_include; 6549fi 6550 6551 6552# Check whether --with-target-bdw-gc-lib was given. 6553if test "${with_target_bdw_gc_lib+set}" = set; then : 6554 withval=$with_target_bdw_gc_lib; 6555fi 6556 6557 6558case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 6560$as_echo_n "checking for bdw garbage collector... " >&6; } 6561 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 6563$as_echo "using bdw-gc in default locations" >&6; } 6564 else 6565 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then 6566 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 6567 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then 6568 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 6569 else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 6571$as_echo "using paths configured with --with-target-bdw-gc options" >&6; } 6572 fi 6573 fi 6574esac 6575 6576# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ 6577case ,${enable_languages}, in 6578 *,c++,*) 6579 # Disable libitm, libsanitizer if we're not building libstdc++ 6580 case "${noconfigdirs}" in 6581 *target-libstdc++-v3*) 6582 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" 6583 ;; 6584 *) ;; 6585 esac 6586 ;; 6587 *) 6588 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" 6589 ;; 6590esac 6591 6592# Remove the entries in $skipdirs and $noconfigdirs from $configdirs, 6593# $build_configdirs and $target_configdirs. 6594# If we have the source for $noconfigdirs entries, add them to $notsupp. 6595 6596notsupp="" 6597for dir in . $skipdirs $noconfigdirs ; do 6598 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` 6599 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6600 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` 6601 if test -r $srcdir/$dirname/configure ; then 6602 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6603 true 6604 else 6605 notsupp="$notsupp $dir" 6606 fi 6607 fi 6608 fi 6609 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6610 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` 6611 if test -r $srcdir/$dirname/configure ; then 6612 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6613 true 6614 else 6615 notsupp="$notsupp $dir" 6616 fi 6617 fi 6618 fi 6619 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6620 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` 6621 if test -r $srcdir/$dirname/configure ; then 6622 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6623 true 6624 else 6625 notsupp="$notsupp $dir" 6626 fi 6627 fi 6628 fi 6629done 6630 6631# Quietly strip out all directories which aren't configurable in this tree. 6632# This relies on all configurable subdirectories being autoconfiscated, which 6633# is now the case. 6634build_configdirs_all="$build_configdirs" 6635build_configdirs= 6636for i in ${build_configdirs_all} ; do 6637 j=`echo $i | sed -e s/build-//g` 6638 if test -f ${srcdir}/$j/configure ; then 6639 build_configdirs="${build_configdirs} $i" 6640 fi 6641done 6642 6643configdirs_all="$configdirs" 6644configdirs= 6645for i in ${configdirs_all} ; do 6646 if test -f ${srcdir}/$i/configure ; then 6647 configdirs="${configdirs} $i" 6648 fi 6649done 6650 6651target_configdirs_all="$target_configdirs" 6652target_configdirs= 6653for i in ${target_configdirs_all} ; do 6654 j=`echo $i | sed -e s/target-//g` 6655 if test -f ${srcdir}/$j/configure ; then 6656 target_configdirs="${target_configdirs} $i" 6657 fi 6658done 6659 6660# libiberty-linker-plugin is special: it doesn't have its own source directory, 6661# so we have to add it after the preceding checks. 6662if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x 6663then 6664 case " $configdirs " in 6665 *" libiberty "*) 6666 # If we can build libiberty, we can also build libiberty-linker-plugin. 6667 configdirs="$configdirs libiberty-linker-plugin" 6668 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ 6669 --with-libiberty=../libiberty-linker-plugin";; 6670 *) 6671 as_fn_error $? "libiberty missing" "$LINENO" 5;; 6672 esac 6673fi 6674 6675# Sometimes we have special requirements for the host libiberty. 6676extra_host_libiberty_configure_flags= 6677extra_host_zlib_configure_flags= 6678case " $configdirs " in 6679 *" lto-plugin "* | *" libcc1 "*) 6680 # When these are to be built as shared libraries, the same applies to 6681 # libiberty. 6682 extra_host_libiberty_configure_flags=--enable-shared 6683 ;; 6684 *" bfd "*) 6685 # When bfd is to be built as a shared library, the same applies to 6686 # zlib. 6687 if test "$enable_shared" = "yes"; then 6688 extra_host_zlib_configure_flags=--enable-host-shared 6689 fi 6690 ;; 6691esac 6692 6693 6694 6695# Produce a warning message for the subdirs we can't configure. 6696# This isn't especially interesting in the Cygnus tree, but in the individual 6697# FSF releases, it's important to let people know when their machine isn't 6698# supported by the one or two programs in a package. 6699 6700if test -n "${notsupp}" && test -z "${norecursion}" ; then 6701 # If $appdirs is non-empty, at least one of those directories must still 6702 # be configured, or we error out. (E.g., if the gas release supports a 6703 # specified target in some subdirs but not the gas subdir, we shouldn't 6704 # pretend that all is well.) 6705 if test -n "$appdirs" ; then 6706 for dir in $appdirs ; do 6707 if test -r $dir/Makefile.in ; then 6708 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6709 appdirs="" 6710 break 6711 fi 6712 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then 6713 appdirs="" 6714 break 6715 fi 6716 fi 6717 done 6718 if test -n "$appdirs" ; then 6719 echo "*** This configuration is not supported by this package." 1>&2 6720 exit 1 6721 fi 6722 fi 6723 # Okay, some application will build, or we don't care to check. Still 6724 # notify of subdirs not getting built. 6725 echo "*** This configuration is not supported in the following subdirectories:" 1>&2 6726 echo " ${notsupp}" 1>&2 6727 echo " (Any other directories should still work fine.)" 1>&2 6728fi 6729 6730case "$host" in 6731 *msdosdjgpp*) 6732 enable_gdbtk=no ;; 6733esac 6734 6735# To find our prefix, in gcc_cv_tool_prefix. 6736 6737# The user is always right. 6738if test "${PATH_SEPARATOR+set}" != set; then 6739 echo "#! /bin/sh" >conf$$.sh 6740 echo "exit 0" >>conf$$.sh 6741 chmod +x conf$$.sh 6742 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6743 PATH_SEPARATOR=';' 6744 else 6745 PATH_SEPARATOR=: 6746 fi 6747 rm -f conf$$.sh 6748fi 6749 6750 6751 get_gcc_base_ver="cat" 6752 6753# Check whether --with-gcc-major-version-only was given. 6754if test "${with_gcc_major_version_only+set}" = set; then : 6755 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 6756 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 6757 fi 6758 6759fi 6760 6761 6762 6763 6764 6765 6766if test "x$exec_prefix" = xNONE; then 6767 if test "x$prefix" = xNONE; then 6768 gcc_cv_tool_prefix=$ac_default_prefix 6769 else 6770 gcc_cv_tool_prefix=$prefix 6771 fi 6772else 6773 gcc_cv_tool_prefix=$exec_prefix 6774fi 6775 6776# If there is no compiler in the tree, use the PATH only. In any 6777# case, if there is no compiler in the tree nobody should use 6778# AS_FOR_TARGET and LD_FOR_TARGET. 6779if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then 6780 if test x$with_gcc_major_version_only = xyes ; then 6781 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` 6782 else 6783 gcc_version=`cat $srcdir/gcc/BASE-VER` 6784 fi 6785 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6786 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" 6787 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6788 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" 6789 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" 6791else 6792 gcc_cv_tool_dirs= 6793fi 6794 6795if test x$build = x$target && test -n "$md_exec_prefix"; then 6796 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" 6797fi 6798 6799 6800 6801copy_dirs= 6802 6803 6804# Check whether --with-build-sysroot was given. 6805if test "${with_build_sysroot+set}" = set; then : 6806 withval=$with_build_sysroot; if test x"$withval" != x ; then 6807 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" 6808 fi 6809else 6810 SYSROOT_CFLAGS_FOR_TARGET= 6811fi 6812 6813 6814 6815 6816# Check whether --with-debug-prefix-map was given. 6817if test "${with_debug_prefix_map+set}" = set; then : 6818 withval=$with_debug_prefix_map; if test x"$withval" != x; then 6819 DEBUG_PREFIX_CFLAGS_FOR_TARGET= 6820 for debug_map in $withval; do 6821 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" 6822 done 6823 fi 6824else 6825 DEBUG_PREFIX_CFLAGS_FOR_TARGET= 6826fi 6827 6828 6829 6830# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS 6831# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS 6832# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). 6833# We want to ensure that TARGET libraries (which we know are built with 6834# gcc) are built with "-O2 -g", so include those options when setting 6835# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. 6836if test "x$CFLAGS_FOR_TARGET" = x; then 6837 if test "x${is_cross_compiler}" = xyes; then 6838 CFLAGS_FOR_TARGET="-g -O2" 6839 else 6840 CFLAGS_FOR_TARGET=$CFLAGS 6841 case " $CFLAGS " in 6842 *" -O2 "*) ;; 6843 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; 6844 esac 6845 case " $CFLAGS " in 6846 *" -g "* | *" -g3 "*) ;; 6847 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; 6848 esac 6849 fi 6850fi 6851 6852 6853if test "x$CXXFLAGS_FOR_TARGET" = x; then 6854 if test "x${is_cross_compiler}" = xyes; then 6855 CXXFLAGS_FOR_TARGET="-g -O2" 6856 else 6857 CXXFLAGS_FOR_TARGET=$CXXFLAGS 6858 case " $CXXFLAGS " in 6859 *" -O2 "*) ;; 6860 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; 6861 esac 6862 case " $CXXFLAGS " in 6863 *" -g "* | *" -g3 "*) ;; 6864 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; 6865 esac 6866 fi 6867fi 6868 6869 6870 6871 6872# Handle --with-headers=XXX. If the value is not "yes", the contents of 6873# the named directory are copied to $(tooldir)/sys-include. 6874if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then 6875 if test x${is_cross_compiler} = xno ; then 6876 echo 1>&2 '***' --with-headers is only supported when cross compiling 6877 exit 1 6878 fi 6879 if test x"${with_headers}" != xyes ; then 6880 x=${gcc_cv_tool_prefix} 6881 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" 6882 fi 6883fi 6884 6885# Handle --with-libs=XXX. If the value is not "yes", the contents of 6886# the name directories are copied to $(tooldir)/lib. Multiple directories 6887# are permitted. 6888if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 6889 if test x${is_cross_compiler} = xno ; then 6890 echo 1>&2 '***' --with-libs is only supported when cross compiling 6891 exit 1 6892 fi 6893 if test x"${with_libs}" != xyes ; then 6894 # Copy the libraries in reverse order, so that files in the first named 6895 # library override files in subsequent libraries. 6896 x=${gcc_cv_tool_prefix} 6897 for l in ${with_libs}; do 6898 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" 6899 done 6900 fi 6901fi 6902 6903# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. 6904# 6905# This is done by determining whether or not the appropriate directory 6906# is available, and by checking whether or not specific configurations 6907# have requested that this magic not happen. 6908# 6909# The command line options always override the explicit settings in 6910# configure.ac, and the settings in configure.ac override this magic. 6911# 6912# If the default for a toolchain is to use GNU as and ld, and you don't 6913# want to do that, then you should use the --without-gnu-as and 6914# --without-gnu-ld options for the configure script. Similarly, if 6915# the default is to use the included zlib and you don't want to do that, 6916# you should use the --with-system-zlib option for the configure script. 6917 6918if test x${use_gnu_as} = x && 6919 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then 6920 with_gnu_as=yes 6921 extra_host_args="$extra_host_args --with-gnu-as" 6922fi 6923 6924if test x${use_gnu_ld} = x && 6925 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then 6926 with_gnu_ld=yes 6927 extra_host_args="$extra_host_args --with-gnu-ld" 6928fi 6929 6930if test x${use_included_zlib} = x && 6931 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then 6932 : 6933else 6934 with_system_zlib=yes 6935 extra_host_args="$extra_host_args --with-system-zlib" 6936fi 6937 6938# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure 6939# can detect this case. 6940 6941if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then 6942 with_newlib=yes 6943 extra_host_args="$extra_host_args --with-newlib" 6944fi 6945 6946# Handle ${copy_dirs} 6947set fnord ${copy_dirs} 6948shift 6949while test $# != 0 ; do 6950 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then 6951 : 6952 else 6953 echo Copying $1 to $2 6954 6955 # Use the install script to create the directory and all required 6956 # parent directories. 6957 if test -d $2 ; then 6958 : 6959 else 6960 echo >config.temp 6961 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED 6962 fi 6963 6964 # Copy the directory, assuming we have tar. 6965 # FIXME: Should we use B in the second tar? Not all systems support it. 6966 (cd $1; tar -cf - .) | (cd $2; tar -xpf -) 6967 6968 # It is the responsibility of the user to correctly adjust all 6969 # symlinks. If somebody can figure out how to handle them correctly 6970 # here, feel free to add the code. 6971 6972 echo $1 > $2/COPIED 6973 fi 6974 shift; shift 6975done 6976 6977# Determine a target-dependent exec_prefix that the installed 6978# gcc will search in. Keep this list sorted by triplet, with 6979# the *-*-osname triplets last. 6980md_exec_prefix= 6981case "${target}" in 6982 i[34567]86-pc-msdosdjgpp*) 6983 md_exec_prefix=/dev/env/DJDIR/bin 6984 ;; 6985 *-*-hpux* | \ 6986 *-*-nto-qnx* | \ 6987 *-*-solaris2*) 6988 md_exec_prefix=/usr/ccs/bin 6989 ;; 6990esac 6991 6992extra_arflags_for_target= 6993extra_nmflags_for_target= 6994extra_ranlibflags_for_target= 6995target_makefile_frag=/dev/null 6996case "${target}" in 6997 spu-*-*) 6998 target_makefile_frag="config/mt-spu" 6999 ;; 7000 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 7001 target_makefile_frag="config/mt-sde" 7002 ;; 7003 mipsisa*-*-elfoabi*) 7004 target_makefile_frag="config/mt-mips-elfoabi" 7005 ;; 7006 mips*-*-*linux* | mips*-*-gnu*) 7007 target_makefile_frag="config/mt-mips-gnu" 7008 ;; 7009 nios2-*-elf*) 7010 target_makefile_frag="config/mt-nios2-elf" 7011 ;; 7012 *-*-linux-android*) 7013 target_makefile_frag="config/mt-android" 7014 ;; 7015 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 7016 target_makefile_frag="config/mt-gnu" 7017 ;; 7018 *-*-aix4.[3456789]* | *-*-aix[56789].*) 7019 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 7020 # commands to handle both 32-bit and 64-bit objects. These flags are 7021 # harmless if we're using GNU nm or ar. 7022 extra_arflags_for_target=" -X32_64" 7023 extra_nmflags_for_target=" -B -X32_64" 7024 ;; 7025esac 7026 7027alphaieee_frag=/dev/null 7028case $target in 7029 alpha*-*-*) 7030 # This just makes sure to use the -mieee option to build target libs. 7031 # This should probably be set individually by each library. 7032 alphaieee_frag="config/mt-alphaieee" 7033 ;; 7034esac 7035 7036# If --enable-target-optspace always use -Os instead of -O2 to build 7037# the target libraries, similarly if it is not specified, use -Os 7038# on selected platforms. 7039ospace_frag=/dev/null 7040case "${enable_target_optspace}:${target}" in 7041 yes:*) 7042 ospace_frag="config/mt-ospace" 7043 ;; 7044 :d30v-*) 7045 ospace_frag="config/mt-d30v" 7046 ;; 7047 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) 7048 ospace_frag="config/mt-ospace" 7049 ;; 7050 no:* | :*) 7051 ;; 7052 *) 7053 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 7054 ;; 7055esac 7056 7057# Some systems (e.g., one of the i386-aix systems the gas testers are 7058# using) don't handle "\$" correctly, so don't use it here. 7059tooldir='${exec_prefix}'/${target_noncanonical} 7060build_tooldir=${tooldir} 7061 7062# Create a .gdbinit file which runs the one in srcdir 7063# and tells GDB to look there for source files. 7064 7065if test -r ${srcdir}/.gdbinit ; then 7066 case ${srcdir} in 7067 .) ;; 7068 *) cat > ./.gdbinit <<EOF 7069# ${NO_EDIT} 7070dir ${srcdir} 7071dir . 7072source ${srcdir}/.gdbinit 7073EOF 7074 ;; 7075 esac 7076fi 7077 7078# Make sure that the compiler is able to generate an executable. If it 7079# can't, we are probably in trouble. We don't care whether we can run the 7080# executable--we might be using a cross compiler--we only care whether it 7081# can be created. At this point the main configure script has set CC. 7082we_are_ok=no 7083echo "int main () { return 0; }" > conftest.c 7084${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 7085if test $? = 0 ; then 7086 if test -s conftest || test -s conftest.exe ; then 7087 we_are_ok=yes 7088 fi 7089fi 7090case $we_are_ok in 7091 no) 7092 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." 7093 echo 1>&2 "*** You must set the environment variable CC to a working compiler." 7094 rm -f conftest* 7095 exit 1 7096 ;; 7097esac 7098rm -f conftest* 7099 7100# Decide which environment variable is used to find dynamic libraries. 7101case "${host}" in 7102 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; 7103 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; 7104 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; 7105 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; 7106esac 7107 7108# On systems where the dynamic library environment variable is PATH, 7109# gcc/ will put dynamic libraries into a subdirectory to avoid adding 7110# built executables to PATH. 7111if test "$RPATH_ENVVAR" = PATH; then 7112 GCC_SHLIB_SUBDIR=/shlib 7113else 7114 GCC_SHLIB_SUBDIR= 7115fi 7116 7117# Adjust the toplevel makefile according to whether bootstrap was selected. 7118case $enable_bootstrap in 7119 yes) 7120 bootstrap_suffix=bootstrap 7121 BUILD_CONFIG=bootstrap-debug 7122 ;; 7123 no) 7124 bootstrap_suffix=no-bootstrap 7125 BUILD_CONFIG= 7126 ;; 7127esac 7128 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 7130$as_echo_n "checking for default BUILD_CONFIG... " >&6; } 7131 7132 7133# Check whether --with-build-config was given. 7134if test "${with_build_config+set}" = set; then : 7135 withval=$with_build_config; case $with_build_config in 7136 yes) with_build_config= ;; 7137 no) with_build_config= BUILD_CONFIG= ;; 7138 esac 7139fi 7140 7141 7142if test "x${with_build_config}" != x; then 7143 BUILD_CONFIG=$with_build_config 7144else 7145 case $BUILD_CONFIG in 7146 bootstrap-debug) 7147 if echo "int f (void) { return 0; }" > conftest.c && 7148 ${CC} -c conftest.c && 7149 mv conftest.o conftest.o.g0 && 7150 ${CC} -c -g conftest.c && 7151 mv conftest.o conftest.o.g && 7152 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then 7153 : 7154 else 7155 BUILD_CONFIG= 7156 fi 7157 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g 7158 ;; 7159 esac 7160fi 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 7162$as_echo "$BUILD_CONFIG" >&6; } 7163 7164 7165# Use same top-level configure hooks in libgcc/libstdc++/libvtv. 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 7167$as_echo_n "checking for --enable-vtable-verify... " >&6; } 7168# Check whether --enable-vtable-verify was given. 7169if test "${enable_vtable_verify+set}" = set; then : 7170 enableval=$enable_vtable_verify; case "$enableval" in 7171 yes) enable_vtable_verify=yes ;; 7172 no) enable_vtable_verify=no ;; 7173 *) enable_vtable_verify=no;; 7174 esac 7175else 7176 enable_vtable_verify=no 7177fi 7178 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 7180$as_echo "$enable_vtable_verify" >&6; } 7181 7182# Record target_configdirs and the configure arguments for target and 7183# build configuration in Makefile. 7184target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 7185build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` 7186bootstrap_fixincludes=no 7187 7188# If we are building libgomp, bootstrap it. 7189if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then 7190 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, 7191fi 7192 7193# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan 7194# or bootstrap-ubsan, bootstrap it. 7195if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then 7196 case "$BUILD_CONFIG" in 7197 *bootstrap-asan* | *bootstrap-ubsan* ) 7198 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, 7199 bootstrap_fixincludes=yes 7200 ;; 7201 esac 7202fi 7203 7204# If we are building libvtv and --enable-vtable-verify, bootstrap it. 7205if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && 7206 test "$enable_vtable_verify" != no; then 7207 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, 7208fi 7209 7210# Determine whether gdb needs tk/tcl or not. 7211# Use 'maybe' since enable_gdbtk might be true even if tk isn't available 7212# and in that case we want gdb to be built without tk. Ugh! 7213# In fact I believe gdb is the *only* package directly dependent on tk, 7214# so we should be able to put the 'maybe's in unconditionally and 7215# leave out the maybe dependencies when enable_gdbtk is false. I'm not 7216# 100% sure that that's safe though. 7217 7218gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" 7219case "$enable_gdbtk" in 7220 no) 7221 GDB_TK="" ;; 7222 yes) 7223 GDB_TK="${gdb_tk}" ;; 7224 *) 7225 # Only add the dependency on gdbtk when GDBtk is part of the gdb 7226 # distro. Eventually someone will fix this and move Insight, nee 7227 # gdbtk to a separate directory. 7228 if test -d ${srcdir}/gdb/gdbtk ; then 7229 GDB_TK="${gdb_tk}" 7230 else 7231 GDB_TK="" 7232 fi 7233 ;; 7234esac 7235CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` 7236INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` 7237 7238# Strip out unwanted targets. 7239 7240# While at that, we remove Makefiles if we were started for recursive 7241# configuration, so that the top-level Makefile reconfigures them, 7242# like we used to do when configure itself was recursive. 7243 7244# Loop over modules. We used to use the "$extrasub" feature from Autoconf 7245# but now we're fixing up the Makefile ourselves with the additional 7246# commands passed to AC_CONFIG_FILES. Use separate variables 7247# extrasub-{build,host,target} not because there is any reason to split 7248# the substitutions up that way, but only to remain below the limit of 7249# 99 commands in a script, for HP-UX sed. 7250 7251# Do not nest @if/@endif or @unless/@endunless pairs, because 7252# configure will not warn you at all. 7253 7254case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in 7255 yes:yes:*\ gold\ *:*,c++,*) ;; 7256 yes:yes:*\ gold\ *:*) 7257 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 7258 ;; 7259esac 7260 7261extrasub_build= 7262for module in ${build_configdirs} ; do 7263 if test -z "${no_recursion}" \ 7264 && test -f ${build_subdir}/${module}/Makefile; then 7265 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" 7266 rm -f ${build_subdir}/${module}/Makefile 7267 fi 7268 extrasub_build="$extrasub_build 7269/^@if build-$module\$/d 7270/^@endif build-$module\$/d 7271/^@unless build-$module\$/,/^@endunless build-$module\$/d 7272/^@if build-$module-$bootstrap_suffix\$/d 7273/^@endif build-$module-$bootstrap_suffix\$/d 7274/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" 7275done 7276extrasub_host= 7277for module in ${configdirs} ; do 7278 if test -z "${no_recursion}"; then 7279 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do 7280 if test -f ${file}; then 7281 echo 1>&2 "*** removing ${file} to force reconfigure" 7282 rm -f ${file} 7283 fi 7284 done 7285 fi 7286 case ${module},${bootstrap_fixincludes} in 7287 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; 7288 *) host_bootstrap_suffix=$bootstrap_suffix ;; 7289 esac 7290 extrasub_host="$extrasub_host 7291/^@if $module\$/d 7292/^@endif $module\$/d 7293/^@unless $module\$/,/^@endunless $module\$/d 7294/^@if $module-$host_bootstrap_suffix\$/d 7295/^@endif $module-$host_bootstrap_suffix\$/d 7296/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" 7297done 7298extrasub_target= 7299for module in ${target_configdirs} ; do 7300 if test -z "${no_recursion}" \ 7301 && test -f ${target_subdir}/${module}/Makefile; then 7302 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" 7303 rm -f ${target_subdir}/${module}/Makefile 7304 fi 7305 7306 # We only bootstrap target libraries listed in bootstrap_target_libs. 7307 case $bootstrap_target_libs in 7308 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; 7309 *) target_bootstrap_suffix=no-bootstrap ;; 7310 esac 7311 7312 extrasub_target="$extrasub_target 7313/^@if target-$module\$/d 7314/^@endif target-$module\$/d 7315/^@unless target-$module\$/,/^@endunless target-$module\$/d 7316/^@if target-$module-$target_bootstrap_suffix\$/d 7317/^@endif target-$module-$target_bootstrap_suffix\$/d 7318/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" 7319done 7320 7321# Do the final fixup along with target modules. 7322extrasub_target="$extrasub_target 7323/^@if /,/^@endif /d 7324/^@unless /d 7325/^@endunless /d" 7326 7327# Create the serialization dependencies. This uses a temporary file. 7328 7329# Check whether --enable-serial-configure was given. 7330if test "${enable_serial_configure+set}" = set; then : 7331 enableval=$enable_serial_configure; 7332fi 7333 7334 7335case ${enable_serial_configure} in 7336 yes) 7337 enable_serial_build_configure=yes 7338 enable_serial_host_configure=yes 7339 enable_serial_target_configure=yes 7340 ;; 7341esac 7342 7343# These force 'configure's to be done one at a time, to avoid problems 7344# with contention over a shared config.cache. 7345rm -f serdep.tmp 7346echo '# serdep.tmp' > serdep.tmp 7347olditem= 7348test "x${enable_serial_build_configure}" = xyes && 7349for item in ${build_configdirs} ; do 7350 case ${olditem} in 7351 "") ;; 7352 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; 7353 esac 7354 olditem=${item} 7355done 7356olditem= 7357test "x${enable_serial_host_configure}" = xyes && 7358for item in ${configdirs} ; do 7359 case ${olditem} in 7360 "") ;; 7361 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; 7362 esac 7363 olditem=${item} 7364done 7365olditem= 7366test "x${enable_serial_target_configure}" = xyes && 7367for item in ${target_configdirs} ; do 7368 case ${olditem} in 7369 "") ;; 7370 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; 7371 esac 7372 olditem=${item} 7373done 7374serialization_dependencies=serdep.tmp 7375 7376 7377# Base args. Strip norecursion, cache-file, srcdir, host, build, 7378# target, nonopt, and variable assignments. These are the ones we 7379# might not want to pass down to subconfigures. The exception being 7380# --cache-file=/dev/null, which is used to turn off the use of cache 7381# files altogether, and which should be passed on to subconfigures. 7382# Also strip program-prefix, program-suffix, and program-transform-name, 7383# so that we can pass down a consistent program-transform-name. 7384baseargs= 7385tbaseargs= 7386keep_next=no 7387skip_next=no 7388eval "set -- $ac_configure_args" 7389for ac_arg 7390do 7391 if test X"$skip_next" = X"yes"; then 7392 skip_next=no 7393 continue 7394 fi 7395 if test X"$keep_next" = X"yes"; then 7396 case $ac_arg in 7397 *\'*) 7398 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 7399 esac 7400 baseargs="$baseargs '$ac_arg'" 7401 tbaseargs="$tbaseargs '$ac_arg'" 7402 keep_next=no 7403 continue 7404 fi 7405 7406 # Handle separated arguments. Based on the logic generated by 7407 # autoconf 2.59. 7408 case $ac_arg in 7409 *=* | --config-cache | -C | -disable-* | --disable-* \ 7410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 7411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 7412 | -with-* | --with-* | -without-* | --without-* | --x) 7413 separate_arg=no 7414 ;; 7415 -*) 7416 separate_arg=yes 7417 ;; 7418 *) 7419 separate_arg=no 7420 ;; 7421 esac 7422 7423 skip_targ=no 7424 case $ac_arg in 7425 7426 --with-* | --without-*) 7427 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` 7428 7429 case $libopt in 7430 *[-_]include) 7431 lib=`echo "$libopt" | sed 's,[-_]include$,,'` 7432 ;; 7433 *[-_]lib) 7434 lib=`echo "$libopt" | sed 's,[-_]lib$,,'` 7435 ;; 7436 *) 7437 lib=$libopt 7438 ;; 7439 esac 7440 7441 7442 case $lib in 7443 mpc | mpfr | gmp | isl) 7444 # If we're processing --with-$lib, --with-$lib-include or 7445 # --with-$lib-lib, for one of the libs above, and target is 7446 # different from host, don't pass the current argument to any 7447 # target library's configure. 7448 if test x$is_cross_compiler = xyes; then 7449 skip_targ=yes 7450 fi 7451 ;; 7452 esac 7453 ;; 7454 esac 7455 7456 case "$ac_arg" in 7457 --cache-file=/dev/null | \ 7458 -cache-file=/dev/null ) 7459 # Handled here to avoid the test to skip args below. 7460 baseargs="$baseargs '$ac_arg'" 7461 tbaseargs="$tbaseargs '$ac_arg'" 7462 # Assert: $separate_arg should always be no. 7463 keep_next=$separate_arg 7464 ;; 7465 --no*) 7466 continue 7467 ;; 7468 --c* | \ 7469 --sr* | \ 7470 --ho* | \ 7471 --bu* | \ 7472 --t* | \ 7473 --program-* | \ 7474 -cache_file* | \ 7475 -srcdir* | \ 7476 -host* | \ 7477 -build* | \ 7478 -target* | \ 7479 -program-prefix* | \ 7480 -program-suffix* | \ 7481 -program-transform-name* ) 7482 skip_next=$separate_arg 7483 continue 7484 ;; 7485 -*) 7486 # An option. Add it. 7487 case $ac_arg in 7488 *\'*) 7489 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 7490 esac 7491 baseargs="$baseargs '$ac_arg'" 7492 if test X"$skip_targ" = Xno; then 7493 tbaseargs="$tbaseargs '$ac_arg'" 7494 fi 7495 keep_next=$separate_arg 7496 ;; 7497 *) 7498 # Either a variable assignment, or a nonopt (triplet). Don't 7499 # pass it down; let the Makefile handle this. 7500 continue 7501 ;; 7502 esac 7503done 7504# Remove the initial space we just introduced and, as these will be 7505# expanded by make, quote '$'. 7506baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 7507 7508# Add in --program-transform-name, after --program-prefix and 7509# --program-suffix have been applied to it. Autoconf has already 7510# doubled dollar signs and backslashes in program_transform_name; we want 7511# the backslashes un-doubled, and then the entire thing wrapped in single 7512# quotes, because this will be expanded first by make and then by the shell. 7513# Also, because we want to override the logic in subdir configure scripts to 7514# choose program_transform_name, replace any s,x,x, with s,y,y,. 7515sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out 7516${program_transform_name} 7517EOF_SED 7518gcc_transform_name=`cat conftestsed.out` 7519rm -f conftestsed.out 7520baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" 7521tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" 7522if test "$silent" = yes; then 7523 baseargs="$baseargs --silent" 7524 tbaseargs="$tbaseargs --silent" 7525fi 7526baseargs="$baseargs --disable-option-checking" 7527tbaseargs="$tbaseargs --disable-option-checking" 7528 7529# Record and document user additions to sub configure arguments. 7530 7531 7532 7533 7534# For the build-side libraries, we just need to pretend we're native, 7535# and not use the same cache file. Multilibs are neither needed nor 7536# desired. We can't even use the same cache file for all build-side 7537# libraries, as they're compiled differently; some with C, some with 7538# C++ or with different feature-enabling options. 7539build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" 7540 7541# For host modules, accept cache file option, or specification as blank. 7542case "${cache_file}" in 7543"") # empty 7544 cache_file_option="" ;; 7545/* | [A-Za-z]:[\\/]* ) # absolute path 7546 cache_file_option="--cache-file=${cache_file}" ;; 7547*) # relative path 7548 cache_file_option="--cache-file=../${cache_file}" ;; 7549esac 7550 7551# Host dirs don't like to share a cache file either, horribly enough. 7552# This seems to be due to autoconf 2.5x stupidity. 7553host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" 7554 7555target_configargs="$target_configargs ${tbaseargs}" 7556 7557# Passing a --with-cross-host argument lets the target libraries know 7558# whether they are being built with a cross-compiler or being built 7559# native. However, it would be better to use other mechanisms to make the 7560# sorts of decisions they want to make on this basis. Please consider 7561# this option to be deprecated. FIXME. 7562if test x${is_cross_compiler} = xyes ; then 7563 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" 7564fi 7565 7566# Special user-friendly check for native x86_64-linux build, if 7567# multilib is not explicitly enabled. 7568case "$target:$have_compiler:$host:$target:$enable_multilib" in 7569 x86_64-*linux*:yes:$build:$build:) 7570 # Make sure we have a development environment that handles 32-bit 7571 dev64=no 7572 echo "int main () { return 0; }" > conftest.c 7573 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 7574 if test $? = 0 ; then 7575 if test -s conftest || test -s conftest.exe ; then 7576 dev64=yes 7577 fi 7578 fi 7579 rm -f conftest* 7580 if test x${dev64} != xyes ; then 7581 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 7582 fi 7583 ;; 7584esac 7585 7586# Default to --enable-multilib. 7587if test x${enable_multilib} = x ; then 7588 target_configargs="--enable-multilib ${target_configargs}" 7589fi 7590 7591# Pass --with-newlib if appropriate. Note that target_configdirs has 7592# changed from the earlier setting of with_newlib. 7593if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then 7594 target_configargs="--with-newlib ${target_configargs}" 7595fi 7596 7597# Different target subdirs use different values of certain variables 7598# (notably CXX). Worse, multilibs use *lots* of different values. 7599# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that 7600# it doesn't automatically accept command-line overrides of them. 7601# This means it's not safe for target subdirs to share a cache file, 7602# which is disgusting, but there you have it. Hopefully this can be 7603# fixed in future. It's still worthwhile to use a cache file for each 7604# directory. I think. 7605 7606# Pass the appropriate --build, --host, --target and --cache-file arguments. 7607# We need to pass --target, as newer autoconf's requires consistency 7608# for target_alias and gcc doesn't manage it consistently. 7609target_configargs="--cache-file=./config.cache ${target_configargs}" 7610 7611FLAGS_FOR_TARGET= 7612case " $target_configdirs " in 7613 *" newlib "*) 7614 case " $target_configargs " in 7615 *" --with-newlib "*) 7616 case "$target" in 7617 *-cygwin*) 7618 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' 7619 ;; 7620 esac 7621 7622 # If we're not building GCC, don't discard standard headers. 7623 if test -d ${srcdir}/gcc; then 7624 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' 7625 7626 if test "${build}" != "${host}"; then 7627 # On Canadian crosses, CC_FOR_TARGET will have already been set 7628 # by `configure', so we won't have an opportunity to add -Bgcc/ 7629 # to it. This is right: we don't want to search that directory 7630 # for binaries, but we want the header files in there, so add 7631 # them explicitly. 7632 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' 7633 7634 # Someone might think of using the pre-installed headers on 7635 # Canadian crosses, in case the installed compiler is not fully 7636 # compatible with the compiler being built. In this case, it 7637 # would be better to flag an error than risking having 7638 # incompatible object files being constructed. We can't 7639 # guarantee that an error will be flagged, but let's hope the 7640 # compiler will do it, when presented with incompatible header 7641 # files. 7642 fi 7643 fi 7644 7645 case "${target}-${is_cross_compiler}" in 7646 i[3456789]86-*-linux*-no) 7647 # Here host == target, so we don't need to build gcc, 7648 # so we don't want to discard standard headers. 7649 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` 7650 ;; 7651 *) 7652 # If we're building newlib, use its generic headers last, but search 7653 # for any libc-related directories first (so make it the last -B 7654 # switch). 7655 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' 7656 7657 # If we're building libgloss, find the startup file, simulator library 7658 # and linker script. 7659 case " $target_configdirs " in 7660 *" libgloss "*) 7661 # Look for startup file, simulator library and maybe linker script. 7662 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" 7663 # Look for libnosys.a in case the target needs it. 7664 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' 7665 # Most targets have the linker script in the source directory. 7666 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" 7667 ;; 7668 esac 7669 ;; 7670 esac 7671 ;; 7672 esac 7673 ;; 7674esac 7675 7676case "$target" in 7677 x86_64-*mingw* | *-w64-mingw*) 7678 # MinGW-w64 does not use newlib, nor does it use winsup. It may, 7679 # however, use a symlink named 'mingw' in ${prefix} . 7680 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' 7681 ;; 7682 *-mingw*) 7683 # MinGW can't be handled as Cygwin above since it does not use newlib. 7684 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' 7685 ;; 7686esac 7687 7688# Allow the user to override the flags for 7689# our build compiler if desired. 7690if test x"${build}" = x"${host}" ; then 7691 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 7692 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} 7693 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} 7694fi 7695 7696# On Canadian crosses, we'll be searching the right directories for 7697# the previously-installed cross compiler, so don't bother to add 7698# flags for directories within the install tree of the compiler 7699# being built; programs in there won't even run. 7700if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then 7701 # Search for pre-installed headers if nothing else fits. 7702 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' 7703fi 7704 7705if test "x${use_gnu_ld}" = x && 7706 echo " ${configdirs} " | grep " ld " > /dev/null ; then 7707 # Arrange for us to find uninstalled linker scripts. 7708 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' 7709fi 7710 7711# Search for other target-specific linker scripts and such. 7712case "${target}" in 7713 mep*) 7714 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" 7715 ;; 7716esac 7717 7718# Makefile fragments. 7719for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; 7720do 7721 eval fragval=\$$frag 7722 if test $fragval != /dev/null; then 7723 eval $frag=${srcdir}/$fragval 7724 fi 7725done 7726 7727 7728 7729 7730 7731# Miscellanea: directories, flags, etc. 7732 7733 7734 7735 7736 7737 7738 7739 7740# Build module lists & subconfigure args. 7741 7742 7743 7744# Host module lists & subconfigure args. 7745 7746 7747 7748 7749# Target module lists & subconfigure args. 7750 7751 7752 7753# Build tools. 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771# Generate default definitions for YACC, M4, LEX and other programs that run 7772# on the build machine. These are used if the Makefile can't locate these 7773# programs in objdir. 7774MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 7775 7776for ac_prog in 'bison -y' byacc yacc 7777do 7778 # Extract the first word of "$ac_prog", so it can be a program name with args. 7779set dummy $ac_prog; ac_word=$2 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7781$as_echo_n "checking for $ac_word... " >&6; } 7782if ${ac_cv_prog_YACC+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 if test -n "$YACC"; then 7786 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7787else 7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7789for as_dir in $PATH 7790do 7791 IFS=$as_save_IFS 7792 test -z "$as_dir" && as_dir=. 7793 for ac_exec_ext in '' $ac_executable_extensions; do 7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7795 ac_cv_prog_YACC="$ac_prog" 7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7797 break 2 7798 fi 7799done 7800 done 7801IFS=$as_save_IFS 7802 7803fi 7804fi 7805YACC=$ac_cv_prog_YACC 7806if test -n "$YACC"; then 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7808$as_echo "$YACC" >&6; } 7809else 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7811$as_echo "no" >&6; } 7812fi 7813 7814 7815 test -n "$YACC" && break 7816done 7817test -n "$YACC" || YACC="$MISSING bison -y" 7818 7819case " $build_configdirs " in 7820 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; 7821esac 7822 7823for ac_prog in bison 7824do 7825 # Extract the first word of "$ac_prog", so it can be a program name with args. 7826set dummy $ac_prog; ac_word=$2 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7828$as_echo_n "checking for $ac_word... " >&6; } 7829if ${ac_cv_prog_BISON+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 if test -n "$BISON"; then 7833 ac_cv_prog_BISON="$BISON" # Let the user override the test. 7834else 7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH 7837do 7838 IFS=$as_save_IFS 7839 test -z "$as_dir" && as_dir=. 7840 for ac_exec_ext in '' $ac_executable_extensions; do 7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7842 ac_cv_prog_BISON="$ac_prog" 7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7844 break 2 7845 fi 7846done 7847 done 7848IFS=$as_save_IFS 7849 7850fi 7851fi 7852BISON=$ac_cv_prog_BISON 7853if test -n "$BISON"; then 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 7855$as_echo "$BISON" >&6; } 7856else 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7858$as_echo "no" >&6; } 7859fi 7860 7861 7862 test -n "$BISON" && break 7863done 7864test -n "$BISON" || BISON="$MISSING bison" 7865 7866case " $build_configdirs " in 7867 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; 7868esac 7869 7870for ac_prog in gm4 gnum4 m4 7871do 7872 # Extract the first word of "$ac_prog", so it can be a program name with args. 7873set dummy $ac_prog; ac_word=$2 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7875$as_echo_n "checking for $ac_word... " >&6; } 7876if ${ac_cv_prog_M4+:} false; then : 7877 $as_echo_n "(cached) " >&6 7878else 7879 if test -n "$M4"; then 7880 ac_cv_prog_M4="$M4" # Let the user override the test. 7881else 7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7883for as_dir in $PATH 7884do 7885 IFS=$as_save_IFS 7886 test -z "$as_dir" && as_dir=. 7887 for ac_exec_ext in '' $ac_executable_extensions; do 7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7889 ac_cv_prog_M4="$ac_prog" 7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7891 break 2 7892 fi 7893done 7894 done 7895IFS=$as_save_IFS 7896 7897fi 7898fi 7899M4=$ac_cv_prog_M4 7900if test -n "$M4"; then 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 7902$as_echo "$M4" >&6; } 7903else 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7905$as_echo "no" >&6; } 7906fi 7907 7908 7909 test -n "$M4" && break 7910done 7911test -n "$M4" || M4="$MISSING m4" 7912 7913case " $build_configdirs " in 7914 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; 7915esac 7916 7917for ac_prog in flex lex 7918do 7919 # Extract the first word of "$ac_prog", so it can be a program name with args. 7920set dummy $ac_prog; ac_word=$2 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7922$as_echo_n "checking for $ac_word... " >&6; } 7923if ${ac_cv_prog_LEX+:} false; then : 7924 $as_echo_n "(cached) " >&6 7925else 7926 if test -n "$LEX"; then 7927 ac_cv_prog_LEX="$LEX" # Let the user override the test. 7928else 7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7930for as_dir in $PATH 7931do 7932 IFS=$as_save_IFS 7933 test -z "$as_dir" && as_dir=. 7934 for ac_exec_ext in '' $ac_executable_extensions; do 7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7936 ac_cv_prog_LEX="$ac_prog" 7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7938 break 2 7939 fi 7940done 7941 done 7942IFS=$as_save_IFS 7943 7944fi 7945fi 7946LEX=$ac_cv_prog_LEX 7947if test -n "$LEX"; then 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 7949$as_echo "$LEX" >&6; } 7950else 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7952$as_echo "no" >&6; } 7953fi 7954 7955 7956 test -n "$LEX" && break 7957done 7958test -n "$LEX" || LEX="$MISSING flex" 7959 7960case " $build_configdirs " in 7961 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; 7962 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; 7963esac 7964 7965for ac_prog in flex 7966do 7967 # Extract the first word of "$ac_prog", so it can be a program name with args. 7968set dummy $ac_prog; ac_word=$2 7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7970$as_echo_n "checking for $ac_word... " >&6; } 7971if ${ac_cv_prog_FLEX+:} false; then : 7972 $as_echo_n "(cached) " >&6 7973else 7974 if test -n "$FLEX"; then 7975 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 7976else 7977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7978for as_dir in $PATH 7979do 7980 IFS=$as_save_IFS 7981 test -z "$as_dir" && as_dir=. 7982 for ac_exec_ext in '' $ac_executable_extensions; do 7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7984 ac_cv_prog_FLEX="$ac_prog" 7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7986 break 2 7987 fi 7988done 7989 done 7990IFS=$as_save_IFS 7991 7992fi 7993fi 7994FLEX=$ac_cv_prog_FLEX 7995if test -n "$FLEX"; then 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 7997$as_echo "$FLEX" >&6; } 7998else 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8000$as_echo "no" >&6; } 8001fi 8002 8003 8004 test -n "$FLEX" && break 8005done 8006test -n "$FLEX" || FLEX="$MISSING flex" 8007 8008case " $build_configdirs " in 8009 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; 8010esac 8011 8012for ac_prog in makeinfo 8013do 8014 # Extract the first word of "$ac_prog", so it can be a program name with args. 8015set dummy $ac_prog; ac_word=$2 8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8017$as_echo_n "checking for $ac_word... " >&6; } 8018if ${ac_cv_prog_MAKEINFO+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 if test -n "$MAKEINFO"; then 8022 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 8023else 8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025for as_dir in $PATH 8026do 8027 IFS=$as_save_IFS 8028 test -z "$as_dir" && as_dir=. 8029 for ac_exec_ext in '' $ac_executable_extensions; do 8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8031 ac_cv_prog_MAKEINFO="$ac_prog" 8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8033 break 2 8034 fi 8035done 8036 done 8037IFS=$as_save_IFS 8038 8039fi 8040fi 8041MAKEINFO=$ac_cv_prog_MAKEINFO 8042if test -n "$MAKEINFO"; then 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 8044$as_echo "$MAKEINFO" >&6; } 8045else 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8047$as_echo "no" >&6; } 8048fi 8049 8050 8051 test -n "$MAKEINFO" && break 8052done 8053test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" 8054 8055case " $build_configdirs " in 8056 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; 8057 *) 8058 8059 # For an installed makeinfo, we require it to be from texinfo 4.7 or 8060 # higher, else we use the "missing" dummy. 8061 if ${MAKEINFO} --version \ 8062 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then 8063 : 8064 else 8065 MAKEINFO="$MISSING makeinfo" 8066 fi 8067 ;; 8068 8069esac 8070 8071# FIXME: expect and dejagnu may become build tools? 8072 8073for ac_prog in expect 8074do 8075 # Extract the first word of "$ac_prog", so it can be a program name with args. 8076set dummy $ac_prog; ac_word=$2 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8078$as_echo_n "checking for $ac_word... " >&6; } 8079if ${ac_cv_prog_EXPECT+:} false; then : 8080 $as_echo_n "(cached) " >&6 8081else 8082 if test -n "$EXPECT"; then 8083 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. 8084else 8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8086for as_dir in $PATH 8087do 8088 IFS=$as_save_IFS 8089 test -z "$as_dir" && as_dir=. 8090 for ac_exec_ext in '' $ac_executable_extensions; do 8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8092 ac_cv_prog_EXPECT="$ac_prog" 8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8094 break 2 8095 fi 8096done 8097 done 8098IFS=$as_save_IFS 8099 8100fi 8101fi 8102EXPECT=$ac_cv_prog_EXPECT 8103if test -n "$EXPECT"; then 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 8105$as_echo "$EXPECT" >&6; } 8106else 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8108$as_echo "no" >&6; } 8109fi 8110 8111 8112 test -n "$EXPECT" && break 8113done 8114test -n "$EXPECT" || EXPECT="expect" 8115 8116case " $configdirs " in 8117 *" expect "*) 8118 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' 8119 ;; 8120esac 8121 8122for ac_prog in runtest 8123do 8124 # Extract the first word of "$ac_prog", so it can be a program name with args. 8125set dummy $ac_prog; ac_word=$2 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8127$as_echo_n "checking for $ac_word... " >&6; } 8128if ${ac_cv_prog_RUNTEST+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 if test -n "$RUNTEST"; then 8132 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. 8133else 8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8135for as_dir in $PATH 8136do 8137 IFS=$as_save_IFS 8138 test -z "$as_dir" && as_dir=. 8139 for ac_exec_ext in '' $ac_executable_extensions; do 8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8141 ac_cv_prog_RUNTEST="$ac_prog" 8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8143 break 2 8144 fi 8145done 8146 done 8147IFS=$as_save_IFS 8148 8149fi 8150fi 8151RUNTEST=$ac_cv_prog_RUNTEST 8152if test -n "$RUNTEST"; then 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 8154$as_echo "$RUNTEST" >&6; } 8155else 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8157$as_echo "no" >&6; } 8158fi 8159 8160 8161 test -n "$RUNTEST" && break 8162done 8163test -n "$RUNTEST" || RUNTEST="runtest" 8164 8165case " $configdirs " in 8166 *" dejagnu "*) 8167 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' 8168 ;; 8169esac 8170 8171 8172# Host tools. 8173ncn_tool_prefix= 8174test -n "$host_alias" && ncn_tool_prefix=$host_alias- 8175ncn_target_tool_prefix= 8176test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- 8177 8178 8179 8180if test -n "$AR"; then 8181 ac_cv_prog_AR=$AR 8182elif test -n "$ac_cv_prog_AR"; then 8183 AR=$ac_cv_prog_AR 8184fi 8185 8186if test -n "$ac_cv_prog_AR"; then 8187 for ncn_progname in ar; do 8188 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8189set dummy ${ncn_progname}; ac_word=$2 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8191$as_echo_n "checking for $ac_word... " >&6; } 8192if ${ac_cv_prog_AR+:} false; then : 8193 $as_echo_n "(cached) " >&6 8194else 8195 if test -n "$AR"; then 8196 ac_cv_prog_AR="$AR" # Let the user override the test. 8197else 8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8199for as_dir in $PATH 8200do 8201 IFS=$as_save_IFS 8202 test -z "$as_dir" && as_dir=. 8203 for ac_exec_ext in '' $ac_executable_extensions; do 8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8205 ac_cv_prog_AR="${ncn_progname}" 8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8207 break 2 8208 fi 8209done 8210 done 8211IFS=$as_save_IFS 8212 8213fi 8214fi 8215AR=$ac_cv_prog_AR 8216if test -n "$AR"; then 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8218$as_echo "$AR" >&6; } 8219else 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8221$as_echo "no" >&6; } 8222fi 8223 8224 8225 done 8226fi 8227 8228for ncn_progname in ar; do 8229 if test -n "$ncn_tool_prefix"; then 8230 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8231set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8233$as_echo_n "checking for $ac_word... " >&6; } 8234if ${ac_cv_prog_AR+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 if test -n "$AR"; then 8238 ac_cv_prog_AR="$AR" # Let the user override the test. 8239else 8240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8241for as_dir in $PATH 8242do 8243 IFS=$as_save_IFS 8244 test -z "$as_dir" && as_dir=. 8245 for ac_exec_ext in '' $ac_executable_extensions; do 8246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8247 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" 8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8249 break 2 8250 fi 8251done 8252 done 8253IFS=$as_save_IFS 8254 8255fi 8256fi 8257AR=$ac_cv_prog_AR 8258if test -n "$AR"; then 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8260$as_echo "$AR" >&6; } 8261else 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8263$as_echo "no" >&6; } 8264fi 8265 8266 8267 fi 8268 if test -z "$ac_cv_prog_AR" && test $build = $host ; then 8269 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8270set dummy ${ncn_progname}; ac_word=$2 8271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8272$as_echo_n "checking for $ac_word... " >&6; } 8273if ${ac_cv_prog_AR+:} false; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 if test -n "$AR"; then 8277 ac_cv_prog_AR="$AR" # Let the user override the test. 8278else 8279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8280for as_dir in $PATH 8281do 8282 IFS=$as_save_IFS 8283 test -z "$as_dir" && as_dir=. 8284 for ac_exec_ext in '' $ac_executable_extensions; do 8285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8286 ac_cv_prog_AR="${ncn_progname}" 8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8288 break 2 8289 fi 8290done 8291 done 8292IFS=$as_save_IFS 8293 8294fi 8295fi 8296AR=$ac_cv_prog_AR 8297if test -n "$AR"; then 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8299$as_echo "$AR" >&6; } 8300else 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8302$as_echo "no" >&6; } 8303fi 8304 8305 8306 fi 8307 test -n "$ac_cv_prog_AR" && break 8308done 8309 8310if test -z "$ac_cv_prog_AR" ; then 8311 set dummy ar 8312 if test $build = $host ; then 8313 AR="$2" 8314 else 8315 AR="${ncn_tool_prefix}$2" 8316 fi 8317fi 8318 8319 8320 8321if test -n "$AS"; then 8322 ac_cv_prog_AS=$AS 8323elif test -n "$ac_cv_prog_AS"; then 8324 AS=$ac_cv_prog_AS 8325fi 8326 8327if test -n "$ac_cv_prog_AS"; then 8328 for ncn_progname in as; do 8329 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8330set dummy ${ncn_progname}; ac_word=$2 8331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8332$as_echo_n "checking for $ac_word... " >&6; } 8333if ${ac_cv_prog_AS+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335else 8336 if test -n "$AS"; then 8337 ac_cv_prog_AS="$AS" # Let the user override the test. 8338else 8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340for as_dir in $PATH 8341do 8342 IFS=$as_save_IFS 8343 test -z "$as_dir" && as_dir=. 8344 for ac_exec_ext in '' $ac_executable_extensions; do 8345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8346 ac_cv_prog_AS="${ncn_progname}" 8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8348 break 2 8349 fi 8350done 8351 done 8352IFS=$as_save_IFS 8353 8354fi 8355fi 8356AS=$ac_cv_prog_AS 8357if test -n "$AS"; then 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8359$as_echo "$AS" >&6; } 8360else 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8362$as_echo "no" >&6; } 8363fi 8364 8365 8366 done 8367fi 8368 8369for ncn_progname in as; do 8370 if test -n "$ncn_tool_prefix"; then 8371 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8372set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8374$as_echo_n "checking for $ac_word... " >&6; } 8375if ${ac_cv_prog_AS+:} false; then : 8376 $as_echo_n "(cached) " >&6 8377else 8378 if test -n "$AS"; then 8379 ac_cv_prog_AS="$AS" # Let the user override the test. 8380else 8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8382for as_dir in $PATH 8383do 8384 IFS=$as_save_IFS 8385 test -z "$as_dir" && as_dir=. 8386 for ac_exec_ext in '' $ac_executable_extensions; do 8387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8388 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" 8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8390 break 2 8391 fi 8392done 8393 done 8394IFS=$as_save_IFS 8395 8396fi 8397fi 8398AS=$ac_cv_prog_AS 8399if test -n "$AS"; then 8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8401$as_echo "$AS" >&6; } 8402else 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8404$as_echo "no" >&6; } 8405fi 8406 8407 8408 fi 8409 if test -z "$ac_cv_prog_AS" && test $build = $host ; then 8410 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8411set dummy ${ncn_progname}; ac_word=$2 8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8413$as_echo_n "checking for $ac_word... " >&6; } 8414if ${ac_cv_prog_AS+:} false; then : 8415 $as_echo_n "(cached) " >&6 8416else 8417 if test -n "$AS"; then 8418 ac_cv_prog_AS="$AS" # Let the user override the test. 8419else 8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8421for as_dir in $PATH 8422do 8423 IFS=$as_save_IFS 8424 test -z "$as_dir" && as_dir=. 8425 for ac_exec_ext in '' $ac_executable_extensions; do 8426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8427 ac_cv_prog_AS="${ncn_progname}" 8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8429 break 2 8430 fi 8431done 8432 done 8433IFS=$as_save_IFS 8434 8435fi 8436fi 8437AS=$ac_cv_prog_AS 8438if test -n "$AS"; then 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8440$as_echo "$AS" >&6; } 8441else 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8443$as_echo "no" >&6; } 8444fi 8445 8446 8447 fi 8448 test -n "$ac_cv_prog_AS" && break 8449done 8450 8451if test -z "$ac_cv_prog_AS" ; then 8452 set dummy as 8453 if test $build = $host ; then 8454 AS="$2" 8455 else 8456 AS="${ncn_tool_prefix}$2" 8457 fi 8458fi 8459 8460 8461 8462if test -n "$DLLTOOL"; then 8463 ac_cv_prog_DLLTOOL=$DLLTOOL 8464elif test -n "$ac_cv_prog_DLLTOOL"; then 8465 DLLTOOL=$ac_cv_prog_DLLTOOL 8466fi 8467 8468if test -n "$ac_cv_prog_DLLTOOL"; then 8469 for ncn_progname in dlltool; do 8470 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8471set dummy ${ncn_progname}; ac_word=$2 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8473$as_echo_n "checking for $ac_word... " >&6; } 8474if ${ac_cv_prog_DLLTOOL+:} false; then : 8475 $as_echo_n "(cached) " >&6 8476else 8477 if test -n "$DLLTOOL"; then 8478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8479else 8480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8481for as_dir in $PATH 8482do 8483 IFS=$as_save_IFS 8484 test -z "$as_dir" && as_dir=. 8485 for ac_exec_ext in '' $ac_executable_extensions; do 8486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8487 ac_cv_prog_DLLTOOL="${ncn_progname}" 8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8489 break 2 8490 fi 8491done 8492 done 8493IFS=$as_save_IFS 8494 8495fi 8496fi 8497DLLTOOL=$ac_cv_prog_DLLTOOL 8498if test -n "$DLLTOOL"; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8500$as_echo "$DLLTOOL" >&6; } 8501else 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8503$as_echo "no" >&6; } 8504fi 8505 8506 8507 done 8508fi 8509 8510for ncn_progname in dlltool; do 8511 if test -n "$ncn_tool_prefix"; then 8512 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8513set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8515$as_echo_n "checking for $ac_word... " >&6; } 8516if ${ac_cv_prog_DLLTOOL+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 if test -n "$DLLTOOL"; then 8520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8521else 8522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8523for as_dir in $PATH 8524do 8525 IFS=$as_save_IFS 8526 test -z "$as_dir" && as_dir=. 8527 for ac_exec_ext in '' $ac_executable_extensions; do 8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8529 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" 8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8531 break 2 8532 fi 8533done 8534 done 8535IFS=$as_save_IFS 8536 8537fi 8538fi 8539DLLTOOL=$ac_cv_prog_DLLTOOL 8540if test -n "$DLLTOOL"; then 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8542$as_echo "$DLLTOOL" >&6; } 8543else 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8545$as_echo "no" >&6; } 8546fi 8547 8548 8549 fi 8550 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then 8551 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8552set dummy ${ncn_progname}; ac_word=$2 8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8554$as_echo_n "checking for $ac_word... " >&6; } 8555if ${ac_cv_prog_DLLTOOL+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 if test -n "$DLLTOOL"; then 8559 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8560else 8561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8562for as_dir in $PATH 8563do 8564 IFS=$as_save_IFS 8565 test -z "$as_dir" && as_dir=. 8566 for ac_exec_ext in '' $ac_executable_extensions; do 8567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8568 ac_cv_prog_DLLTOOL="${ncn_progname}" 8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8570 break 2 8571 fi 8572done 8573 done 8574IFS=$as_save_IFS 8575 8576fi 8577fi 8578DLLTOOL=$ac_cv_prog_DLLTOOL 8579if test -n "$DLLTOOL"; then 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8581$as_echo "$DLLTOOL" >&6; } 8582else 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8584$as_echo "no" >&6; } 8585fi 8586 8587 8588 fi 8589 test -n "$ac_cv_prog_DLLTOOL" && break 8590done 8591 8592if test -z "$ac_cv_prog_DLLTOOL" ; then 8593 set dummy dlltool 8594 if test $build = $host ; then 8595 DLLTOOL="$2" 8596 else 8597 DLLTOOL="${ncn_tool_prefix}$2" 8598 fi 8599fi 8600 8601 8602 8603if test -n "$LD"; then 8604 ac_cv_prog_LD=$LD 8605elif test -n "$ac_cv_prog_LD"; then 8606 LD=$ac_cv_prog_LD 8607fi 8608 8609if test -n "$ac_cv_prog_LD"; then 8610 for ncn_progname in ld; do 8611 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8612set dummy ${ncn_progname}; ac_word=$2 8613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8614$as_echo_n "checking for $ac_word... " >&6; } 8615if ${ac_cv_prog_LD+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617else 8618 if test -n "$LD"; then 8619 ac_cv_prog_LD="$LD" # Let the user override the test. 8620else 8621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8622for as_dir in $PATH 8623do 8624 IFS=$as_save_IFS 8625 test -z "$as_dir" && as_dir=. 8626 for ac_exec_ext in '' $ac_executable_extensions; do 8627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8628 ac_cv_prog_LD="${ncn_progname}" 8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8630 break 2 8631 fi 8632done 8633 done 8634IFS=$as_save_IFS 8635 8636fi 8637fi 8638LD=$ac_cv_prog_LD 8639if test -n "$LD"; then 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8641$as_echo "$LD" >&6; } 8642else 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644$as_echo "no" >&6; } 8645fi 8646 8647 8648 done 8649fi 8650 8651for ncn_progname in ld; do 8652 if test -n "$ncn_tool_prefix"; then 8653 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8654set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8656$as_echo_n "checking for $ac_word... " >&6; } 8657if ${ac_cv_prog_LD+:} false; then : 8658 $as_echo_n "(cached) " >&6 8659else 8660 if test -n "$LD"; then 8661 ac_cv_prog_LD="$LD" # Let the user override the test. 8662else 8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8664for as_dir in $PATH 8665do 8666 IFS=$as_save_IFS 8667 test -z "$as_dir" && as_dir=. 8668 for ac_exec_ext in '' $ac_executable_extensions; do 8669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8670 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" 8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8672 break 2 8673 fi 8674done 8675 done 8676IFS=$as_save_IFS 8677 8678fi 8679fi 8680LD=$ac_cv_prog_LD 8681if test -n "$LD"; then 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8683$as_echo "$LD" >&6; } 8684else 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8686$as_echo "no" >&6; } 8687fi 8688 8689 8690 fi 8691 if test -z "$ac_cv_prog_LD" && test $build = $host ; then 8692 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8693set dummy ${ncn_progname}; ac_word=$2 8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8695$as_echo_n "checking for $ac_word... " >&6; } 8696if ${ac_cv_prog_LD+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698else 8699 if test -n "$LD"; then 8700 ac_cv_prog_LD="$LD" # Let the user override the test. 8701else 8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8703for as_dir in $PATH 8704do 8705 IFS=$as_save_IFS 8706 test -z "$as_dir" && as_dir=. 8707 for ac_exec_ext in '' $ac_executable_extensions; do 8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8709 ac_cv_prog_LD="${ncn_progname}" 8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8711 break 2 8712 fi 8713done 8714 done 8715IFS=$as_save_IFS 8716 8717fi 8718fi 8719LD=$ac_cv_prog_LD 8720if test -n "$LD"; then 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8722$as_echo "$LD" >&6; } 8723else 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8725$as_echo "no" >&6; } 8726fi 8727 8728 8729 fi 8730 test -n "$ac_cv_prog_LD" && break 8731done 8732 8733if test -z "$ac_cv_prog_LD" ; then 8734 set dummy ld 8735 if test $build = $host ; then 8736 LD="$2" 8737 else 8738 LD="${ncn_tool_prefix}$2" 8739 fi 8740fi 8741 8742 8743 8744if test -n "$LIPO"; then 8745 ac_cv_prog_LIPO=$LIPO 8746elif test -n "$ac_cv_prog_LIPO"; then 8747 LIPO=$ac_cv_prog_LIPO 8748fi 8749 8750if test -n "$ac_cv_prog_LIPO"; then 8751 for ncn_progname in lipo; do 8752 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8753set dummy ${ncn_progname}; ac_word=$2 8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8755$as_echo_n "checking for $ac_word... " >&6; } 8756if ${ac_cv_prog_LIPO+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758else 8759 if test -n "$LIPO"; then 8760 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8761else 8762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8763for as_dir in $PATH 8764do 8765 IFS=$as_save_IFS 8766 test -z "$as_dir" && as_dir=. 8767 for ac_exec_ext in '' $ac_executable_extensions; do 8768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8769 ac_cv_prog_LIPO="${ncn_progname}" 8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8771 break 2 8772 fi 8773done 8774 done 8775IFS=$as_save_IFS 8776 8777fi 8778fi 8779LIPO=$ac_cv_prog_LIPO 8780if test -n "$LIPO"; then 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8782$as_echo "$LIPO" >&6; } 8783else 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8785$as_echo "no" >&6; } 8786fi 8787 8788 8789 done 8790fi 8791 8792for ncn_progname in lipo; do 8793 if test -n "$ncn_tool_prefix"; then 8794 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8795set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8797$as_echo_n "checking for $ac_word... " >&6; } 8798if ${ac_cv_prog_LIPO+:} false; then : 8799 $as_echo_n "(cached) " >&6 8800else 8801 if test -n "$LIPO"; then 8802 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8803else 8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8805for as_dir in $PATH 8806do 8807 IFS=$as_save_IFS 8808 test -z "$as_dir" && as_dir=. 8809 for ac_exec_ext in '' $ac_executable_extensions; do 8810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8811 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" 8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8813 break 2 8814 fi 8815done 8816 done 8817IFS=$as_save_IFS 8818 8819fi 8820fi 8821LIPO=$ac_cv_prog_LIPO 8822if test -n "$LIPO"; then 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8824$as_echo "$LIPO" >&6; } 8825else 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8827$as_echo "no" >&6; } 8828fi 8829 8830 8831 fi 8832 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then 8833 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8834set dummy ${ncn_progname}; ac_word=$2 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8836$as_echo_n "checking for $ac_word... " >&6; } 8837if ${ac_cv_prog_LIPO+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 if test -n "$LIPO"; then 8841 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8842else 8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8844for as_dir in $PATH 8845do 8846 IFS=$as_save_IFS 8847 test -z "$as_dir" && as_dir=. 8848 for ac_exec_ext in '' $ac_executable_extensions; do 8849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8850 ac_cv_prog_LIPO="${ncn_progname}" 8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8852 break 2 8853 fi 8854done 8855 done 8856IFS=$as_save_IFS 8857 8858fi 8859fi 8860LIPO=$ac_cv_prog_LIPO 8861if test -n "$LIPO"; then 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8863$as_echo "$LIPO" >&6; } 8864else 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8866$as_echo "no" >&6; } 8867fi 8868 8869 8870 fi 8871 test -n "$ac_cv_prog_LIPO" && break 8872done 8873 8874if test -z "$ac_cv_prog_LIPO" ; then 8875 set dummy lipo 8876 if test $build = $host ; then 8877 LIPO="$2" 8878 else 8879 LIPO="${ncn_tool_prefix}$2" 8880 fi 8881fi 8882 8883 8884 8885if test -n "$NM"; then 8886 ac_cv_prog_NM=$NM 8887elif test -n "$ac_cv_prog_NM"; then 8888 NM=$ac_cv_prog_NM 8889fi 8890 8891if test -n "$ac_cv_prog_NM"; then 8892 for ncn_progname in nm; do 8893 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8894set dummy ${ncn_progname}; ac_word=$2 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8896$as_echo_n "checking for $ac_word... " >&6; } 8897if ${ac_cv_prog_NM+:} false; then : 8898 $as_echo_n "(cached) " >&6 8899else 8900 if test -n "$NM"; then 8901 ac_cv_prog_NM="$NM" # Let the user override the test. 8902else 8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8904for as_dir in $PATH 8905do 8906 IFS=$as_save_IFS 8907 test -z "$as_dir" && as_dir=. 8908 for ac_exec_ext in '' $ac_executable_extensions; do 8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8910 ac_cv_prog_NM="${ncn_progname}" 8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8912 break 2 8913 fi 8914done 8915 done 8916IFS=$as_save_IFS 8917 8918fi 8919fi 8920NM=$ac_cv_prog_NM 8921if test -n "$NM"; then 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8923$as_echo "$NM" >&6; } 8924else 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8926$as_echo "no" >&6; } 8927fi 8928 8929 8930 done 8931fi 8932 8933for ncn_progname in nm; do 8934 if test -n "$ncn_tool_prefix"; then 8935 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8936set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8938$as_echo_n "checking for $ac_word... " >&6; } 8939if ${ac_cv_prog_NM+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941else 8942 if test -n "$NM"; then 8943 ac_cv_prog_NM="$NM" # Let the user override the test. 8944else 8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8946for as_dir in $PATH 8947do 8948 IFS=$as_save_IFS 8949 test -z "$as_dir" && as_dir=. 8950 for ac_exec_ext in '' $ac_executable_extensions; do 8951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8952 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" 8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8954 break 2 8955 fi 8956done 8957 done 8958IFS=$as_save_IFS 8959 8960fi 8961fi 8962NM=$ac_cv_prog_NM 8963if test -n "$NM"; then 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8965$as_echo "$NM" >&6; } 8966else 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8968$as_echo "no" >&6; } 8969fi 8970 8971 8972 fi 8973 if test -z "$ac_cv_prog_NM" && test $build = $host ; then 8974 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8975set dummy ${ncn_progname}; ac_word=$2 8976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8977$as_echo_n "checking for $ac_word... " >&6; } 8978if ${ac_cv_prog_NM+:} false; then : 8979 $as_echo_n "(cached) " >&6 8980else 8981 if test -n "$NM"; then 8982 ac_cv_prog_NM="$NM" # Let the user override the test. 8983else 8984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8985for as_dir in $PATH 8986do 8987 IFS=$as_save_IFS 8988 test -z "$as_dir" && as_dir=. 8989 for ac_exec_ext in '' $ac_executable_extensions; do 8990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8991 ac_cv_prog_NM="${ncn_progname}" 8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8993 break 2 8994 fi 8995done 8996 done 8997IFS=$as_save_IFS 8998 8999fi 9000fi 9001NM=$ac_cv_prog_NM 9002if test -n "$NM"; then 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9004$as_echo "$NM" >&6; } 9005else 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9007$as_echo "no" >&6; } 9008fi 9009 9010 9011 fi 9012 test -n "$ac_cv_prog_NM" && break 9013done 9014 9015if test -z "$ac_cv_prog_NM" ; then 9016 set dummy nm 9017 if test $build = $host ; then 9018 NM="$2" 9019 else 9020 NM="${ncn_tool_prefix}$2" 9021 fi 9022fi 9023 9024 9025 9026if test -n "$RANLIB"; then 9027 ac_cv_prog_RANLIB=$RANLIB 9028elif test -n "$ac_cv_prog_RANLIB"; then 9029 RANLIB=$ac_cv_prog_RANLIB 9030fi 9031 9032if test -n "$ac_cv_prog_RANLIB"; then 9033 for ncn_progname in ranlib; do 9034 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9035set dummy ${ncn_progname}; ac_word=$2 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9037$as_echo_n "checking for $ac_word... " >&6; } 9038if ${ac_cv_prog_RANLIB+:} false; then : 9039 $as_echo_n "(cached) " >&6 9040else 9041 if test -n "$RANLIB"; then 9042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9043else 9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9045for as_dir in $PATH 9046do 9047 IFS=$as_save_IFS 9048 test -z "$as_dir" && as_dir=. 9049 for ac_exec_ext in '' $ac_executable_extensions; do 9050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9051 ac_cv_prog_RANLIB="${ncn_progname}" 9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9053 break 2 9054 fi 9055done 9056 done 9057IFS=$as_save_IFS 9058 9059fi 9060fi 9061RANLIB=$ac_cv_prog_RANLIB 9062if test -n "$RANLIB"; then 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9064$as_echo "$RANLIB" >&6; } 9065else 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9067$as_echo "no" >&6; } 9068fi 9069 9070 9071 done 9072fi 9073 9074for ncn_progname in ranlib; do 9075 if test -n "$ncn_tool_prefix"; then 9076 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9077set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9079$as_echo_n "checking for $ac_word... " >&6; } 9080if ${ac_cv_prog_RANLIB+:} false; then : 9081 $as_echo_n "(cached) " >&6 9082else 9083 if test -n "$RANLIB"; then 9084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9085else 9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9087for as_dir in $PATH 9088do 9089 IFS=$as_save_IFS 9090 test -z "$as_dir" && as_dir=. 9091 for ac_exec_ext in '' $ac_executable_extensions; do 9092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9093 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" 9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9095 break 2 9096 fi 9097done 9098 done 9099IFS=$as_save_IFS 9100 9101fi 9102fi 9103RANLIB=$ac_cv_prog_RANLIB 9104if test -n "$RANLIB"; then 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9106$as_echo "$RANLIB" >&6; } 9107else 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9109$as_echo "no" >&6; } 9110fi 9111 9112 9113 fi 9114 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then 9115 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9116set dummy ${ncn_progname}; ac_word=$2 9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9118$as_echo_n "checking for $ac_word... " >&6; } 9119if ${ac_cv_prog_RANLIB+:} false; then : 9120 $as_echo_n "(cached) " >&6 9121else 9122 if test -n "$RANLIB"; then 9123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9124else 9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9126for as_dir in $PATH 9127do 9128 IFS=$as_save_IFS 9129 test -z "$as_dir" && as_dir=. 9130 for ac_exec_ext in '' $ac_executable_extensions; do 9131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9132 ac_cv_prog_RANLIB="${ncn_progname}" 9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9134 break 2 9135 fi 9136done 9137 done 9138IFS=$as_save_IFS 9139 9140fi 9141fi 9142RANLIB=$ac_cv_prog_RANLIB 9143if test -n "$RANLIB"; then 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9145$as_echo "$RANLIB" >&6; } 9146else 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9148$as_echo "no" >&6; } 9149fi 9150 9151 9152 fi 9153 test -n "$ac_cv_prog_RANLIB" && break 9154done 9155 9156if test -z "$ac_cv_prog_RANLIB" ; then 9157 RANLIB="true" 9158fi 9159 9160 9161 9162if test -n "$STRIP"; then 9163 ac_cv_prog_STRIP=$STRIP 9164elif test -n "$ac_cv_prog_STRIP"; then 9165 STRIP=$ac_cv_prog_STRIP 9166fi 9167 9168if test -n "$ac_cv_prog_STRIP"; then 9169 for ncn_progname in strip; do 9170 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9171set dummy ${ncn_progname}; ac_word=$2 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9173$as_echo_n "checking for $ac_word... " >&6; } 9174if ${ac_cv_prog_STRIP+:} false; then : 9175 $as_echo_n "(cached) " >&6 9176else 9177 if test -n "$STRIP"; then 9178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9179else 9180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9181for as_dir in $PATH 9182do 9183 IFS=$as_save_IFS 9184 test -z "$as_dir" && as_dir=. 9185 for ac_exec_ext in '' $ac_executable_extensions; do 9186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9187 ac_cv_prog_STRIP="${ncn_progname}" 9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9189 break 2 9190 fi 9191done 9192 done 9193IFS=$as_save_IFS 9194 9195fi 9196fi 9197STRIP=$ac_cv_prog_STRIP 9198if test -n "$STRIP"; then 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9200$as_echo "$STRIP" >&6; } 9201else 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9203$as_echo "no" >&6; } 9204fi 9205 9206 9207 done 9208fi 9209 9210for ncn_progname in strip; do 9211 if test -n "$ncn_tool_prefix"; then 9212 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9213set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9215$as_echo_n "checking for $ac_word... " >&6; } 9216if ${ac_cv_prog_STRIP+:} false; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 if test -n "$STRIP"; then 9220 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9221else 9222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9223for as_dir in $PATH 9224do 9225 IFS=$as_save_IFS 9226 test -z "$as_dir" && as_dir=. 9227 for ac_exec_ext in '' $ac_executable_extensions; do 9228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9229 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" 9230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9231 break 2 9232 fi 9233done 9234 done 9235IFS=$as_save_IFS 9236 9237fi 9238fi 9239STRIP=$ac_cv_prog_STRIP 9240if test -n "$STRIP"; then 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9242$as_echo "$STRIP" >&6; } 9243else 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9245$as_echo "no" >&6; } 9246fi 9247 9248 9249 fi 9250 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then 9251 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9252set dummy ${ncn_progname}; ac_word=$2 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9254$as_echo_n "checking for $ac_word... " >&6; } 9255if ${ac_cv_prog_STRIP+:} false; then : 9256 $as_echo_n "(cached) " >&6 9257else 9258 if test -n "$STRIP"; then 9259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9260else 9261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9262for as_dir in $PATH 9263do 9264 IFS=$as_save_IFS 9265 test -z "$as_dir" && as_dir=. 9266 for ac_exec_ext in '' $ac_executable_extensions; do 9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9268 ac_cv_prog_STRIP="${ncn_progname}" 9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9270 break 2 9271 fi 9272done 9273 done 9274IFS=$as_save_IFS 9275 9276fi 9277fi 9278STRIP=$ac_cv_prog_STRIP 9279if test -n "$STRIP"; then 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9281$as_echo "$STRIP" >&6; } 9282else 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9284$as_echo "no" >&6; } 9285fi 9286 9287 9288 fi 9289 test -n "$ac_cv_prog_STRIP" && break 9290done 9291 9292if test -z "$ac_cv_prog_STRIP" ; then 9293 STRIP="true" 9294fi 9295 9296 9297 9298if test -n "$WINDRES"; then 9299 ac_cv_prog_WINDRES=$WINDRES 9300elif test -n "$ac_cv_prog_WINDRES"; then 9301 WINDRES=$ac_cv_prog_WINDRES 9302fi 9303 9304if test -n "$ac_cv_prog_WINDRES"; then 9305 for ncn_progname in windres; 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_WINDRES+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 if test -n "$WINDRES"; then 9314 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 9333WINDRES=$ac_cv_prog_WINDRES 9334if test -n "$WINDRES"; then 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9336$as_echo "$WINDRES" >&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 windres; 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_WINDRES+:} false; then : 9353 $as_echo_n "(cached) " >&6 9354else 9355 if test -n "$WINDRES"; then 9356 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 9375WINDRES=$ac_cv_prog_WINDRES 9376if test -n "$WINDRES"; then 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9378$as_echo "$WINDRES" >&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_WINDRES" && 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_WINDRES+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 if test -n "$WINDRES"; then 9395 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 9414WINDRES=$ac_cv_prog_WINDRES 9415if test -n "$WINDRES"; then 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9417$as_echo "$WINDRES" >&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_WINDRES" && break 9426done 9427 9428if test -z "$ac_cv_prog_WINDRES" ; then 9429 set dummy windres 9430 if test $build = $host ; then 9431 WINDRES="$2" 9432 else 9433 WINDRES="${ncn_tool_prefix}$2" 9434 fi 9435fi 9436 9437 9438 9439if test -n "$WINDMC"; then 9440 ac_cv_prog_WINDMC=$WINDMC 9441elif test -n "$ac_cv_prog_WINDMC"; then 9442 WINDMC=$ac_cv_prog_WINDMC 9443fi 9444 9445if test -n "$ac_cv_prog_WINDMC"; then 9446 for ncn_progname in windmc; do 9447 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9448set dummy ${ncn_progname}; ac_word=$2 9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9450$as_echo_n "checking for $ac_word... " >&6; } 9451if ${ac_cv_prog_WINDMC+:} false; then : 9452 $as_echo_n "(cached) " >&6 9453else 9454 if test -n "$WINDMC"; then 9455 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9456else 9457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9458for as_dir in $PATH 9459do 9460 IFS=$as_save_IFS 9461 test -z "$as_dir" && as_dir=. 9462 for ac_exec_ext in '' $ac_executable_extensions; do 9463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9464 ac_cv_prog_WINDMC="${ncn_progname}" 9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9466 break 2 9467 fi 9468done 9469 done 9470IFS=$as_save_IFS 9471 9472fi 9473fi 9474WINDMC=$ac_cv_prog_WINDMC 9475if test -n "$WINDMC"; then 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9477$as_echo "$WINDMC" >&6; } 9478else 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9480$as_echo "no" >&6; } 9481fi 9482 9483 9484 done 9485fi 9486 9487for ncn_progname in windmc; do 9488 if test -n "$ncn_tool_prefix"; then 9489 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9490set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9492$as_echo_n "checking for $ac_word... " >&6; } 9493if ${ac_cv_prog_WINDMC+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495else 9496 if test -n "$WINDMC"; then 9497 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9498else 9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9500for as_dir in $PATH 9501do 9502 IFS=$as_save_IFS 9503 test -z "$as_dir" && as_dir=. 9504 for ac_exec_ext in '' $ac_executable_extensions; do 9505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9506 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" 9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9508 break 2 9509 fi 9510done 9511 done 9512IFS=$as_save_IFS 9513 9514fi 9515fi 9516WINDMC=$ac_cv_prog_WINDMC 9517if test -n "$WINDMC"; then 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9519$as_echo "$WINDMC" >&6; } 9520else 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9522$as_echo "no" >&6; } 9523fi 9524 9525 9526 fi 9527 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then 9528 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9529set dummy ${ncn_progname}; ac_word=$2 9530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9531$as_echo_n "checking for $ac_word... " >&6; } 9532if ${ac_cv_prog_WINDMC+:} false; then : 9533 $as_echo_n "(cached) " >&6 9534else 9535 if test -n "$WINDMC"; then 9536 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9537else 9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9539for as_dir in $PATH 9540do 9541 IFS=$as_save_IFS 9542 test -z "$as_dir" && as_dir=. 9543 for ac_exec_ext in '' $ac_executable_extensions; do 9544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9545 ac_cv_prog_WINDMC="${ncn_progname}" 9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9547 break 2 9548 fi 9549done 9550 done 9551IFS=$as_save_IFS 9552 9553fi 9554fi 9555WINDMC=$ac_cv_prog_WINDMC 9556if test -n "$WINDMC"; then 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9558$as_echo "$WINDMC" >&6; } 9559else 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9561$as_echo "no" >&6; } 9562fi 9563 9564 9565 fi 9566 test -n "$ac_cv_prog_WINDMC" && break 9567done 9568 9569if test -z "$ac_cv_prog_WINDMC" ; then 9570 set dummy windmc 9571 if test $build = $host ; then 9572 WINDMC="$2" 9573 else 9574 WINDMC="${ncn_tool_prefix}$2" 9575 fi 9576fi 9577 9578 9579 9580if test -n "$OBJCOPY"; then 9581 ac_cv_prog_OBJCOPY=$OBJCOPY 9582elif test -n "$ac_cv_prog_OBJCOPY"; then 9583 OBJCOPY=$ac_cv_prog_OBJCOPY 9584fi 9585 9586if test -n "$ac_cv_prog_OBJCOPY"; then 9587 for ncn_progname in objcopy; do 9588 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9589set dummy ${ncn_progname}; ac_word=$2 9590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9591$as_echo_n "checking for $ac_word... " >&6; } 9592if ${ac_cv_prog_OBJCOPY+:} false; then : 9593 $as_echo_n "(cached) " >&6 9594else 9595 if test -n "$OBJCOPY"; then 9596 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9597else 9598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9599for as_dir in $PATH 9600do 9601 IFS=$as_save_IFS 9602 test -z "$as_dir" && as_dir=. 9603 for ac_exec_ext in '' $ac_executable_extensions; do 9604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9605 ac_cv_prog_OBJCOPY="${ncn_progname}" 9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9607 break 2 9608 fi 9609done 9610 done 9611IFS=$as_save_IFS 9612 9613fi 9614fi 9615OBJCOPY=$ac_cv_prog_OBJCOPY 9616if test -n "$OBJCOPY"; then 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9618$as_echo "$OBJCOPY" >&6; } 9619else 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9621$as_echo "no" >&6; } 9622fi 9623 9624 9625 done 9626fi 9627 9628for ncn_progname in objcopy; do 9629 if test -n "$ncn_tool_prefix"; then 9630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9631set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9633$as_echo_n "checking for $ac_word... " >&6; } 9634if ${ac_cv_prog_OBJCOPY+:} false; then : 9635 $as_echo_n "(cached) " >&6 9636else 9637 if test -n "$OBJCOPY"; then 9638 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9639else 9640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9641for as_dir in $PATH 9642do 9643 IFS=$as_save_IFS 9644 test -z "$as_dir" && as_dir=. 9645 for ac_exec_ext in '' $ac_executable_extensions; do 9646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9647 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" 9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9649 break 2 9650 fi 9651done 9652 done 9653IFS=$as_save_IFS 9654 9655fi 9656fi 9657OBJCOPY=$ac_cv_prog_OBJCOPY 9658if test -n "$OBJCOPY"; then 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9660$as_echo "$OBJCOPY" >&6; } 9661else 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9663$as_echo "no" >&6; } 9664fi 9665 9666 9667 fi 9668 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then 9669 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9670set dummy ${ncn_progname}; ac_word=$2 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9672$as_echo_n "checking for $ac_word... " >&6; } 9673if ${ac_cv_prog_OBJCOPY+:} false; then : 9674 $as_echo_n "(cached) " >&6 9675else 9676 if test -n "$OBJCOPY"; then 9677 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9678else 9679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9680for as_dir in $PATH 9681do 9682 IFS=$as_save_IFS 9683 test -z "$as_dir" && as_dir=. 9684 for ac_exec_ext in '' $ac_executable_extensions; do 9685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9686 ac_cv_prog_OBJCOPY="${ncn_progname}" 9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9688 break 2 9689 fi 9690done 9691 done 9692IFS=$as_save_IFS 9693 9694fi 9695fi 9696OBJCOPY=$ac_cv_prog_OBJCOPY 9697if test -n "$OBJCOPY"; then 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9699$as_echo "$OBJCOPY" >&6; } 9700else 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9702$as_echo "no" >&6; } 9703fi 9704 9705 9706 fi 9707 test -n "$ac_cv_prog_OBJCOPY" && break 9708done 9709 9710if test -z "$ac_cv_prog_OBJCOPY" ; then 9711 set dummy objcopy 9712 if test $build = $host ; then 9713 OBJCOPY="$2" 9714 else 9715 OBJCOPY="${ncn_tool_prefix}$2" 9716 fi 9717fi 9718 9719 9720 9721if test -n "$OBJDUMP"; then 9722 ac_cv_prog_OBJDUMP=$OBJDUMP 9723elif test -n "$ac_cv_prog_OBJDUMP"; then 9724 OBJDUMP=$ac_cv_prog_OBJDUMP 9725fi 9726 9727if test -n "$ac_cv_prog_OBJDUMP"; then 9728 for ncn_progname in objdump; do 9729 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9730set dummy ${ncn_progname}; ac_word=$2 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9732$as_echo_n "checking for $ac_word... " >&6; } 9733if ${ac_cv_prog_OBJDUMP+:} false; then : 9734 $as_echo_n "(cached) " >&6 9735else 9736 if test -n "$OBJDUMP"; then 9737 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9738else 9739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9740for as_dir in $PATH 9741do 9742 IFS=$as_save_IFS 9743 test -z "$as_dir" && as_dir=. 9744 for ac_exec_ext in '' $ac_executable_extensions; do 9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9746 ac_cv_prog_OBJDUMP="${ncn_progname}" 9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9748 break 2 9749 fi 9750done 9751 done 9752IFS=$as_save_IFS 9753 9754fi 9755fi 9756OBJDUMP=$ac_cv_prog_OBJDUMP 9757if test -n "$OBJDUMP"; then 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9759$as_echo "$OBJDUMP" >&6; } 9760else 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9762$as_echo "no" >&6; } 9763fi 9764 9765 9766 done 9767fi 9768 9769for ncn_progname in objdump; do 9770 if test -n "$ncn_tool_prefix"; then 9771 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9772set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9774$as_echo_n "checking for $ac_word... " >&6; } 9775if ${ac_cv_prog_OBJDUMP+:} false; then : 9776 $as_echo_n "(cached) " >&6 9777else 9778 if test -n "$OBJDUMP"; then 9779 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9780else 9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9782for as_dir in $PATH 9783do 9784 IFS=$as_save_IFS 9785 test -z "$as_dir" && as_dir=. 9786 for ac_exec_ext in '' $ac_executable_extensions; do 9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9788 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" 9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9790 break 2 9791 fi 9792done 9793 done 9794IFS=$as_save_IFS 9795 9796fi 9797fi 9798OBJDUMP=$ac_cv_prog_OBJDUMP 9799if test -n "$OBJDUMP"; then 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9801$as_echo "$OBJDUMP" >&6; } 9802else 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9804$as_echo "no" >&6; } 9805fi 9806 9807 9808 fi 9809 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then 9810 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9811set dummy ${ncn_progname}; ac_word=$2 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9813$as_echo_n "checking for $ac_word... " >&6; } 9814if ${ac_cv_prog_OBJDUMP+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 if test -n "$OBJDUMP"; then 9818 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9819else 9820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9821for as_dir in $PATH 9822do 9823 IFS=$as_save_IFS 9824 test -z "$as_dir" && as_dir=. 9825 for ac_exec_ext in '' $ac_executable_extensions; do 9826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9827 ac_cv_prog_OBJDUMP="${ncn_progname}" 9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9829 break 2 9830 fi 9831done 9832 done 9833IFS=$as_save_IFS 9834 9835fi 9836fi 9837OBJDUMP=$ac_cv_prog_OBJDUMP 9838if test -n "$OBJDUMP"; then 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9840$as_echo "$OBJDUMP" >&6; } 9841else 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9843$as_echo "no" >&6; } 9844fi 9845 9846 9847 fi 9848 test -n "$ac_cv_prog_OBJDUMP" && break 9849done 9850 9851if test -z "$ac_cv_prog_OBJDUMP" ; then 9852 set dummy objdump 9853 if test $build = $host ; then 9854 OBJDUMP="$2" 9855 else 9856 OBJDUMP="${ncn_tool_prefix}$2" 9857 fi 9858fi 9859 9860 9861 9862if test -n "$OTOOL"; then 9863 ac_cv_prog_OTOOL=$OTOOL 9864elif test -n "$ac_cv_prog_OTOOL"; then 9865 OTOOL=$ac_cv_prog_OTOOL 9866fi 9867 9868if test -n "$ac_cv_prog_OTOOL"; then 9869 for ncn_progname in otool; do 9870 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9871set dummy ${ncn_progname}; ac_word=$2 9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9873$as_echo_n "checking for $ac_word... " >&6; } 9874if ${ac_cv_prog_OTOOL+:} false; then : 9875 $as_echo_n "(cached) " >&6 9876else 9877 if test -n "$OTOOL"; then 9878 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9879else 9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9881for as_dir in $PATH 9882do 9883 IFS=$as_save_IFS 9884 test -z "$as_dir" && as_dir=. 9885 for ac_exec_ext in '' $ac_executable_extensions; do 9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9887 ac_cv_prog_OTOOL="${ncn_progname}" 9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9889 break 2 9890 fi 9891done 9892 done 9893IFS=$as_save_IFS 9894 9895fi 9896fi 9897OTOOL=$ac_cv_prog_OTOOL 9898if test -n "$OTOOL"; then 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9900$as_echo "$OTOOL" >&6; } 9901else 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9903$as_echo "no" >&6; } 9904fi 9905 9906 9907 done 9908fi 9909 9910for ncn_progname in otool; do 9911 if test -n "$ncn_tool_prefix"; then 9912 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9913set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9915$as_echo_n "checking for $ac_word... " >&6; } 9916if ${ac_cv_prog_OTOOL+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 if test -n "$OTOOL"; then 9920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9921else 9922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9923for as_dir in $PATH 9924do 9925 IFS=$as_save_IFS 9926 test -z "$as_dir" && as_dir=. 9927 for ac_exec_ext in '' $ac_executable_extensions; do 9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9929 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" 9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9931 break 2 9932 fi 9933done 9934 done 9935IFS=$as_save_IFS 9936 9937fi 9938fi 9939OTOOL=$ac_cv_prog_OTOOL 9940if test -n "$OTOOL"; then 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9942$as_echo "$OTOOL" >&6; } 9943else 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9945$as_echo "no" >&6; } 9946fi 9947 9948 9949 fi 9950 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then 9951 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9952set dummy ${ncn_progname}; ac_word=$2 9953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9954$as_echo_n "checking for $ac_word... " >&6; } 9955if ${ac_cv_prog_OTOOL+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957else 9958 if test -n "$OTOOL"; then 9959 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9960else 9961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9962for as_dir in $PATH 9963do 9964 IFS=$as_save_IFS 9965 test -z "$as_dir" && as_dir=. 9966 for ac_exec_ext in '' $ac_executable_extensions; do 9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9968 ac_cv_prog_OTOOL="${ncn_progname}" 9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9970 break 2 9971 fi 9972done 9973 done 9974IFS=$as_save_IFS 9975 9976fi 9977fi 9978OTOOL=$ac_cv_prog_OTOOL 9979if test -n "$OTOOL"; then 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9981$as_echo "$OTOOL" >&6; } 9982else 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9984$as_echo "no" >&6; } 9985fi 9986 9987 9988 fi 9989 test -n "$ac_cv_prog_OTOOL" && break 9990done 9991 9992if test -z "$ac_cv_prog_OTOOL" ; then 9993 set dummy otool 9994 if test $build = $host ; then 9995 OTOOL="$2" 9996 else 9997 OTOOL="${ncn_tool_prefix}$2" 9998 fi 9999fi 10000 10001 10002 10003if test -n "$READELF"; then 10004 ac_cv_prog_READELF=$READELF 10005elif test -n "$ac_cv_prog_READELF"; then 10006 READELF=$ac_cv_prog_READELF 10007fi 10008 10009if test -n "$ac_cv_prog_READELF"; then 10010 for ncn_progname in readelf; do 10011 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10012set dummy ${ncn_progname}; ac_word=$2 10013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10014$as_echo_n "checking for $ac_word... " >&6; } 10015if ${ac_cv_prog_READELF+:} false; then : 10016 $as_echo_n "(cached) " >&6 10017else 10018 if test -n "$READELF"; then 10019 ac_cv_prog_READELF="$READELF" # Let the user override the test. 10020else 10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10022for as_dir in $PATH 10023do 10024 IFS=$as_save_IFS 10025 test -z "$as_dir" && as_dir=. 10026 for ac_exec_ext in '' $ac_executable_extensions; do 10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10028 ac_cv_prog_READELF="${ncn_progname}" 10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10030 break 2 10031 fi 10032done 10033 done 10034IFS=$as_save_IFS 10035 10036fi 10037fi 10038READELF=$ac_cv_prog_READELF 10039if test -n "$READELF"; then 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10041$as_echo "$READELF" >&6; } 10042else 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10044$as_echo "no" >&6; } 10045fi 10046 10047 10048 done 10049fi 10050 10051for ncn_progname in readelf; do 10052 if test -n "$ncn_tool_prefix"; then 10053 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 10054set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 10055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10056$as_echo_n "checking for $ac_word... " >&6; } 10057if ${ac_cv_prog_READELF+:} false; then : 10058 $as_echo_n "(cached) " >&6 10059else 10060 if test -n "$READELF"; then 10061 ac_cv_prog_READELF="$READELF" # Let the user override the test. 10062else 10063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10064for as_dir in $PATH 10065do 10066 IFS=$as_save_IFS 10067 test -z "$as_dir" && as_dir=. 10068 for ac_exec_ext in '' $ac_executable_extensions; do 10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10070 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" 10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10072 break 2 10073 fi 10074done 10075 done 10076IFS=$as_save_IFS 10077 10078fi 10079fi 10080READELF=$ac_cv_prog_READELF 10081if test -n "$READELF"; then 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10083$as_echo "$READELF" >&6; } 10084else 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10086$as_echo "no" >&6; } 10087fi 10088 10089 10090 fi 10091 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then 10092 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10093set dummy ${ncn_progname}; ac_word=$2 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10095$as_echo_n "checking for $ac_word... " >&6; } 10096if ${ac_cv_prog_READELF+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098else 10099 if test -n "$READELF"; then 10100 ac_cv_prog_READELF="$READELF" # Let the user override the test. 10101else 10102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10103for as_dir in $PATH 10104do 10105 IFS=$as_save_IFS 10106 test -z "$as_dir" && as_dir=. 10107 for ac_exec_ext in '' $ac_executable_extensions; do 10108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10109 ac_cv_prog_READELF="${ncn_progname}" 10110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10111 break 2 10112 fi 10113done 10114 done 10115IFS=$as_save_IFS 10116 10117fi 10118fi 10119READELF=$ac_cv_prog_READELF 10120if test -n "$READELF"; then 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 10122$as_echo "$READELF" >&6; } 10123else 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10125$as_echo "no" >&6; } 10126fi 10127 10128 10129 fi 10130 test -n "$ac_cv_prog_READELF" && break 10131done 10132 10133if test -z "$ac_cv_prog_READELF" ; then 10134 set dummy readelf 10135 if test $build = $host ; then 10136 READELF="$2" 10137 else 10138 READELF="${ncn_tool_prefix}$2" 10139 fi 10140fi 10141 10142 10143 10144 10145 10146 10147# Target tools. 10148 10149# Check whether --with-build-time-tools was given. 10150if test "${with_build_time_tools+set}" = set; then : 10151 withval=$with_build_time_tools; case x"$withval" in 10152 x/*) ;; 10153 *) 10154 with_build_time_tools= 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 10156$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} 10157 ;; 10158 esac 10159else 10160 with_build_time_tools= 10161fi 10162 10163 10164 10165 10166if test -n "$CC_FOR_TARGET"; then 10167 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET 10168elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then 10169 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10170fi 10171 10172if test -n "$ac_cv_prog_CC_FOR_TARGET"; then 10173 for ncn_progname in cc gcc; do 10174 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10175set dummy ${ncn_progname}; ac_word=$2 10176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10177$as_echo_n "checking for $ac_word... " >&6; } 10178if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10179 $as_echo_n "(cached) " >&6 10180else 10181 if test -n "$CC_FOR_TARGET"; then 10182 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10183else 10184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10185for as_dir in $PATH 10186do 10187 IFS=$as_save_IFS 10188 test -z "$as_dir" && as_dir=. 10189 for ac_exec_ext in '' $ac_executable_extensions; do 10190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10191 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" 10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10193 break 2 10194 fi 10195done 10196 done 10197IFS=$as_save_IFS 10198 10199fi 10200fi 10201CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10202if test -n "$CC_FOR_TARGET"; then 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10204$as_echo "$CC_FOR_TARGET" >&6; } 10205else 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10207$as_echo "no" >&6; } 10208fi 10209 10210 10211 done 10212fi 10213 10214if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10215 for ncn_progname in cc gcc; do 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10217$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10218 if test -x $with_build_time_tools/${ncn_progname}; then 10219 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10221$as_echo "yes" >&6; } 10222 break 10223 else 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10225$as_echo "no" >&6; } 10226 fi 10227 done 10228fi 10229 10230if test -z "$ac_cv_prog_CC_FOR_TARGET"; then 10231 for ncn_progname in cc gcc; do 10232 if test -n "$ncn_target_tool_prefix"; then 10233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10234set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10236$as_echo_n "checking for $ac_word... " >&6; } 10237if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10238 $as_echo_n "(cached) " >&6 10239else 10240 if test -n "$CC_FOR_TARGET"; then 10241 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10242else 10243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10244for as_dir in $PATH 10245do 10246 IFS=$as_save_IFS 10247 test -z "$as_dir" && as_dir=. 10248 for ac_exec_ext in '' $ac_executable_extensions; do 10249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10250 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10252 break 2 10253 fi 10254done 10255 done 10256IFS=$as_save_IFS 10257 10258fi 10259fi 10260CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10261if test -n "$CC_FOR_TARGET"; then 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10263$as_echo "$CC_FOR_TARGET" >&6; } 10264else 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10266$as_echo "no" >&6; } 10267fi 10268 10269 10270 fi 10271 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then 10272 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10273set dummy ${ncn_progname}; ac_word=$2 10274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10275$as_echo_n "checking for $ac_word... " >&6; } 10276if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : 10277 $as_echo_n "(cached) " >&6 10278else 10279 if test -n "$CC_FOR_TARGET"; then 10280 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10281else 10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10283for as_dir in $PATH 10284do 10285 IFS=$as_save_IFS 10286 test -z "$as_dir" && as_dir=. 10287 for ac_exec_ext in '' $ac_executable_extensions; do 10288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10289 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" 10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10291 break 2 10292 fi 10293done 10294 done 10295IFS=$as_save_IFS 10296 10297fi 10298fi 10299CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10300if test -n "$CC_FOR_TARGET"; then 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10302$as_echo "$CC_FOR_TARGET" >&6; } 10303else 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10305$as_echo "no" >&6; } 10306fi 10307 10308 10309 fi 10310 test -n "$ac_cv_prog_CC_FOR_TARGET" && break 10311 done 10312fi 10313 10314if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then 10315 set dummy cc gcc 10316 if test $build = $target ; then 10317 CC_FOR_TARGET="$2" 10318 else 10319 CC_FOR_TARGET="${ncn_target_tool_prefix}$2" 10320 fi 10321else 10322 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" 10323fi 10324 10325 10326 10327if test -n "$CXX_FOR_TARGET"; then 10328 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET 10329elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then 10330 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10331fi 10332 10333if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then 10334 for ncn_progname in c++ g++ cxx gxx; do 10335 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10336set dummy ${ncn_progname}; ac_word=$2 10337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10338$as_echo_n "checking for $ac_word... " >&6; } 10339if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10340 $as_echo_n "(cached) " >&6 10341else 10342 if test -n "$CXX_FOR_TARGET"; then 10343 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10344else 10345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10346for as_dir in $PATH 10347do 10348 IFS=$as_save_IFS 10349 test -z "$as_dir" && as_dir=. 10350 for ac_exec_ext in '' $ac_executable_extensions; do 10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10352 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" 10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10354 break 2 10355 fi 10356done 10357 done 10358IFS=$as_save_IFS 10359 10360fi 10361fi 10362CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10363if test -n "$CXX_FOR_TARGET"; then 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10365$as_echo "$CXX_FOR_TARGET" >&6; } 10366else 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10368$as_echo "no" >&6; } 10369fi 10370 10371 10372 done 10373fi 10374 10375if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then 10376 for ncn_progname in c++ g++ cxx gxx; do 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10378$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10379 if test -x $with_build_time_tools/${ncn_progname}; then 10380 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10382$as_echo "yes" >&6; } 10383 break 10384 else 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10386$as_echo "no" >&6; } 10387 fi 10388 done 10389fi 10390 10391if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then 10392 for ncn_progname in c++ g++ cxx gxx; do 10393 if test -n "$ncn_target_tool_prefix"; then 10394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10395set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10397$as_echo_n "checking for $ac_word... " >&6; } 10398if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10399 $as_echo_n "(cached) " >&6 10400else 10401 if test -n "$CXX_FOR_TARGET"; then 10402 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10403else 10404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10405for as_dir in $PATH 10406do 10407 IFS=$as_save_IFS 10408 test -z "$as_dir" && as_dir=. 10409 for ac_exec_ext in '' $ac_executable_extensions; do 10410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10411 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10413 break 2 10414 fi 10415done 10416 done 10417IFS=$as_save_IFS 10418 10419fi 10420fi 10421CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10422if test -n "$CXX_FOR_TARGET"; then 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10424$as_echo "$CXX_FOR_TARGET" >&6; } 10425else 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10427$as_echo "no" >&6; } 10428fi 10429 10430 10431 fi 10432 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then 10433 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10434set dummy ${ncn_progname}; ac_word=$2 10435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10436$as_echo_n "checking for $ac_word... " >&6; } 10437if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : 10438 $as_echo_n "(cached) " >&6 10439else 10440 if test -n "$CXX_FOR_TARGET"; then 10441 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10442else 10443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10444for as_dir in $PATH 10445do 10446 IFS=$as_save_IFS 10447 test -z "$as_dir" && as_dir=. 10448 for ac_exec_ext in '' $ac_executable_extensions; do 10449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10450 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" 10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10452 break 2 10453 fi 10454done 10455 done 10456IFS=$as_save_IFS 10457 10458fi 10459fi 10460CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10461if test -n "$CXX_FOR_TARGET"; then 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10463$as_echo "$CXX_FOR_TARGET" >&6; } 10464else 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10466$as_echo "no" >&6; } 10467fi 10468 10469 10470 fi 10471 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break 10472 done 10473fi 10474 10475if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then 10476 set dummy c++ g++ cxx gxx 10477 if test $build = $target ; then 10478 CXX_FOR_TARGET="$2" 10479 else 10480 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" 10481 fi 10482else 10483 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" 10484fi 10485 10486 10487 10488if test -n "$GCC_FOR_TARGET"; then 10489 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET 10490elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then 10491 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10492fi 10493 10494if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then 10495 for ncn_progname in gcc; do 10496 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10497set dummy ${ncn_progname}; ac_word=$2 10498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10499$as_echo_n "checking for $ac_word... " >&6; } 10500if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10501 $as_echo_n "(cached) " >&6 10502else 10503 if test -n "$GCC_FOR_TARGET"; then 10504 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10505else 10506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10507for as_dir in $PATH 10508do 10509 IFS=$as_save_IFS 10510 test -z "$as_dir" && as_dir=. 10511 for ac_exec_ext in '' $ac_executable_extensions; do 10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10513 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" 10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10515 break 2 10516 fi 10517done 10518 done 10519IFS=$as_save_IFS 10520 10521fi 10522fi 10523GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10524if test -n "$GCC_FOR_TARGET"; then 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10526$as_echo "$GCC_FOR_TARGET" >&6; } 10527else 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10529$as_echo "no" >&6; } 10530fi 10531 10532 10533 done 10534fi 10535 10536if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10537 for ncn_progname in gcc; do 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10539$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10540 if test -x $with_build_time_tools/${ncn_progname}; then 10541 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10543$as_echo "yes" >&6; } 10544 break 10545 else 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10547$as_echo "no" >&6; } 10548 fi 10549 done 10550fi 10551 10552if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then 10553 for ncn_progname in gcc; do 10554 if test -n "$ncn_target_tool_prefix"; then 10555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10556set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10558$as_echo_n "checking for $ac_word... " >&6; } 10559if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10560 $as_echo_n "(cached) " >&6 10561else 10562 if test -n "$GCC_FOR_TARGET"; then 10563 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10564else 10565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10566for as_dir in $PATH 10567do 10568 IFS=$as_save_IFS 10569 test -z "$as_dir" && as_dir=. 10570 for ac_exec_ext in '' $ac_executable_extensions; do 10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10572 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10574 break 2 10575 fi 10576done 10577 done 10578IFS=$as_save_IFS 10579 10580fi 10581fi 10582GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10583if test -n "$GCC_FOR_TARGET"; then 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10585$as_echo "$GCC_FOR_TARGET" >&6; } 10586else 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10588$as_echo "no" >&6; } 10589fi 10590 10591 10592 fi 10593 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then 10594 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10595set dummy ${ncn_progname}; ac_word=$2 10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10597$as_echo_n "checking for $ac_word... " >&6; } 10598if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : 10599 $as_echo_n "(cached) " >&6 10600else 10601 if test -n "$GCC_FOR_TARGET"; then 10602 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10603else 10604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10605for as_dir in $PATH 10606do 10607 IFS=$as_save_IFS 10608 test -z "$as_dir" && as_dir=. 10609 for ac_exec_ext in '' $ac_executable_extensions; do 10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10611 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" 10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10613 break 2 10614 fi 10615done 10616 done 10617IFS=$as_save_IFS 10618 10619fi 10620fi 10621GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10622if test -n "$GCC_FOR_TARGET"; then 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10624$as_echo "$GCC_FOR_TARGET" >&6; } 10625else 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10627$as_echo "no" >&6; } 10628fi 10629 10630 10631 fi 10632 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break 10633 done 10634fi 10635 10636if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then 10637 GCC_FOR_TARGET="${CC_FOR_TARGET}" 10638else 10639 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" 10640fi 10641 10642 10643 10644if test -n "$GFORTRAN_FOR_TARGET"; then 10645 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET 10646elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10647 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10648fi 10649 10650if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10651 for ncn_progname in gfortran; do 10652 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10653set dummy ${ncn_progname}; ac_word=$2 10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10655$as_echo_n "checking for $ac_word... " >&6; } 10656if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 10657 $as_echo_n "(cached) " >&6 10658else 10659 if test -n "$GFORTRAN_FOR_TARGET"; then 10660 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10661else 10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10663for as_dir in $PATH 10664do 10665 IFS=$as_save_IFS 10666 test -z "$as_dir" && as_dir=. 10667 for ac_exec_ext in '' $ac_executable_extensions; do 10668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10669 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" 10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10671 break 2 10672 fi 10673done 10674 done 10675IFS=$as_save_IFS 10676 10677fi 10678fi 10679GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10680if test -n "$GFORTRAN_FOR_TARGET"; then 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10682$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10683else 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10685$as_echo "no" >&6; } 10686fi 10687 10688 10689 done 10690fi 10691 10692if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then 10693 for ncn_progname in gfortran; do 10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10695$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10696 if test -x $with_build_time_tools/${ncn_progname}; then 10697 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10699$as_echo "yes" >&6; } 10700 break 10701 else 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10703$as_echo "no" >&6; } 10704 fi 10705 done 10706fi 10707 10708if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10709 for ncn_progname in gfortran; do 10710 if test -n "$ncn_target_tool_prefix"; then 10711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10712set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10714$as_echo_n "checking for $ac_word... " >&6; } 10715if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 10716 $as_echo_n "(cached) " >&6 10717else 10718 if test -n "$GFORTRAN_FOR_TARGET"; then 10719 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10720else 10721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10722for as_dir in $PATH 10723do 10724 IFS=$as_save_IFS 10725 test -z "$as_dir" && as_dir=. 10726 for ac_exec_ext in '' $ac_executable_extensions; do 10727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10728 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10730 break 2 10731 fi 10732done 10733 done 10734IFS=$as_save_IFS 10735 10736fi 10737fi 10738GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10739if test -n "$GFORTRAN_FOR_TARGET"; then 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10741$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10742else 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10744$as_echo "no" >&6; } 10745fi 10746 10747 10748 fi 10749 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then 10750 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10751set dummy ${ncn_progname}; ac_word=$2 10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10753$as_echo_n "checking for $ac_word... " >&6; } 10754if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : 10755 $as_echo_n "(cached) " >&6 10756else 10757 if test -n "$GFORTRAN_FOR_TARGET"; then 10758 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10759else 10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10761for as_dir in $PATH 10762do 10763 IFS=$as_save_IFS 10764 test -z "$as_dir" && as_dir=. 10765 for ac_exec_ext in '' $ac_executable_extensions; do 10766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10767 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" 10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10769 break 2 10770 fi 10771done 10772 done 10773IFS=$as_save_IFS 10774 10775fi 10776fi 10777GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10778if test -n "$GFORTRAN_FOR_TARGET"; then 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10780$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10781else 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10783$as_echo "no" >&6; } 10784fi 10785 10786 10787 fi 10788 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break 10789 done 10790fi 10791 10792if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then 10793 set dummy gfortran 10794 if test $build = $target ; then 10795 GFORTRAN_FOR_TARGET="$2" 10796 else 10797 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" 10798 fi 10799else 10800 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" 10801fi 10802 10803 10804 10805if test -n "$GOC_FOR_TARGET"; then 10806 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET 10807elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then 10808 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10809fi 10810 10811if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then 10812 for ncn_progname in gccgo; do 10813 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10814set dummy ${ncn_progname}; ac_word=$2 10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10816$as_echo_n "checking for $ac_word... " >&6; } 10817if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 10818 $as_echo_n "(cached) " >&6 10819else 10820 if test -n "$GOC_FOR_TARGET"; then 10821 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10822else 10823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10824for as_dir in $PATH 10825do 10826 IFS=$as_save_IFS 10827 test -z "$as_dir" && as_dir=. 10828 for ac_exec_ext in '' $ac_executable_extensions; do 10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10830 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" 10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10832 break 2 10833 fi 10834done 10835 done 10836IFS=$as_save_IFS 10837 10838fi 10839fi 10840GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10841if test -n "$GOC_FOR_TARGET"; then 10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10843$as_echo "$GOC_FOR_TARGET" >&6; } 10844else 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10846$as_echo "no" >&6; } 10847fi 10848 10849 10850 done 10851fi 10852 10853if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10854 for ncn_progname in gccgo; do 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10856$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10857 if test -x $with_build_time_tools/${ncn_progname}; then 10858 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10860$as_echo "yes" >&6; } 10861 break 10862 else 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10864$as_echo "no" >&6; } 10865 fi 10866 done 10867fi 10868 10869if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then 10870 for ncn_progname in gccgo; do 10871 if test -n "$ncn_target_tool_prefix"; then 10872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10873set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10875$as_echo_n "checking for $ac_word... " >&6; } 10876if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 10877 $as_echo_n "(cached) " >&6 10878else 10879 if test -n "$GOC_FOR_TARGET"; then 10880 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10881else 10882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10883for as_dir in $PATH 10884do 10885 IFS=$as_save_IFS 10886 test -z "$as_dir" && as_dir=. 10887 for ac_exec_ext in '' $ac_executable_extensions; do 10888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10889 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10891 break 2 10892 fi 10893done 10894 done 10895IFS=$as_save_IFS 10896 10897fi 10898fi 10899GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10900if test -n "$GOC_FOR_TARGET"; then 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10902$as_echo "$GOC_FOR_TARGET" >&6; } 10903else 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10905$as_echo "no" >&6; } 10906fi 10907 10908 10909 fi 10910 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then 10911 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10912set dummy ${ncn_progname}; ac_word=$2 10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10914$as_echo_n "checking for $ac_word... " >&6; } 10915if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 if test -n "$GOC_FOR_TARGET"; then 10919 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10920else 10921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10922for as_dir in $PATH 10923do 10924 IFS=$as_save_IFS 10925 test -z "$as_dir" && as_dir=. 10926 for ac_exec_ext in '' $ac_executable_extensions; do 10927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10928 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" 10929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10930 break 2 10931 fi 10932done 10933 done 10934IFS=$as_save_IFS 10935 10936fi 10937fi 10938GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10939if test -n "$GOC_FOR_TARGET"; then 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10941$as_echo "$GOC_FOR_TARGET" >&6; } 10942else 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10944$as_echo "no" >&6; } 10945fi 10946 10947 10948 fi 10949 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break 10950 done 10951fi 10952 10953if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then 10954 set dummy gccgo 10955 if test $build = $target ; then 10956 GOC_FOR_TARGET="$2" 10957 else 10958 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" 10959 fi 10960else 10961 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" 10962fi 10963 10964 10965 10966if test -n "$GDC_FOR_TARGET"; then 10967 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET 10968elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then 10969 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET 10970fi 10971 10972if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then 10973 for ncn_progname in gdc; do 10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10975set dummy ${ncn_progname}; ac_word=$2 10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10977$as_echo_n "checking for $ac_word... " >&6; } 10978if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : 10979 $as_echo_n "(cached) " >&6 10980else 10981 if test -n "$GDC_FOR_TARGET"; then 10982 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. 10983else 10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10985for as_dir in $PATH 10986do 10987 IFS=$as_save_IFS 10988 test -z "$as_dir" && as_dir=. 10989 for ac_exec_ext in '' $ac_executable_extensions; do 10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10991 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" 10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10993 break 2 10994 fi 10995done 10996 done 10997IFS=$as_save_IFS 10998 10999fi 11000fi 11001GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET 11002if test -n "$GDC_FOR_TARGET"; then 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 11004$as_echo "$GDC_FOR_TARGET" >&6; } 11005else 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11007$as_echo "no" >&6; } 11008fi 11009 11010 11011 done 11012fi 11013 11014if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then 11015 for ncn_progname in gdc; do 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11017$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11018 if test -x $with_build_time_tools/${ncn_progname}; then 11019 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11021$as_echo "yes" >&6; } 11022 break 11023 else 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11025$as_echo "no" >&6; } 11026 fi 11027 done 11028fi 11029 11030if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then 11031 for ncn_progname in gdc; do 11032 if test -n "$ncn_target_tool_prefix"; then 11033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11034set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11036$as_echo_n "checking for $ac_word... " >&6; } 11037if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : 11038 $as_echo_n "(cached) " >&6 11039else 11040 if test -n "$GDC_FOR_TARGET"; then 11041 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. 11042else 11043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11044for as_dir in $PATH 11045do 11046 IFS=$as_save_IFS 11047 test -z "$as_dir" && as_dir=. 11048 for ac_exec_ext in '' $ac_executable_extensions; do 11049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11050 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11052 break 2 11053 fi 11054done 11055 done 11056IFS=$as_save_IFS 11057 11058fi 11059fi 11060GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET 11061if test -n "$GDC_FOR_TARGET"; then 11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 11063$as_echo "$GDC_FOR_TARGET" >&6; } 11064else 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11066$as_echo "no" >&6; } 11067fi 11068 11069 11070 fi 11071 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then 11072 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11073set dummy ${ncn_progname}; ac_word=$2 11074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11075$as_echo_n "checking for $ac_word... " >&6; } 11076if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : 11077 $as_echo_n "(cached) " >&6 11078else 11079 if test -n "$GDC_FOR_TARGET"; then 11080 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. 11081else 11082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11083for as_dir in $PATH 11084do 11085 IFS=$as_save_IFS 11086 test -z "$as_dir" && as_dir=. 11087 for ac_exec_ext in '' $ac_executable_extensions; do 11088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11089 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" 11090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11091 break 2 11092 fi 11093done 11094 done 11095IFS=$as_save_IFS 11096 11097fi 11098fi 11099GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET 11100if test -n "$GDC_FOR_TARGET"; then 11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 11102$as_echo "$GDC_FOR_TARGET" >&6; } 11103else 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11105$as_echo "no" >&6; } 11106fi 11107 11108 11109 fi 11110 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break 11111 done 11112fi 11113 11114if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then 11115 set dummy gdc 11116 if test $build = $target ; then 11117 GDC_FOR_TARGET="$2" 11118 else 11119 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" 11120 fi 11121else 11122 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" 11123fi 11124 11125 11126 11127cat > conftest.c << \EOF 11128#ifdef __GNUC__ 11129 gcc_yay; 11130#endif 11131EOF 11132if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then 11133 have_gcc_for_target=yes 11134else 11135 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc 11136 have_gcc_for_target=no 11137fi 11138rm conftest.c 11139 11140 11141 11142 11143if test -z "$ac_cv_path_AR_FOR_TARGET" ; then 11144 if test -n "$with_build_time_tools"; then 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 11146$as_echo_n "checking for ar in $with_build_time_tools... " >&6; } 11147 if test -x $with_build_time_tools/ar; then 11148 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar 11149 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 11151$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } 11152 else 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11154$as_echo "no" >&6; } 11155 fi 11156 elif test $build != $host && test $have_gcc_for_target = yes; then 11157 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` 11158 test $AR_FOR_TARGET = ar && AR_FOR_TARGET= 11159 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET 11160 fi 11161fi 11162if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11163 # Extract the first word of "ar", so it can be a program name with args. 11164set dummy ar; ac_word=$2 11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11166$as_echo_n "checking for $ac_word... " >&6; } 11167if ${ac_cv_path_AR_FOR_TARGET+:} false; then : 11168 $as_echo_n "(cached) " >&6 11169else 11170 case $AR_FOR_TARGET in 11171 [\\/]* | ?:[\\/]*) 11172 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. 11173 ;; 11174 *) 11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11176for as_dir in $gcc_cv_tool_dirs 11177do 11178 IFS=$as_save_IFS 11179 test -z "$as_dir" && as_dir=. 11180 for ac_exec_ext in '' $ac_executable_extensions; do 11181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11182 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11184 break 2 11185 fi 11186done 11187 done 11188IFS=$as_save_IFS 11189 11190 ;; 11191esac 11192fi 11193AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET 11194if test -n "$AR_FOR_TARGET"; then 11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11196$as_echo "$AR_FOR_TARGET" >&6; } 11197else 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11199$as_echo "no" >&6; } 11200fi 11201 11202 11203fi 11204if test -z "$ac_cv_path_AR_FOR_TARGET" ; then 11205 11206 11207if test -n "$AR_FOR_TARGET"; then 11208 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET 11209elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then 11210 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11211fi 11212 11213if test -n "$ac_cv_prog_AR_FOR_TARGET"; then 11214 for ncn_progname in ar; do 11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11216set dummy ${ncn_progname}; ac_word=$2 11217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11218$as_echo_n "checking for $ac_word... " >&6; } 11219if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11220 $as_echo_n "(cached) " >&6 11221else 11222 if test -n "$AR_FOR_TARGET"; then 11223 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11224else 11225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11226for as_dir in $PATH 11227do 11228 IFS=$as_save_IFS 11229 test -z "$as_dir" && as_dir=. 11230 for ac_exec_ext in '' $ac_executable_extensions; do 11231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11232 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" 11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11234 break 2 11235 fi 11236done 11237 done 11238IFS=$as_save_IFS 11239 11240fi 11241fi 11242AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11243if test -n "$AR_FOR_TARGET"; then 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11245$as_echo "$AR_FOR_TARGET" >&6; } 11246else 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11248$as_echo "no" >&6; } 11249fi 11250 11251 11252 done 11253fi 11254 11255if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then 11256 for ncn_progname in ar; do 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11258$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11259 if test -x $with_build_time_tools/${ncn_progname}; then 11260 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11262$as_echo "yes" >&6; } 11263 break 11264 else 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11266$as_echo "no" >&6; } 11267 fi 11268 done 11269fi 11270 11271if test -z "$ac_cv_prog_AR_FOR_TARGET"; then 11272 for ncn_progname in ar; do 11273 if test -n "$ncn_target_tool_prefix"; then 11274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11275set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11277$as_echo_n "checking for $ac_word... " >&6; } 11278if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11279 $as_echo_n "(cached) " >&6 11280else 11281 if test -n "$AR_FOR_TARGET"; then 11282 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11283else 11284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11285for as_dir in $PATH 11286do 11287 IFS=$as_save_IFS 11288 test -z "$as_dir" && as_dir=. 11289 for ac_exec_ext in '' $ac_executable_extensions; do 11290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11291 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11293 break 2 11294 fi 11295done 11296 done 11297IFS=$as_save_IFS 11298 11299fi 11300fi 11301AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11302if test -n "$AR_FOR_TARGET"; then 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11304$as_echo "$AR_FOR_TARGET" >&6; } 11305else 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11307$as_echo "no" >&6; } 11308fi 11309 11310 11311 fi 11312 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then 11313 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11314set dummy ${ncn_progname}; ac_word=$2 11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11316$as_echo_n "checking for $ac_word... " >&6; } 11317if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : 11318 $as_echo_n "(cached) " >&6 11319else 11320 if test -n "$AR_FOR_TARGET"; then 11321 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11322else 11323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11324for as_dir in $PATH 11325do 11326 IFS=$as_save_IFS 11327 test -z "$as_dir" && as_dir=. 11328 for ac_exec_ext in '' $ac_executable_extensions; do 11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11330 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" 11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11332 break 2 11333 fi 11334done 11335 done 11336IFS=$as_save_IFS 11337 11338fi 11339fi 11340AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11341if test -n "$AR_FOR_TARGET"; then 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11343$as_echo "$AR_FOR_TARGET" >&6; } 11344else 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11346$as_echo "no" >&6; } 11347fi 11348 11349 11350 fi 11351 test -n "$ac_cv_prog_AR_FOR_TARGET" && break 11352 done 11353fi 11354 11355if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then 11356 set dummy ar 11357 if test $build = $target ; then 11358 AR_FOR_TARGET="$2" 11359 else 11360 AR_FOR_TARGET="${ncn_target_tool_prefix}$2" 11361 fi 11362else 11363 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" 11364fi 11365 11366else 11367 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET 11368fi 11369 11370 11371 11372 11373if test -z "$ac_cv_path_AS_FOR_TARGET" ; then 11374 if test -n "$with_build_time_tools"; then 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 11376$as_echo_n "checking for as in $with_build_time_tools... " >&6; } 11377 if test -x $with_build_time_tools/as; then 11378 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as 11379 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 11381$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } 11382 else 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11384$as_echo "no" >&6; } 11385 fi 11386 elif test $build != $host && test $have_gcc_for_target = yes; then 11387 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` 11388 test $AS_FOR_TARGET = as && AS_FOR_TARGET= 11389 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET 11390 fi 11391fi 11392if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11393 # Extract the first word of "as", so it can be a program name with args. 11394set dummy as; ac_word=$2 11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11396$as_echo_n "checking for $ac_word... " >&6; } 11397if ${ac_cv_path_AS_FOR_TARGET+:} false; then : 11398 $as_echo_n "(cached) " >&6 11399else 11400 case $AS_FOR_TARGET in 11401 [\\/]* | ?:[\\/]*) 11402 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. 11403 ;; 11404 *) 11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11406for as_dir in $gcc_cv_tool_dirs 11407do 11408 IFS=$as_save_IFS 11409 test -z "$as_dir" && as_dir=. 11410 for ac_exec_ext in '' $ac_executable_extensions; do 11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11412 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11414 break 2 11415 fi 11416done 11417 done 11418IFS=$as_save_IFS 11419 11420 ;; 11421esac 11422fi 11423AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET 11424if test -n "$AS_FOR_TARGET"; then 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11426$as_echo "$AS_FOR_TARGET" >&6; } 11427else 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11429$as_echo "no" >&6; } 11430fi 11431 11432 11433fi 11434if test -z "$ac_cv_path_AS_FOR_TARGET" ; then 11435 11436 11437if test -n "$AS_FOR_TARGET"; then 11438 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET 11439elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then 11440 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11441fi 11442 11443if test -n "$ac_cv_prog_AS_FOR_TARGET"; then 11444 for ncn_progname in as; do 11445 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11446set dummy ${ncn_progname}; ac_word=$2 11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11448$as_echo_n "checking for $ac_word... " >&6; } 11449if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11450 $as_echo_n "(cached) " >&6 11451else 11452 if test -n "$AS_FOR_TARGET"; then 11453 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11454else 11455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11456for as_dir in $PATH 11457do 11458 IFS=$as_save_IFS 11459 test -z "$as_dir" && as_dir=. 11460 for ac_exec_ext in '' $ac_executable_extensions; do 11461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11462 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" 11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11464 break 2 11465 fi 11466done 11467 done 11468IFS=$as_save_IFS 11469 11470fi 11471fi 11472AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11473if test -n "$AS_FOR_TARGET"; then 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11475$as_echo "$AS_FOR_TARGET" >&6; } 11476else 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11478$as_echo "no" >&6; } 11479fi 11480 11481 11482 done 11483fi 11484 11485if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then 11486 for ncn_progname in as; do 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11488$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11489 if test -x $with_build_time_tools/${ncn_progname}; then 11490 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11492$as_echo "yes" >&6; } 11493 break 11494 else 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11496$as_echo "no" >&6; } 11497 fi 11498 done 11499fi 11500 11501if test -z "$ac_cv_prog_AS_FOR_TARGET"; then 11502 for ncn_progname in as; do 11503 if test -n "$ncn_target_tool_prefix"; then 11504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11505set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11507$as_echo_n "checking for $ac_word... " >&6; } 11508if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11509 $as_echo_n "(cached) " >&6 11510else 11511 if test -n "$AS_FOR_TARGET"; then 11512 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11513else 11514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11515for as_dir in $PATH 11516do 11517 IFS=$as_save_IFS 11518 test -z "$as_dir" && as_dir=. 11519 for ac_exec_ext in '' $ac_executable_extensions; do 11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11521 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11523 break 2 11524 fi 11525done 11526 done 11527IFS=$as_save_IFS 11528 11529fi 11530fi 11531AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11532if test -n "$AS_FOR_TARGET"; then 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11534$as_echo "$AS_FOR_TARGET" >&6; } 11535else 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11537$as_echo "no" >&6; } 11538fi 11539 11540 11541 fi 11542 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then 11543 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11544set dummy ${ncn_progname}; ac_word=$2 11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11546$as_echo_n "checking for $ac_word... " >&6; } 11547if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : 11548 $as_echo_n "(cached) " >&6 11549else 11550 if test -n "$AS_FOR_TARGET"; then 11551 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11552else 11553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11554for as_dir in $PATH 11555do 11556 IFS=$as_save_IFS 11557 test -z "$as_dir" && as_dir=. 11558 for ac_exec_ext in '' $ac_executable_extensions; do 11559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11560 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" 11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11562 break 2 11563 fi 11564done 11565 done 11566IFS=$as_save_IFS 11567 11568fi 11569fi 11570AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11571if test -n "$AS_FOR_TARGET"; then 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11573$as_echo "$AS_FOR_TARGET" >&6; } 11574else 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11576$as_echo "no" >&6; } 11577fi 11578 11579 11580 fi 11581 test -n "$ac_cv_prog_AS_FOR_TARGET" && break 11582 done 11583fi 11584 11585if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then 11586 set dummy as 11587 if test $build = $target ; then 11588 AS_FOR_TARGET="$2" 11589 else 11590 AS_FOR_TARGET="${ncn_target_tool_prefix}$2" 11591 fi 11592else 11593 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" 11594fi 11595 11596else 11597 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET 11598fi 11599 11600 11601 11602 11603if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then 11604 if test -n "$with_build_time_tools"; then 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 11606$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } 11607 if test -x $with_build_time_tools/dlltool; then 11608 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool 11609 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 11611$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } 11612 else 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11614$as_echo "no" >&6; } 11615 fi 11616 elif test $build != $host && test $have_gcc_for_target = yes; then 11617 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` 11618 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= 11619 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11620 fi 11621fi 11622if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11623 # Extract the first word of "dlltool", so it can be a program name with args. 11624set dummy dlltool; ac_word=$2 11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11626$as_echo_n "checking for $ac_word... " >&6; } 11627if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : 11628 $as_echo_n "(cached) " >&6 11629else 11630 case $DLLTOOL_FOR_TARGET in 11631 [\\/]* | ?:[\\/]*) 11632 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. 11633 ;; 11634 *) 11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11636for as_dir in $gcc_cv_tool_dirs 11637do 11638 IFS=$as_save_IFS 11639 test -z "$as_dir" && as_dir=. 11640 for ac_exec_ext in '' $ac_executable_extensions; do 11641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11642 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11644 break 2 11645 fi 11646done 11647 done 11648IFS=$as_save_IFS 11649 11650 ;; 11651esac 11652fi 11653DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET 11654if test -n "$DLLTOOL_FOR_TARGET"; then 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11656$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11657else 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11659$as_echo "no" >&6; } 11660fi 11661 11662 11663fi 11664if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then 11665 11666 11667if test -n "$DLLTOOL_FOR_TARGET"; then 11668 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11669elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11670 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11671fi 11672 11673if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11674 for ncn_progname in dlltool; do 11675 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11676set dummy ${ncn_progname}; ac_word=$2 11677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11678$as_echo_n "checking for $ac_word... " >&6; } 11679if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 11680 $as_echo_n "(cached) " >&6 11681else 11682 if test -n "$DLLTOOL_FOR_TARGET"; then 11683 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11684else 11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11686for as_dir in $PATH 11687do 11688 IFS=$as_save_IFS 11689 test -z "$as_dir" && as_dir=. 11690 for ac_exec_ext in '' $ac_executable_extensions; do 11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11692 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" 11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11694 break 2 11695 fi 11696done 11697 done 11698IFS=$as_save_IFS 11699 11700fi 11701fi 11702DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11703if test -n "$DLLTOOL_FOR_TARGET"; then 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11705$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11706else 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11708$as_echo "no" >&6; } 11709fi 11710 11711 11712 done 11713fi 11714 11715if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then 11716 for ncn_progname in dlltool; do 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11718$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11719 if test -x $with_build_time_tools/${ncn_progname}; then 11720 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11722$as_echo "yes" >&6; } 11723 break 11724 else 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11726$as_echo "no" >&6; } 11727 fi 11728 done 11729fi 11730 11731if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11732 for ncn_progname in dlltool; do 11733 if test -n "$ncn_target_tool_prefix"; then 11734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11735set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11737$as_echo_n "checking for $ac_word... " >&6; } 11738if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 11739 $as_echo_n "(cached) " >&6 11740else 11741 if test -n "$DLLTOOL_FOR_TARGET"; then 11742 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11743else 11744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11745for as_dir in $PATH 11746do 11747 IFS=$as_save_IFS 11748 test -z "$as_dir" && as_dir=. 11749 for ac_exec_ext in '' $ac_executable_extensions; do 11750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11751 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11753 break 2 11754 fi 11755done 11756 done 11757IFS=$as_save_IFS 11758 11759fi 11760fi 11761DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11762if test -n "$DLLTOOL_FOR_TARGET"; then 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11764$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11765else 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11767$as_echo "no" >&6; } 11768fi 11769 11770 11771 fi 11772 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then 11773 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11774set dummy ${ncn_progname}; ac_word=$2 11775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11776$as_echo_n "checking for $ac_word... " >&6; } 11777if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : 11778 $as_echo_n "(cached) " >&6 11779else 11780 if test -n "$DLLTOOL_FOR_TARGET"; then 11781 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11782else 11783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11784for as_dir in $PATH 11785do 11786 IFS=$as_save_IFS 11787 test -z "$as_dir" && as_dir=. 11788 for ac_exec_ext in '' $ac_executable_extensions; do 11789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11790 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" 11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11792 break 2 11793 fi 11794done 11795 done 11796IFS=$as_save_IFS 11797 11798fi 11799fi 11800DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11801if test -n "$DLLTOOL_FOR_TARGET"; then 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11803$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11804else 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11806$as_echo "no" >&6; } 11807fi 11808 11809 11810 fi 11811 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break 11812 done 11813fi 11814 11815if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then 11816 set dummy dlltool 11817 if test $build = $target ; then 11818 DLLTOOL_FOR_TARGET="$2" 11819 else 11820 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" 11821 fi 11822else 11823 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" 11824fi 11825 11826else 11827 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET 11828fi 11829 11830 11831 11832 11833if test -z "$ac_cv_path_LD_FOR_TARGET" ; then 11834 if test -n "$with_build_time_tools"; then 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 11836$as_echo_n "checking for ld in $with_build_time_tools... " >&6; } 11837 if test -x $with_build_time_tools/ld; then 11838 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld 11839 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 11841$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } 11842 else 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11844$as_echo "no" >&6; } 11845 fi 11846 elif test $build != $host && test $have_gcc_for_target = yes; then 11847 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` 11848 test $LD_FOR_TARGET = ld && LD_FOR_TARGET= 11849 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET 11850 fi 11851fi 11852if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11853 # Extract the first word of "ld", so it can be a program name with args. 11854set dummy ld; ac_word=$2 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11856$as_echo_n "checking for $ac_word... " >&6; } 11857if ${ac_cv_path_LD_FOR_TARGET+:} false; then : 11858 $as_echo_n "(cached) " >&6 11859else 11860 case $LD_FOR_TARGET in 11861 [\\/]* | ?:[\\/]*) 11862 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. 11863 ;; 11864 *) 11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11866for as_dir in $gcc_cv_tool_dirs 11867do 11868 IFS=$as_save_IFS 11869 test -z "$as_dir" && as_dir=. 11870 for ac_exec_ext in '' $ac_executable_extensions; do 11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11872 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11874 break 2 11875 fi 11876done 11877 done 11878IFS=$as_save_IFS 11879 11880 ;; 11881esac 11882fi 11883LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET 11884if test -n "$LD_FOR_TARGET"; then 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11886$as_echo "$LD_FOR_TARGET" >&6; } 11887else 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11889$as_echo "no" >&6; } 11890fi 11891 11892 11893fi 11894if test -z "$ac_cv_path_LD_FOR_TARGET" ; then 11895 11896 11897if test -n "$LD_FOR_TARGET"; then 11898 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET 11899elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then 11900 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11901fi 11902 11903if test -n "$ac_cv_prog_LD_FOR_TARGET"; then 11904 for ncn_progname in ld; do 11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11906set dummy ${ncn_progname}; ac_word=$2 11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11908$as_echo_n "checking for $ac_word... " >&6; } 11909if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 11910 $as_echo_n "(cached) " >&6 11911else 11912 if test -n "$LD_FOR_TARGET"; then 11913 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 11914else 11915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11916for as_dir in $PATH 11917do 11918 IFS=$as_save_IFS 11919 test -z "$as_dir" && as_dir=. 11920 for ac_exec_ext in '' $ac_executable_extensions; do 11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11922 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" 11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11924 break 2 11925 fi 11926done 11927 done 11928IFS=$as_save_IFS 11929 11930fi 11931fi 11932LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11933if test -n "$LD_FOR_TARGET"; then 11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11935$as_echo "$LD_FOR_TARGET" >&6; } 11936else 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11938$as_echo "no" >&6; } 11939fi 11940 11941 11942 done 11943fi 11944 11945if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then 11946 for ncn_progname in ld; do 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11948$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11949 if test -x $with_build_time_tools/${ncn_progname}; then 11950 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11952$as_echo "yes" >&6; } 11953 break 11954 else 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11956$as_echo "no" >&6; } 11957 fi 11958 done 11959fi 11960 11961if test -z "$ac_cv_prog_LD_FOR_TARGET"; then 11962 for ncn_progname in ld; do 11963 if test -n "$ncn_target_tool_prefix"; then 11964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11965set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11967$as_echo_n "checking for $ac_word... " >&6; } 11968if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 11969 $as_echo_n "(cached) " >&6 11970else 11971 if test -n "$LD_FOR_TARGET"; then 11972 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 11973else 11974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11975for as_dir in $PATH 11976do 11977 IFS=$as_save_IFS 11978 test -z "$as_dir" && as_dir=. 11979 for ac_exec_ext in '' $ac_executable_extensions; do 11980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11981 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11983 break 2 11984 fi 11985done 11986 done 11987IFS=$as_save_IFS 11988 11989fi 11990fi 11991LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11992if test -n "$LD_FOR_TARGET"; then 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11994$as_echo "$LD_FOR_TARGET" >&6; } 11995else 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11997$as_echo "no" >&6; } 11998fi 11999 12000 12001 fi 12002 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then 12003 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12004set dummy ${ncn_progname}; ac_word=$2 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12006$as_echo_n "checking for $ac_word... " >&6; } 12007if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : 12008 $as_echo_n "(cached) " >&6 12009else 12010 if test -n "$LD_FOR_TARGET"; then 12011 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 12012else 12013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12014for as_dir in $PATH 12015do 12016 IFS=$as_save_IFS 12017 test -z "$as_dir" && as_dir=. 12018 for ac_exec_ext in '' $ac_executable_extensions; do 12019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12020 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" 12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12022 break 2 12023 fi 12024done 12025 done 12026IFS=$as_save_IFS 12027 12028fi 12029fi 12030LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 12031if test -n "$LD_FOR_TARGET"; then 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 12033$as_echo "$LD_FOR_TARGET" >&6; } 12034else 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12036$as_echo "no" >&6; } 12037fi 12038 12039 12040 fi 12041 test -n "$ac_cv_prog_LD_FOR_TARGET" && break 12042 done 12043fi 12044 12045if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then 12046 set dummy ld 12047 if test $build = $target ; then 12048 LD_FOR_TARGET="$2" 12049 else 12050 LD_FOR_TARGET="${ncn_target_tool_prefix}$2" 12051 fi 12052else 12053 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" 12054fi 12055 12056else 12057 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET 12058fi 12059 12060 12061 12062 12063if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then 12064 if test -n "$with_build_time_tools"; then 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 12066$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } 12067 if test -x $with_build_time_tools/lipo; then 12068 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo 12069 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 12071$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } 12072 else 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12074$as_echo "no" >&6; } 12075 fi 12076 elif test $build != $host && test $have_gcc_for_target = yes; then 12077 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` 12078 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= 12079 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 12080 fi 12081fi 12082if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12083 # Extract the first word of "lipo", so it can be a program name with args. 12084set dummy lipo; ac_word=$2 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12086$as_echo_n "checking for $ac_word... " >&6; } 12087if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : 12088 $as_echo_n "(cached) " >&6 12089else 12090 case $LIPO_FOR_TARGET in 12091 [\\/]* | ?:[\\/]*) 12092 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. 12093 ;; 12094 *) 12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12096for as_dir in $gcc_cv_tool_dirs 12097do 12098 IFS=$as_save_IFS 12099 test -z "$as_dir" && as_dir=. 12100 for ac_exec_ext in '' $ac_executable_extensions; do 12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12102 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12104 break 2 12105 fi 12106done 12107 done 12108IFS=$as_save_IFS 12109 12110 ;; 12111esac 12112fi 12113LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET 12114if test -n "$LIPO_FOR_TARGET"; then 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12116$as_echo "$LIPO_FOR_TARGET" >&6; } 12117else 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12119$as_echo "no" >&6; } 12120fi 12121 12122 12123fi 12124if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then 12125 12126 12127if test -n "$LIPO_FOR_TARGET"; then 12128 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 12129elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then 12130 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12131fi 12132 12133if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then 12134 for ncn_progname in lipo; do 12135 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12136set dummy ${ncn_progname}; ac_word=$2 12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12138$as_echo_n "checking for $ac_word... " >&6; } 12139if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 12140 $as_echo_n "(cached) " >&6 12141else 12142 if test -n "$LIPO_FOR_TARGET"; then 12143 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 12144else 12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12146for as_dir in $PATH 12147do 12148 IFS=$as_save_IFS 12149 test -z "$as_dir" && as_dir=. 12150 for ac_exec_ext in '' $ac_executable_extensions; do 12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12152 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" 12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12154 break 2 12155 fi 12156done 12157 done 12158IFS=$as_save_IFS 12159 12160fi 12161fi 12162LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12163if test -n "$LIPO_FOR_TARGET"; then 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12165$as_echo "$LIPO_FOR_TARGET" >&6; } 12166else 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12168$as_echo "no" >&6; } 12169fi 12170 12171 12172 done 12173fi 12174 12175if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then 12176 for ncn_progname in lipo; do 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12178$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12179 if test -x $with_build_time_tools/${ncn_progname}; then 12180 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12182$as_echo "yes" >&6; } 12183 break 12184 else 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12186$as_echo "no" >&6; } 12187 fi 12188 done 12189fi 12190 12191if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then 12192 for ncn_progname in lipo; do 12193 if test -n "$ncn_target_tool_prefix"; then 12194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12195set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12197$as_echo_n "checking for $ac_word... " >&6; } 12198if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 12199 $as_echo_n "(cached) " >&6 12200else 12201 if test -n "$LIPO_FOR_TARGET"; then 12202 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 12203else 12204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12205for as_dir in $PATH 12206do 12207 IFS=$as_save_IFS 12208 test -z "$as_dir" && as_dir=. 12209 for ac_exec_ext in '' $ac_executable_extensions; do 12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12211 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12213 break 2 12214 fi 12215done 12216 done 12217IFS=$as_save_IFS 12218 12219fi 12220fi 12221LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12222if test -n "$LIPO_FOR_TARGET"; then 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12224$as_echo "$LIPO_FOR_TARGET" >&6; } 12225else 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12227$as_echo "no" >&6; } 12228fi 12229 12230 12231 fi 12232 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then 12233 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12234set dummy ${ncn_progname}; ac_word=$2 12235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12236$as_echo_n "checking for $ac_word... " >&6; } 12237if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : 12238 $as_echo_n "(cached) " >&6 12239else 12240 if test -n "$LIPO_FOR_TARGET"; then 12241 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 12242else 12243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12244for as_dir in $PATH 12245do 12246 IFS=$as_save_IFS 12247 test -z "$as_dir" && as_dir=. 12248 for ac_exec_ext in '' $ac_executable_extensions; do 12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12250 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" 12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12252 break 2 12253 fi 12254done 12255 done 12256IFS=$as_save_IFS 12257 12258fi 12259fi 12260LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 12261if test -n "$LIPO_FOR_TARGET"; then 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 12263$as_echo "$LIPO_FOR_TARGET" >&6; } 12264else 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12266$as_echo "no" >&6; } 12267fi 12268 12269 12270 fi 12271 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break 12272 done 12273fi 12274 12275if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then 12276 set dummy lipo 12277 if test $build = $target ; then 12278 LIPO_FOR_TARGET="$2" 12279 else 12280 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" 12281 fi 12282else 12283 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" 12284fi 12285 12286else 12287 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET 12288fi 12289 12290 12291 12292 12293if test -z "$ac_cv_path_NM_FOR_TARGET" ; then 12294 if test -n "$with_build_time_tools"; then 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 12296$as_echo_n "checking for nm in $with_build_time_tools... " >&6; } 12297 if test -x $with_build_time_tools/nm; then 12298 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm 12299 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 12301$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } 12302 else 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12304$as_echo "no" >&6; } 12305 fi 12306 elif test $build != $host && test $have_gcc_for_target = yes; then 12307 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` 12308 test $NM_FOR_TARGET = nm && NM_FOR_TARGET= 12309 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET 12310 fi 12311fi 12312if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12313 # Extract the first word of "nm", so it can be a program name with args. 12314set dummy nm; ac_word=$2 12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12316$as_echo_n "checking for $ac_word... " >&6; } 12317if ${ac_cv_path_NM_FOR_TARGET+:} false; then : 12318 $as_echo_n "(cached) " >&6 12319else 12320 case $NM_FOR_TARGET in 12321 [\\/]* | ?:[\\/]*) 12322 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. 12323 ;; 12324 *) 12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12326for as_dir in $gcc_cv_tool_dirs 12327do 12328 IFS=$as_save_IFS 12329 test -z "$as_dir" && as_dir=. 12330 for ac_exec_ext in '' $ac_executable_extensions; do 12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12332 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12334 break 2 12335 fi 12336done 12337 done 12338IFS=$as_save_IFS 12339 12340 ;; 12341esac 12342fi 12343NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET 12344if test -n "$NM_FOR_TARGET"; then 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12346$as_echo "$NM_FOR_TARGET" >&6; } 12347else 12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12349$as_echo "no" >&6; } 12350fi 12351 12352 12353fi 12354if test -z "$ac_cv_path_NM_FOR_TARGET" ; then 12355 12356 12357if test -n "$NM_FOR_TARGET"; then 12358 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET 12359elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then 12360 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12361fi 12362 12363if test -n "$ac_cv_prog_NM_FOR_TARGET"; then 12364 for ncn_progname in nm; do 12365 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12366set dummy ${ncn_progname}; ac_word=$2 12367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12368$as_echo_n "checking for $ac_word... " >&6; } 12369if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12370 $as_echo_n "(cached) " >&6 12371else 12372 if test -n "$NM_FOR_TARGET"; then 12373 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12374else 12375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12376for as_dir in $PATH 12377do 12378 IFS=$as_save_IFS 12379 test -z "$as_dir" && as_dir=. 12380 for ac_exec_ext in '' $ac_executable_extensions; do 12381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12382 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" 12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12384 break 2 12385 fi 12386done 12387 done 12388IFS=$as_save_IFS 12389 12390fi 12391fi 12392NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12393if test -n "$NM_FOR_TARGET"; then 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12395$as_echo "$NM_FOR_TARGET" >&6; } 12396else 12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12398$as_echo "no" >&6; } 12399fi 12400 12401 12402 done 12403fi 12404 12405if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then 12406 for ncn_progname in nm; do 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12408$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12409 if test -x $with_build_time_tools/${ncn_progname}; then 12410 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12412$as_echo "yes" >&6; } 12413 break 12414 else 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12416$as_echo "no" >&6; } 12417 fi 12418 done 12419fi 12420 12421if test -z "$ac_cv_prog_NM_FOR_TARGET"; then 12422 for ncn_progname in nm; do 12423 if test -n "$ncn_target_tool_prefix"; then 12424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12425set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12427$as_echo_n "checking for $ac_word... " >&6; } 12428if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12429 $as_echo_n "(cached) " >&6 12430else 12431 if test -n "$NM_FOR_TARGET"; then 12432 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12433else 12434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12435for as_dir in $PATH 12436do 12437 IFS=$as_save_IFS 12438 test -z "$as_dir" && as_dir=. 12439 for ac_exec_ext in '' $ac_executable_extensions; do 12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12441 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12443 break 2 12444 fi 12445done 12446 done 12447IFS=$as_save_IFS 12448 12449fi 12450fi 12451NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12452if test -n "$NM_FOR_TARGET"; then 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12454$as_echo "$NM_FOR_TARGET" >&6; } 12455else 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12457$as_echo "no" >&6; } 12458fi 12459 12460 12461 fi 12462 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then 12463 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12464set dummy ${ncn_progname}; ac_word=$2 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12466$as_echo_n "checking for $ac_word... " >&6; } 12467if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 if test -n "$NM_FOR_TARGET"; then 12471 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12472else 12473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12474for as_dir in $PATH 12475do 12476 IFS=$as_save_IFS 12477 test -z "$as_dir" && as_dir=. 12478 for ac_exec_ext in '' $ac_executable_extensions; do 12479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12480 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" 12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12482 break 2 12483 fi 12484done 12485 done 12486IFS=$as_save_IFS 12487 12488fi 12489fi 12490NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12491if test -n "$NM_FOR_TARGET"; then 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12493$as_echo "$NM_FOR_TARGET" >&6; } 12494else 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12496$as_echo "no" >&6; } 12497fi 12498 12499 12500 fi 12501 test -n "$ac_cv_prog_NM_FOR_TARGET" && break 12502 done 12503fi 12504 12505if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then 12506 set dummy nm 12507 if test $build = $target ; then 12508 NM_FOR_TARGET="$2" 12509 else 12510 NM_FOR_TARGET="${ncn_target_tool_prefix}$2" 12511 fi 12512else 12513 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" 12514fi 12515 12516else 12517 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET 12518fi 12519 12520 12521 12522 12523if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then 12524 if test -n "$with_build_time_tools"; then 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 12526$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } 12527 if test -x $with_build_time_tools/objcopy; then 12528 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy 12529 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 12531$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } 12532 else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534$as_echo "no" >&6; } 12535 fi 12536 elif test $build != $host && test $have_gcc_for_target = yes; then 12537 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` 12538 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= 12539 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12540 fi 12541fi 12542if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12543 # Extract the first word of "objcopy", so it can be a program name with args. 12544set dummy objcopy; ac_word=$2 12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12546$as_echo_n "checking for $ac_word... " >&6; } 12547if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : 12548 $as_echo_n "(cached) " >&6 12549else 12550 case $OBJCOPY_FOR_TARGET in 12551 [\\/]* | ?:[\\/]*) 12552 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. 12553 ;; 12554 *) 12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12556for as_dir in $gcc_cv_tool_dirs 12557do 12558 IFS=$as_save_IFS 12559 test -z "$as_dir" && as_dir=. 12560 for ac_exec_ext in '' $ac_executable_extensions; do 12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12562 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12564 break 2 12565 fi 12566done 12567 done 12568IFS=$as_save_IFS 12569 12570 ;; 12571esac 12572fi 12573OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET 12574if test -n "$OBJCOPY_FOR_TARGET"; then 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12576$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12577else 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12579$as_echo "no" >&6; } 12580fi 12581 12582 12583fi 12584if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then 12585 12586 12587if test -n "$OBJCOPY_FOR_TARGET"; then 12588 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12589elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12590 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12591fi 12592 12593if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12594 for ncn_progname in objcopy; do 12595 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12596set dummy ${ncn_progname}; ac_word=$2 12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12598$as_echo_n "checking for $ac_word... " >&6; } 12599if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 if test -n "$OBJCOPY_FOR_TARGET"; then 12603 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12604else 12605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12606for as_dir in $PATH 12607do 12608 IFS=$as_save_IFS 12609 test -z "$as_dir" && as_dir=. 12610 for ac_exec_ext in '' $ac_executable_extensions; do 12611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12612 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" 12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12614 break 2 12615 fi 12616done 12617 done 12618IFS=$as_save_IFS 12619 12620fi 12621fi 12622OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12623if test -n "$OBJCOPY_FOR_TARGET"; then 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12625$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12626else 12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12628$as_echo "no" >&6; } 12629fi 12630 12631 12632 done 12633fi 12634 12635if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then 12636 for ncn_progname in objcopy; do 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12638$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12639 if test -x $with_build_time_tools/${ncn_progname}; then 12640 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12642$as_echo "yes" >&6; } 12643 break 12644 else 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12646$as_echo "no" >&6; } 12647 fi 12648 done 12649fi 12650 12651if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12652 for ncn_progname in objcopy; do 12653 if test -n "$ncn_target_tool_prefix"; then 12654 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12655set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12657$as_echo_n "checking for $ac_word... " >&6; } 12658if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 12659 $as_echo_n "(cached) " >&6 12660else 12661 if test -n "$OBJCOPY_FOR_TARGET"; then 12662 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12663else 12664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12665for as_dir in $PATH 12666do 12667 IFS=$as_save_IFS 12668 test -z "$as_dir" && as_dir=. 12669 for ac_exec_ext in '' $ac_executable_extensions; do 12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12671 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12673 break 2 12674 fi 12675done 12676 done 12677IFS=$as_save_IFS 12678 12679fi 12680fi 12681OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12682if test -n "$OBJCOPY_FOR_TARGET"; then 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12684$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12685else 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12687$as_echo "no" >&6; } 12688fi 12689 12690 12691 fi 12692 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then 12693 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12694set dummy ${ncn_progname}; ac_word=$2 12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12696$as_echo_n "checking for $ac_word... " >&6; } 12697if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : 12698 $as_echo_n "(cached) " >&6 12699else 12700 if test -n "$OBJCOPY_FOR_TARGET"; then 12701 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12702else 12703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12704for as_dir in $PATH 12705do 12706 IFS=$as_save_IFS 12707 test -z "$as_dir" && as_dir=. 12708 for ac_exec_ext in '' $ac_executable_extensions; do 12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12710 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" 12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12712 break 2 12713 fi 12714done 12715 done 12716IFS=$as_save_IFS 12717 12718fi 12719fi 12720OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12721if test -n "$OBJCOPY_FOR_TARGET"; then 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12723$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12724else 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12726$as_echo "no" >&6; } 12727fi 12728 12729 12730 fi 12731 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break 12732 done 12733fi 12734 12735if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then 12736 set dummy objcopy 12737 if test $build = $target ; then 12738 OBJCOPY_FOR_TARGET="$2" 12739 else 12740 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" 12741 fi 12742else 12743 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" 12744fi 12745 12746else 12747 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET 12748fi 12749 12750 12751 12752 12753if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then 12754 if test -n "$with_build_time_tools"; then 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 12756$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } 12757 if test -x $with_build_time_tools/objdump; then 12758 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump 12759 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 12761$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } 12762 else 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12764$as_echo "no" >&6; } 12765 fi 12766 elif test $build != $host && test $have_gcc_for_target = yes; then 12767 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` 12768 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= 12769 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12770 fi 12771fi 12772if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12773 # Extract the first word of "objdump", so it can be a program name with args. 12774set dummy objdump; ac_word=$2 12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12776$as_echo_n "checking for $ac_word... " >&6; } 12777if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : 12778 $as_echo_n "(cached) " >&6 12779else 12780 case $OBJDUMP_FOR_TARGET in 12781 [\\/]* | ?:[\\/]*) 12782 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. 12783 ;; 12784 *) 12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12786for as_dir in $gcc_cv_tool_dirs 12787do 12788 IFS=$as_save_IFS 12789 test -z "$as_dir" && as_dir=. 12790 for ac_exec_ext in '' $ac_executable_extensions; do 12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12792 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12794 break 2 12795 fi 12796done 12797 done 12798IFS=$as_save_IFS 12799 12800 ;; 12801esac 12802fi 12803OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET 12804if test -n "$OBJDUMP_FOR_TARGET"; then 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12806$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12807else 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12809$as_echo "no" >&6; } 12810fi 12811 12812 12813fi 12814if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then 12815 12816 12817if test -n "$OBJDUMP_FOR_TARGET"; then 12818 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12819elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12820 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12821fi 12822 12823if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12824 for ncn_progname in objdump; do 12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12826set dummy ${ncn_progname}; ac_word=$2 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12828$as_echo_n "checking for $ac_word... " >&6; } 12829if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 12830 $as_echo_n "(cached) " >&6 12831else 12832 if test -n "$OBJDUMP_FOR_TARGET"; then 12833 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12834else 12835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12836for as_dir in $PATH 12837do 12838 IFS=$as_save_IFS 12839 test -z "$as_dir" && as_dir=. 12840 for ac_exec_ext in '' $ac_executable_extensions; do 12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12842 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" 12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12844 break 2 12845 fi 12846done 12847 done 12848IFS=$as_save_IFS 12849 12850fi 12851fi 12852OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12853if test -n "$OBJDUMP_FOR_TARGET"; then 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12855$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12856else 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12858$as_echo "no" >&6; } 12859fi 12860 12861 12862 done 12863fi 12864 12865if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then 12866 for ncn_progname in objdump; do 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12868$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12869 if test -x $with_build_time_tools/${ncn_progname}; then 12870 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12872$as_echo "yes" >&6; } 12873 break 12874 else 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876$as_echo "no" >&6; } 12877 fi 12878 done 12879fi 12880 12881if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12882 for ncn_progname in objdump; do 12883 if test -n "$ncn_target_tool_prefix"; then 12884 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12885set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12887$as_echo_n "checking for $ac_word... " >&6; } 12888if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 if test -n "$OBJDUMP_FOR_TARGET"; then 12892 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12893else 12894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12895for as_dir in $PATH 12896do 12897 IFS=$as_save_IFS 12898 test -z "$as_dir" && as_dir=. 12899 for ac_exec_ext in '' $ac_executable_extensions; do 12900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12901 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12903 break 2 12904 fi 12905done 12906 done 12907IFS=$as_save_IFS 12908 12909fi 12910fi 12911OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12912if test -n "$OBJDUMP_FOR_TARGET"; then 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12914$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12915else 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12917$as_echo "no" >&6; } 12918fi 12919 12920 12921 fi 12922 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then 12923 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12924set dummy ${ncn_progname}; ac_word=$2 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12926$as_echo_n "checking for $ac_word... " >&6; } 12927if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : 12928 $as_echo_n "(cached) " >&6 12929else 12930 if test -n "$OBJDUMP_FOR_TARGET"; then 12931 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12932else 12933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12934for as_dir in $PATH 12935do 12936 IFS=$as_save_IFS 12937 test -z "$as_dir" && as_dir=. 12938 for ac_exec_ext in '' $ac_executable_extensions; do 12939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12940 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" 12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12942 break 2 12943 fi 12944done 12945 done 12946IFS=$as_save_IFS 12947 12948fi 12949fi 12950OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12951if test -n "$OBJDUMP_FOR_TARGET"; then 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12953$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12954else 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12956$as_echo "no" >&6; } 12957fi 12958 12959 12960 fi 12961 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break 12962 done 12963fi 12964 12965if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then 12966 set dummy objdump 12967 if test $build = $target ; then 12968 OBJDUMP_FOR_TARGET="$2" 12969 else 12970 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" 12971 fi 12972else 12973 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" 12974fi 12975 12976else 12977 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET 12978fi 12979 12980 12981 12982 12983if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then 12984 if test -n "$with_build_time_tools"; then 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 12986$as_echo_n "checking for otool in $with_build_time_tools... " >&6; } 12987 if test -x $with_build_time_tools/otool; then 12988 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool 12989 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 12991$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } 12992 else 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12994$as_echo "no" >&6; } 12995 fi 12996 elif test $build != $host && test $have_gcc_for_target = yes; then 12997 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` 12998 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= 12999 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET 13000 fi 13001fi 13002if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13003 # Extract the first word of "otool", so it can be a program name with args. 13004set dummy otool; ac_word=$2 13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13006$as_echo_n "checking for $ac_word... " >&6; } 13007if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 case $OTOOL_FOR_TARGET in 13011 [\\/]* | ?:[\\/]*) 13012 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. 13013 ;; 13014 *) 13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13016for as_dir in $gcc_cv_tool_dirs 13017do 13018 IFS=$as_save_IFS 13019 test -z "$as_dir" && as_dir=. 13020 for ac_exec_ext in '' $ac_executable_extensions; do 13021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13022 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13024 break 2 13025 fi 13026done 13027 done 13028IFS=$as_save_IFS 13029 13030 ;; 13031esac 13032fi 13033OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET 13034if test -n "$OTOOL_FOR_TARGET"; then 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 13036$as_echo "$OTOOL_FOR_TARGET" >&6; } 13037else 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13039$as_echo "no" >&6; } 13040fi 13041 13042 13043fi 13044if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then 13045 13046 13047if test -n "$OTOOL_FOR_TARGET"; then 13048 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET 13049elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then 13050 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET 13051fi 13052 13053if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then 13054 for ncn_progname in otool; do 13055 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13056set dummy ${ncn_progname}; ac_word=$2 13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13058$as_echo_n "checking for $ac_word... " >&6; } 13059if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : 13060 $as_echo_n "(cached) " >&6 13061else 13062 if test -n "$OTOOL_FOR_TARGET"; then 13063 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. 13064else 13065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13066for as_dir in $PATH 13067do 13068 IFS=$as_save_IFS 13069 test -z "$as_dir" && as_dir=. 13070 for ac_exec_ext in '' $ac_executable_extensions; do 13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13072 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" 13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13074 break 2 13075 fi 13076done 13077 done 13078IFS=$as_save_IFS 13079 13080fi 13081fi 13082OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET 13083if test -n "$OTOOL_FOR_TARGET"; then 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 13085$as_echo "$OTOOL_FOR_TARGET" >&6; } 13086else 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13088$as_echo "no" >&6; } 13089fi 13090 13091 13092 done 13093fi 13094 13095if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then 13096 for ncn_progname in otool; do 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13098$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13099 if test -x $with_build_time_tools/${ncn_progname}; then 13100 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13102$as_echo "yes" >&6; } 13103 break 13104 else 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13106$as_echo "no" >&6; } 13107 fi 13108 done 13109fi 13110 13111if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then 13112 for ncn_progname in otool; do 13113 if test -n "$ncn_target_tool_prefix"; then 13114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13115set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13117$as_echo_n "checking for $ac_word... " >&6; } 13118if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : 13119 $as_echo_n "(cached) " >&6 13120else 13121 if test -n "$OTOOL_FOR_TARGET"; then 13122 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. 13123else 13124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13125for as_dir in $PATH 13126do 13127 IFS=$as_save_IFS 13128 test -z "$as_dir" && as_dir=. 13129 for ac_exec_ext in '' $ac_executable_extensions; do 13130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13131 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13133 break 2 13134 fi 13135done 13136 done 13137IFS=$as_save_IFS 13138 13139fi 13140fi 13141OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET 13142if test -n "$OTOOL_FOR_TARGET"; then 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 13144$as_echo "$OTOOL_FOR_TARGET" >&6; } 13145else 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13147$as_echo "no" >&6; } 13148fi 13149 13150 13151 fi 13152 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then 13153 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13154set dummy ${ncn_progname}; ac_word=$2 13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13156$as_echo_n "checking for $ac_word... " >&6; } 13157if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : 13158 $as_echo_n "(cached) " >&6 13159else 13160 if test -n "$OTOOL_FOR_TARGET"; then 13161 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. 13162else 13163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13164for as_dir in $PATH 13165do 13166 IFS=$as_save_IFS 13167 test -z "$as_dir" && as_dir=. 13168 for ac_exec_ext in '' $ac_executable_extensions; do 13169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13170 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" 13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13172 break 2 13173 fi 13174done 13175 done 13176IFS=$as_save_IFS 13177 13178fi 13179fi 13180OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET 13181if test -n "$OTOOL_FOR_TARGET"; then 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 13183$as_echo "$OTOOL_FOR_TARGET" >&6; } 13184else 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13186$as_echo "no" >&6; } 13187fi 13188 13189 13190 fi 13191 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break 13192 done 13193fi 13194 13195if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then 13196 set dummy otool 13197 if test $build = $target ; then 13198 OTOOL_FOR_TARGET="$2" 13199 else 13200 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" 13201 fi 13202else 13203 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" 13204fi 13205 13206else 13207 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET 13208fi 13209 13210 13211 13212 13213if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then 13214 if test -n "$with_build_time_tools"; then 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 13216$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } 13217 if test -x $with_build_time_tools/ranlib; then 13218 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib 13219 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 13221$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } 13222 else 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13224$as_echo "no" >&6; } 13225 fi 13226 elif test $build != $host && test $have_gcc_for_target = yes; then 13227 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` 13228 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= 13229 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 13230 fi 13231fi 13232if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13233 # Extract the first word of "ranlib", so it can be a program name with args. 13234set dummy ranlib; ac_word=$2 13235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13236$as_echo_n "checking for $ac_word... " >&6; } 13237if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : 13238 $as_echo_n "(cached) " >&6 13239else 13240 case $RANLIB_FOR_TARGET in 13241 [\\/]* | ?:[\\/]*) 13242 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. 13243 ;; 13244 *) 13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13246for as_dir in $gcc_cv_tool_dirs 13247do 13248 IFS=$as_save_IFS 13249 test -z "$as_dir" && as_dir=. 13250 for ac_exec_ext in '' $ac_executable_extensions; do 13251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13252 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13254 break 2 13255 fi 13256done 13257 done 13258IFS=$as_save_IFS 13259 13260 ;; 13261esac 13262fi 13263RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET 13264if test -n "$RANLIB_FOR_TARGET"; then 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 13266$as_echo "$RANLIB_FOR_TARGET" >&6; } 13267else 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13269$as_echo "no" >&6; } 13270fi 13271 13272 13273fi 13274if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then 13275 13276 13277if test -n "$RANLIB_FOR_TARGET"; then 13278 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 13279elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then 13280 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 13281fi 13282 13283if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then 13284 for ncn_progname in ranlib; do 13285 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13286set dummy ${ncn_progname}; ac_word=$2 13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13288$as_echo_n "checking for $ac_word... " >&6; } 13289if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 13290 $as_echo_n "(cached) " >&6 13291else 13292 if test -n "$RANLIB_FOR_TARGET"; then 13293 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 13294else 13295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13296for as_dir in $PATH 13297do 13298 IFS=$as_save_IFS 13299 test -z "$as_dir" && as_dir=. 13300 for ac_exec_ext in '' $ac_executable_extensions; do 13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13302 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" 13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13304 break 2 13305 fi 13306done 13307 done 13308IFS=$as_save_IFS 13309 13310fi 13311fi 13312RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 13313if test -n "$RANLIB_FOR_TARGET"; then 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 13315$as_echo "$RANLIB_FOR_TARGET" >&6; } 13316else 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13318$as_echo "no" >&6; } 13319fi 13320 13321 13322 done 13323fi 13324 13325if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then 13326 for ncn_progname in ranlib; do 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13328$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13329 if test -x $with_build_time_tools/${ncn_progname}; then 13330 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13332$as_echo "yes" >&6; } 13333 break 13334 else 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13336$as_echo "no" >&6; } 13337 fi 13338 done 13339fi 13340 13341if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then 13342 for ncn_progname in ranlib; do 13343 if test -n "$ncn_target_tool_prefix"; then 13344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13345set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13347$as_echo_n "checking for $ac_word... " >&6; } 13348if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 13349 $as_echo_n "(cached) " >&6 13350else 13351 if test -n "$RANLIB_FOR_TARGET"; then 13352 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 13353else 13354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13355for as_dir in $PATH 13356do 13357 IFS=$as_save_IFS 13358 test -z "$as_dir" && as_dir=. 13359 for ac_exec_ext in '' $ac_executable_extensions; do 13360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13361 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13363 break 2 13364 fi 13365done 13366 done 13367IFS=$as_save_IFS 13368 13369fi 13370fi 13371RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 13372if test -n "$RANLIB_FOR_TARGET"; then 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 13374$as_echo "$RANLIB_FOR_TARGET" >&6; } 13375else 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13377$as_echo "no" >&6; } 13378fi 13379 13380 13381 fi 13382 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then 13383 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13384set dummy ${ncn_progname}; ac_word=$2 13385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13386$as_echo_n "checking for $ac_word... " >&6; } 13387if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : 13388 $as_echo_n "(cached) " >&6 13389else 13390 if test -n "$RANLIB_FOR_TARGET"; then 13391 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 13392else 13393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13394for as_dir in $PATH 13395do 13396 IFS=$as_save_IFS 13397 test -z "$as_dir" && as_dir=. 13398 for ac_exec_ext in '' $ac_executable_extensions; do 13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13400 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" 13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13402 break 2 13403 fi 13404done 13405 done 13406IFS=$as_save_IFS 13407 13408fi 13409fi 13410RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 13411if test -n "$RANLIB_FOR_TARGET"; then 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 13413$as_echo "$RANLIB_FOR_TARGET" >&6; } 13414else 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13416$as_echo "no" >&6; } 13417fi 13418 13419 13420 fi 13421 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break 13422 done 13423fi 13424 13425if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then 13426 set dummy ranlib 13427 if test $build = $target ; then 13428 RANLIB_FOR_TARGET="$2" 13429 else 13430 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" 13431 fi 13432else 13433 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" 13434fi 13435 13436else 13437 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET 13438fi 13439 13440 13441 13442 13443if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then 13444 if test -n "$with_build_time_tools"; then 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 13446$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } 13447 if test -x $with_build_time_tools/readelf; then 13448 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf 13449 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 13451$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } 13452 else 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13454$as_echo "no" >&6; } 13455 fi 13456 elif test $build != $host && test $have_gcc_for_target = yes; then 13457 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` 13458 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= 13459 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET 13460 fi 13461fi 13462if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13463 # Extract the first word of "readelf", so it can be a program name with args. 13464set dummy readelf; ac_word=$2 13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13466$as_echo_n "checking for $ac_word... " >&6; } 13467if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : 13468 $as_echo_n "(cached) " >&6 13469else 13470 case $READELF_FOR_TARGET in 13471 [\\/]* | ?:[\\/]*) 13472 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. 13473 ;; 13474 *) 13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13476for as_dir in $gcc_cv_tool_dirs 13477do 13478 IFS=$as_save_IFS 13479 test -z "$as_dir" && as_dir=. 13480 for ac_exec_ext in '' $ac_executable_extensions; do 13481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13482 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13484 break 2 13485 fi 13486done 13487 done 13488IFS=$as_save_IFS 13489 13490 ;; 13491esac 13492fi 13493READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET 13494if test -n "$READELF_FOR_TARGET"; then 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13496$as_echo "$READELF_FOR_TARGET" >&6; } 13497else 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13499$as_echo "no" >&6; } 13500fi 13501 13502 13503fi 13504if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then 13505 13506 13507if test -n "$READELF_FOR_TARGET"; then 13508 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET 13509elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then 13510 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13511fi 13512 13513if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then 13514 for ncn_progname in readelf; do 13515 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13516set dummy ${ncn_progname}; ac_word=$2 13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13518$as_echo_n "checking for $ac_word... " >&6; } 13519if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 13520 $as_echo_n "(cached) " >&6 13521else 13522 if test -n "$READELF_FOR_TARGET"; then 13523 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13524else 13525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13526for as_dir in $PATH 13527do 13528 IFS=$as_save_IFS 13529 test -z "$as_dir" && as_dir=. 13530 for ac_exec_ext in '' $ac_executable_extensions; do 13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13532 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" 13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13534 break 2 13535 fi 13536done 13537 done 13538IFS=$as_save_IFS 13539 13540fi 13541fi 13542READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13543if test -n "$READELF_FOR_TARGET"; then 13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13545$as_echo "$READELF_FOR_TARGET" >&6; } 13546else 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13548$as_echo "no" >&6; } 13549fi 13550 13551 13552 done 13553fi 13554 13555if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then 13556 for ncn_progname in readelf; do 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13558$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13559 if test -x $with_build_time_tools/${ncn_progname}; then 13560 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13562$as_echo "yes" >&6; } 13563 break 13564 else 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13566$as_echo "no" >&6; } 13567 fi 13568 done 13569fi 13570 13571if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then 13572 for ncn_progname in readelf; do 13573 if test -n "$ncn_target_tool_prefix"; then 13574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13575set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13577$as_echo_n "checking for $ac_word... " >&6; } 13578if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 13579 $as_echo_n "(cached) " >&6 13580else 13581 if test -n "$READELF_FOR_TARGET"; then 13582 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13583else 13584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13585for as_dir in $PATH 13586do 13587 IFS=$as_save_IFS 13588 test -z "$as_dir" && as_dir=. 13589 for ac_exec_ext in '' $ac_executable_extensions; do 13590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13591 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13593 break 2 13594 fi 13595done 13596 done 13597IFS=$as_save_IFS 13598 13599fi 13600fi 13601READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13602if test -n "$READELF_FOR_TARGET"; then 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13604$as_echo "$READELF_FOR_TARGET" >&6; } 13605else 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13607$as_echo "no" >&6; } 13608fi 13609 13610 13611 fi 13612 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then 13613 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13614set dummy ${ncn_progname}; ac_word=$2 13615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13616$as_echo_n "checking for $ac_word... " >&6; } 13617if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : 13618 $as_echo_n "(cached) " >&6 13619else 13620 if test -n "$READELF_FOR_TARGET"; then 13621 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13622else 13623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13624for as_dir in $PATH 13625do 13626 IFS=$as_save_IFS 13627 test -z "$as_dir" && as_dir=. 13628 for ac_exec_ext in '' $ac_executable_extensions; do 13629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13630 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" 13631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13632 break 2 13633 fi 13634done 13635 done 13636IFS=$as_save_IFS 13637 13638fi 13639fi 13640READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13641if test -n "$READELF_FOR_TARGET"; then 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13643$as_echo "$READELF_FOR_TARGET" >&6; } 13644else 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13646$as_echo "no" >&6; } 13647fi 13648 13649 13650 fi 13651 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break 13652 done 13653fi 13654 13655if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then 13656 set dummy readelf 13657 if test $build = $target ; then 13658 READELF_FOR_TARGET="$2" 13659 else 13660 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" 13661 fi 13662else 13663 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" 13664fi 13665 13666else 13667 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET 13668fi 13669 13670 13671 13672 13673if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then 13674 if test -n "$with_build_time_tools"; then 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 13676$as_echo_n "checking for strip in $with_build_time_tools... " >&6; } 13677 if test -x $with_build_time_tools/strip; then 13678 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip 13679 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 13681$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } 13682 else 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13684$as_echo "no" >&6; } 13685 fi 13686 elif test $build != $host && test $have_gcc_for_target = yes; then 13687 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` 13688 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= 13689 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13690 fi 13691fi 13692if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13693 # Extract the first word of "strip", so it can be a program name with args. 13694set dummy strip; ac_word=$2 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13696$as_echo_n "checking for $ac_word... " >&6; } 13697if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : 13698 $as_echo_n "(cached) " >&6 13699else 13700 case $STRIP_FOR_TARGET in 13701 [\\/]* | ?:[\\/]*) 13702 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. 13703 ;; 13704 *) 13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13706for as_dir in $gcc_cv_tool_dirs 13707do 13708 IFS=$as_save_IFS 13709 test -z "$as_dir" && as_dir=. 13710 for ac_exec_ext in '' $ac_executable_extensions; do 13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13712 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13714 break 2 13715 fi 13716done 13717 done 13718IFS=$as_save_IFS 13719 13720 ;; 13721esac 13722fi 13723STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET 13724if test -n "$STRIP_FOR_TARGET"; then 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13726$as_echo "$STRIP_FOR_TARGET" >&6; } 13727else 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13729$as_echo "no" >&6; } 13730fi 13731 13732 13733fi 13734if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then 13735 13736 13737if test -n "$STRIP_FOR_TARGET"; then 13738 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13739elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then 13740 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13741fi 13742 13743if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then 13744 for ncn_progname in strip; do 13745 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13746set dummy ${ncn_progname}; ac_word=$2 13747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13748$as_echo_n "checking for $ac_word... " >&6; } 13749if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 13750 $as_echo_n "(cached) " >&6 13751else 13752 if test -n "$STRIP_FOR_TARGET"; then 13753 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13754else 13755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13756for as_dir in $PATH 13757do 13758 IFS=$as_save_IFS 13759 test -z "$as_dir" && as_dir=. 13760 for ac_exec_ext in '' $ac_executable_extensions; do 13761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13762 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" 13763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13764 break 2 13765 fi 13766done 13767 done 13768IFS=$as_save_IFS 13769 13770fi 13771fi 13772STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13773if test -n "$STRIP_FOR_TARGET"; then 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13775$as_echo "$STRIP_FOR_TARGET" >&6; } 13776else 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13778$as_echo "no" >&6; } 13779fi 13780 13781 13782 done 13783fi 13784 13785if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then 13786 for ncn_progname in strip; do 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13788$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13789 if test -x $with_build_time_tools/${ncn_progname}; then 13790 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13792$as_echo "yes" >&6; } 13793 break 13794 else 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13796$as_echo "no" >&6; } 13797 fi 13798 done 13799fi 13800 13801if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then 13802 for ncn_progname in strip; do 13803 if test -n "$ncn_target_tool_prefix"; then 13804 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13805set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13807$as_echo_n "checking for $ac_word... " >&6; } 13808if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 13809 $as_echo_n "(cached) " >&6 13810else 13811 if test -n "$STRIP_FOR_TARGET"; then 13812 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13813else 13814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13815for as_dir in $PATH 13816do 13817 IFS=$as_save_IFS 13818 test -z "$as_dir" && as_dir=. 13819 for ac_exec_ext in '' $ac_executable_extensions; do 13820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13821 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13823 break 2 13824 fi 13825done 13826 done 13827IFS=$as_save_IFS 13828 13829fi 13830fi 13831STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13832if test -n "$STRIP_FOR_TARGET"; then 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13834$as_echo "$STRIP_FOR_TARGET" >&6; } 13835else 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13837$as_echo "no" >&6; } 13838fi 13839 13840 13841 fi 13842 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then 13843 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13844set dummy ${ncn_progname}; ac_word=$2 13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13846$as_echo_n "checking for $ac_word... " >&6; } 13847if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : 13848 $as_echo_n "(cached) " >&6 13849else 13850 if test -n "$STRIP_FOR_TARGET"; then 13851 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13852else 13853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13854for as_dir in $PATH 13855do 13856 IFS=$as_save_IFS 13857 test -z "$as_dir" && as_dir=. 13858 for ac_exec_ext in '' $ac_executable_extensions; do 13859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13860 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" 13861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13862 break 2 13863 fi 13864done 13865 done 13866IFS=$as_save_IFS 13867 13868fi 13869fi 13870STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13871if test -n "$STRIP_FOR_TARGET"; then 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13873$as_echo "$STRIP_FOR_TARGET" >&6; } 13874else 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13876$as_echo "no" >&6; } 13877fi 13878 13879 13880 fi 13881 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break 13882 done 13883fi 13884 13885if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then 13886 set dummy strip 13887 if test $build = $target ; then 13888 STRIP_FOR_TARGET="$2" 13889 else 13890 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" 13891 fi 13892else 13893 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" 13894fi 13895 13896else 13897 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET 13898fi 13899 13900 13901 13902 13903if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then 13904 if test -n "$with_build_time_tools"; then 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 13906$as_echo_n "checking for windres in $with_build_time_tools... " >&6; } 13907 if test -x $with_build_time_tools/windres; then 13908 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres 13909 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 13911$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } 13912 else 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13914$as_echo "no" >&6; } 13915 fi 13916 elif test $build != $host && test $have_gcc_for_target = yes; then 13917 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` 13918 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= 13919 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13920 fi 13921fi 13922if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13923 # Extract the first word of "windres", so it can be a program name with args. 13924set dummy windres; ac_word=$2 13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13926$as_echo_n "checking for $ac_word... " >&6; } 13927if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : 13928 $as_echo_n "(cached) " >&6 13929else 13930 case $WINDRES_FOR_TARGET in 13931 [\\/]* | ?:[\\/]*) 13932 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. 13933 ;; 13934 *) 13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13936for as_dir in $gcc_cv_tool_dirs 13937do 13938 IFS=$as_save_IFS 13939 test -z "$as_dir" && as_dir=. 13940 for ac_exec_ext in '' $ac_executable_extensions; do 13941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13942 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13944 break 2 13945 fi 13946done 13947 done 13948IFS=$as_save_IFS 13949 13950 ;; 13951esac 13952fi 13953WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET 13954if test -n "$WINDRES_FOR_TARGET"; then 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13956$as_echo "$WINDRES_FOR_TARGET" >&6; } 13957else 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13959$as_echo "no" >&6; } 13960fi 13961 13962 13963fi 13964if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then 13965 13966 13967if test -n "$WINDRES_FOR_TARGET"; then 13968 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13969elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then 13970 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13971fi 13972 13973if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then 13974 for ncn_progname in windres; do 13975 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13976set dummy ${ncn_progname}; ac_word=$2 13977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13978$as_echo_n "checking for $ac_word... " >&6; } 13979if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 13980 $as_echo_n "(cached) " >&6 13981else 13982 if test -n "$WINDRES_FOR_TARGET"; then 13983 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 13984else 13985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13986for as_dir in $PATH 13987do 13988 IFS=$as_save_IFS 13989 test -z "$as_dir" && as_dir=. 13990 for ac_exec_ext in '' $ac_executable_extensions; do 13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13992 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" 13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13994 break 2 13995 fi 13996done 13997 done 13998IFS=$as_save_IFS 13999 14000fi 14001fi 14002WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 14003if test -n "$WINDRES_FOR_TARGET"; then 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 14005$as_echo "$WINDRES_FOR_TARGET" >&6; } 14006else 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14008$as_echo "no" >&6; } 14009fi 14010 14011 14012 done 14013fi 14014 14015if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then 14016 for ncn_progname in windres; do 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 14018$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 14019 if test -x $with_build_time_tools/${ncn_progname}; then 14020 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14022$as_echo "yes" >&6; } 14023 break 14024 else 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14026$as_echo "no" >&6; } 14027 fi 14028 done 14029fi 14030 14031if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then 14032 for ncn_progname in windres; do 14033 if test -n "$ncn_target_tool_prefix"; then 14034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 14035set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 14036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14037$as_echo_n "checking for $ac_word... " >&6; } 14038if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 14039 $as_echo_n "(cached) " >&6 14040else 14041 if test -n "$WINDRES_FOR_TARGET"; then 14042 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 14043else 14044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14045for as_dir in $PATH 14046do 14047 IFS=$as_save_IFS 14048 test -z "$as_dir" && as_dir=. 14049 for ac_exec_ext in '' $ac_executable_extensions; do 14050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14051 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 14052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14053 break 2 14054 fi 14055done 14056 done 14057IFS=$as_save_IFS 14058 14059fi 14060fi 14061WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 14062if test -n "$WINDRES_FOR_TARGET"; then 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 14064$as_echo "$WINDRES_FOR_TARGET" >&6; } 14065else 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14067$as_echo "no" >&6; } 14068fi 14069 14070 14071 fi 14072 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then 14073 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14074set dummy ${ncn_progname}; ac_word=$2 14075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14076$as_echo_n "checking for $ac_word... " >&6; } 14077if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : 14078 $as_echo_n "(cached) " >&6 14079else 14080 if test -n "$WINDRES_FOR_TARGET"; then 14081 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 14082else 14083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14084for as_dir in $PATH 14085do 14086 IFS=$as_save_IFS 14087 test -z "$as_dir" && as_dir=. 14088 for ac_exec_ext in '' $ac_executable_extensions; do 14089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14090 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" 14091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14092 break 2 14093 fi 14094done 14095 done 14096IFS=$as_save_IFS 14097 14098fi 14099fi 14100WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 14101if test -n "$WINDRES_FOR_TARGET"; then 14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 14103$as_echo "$WINDRES_FOR_TARGET" >&6; } 14104else 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14106$as_echo "no" >&6; } 14107fi 14108 14109 14110 fi 14111 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break 14112 done 14113fi 14114 14115if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then 14116 set dummy windres 14117 if test $build = $target ; then 14118 WINDRES_FOR_TARGET="$2" 14119 else 14120 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" 14121 fi 14122else 14123 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" 14124fi 14125 14126else 14127 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET 14128fi 14129 14130 14131 14132 14133if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then 14134 if test -n "$with_build_time_tools"; then 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 14136$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } 14137 if test -x $with_build_time_tools/windmc; then 14138 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc 14139 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 14141$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } 14142 else 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14144$as_echo "no" >&6; } 14145 fi 14146 elif test $build != $host && test $have_gcc_for_target = yes; then 14147 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` 14148 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= 14149 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 14150 fi 14151fi 14152if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 14153 # Extract the first word of "windmc", so it can be a program name with args. 14154set dummy windmc; ac_word=$2 14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14156$as_echo_n "checking for $ac_word... " >&6; } 14157if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : 14158 $as_echo_n "(cached) " >&6 14159else 14160 case $WINDMC_FOR_TARGET in 14161 [\\/]* | ?:[\\/]*) 14162 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. 14163 ;; 14164 *) 14165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14166for as_dir in $gcc_cv_tool_dirs 14167do 14168 IFS=$as_save_IFS 14169 test -z "$as_dir" && as_dir=. 14170 for ac_exec_ext in '' $ac_executable_extensions; do 14171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14172 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 14173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14174 break 2 14175 fi 14176done 14177 done 14178IFS=$as_save_IFS 14179 14180 ;; 14181esac 14182fi 14183WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET 14184if test -n "$WINDMC_FOR_TARGET"; then 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 14186$as_echo "$WINDMC_FOR_TARGET" >&6; } 14187else 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14189$as_echo "no" >&6; } 14190fi 14191 14192 14193fi 14194if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then 14195 14196 14197if test -n "$WINDMC_FOR_TARGET"; then 14198 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 14199elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then 14200 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 14201fi 14202 14203if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then 14204 for ncn_progname in windmc; do 14205 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14206set dummy ${ncn_progname}; ac_word=$2 14207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14208$as_echo_n "checking for $ac_word... " >&6; } 14209if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 14210 $as_echo_n "(cached) " >&6 14211else 14212 if test -n "$WINDMC_FOR_TARGET"; then 14213 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 14214else 14215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14216for as_dir in $PATH 14217do 14218 IFS=$as_save_IFS 14219 test -z "$as_dir" && as_dir=. 14220 for ac_exec_ext in '' $ac_executable_extensions; do 14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14222 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" 14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14224 break 2 14225 fi 14226done 14227 done 14228IFS=$as_save_IFS 14229 14230fi 14231fi 14232WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 14233if test -n "$WINDMC_FOR_TARGET"; then 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 14235$as_echo "$WINDMC_FOR_TARGET" >&6; } 14236else 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14238$as_echo "no" >&6; } 14239fi 14240 14241 14242 done 14243fi 14244 14245if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then 14246 for ncn_progname in windmc; do 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 14248$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 14249 if test -x $with_build_time_tools/${ncn_progname}; then 14250 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14252$as_echo "yes" >&6; } 14253 break 14254 else 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14256$as_echo "no" >&6; } 14257 fi 14258 done 14259fi 14260 14261if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then 14262 for ncn_progname in windmc; do 14263 if test -n "$ncn_target_tool_prefix"; then 14264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 14265set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14267$as_echo_n "checking for $ac_word... " >&6; } 14268if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 14269 $as_echo_n "(cached) " >&6 14270else 14271 if test -n "$WINDMC_FOR_TARGET"; then 14272 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 14273else 14274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14275for as_dir in $PATH 14276do 14277 IFS=$as_save_IFS 14278 test -z "$as_dir" && as_dir=. 14279 for ac_exec_ext in '' $ac_executable_extensions; do 14280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14281 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 14282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14283 break 2 14284 fi 14285done 14286 done 14287IFS=$as_save_IFS 14288 14289fi 14290fi 14291WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 14292if test -n "$WINDMC_FOR_TARGET"; then 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 14294$as_echo "$WINDMC_FOR_TARGET" >&6; } 14295else 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14297$as_echo "no" >&6; } 14298fi 14299 14300 14301 fi 14302 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then 14303 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 14304set dummy ${ncn_progname}; ac_word=$2 14305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14306$as_echo_n "checking for $ac_word... " >&6; } 14307if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : 14308 $as_echo_n "(cached) " >&6 14309else 14310 if test -n "$WINDMC_FOR_TARGET"; then 14311 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 14312else 14313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14314for as_dir in $PATH 14315do 14316 IFS=$as_save_IFS 14317 test -z "$as_dir" && as_dir=. 14318 for ac_exec_ext in '' $ac_executable_extensions; do 14319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14320 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" 14321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14322 break 2 14323 fi 14324done 14325 done 14326IFS=$as_save_IFS 14327 14328fi 14329fi 14330WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 14331if test -n "$WINDMC_FOR_TARGET"; then 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 14333$as_echo "$WINDMC_FOR_TARGET" >&6; } 14334else 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14336$as_echo "no" >&6; } 14337fi 14338 14339 14340 fi 14341 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break 14342 done 14343fi 14344 14345if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then 14346 set dummy windmc 14347 if test $build = $target ; then 14348 WINDMC_FOR_TARGET="$2" 14349 else 14350 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" 14351 fi 14352else 14353 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" 14354fi 14355 14356else 14357 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET 14358fi 14359 14360 14361RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" 14362 14363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 14364$as_echo_n "checking where to find the target ar... " >&6; } 14365if test "x${build}" != "x${host}" ; then 14366 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then 14367 # We already found the complete path 14368 ac_dir=`dirname $AR_FOR_TARGET` 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14370$as_echo "pre-installed in $ac_dir" >&6; } 14371 else 14372 # Canadian cross, just use what we found 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14374$as_echo "pre-installed" >&6; } 14375 fi 14376else 14377 ok=yes 14378 case " ${configdirs} " in 14379 *" binutils "*) ;; 14380 *) ok=no ;; 14381 esac 14382 14383 if test $ok = yes; then 14384 # An in-tree tool is available and we can use it 14385 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' 14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14387$as_echo "just compiled" >&6; } 14388 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then 14389 # We already found the complete path 14390 ac_dir=`dirname $AR_FOR_TARGET` 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14392$as_echo "pre-installed in $ac_dir" >&6; } 14393 elif test "x$target" = "x$host"; then 14394 # We can use an host tool 14395 AR_FOR_TARGET='$(AR)' 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14397$as_echo "host tool" >&6; } 14398 else 14399 # We need a cross tool 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14401$as_echo "pre-installed" >&6; } 14402 fi 14403fi 14404 14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 14406$as_echo_n "checking where to find the target as... " >&6; } 14407if test "x${build}" != "x${host}" ; then 14408 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then 14409 # We already found the complete path 14410 ac_dir=`dirname $AS_FOR_TARGET` 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14412$as_echo "pre-installed in $ac_dir" >&6; } 14413 else 14414 # Canadian cross, just use what we found 14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14416$as_echo "pre-installed" >&6; } 14417 fi 14418else 14419 ok=yes 14420 case " ${configdirs} " in 14421 *" gas "*) ;; 14422 *) ok=no ;; 14423 esac 14424 14425 if test $ok = yes; then 14426 # An in-tree tool is available and we can use it 14427 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14429$as_echo "just compiled" >&6; } 14430 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then 14431 # We already found the complete path 14432 ac_dir=`dirname $AS_FOR_TARGET` 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14434$as_echo "pre-installed in $ac_dir" >&6; } 14435 elif test "x$target" = "x$host"; then 14436 # We can use an host tool 14437 AS_FOR_TARGET='$(AS)' 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14439$as_echo "host tool" >&6; } 14440 else 14441 # We need a cross tool 14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14443$as_echo "pre-installed" >&6; } 14444 fi 14445fi 14446 14447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 14448$as_echo_n "checking where to find the target cc... " >&6; } 14449if test "x${build}" != "x${host}" ; then 14450 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then 14451 # We already found the complete path 14452 ac_dir=`dirname $CC_FOR_TARGET` 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14454$as_echo "pre-installed in $ac_dir" >&6; } 14455 else 14456 # Canadian cross, just use what we found 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14458$as_echo "pre-installed" >&6; } 14459 fi 14460else 14461 ok=yes 14462 case " ${configdirs} " in 14463 *" gcc "*) ;; 14464 *) ok=no ;; 14465 esac 14466 14467 if test $ok = yes; then 14468 # An in-tree tool is available and we can use it 14469 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14471$as_echo "just compiled" >&6; } 14472 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then 14473 # We already found the complete path 14474 ac_dir=`dirname $CC_FOR_TARGET` 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14476$as_echo "pre-installed in $ac_dir" >&6; } 14477 elif test "x$target" = "x$host"; then 14478 # We can use an host tool 14479 CC_FOR_TARGET='$(CC)' 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14481$as_echo "host tool" >&6; } 14482 else 14483 # We need a cross tool 14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14485$as_echo "pre-installed" >&6; } 14486 fi 14487fi 14488 14489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 14490$as_echo_n "checking where to find the target c++... " >&6; } 14491if test "x${build}" != "x${host}" ; then 14492 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then 14493 # We already found the complete path 14494 ac_dir=`dirname $CXX_FOR_TARGET` 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14496$as_echo "pre-installed in $ac_dir" >&6; } 14497 else 14498 # Canadian cross, just use what we found 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14500$as_echo "pre-installed" >&6; } 14501 fi 14502else 14503 ok=yes 14504 case " ${configdirs} " in 14505 *" gcc "*) ;; 14506 *) ok=no ;; 14507 esac 14508 case ,${enable_languages}, in 14509 *,c++,*) ;; 14510 *) ok=no ;; 14511 esac 14512 if test $ok = yes; then 14513 # An in-tree tool is available and we can use it 14514 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' 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14516$as_echo "just compiled" >&6; } 14517 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then 14518 # We already found the complete path 14519 ac_dir=`dirname $CXX_FOR_TARGET` 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14521$as_echo "pre-installed in $ac_dir" >&6; } 14522 elif test "x$target" = "x$host"; then 14523 # We can use an host tool 14524 CXX_FOR_TARGET='$(CXX)' 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14526$as_echo "host tool" >&6; } 14527 else 14528 # We need a cross tool 14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14530$as_echo "pre-installed" >&6; } 14531 fi 14532fi 14533 14534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 14535$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } 14536if test "x${build}" != "x${host}" ; then 14537 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then 14538 # We already found the complete path 14539 ac_dir=`dirname $RAW_CXX_FOR_TARGET` 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14541$as_echo "pre-installed in $ac_dir" >&6; } 14542 else 14543 # Canadian cross, just use what we found 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14545$as_echo "pre-installed" >&6; } 14546 fi 14547else 14548 ok=yes 14549 case " ${configdirs} " in 14550 *" gcc "*) ;; 14551 *) ok=no ;; 14552 esac 14553 case ,${enable_languages}, in 14554 *,c++,*) ;; 14555 *) ok=no ;; 14556 esac 14557 if test $ok = yes; then 14558 # An in-tree tool is available and we can use it 14559 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' 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14561$as_echo "just compiled" >&6; } 14562 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then 14563 # We already found the complete path 14564 ac_dir=`dirname $RAW_CXX_FOR_TARGET` 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14566$as_echo "pre-installed in $ac_dir" >&6; } 14567 elif test "x$target" = "x$host"; then 14568 # We can use an host tool 14569 RAW_CXX_FOR_TARGET='$(CXX)' 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14571$as_echo "host tool" >&6; } 14572 else 14573 # We need a cross tool 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14575$as_echo "pre-installed" >&6; } 14576 fi 14577fi 14578 14579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 14580$as_echo_n "checking where to find the target dlltool... " >&6; } 14581if test "x${build}" != "x${host}" ; then 14582 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then 14583 # We already found the complete path 14584 ac_dir=`dirname $DLLTOOL_FOR_TARGET` 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14586$as_echo "pre-installed in $ac_dir" >&6; } 14587 else 14588 # Canadian cross, just use what we found 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14590$as_echo "pre-installed" >&6; } 14591 fi 14592else 14593 ok=yes 14594 case " ${configdirs} " in 14595 *" binutils "*) ;; 14596 *) ok=no ;; 14597 esac 14598 14599 if test $ok = yes; then 14600 # An in-tree tool is available and we can use it 14601 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14603$as_echo "just compiled" >&6; } 14604 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then 14605 # We already found the complete path 14606 ac_dir=`dirname $DLLTOOL_FOR_TARGET` 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14608$as_echo "pre-installed in $ac_dir" >&6; } 14609 elif test "x$target" = "x$host"; then 14610 # We can use an host tool 14611 DLLTOOL_FOR_TARGET='$(DLLTOOL)' 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14613$as_echo "host tool" >&6; } 14614 else 14615 # We need a cross tool 14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14617$as_echo "pre-installed" >&6; } 14618 fi 14619fi 14620 14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 14622$as_echo_n "checking where to find the target gcc... " >&6; } 14623if test "x${build}" != "x${host}" ; then 14624 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then 14625 # We already found the complete path 14626 ac_dir=`dirname $GCC_FOR_TARGET` 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14628$as_echo "pre-installed in $ac_dir" >&6; } 14629 else 14630 # Canadian cross, just use what we found 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14632$as_echo "pre-installed" >&6; } 14633 fi 14634else 14635 ok=yes 14636 case " ${configdirs} " in 14637 *" gcc "*) ;; 14638 *) ok=no ;; 14639 esac 14640 14641 if test $ok = yes; then 14642 # An in-tree tool is available and we can use it 14643 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14645$as_echo "just compiled" >&6; } 14646 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then 14647 # We already found the complete path 14648 ac_dir=`dirname $GCC_FOR_TARGET` 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14650$as_echo "pre-installed in $ac_dir" >&6; } 14651 elif test "x$target" = "x$host"; then 14652 # We can use an host tool 14653 GCC_FOR_TARGET='$()' 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14655$as_echo "host tool" >&6; } 14656 else 14657 # We need a cross tool 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14659$as_echo "pre-installed" >&6; } 14660 fi 14661fi 14662 14663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 14664$as_echo_n "checking where to find the target gfortran... " >&6; } 14665if test "x${build}" != "x${host}" ; then 14666 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then 14667 # We already found the complete path 14668 ac_dir=`dirname $GFORTRAN_FOR_TARGET` 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14670$as_echo "pre-installed in $ac_dir" >&6; } 14671 else 14672 # Canadian cross, just use what we found 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14674$as_echo "pre-installed" >&6; } 14675 fi 14676else 14677 ok=yes 14678 case " ${configdirs} " in 14679 *" gcc "*) ;; 14680 *) ok=no ;; 14681 esac 14682 case ,${enable_languages}, in 14683 *,fortran,*) ;; 14684 *) ok=no ;; 14685 esac 14686 if test $ok = yes; then 14687 # An in-tree tool is available and we can use it 14688 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14690$as_echo "just compiled" >&6; } 14691 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then 14692 # We already found the complete path 14693 ac_dir=`dirname $GFORTRAN_FOR_TARGET` 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14695$as_echo "pre-installed in $ac_dir" >&6; } 14696 elif test "x$target" = "x$host"; then 14697 # We can use an host tool 14698 GFORTRAN_FOR_TARGET='$(GFORTRAN)' 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14700$as_echo "host tool" >&6; } 14701 else 14702 # We need a cross tool 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14704$as_echo "pre-installed" >&6; } 14705 fi 14706fi 14707 14708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 14709$as_echo_n "checking where to find the target gccgo... " >&6; } 14710if test "x${build}" != "x${host}" ; then 14711 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then 14712 # We already found the complete path 14713 ac_dir=`dirname $GOC_FOR_TARGET` 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14715$as_echo "pre-installed in $ac_dir" >&6; } 14716 else 14717 # Canadian cross, just use what we found 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14719$as_echo "pre-installed" >&6; } 14720 fi 14721else 14722 ok=yes 14723 case " ${configdirs} " in 14724 *" gcc "*) ;; 14725 *) ok=no ;; 14726 esac 14727 case ,${enable_languages}, in 14728 *,go,*) ;; 14729 *) ok=no ;; 14730 esac 14731 if test $ok = yes; then 14732 # An in-tree tool is available and we can use it 14733 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14735$as_echo "just compiled" >&6; } 14736 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then 14737 # We already found the complete path 14738 ac_dir=`dirname $GOC_FOR_TARGET` 14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14740$as_echo "pre-installed in $ac_dir" >&6; } 14741 elif test "x$target" = "x$host"; then 14742 # We can use an host tool 14743 GOC_FOR_TARGET='$(GOC)' 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14745$as_echo "host tool" >&6; } 14746 else 14747 # We need a cross tool 14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14749$as_echo "pre-installed" >&6; } 14750 fi 14751fi 14752 14753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 14754$as_echo_n "checking where to find the target gdc... " >&6; } 14755if test "x${build}" != "x${host}" ; then 14756 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then 14757 # We already found the complete path 14758 ac_dir=`dirname $GDC_FOR_TARGET` 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14760$as_echo "pre-installed in $ac_dir" >&6; } 14761 else 14762 # Canadian cross, just use what we found 14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14764$as_echo "pre-installed" >&6; } 14765 fi 14766else 14767 ok=yes 14768 case " ${configdirs} " in 14769 *" gcc "*) ;; 14770 *) ok=no ;; 14771 esac 14772 case ,${enable_languages}, in 14773 *,d,*) ;; 14774 *) ok=no ;; 14775 esac 14776 if test $ok = yes; then 14777 # An in-tree tool is available and we can use it 14778 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' 14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14780$as_echo "just compiled" >&6; } 14781 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then 14782 # We already found the complete path 14783 ac_dir=`dirname $GDC_FOR_TARGET` 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14785$as_echo "pre-installed in $ac_dir" >&6; } 14786 elif test "x$target" = "x$host"; then 14787 # We can use an host tool 14788 GDC_FOR_TARGET='$(GDC)' 14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14790$as_echo "host tool" >&6; } 14791 else 14792 # We need a cross tool 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14794$as_echo "pre-installed" >&6; } 14795 fi 14796fi 14797 14798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 14799$as_echo_n "checking where to find the target ld... " >&6; } 14800if test "x${build}" != "x${host}" ; then 14801 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then 14802 # We already found the complete path 14803 ac_dir=`dirname $LD_FOR_TARGET` 14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14805$as_echo "pre-installed in $ac_dir" >&6; } 14806 else 14807 # Canadian cross, just use what we found 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14809$as_echo "pre-installed" >&6; } 14810 fi 14811else 14812 ok=yes 14813 case " ${configdirs} " in 14814 *" ld "*) ;; 14815 *) ok=no ;; 14816 esac 14817 14818 if test $ok = yes; then 14819 # An in-tree tool is available and we can use it 14820 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14822$as_echo "just compiled" >&6; } 14823 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then 14824 # We already found the complete path 14825 ac_dir=`dirname $LD_FOR_TARGET` 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14827$as_echo "pre-installed in $ac_dir" >&6; } 14828 elif test "x$target" = "x$host"; then 14829 # We can use an host tool 14830 LD_FOR_TARGET='$(LD)' 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14832$as_echo "host tool" >&6; } 14833 else 14834 # We need a cross tool 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14836$as_echo "pre-installed" >&6; } 14837 fi 14838fi 14839 14840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 14841$as_echo_n "checking where to find the target lipo... " >&6; } 14842if test "x${build}" != "x${host}" ; then 14843 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then 14844 # We already found the complete path 14845 ac_dir=`dirname $LIPO_FOR_TARGET` 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14847$as_echo "pre-installed in $ac_dir" >&6; } 14848 else 14849 # Canadian cross, just use what we found 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14851$as_echo "pre-installed" >&6; } 14852 fi 14853else 14854 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then 14855 # We already found the complete path 14856 ac_dir=`dirname $LIPO_FOR_TARGET` 14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14858$as_echo "pre-installed in $ac_dir" >&6; } 14859 elif test "x$target" = "x$host"; then 14860 # We can use an host tool 14861 LIPO_FOR_TARGET='$(LIPO)' 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14863$as_echo "host tool" >&6; } 14864 else 14865 # We need a cross tool 14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14867$as_echo "pre-installed" >&6; } 14868 fi 14869fi 14870 14871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 14872$as_echo_n "checking where to find the target nm... " >&6; } 14873if test "x${build}" != "x${host}" ; then 14874 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then 14875 # We already found the complete path 14876 ac_dir=`dirname $NM_FOR_TARGET` 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14878$as_echo "pre-installed in $ac_dir" >&6; } 14879 else 14880 # Canadian cross, just use what we found 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14882$as_echo "pre-installed" >&6; } 14883 fi 14884else 14885 ok=yes 14886 case " ${configdirs} " in 14887 *" binutils "*) ;; 14888 *) ok=no ;; 14889 esac 14890 14891 if test $ok = yes; then 14892 # An in-tree tool is available and we can use it 14893 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14895$as_echo "just compiled" >&6; } 14896 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then 14897 # We already found the complete path 14898 ac_dir=`dirname $NM_FOR_TARGET` 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14900$as_echo "pre-installed in $ac_dir" >&6; } 14901 elif test "x$target" = "x$host"; then 14902 # We can use an host tool 14903 NM_FOR_TARGET='$(NM)' 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14905$as_echo "host tool" >&6; } 14906 else 14907 # We need a cross tool 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14909$as_echo "pre-installed" >&6; } 14910 fi 14911fi 14912 14913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 14914$as_echo_n "checking where to find the target objcopy... " >&6; } 14915if test "x${build}" != "x${host}" ; then 14916 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then 14917 # We already found the complete path 14918 ac_dir=`dirname $OBJCOPY_FOR_TARGET` 14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14920$as_echo "pre-installed in $ac_dir" >&6; } 14921 else 14922 # Canadian cross, just use what we found 14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14924$as_echo "pre-installed" >&6; } 14925 fi 14926else 14927 ok=yes 14928 case " ${configdirs} " in 14929 *" binutils "*) ;; 14930 *) ok=no ;; 14931 esac 14932 14933 if test $ok = yes; then 14934 # An in-tree tool is available and we can use it 14935 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14937$as_echo "just compiled" >&6; } 14938 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then 14939 # We already found the complete path 14940 ac_dir=`dirname $OBJCOPY_FOR_TARGET` 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14942$as_echo "pre-installed in $ac_dir" >&6; } 14943 elif test "x$target" = "x$host"; then 14944 # We can use an host tool 14945 OBJCOPY_FOR_TARGET='$(OBJCOPY)' 14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14947$as_echo "host tool" >&6; } 14948 else 14949 # We need a cross tool 14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14951$as_echo "pre-installed" >&6; } 14952 fi 14953fi 14954 14955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 14956$as_echo_n "checking where to find the target objdump... " >&6; } 14957if test "x${build}" != "x${host}" ; then 14958 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then 14959 # We already found the complete path 14960 ac_dir=`dirname $OBJDUMP_FOR_TARGET` 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14962$as_echo "pre-installed in $ac_dir" >&6; } 14963 else 14964 # Canadian cross, just use what we found 14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14966$as_echo "pre-installed" >&6; } 14967 fi 14968else 14969 ok=yes 14970 case " ${configdirs} " in 14971 *" binutils "*) ;; 14972 *) ok=no ;; 14973 esac 14974 14975 if test $ok = yes; then 14976 # An in-tree tool is available and we can use it 14977 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14979$as_echo "just compiled" >&6; } 14980 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then 14981 # We already found the complete path 14982 ac_dir=`dirname $OBJDUMP_FOR_TARGET` 14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14984$as_echo "pre-installed in $ac_dir" >&6; } 14985 elif test "x$target" = "x$host"; then 14986 # We can use an host tool 14987 OBJDUMP_FOR_TARGET='$(OBJDUMP)' 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14989$as_echo "host tool" >&6; } 14990 else 14991 # We need a cross tool 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14993$as_echo "pre-installed" >&6; } 14994 fi 14995fi 14996 14997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 14998$as_echo_n "checking where to find the target otool... " >&6; } 14999if test "x${build}" != "x${host}" ; then 15000 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then 15001 # We already found the complete path 15002 ac_dir=`dirname $OTOOL_FOR_TARGET` 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15004$as_echo "pre-installed in $ac_dir" >&6; } 15005 else 15006 # Canadian cross, just use what we found 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15008$as_echo "pre-installed" >&6; } 15009 fi 15010else 15011 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then 15012 # We already found the complete path 15013 ac_dir=`dirname $OTOOL_FOR_TARGET` 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15015$as_echo "pre-installed in $ac_dir" >&6; } 15016 elif test "x$target" = "x$host"; then 15017 # We can use an host tool 15018 OTOOL_FOR_TARGET='$(OTOOL)' 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15020$as_echo "host tool" >&6; } 15021 else 15022 # We need a cross tool 15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15024$as_echo "pre-installed" >&6; } 15025 fi 15026fi 15027 15028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 15029$as_echo_n "checking where to find the target ranlib... " >&6; } 15030if test "x${build}" != "x${host}" ; then 15031 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then 15032 # We already found the complete path 15033 ac_dir=`dirname $RANLIB_FOR_TARGET` 15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15035$as_echo "pre-installed in $ac_dir" >&6; } 15036 else 15037 # Canadian cross, just use what we found 15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15039$as_echo "pre-installed" >&6; } 15040 fi 15041else 15042 ok=yes 15043 case " ${configdirs} " in 15044 *" binutils "*) ;; 15045 *) ok=no ;; 15046 esac 15047 15048 if test $ok = yes; then 15049 # An in-tree tool is available and we can use it 15050 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' 15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15052$as_echo "just compiled" >&6; } 15053 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then 15054 # We already found the complete path 15055 ac_dir=`dirname $RANLIB_FOR_TARGET` 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15057$as_echo "pre-installed in $ac_dir" >&6; } 15058 elif test "x$target" = "x$host"; then 15059 # We can use an host tool 15060 RANLIB_FOR_TARGET='$(RANLIB)' 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15062$as_echo "host tool" >&6; } 15063 else 15064 # We need a cross tool 15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15066$as_echo "pre-installed" >&6; } 15067 fi 15068fi 15069 15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 15071$as_echo_n "checking where to find the target readelf... " >&6; } 15072if test "x${build}" != "x${host}" ; then 15073 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then 15074 # We already found the complete path 15075 ac_dir=`dirname $READELF_FOR_TARGET` 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15077$as_echo "pre-installed in $ac_dir" >&6; } 15078 else 15079 # Canadian cross, just use what we found 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15081$as_echo "pre-installed" >&6; } 15082 fi 15083else 15084 ok=yes 15085 case " ${configdirs} " in 15086 *" binutils "*) ;; 15087 *) ok=no ;; 15088 esac 15089 15090 if test $ok = yes; then 15091 # An in-tree tool is available and we can use it 15092 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15094$as_echo "just compiled" >&6; } 15095 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then 15096 # We already found the complete path 15097 ac_dir=`dirname $READELF_FOR_TARGET` 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15099$as_echo "pre-installed in $ac_dir" >&6; } 15100 elif test "x$target" = "x$host"; then 15101 # We can use an host tool 15102 READELF_FOR_TARGET='$(READELF)' 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15104$as_echo "host tool" >&6; } 15105 else 15106 # We need a cross tool 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15108$as_echo "pre-installed" >&6; } 15109 fi 15110fi 15111 15112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 15113$as_echo_n "checking where to find the target strip... " >&6; } 15114if test "x${build}" != "x${host}" ; then 15115 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then 15116 # We already found the complete path 15117 ac_dir=`dirname $STRIP_FOR_TARGET` 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15119$as_echo "pre-installed in $ac_dir" >&6; } 15120 else 15121 # Canadian cross, just use what we found 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15123$as_echo "pre-installed" >&6; } 15124 fi 15125else 15126 ok=yes 15127 case " ${configdirs} " in 15128 *" binutils "*) ;; 15129 *) ok=no ;; 15130 esac 15131 15132 if test $ok = yes; then 15133 # An in-tree tool is available and we can use it 15134 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15136$as_echo "just compiled" >&6; } 15137 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then 15138 # We already found the complete path 15139 ac_dir=`dirname $STRIP_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 STRIP_FOR_TARGET='$(STRIP)' 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 windres" >&5 15155$as_echo_n "checking where to find the target windres... " >&6; } 15156if test "x${build}" != "x${host}" ; then 15157 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then 15158 # We already found the complete path 15159 ac_dir=`dirname $WINDRES_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 *" binutils "*) ;; 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 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15178$as_echo "just compiled" >&6; } 15179 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then 15180 # We already found the complete path 15181 ac_dir=`dirname $WINDRES_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 WINDRES_FOR_TARGET='$(WINDRES)' 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 windmc" >&5 15197$as_echo_n "checking where to find the target windmc... " >&6; } 15198if test "x${build}" != "x${host}" ; then 15199 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then 15200 # We already found the complete path 15201 ac_dir=`dirname $WINDMC_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 *" binutils "*) ;; 15213 *) ok=no ;; 15214 esac 15215 15216 if test $ok = yes; then 15217 # An in-tree tool is available and we can use it 15218 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 15220$as_echo "just compiled" >&6; } 15221 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then 15222 # We already found the complete path 15223 ac_dir=`dirname $WINDMC_FOR_TARGET` 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 15225$as_echo "pre-installed in $ac_dir" >&6; } 15226 elif test "x$target" = "x$host"; then 15227 # We can use an host tool 15228 WINDMC_FOR_TARGET='$(WINDMC)' 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 15230$as_echo "host tool" >&6; } 15231 else 15232 # We need a cross tool 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 15234$as_echo "pre-installed" >&6; } 15235 fi 15236fi 15237 15238 15239 15240 15241 15242# Certain tools may need extra flags. 15243AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} 15244RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} 15245NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} 15246 15247# When building target libraries, except in a Canadian cross, we use 15248# the same toolchain as the compiler we just built. 15249COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' 15250COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' 15251COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' 15252if test $host = $build; then 15253 case " $configdirs " in 15254 *" gcc "*) 15255 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' 15256 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' 15257 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} 15258 ;; 15259 esac 15260fi 15261 15262 15263 15264 15265 15266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 15267$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 15268# Check whether --enable-maintainer-mode was given. 15269if test "${enable_maintainer_mode+set}" = set; then : 15270 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 15271else 15272 USE_MAINTAINER_MODE=no 15273fi 15274 15275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 15276$as_echo "$USE_MAINTAINER_MODE" >&6; } 15277 15278 15279if test "$USE_MAINTAINER_MODE" = yes; then 15280 MAINTAINER_MODE_TRUE= 15281 MAINTAINER_MODE_FALSE='#' 15282else 15283 MAINTAINER_MODE_TRUE='#' 15284 MAINTAINER_MODE_FALSE= 15285fi 15286MAINT=$MAINTAINER_MODE_TRUE 15287 15288# --------------------- 15289# GCC bootstrap support 15290# --------------------- 15291 15292# Stage specific cflags for build. 15293stage1_cflags="-g" 15294case $build in 15295 vax-*-*) 15296 case ${GCC} in 15297 yes) stage1_cflags="-g -Wa,-J" ;; 15298 *) stage1_cflags="-g -J" ;; 15299 esac ;; 15300esac 15301 15302 15303 15304# Enable --enable-checking in stage1 of the compiler. 15305# Check whether --enable-stage1-checking was given. 15306if test "${enable_stage1_checking+set}" = set; then : 15307 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} 15308else 15309 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then 15310 # For --disable-checking or implicit --enable-checking=release, avoid 15311 # setting --enable-checking=gc in the default stage1 checking for LTO 15312 # bootstraps. See PR62077. 15313 case $BUILD_CONFIG in 15314 *lto*) 15315 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; 15316 *) 15317 stage1_checking=--enable-checking=yes,types;; 15318 esac 15319 if test "x$enable_checking" = x && \ 15320 test -d ${srcdir}/gcc && \ 15321 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then 15322 stage1_checking=--enable-checking=yes,types,extra 15323 fi 15324else 15325 stage1_checking=--enable-checking=$enable_checking,types 15326fi 15327fi 15328 15329 15330 15331# Enable -Werror in bootstrap stage2 and later. 15332# Check whether --enable-werror was given. 15333if test "${enable_werror+set}" = set; then : 15334 enableval=$enable_werror; 15335case ${enable_werror} in 15336 yes) stage2_werror_flag="--enable-werror-always" ;; 15337 *) stage2_werror_flag="" ;; 15338esac 15339 15340else 15341 15342if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then 15343 case $BUILD_CONFIG in 15344 bootstrap-debug) 15345 stage2_werror_flag="--enable-werror-always" ;; 15346 "") 15347 stage2_werror_flag="--enable-werror-always" ;; 15348 esac 15349fi 15350 15351fi 15352 15353 15354 15355 15356# Specify what files to not compare during bootstrap. 15357 15358compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" 15359case "$target" in 15360 hppa*64*-*-hpux*) ;; 15361 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; 15362 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; 15363esac 15364 15365 15366ac_config_files="$ac_config_files Makefile" 15367 15368cat >confcache <<\_ACEOF 15369# This file is a shell script that caches the results of configure 15370# tests run on this system so they can be shared between configure 15371# scripts and configure runs, see configure's option --config-cache. 15372# It is not useful on other systems. If it contains results you don't 15373# want to keep, you may remove or edit it. 15374# 15375# config.status only pays attention to the cache file if you give it 15376# the --recheck option to rerun configure. 15377# 15378# `ac_cv_env_foo' variables (set or unset) will be overridden when 15379# loading this file, other *unset* `ac_cv_foo' will be assigned the 15380# following values. 15381 15382_ACEOF 15383 15384# The following way of writing the cache mishandles newlines in values, 15385# but we know of no workaround that is simple, portable, and efficient. 15386# So, we kill variables containing newlines. 15387# Ultrix sh set writes to stderr and can't be redirected directly, 15388# and sets the high bit in the cache file unless we assign to the vars. 15389( 15390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15391 eval ac_val=\$$ac_var 15392 case $ac_val in #( 15393 *${as_nl}*) 15394 case $ac_var in #( 15395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15396$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15397 esac 15398 case $ac_var in #( 15399 _ | IFS | as_nl) ;; #( 15400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15401 *) { eval $ac_var=; unset $ac_var;} ;; 15402 esac ;; 15403 esac 15404 done 15405 15406 (set) 2>&1 | 15407 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15408 *${as_nl}ac_space=\ *) 15409 # `set' does not quote correctly, so add quotes: double-quote 15410 # substitution turns \\\\ into \\, and sed turns \\ into \. 15411 sed -n \ 15412 "s/'/'\\\\''/g; 15413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15414 ;; #( 15415 *) 15416 # `set' quotes correctly as required by POSIX, so do not add quotes. 15417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15418 ;; 15419 esac | 15420 sort 15421) | 15422 sed ' 15423 /^ac_cv_env_/b end 15424 t clear 15425 :clear 15426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15427 t end 15428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15429 :end' >>confcache 15430if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15431 if test -w "$cache_file"; then 15432 if test "x$cache_file" != "x/dev/null"; then 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15434$as_echo "$as_me: updating cache $cache_file" >&6;} 15435 if test ! -f "$cache_file" || test -h "$cache_file"; then 15436 cat confcache >"$cache_file" 15437 else 15438 case $cache_file in #( 15439 */* | ?:*) 15440 mv -f confcache "$cache_file"$$ && 15441 mv -f "$cache_file"$$ "$cache_file" ;; #( 15442 *) 15443 mv -f confcache "$cache_file" ;; 15444 esac 15445 fi 15446 fi 15447 else 15448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15449$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15450 fi 15451fi 15452rm -f confcache 15453 15454test "x$prefix" = xNONE && prefix=$ac_default_prefix 15455# Let make expand exec_prefix. 15456test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15457 15458# Transform confdefs.h into DEFS. 15459# Protect against shell expansion while executing Makefile rules. 15460# Protect against Makefile macro expansion. 15461# 15462# If the first sed substitution is executed (which looks for macros that 15463# take arguments), then branch to the quote section. Otherwise, 15464# look for a macro that doesn't take arguments. 15465ac_script=' 15466:mline 15467/\\$/{ 15468 N 15469 s,\\\n,, 15470 b mline 15471} 15472t clear 15473:clear 15474s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15475t quote 15476s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15477t quote 15478b any 15479:quote 15480s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15481s/\[/\\&/g 15482s/\]/\\&/g 15483s/\$/$$/g 15484H 15485:any 15486${ 15487 g 15488 s/^\n// 15489 s/\n/ /g 15490 p 15491} 15492' 15493DEFS=`sed -n "$ac_script" confdefs.h` 15494 15495 15496ac_libobjs= 15497ac_ltlibobjs= 15498U= 15499for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15500 # 1. Remove the extension, and $U if already installed. 15501 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15502 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15504 # will be set to the directory where LIBOBJS objects are built. 15505 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15506 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15507done 15508LIBOBJS=$ac_libobjs 15509 15510LTLIBOBJS=$ac_ltlibobjs 15511 15512 15513 15514: "${CONFIG_STATUS=./config.status}" 15515ac_write_fail=0 15516ac_clean_files_save=$ac_clean_files 15517ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15518{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15519$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15520as_write_fail=0 15521cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15522#! $SHELL 15523# Generated by $as_me. 15524# Run this file to recreate the current configuration. 15525# Compiler output produced by configure, useful for debugging 15526# configure, is in config.log if it exists. 15527 15528debug=false 15529ac_cs_recheck=false 15530ac_cs_silent=false 15531 15532SHELL=\${CONFIG_SHELL-$SHELL} 15533export SHELL 15534_ASEOF 15535cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15536## -------------------- ## 15537## M4sh Initialization. ## 15538## -------------------- ## 15539 15540# Be more Bourne compatible 15541DUALCASE=1; export DUALCASE # for MKS sh 15542if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15543 emulate sh 15544 NULLCMD=: 15545 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15546 # is contrary to our usage. Disable this feature. 15547 alias -g '${1+"$@"}'='"$@"' 15548 setopt NO_GLOB_SUBST 15549else 15550 case `(set -o) 2>/dev/null` in #( 15551 *posix*) : 15552 set -o posix ;; #( 15553 *) : 15554 ;; 15555esac 15556fi 15557 15558 15559as_nl=' 15560' 15561export as_nl 15562# Printing a long string crashes Solaris 7 /usr/bin/printf. 15563as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15564as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15565as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15566# Prefer a ksh shell builtin over an external printf program on Solaris, 15567# but without wasting forks for bash or zsh. 15568if test -z "$BASH_VERSION$ZSH_VERSION" \ 15569 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15570 as_echo='print -r --' 15571 as_echo_n='print -rn --' 15572elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15573 as_echo='printf %s\n' 15574 as_echo_n='printf %s' 15575else 15576 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15577 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15578 as_echo_n='/usr/ucb/echo -n' 15579 else 15580 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15581 as_echo_n_body='eval 15582 arg=$1; 15583 case $arg in #( 15584 *"$as_nl"*) 15585 expr "X$arg" : "X\\(.*\\)$as_nl"; 15586 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15587 esac; 15588 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15589 ' 15590 export as_echo_n_body 15591 as_echo_n='sh -c $as_echo_n_body as_echo' 15592 fi 15593 export as_echo_body 15594 as_echo='sh -c $as_echo_body as_echo' 15595fi 15596 15597# The user is always right. 15598if test "${PATH_SEPARATOR+set}" != set; then 15599 PATH_SEPARATOR=: 15600 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15601 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15602 PATH_SEPARATOR=';' 15603 } 15604fi 15605 15606 15607# IFS 15608# We need space, tab and new line, in precisely that order. Quoting is 15609# there to prevent editors from complaining about space-tab. 15610# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15611# splitting by setting IFS to empty value.) 15612IFS=" "" $as_nl" 15613 15614# Find who we are. Look in the path if we contain no directory separator. 15615as_myself= 15616case $0 in #(( 15617 *[\\/]* ) as_myself=$0 ;; 15618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15619for as_dir in $PATH 15620do 15621 IFS=$as_save_IFS 15622 test -z "$as_dir" && as_dir=. 15623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15624 done 15625IFS=$as_save_IFS 15626 15627 ;; 15628esac 15629# We did not find ourselves, most probably we were run as `sh COMMAND' 15630# in which case we are not to be found in the path. 15631if test "x$as_myself" = x; then 15632 as_myself=$0 15633fi 15634if test ! -f "$as_myself"; then 15635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15636 exit 1 15637fi 15638 15639# Unset variables that we do not need and which cause bugs (e.g. in 15640# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15641# suppresses any "Segmentation fault" message there. '((' could 15642# trigger a bug in pdksh 5.2.14. 15643for as_var in BASH_ENV ENV MAIL MAILPATH 15644do eval test x\${$as_var+set} = xset \ 15645 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15646done 15647PS1='$ ' 15648PS2='> ' 15649PS4='+ ' 15650 15651# NLS nuisances. 15652LC_ALL=C 15653export LC_ALL 15654LANGUAGE=C 15655export LANGUAGE 15656 15657# CDPATH. 15658(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15659 15660 15661# as_fn_error STATUS ERROR [LINENO LOG_FD] 15662# ---------------------------------------- 15663# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15664# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15665# script with STATUS, using 1 if that was 0. 15666as_fn_error () 15667{ 15668 as_status=$1; test $as_status -eq 0 && as_status=1 15669 if test "$4"; then 15670 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15672 fi 15673 $as_echo "$as_me: error: $2" >&2 15674 as_fn_exit $as_status 15675} # as_fn_error 15676 15677 15678# as_fn_set_status STATUS 15679# ----------------------- 15680# Set $? to STATUS, without forking. 15681as_fn_set_status () 15682{ 15683 return $1 15684} # as_fn_set_status 15685 15686# as_fn_exit STATUS 15687# ----------------- 15688# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15689as_fn_exit () 15690{ 15691 set +e 15692 as_fn_set_status $1 15693 exit $1 15694} # as_fn_exit 15695 15696# as_fn_unset VAR 15697# --------------- 15698# Portably unset VAR. 15699as_fn_unset () 15700{ 15701 { eval $1=; unset $1;} 15702} 15703as_unset=as_fn_unset 15704# as_fn_append VAR VALUE 15705# ---------------------- 15706# Append the text in VALUE to the end of the definition contained in VAR. Take 15707# advantage of any shell optimizations that allow amortized linear growth over 15708# repeated appends, instead of the typical quadratic growth present in naive 15709# implementations. 15710if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15711 eval 'as_fn_append () 15712 { 15713 eval $1+=\$2 15714 }' 15715else 15716 as_fn_append () 15717 { 15718 eval $1=\$$1\$2 15719 } 15720fi # as_fn_append 15721 15722# as_fn_arith ARG... 15723# ------------------ 15724# Perform arithmetic evaluation on the ARGs, and store the result in the 15725# global $as_val. Take advantage of shells that can avoid forks. The arguments 15726# must be portable across $(()) and expr. 15727if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15728 eval 'as_fn_arith () 15729 { 15730 as_val=$(( $* )) 15731 }' 15732else 15733 as_fn_arith () 15734 { 15735 as_val=`expr "$@" || test $? -eq 1` 15736 } 15737fi # as_fn_arith 15738 15739 15740if expr a : '\(a\)' >/dev/null 2>&1 && 15741 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15742 as_expr=expr 15743else 15744 as_expr=false 15745fi 15746 15747if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15748 as_basename=basename 15749else 15750 as_basename=false 15751fi 15752 15753if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15754 as_dirname=dirname 15755else 15756 as_dirname=false 15757fi 15758 15759as_me=`$as_basename -- "$0" || 15760$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15761 X"$0" : 'X\(//\)$' \| \ 15762 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15763$as_echo X/"$0" | 15764 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15765 s//\1/ 15766 q 15767 } 15768 /^X\/\(\/\/\)$/{ 15769 s//\1/ 15770 q 15771 } 15772 /^X\/\(\/\).*/{ 15773 s//\1/ 15774 q 15775 } 15776 s/.*/./; q'` 15777 15778# Avoid depending upon Character Ranges. 15779as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15780as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15781as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15782as_cr_digits='0123456789' 15783as_cr_alnum=$as_cr_Letters$as_cr_digits 15784 15785ECHO_C= ECHO_N= ECHO_T= 15786case `echo -n x` in #((((( 15787-n*) 15788 case `echo 'xy\c'` in 15789 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15790 xy) ECHO_C='\c';; 15791 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15792 ECHO_T=' ';; 15793 esac;; 15794*) 15795 ECHO_N='-n';; 15796esac 15797 15798rm -f conf$$ conf$$.exe conf$$.file 15799if test -d conf$$.dir; then 15800 rm -f conf$$.dir/conf$$.file 15801else 15802 rm -f conf$$.dir 15803 mkdir conf$$.dir 2>/dev/null 15804fi 15805if (echo >conf$$.file) 2>/dev/null; then 15806 if ln -s conf$$.file conf$$ 2>/dev/null; then 15807 as_ln_s='ln -s' 15808 # ... but there are two gotchas: 15809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15811 # In both cases, we have to default to `cp -pR'. 15812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15813 as_ln_s='cp -pR' 15814 elif ln conf$$.file conf$$ 2>/dev/null; then 15815 as_ln_s=ln 15816 else 15817 as_ln_s='cp -pR' 15818 fi 15819else 15820 as_ln_s='cp -pR' 15821fi 15822rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15823rmdir conf$$.dir 2>/dev/null 15824 15825 15826# as_fn_mkdir_p 15827# ------------- 15828# Create "$as_dir" as a directory, including parents if necessary. 15829as_fn_mkdir_p () 15830{ 15831 15832 case $as_dir in #( 15833 -*) as_dir=./$as_dir;; 15834 esac 15835 test -d "$as_dir" || eval $as_mkdir_p || { 15836 as_dirs= 15837 while :; do 15838 case $as_dir in #( 15839 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15840 *) as_qdir=$as_dir;; 15841 esac 15842 as_dirs="'$as_qdir' $as_dirs" 15843 as_dir=`$as_dirname -- "$as_dir" || 15844$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15845 X"$as_dir" : 'X\(//\)[^/]' \| \ 15846 X"$as_dir" : 'X\(//\)$' \| \ 15847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15848$as_echo X"$as_dir" | 15849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15850 s//\1/ 15851 q 15852 } 15853 /^X\(\/\/\)[^/].*/{ 15854 s//\1/ 15855 q 15856 } 15857 /^X\(\/\/\)$/{ 15858 s//\1/ 15859 q 15860 } 15861 /^X\(\/\).*/{ 15862 s//\1/ 15863 q 15864 } 15865 s/.*/./; q'` 15866 test -d "$as_dir" && break 15867 done 15868 test -z "$as_dirs" || eval "mkdir $as_dirs" 15869 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15870 15871 15872} # as_fn_mkdir_p 15873if mkdir -p . 2>/dev/null; then 15874 as_mkdir_p='mkdir -p "$as_dir"' 15875else 15876 test -d ./-p && rmdir ./-p 15877 as_mkdir_p=false 15878fi 15879 15880 15881# as_fn_executable_p FILE 15882# ----------------------- 15883# Test if FILE is an executable regular file. 15884as_fn_executable_p () 15885{ 15886 test -f "$1" && test -x "$1" 15887} # as_fn_executable_p 15888as_test_x='test -x' 15889as_executable_p=as_fn_executable_p 15890 15891# Sed expression to map a string onto a valid CPP name. 15892as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15893 15894# Sed expression to map a string onto a valid variable name. 15895as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15896 15897 15898exec 6>&1 15899## ----------------------------------- ## 15900## Main body of $CONFIG_STATUS script. ## 15901## ----------------------------------- ## 15902_ASEOF 15903test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15904 15905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15906# Save the log message, to keep $0 and so on meaningful, and to 15907# report actual input values of CONFIG_FILES etc. instead of their 15908# values after options handling. 15909ac_log=" 15910This file was extended by $as_me, which was 15911generated by GNU Autoconf 2.69. Invocation command line was 15912 15913 CONFIG_FILES = $CONFIG_FILES 15914 CONFIG_HEADERS = $CONFIG_HEADERS 15915 CONFIG_LINKS = $CONFIG_LINKS 15916 CONFIG_COMMANDS = $CONFIG_COMMANDS 15917 $ $0 $@ 15918 15919on `(hostname || uname -n) 2>/dev/null | sed 1q` 15920" 15921 15922_ACEOF 15923 15924case $ac_config_files in *" 15925"*) set x $ac_config_files; shift; ac_config_files=$*;; 15926esac 15927 15928 15929 15930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15931# Files that config.status was made for. 15932config_files="$ac_config_files" 15933 15934_ACEOF 15935 15936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15937ac_cs_usage="\ 15938\`$as_me' instantiates files and other configuration actions 15939from templates according to the current configuration. Unless the files 15940and actions are specified as TAGs, all are instantiated by default. 15941 15942Usage: $0 [OPTION]... [TAG]... 15943 15944 -h, --help print this help, then exit 15945 -V, --version print version number and configuration settings, then exit 15946 --config print configuration, then exit 15947 -q, --quiet, --silent 15948 do not print progress messages 15949 -d, --debug don't remove temporary files 15950 --recheck update $as_me by reconfiguring in the same conditions 15951 --file=FILE[:TEMPLATE] 15952 instantiate the configuration file FILE 15953 15954Configuration files: 15955$config_files 15956 15957Report bugs to the package provider." 15958 15959_ACEOF 15960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15961ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15962ac_cs_version="\\ 15963config.status 15964configured by $0, generated by GNU Autoconf 2.69, 15965 with options \\"\$ac_cs_config\\" 15966 15967Copyright (C) 2012 Free Software Foundation, Inc. 15968This config.status script is free software; the Free Software Foundation 15969gives unlimited permission to copy, distribute and modify it." 15970 15971ac_pwd='$ac_pwd' 15972srcdir='$srcdir' 15973INSTALL='$INSTALL' 15974AWK='$AWK' 15975test -n "\$AWK" || AWK=awk 15976_ACEOF 15977 15978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15979# The default lists apply if the user does not specify any file. 15980ac_need_defaults=: 15981while test $# != 0 15982do 15983 case $1 in 15984 --*=?*) 15985 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15987 ac_shift=: 15988 ;; 15989 --*=) 15990 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15991 ac_optarg= 15992 ac_shift=: 15993 ;; 15994 *) 15995 ac_option=$1 15996 ac_optarg=$2 15997 ac_shift=shift 15998 ;; 15999 esac 16000 16001 case $ac_option in 16002 # Handling of the options. 16003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16004 ac_cs_recheck=: ;; 16005 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16006 $as_echo "$ac_cs_version"; exit ;; 16007 --config | --confi | --conf | --con | --co | --c ) 16008 $as_echo "$ac_cs_config"; exit ;; 16009 --debug | --debu | --deb | --de | --d | -d ) 16010 debug=: ;; 16011 --file | --fil | --fi | --f ) 16012 $ac_shift 16013 case $ac_optarg in 16014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16015 '') as_fn_error $? "missing file argument" ;; 16016 esac 16017 as_fn_append CONFIG_FILES " '$ac_optarg'" 16018 ac_need_defaults=false;; 16019 --he | --h | --help | --hel | -h ) 16020 $as_echo "$ac_cs_usage"; exit ;; 16021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16022 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16023 ac_cs_silent=: ;; 16024 16025 # This is an error. 16026 -*) as_fn_error $? "unrecognized option: \`$1' 16027Try \`$0 --help' for more information." ;; 16028 16029 *) as_fn_append ac_config_targets " $1" 16030 ac_need_defaults=false ;; 16031 16032 esac 16033 shift 16034done 16035 16036ac_configure_extra_args= 16037 16038if $ac_cs_silent; then 16039 exec 6>/dev/null 16040 ac_configure_extra_args="$ac_configure_extra_args --silent" 16041fi 16042 16043_ACEOF 16044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16045if \$ac_cs_recheck; then 16046 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16047 shift 16048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16049 CONFIG_SHELL='$SHELL' 16050 export CONFIG_SHELL 16051 exec "\$@" 16052fi 16053 16054_ACEOF 16055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16056exec 5>>config.log 16057{ 16058 echo 16059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16060## Running $as_me. ## 16061_ASBOX 16062 $as_echo "$ac_log" 16063} >&5 16064 16065_ACEOF 16066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16067# 16068# INIT-COMMANDS 16069# 16070extrasub_build="$extrasub_build" 16071 extrasub_host="$extrasub_host" 16072 extrasub_target="$extrasub_target" 16073 16074_ACEOF 16075 16076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16077 16078# Handling of arguments. 16079for ac_config_target in $ac_config_targets 16080do 16081 case $ac_config_target in 16082 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16083 16084 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16085 esac 16086done 16087 16088 16089# If the user did not use the arguments to specify the items to instantiate, 16090# then the envvar interface is used. Set only those that are not. 16091# We use the long form for the default assignment because of an extremely 16092# bizarre bug on SunOS 4.1.3. 16093if $ac_need_defaults; then 16094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16095fi 16096 16097# Have a temporary directory for convenience. Make it in the build tree 16098# simply because there is no reason against having it here, and in addition, 16099# creating and moving files from /tmp can sometimes cause problems. 16100# Hook for its removal unless debugging. 16101# Note that there is a small window in which the directory will not be cleaned: 16102# after its creation but before its name has been assigned to `$tmp'. 16103$debug || 16104{ 16105 tmp= ac_tmp= 16106 trap 'exit_status=$? 16107 : "${ac_tmp:=$tmp}" 16108 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16109' 0 16110 trap 'as_fn_exit 1' 1 2 13 15 16111} 16112# Create a (secure) tmp directory for tmp files. 16113 16114{ 16115 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16116 test -d "$tmp" 16117} || 16118{ 16119 tmp=./conf$$-$RANDOM 16120 (umask 077 && mkdir "$tmp") 16121} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16122ac_tmp=$tmp 16123 16124# Set up the scripts for CONFIG_FILES section. 16125# No need to generate them if there are no CONFIG_FILES. 16126# This happens for instance with `./config.status config.h'. 16127if test -n "$CONFIG_FILES"; then 16128 16129if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 16130 ac_cs_awk_getline=: 16131 ac_cs_awk_pipe_init= 16132 ac_cs_awk_read_file=' 16133 while ((getline aline < (F[key])) > 0) 16134 print(aline) 16135 close(F[key])' 16136 ac_cs_awk_pipe_fini= 16137else 16138 ac_cs_awk_getline=false 16139 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 16140 ac_cs_awk_read_file=' 16141 print "|#_!!_#|" 16142 print "cat " F[key] " &&" 16143 '$ac_cs_awk_pipe_init 16144 # The final `:' finishes the AND list. 16145 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 16146fi 16147ac_cr=`echo X | tr X '\015'` 16148# On cygwin, bash can eat \r inside `` if the user requested igncr. 16149# But we know of no other shell where ac_cr would be empty at this 16150# point, so we can use a bashism as a fallback. 16151if test "x$ac_cr" = x; then 16152 eval ac_cr=\$\'\\r\' 16153fi 16154ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16155if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16156 ac_cs_awk_cr='\\r' 16157else 16158 ac_cs_awk_cr=$ac_cr 16159fi 16160 16161echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16162_ACEOF 16163 16164# Create commands to substitute file output variables. 16165{ 16166 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 16167 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 16168 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 16169 echo "_ACAWK" && 16170 echo "_ACEOF" 16171} >conf$$files.sh && 16172. ./conf$$files.sh || 16173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16174rm -f conf$$files.sh 16175 16176{ 16177 echo "cat >conf$$subs.awk <<_ACEOF" && 16178 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16179 echo "_ACEOF" 16180} >conf$$subs.sh || 16181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16182ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16183ac_delim='%!_!# ' 16184for ac_last_try in false false false false false :; do 16185 . ./conf$$subs.sh || 16186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16187 16188 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16189 if test $ac_delim_n = $ac_delim_num; then 16190 break 16191 elif $ac_last_try; then 16192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16193 else 16194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16195 fi 16196done 16197rm -f conf$$subs.sh 16198 16199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16200cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16201_ACEOF 16202sed -n ' 16203h 16204s/^/S["/; s/!.*/"]=/ 16205p 16206g 16207s/^[^!]*!// 16208:repl 16209t repl 16210s/'"$ac_delim"'$// 16211t delim 16212:nl 16213h 16214s/\(.\{148\}\)..*/\1/ 16215t more1 16216s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16217p 16218n 16219b repl 16220:more1 16221s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16222p 16223g 16224s/.\{148\}// 16225t nl 16226:delim 16227h 16228s/\(.\{148\}\)..*/\1/ 16229t more2 16230s/["\\]/\\&/g; s/^/"/; s/$/"/ 16231p 16232b 16233:more2 16234s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16235p 16236g 16237s/.\{148\}// 16238t delim 16239' <conf$$subs.awk | sed ' 16240/^[^""]/{ 16241 N 16242 s/\n// 16243} 16244' >>$CONFIG_STATUS || ac_write_fail=1 16245rm -f conf$$subs.awk 16246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16247_ACAWK 16248cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16249 for (key in S) S_is_set[key] = 1 16250 FS = "" 16251 \$ac_cs_awk_pipe_init 16252} 16253{ 16254 line = $ 0 16255 nfields = split(line, field, "@") 16256 substed = 0 16257 len = length(field[1]) 16258 for (i = 2; i < nfields; i++) { 16259 key = field[i] 16260 keylen = length(key) 16261 if (S_is_set[key]) { 16262 value = S[key] 16263 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16264 len += length(value) + length(field[++i]) 16265 substed = 1 16266 } else 16267 len += 1 + keylen 16268 } 16269 if (nfields == 3 && !substed) { 16270 key = field[2] 16271 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 16272 \$ac_cs_awk_read_file 16273 next 16274 } 16275 } 16276 print line 16277} 16278\$ac_cs_awk_pipe_fini 16279_ACAWK 16280_ACEOF 16281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16282if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16283 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16284else 16285 cat 16286fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16287 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16288_ACEOF 16289 16290# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16291# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16292# trailing colons and then remove the whole line if VPATH becomes empty 16293# (actually we leave an empty line to preserve line numbers). 16294if test "x$srcdir" = x.; then 16295 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16296h 16297s/// 16298s/^/:/ 16299s/[ ]*$/:/ 16300s/:\$(srcdir):/:/g 16301s/:\${srcdir}:/:/g 16302s/:@srcdir@:/:/g 16303s/^:*// 16304s/:*$// 16305x 16306s/\(=[ ]*\).*/\1/ 16307G 16308s/\n// 16309s/^[^=]*=[ ]*$// 16310}' 16311fi 16312 16313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16314fi # test -n "$CONFIG_FILES" 16315 16316 16317eval set X " :F $CONFIG_FILES " 16318shift 16319for ac_tag 16320do 16321 case $ac_tag in 16322 :[FHLC]) ac_mode=$ac_tag; continue;; 16323 esac 16324 case $ac_mode$ac_tag in 16325 :[FHL]*:*);; 16326 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16327 :[FH]-) ac_tag=-:-;; 16328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16329 esac 16330 ac_save_IFS=$IFS 16331 IFS=: 16332 set x $ac_tag 16333 IFS=$ac_save_IFS 16334 shift 16335 ac_file=$1 16336 shift 16337 16338 case $ac_mode in 16339 :L) ac_source=$1;; 16340 :[FH]) 16341 ac_file_inputs= 16342 for ac_f 16343 do 16344 case $ac_f in 16345 -) ac_f="$ac_tmp/stdin";; 16346 *) # Look for the file first in the build tree, then in the source tree 16347 # (if the path is not absolute). The absolute path cannot be DOS-style, 16348 # because $ac_f cannot contain `:'. 16349 test -f "$ac_f" || 16350 case $ac_f in 16351 [\\/$]*) false;; 16352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16353 esac || 16354 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16355 esac 16356 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16357 as_fn_append ac_file_inputs " '$ac_f'" 16358 done 16359 16360 # Let's still pretend it is `configure' which instantiates (i.e., don't 16361 # use $as_me), people would be surprised to read: 16362 # /* config.h. Generated by config.status. */ 16363 configure_input='Generated from '` 16364 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16365 `' by configure.' 16366 if test x"$ac_file" != x-; then 16367 configure_input="$ac_file. $configure_input" 16368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16369$as_echo "$as_me: creating $ac_file" >&6;} 16370 fi 16371 # Neutralize special characters interpreted by sed in replacement strings. 16372 case $configure_input in #( 16373 *\&* | *\|* | *\\* ) 16374 ac_sed_conf_input=`$as_echo "$configure_input" | 16375 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16376 *) ac_sed_conf_input=$configure_input;; 16377 esac 16378 16379 case $ac_tag in 16380 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16382 esac 16383 ;; 16384 esac 16385 16386 ac_dir=`$as_dirname -- "$ac_file" || 16387$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16388 X"$ac_file" : 'X\(//\)[^/]' \| \ 16389 X"$ac_file" : 'X\(//\)$' \| \ 16390 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16391$as_echo X"$ac_file" | 16392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16393 s//\1/ 16394 q 16395 } 16396 /^X\(\/\/\)[^/].*/{ 16397 s//\1/ 16398 q 16399 } 16400 /^X\(\/\/\)$/{ 16401 s//\1/ 16402 q 16403 } 16404 /^X\(\/\).*/{ 16405 s//\1/ 16406 q 16407 } 16408 s/.*/./; q'` 16409 as_dir="$ac_dir"; as_fn_mkdir_p 16410 ac_builddir=. 16411 16412case "$ac_dir" in 16413.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16414*) 16415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16416 # A ".." for each directory in $ac_dir_suffix. 16417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16418 case $ac_top_builddir_sub in 16419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16421 esac ;; 16422esac 16423ac_abs_top_builddir=$ac_pwd 16424ac_abs_builddir=$ac_pwd$ac_dir_suffix 16425# for backward compatibility: 16426ac_top_builddir=$ac_top_build_prefix 16427 16428case $srcdir in 16429 .) # We are building in place. 16430 ac_srcdir=. 16431 ac_top_srcdir=$ac_top_builddir_sub 16432 ac_abs_top_srcdir=$ac_pwd ;; 16433 [\\/]* | ?:[\\/]* ) # Absolute name. 16434 ac_srcdir=$srcdir$ac_dir_suffix; 16435 ac_top_srcdir=$srcdir 16436 ac_abs_top_srcdir=$srcdir ;; 16437 *) # Relative name. 16438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16439 ac_top_srcdir=$ac_top_build_prefix$srcdir 16440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16441esac 16442ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16443 16444 16445 case $ac_mode in 16446 :F) 16447 # 16448 # CONFIG_FILE 16449 # 16450 16451 case $INSTALL in 16452 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16453 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16454 esac 16455_ACEOF 16456 16457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16458# If the template does not know about datarootdir, expand it. 16459# FIXME: This hack should be removed a few years after 2.60. 16460ac_datarootdir_hack=; ac_datarootdir_seen= 16461ac_sed_dataroot=' 16462/datarootdir/ { 16463 p 16464 q 16465} 16466/@datadir@/p 16467/@docdir@/p 16468/@infodir@/p 16469/@localedir@/p 16470/@mandir@/p' 16471case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16472*datarootdir*) ac_datarootdir_seen=yes;; 16473*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16475$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16476_ACEOF 16477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16478 ac_datarootdir_hack=' 16479 s&@datadir@&$datadir&g 16480 s&@docdir@&$docdir&g 16481 s&@infodir@&$infodir&g 16482 s&@localedir@&$localedir&g 16483 s&@mandir@&$mandir&g 16484 s&\\\${datarootdir}&$datarootdir&g' ;; 16485esac 16486_ACEOF 16487 16488# Neutralize VPATH when `$srcdir' = `.'. 16489# Shell code in configure.ac might set extrasub. 16490# FIXME: do we really want to maintain this feature? 16491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16492ac_sed_extra="$ac_vpsub 16493$extrasub 16494_ACEOF 16495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16496:t 16497/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16498s|@configure_input@|$ac_sed_conf_input|;t t 16499s&@top_builddir@&$ac_top_builddir_sub&;t t 16500s&@top_build_prefix@&$ac_top_build_prefix&;t t 16501s&@srcdir@&$ac_srcdir&;t t 16502s&@abs_srcdir@&$ac_abs_srcdir&;t t 16503s&@top_srcdir@&$ac_top_srcdir&;t t 16504s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16505s&@builddir@&$ac_builddir&;t t 16506s&@abs_builddir@&$ac_abs_builddir&;t t 16507s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16508s&@INSTALL@&$ac_INSTALL&;t t 16509$ac_datarootdir_hack 16510" 16511eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 16512if $ac_cs_awk_getline; then 16513 $AWK -f "$ac_tmp/subs.awk" 16514else 16515 $AWK -f "$ac_tmp/subs.awk" | $SHELL 16516fi \ 16517 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16518 16519test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16520 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16521 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16522 "$ac_tmp/out"`; test -z "$ac_out"; } && 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16524which seems to be undefined. Please make sure it is defined" >&5 16525$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16526which seems to be undefined. Please make sure it is defined" >&2;} 16527 16528 rm -f "$ac_tmp/stdin" 16529 case $ac_file in 16530 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16531 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16532 esac \ 16533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16534 ;; 16535 16536 16537 16538 esac 16539 16540 16541 case $ac_file$ac_mode in 16542 "Makefile":F) sed "$extrasub_build" Makefile | 16543 sed "$extrasub_host" | 16544 sed "$extrasub_target" > mf$$ 16545 mv -f mf$$ Makefile ;; 16546 16547 esac 16548done # for ac_tag 16549 16550 16551as_fn_exit 0 16552_ACEOF 16553ac_clean_files=$ac_clean_files_save 16554 16555test $ac_write_fail = 0 || 16556 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16557 16558 16559# configure is writing to config.log, and then calls config.status. 16560# config.status does its own redirection, appending to config.log. 16561# Unfortunately, on DOS this fails, as config.log is still kept open 16562# by configure, so config.status won't be able to write to it; its 16563# output is simply discarded. So we exec the FD to /dev/null, 16564# effectively closing config.log, so it can be properly (re)opened and 16565# appended to by config.status. When coming back to configure, we 16566# need to make the FD available again. 16567if test "$no_create" != yes; then 16568 ac_cs_success=: 16569 ac_config_status_args= 16570 test "$silent" = yes && 16571 ac_config_status_args="$ac_config_status_args --quiet" 16572 exec 5>/dev/null 16573 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16574 exec 5>>config.log 16575 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16576 # would make configure fail if this is the last instruction. 16577 $ac_cs_success || as_fn_exit 1 16578fi 16579if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16581$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16582fi 16583 16584