1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 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. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172test \$(( 1 + 1 )) = 2 || exit 1" 173 if (eval "$as_required") 2>/dev/null; then : 174 as_have_required=yes 175else 176 as_have_required=no 177fi 178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 179 180else 181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 182as_found=false 183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 184do 185 IFS=$as_save_IFS 186 test -z "$as_dir" && as_dir=. 187 as_found=: 188 case $as_dir in #( 189 /*) 190 for as_base in sh bash ksh sh5; do 191 # Try only shells that exist, to save several forks. 192 as_shell=$as_dir/$as_base 193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 195 CONFIG_SHELL=$as_shell as_have_required=yes 196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 break 2 198fi 199fi 200 done;; 201 esac 202 as_found=false 203done 204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 206 CONFIG_SHELL=$SHELL as_have_required=yes 207fi; } 208IFS=$as_save_IFS 209 210 211 if test "x$CONFIG_SHELL" != x; then : 212 # We cannot yet assume a decent shell, so we have to provide a 213 # neutralization value for shells without unset; and this also 214 # works around shells that cannot unset nonexistent variables. 215 BASH_ENV=/dev/null 216 ENV=/dev/null 217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 218 export CONFIG_SHELL 219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 220fi 221 222 if test x$as_have_required = xno; then : 223 $as_echo "$0: This script requires a shell more modern than all" 224 $as_echo "$0: the shells that I found on your system." 225 if test x${ZSH_VERSION+set} = xset ; then 226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 227 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 228 else 229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 230$0: including any error possibly output before this 231$0: message. Then install a modern shell, or manually run 232$0: the script under such a shell if you do have one." 233 fi 234 exit 1 235fi 236fi 237fi 238SHELL=${CONFIG_SHELL-/bin/sh} 239export SHELL 240# Unset more variables known to interfere with behavior of common tools. 241CLICOLOR_FORCE= GREP_OPTIONS= 242unset CLICOLOR_FORCE GREP_OPTIONS 243 244## --------------------- ## 245## M4sh Shell Functions. ## 246## --------------------- ## 247# as_fn_unset VAR 248# --------------- 249# Portably unset VAR. 250as_fn_unset () 251{ 252 { eval $1=; unset $1;} 253} 254as_unset=as_fn_unset 255 256# as_fn_set_status STATUS 257# ----------------------- 258# Set $? to STATUS, without forking. 259as_fn_set_status () 260{ 261 return $1 262} # as_fn_set_status 263 264# as_fn_exit STATUS 265# ----------------- 266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 267as_fn_exit () 268{ 269 set +e 270 as_fn_set_status $1 271 exit $1 272} # as_fn_exit 273 274# as_fn_mkdir_p 275# ------------- 276# Create "$as_dir" as a directory, including parents if necessary. 277as_fn_mkdir_p () 278{ 279 280 case $as_dir in #( 281 -*) as_dir=./$as_dir;; 282 esac 283 test -d "$as_dir" || eval $as_mkdir_p || { 284 as_dirs= 285 while :; do 286 case $as_dir in #( 287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 288 *) as_qdir=$as_dir;; 289 esac 290 as_dirs="'$as_qdir' $as_dirs" 291 as_dir=`$as_dirname -- "$as_dir" || 292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 293 X"$as_dir" : 'X\(//\)[^/]' \| \ 294 X"$as_dir" : 'X\(//\)$' \| \ 295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 296$as_echo X"$as_dir" | 297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 298 s//\1/ 299 q 300 } 301 /^X\(\/\/\)[^/].*/{ 302 s//\1/ 303 q 304 } 305 /^X\(\/\/\)$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\).*/{ 310 s//\1/ 311 q 312 } 313 s/.*/./; q'` 314 test -d "$as_dir" && break 315 done 316 test -z "$as_dirs" || eval "mkdir $as_dirs" 317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 318 319 320} # as_fn_mkdir_p 321# as_fn_append VAR VALUE 322# ---------------------- 323# Append the text in VALUE to the end of the definition contained in VAR. Take 324# advantage of any shell optimizations that allow amortized linear growth over 325# repeated appends, instead of the typical quadratic growth present in naive 326# implementations. 327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 328 eval 'as_fn_append () 329 { 330 eval $1+=\$2 331 }' 332else 333 as_fn_append () 334 { 335 eval $1=\$$1\$2 336 } 337fi # as_fn_append 338 339# as_fn_arith ARG... 340# ------------------ 341# Perform arithmetic evaluation on the ARGs, and store the result in the 342# global $as_val. Take advantage of shells that can avoid forks. The arguments 343# must be portable across $(()) and expr. 344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 345 eval 'as_fn_arith () 346 { 347 as_val=$(( $* )) 348 }' 349else 350 as_fn_arith () 351 { 352 as_val=`expr "$@" || test $? -eq 1` 353 } 354fi # as_fn_arith 355 356 357# as_fn_error ERROR [LINENO LOG_FD] 358# --------------------------------- 359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 361# script with status $?, using 1 if that was 0. 362as_fn_error () 363{ 364 as_status=$?; test $as_status -eq 0 && as_status=1 365 if test "$3"; then 366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 368 fi 369 $as_echo "$as_me: error: $1" >&2 370 as_fn_exit $as_status 371} # as_fn_error 372 373if expr a : '\(a\)' >/dev/null 2>&1 && 374 test "X`expr 00001 : '.*\(...\)'`" = X001; then 375 as_expr=expr 376else 377 as_expr=false 378fi 379 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 381 as_basename=basename 382else 383 as_basename=false 384fi 385 386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 387 as_dirname=dirname 388else 389 as_dirname=false 390fi 391 392as_me=`$as_basename -- "$0" || 393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 394 X"$0" : 'X\(//\)$' \| \ 395 X"$0" : 'X\(/\)' \| . 2>/dev/null || 396$as_echo X/"$0" | 397 sed '/^.*\/\([^/][^/]*\)\/*$/{ 398 s//\1/ 399 q 400 } 401 /^X\/\(\/\/\)$/{ 402 s//\1/ 403 q 404 } 405 /^X\/\(\/\).*/{ 406 s//\1/ 407 q 408 } 409 s/.*/./; q'` 410 411# Avoid depending upon Character Ranges. 412as_cr_letters='abcdefghijklmnopqrstuvwxyz' 413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 414as_cr_Letters=$as_cr_letters$as_cr_LETTERS 415as_cr_digits='0123456789' 416as_cr_alnum=$as_cr_Letters$as_cr_digits 417 418 419 as_lineno_1=$LINENO as_lineno_1a=$LINENO 420 as_lineno_2=$LINENO as_lineno_2a=$LINENO 421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 424 sed -n ' 425 p 426 /[$]LINENO/= 427 ' <$as_myself | 428 sed ' 429 s/[$]LINENO.*/&-/ 430 t lineno 431 b 432 :lineno 433 N 434 :loop 435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 436 t loop 437 s/-\n.*// 438 ' >$as_me.lineno && 439 chmod +x "$as_me.lineno" || 440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 441 442 # Don't try to exec as it changes $[0], causing all sort of problems 443 # (the dirname of $[0] is not the place where we might find the 444 # original and so on. Autoconf is especially sensitive to this). 445 . "./$as_me.lineno" 446 # Exit status is that of the last command. 447 exit 448} 449 450ECHO_C= ECHO_N= ECHO_T= 451case `echo -n x` in #((((( 452-n*) 453 case `echo 'xy\c'` in 454 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 455 xy) ECHO_C='\c';; 456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 457 ECHO_T=' ';; 458 esac;; 459*) 460 ECHO_N='-n';; 461esac 462 463rm -f conf$$ conf$$.exe conf$$.file 464if test -d conf$$.dir; then 465 rm -f conf$$.dir/conf$$.file 466else 467 rm -f conf$$.dir 468 mkdir conf$$.dir 2>/dev/null 469fi 470if (echo >conf$$.file) 2>/dev/null; then 471 if ln -s conf$$.file conf$$ 2>/dev/null; then 472 as_ln_s='ln -s' 473 # ... but there are two gotchas: 474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 476 # In both cases, we have to default to `cp -p'. 477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 478 as_ln_s='cp -p' 479 elif ln conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s=ln 481 else 482 as_ln_s='cp -p' 483 fi 484else 485 as_ln_s='cp -p' 486fi 487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 488rmdir conf$$.dir 2>/dev/null 489 490if mkdir -p . 2>/dev/null; then 491 as_mkdir_p='mkdir -p "$as_dir"' 492else 493 test -d ./-p && rmdir ./-p 494 as_mkdir_p=false 495fi 496 497if test -x / >/dev/null 2>&1; then 498 as_test_x='test -x' 499else 500 if ls -dL / >/dev/null 2>&1; then 501 as_ls_L_option=L 502 else 503 as_ls_L_option= 504 fi 505 as_test_x=' 506 eval sh -c '\'' 507 if test -d "$1"; then 508 test -d "$1/."; 509 else 510 case $1 in #( 511 -*)set "./$1";; 512 esac; 513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 514 ???[sx]*):;;*)false;;esac;fi 515 '\'' sh 516 ' 517fi 518as_executable_p=$as_test_x 519 520# Sed expression to map a string onto a valid CPP name. 521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 522 523# Sed expression to map a string onto a valid variable name. 524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 525 526 527exec 7<&0 </dev/null 6>&1 528 529# Name of the host. 530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 531# so uname gets run too. 532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 533 534# 535# Initializations. 536# 537ac_default_prefix=/usr/local 538ac_clean_files= 539ac_config_libobj_dir=. 540LIBOBJS= 541cross_compiling=no 542subdirs= 543MFLAGS= 544MAKEFLAGS= 545 546# Identity of this package. 547PACKAGE_NAME= 548PACKAGE_TARNAME= 549PACKAGE_VERSION= 550PACKAGE_STRING= 551PACKAGE_BUGREPORT= 552PACKAGE_URL= 553 554ac_unique_file="move-if-change" 555enable_option_checking=no 556ac_subst_vars='LTLIBOBJS 557LIBOBJS 558compare_exclusions 559host_shared 560stage2_werror_flag 561stage1_checking 562stage1_cflags 563MAINT 564MAINTAINER_MODE_FALSE 565MAINTAINER_MODE_TRUE 566COMPILER_NM_FOR_TARGET 567COMPILER_LD_FOR_TARGET 568COMPILER_AS_FOR_TARGET 569FLAGS_FOR_TARGET 570RAW_CXX_FOR_TARGET 571WINDMC_FOR_TARGET 572WINDRES_FOR_TARGET 573STRIP_FOR_TARGET 574READELF_FOR_TARGET 575RANLIB_FOR_TARGET 576OBJDUMP_FOR_TARGET 577OBJCOPY_FOR_TARGET 578NM_FOR_TARGET 579LIPO_FOR_TARGET 580LD_FOR_TARGET 581DLLTOOL_FOR_TARGET 582AS_FOR_TARGET 583AR_FOR_TARGET 584GOC_FOR_TARGET 585GFORTRAN_FOR_TARGET 586GCJ_FOR_TARGET 587GCC_FOR_TARGET 588CXX_FOR_TARGET 589CC_FOR_TARGET 590READELF 591OBJDUMP 592OBJCOPY 593WINDMC 594WINDRES 595STRIP 596RANLIB 597NM 598LIPO 599LD 600DLLTOOL 601AS 602AR 603RUNTEST 604EXPECT 605MAKEINFO 606FLEX 607LEX 608M4 609BISON 610YACC 611WINDRES_FOR_BUILD 612WINDMC_FOR_BUILD 613RANLIB_FOR_BUILD 614NM_FOR_BUILD 615LD_FOR_BUILD 616LDFLAGS_FOR_BUILD 617GOC_FOR_BUILD 618GFORTRAN_FOR_BUILD 619GCJ_FOR_BUILD 620DLLTOOL_FOR_BUILD 621CXX_FOR_BUILD 622CXXFLAGS_FOR_BUILD 623CFLAGS_FOR_BUILD 624CC_FOR_BUILD 625AS_FOR_BUILD 626AR_FOR_BUILD 627target_configdirs 628configdirs 629build_configdirs 630INSTALL_GDB_TK 631GDB_TK 632CONFIGURE_GDB_TK 633build_tooldir 634tooldir 635GCC_SHLIB_SUBDIR 636RPATH_ENVVAR 637target_configargs 638host_configargs 639build_configargs 640BUILD_CONFIG 641LDFLAGS_FOR_TARGET 642CXXFLAGS_FOR_TARGET 643CFLAGS_FOR_TARGET 644DEBUG_PREFIX_CFLAGS_FOR_TARGET 645SYSROOT_CFLAGS_FOR_TARGET 646extra_host_libiberty_configure_flags 647stage1_languages 648extra_linker_plugin_flags 649extra_linker_plugin_configure_flags 650islinc 651isllibs 652poststage1_ldflags 653poststage1_libs 654stage1_ldflags 655stage1_libs 656extra_isl_gmp_configure_flags 657extra_mpc_mpfr_configure_flags 658extra_mpc_gmp_configure_flags 659extra_mpfr_configure_flags 660gmpinc 661gmplibs 662do_compare 663GNATMAKE 664GNATBIND 665ac_ct_CXX 666CXXFLAGS 667CXX 668OBJEXT 669EXEEXT 670ac_ct_CC 671CPPFLAGS 672LDFLAGS 673CFLAGS 674CC 675EXTRA_CONFIGARGS_LIBJAVA 676extra_liboffloadmic_configure_flags 677target_subdir 678host_subdir 679build_subdir 680build_libsubdir 681AWK 682SED 683LN_S 684LN 685INSTALL_DATA 686INSTALL_SCRIPT 687INSTALL_PROGRAM 688target_os 689target_vendor 690target_cpu 691target 692host_os 693host_vendor 694host_cpu 695host 696target_noncanonical 697host_noncanonical 698build_noncanonical 699build_os 700build_vendor 701build_cpu 702build 703TOPLEVEL_CONFIGURE_ARGUMENTS 704target_alias 705host_alias 706build_alias 707LIBS 708ECHO_T 709ECHO_N 710ECHO_C 711DEFS 712mandir 713localedir 714libdir 715psdir 716pdfdir 717dvidir 718htmldir 719infodir 720docdir 721oldincludedir 722includedir 723localstatedir 724sharedstatedir 725sysconfdir 726datadir 727datarootdir 728libexecdir 729sbindir 730bindir 731program_transform_name 732prefix 733exec_prefix 734PACKAGE_URL 735PACKAGE_BUGREPORT 736PACKAGE_STRING 737PACKAGE_VERSION 738PACKAGE_TARNAME 739PACKAGE_NAME 740PATH_SEPARATOR 741SHELL' 742ac_subst_files='serialization_dependencies 743host_makefile_frag 744target_makefile_frag 745alphaieee_frag 746ospace_frag' 747ac_user_opts=' 748enable_option_checking 749with_build_libsubdir 750enable_as_accelerator_for 751enable_offload_targets 752enable_gold 753enable_ld 754enable_libquadmath 755enable_libquadmath_support 756enable_libada 757enable_libssp 758enable_libstdcxx 759enable_liboffloadmic 760enable_static_libjava 761enable_bootstrap 762with_mpc 763with_mpc_include 764with_mpc_lib 765with_mpfr_dir 766with_mpfr 767with_mpfr_include 768with_mpfr_lib 769with_gmp_dir 770with_gmp 771with_gmp_include 772with_gmp_lib 773with_host_libstdcxx 774with_stage1_libs 775with_stage1_ldflags 776with_boot_libs 777with_boot_ldflags 778with_isl 779with_isl_include 780with_isl_lib 781enable_isl_version_check 782enable_lto 783enable_linker_plugin_configure_flags 784enable_linker_plugin_flags 785enable_stage1_languages 786enable_objc_gc 787with_build_sysroot 788with_debug_prefix_map 789with_build_config 790enable_vtable_verify 791enable_serial_configure 792with_build_time_tools 793enable_maintainer_mode 794enable_stage1_checking 795enable_werror 796enable_host_shared 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806CXX 807CXXFLAGS 808CCC 809build_configargs 810host_configargs 811target_configargs 812AR 813AS 814DLLTOOL 815LD 816LIPO 817NM 818RANLIB 819STRIP 820WINDRES 821WINDMC 822OBJCOPY 823OBJDUMP 824READELF 825CC_FOR_TARGET 826CXX_FOR_TARGET 827GCC_FOR_TARGET 828GCJ_FOR_TARGET 829GFORTRAN_FOR_TARGET 830GOC_FOR_TARGET 831AR_FOR_TARGET 832AS_FOR_TARGET 833DLLTOOL_FOR_TARGET 834LD_FOR_TARGET 835LIPO_FOR_TARGET 836NM_FOR_TARGET 837OBJCOPY_FOR_TARGET 838OBJDUMP_FOR_TARGET 839RANLIB_FOR_TARGET 840READELF_FOR_TARGET 841STRIP_FOR_TARGET 842WINDRES_FOR_TARGET 843WINDMC_FOR_TARGET' 844 845 846# Initialize some variables set by options. 847ac_init_help= 848ac_init_version=false 849ac_unrecognized_opts= 850ac_unrecognized_sep= 851# The variables have the same names as the options, with 852# dashes changed to underlines. 853cache_file=/dev/null 854exec_prefix=NONE 855no_create= 856no_recursion= 857prefix=NONE 858program_prefix=NONE 859program_suffix=NONE 860program_transform_name=s,x,x, 861silent= 862site= 863srcdir= 864verbose= 865x_includes=NONE 866x_libraries=NONE 867 868# Installation directory options. 869# These are left unexpanded so users can "make install exec_prefix=/foo" 870# and all the variables that are supposed to be based on exec_prefix 871# by default will actually change. 872# Use braces instead of parens because sh, perl, etc. also accept them. 873# (The list follows the same order as the GNU Coding Standards.) 874bindir='${exec_prefix}/bin' 875sbindir='${exec_prefix}/sbin' 876libexecdir='${exec_prefix}/libexec' 877datarootdir='${prefix}/share' 878datadir='${datarootdir}' 879sysconfdir='${prefix}/etc' 880sharedstatedir='${prefix}/com' 881localstatedir='${prefix}/var' 882includedir='${prefix}/include' 883oldincludedir='/usr/include' 884docdir='${datarootdir}/doc/${PACKAGE}' 885infodir='${datarootdir}/info' 886htmldir='${docdir}' 887dvidir='${docdir}' 888pdfdir='${docdir}' 889psdir='${docdir}' 890libdir='${exec_prefix}/lib' 891localedir='${datarootdir}/locale' 892mandir='${datarootdir}/man' 893 894ac_prev= 895ac_dashdash= 896for ac_option 897do 898 # If the previous option needs an argument, assign it. 899 if test -n "$ac_prev"; then 900 eval $ac_prev=\$ac_option 901 ac_prev= 902 continue 903 fi 904 905 case $ac_option in 906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 907 *) ac_optarg=yes ;; 908 esac 909 910 # Accept the important Cygnus configure options, so we can diagnose typos. 911 912 case $ac_dashdash$ac_option in 913 --) 914 ac_dashdash=yes ;; 915 916 -bindir | --bindir | --bindi | --bind | --bin | --bi) 917 ac_prev=bindir ;; 918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 919 bindir=$ac_optarg ;; 920 921 -build | --build | --buil | --bui | --bu) 922 ac_prev=build_alias ;; 923 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 924 build_alias=$ac_optarg ;; 925 926 -cache-file | --cache-file | --cache-fil | --cache-fi \ 927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 928 ac_prev=cache_file ;; 929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 931 cache_file=$ac_optarg ;; 932 933 --config-cache | -C) 934 cache_file=config.cache ;; 935 936 -datadir | --datadir | --datadi | --datad) 937 ac_prev=datadir ;; 938 -datadir=* | --datadir=* | --datadi=* | --datad=*) 939 datadir=$ac_optarg ;; 940 941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 942 | --dataroo | --dataro | --datar) 943 ac_prev=datarootdir ;; 944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 946 datarootdir=$ac_optarg ;; 947 948 -disable-* | --disable-*) 949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 952 as_fn_error "invalid feature name: $ac_useropt" 953 ac_useropt_orig=$ac_useropt 954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 955 case $ac_user_opts in 956 *" 957"enable_$ac_useropt" 958"*) ;; 959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 960 ac_unrecognized_sep=', ';; 961 esac 962 eval enable_$ac_useropt=no ;; 963 964 -docdir | --docdir | --docdi | --doc | --do) 965 ac_prev=docdir ;; 966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 967 docdir=$ac_optarg ;; 968 969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 970 ac_prev=dvidir ;; 971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 972 dvidir=$ac_optarg ;; 973 974 -enable-* | --enable-*) 975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 976 # Reject names that are not valid shell variable names. 977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978 as_fn_error "invalid feature name: $ac_useropt" 979 ac_useropt_orig=$ac_useropt 980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 981 case $ac_user_opts in 982 *" 983"enable_$ac_useropt" 984"*) ;; 985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 986 ac_unrecognized_sep=', ';; 987 esac 988 eval enable_$ac_useropt=\$ac_optarg ;; 989 990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 992 | --exec | --exe | --ex) 993 ac_prev=exec_prefix ;; 994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 996 | --exec=* | --exe=* | --ex=*) 997 exec_prefix=$ac_optarg ;; 998 999 -gas | --gas | --ga | --g) 1000 # Obsolete; use --with-gas. 1001 with_gas=yes ;; 1002 1003 -help | --help | --hel | --he | -h) 1004 ac_init_help=long ;; 1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1006 ac_init_help=recursive ;; 1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1008 ac_init_help=short ;; 1009 1010 -host | --host | --hos | --ho) 1011 ac_prev=host_alias ;; 1012 -host=* | --host=* | --hos=* | --ho=*) 1013 host_alias=$ac_optarg ;; 1014 1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1016 ac_prev=htmldir ;; 1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1018 | --ht=*) 1019 htmldir=$ac_optarg ;; 1020 1021 -includedir | --includedir | --includedi | --included | --include \ 1022 | --includ | --inclu | --incl | --inc) 1023 ac_prev=includedir ;; 1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1025 | --includ=* | --inclu=* | --incl=* | --inc=*) 1026 includedir=$ac_optarg ;; 1027 1028 -infodir | --infodir | --infodi | --infod | --info | --inf) 1029 ac_prev=infodir ;; 1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1031 infodir=$ac_optarg ;; 1032 1033 -libdir | --libdir | --libdi | --libd) 1034 ac_prev=libdir ;; 1035 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1036 libdir=$ac_optarg ;; 1037 1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1039 | --libexe | --libex | --libe) 1040 ac_prev=libexecdir ;; 1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1042 | --libexe=* | --libex=* | --libe=*) 1043 libexecdir=$ac_optarg ;; 1044 1045 -localedir | --localedir | --localedi | --localed | --locale) 1046 ac_prev=localedir ;; 1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1048 localedir=$ac_optarg ;; 1049 1050 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1051 | --localstate | --localstat | --localsta | --localst | --locals) 1052 ac_prev=localstatedir ;; 1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1055 localstatedir=$ac_optarg ;; 1056 1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1058 ac_prev=mandir ;; 1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1060 mandir=$ac_optarg ;; 1061 1062 -nfp | --nfp | --nf) 1063 # Obsolete; use --without-fp. 1064 with_fp=no ;; 1065 1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1067 | --no-cr | --no-c | -n) 1068 no_create=yes ;; 1069 1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1072 no_recursion=yes ;; 1073 1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1076 | --oldin | --oldi | --old | --ol | --o) 1077 ac_prev=oldincludedir ;; 1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1081 oldincludedir=$ac_optarg ;; 1082 1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1084 ac_prev=prefix ;; 1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1086 prefix=$ac_optarg ;; 1087 1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1089 | --program-pre | --program-pr | --program-p) 1090 ac_prev=program_prefix ;; 1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1093 program_prefix=$ac_optarg ;; 1094 1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1096 | --program-suf | --program-su | --program-s) 1097 ac_prev=program_suffix ;; 1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1100 program_suffix=$ac_optarg ;; 1101 1102 -program-transform-name | --program-transform-name \ 1103 | --program-transform-nam | --program-transform-na \ 1104 | --program-transform-n | --program-transform- \ 1105 | --program-transform | --program-transfor \ 1106 | --program-transfo | --program-transf \ 1107 | --program-trans | --program-tran \ 1108 | --progr-tra | --program-tr | --program-t) 1109 ac_prev=program_transform_name ;; 1110 -program-transform-name=* | --program-transform-name=* \ 1111 | --program-transform-nam=* | --program-transform-na=* \ 1112 | --program-transform-n=* | --program-transform-=* \ 1113 | --program-transform=* | --program-transfor=* \ 1114 | --program-transfo=* | --program-transf=* \ 1115 | --program-trans=* | --program-tran=* \ 1116 | --progr-tra=* | --program-tr=* | --program-t=*) 1117 program_transform_name=$ac_optarg ;; 1118 1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1120 ac_prev=pdfdir ;; 1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1122 pdfdir=$ac_optarg ;; 1123 1124 -psdir | --psdir | --psdi | --psd | --ps) 1125 ac_prev=psdir ;; 1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1127 psdir=$ac_optarg ;; 1128 1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1130 | -silent | --silent | --silen | --sile | --sil) 1131 silent=yes ;; 1132 1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1134 ac_prev=sbindir ;; 1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1136 | --sbi=* | --sb=*) 1137 sbindir=$ac_optarg ;; 1138 1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1141 | --sharedst | --shareds | --shared | --share | --shar \ 1142 | --sha | --sh) 1143 ac_prev=sharedstatedir ;; 1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1147 | --sha=* | --sh=*) 1148 sharedstatedir=$ac_optarg ;; 1149 1150 -site | --site | --sit) 1151 ac_prev=site ;; 1152 -site=* | --site=* | --sit=*) 1153 site=$ac_optarg ;; 1154 1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1156 ac_prev=srcdir ;; 1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1158 srcdir=$ac_optarg ;; 1159 1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1161 | --syscon | --sysco | --sysc | --sys | --sy) 1162 ac_prev=sysconfdir ;; 1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1165 sysconfdir=$ac_optarg ;; 1166 1167 -target | --target | --targe | --targ | --tar | --ta | --t) 1168 ac_prev=target_alias ;; 1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1170 target_alias=$ac_optarg ;; 1171 1172 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1173 verbose=yes ;; 1174 1175 -version | --version | --versio | --versi | --vers | -V) 1176 ac_init_version=: ;; 1177 1178 -with-* | --with-*) 1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1182 as_fn_error "invalid package name: $ac_useropt" 1183 ac_useropt_orig=$ac_useropt 1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1185 case $ac_user_opts in 1186 *" 1187"with_$ac_useropt" 1188"*) ;; 1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1190 ac_unrecognized_sep=', ';; 1191 esac 1192 eval with_$ac_useropt=\$ac_optarg ;; 1193 1194 -without-* | --without-*) 1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198 as_fn_error "invalid package name: $ac_useropt" 1199 ac_useropt_orig=$ac_useropt 1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1201 case $ac_user_opts in 1202 *" 1203"with_$ac_useropt" 1204"*) ;; 1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1206 ac_unrecognized_sep=', ';; 1207 esac 1208 eval with_$ac_useropt=no ;; 1209 1210 --x) 1211 # Obsolete; use --with-x. 1212 with_x=yes ;; 1213 1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1215 | --x-incl | --x-inc | --x-in | --x-i) 1216 ac_prev=x_includes ;; 1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1219 x_includes=$ac_optarg ;; 1220 1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1223 ac_prev=x_libraries ;; 1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1226 x_libraries=$ac_optarg ;; 1227 1228 -*) as_fn_error "unrecognized option: \`$ac_option' 1229Try \`$0 --help' for more information." 1230 ;; 1231 1232 *=*) 1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1234 # Reject names that are not valid shell variable names. 1235 case $ac_envvar in #( 1236 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1238 esac 1239 eval $ac_envvar=\$ac_optarg 1240 export $ac_envvar ;; 1241 1242 *) 1243 # FIXME: should be removed in autoconf 3.0. 1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1248 ;; 1249 1250 esac 1251done 1252 1253if test -n "$ac_prev"; then 1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1255 as_fn_error "missing argument to $ac_option" 1256fi 1257 1258if test -n "$ac_unrecognized_opts"; then 1259 case $enable_option_checking in 1260 no) ;; 1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1263 esac 1264fi 1265 1266# Check all directory arguments for consistency. 1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1268 datadir sysconfdir sharedstatedir localstatedir includedir \ 1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1270 libdir localedir mandir 1271do 1272 eval ac_val=\$$ac_var 1273 # Remove trailing slashes. 1274 case $ac_val in 1275 */ ) 1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1277 eval $ac_var=\$ac_val;; 1278 esac 1279 # Be sure to have absolute directory names. 1280 case $ac_val in 1281 [\\/$]* | ?:[\\/]* ) continue;; 1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1283 esac 1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1285done 1286 1287# There might be people who depend on the old broken behavior: `$host' 1288# used to hold the argument of --host etc. 1289# FIXME: To remove some day. 1290build=$build_alias 1291host=$host_alias 1292target=$target_alias 1293 1294# FIXME: To remove some day. 1295if test "x$host_alias" != x; then 1296 if test "x$build_alias" = x; then 1297 cross_compiling=maybe 1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1299 If a cross compiler is detected then cross compile mode will be used." >&2 1300 elif test "x$build_alias" != "x$host_alias"; then 1301 cross_compiling=yes 1302 fi 1303fi 1304 1305ac_tool_prefix= 1306test -n "$host_alias" && ac_tool_prefix=$host_alias- 1307 1308test "$silent" = yes && exec 6>/dev/null 1309 1310 1311ac_pwd=`pwd` && test -n "$ac_pwd" && 1312ac_ls_di=`ls -di .` && 1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1314 as_fn_error "working directory cannot be determined" 1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1316 as_fn_error "pwd does not report name of working directory" 1317 1318 1319# Find the source files, if location was not specified. 1320if test -z "$srcdir"; then 1321 ac_srcdir_defaulted=yes 1322 # Try the directory containing this script, then the parent directory. 1323 ac_confdir=`$as_dirname -- "$as_myself" || 1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1325 X"$as_myself" : 'X\(//\)[^/]' \| \ 1326 X"$as_myself" : 'X\(//\)$' \| \ 1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1328$as_echo X"$as_myself" | 1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\/\)[^/].*/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)$/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\).*/{ 1342 s//\1/ 1343 q 1344 } 1345 s/.*/./; q'` 1346 srcdir=$ac_confdir 1347 if test ! -r "$srcdir/$ac_unique_file"; then 1348 srcdir=.. 1349 fi 1350else 1351 ac_srcdir_defaulted=no 1352fi 1353if test ! -r "$srcdir/$ac_unique_file"; then 1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1356fi 1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1358ac_abs_confdir=`( 1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1360 pwd)` 1361# When building in place, set srcdir=. 1362if test "$ac_abs_confdir" = "$ac_pwd"; then 1363 srcdir=. 1364fi 1365# Remove unnecessary trailing slashes from srcdir. 1366# Double slashes in file names in object file debugging info 1367# mess up M-x gdb in Emacs. 1368case $srcdir in 1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1370esac 1371case $srcdir in 1372 *" "*) 1373 as_fn_error "path to source, $srcdir, contains spaces" 1374 ;; 1375esac 1376ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` 1377 1378for ac_var in $ac_precious_vars; do 1379 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_env_${ac_var}_value=\$${ac_var} 1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1383done 1384 1385# 1386# Report the --help message. 1387# 1388if test "$ac_init_help" = "long"; then 1389 # Omit some internal or obsolete options to make the list less imposing. 1390 # This message is too long to be a string in the A/UX 3.1 sh. 1391 cat <<_ACEOF 1392\`configure' configures this package to adapt to many kinds of systems. 1393 1394Usage: $0 [OPTION]... [VAR=VALUE]... 1395 1396To assign environment variables (e.g., CC, CFLAGS...), specify them as 1397VAR=VALUE. See below for descriptions of some of the useful variables. 1398 1399Defaults for the options are specified in brackets. 1400 1401Configuration: 1402 -h, --help display this help and exit 1403 --help=short display options specific to this package 1404 --help=recursive display the short help of all the included packages 1405 -V, --version display version information and exit 1406 -q, --quiet, --silent do not print \`checking...' messages 1407 --cache-file=FILE cache test results in FILE [disabled] 1408 -C, --config-cache alias for \`--cache-file=config.cache' 1409 -n, --no-create do not create output files 1410 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1411 1412Installation directories: 1413 --prefix=PREFIX install architecture-independent files in PREFIX 1414 [$ac_default_prefix] 1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1416 [PREFIX] 1417 1418By default, \`make install' will install all the files in 1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1420an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1421for instance \`--prefix=\$HOME'. 1422 1423For better control, use the options below. 1424 1425Fine tuning of the installation directories: 1426 --bindir=DIR user executables [EPREFIX/bin] 1427 --sbindir=DIR system admin executables [EPREFIX/sbin] 1428 --libexecdir=DIR program executables [EPREFIX/libexec] 1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1432 --libdir=DIR object code libraries [EPREFIX/lib] 1433 --includedir=DIR C header files [PREFIX/include] 1434 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1437 --infodir=DIR info documentation [DATAROOTDIR/info] 1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1439 --mandir=DIR man documentation [DATAROOTDIR/man] 1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1441 --htmldir=DIR html documentation [DOCDIR] 1442 --dvidir=DIR dvi documentation [DOCDIR] 1443 --pdfdir=DIR pdf documentation [DOCDIR] 1444 --psdir=DIR ps documentation [DOCDIR] 1445_ACEOF 1446 1447 cat <<\_ACEOF 1448 1449Program names: 1450 --program-prefix=PREFIX prepend PREFIX to installed program names 1451 --program-suffix=SUFFIX append SUFFIX to installed program names 1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1453 1454System types: 1455 --build=BUILD configure for building on BUILD [guessed] 1456 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1457 --target=TARGET configure for building compilers for TARGET [HOST] 1458_ACEOF 1459fi 1460 1461if test -n "$ac_init_help"; then 1462 1463 cat <<\_ACEOF 1464 1465Optional Features: 1466 --disable-option-checking ignore unrecognized --enable/--with options 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --enable-as-accelerator-for=ARG 1470 build as offload target compiler. Specify offload 1471 host triple by ARG 1472 --enable-offload-targets=LIST 1473 enable offloading to devices from comma-separated 1474 LIST of TARGET[=DIR]. Use optional path to find 1475 offload target compiler during the build 1476 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1477 --enable-ld[=ARG] build ld [ARG={default,yes,no}] 1478 --disable-libquadmath do not build libquadmath directory 1479 --disable-libquadmath-support 1480 disable libquadmath support for Fortran 1481 --enable-libada build libada directory 1482 --enable-libssp build libssp directory 1483 --disable-libstdcxx do not build libstdc++-v3 directory 1484 --enable-liboffloadmic=ARG 1485 build liboffloadmic [ARG={no,host,target}] 1486 --enable-static-libjava[=ARG] 1487 build static libjava [default=no] 1488 --enable-bootstrap enable bootstrapping [yes if native build] 1489 --disable-isl-version-check 1490 disable check for ISL version 1491 --enable-lto enable link time optimization support 1492 --enable-linker-plugin-configure-flags=FLAGS 1493 additional flags for configuring linker plugins 1494 [none] 1495 --enable-linker-plugin-flags=FLAGS 1496 additional flags for configuring and building linker 1497 plugins [none] 1498 --enable-stage1-languages[=all] 1499 choose additional languages to build during stage1. 1500 Mostly useful for compiler development 1501 --enable-objc-gc enable use of Boehm's garbage collector with the GNU 1502 Objective-C runtime 1503 --enable-vtable-verify Enable vtable verification feature 1504 --enable-serial-[{host,target,build}-]configure 1505 force sequential configuration of sub-packages for 1506 the host, target or build machine, or all 1507 sub-packages 1508 --enable-maintainer-mode 1509 enable make rules and dependencies not useful (and 1510 sometimes confusing) to the casual installer 1511 --enable-stage1-checking[=all] 1512 choose additional checking for stage1 of the 1513 compiler 1514 --enable-werror enable -Werror in bootstrap stage2 and later 1515 --enable-host-shared build host code as shared libraries 1516 1517Optional Packages: 1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1520 --with-build-libsubdir=DIR Directory where to find libraries for build system 1521 --with-mpc=PATH specify prefix directory for installed MPC package. 1522 Equivalent to --with-mpc-include=PATH/include plus 1523 --with-mpc-lib=PATH/lib 1524 --with-mpc-include=PATH specify directory for installed MPC include files 1525 --with-mpc-lib=PATH specify directory for the installed MPC library 1526 --with-mpfr-dir=PATH this option has been REMOVED 1527 --with-mpfr=PATH specify prefix directory for installed MPFR package. 1528 Equivalent to --with-mpfr-include=PATH/include plus 1529 --with-mpfr-lib=PATH/lib 1530 --with-mpfr-include=PATH 1531 specify directory for installed MPFR include files 1532 --with-mpfr-lib=PATH specify directory for the installed MPFR library 1533 --with-gmp-dir=PATH this option has been REMOVED 1534 --with-gmp=PATH specify prefix directory for the installed GMP 1535 package. Equivalent to 1536 --with-gmp-include=PATH/include plus 1537 --with-gmp-lib=PATH/lib 1538 --with-gmp-include=PATH specify directory for installed GMP include files 1539 --with-gmp-lib=PATH specify directory for the installed GMP library 1540 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when 1541 linking with PPL 1542 --with-stage1-libs=LIBS libraries for stage1 1543 --with-stage1-ldflags=FLAGS 1544 linker flags for stage1 1545 --with-boot-libs=LIBS libraries for stage2 and later 1546 --with-boot-ldflags=FLAGS 1547 linker flags for stage2 and later 1548 --with-isl=PATH Specify prefix directory for the installed ISL 1549 package. Equivalent to 1550 --with-isl-include=PATH/include plus 1551 --with-isl-lib=PATH/lib 1552 --with-isl-include=PATH Specify directory for installed ISL include files 1553 --with-isl-lib=PATH Specify the directory for the installed ISL library 1554 --with-build-sysroot=SYSROOT 1555 use sysroot as the system root during the build 1556 --with-debug-prefix-map='A=B C=D ...' 1557 map A to B, C to D ... in debug information 1558 --with-build-config='NAME NAME2...' 1559 use config/NAME.mk build configuration 1560 --with-build-time-tools=PATH 1561 use given path to find target tools during the build 1562 1563Some influential environment variables: 1564 CC C compiler command 1565 CFLAGS C compiler flags 1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1567 nonstandard directory <lib dir> 1568 LIBS libraries to pass to the linker, e.g. -l<library> 1569 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1570 you have headers in a nonstandard directory <include dir> 1571 CXX C++ compiler command 1572 CXXFLAGS C++ compiler flags 1573 build_configargs 1574 additional configure arguments for build directories 1575 host_configargs 1576 additional configure arguments for host directories 1577 target_configargs 1578 additional configure arguments for target directories 1579 AR AR for the host 1580 AS AS for the host 1581 DLLTOOL DLLTOOL for the host 1582 LD LD for the host 1583 LIPO LIPO for the host 1584 NM NM for the host 1585 RANLIB RANLIB for the host 1586 STRIP STRIP for the host 1587 WINDRES WINDRES for the host 1588 WINDMC WINDMC for the host 1589 OBJCOPY OBJCOPY for the host 1590 OBJDUMP OBJDUMP for the host 1591 READELF READELF for the host 1592 CC_FOR_TARGET 1593 CC for the target 1594 CXX_FOR_TARGET 1595 CXX for the target 1596 GCC_FOR_TARGET 1597 GCC for the target 1598 GCJ_FOR_TARGET 1599 GCJ for the target 1600 GFORTRAN_FOR_TARGET 1601 GFORTRAN for the target 1602 GOC_FOR_TARGET 1603 GOC for the target 1604 AR_FOR_TARGET 1605 AR for the target 1606 AS_FOR_TARGET 1607 AS for the target 1608 DLLTOOL_FOR_TARGET 1609 DLLTOOL for the target 1610 LD_FOR_TARGET 1611 LD for the target 1612 LIPO_FOR_TARGET 1613 LIPO for the target 1614 NM_FOR_TARGET 1615 NM for the target 1616 OBJCOPY_FOR_TARGET 1617 OBJCOPY for the target 1618 OBJDUMP_FOR_TARGET 1619 OBJDUMP for the target 1620 RANLIB_FOR_TARGET 1621 RANLIB for the target 1622 READELF_FOR_TARGET 1623 READELF for the target 1624 STRIP_FOR_TARGET 1625 STRIP for the target 1626 WINDRES_FOR_TARGET 1627 WINDRES for the target 1628 WINDMC_FOR_TARGET 1629 WINDMC for the target 1630 1631Use these variables to override the choices made by `configure' or to help 1632it to find libraries and programs with nonstandard names/locations. 1633 1634Report bugs to the package provider. 1635_ACEOF 1636ac_status=$? 1637fi 1638 1639if test "$ac_init_help" = "recursive"; then 1640 # If there are subdirs, report their specific --help. 1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1642 test -d "$ac_dir" || 1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1644 continue 1645 ac_builddir=. 1646 1647case "$ac_dir" in 1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1649*) 1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1651 # A ".." for each directory in $ac_dir_suffix. 1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1653 case $ac_top_builddir_sub in 1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1656 esac ;; 1657esac 1658ac_abs_top_builddir=$ac_pwd 1659ac_abs_builddir=$ac_pwd$ac_dir_suffix 1660# for backward compatibility: 1661ac_top_builddir=$ac_top_build_prefix 1662 1663case $srcdir in 1664 .) # We are building in place. 1665 ac_srcdir=. 1666 ac_top_srcdir=$ac_top_builddir_sub 1667 ac_abs_top_srcdir=$ac_pwd ;; 1668 [\\/]* | ?:[\\/]* ) # Absolute name. 1669 ac_srcdir=$srcdir$ac_dir_suffix; 1670 ac_top_srcdir=$srcdir 1671 ac_abs_top_srcdir=$srcdir ;; 1672 *) # Relative name. 1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1674 ac_top_srcdir=$ac_top_build_prefix$srcdir 1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1676esac 1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1678 1679 cd "$ac_dir" || { ac_status=$?; continue; } 1680 # Check for guested configure. 1681 if test -f "$ac_srcdir/configure.gnu"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1684 elif test -f "$ac_srcdir/configure"; then 1685 echo && 1686 $SHELL "$ac_srcdir/configure" --help=recursive 1687 else 1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1689 fi || ac_status=$? 1690 cd "$ac_pwd" || { ac_status=$?; break; } 1691 done 1692fi 1693 1694test -n "$ac_init_help" && exit $ac_status 1695if $ac_init_version; then 1696 cat <<\_ACEOF 1697configure 1698generated by GNU Autoconf 2.64 1699 1700Copyright (C) 2009 Free Software Foundation, Inc. 1701This configure script is free software; the Free Software Foundation 1702gives unlimited permission to copy, distribute and modify it. 1703_ACEOF 1704 exit 1705fi 1706 1707## ------------------------ ## 1708## Autoconf initialization. ## 1709## ------------------------ ## 1710 1711# ac_fn_c_try_compile LINENO 1712# -------------------------- 1713# Try to compile conftest.$ac_ext, and return whether this succeeded. 1714ac_fn_c_try_compile () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext 1718 if { { ac_try="$ac_compile" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_compile") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { 1734 test -z "$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 } && test -s conftest.$ac_objext; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1745 return $ac_retval 1746 1747} # ac_fn_c_try_compile 1748 1749# ac_fn_cxx_try_compile LINENO 1750# ---------------------------- 1751# Try to compile conftest.$ac_ext, and return whether this succeeded. 1752ac_fn_cxx_try_compile () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 rm -f conftest.$ac_objext 1756 if { { ac_try="$ac_compile" 1757case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760esac 1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762$as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_compile") 2>conftest.err 1764 ac_status=$? 1765 if test -s conftest.err; then 1766 grep -v '^ *+' conftest.err >conftest.er1 1767 cat conftest.er1 >&5 1768 mv -f conftest.er1 conftest.err 1769 fi 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { 1772 test -z "$ac_cxx_werror_flag" || 1773 test ! -s conftest.err 1774 } && test -s conftest.$ac_objext; then : 1775 ac_retval=0 1776else 1777 $as_echo "$as_me: failed program was:" >&5 1778sed 's/^/| /' conftest.$ac_ext >&5 1779 1780 ac_retval=1 1781fi 1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1783 return $ac_retval 1784 1785} # ac_fn_cxx_try_compile 1786 1787# ac_fn_cxx_try_link LINENO 1788# ------------------------- 1789# Try to link conftest.$ac_ext, and return whether this succeeded. 1790ac_fn_cxx_try_link () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 rm -f conftest.$ac_objext conftest$ac_exeext 1794 if { { ac_try="$ac_link" 1795case "(($ac_try" in 1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1797 *) ac_try_echo=$ac_try;; 1798esac 1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1800$as_echo "$ac_try_echo"; } >&5 1801 (eval "$ac_link") 2>conftest.err 1802 ac_status=$? 1803 if test -s conftest.err; then 1804 grep -v '^ *+' conftest.err >conftest.er1 1805 cat conftest.er1 >&5 1806 mv -f conftest.er1 conftest.err 1807 fi 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; } && { 1810 test -z "$ac_cxx_werror_flag" || 1811 test ! -s conftest.err 1812 } && test -s conftest$ac_exeext && { 1813 test "$cross_compiling" = yes || 1814 $as_test_x conftest$ac_exeext 1815 }; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: failed program was:" >&5 1819sed 's/^/| /' conftest.$ac_ext >&5 1820 1821 ac_retval=1 1822fi 1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1825 # interfere with the next link command; also delete a directory that is 1826 # left behind by Apple's compiler. We do this before executing the actions. 1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1829 return $ac_retval 1830 1831} # ac_fn_cxx_try_link 1832 1833# ac_fn_c_try_link LINENO 1834# ----------------------- 1835# Try to link conftest.$ac_ext, and return whether this succeeded. 1836ac_fn_c_try_link () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 rm -f conftest.$ac_objext conftest$ac_exeext 1840 if { { ac_try="$ac_link" 1841case "(($ac_try" in 1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1843 *) ac_try_echo=$ac_try;; 1844esac 1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1846$as_echo "$ac_try_echo"; } >&5 1847 (eval "$ac_link") 2>conftest.err 1848 ac_status=$? 1849 if test -s conftest.err; then 1850 grep -v '^ *+' conftest.err >conftest.er1 1851 cat conftest.er1 >&5 1852 mv -f conftest.er1 conftest.err 1853 fi 1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1855 test $ac_status = 0; } && { 1856 test -z "$ac_c_werror_flag" || 1857 test ! -s conftest.err 1858 } && test -s conftest$ac_exeext && { 1859 test "$cross_compiling" = yes || 1860 $as_test_x conftest$ac_exeext 1861 }; then : 1862 ac_retval=0 1863else 1864 $as_echo "$as_me: failed program was:" >&5 1865sed 's/^/| /' conftest.$ac_ext >&5 1866 1867 ac_retval=1 1868fi 1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1871 # interfere with the next link command; also delete a directory that is 1872 # left behind by Apple's compiler. We do this before executing the actions. 1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1875 return $ac_retval 1876 1877} # ac_fn_c_try_link 1878cat >config.log <<_ACEOF 1879This file contains any messages produced by compilers while 1880running configure, to aid debugging if configure makes a mistake. 1881 1882It was created by $as_me, which was 1883generated by GNU Autoconf 2.64. Invocation command line was 1884 1885 $ $0 $@ 1886 1887_ACEOF 1888exec 5>>config.log 1889{ 1890cat <<_ASUNAME 1891## --------- ## 1892## Platform. ## 1893## --------- ## 1894 1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1896uname -m = `(uname -m) 2>/dev/null || echo unknown` 1897uname -r = `(uname -r) 2>/dev/null || echo unknown` 1898uname -s = `(uname -s) 2>/dev/null || echo unknown` 1899uname -v = `(uname -v) 2>/dev/null || echo unknown` 1900 1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1903 1904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1907/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1911 1912_ASUNAME 1913 1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915for as_dir in $PATH 1916do 1917 IFS=$as_save_IFS 1918 test -z "$as_dir" && as_dir=. 1919 $as_echo "PATH: $as_dir" 1920 done 1921IFS=$as_save_IFS 1922 1923} >&5 1924 1925cat >&5 <<_ACEOF 1926 1927 1928## ----------- ## 1929## Core tests. ## 1930## ----------- ## 1931 1932_ACEOF 1933 1934 1935# Keep a trace of the command line. 1936# Strip out --no-create and --no-recursion so they do not pile up. 1937# Strip out --silent because we don't want to record it for future runs. 1938# Also quote any args containing shell meta-characters. 1939# Make two passes to allow for proper duplicate-argument suppression. 1940ac_configure_args= 1941ac_configure_args0= 1942ac_configure_args1= 1943ac_must_keep_next=false 1944for ac_pass in 1 2 1945do 1946 for ac_arg 1947 do 1948 case $ac_arg in 1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1951 | -silent | --silent | --silen | --sile | --sil) 1952 continue ;; 1953 *\'*) 1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1955 esac 1956 case $ac_pass in 1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1958 2) 1959 as_fn_append ac_configure_args1 " '$ac_arg'" 1960 if test $ac_must_keep_next = true; then 1961 ac_must_keep_next=false # Got value, back to normal. 1962 else 1963 case $ac_arg in 1964 *=* | --config-cache | -C | -disable-* | --disable-* \ 1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1967 | -with-* | --with-* | -without-* | --without-* | --x) 1968 case "$ac_configure_args0 " in 1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1970 esac 1971 ;; 1972 -* ) ac_must_keep_next=true ;; 1973 esac 1974 fi 1975 as_fn_append ac_configure_args " '$ac_arg'" 1976 ;; 1977 esac 1978 done 1979done 1980{ ac_configure_args0=; unset ac_configure_args0;} 1981{ ac_configure_args1=; unset ac_configure_args1;} 1982 1983# When interrupted or exit'd, cleanup temporary files, and complete 1984# config.log. We remove comments because anyway the quotes in there 1985# would cause problems or look ugly. 1986# WARNING: Use '\'' to represent an apostrophe within the trap. 1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1988trap 'exit_status=$? 1989 # Save into config.log some information that might help in debugging. 1990 { 1991 echo 1992 1993 cat <<\_ASBOX 1994## ---------------- ## 1995## Cache variables. ## 1996## ---------------- ## 1997_ASBOX 1998 echo 1999 # The following way of writing the cache mishandles newlines in values, 2000( 2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in #( 2004 *${as_nl}*) 2005 case $ac_var in #( 2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2008 esac 2009 case $ac_var in #( 2010 _ | IFS | as_nl) ;; #( 2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2012 *) { eval $ac_var=; unset $ac_var;} ;; 2013 esac ;; 2014 esac 2015 done 2016 (set) 2>&1 | 2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2018 *${as_nl}ac_space=\ *) 2019 sed -n \ 2020 "s/'\''/'\''\\\\'\'''\''/g; 2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2022 ;; #( 2023 *) 2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2025 ;; 2026 esac | 2027 sort 2028) 2029 echo 2030 2031 cat <<\_ASBOX 2032## ----------------- ## 2033## Output variables. ## 2034## ----------------- ## 2035_ASBOX 2036 echo 2037 for ac_var in $ac_subst_vars 2038 do 2039 eval ac_val=\$$ac_var 2040 case $ac_val in 2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2042 esac 2043 $as_echo "$ac_var='\''$ac_val'\''" 2044 done | sort 2045 echo 2046 2047 if test -n "$ac_subst_files"; then 2048 cat <<\_ASBOX 2049## ------------------- ## 2050## File substitutions. ## 2051## ------------------- ## 2052_ASBOX 2053 echo 2054 for ac_var in $ac_subst_files 2055 do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in 2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2059 esac 2060 $as_echo "$ac_var='\''$ac_val'\''" 2061 done | sort 2062 echo 2063 fi 2064 2065 if test -s confdefs.h; then 2066 cat <<\_ASBOX 2067## ----------- ## 2068## confdefs.h. ## 2069## ----------- ## 2070_ASBOX 2071 echo 2072 cat confdefs.h 2073 echo 2074 fi 2075 test "$ac_signal" != 0 && 2076 $as_echo "$as_me: caught signal $ac_signal" 2077 $as_echo "$as_me: exit $exit_status" 2078 } >&5 2079 rm -f core *.core core.conftest.* && 2080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2081 exit $exit_status 2082' 0 2083for ac_signal in 1 2 13 15; do 2084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2085done 2086ac_signal=0 2087 2088# confdefs.h avoids OS command line length limits that DEFS can exceed. 2089rm -f -r conftest* confdefs.h 2090 2091$as_echo "/* confdefs.h */" > confdefs.h 2092 2093# Predefined preprocessor variables. 2094 2095cat >>confdefs.h <<_ACEOF 2096#define PACKAGE_NAME "$PACKAGE_NAME" 2097_ACEOF 2098 2099cat >>confdefs.h <<_ACEOF 2100#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2101_ACEOF 2102 2103cat >>confdefs.h <<_ACEOF 2104#define PACKAGE_VERSION "$PACKAGE_VERSION" 2105_ACEOF 2106 2107cat >>confdefs.h <<_ACEOF 2108#define PACKAGE_STRING "$PACKAGE_STRING" 2109_ACEOF 2110 2111cat >>confdefs.h <<_ACEOF 2112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2113_ACEOF 2114 2115cat >>confdefs.h <<_ACEOF 2116#define PACKAGE_URL "$PACKAGE_URL" 2117_ACEOF 2118 2119 2120# Let the site file select an alternate cache file if it wants to. 2121# Prefer an explicitly selected file to automatically selected ones. 2122ac_site_file1=NONE 2123ac_site_file2=NONE 2124if test -n "$CONFIG_SITE"; then 2125 ac_site_file1=$CONFIG_SITE 2126elif test "x$prefix" != xNONE; then 2127 ac_site_file1=$prefix/share/config.site 2128 ac_site_file2=$prefix/etc/config.site 2129else 2130 ac_site_file1=$ac_default_prefix/share/config.site 2131 ac_site_file2=$ac_default_prefix/etc/config.site 2132fi 2133for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2134do 2135 test "x$ac_site_file" = xNONE && continue 2136 if test -r "$ac_site_file"; then 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2138$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2139 sed 's/^/| /' "$ac_site_file" >&5 2140 . "$ac_site_file" 2141 fi 2142done 2143 2144if test -r "$cache_file"; then 2145 # Some versions of bash will fail to source /dev/null (special 2146 # files actually), so we avoid doing that. 2147 if test -f "$cache_file"; then 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2149$as_echo "$as_me: loading cache $cache_file" >&6;} 2150 case $cache_file in 2151 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2152 *) . "./$cache_file";; 2153 esac 2154 fi 2155else 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2157$as_echo "$as_me: creating cache $cache_file" >&6;} 2158 >$cache_file 2159fi 2160 2161# Check that the precious variables saved in the cache have kept the same 2162# value. 2163ac_cache_corrupted=false 2164for ac_var in $ac_precious_vars; do 2165 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2166 eval ac_new_set=\$ac_env_${ac_var}_set 2167 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2168 eval ac_new_val=\$ac_env_${ac_var}_value 2169 case $ac_old_set,$ac_new_set in 2170 set,) 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2172$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2173 ac_cache_corrupted=: ;; 2174 ,set) 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2177 ac_cache_corrupted=: ;; 2178 ,);; 2179 *) 2180 if test "x$ac_old_val" != "x$ac_new_val"; then 2181 # differences in whitespace do not lead to failure. 2182 ac_old_val_w=`echo x $ac_old_val` 2183 ac_new_val_w=`echo x $ac_new_val` 2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2187 ac_cache_corrupted=: 2188 else 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2191 eval $ac_var=\$ac_old_val 2192 fi 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2194$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2196$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2197 fi;; 2198 esac 2199 # Pass precious variables to config.status. 2200 if test "$ac_new_set" = set; then 2201 case $ac_new_val in 2202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2203 *) ac_arg=$ac_var=$ac_new_val ;; 2204 esac 2205 case " $ac_configure_args " in 2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2207 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2208 esac 2209 fi 2210done 2211if $ac_cache_corrupted; then 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2216 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2217fi 2218## -------------------- ## 2219## Main body of script. ## 2220## -------------------- ## 2221 2222ac_ext=c 2223ac_cpp='$CPP $CPPFLAGS' 2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2226ac_compiler_gnu=$ac_cv_c_compiler_gnu 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236progname=$0 2237# if PWD already has a value, it is probably wrong. 2238if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi 2239 2240# Export original configure arguments for use by sub-configures. 2241# Quote arguments with shell meta charatcers. 2242TOPLEVEL_CONFIGURE_ARGUMENTS= 2243set -- "$progname" "$@" 2244for ac_arg 2245do 2246 case "$ac_arg" in 2247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) 2248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 2249 # if the argument is of the form -foo=baz, quote the baz part only 2250 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; 2251 *) ;; 2252 esac 2253 # Add the quoted argument to the list. 2254 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" 2255done 2256if test "$silent" = yes; then 2257 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" 2258fi 2259# Remove the initial space we just introduced and, as these will be 2260# expanded by make, quote '$'. 2261TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 2262 2263 2264# Find the build, host, and target systems. 2265ac_aux_dir= 2266for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2267 for ac_t in install-sh install.sh shtool; do 2268 if test -f "$ac_dir/$ac_t"; then 2269 ac_aux_dir=$ac_dir 2270 ac_install_sh="$ac_aux_dir/$ac_t -c" 2271 break 2 2272 fi 2273 done 2274done 2275if test -z "$ac_aux_dir"; then 2276 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2277fi 2278 2279# These three variables are undocumented and unsupported, 2280# and are intended to be withdrawn in a future Autoconf release. 2281# They can cause serious problems if a builder's source tree is in a directory 2282# whose full name contains unusual characters. 2283ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2284ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2285ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2286 2287 2288# Make sure we can run config.sub. 2289$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2290 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2291 2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2293$as_echo_n "checking build system type... " >&6; } 2294if test "${ac_cv_build+set}" = set; then : 2295 $as_echo_n "(cached) " >&6 2296else 2297 ac_build_alias=$build_alias 2298test "x$ac_build_alias" = x && 2299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2300test "x$ac_build_alias" = x && 2301 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2302ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2303 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2304 2305fi 2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2307$as_echo "$ac_cv_build" >&6; } 2308case $ac_cv_build in 2309*-*-*) ;; 2310*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2311esac 2312build=$ac_cv_build 2313ac_save_IFS=$IFS; IFS='-' 2314set x $ac_cv_build 2315shift 2316build_cpu=$1 2317build_vendor=$2 2318shift; shift 2319# Remember, the first character of IFS is used to create $*, 2320# except with old shells: 2321build_os=$* 2322IFS=$ac_save_IFS 2323case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2324 2325 2326 case ${build_alias} in 2327 "") build_noncanonical=${build} ;; 2328 *) build_noncanonical=${build_alias} ;; 2329esac 2330 2331 2332 2333 case ${host_alias} in 2334 "") host_noncanonical=${build_noncanonical} ;; 2335 *) host_noncanonical=${host_alias} ;; 2336esac 2337 2338 2339 2340 case ${target_alias} in 2341 "") target_noncanonical=${host_noncanonical} ;; 2342 *) target_noncanonical=${target_alias} ;; 2343esac 2344 2345 2346 2347 2348test "$host_noncanonical" = "$target_noncanonical" && 2349 test "$program_prefix$program_suffix$program_transform_name" = \ 2350 NONENONEs,x,x, && 2351 program_transform_name=s,y,y, 2352 2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2354$as_echo_n "checking host system type... " >&6; } 2355if test "${ac_cv_host+set}" = set; then : 2356 $as_echo_n "(cached) " >&6 2357else 2358 if test "x$host_alias" = x; then 2359 ac_cv_host=$ac_cv_build 2360else 2361 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2362 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2363fi 2364 2365fi 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2367$as_echo "$ac_cv_host" >&6; } 2368case $ac_cv_host in 2369*-*-*) ;; 2370*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2371esac 2372host=$ac_cv_host 2373ac_save_IFS=$IFS; IFS='-' 2374set x $ac_cv_host 2375shift 2376host_cpu=$1 2377host_vendor=$2 2378shift; shift 2379# Remember, the first character of IFS is used to create $*, 2380# except with old shells: 2381host_os=$* 2382IFS=$ac_save_IFS 2383case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2384 2385 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2387$as_echo_n "checking target system type... " >&6; } 2388if test "${ac_cv_target+set}" = set; then : 2389 $as_echo_n "(cached) " >&6 2390else 2391 if test "x$target_alias" = x; then 2392 ac_cv_target=$ac_cv_host 2393else 2394 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2395 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2396fi 2397 2398fi 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2400$as_echo "$ac_cv_target" >&6; } 2401case $ac_cv_target in 2402*-*-*) ;; 2403*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2404esac 2405target=$ac_cv_target 2406ac_save_IFS=$IFS; IFS='-' 2407set x $ac_cv_target 2408shift 2409target_cpu=$1 2410target_vendor=$2 2411shift; shift 2412# Remember, the first character of IFS is used to create $*, 2413# except with old shells: 2414target_os=$* 2415IFS=$ac_save_IFS 2416case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2417 2418 2419# The aliases save the names the user supplied, while $host etc. 2420# will get canonicalized. 2421test -n "$target_alias" && 2422 test "$program_prefix$program_suffix$program_transform_name" = \ 2423 NONENONEs,x,x, && 2424 program_prefix=${target_alias}- 2425 2426test "$program_prefix" != NONE && 2427 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2428# Use a double $ so make ignores it. 2429test "$program_suffix" != NONE && 2430 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2431# Double any \ or $. 2432# By default was `s,x,x', remove it if useless. 2433ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2434program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2435 2436 2437 2438# Get 'install' or 'install-sh' and its variants. 2439# Find a good install program. We prefer a C program (faster), 2440# so one script is as good as another. But avoid the broken or 2441# incompatible versions: 2442# SysV /etc/install, /usr/sbin/install 2443# SunOS /usr/etc/install 2444# IRIX /sbin/install 2445# AIX /bin/install 2446# AmigaOS /C/install, which installs bootblocks on floppy discs 2447# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2448# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2449# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2450# OS/2's system install, which has a completely different semantic 2451# ./install, which can be erroneously created by make from ./install.sh. 2452# Reject install programs that cannot install multiple files. 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2454$as_echo_n "checking for a BSD-compatible install... " >&6; } 2455if test -z "$INSTALL"; then 2456if test "${ac_cv_path_install+set}" = set; then : 2457 $as_echo_n "(cached) " >&6 2458else 2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2460for as_dir in $PATH 2461do 2462 IFS=$as_save_IFS 2463 test -z "$as_dir" && as_dir=. 2464 # Account for people who put trailing slashes in PATH elements. 2465case $as_dir/ in #(( 2466 ./ | .// | /[cC]/* | \ 2467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2468 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2469 /usr/ucb/* ) ;; 2470 *) 2471 # OSF1 and SCO ODT 3.0 have their own names for install. 2472 # Don't use installbsd from OSF since it installs stuff as root 2473 # by default. 2474 for ac_prog in ginstall scoinst install; do 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2477 if test $ac_prog = install && 2478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2479 # AIX install. It has an incompatible calling convention. 2480 : 2481 elif test $ac_prog = install && 2482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2483 # program-specific install script used by HP pwplus--don't use. 2484 : 2485 else 2486 rm -rf conftest.one conftest.two conftest.dir 2487 echo one > conftest.one 2488 echo two > conftest.two 2489 mkdir conftest.dir 2490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2491 test -s conftest.one && test -s conftest.two && 2492 test -s conftest.dir/conftest.one && 2493 test -s conftest.dir/conftest.two 2494 then 2495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2496 break 3 2497 fi 2498 fi 2499 fi 2500 done 2501 done 2502 ;; 2503esac 2504 2505 done 2506IFS=$as_save_IFS 2507 2508rm -rf conftest.one conftest.two conftest.dir 2509 2510fi 2511 if test "${ac_cv_path_install+set}" = set; then 2512 INSTALL=$ac_cv_path_install 2513 else 2514 # As a last resort, use the slow shell script. Don't cache a 2515 # value for INSTALL within a source directory, because that will 2516 # break other packages using the cache if that directory is 2517 # removed, or if the value is a relative name. 2518 INSTALL=$ac_install_sh 2519 fi 2520fi 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2522$as_echo "$INSTALL" >&6; } 2523 2524# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2525# It thinks the first close brace ends the variable substitution. 2526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2527 2528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2529 2530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2531 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 2533$as_echo_n "checking whether ln works... " >&6; } 2534if test "${acx_cv_prog_LN+set}" = set; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 rm -f conftestdata_t 2538echo >conftestdata_f 2539if ln conftestdata_f conftestdata_t 2>/dev/null 2540then 2541 acx_cv_prog_LN=ln 2542else 2543 acx_cv_prog_LN=no 2544fi 2545rm -f conftestdata_f conftestdata_t 2546 2547fi 2548if test $acx_cv_prog_LN = no; then 2549 LN="cp" 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 2551$as_echo "no, using $LN" >&6; } 2552else 2553 LN="$acx_cv_prog_LN" 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2555$as_echo "yes" >&6; } 2556fi 2557 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 2559$as_echo_n "checking whether ln -s works... " >&6; } 2560LN_S=$as_ln_s 2561if test "$LN_S" = "ln -s"; then 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2563$as_echo "yes" >&6; } 2564else 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 2566$as_echo "no, using $LN_S" >&6; } 2567fi 2568 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 2570$as_echo_n "checking for a sed that does not truncate output... " >&6; } 2571if test "${ac_cv_path_SED+set}" = set; then : 2572 $as_echo_n "(cached) " >&6 2573else 2574 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 2575 for ac_i in 1 2 3 4 5 6 7; do 2576 ac_script="$ac_script$as_nl$ac_script" 2577 done 2578 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 2579 { ac_script=; unset ac_script;} 2580 if test -z "$SED"; then 2581 ac_path_SED_found=false 2582 # Loop through the user's path and test for each of PROGNAME-LIST 2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2584for as_dir in $PATH 2585do 2586 IFS=$as_save_IFS 2587 test -z "$as_dir" && as_dir=. 2588 for ac_prog in sed gsed; do 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 2591 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 2592# Check for GNU ac_path_SED and select it if it is found. 2593 # Check for GNU $ac_path_SED 2594case `"$ac_path_SED" --version 2>&1` in 2595*GNU*) 2596 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 2597*) 2598 ac_count=0 2599 $as_echo_n 0123456789 >"conftest.in" 2600 while : 2601 do 2602 cat "conftest.in" "conftest.in" >"conftest.tmp" 2603 mv "conftest.tmp" "conftest.in" 2604 cp "conftest.in" "conftest.nl" 2605 $as_echo '' >> "conftest.nl" 2606 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 2607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2608 as_fn_arith $ac_count + 1 && ac_count=$as_val 2609 if test $ac_count -gt ${ac_path_SED_max-0}; then 2610 # Best one so far, save it but keep looking for a better one 2611 ac_cv_path_SED="$ac_path_SED" 2612 ac_path_SED_max=$ac_count 2613 fi 2614 # 10*(2^10) chars as input seems more than enough 2615 test $ac_count -gt 10 && break 2616 done 2617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2618esac 2619 2620 $ac_path_SED_found && break 3 2621 done 2622 done 2623 done 2624IFS=$as_save_IFS 2625 if test -z "$ac_cv_path_SED"; then 2626 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 2627 fi 2628else 2629 ac_cv_path_SED=$SED 2630fi 2631 2632fi 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 2634$as_echo "$ac_cv_path_SED" >&6; } 2635 SED="$ac_cv_path_SED" 2636 rm -f conftest.sed 2637 2638for ac_prog in gawk mawk nawk awk 2639do 2640 # Extract the first word of "$ac_prog", so it can be a program name with args. 2641set dummy $ac_prog; ac_word=$2 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2643$as_echo_n "checking for $ac_word... " >&6; } 2644if test "${ac_cv_prog_AWK+set}" = set; then : 2645 $as_echo_n "(cached) " >&6 2646else 2647 if test -n "$AWK"; then 2648 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2649else 2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651for as_dir in $PATH 2652do 2653 IFS=$as_save_IFS 2654 test -z "$as_dir" && as_dir=. 2655 for ac_exec_ext in '' $ac_executable_extensions; do 2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2657 ac_cv_prog_AWK="$ac_prog" 2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2659 break 2 2660 fi 2661done 2662 done 2663IFS=$as_save_IFS 2664 2665fi 2666fi 2667AWK=$ac_cv_prog_AWK 2668if test -n "$AWK"; then 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2670$as_echo "$AWK" >&6; } 2671else 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2673$as_echo "no" >&6; } 2674fi 2675 2676 2677 test -n "$AWK" && break 2678done 2679 2680 2681srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 2682 2683# We pass INSTALL explicitly to sub-makes. Make sure that it is not 2684# a relative path. 2685if test "$INSTALL" = "${srcdir}/install-sh -c"; then 2686 INSTALL="${srcpwd}/install-sh -c" 2687fi 2688 2689# Set srcdir to "." if that's what it is. 2690# This is important for multilib support. 2691pwd=`${PWDCMD-pwd}` 2692if test "${pwd}" = "${srcpwd}" ; then 2693 srcdir=. 2694fi 2695 2696topsrcdir=$srcpwd 2697 2698extra_host_args= 2699 2700### To add a new directory to the tree, first choose whether it is a target 2701### or a host dependent tool. Then put it into the appropriate list 2702### (library or tools, host or target), doing a dependency sort. 2703 2704# Subdirs will be configured in the order listed in build_configdirs, 2705# configdirs, or target_configdirs; see the serialization section below. 2706 2707# Dependency sorting is only needed when *configuration* must be done in 2708# a particular order. In all cases a dependency should be specified in 2709# the Makefile, whether or not it's implicitly specified here. 2710 2711# Double entries in build_configdirs, configdirs, or target_configdirs may 2712# cause circular dependencies and break everything horribly. 2713 2714# these library is used by various programs built for the build 2715# environment 2716# 2717build_libs="build-libiberty build-libcpp" 2718 2719# these tools are built for the build environment 2720build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" 2721 2722# these libraries are used by various programs built for the host environment 2723#f 2724host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" 2725 2726# these tools are built for the host environment 2727# Note, the powerpc-eabi build depends on sim occurring before gdb in order to 2728# know that we are building the simulator. 2729# binutils, gas and ld appear in that order because it makes sense to run 2730# "make check" in that particular order. 2731# If --enable-gold is used, "gold" may replace "ld". 2732host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" 2733 2734# libgcj represents the runtime libraries only used by gcj. 2735libgcj="target-libffi \ 2736 target-zlib \ 2737 target-libjava" 2738 2739# these libraries are built for the target environment, and are built after 2740# the host libraries and the host tools (which may be a cross compiler) 2741# Note that libiberty is not a target library. 2742target_libraries="target-libgcc \ 2743 target-libbacktrace \ 2744 target-libgloss \ 2745 target-newlib \ 2746 target-libgomp \ 2747 target-libcilkrts \ 2748 target-liboffloadmic \ 2749 target-libatomic \ 2750 target-libitm \ 2751 target-libstdc++-v3 \ 2752 target-libsanitizer \ 2753 target-libvtv \ 2754 target-libmpx \ 2755 target-libssp \ 2756 target-libquadmath \ 2757 target-libgfortran \ 2758 target-boehm-gc \ 2759 ${libgcj} \ 2760 target-libobjc \ 2761 target-libada \ 2762 target-libgo" 2763 2764# these tools are built using the target libraries, and are intended to 2765# run only in the target environment 2766# 2767# note: any program that *uses* libraries that are in the "target_libraries" 2768# list belongs in this list. 2769# 2770target_tools="target-rda" 2771 2772################################################################################ 2773 2774## All tools belong in one of the four categories, and are assigned above 2775## We assign ${configdirs} this way to remove all embedded newlines. This 2776## is important because configure will choke if they ever get through. 2777## ${configdirs} is directories we build using the host tools. 2778## ${target_configdirs} is directories we build using the target tools. 2779configdirs=`echo ${host_libs} ${host_tools}` 2780target_configdirs=`echo ${target_libraries} ${target_tools}` 2781build_configdirs=`echo ${build_libs} ${build_tools}` 2782 2783 2784 2785################################################################################ 2786 2787srcname="gnu development package" 2788 2789# This gets set non-empty for some net releases of packages. 2790appdirs="" 2791 2792# Define is_cross_compiler to save on calls to 'test'. 2793is_cross_compiler= 2794if test x"${host}" = x"${target}" ; then 2795 is_cross_compiler=no 2796else 2797 is_cross_compiler=yes 2798fi 2799 2800# Find the build and target subdir names. 2801 2802# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2803# have matching libraries, they should use host libraries: Makefile.tpl 2804# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2805# However, they still use the build modules, because the corresponding 2806# host modules (e.g. bison) are only built for the host when bootstrap 2807# finishes. So: 2808# - build_subdir is where we find build modules, and never changes. 2809# - build_libsubdir is where we find build libraries, and can be overridden. 2810 2811# Prefix 'build-' so this never conflicts with target_subdir. 2812build_subdir="build-${build_noncanonical}" 2813 2814# Check whether --with-build-libsubdir was given. 2815if test "${with_build_libsubdir+set}" = set; then : 2816 withval=$with_build_libsubdir; build_libsubdir="$withval" 2817else 2818 build_libsubdir="$build_subdir" 2819fi 2820 2821# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2822if ( test $srcdir = . && test -d gcc ) \ 2823 || test -d $srcdir/../host-${host_noncanonical}; then 2824 host_subdir="host-${host_noncanonical}" 2825else 2826 host_subdir=. 2827fi 2828# No prefix. 2829target_subdir=${target_noncanonical} 2830 2831# Be sure to cover against remnants of an in-tree build. 2832if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then 2833 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. 2834Use a pristine source tree when building in a separate tree" "$LINENO" 5 2835fi 2836 2837# Skipdirs are removed silently. 2838skipdirs= 2839# Noconfigdirs are removed loudly. 2840noconfigdirs="" 2841 2842use_gnu_ld= 2843# Make sure we don't let GNU ld be added if we didn't want it. 2844if test x$with_gnu_ld = xno ; then 2845 use_gnu_ld=no 2846 noconfigdirs="$noconfigdirs ld gold" 2847fi 2848 2849use_gnu_as= 2850# Make sure we don't let GNU as be added if we didn't want it. 2851if test x$with_gnu_as = xno ; then 2852 use_gnu_as=no 2853 noconfigdirs="$noconfigdirs gas" 2854fi 2855 2856use_included_zlib= 2857# Make sure we don't let ZLIB be added if we didn't want it. 2858if test x$with_system_zlib = xyes ; then 2859 use_included_zlib=no 2860 noconfigdirs="$noconfigdirs zlib" 2861fi 2862 2863# some tools are so dependent upon X11 that if we're not building with X, 2864# it's not even worth trying to configure, much less build, that tool. 2865 2866case ${with_x} in 2867 yes | "") ;; # the default value for this tree is that X11 is available 2868 no) 2869 skipdirs="${skipdirs} tk itcl libgui" 2870 # We won't be able to build gdbtk without X. 2871 enable_gdbtk=no 2872 ;; 2873 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 2874esac 2875 2876# Some are only suitable for cross toolchains. 2877# Remove these if host=target. 2878cross_only="target-libgloss target-newlib target-opcodes" 2879 2880case $is_cross_compiler in 2881 no) skipdirs="${skipdirs} ${cross_only}" ;; 2882esac 2883 2884# If both --with-headers and --with-libs are specified, default to 2885# --without-newlib. 2886if test x"${with_headers}" != x && test x"${with_headers}" != xno \ 2887 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 2888 if test x"${with_newlib}" = x ; then 2889 with_newlib=no 2890 fi 2891fi 2892 2893# Recognize --with-newlib/--without-newlib. 2894case ${with_newlib} in 2895 no) skipdirs="${skipdirs} target-newlib" ;; 2896 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 2897esac 2898 2899# Check whether --enable-as-accelerator-for was given. 2900if test "${enable_as_accelerator_for+set}" = set; then : 2901 enableval=$enable_as_accelerator_for; 2902fi 2903 2904 2905# Check whether --enable-offload-targets was given. 2906if test "${enable_offload_targets+set}" = set; then : 2907 enableval=$enable_offload_targets; 2908 if test x"$enable_offload_targets" = x; then 2909 as_fn_error "no offload targets specified" "$LINENO" 5 2910 fi 2911 2912else 2913 enable_offload_targets= 2914fi 2915 2916 2917# Handle --enable-gold, --enable-ld. 2918# --disable-gold [--enable-ld] 2919# Build only ld. Default option. 2920# --enable-gold [--enable-ld] 2921# Build both gold and ld. Install gold as "ld.gold", install ld 2922# as "ld.bfd" and "ld". 2923# --enable-gold=default [--enable-ld] 2924# Build both gold and ld. Install gold as "ld.gold" and "ld", 2925# install ld as "ld.bfd". 2926# --enable-gold[=default] --disable-ld 2927# Build only gold, which is then installed as both "ld.gold" and "ld". 2928# --enable-gold --enable-ld=default 2929# Build both gold (installed as "ld.gold") and ld (installed as "ld" 2930# and ld.bfd). 2931# In other words, ld is default 2932# --enable-gold=default --enable-ld=default 2933# Error. 2934 2935default_ld= 2936# Check whether --enable-gold was given. 2937if test "${enable_gold+set}" = set; then : 2938 enableval=$enable_gold; ENABLE_GOLD=$enableval 2939else 2940 ENABLE_GOLD=no 2941fi 2942 2943case "${ENABLE_GOLD}" in 2944 yes|default) 2945 # Check for ELF target. 2946 is_elf=no 2947 case "${target}" in 2948 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ 2949 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ 2950 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ 2951 | *-*-solaris2* | *-*-nto* | *-*-nacl*) 2952 case "${target}" in 2953 *-*-linux*aout* | *-*-linux*oldld*) 2954 ;; 2955 *) 2956 is_elf=yes 2957 ;; 2958 esac 2959 esac 2960 2961 if test "$is_elf" = "yes"; then 2962 # Check for target supported by gold. 2963 case "${target}" in 2964 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ 2965 | aarch64*-*-* | tilegx*-*-*) 2966 configdirs="$configdirs gold" 2967 if test x${ENABLE_GOLD} = xdefault; then 2968 default_ld=gold 2969 fi 2970 ENABLE_GOLD=yes 2971 ;; 2972 esac 2973 fi 2974 ;; 2975 no) 2976 ;; 2977 *) 2978 as_fn_error "invalid --enable-gold argument" "$LINENO" 5 2979 ;; 2980esac 2981 2982# Check whether --enable-ld was given. 2983if test "${enable_ld+set}" = set; then : 2984 enableval=$enable_ld; ENABLE_LD=$enableval 2985else 2986 ENABLE_LD=yes 2987fi 2988 2989 2990case "${ENABLE_LD}" in 2991 default) 2992 if test x${default_ld} != x; then 2993 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 2994 fi 2995 ;; 2996 yes) 2997 ;; 2998 no) 2999 if test x${ENABLE_GOLD} != xyes; then 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 3001$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} 3002 fi 3003 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` 3004 ;; 3005 *) 3006 as_fn_error "invalid --enable-ld argument" "$LINENO" 5 3007 ;; 3008esac 3009 3010# Configure extra directories which are host specific 3011 3012case "${host}" in 3013 *-cygwin*) 3014 configdirs="$configdirs libtermcap" ;; 3015esac 3016 3017# A target can indicate whether a language isn't supported for some reason. 3018# Only spaces may be used in this macro; not newlines or tabs. 3019unsupported_languages= 3020 3021# Remove more programs from consideration, based on the host or 3022# target this usually means that a port of the program doesn't 3023# exist yet. 3024 3025case "${host}" in 3026 i[3456789]86-*-msdosdjgpp*) 3027 noconfigdirs="$noconfigdirs tcl tk itcl" 3028 ;; 3029 *-*-haiku*) 3030 noconfigdirs="$noconfigdirs tk itcl libgui gdb" 3031 ;; 3032esac 3033 3034 3035# Check whether --enable-libquadmath was given. 3036if test "${enable_libquadmath+set}" = set; then : 3037 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval 3038else 3039 ENABLE_LIBQUADMATH=yes 3040fi 3041 3042if test "${ENABLE_LIBQUADMATH}" = "no" ; then 3043 noconfigdirs="$noconfigdirs target-libquadmath" 3044fi 3045 3046 3047# Check whether --enable-libquadmath-support was given. 3048if test "${enable_libquadmath_support+set}" = set; then : 3049 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 3050else 3051 ENABLE_LIBQUADMATH_SUPPORT=yes 3052fi 3053 3054enable_libquadmath_support= 3055if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then 3056 enable_libquadmath_support=no 3057fi 3058 3059 3060# Check whether --enable-libada was given. 3061if test "${enable_libada+set}" = set; then : 3062 enableval=$enable_libada; ENABLE_LIBADA=$enableval 3063else 3064 ENABLE_LIBADA=yes 3065fi 3066 3067if test "${ENABLE_LIBADA}" != "yes" ; then 3068 noconfigdirs="$noconfigdirs gnattools" 3069fi 3070 3071# Check whether --enable-libssp was given. 3072if test "${enable_libssp+set}" = set; then : 3073 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval 3074else 3075 ENABLE_LIBSSP=yes 3076fi 3077 3078 3079# Check whether --enable-libstdcxx was given. 3080if test "${enable_libstdcxx+set}" = set; then : 3081 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval 3082else 3083 ENABLE_LIBSTDCXX=default 3084fi 3085 3086if test "${ENABLE_LIBSTDCXX}" = "no" ; then 3087 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3088fi 3089 3090# If this is accelerator compiler and its target is intelmic we enable 3091# target liboffloadmic by default. If this is compiler with offloading 3092# for intelmic we enable host liboffloadmic by default. Otherwise 3093# liboffloadmic is disabled by default. 3094# Check whether --enable-liboffloadmic was given. 3095if test "${enable_liboffloadmic+set}" = set; then : 3096 enableval=$enable_liboffloadmic; case "$enableval" in 3097 no | host | target) 3098 enable_liboffloadmic=$enableval ;; 3099 *) 3100 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; 3101esac 3102else 3103 if test x"$enable_as_accelerator_for" != x; then 3104 case "${target}" in 3105 *-intelmic-* | *-intelmicemul-*) 3106 enable_liboffloadmic=target 3107 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" 3108 ;; 3109 *) 3110 enable_liboffloadmic=no 3111 ;; 3112 esac 3113else 3114 case "${enable_offload_targets}" in 3115 *-intelmic-* | *-intelmicemul-*) 3116 enable_liboffloadmic=host 3117 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" 3118 ;; 3119 *) 3120 enable_liboffloadmic=no 3121 ;; 3122 esac 3123fi 3124fi 3125 3126 3127 3128# Save it here so that, even in case of --enable-libgcj, if the Java 3129# front-end isn't enabled, we still get libgcj disabled. 3130libgcj_saved=$libgcj 3131case $enable_libgcj in 3132yes) 3133 # If we reset it here, it won't get added to noconfigdirs in the 3134 # target-specific build rules, so it will be forcibly enabled 3135 # (unless the Java language itself isn't enabled). 3136 libgcj= 3137 ;; 3138no) 3139 # Make sure we get it printed in the list of not supported target libs. 3140 # Don't disable libffi, though, other languages use it. 3141 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" 3142 # Clear libgcj_saved so that even if java is enabled libffi won't be 3143 # built. 3144 libgcj_saved= 3145 ;; 3146esac 3147 3148# Check whether --enable-static-libjava was given. 3149if test "${enable_static_libjava+set}" = set; then : 3150 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval 3151else 3152 ENABLE_STATIC_LIBJAVA=no 3153fi 3154 3155enable_static_libjava= 3156if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then 3157 enable_static_libjava=yes 3158fi 3159 3160if test x$enable_static_libjava != xyes ; then 3161 EXTRA_CONFIGARGS_LIBJAVA=--disable-static 3162fi 3163 3164 3165# Disable libgomp on non POSIX hosted systems. 3166if test x$enable_libgomp = x ; then 3167 # Enable libgomp by default on hosted POSIX systems. 3168 case "${target}" in 3169 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 3170 ;; 3171 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) 3172 ;; 3173 *-*-solaris2* | *-*-hpux11*) 3174 ;; 3175 *-*-darwin* | *-*-aix*) 3176 ;; 3177 *) 3178 noconfigdirs="$noconfigdirs target-libgomp" 3179 ;; 3180 esac 3181fi 3182 3183# Disable libatomic on unsupported systems. 3184if test -d ${srcdir}/libatomic; then 3185 if test x$enable_libatomic = x; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 3187$as_echo_n "checking for libatomic support... " >&6; } 3188 if (srcdir=${srcdir}/libatomic; \ 3189 . ${srcdir}/configure.tgt; \ 3190 test -n "$UNSUPPORTED") 3191 then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193$as_echo "no" >&6; } 3194 noconfigdirs="$noconfigdirs target-libatomic" 3195 else 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3197$as_echo "yes" >&6; } 3198 fi 3199 fi 3200fi 3201 3202# Disable libcilkrts on unsupported systems. 3203if test -d ${srcdir}/libcilkrts; then 3204 if test x$enable_libcilkrts = x; then 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 3206$as_echo_n "checking for libcilkrts support... " >&6; } 3207 if (srcdir=${srcdir}/libcilkrts; \ 3208 . ${srcdir}/configure.tgt; \ 3209 test -n "$UNSUPPORTED") 3210 then 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3212$as_echo "no" >&6; } 3213 noconfigdirs="$noconfigdirs target-libcilkrts" 3214 else 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3216$as_echo "yes" >&6; } 3217 fi 3218 fi 3219fi 3220 3221# Disable liboffloadmic on unsupported systems. 3222if test -d ${srcdir}/liboffloadmic; then 3223 if test x$enable_liboffloadmic != xno; then 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 3225$as_echo_n "checking for liboffloadmic support... " >&6; } 3226 if (srcdir=${srcdir}/liboffloadmic; \ 3227 . ${srcdir}/configure.tgt; \ 3228 test -n "$UNSUPPORTED") 3229 then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3231$as_echo "no" >&6; } 3232 noconfigdirs="$noconfigdirs target-liboffloadmic" 3233 else 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3235$as_echo "yes" >&6; } 3236 fi 3237 fi 3238fi 3239 3240# Disable libitm on unsupported systems. 3241if test -d ${srcdir}/libitm; then 3242 if test x$enable_libitm = x; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 3244$as_echo_n "checking for libitm support... " >&6; } 3245 if (srcdir=${srcdir}/libitm; \ 3246 . ${srcdir}/configure.tgt; \ 3247 test -n "$UNSUPPORTED") 3248 then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3250$as_echo "no" >&6; } 3251 noconfigdirs="$noconfigdirs target-libitm" 3252 else 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3254$as_echo "yes" >&6; } 3255 fi 3256 fi 3257fi 3258 3259# Disable libsanitizer on unsupported systems. 3260if test -d ${srcdir}/libsanitizer; then 3261 if test x$enable_libsanitizer = x; then 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 3263$as_echo_n "checking for libsanitizer support... " >&6; } 3264 if (srcdir=${srcdir}/libsanitizer; \ 3265 . ${srcdir}/configure.tgt; \ 3266 test -n "$UNSUPPORTED") 3267 then 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3269$as_echo "no" >&6; } 3270 noconfigdirs="$noconfigdirs target-libsanitizer" 3271 else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3273$as_echo "yes" >&6; } 3274 fi 3275 fi 3276fi 3277 3278# Disable libvtv on unsupported systems. 3279if test -d ${srcdir}/libvtv; then 3280 if test x$enable_libvtv = x; then 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 3282$as_echo_n "checking for libvtv support... " >&6; } 3283 if (srcdir=${srcdir}/libvtv; \ 3284 . ${srcdir}/configure.tgt; \ 3285 test "$VTV_SUPPORTED" != "yes") 3286 then 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288$as_echo "no" >&6; } 3289 noconfigdirs="$noconfigdirs target-libvtv" 3290 else 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3292$as_echo "yes" >&6; } 3293 fi 3294 fi 3295fi 3296 3297 3298# Enable libmpx on supported systems by request. 3299if test -d ${srcdir}/libmpx; then 3300 if test x$enable_libmpx = xyes; then 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 3302$as_echo_n "checking for libmpx support... " >&6; } 3303 if (srcdir=${srcdir}/libmpx; \ 3304 . ${srcdir}/configure.tgt; \ 3305 test "$LIBMPX_SUPPORTED" != "yes") 3306 then 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308$as_echo "no" >&6; } 3309 noconfigdirs="$noconfigdirs target-libmpx" 3310 else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3312$as_echo "yes" >&6; } 3313 fi 3314 else 3315 noconfigdirs="$noconfigdirs target-libmpx" 3316 fi 3317fi 3318 3319 3320 3321# Disable libquadmath for some systems. 3322case "${target}" in 3323 avr-*-*) 3324 noconfigdirs="$noconfigdirs target-libquadmath" 3325 ;; 3326 # libquadmath is unused on AIX and libquadmath build process use of 3327 # LD_LIBRARY_PATH can break AIX bootstrap. 3328 powerpc-*-aix* | rs6000-*-aix*) 3329 noconfigdirs="$noconfigdirs target-libquadmath" 3330 ;; 3331esac 3332 3333# Disable libssp for some systems. 3334case "${target}" in 3335 avr-*-*) 3336 # No hosted I/O support. 3337 noconfigdirs="$noconfigdirs target-libssp" 3338 ;; 3339 powerpc-*-aix* | rs6000-*-aix*) 3340 noconfigdirs="$noconfigdirs target-libssp" 3341 ;; 3342 rl78-*-*) 3343 # libssp uses a misaligned load to trigger a fault, but the RL78 3344 # doesn't fault for those - instead, it gives a build-time error 3345 # for explicit misaligned loads. 3346 noconfigdirs="$noconfigdirs target-libssp" 3347 ;; 3348 visium-*-*) 3349 # No hosted I/O support. 3350 noconfigdirs="$noconfigdirs target-libssp" 3351 ;; 3352esac 3353 3354# Disable libstdc++-v3 for some systems. 3355# Allow user to override this if they pass --enable-libstdc++-v3 3356if test "${ENABLE_LIBSTDCXX}" = "default" ; then 3357 case "${target}" in 3358 *-*-vxworks*) 3359 # VxWorks uses the Dinkumware C++ library. 3360 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3361 ;; 3362 arm*-wince-pe*) 3363 # the C++ libraries don't build on top of CE's C libraries 3364 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3365 ;; 3366 avr-*-*) 3367 noconfigdirs="$noconfigdirs target-libstdc++-v3" 3368 ;; 3369 esac 3370fi 3371 3372# Disable Fortran for some systems. 3373case "${target}" in 3374 mmix-*-*) 3375 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. 3376 unsupported_languages="$unsupported_languages fortran" 3377 ;; 3378esac 3379 3380# Disable Java if libffi is not supported. 3381case "${target}" in 3382 aarch64-*-*) 3383 ;; 3384 alpha*-*-*) 3385 ;; 3386 arm*-*-*) 3387 ;; 3388 cris-*-*) 3389 ;; 3390 frv-*-*) 3391 ;; 3392 hppa*-*-linux*) 3393 ;; 3394 hppa*-*-hpux*) 3395 ;; 3396 i?86-*-*) 3397 ;; 3398 ia64*-*-*) 3399 ;; 3400 m32r*-*-*) 3401 ;; 3402 m68k-*-*) 3403 ;; 3404 mips*-*-rtems*) 3405 ;; 3406 mips*-*-linux*) 3407 ;; 3408 powerpc*-*-linux*) 3409 ;; 3410 powerpc-*-darwin*) 3411 ;; 3412 powerpc-*-aix* | rs6000-*-aix*) 3413 ;; 3414 powerpc-*-freebsd*) 3415 ;; 3416 powerpc64-*-freebsd*) 3417 ;; 3418 powerpc*-*-rtems*) 3419 ;; 3420 s390-*-* | s390x-*-*) 3421 ;; 3422 sh-*-* | sh[34]*-*-*) 3423 ;; 3424 sh64-*-* | sh5*-*-*) 3425 ;; 3426 sparc*-*-*) 3427 ;; 3428 x86_64-*-*) 3429 ;; 3430 *-*-*) 3431 unsupported_languages="$unsupported_languages java" 3432 ;; 3433esac 3434 3435# Disable Java, libgcj or related libraries for some systems. 3436case "${target}" in 3437 powerpc-*-darwin*) 3438 ;; 3439 i[3456789]86-*-darwin*) 3440 ;; 3441 x86_64-*-darwin[912]*) 3442 ;; 3443 *-*-darwin*) 3444 noconfigdirs="$noconfigdirs ${libgcj}" 3445 ;; 3446 *-*-haiku*) 3447 noconfigdirs="$noconfigdirs ${libgcj}" 3448 ;; 3449 *-*-netware*) 3450 noconfigdirs="$noconfigdirs ${libgcj}" 3451 ;; 3452 *-*-rtems*) 3453 noconfigdirs="$noconfigdirs ${libgcj}" 3454 ;; 3455 *-*-tpf*) 3456 noconfigdirs="$noconfigdirs ${libgcj}" 3457 ;; 3458 *-*-uclinux*) 3459 noconfigdirs="$noconfigdirs ${libgcj}" 3460 ;; 3461 *-*-vxworks*) 3462 noconfigdirs="$noconfigdirs ${libgcj}" 3463 ;; 3464 alpha*-*-*vms*) 3465 noconfigdirs="$noconfigdirs ${libgcj}" 3466 ;; 3467 arm*-*-freebsd*) 3468 noconfigdirs="$noconfigdirs ${libgcj}" 3469 ;; 3470 arm-wince-pe) 3471 noconfigdirs="$noconfigdirs ${libgcj}" 3472 ;; 3473 arm*-*-symbianelf*) 3474 noconfigdirs="$noconfigdirs ${libgcj}" 3475 ;; 3476 bfin-*-*) 3477 noconfigdirs="$noconfigdirs target-boehm-gc" 3478 ;; 3479 cris-*-* | crisv32-*-*) 3480 unsupported_languages="$unsupported_languages java" 3481 case "${target}" in 3482 *-*-linux*) 3483 ;; 3484 *) # See PR46792 regarding target-libffi. 3485 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; 3486 esac 3487 ;; 3488 hppa*64*-*-linux*) 3489 # In this case, it's because the hppa64-linux target is for 3490 # the kernel only at this point and has no libc, and thus no 3491 # headers, crt*.o, etc., all of which are needed by these. 3492 unsupported_languages="$unsupported_languages java" 3493 ;; 3494 hppa*64*-*-hpux*) 3495 noconfigdirs="$noconfigdirs ${libgcj}" 3496 ;; 3497 hppa*-hp-hpux11*) 3498 ;; 3499 hppa*-*-hpux*) 3500 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't 3501 # build on HP-UX 10.20. 3502 noconfigdirs="$noconfigdirs ${libgcj}" 3503 ;; 3504 ia64*-*-*vms*) 3505 noconfigdirs="$noconfigdirs ${libgcj}" 3506 ;; 3507 i[3456789]86-w64-mingw*) 3508 noconfigdirs="$noconfigdirs ${libgcj}" 3509 ;; 3510 i[3456789]86-*-mingw*) 3511 noconfigdirs="$noconfigdirs ${libgcj}" 3512 ;; 3513 x86_64-*-mingw*) 3514 noconfigdirs="$noconfigdirs ${libgcj}" 3515 ;; 3516 mmix-*-*) 3517 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" 3518 ;; 3519 powerpc-*-aix*) 3520 # copied from rs6000-*-* entry 3521 noconfigdirs="$noconfigdirs ${libgcj}" 3522 ;; 3523 rs6000-*-aix*) 3524 noconfigdirs="$noconfigdirs ${libgcj}" 3525 ;; 3526 *-*-lynxos*) 3527 noconfigdirs="$noconfigdirs ${libgcj}" 3528 ;; 3529esac 3530 3531# Disable the go frontend on systems where it is known to not work. Please keep 3532# this in sync with contrib/config-list.mk. 3533case "${target}" in 3534*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) 3535 unsupported_languages="$unsupported_languages go" 3536 ;; 3537esac 3538 3539# Disable libgo for some systems where it is known to not work. 3540# For testing, you can easily override this with --enable-libgo. 3541if test x$enable_libgo = x; then 3542 case "${target}" in 3543 *-*-darwin*) 3544 # PR 46986 3545 noconfigdirs="$noconfigdirs target-libgo" 3546 ;; 3547 *-*-cygwin* | *-*-mingw*) 3548 noconfigdirs="$noconfigdirs target-libgo" 3549 ;; 3550 *-*-aix*) 3551 noconfigdirs="$noconfigdirs target-libgo" 3552 ;; 3553 esac 3554fi 3555 3556# Default libgloss CPU subdirectory. 3557libgloss_dir="$target_cpu" 3558 3559case "${target}" in 3560 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 3561 libgloss_dir=wince 3562 ;; 3563 aarch64*-*-* ) 3564 libgloss_dir=aarch64 3565 ;; 3566 arm*-*-*) 3567 libgloss_dir=arm 3568 ;; 3569 cris-*-* | crisv32-*-*) 3570 libgloss_dir=cris 3571 ;; 3572 hppa*-*-*) 3573 libgloss_dir=pa 3574 ;; 3575 i[3456789]86-*-*) 3576 libgloss_dir=i386 3577 ;; 3578 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) 3579 libgloss_dir=m68hc11 3580 ;; 3581 m68*-*-* | fido-*-*) 3582 libgloss_dir=m68k 3583 ;; 3584 mips*-*-*) 3585 libgloss_dir=mips 3586 ;; 3587 powerpc*-*-*) 3588 libgloss_dir=rs6000 3589 ;; 3590 sparc*-*-*) 3591 libgloss_dir=sparc 3592 ;; 3593esac 3594 3595# Disable newlib and libgloss for various target OSes. 3596case "${target}" in 3597 alpha*-dec-osf*) 3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3599 ;; 3600 i[3456789]86-*-linux*) 3601 # This section makes it possible to build newlib natively on linux. 3602 # If we are using a cross compiler then don't configure newlib. 3603 if test x${is_cross_compiler} != xno ; then 3604 noconfigdirs="$noconfigdirs target-newlib" 3605 fi 3606 noconfigdirs="$noconfigdirs target-libgloss" 3607 # If we are not using a cross compiler, do configure newlib. 3608 # Note however, that newlib will only be configured in this situation 3609 # if the --with-newlib option has been given, because otherwise 3610 # 'target-newlib' will appear in skipdirs. 3611 ;; 3612 i[3456789]86-*-rdos*) 3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3614 ;; 3615 sh*-*-pe|mips*-*-pe|arm-wince-pe) 3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3617 ;; 3618 sparc-*-sunos4*) 3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3620 ;; 3621 *-*-aix*) 3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3623 ;; 3624 *-*-beos*) 3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3626 ;; 3627 *-*-chorusos) 3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3629 ;; 3630 *-*-dragonfly*) 3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3632 ;; 3633 *-*-freebsd*) 3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3635 ;; 3636 *-*-haiku*) 3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3638 ;; 3639 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3641 ;; 3642 *-*-lynxos*) 3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3644 ;; 3645 *-*-mingw*) 3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3647 ;; 3648 *-*-netbsd*) 3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3650 ;; 3651 *-*-netware*) 3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3653 ;; 3654 *-*-tpf*) 3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3656 ;; 3657 *-*-uclinux*) 3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3659 ;; 3660 *-*-vxworks*) 3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3662 ;; 3663esac 3664 3665case "${target}" in 3666 *-*-chorusos) 3667 ;; 3668 powerpc-*-darwin*) 3669 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3670 noconfigdirs="$noconfigdirs sim target-rda" 3671 ;; 3672 i[3456789]86-*-darwin*) 3673 noconfigdirs="$noconfigdirs ld gprof" 3674 noconfigdirs="$noconfigdirs sim target-rda" 3675 ;; 3676 x86_64-*-darwin[912]*) 3677 noconfigdirs="$noconfigdirs ld gas gprof" 3678 noconfigdirs="$noconfigdirs sim target-rda" 3679 ;; 3680 *-*-darwin*) 3681 noconfigdirs="$noconfigdirs ld gas gdb gprof" 3682 noconfigdirs="$noconfigdirs sim target-rda" 3683 ;; 3684 *-*-dragonfly*) 3685 ;; 3686 *-*-freebsd*) 3687 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ 3688 && test -f /usr/local/include/gmp.h; then 3689 with_gmp=/usr/local 3690 fi 3691 ;; 3692 *-*-haiku*) 3693 noconfigdirs="$noconfigdirs gdb target-libiberty" 3694 ;; 3695 *-*-kaos*) 3696 # Remove unsupported stuff on all kaOS configurations. 3697 noconfigdirs="$noconfigdirs target-libgloss" 3698 ;; 3699 *-*-netbsd*) 3700 ;; 3701 *-*-netware*) 3702 ;; 3703 *-*-rtems*) 3704 noconfigdirs="$noconfigdirs target-libgloss" 3705 # this is not caught below because this stanza matches earlier 3706 case $target in 3707 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; 3708 esac 3709 ;; 3710 # The tpf target doesn't support gdb yet. 3711 *-*-tpf*) 3712 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" 3713 ;; 3714 *-*-uclinux*) 3715 noconfigdirs="$noconfigdirs target-rda" 3716 ;; 3717 *-*-vxworks*) 3718 ;; 3719 alpha*-dec-osf*) 3720 # ld works, but does not support shared libraries. 3721 # gas doesn't generate exception information. 3722 noconfigdirs="$noconfigdirs gas ld" 3723 ;; 3724 alpha*-*-*vms*) 3725 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 3726 ;; 3727 alpha*-*-*) 3728 # newlib is not 64 bit ready 3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3730 ;; 3731 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 3732 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" 3733 ;; 3734 arc-*-*|arceb-*-*) 3735 noconfigdirs="$noconfigdirs target-libgloss" 3736 ;; 3737 arm-*-pe*) 3738 noconfigdirs="$noconfigdirs target-libgloss" 3739 ;; 3740 arm-*-riscix*) 3741 noconfigdirs="$noconfigdirs ld target-libgloss" 3742 ;; 3743 avr-*-rtems*) 3744 ;; 3745 avr-*-*) 3746 if test x${with_avrlibc} != xno; then 3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3748 fi 3749 ;; 3750 c4x-*-* | tic4x-*-*) 3751 noconfigdirs="$noconfigdirs target-libgloss" 3752 ;; 3753 tic54x-*-*) 3754 noconfigdirs="$noconfigdirs target-libgloss gdb" 3755 ;; 3756 d10v-*-*) 3757 noconfigdirs="$noconfigdirs target-libgloss" 3758 ;; 3759 d30v-*-*) 3760 noconfigdirs="$noconfigdirs gdb" 3761 ;; 3762 fr30-*-elf*) 3763 noconfigdirs="$noconfigdirs gdb" 3764 ;; 3765 moxie-*-*) 3766 noconfigdirs="$noconfigdirs gprof" 3767 ;; 3768 h8300*-*-*) 3769 noconfigdirs="$noconfigdirs target-libgloss" 3770 ;; 3771 h8500-*-*) 3772 noconfigdirs="$noconfigdirs target-libgloss" 3773 ;; 3774 hppa1.1-*-osf* | hppa1.1-*-bsd* ) 3775 ;; 3776 hppa*64*-*-linux*) 3777 ;; 3778 hppa*-*-linux*) 3779 ;; 3780 hppa*-*-*elf* | \ 3781 hppa*-*-lites* | \ 3782 hppa*-*-openbsd* | \ 3783 hppa*64*-*-*) 3784 ;; 3785 hppa*-hp-hpux11*) 3786 noconfigdirs="$noconfigdirs ld" 3787 ;; 3788 hppa*-*-pro*) 3789 ;; 3790 hppa*-*-*) 3791 noconfigdirs="$noconfigdirs ld" 3792 ;; 3793 i960-*-*) 3794 noconfigdirs="$noconfigdirs gdb" 3795 ;; 3796 ia64*-*-elf*) 3797 # No gdb support yet. 3798 noconfigdirs="$noconfigdirs readline libgui itcl gdb" 3799 ;; 3800 ia64*-**-hpux*) 3801 # No ld support yet. 3802 noconfigdirs="$noconfigdirs libgui itcl ld" 3803 ;; 3804 ia64*-*-*vms*) 3805 # No ld support yet. 3806 noconfigdirs="$noconfigdirs libgui itcl ld" 3807 ;; 3808 i[3456789]86-w64-mingw*) 3809 ;; 3810 i[3456789]86-*-mingw*) 3811 target_configdirs="$target_configdirs target-winsup" 3812 ;; 3813 *-*-cygwin*) 3814 target_configdirs="$target_configdirs target-libtermcap target-winsup" 3815 noconfigdirs="$noconfigdirs target-libgloss" 3816 # always build newlib if winsup directory is present. 3817 if test -d "$srcdir/winsup/cygwin"; then 3818 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 3819 elif test -d "$srcdir/newlib"; then 3820 echo "Warning: winsup/cygwin is missing so newlib can't be built." 3821 fi 3822 ;; 3823 i[3456789]86-*-pe) 3824 noconfigdirs="$noconfigdirs target-libgloss" 3825 ;; 3826 i[3456789]86-*-sco3.2v5*) 3827 # The linker does not yet know about weak symbols in COFF, 3828 # and is not configured to handle mixed ELF and COFF. 3829 noconfigdirs="$noconfigdirs ld target-libgloss" 3830 ;; 3831 i[3456789]86-*-sco*) 3832 noconfigdirs="$noconfigdirs gprof target-libgloss" 3833 ;; 3834 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) 3835 noconfigdirs="$noconfigdirs target-libgloss" 3836 ;; 3837 i[3456789]86-*-sysv4*) 3838 noconfigdirs="$noconfigdirs target-libgloss" 3839 ;; 3840 i[3456789]86-*-beos*) 3841 noconfigdirs="$noconfigdirs gdb" 3842 ;; 3843 i[3456789]86-*-rdos*) 3844 noconfigdirs="$noconfigdirs gdb" 3845 ;; 3846 mmix-*-*) 3847 noconfigdirs="$noconfigdirs gdb" 3848 ;; 3849 mt-*-*) 3850 noconfigdirs="$noconfigdirs sim" 3851 ;; 3852 powerpc-*-aix*) 3853 # copied from rs6000-*-* entry 3854 noconfigdirs="$noconfigdirs gprof" 3855 ;; 3856 powerpc*-*-winnt* | powerpc*-*-pe*) 3857 target_configdirs="$target_configdirs target-winsup" 3858 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" 3859 # always build newlib. 3860 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 3861 ;; 3862 # This is temporary until we can link against shared libraries 3863 powerpcle-*-solaris*) 3864 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" 3865 ;; 3866 powerpc-*-beos*) 3867 noconfigdirs="$noconfigdirs gdb" 3868 ;; 3869 rs6000-*-lynxos*) 3870 noconfigdirs="$noconfigdirs gprof" 3871 ;; 3872 rs6000-*-aix*) 3873 noconfigdirs="$noconfigdirs gprof" 3874 ;; 3875 rs6000-*-*) 3876 noconfigdirs="$noconfigdirs gprof" 3877 ;; 3878 m68k-apollo-*) 3879 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" 3880 ;; 3881 microblaze*) 3882 noconfigdirs="$noconfigdirs gprof" 3883 ;; 3884 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 3885 if test x$with_newlib = xyes; then 3886 noconfigdirs="$noconfigdirs gprof" 3887 fi 3888 ;; 3889 mips*-*-irix5*) 3890 noconfigdirs="$noconfigdirs gprof target-libgloss" 3891 ;; 3892 mips*-*-irix6*) 3893 noconfigdirs="$noconfigdirs gprof target-libgloss" 3894 ;; 3895 mips*-*-bsd*) 3896 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" 3897 ;; 3898 mips*-*-linux*) 3899 ;; 3900 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ 3901 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) 3902 noconfigdirs="$noconfigdirs ld gas gprof" 3903 ;; 3904 mips*-*-*) 3905 noconfigdirs="$noconfigdirs gprof" 3906 ;; 3907 nds32*-*-*) 3908 noconfigdirs="$noconfigdirs gdb" 3909 ;; 3910 nvptx*-*-*) 3911 # nvptx is just a compiler 3912 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" 3913 ;; 3914 or1k*-*-*) 3915 noconfigdirs="$noconfigdirs gdb" 3916 ;; 3917 sh-*-* | sh64-*-*) 3918 case "${target}" in 3919 sh*-*-elf) 3920 ;; 3921 *) 3922 noconfigdirs="$noconfigdirs target-libgloss" ;; 3923 esac 3924 ;; 3925 sparc-*-sunos4*) 3926 if test x${is_cross_compiler} = xno ; then 3927 use_gnu_ld=no 3928 fi 3929 ;; 3930 tic6x-*-*) 3931 noconfigdirs="$noconfigdirs sim" 3932 ;; 3933 tilepro*-*-* | tilegx*-*-*) 3934 noconfigdirs="$noconfigdirs sim" 3935 ;; 3936 v810-*-*) 3937 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" 3938 ;; 3939 vax-*-*) 3940 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3941 ;; 3942esac 3943 3944# If we aren't building newlib, then don't build libgloss, since libgloss 3945# depends upon some newlib header files. 3946case "${noconfigdirs}" in 3947 *target-libgloss*) ;; 3948 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; 3949esac 3950 3951# Work in distributions that contain no compiler tools, like Autoconf. 3952host_makefile_frag=/dev/null 3953if test -d ${srcdir}/config ; then 3954case "${host}" in 3955 i[3456789]86-*-msdosdjgpp*) 3956 host_makefile_frag="config/mh-djgpp" 3957 ;; 3958 *-cygwin*) 3959 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 3961$as_echo_n "checking to see if cat works as expected... " >&6; } 3962echo a >cygwin-cat-check 3963if test `cat cygwin-cat-check` = a ; then 3964 rm cygwin-cat-check 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3966$as_echo "yes" >&6; } 3967else 3968 rm cygwin-cat-check 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3970$as_echo "no" >&6; } 3971 as_fn_error "The cat command does not ignore carriage return characters. 3972 Please either mount the build directory in binary mode or run the following 3973 commands before running any configure script: 3974set -o igncr 3975export SHELLOPTS 3976 " "$LINENO" 5 3977fi 3978 3979 host_makefile_frag="config/mh-cygwin" 3980 ;; 3981 *-mingw*) 3982 host_makefile_frag="config/mh-mingw" 3983 ;; 3984 alpha*-linux*) 3985 host_makefile_frag="config/mh-alpha-linux" 3986 ;; 3987 hppa*-hp-hpux10*) 3988 host_makefile_frag="config/mh-pa-hpux10" 3989 ;; 3990 hppa*-hp-hpux*) 3991 host_makefile_frag="config/mh-pa" 3992 ;; 3993 hppa*-*) 3994 host_makefile_frag="config/mh-pa" 3995 ;; 3996 *-*-darwin*) 3997 host_makefile_frag="config/mh-darwin" 3998 ;; 3999 powerpc-*-aix*) 4000 host_makefile_frag="config/mh-ppc-aix" 4001 ;; 4002 rs6000-*-aix*) 4003 host_makefile_frag="config/mh-ppc-aix" 4004 ;; 4005esac 4006fi 4007 4008if test "${build}" != "${host}" ; then 4009 AR_FOR_BUILD=${AR_FOR_BUILD-ar} 4010 AS_FOR_BUILD=${AS_FOR_BUILD-as} 4011 CC_FOR_BUILD=${CC_FOR_BUILD-gcc} 4012 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} 4013 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} 4014 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} 4015 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} 4016 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} 4017 LD_FOR_BUILD=${LD_FOR_BUILD-ld} 4018 NM_FOR_BUILD=${NM_FOR_BUILD-nm} 4019 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} 4020 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} 4021 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} 4022else 4023 AR_FOR_BUILD="\$(AR)" 4024 AS_FOR_BUILD="\$(AS)" 4025 CC_FOR_BUILD="\$(CC)" 4026 CXX_FOR_BUILD="\$(CXX)" 4027 GCJ_FOR_BUILD="\$(GCJ)" 4028 GFORTRAN_FOR_BUILD="\$(GFORTRAN)" 4029 GOC_FOR_BUILD="\$(GOC)" 4030 DLLTOOL_FOR_BUILD="\$(DLLTOOL)" 4031 LD_FOR_BUILD="\$(LD)" 4032 NM_FOR_BUILD="\$(NM)" 4033 RANLIB_FOR_BUILD="\$(RANLIB)" 4034 WINDRES_FOR_BUILD="\$(WINDRES)" 4035 WINDMC_FOR_BUILD="\$(WINDMC)" 4036fi 4037 4038ac_ext=c 4039ac_cpp='$CPP $CPPFLAGS' 4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4042ac_compiler_gnu=$ac_cv_c_compiler_gnu 4043if test -n "$ac_tool_prefix"; then 4044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4045set dummy ${ac_tool_prefix}gcc; ac_word=$2 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4047$as_echo_n "checking for $ac_word... " >&6; } 4048if test "${ac_cv_prog_CC+set}" = set; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 if test -n "$CC"; then 4052 ac_cv_prog_CC="$CC" # Let the user override the test. 4053else 4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 test -z "$as_dir" && as_dir=. 4059 for ac_exec_ext in '' $ac_executable_extensions; do 4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4061 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4063 break 2 4064 fi 4065done 4066 done 4067IFS=$as_save_IFS 4068 4069fi 4070fi 4071CC=$ac_cv_prog_CC 4072if test -n "$CC"; then 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4074$as_echo "$CC" >&6; } 4075else 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4077$as_echo "no" >&6; } 4078fi 4079 4080 4081fi 4082if test -z "$ac_cv_prog_CC"; then 4083 ac_ct_CC=$CC 4084 # Extract the first word of "gcc", so it can be a program name with args. 4085set dummy gcc; ac_word=$2 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4087$as_echo_n "checking for $ac_word... " >&6; } 4088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4089 $as_echo_n "(cached) " >&6 4090else 4091 if test -n "$ac_ct_CC"; then 4092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4093else 4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4095for as_dir in $PATH 4096do 4097 IFS=$as_save_IFS 4098 test -z "$as_dir" && as_dir=. 4099 for ac_exec_ext in '' $ac_executable_extensions; do 4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4101 ac_cv_prog_ac_ct_CC="gcc" 4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4103 break 2 4104 fi 4105done 4106 done 4107IFS=$as_save_IFS 4108 4109fi 4110fi 4111ac_ct_CC=$ac_cv_prog_ac_ct_CC 4112if test -n "$ac_ct_CC"; then 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4114$as_echo "$ac_ct_CC" >&6; } 4115else 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4117$as_echo "no" >&6; } 4118fi 4119 4120 if test "x$ac_ct_CC" = x; then 4121 CC="" 4122 else 4123 case $cross_compiling:$ac_tool_warned in 4124yes:) 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4127ac_tool_warned=yes ;; 4128esac 4129 CC=$ac_ct_CC 4130 fi 4131else 4132 CC="$ac_cv_prog_CC" 4133fi 4134 4135if test -z "$CC"; then 4136 if test -n "$ac_tool_prefix"; then 4137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4138set dummy ${ac_tool_prefix}cc; ac_word=$2 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4140$as_echo_n "checking for $ac_word... " >&6; } 4141if test "${ac_cv_prog_CC+set}" = set; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 if test -n "$CC"; then 4145 ac_cv_prog_CC="$CC" # Let the user override the test. 4146else 4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148for as_dir in $PATH 4149do 4150 IFS=$as_save_IFS 4151 test -z "$as_dir" && as_dir=. 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4154 ac_cv_prog_CC="${ac_tool_prefix}cc" 4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4156 break 2 4157 fi 4158done 4159 done 4160IFS=$as_save_IFS 4161 4162fi 4163fi 4164CC=$ac_cv_prog_CC 4165if test -n "$CC"; then 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4167$as_echo "$CC" >&6; } 4168else 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4170$as_echo "no" >&6; } 4171fi 4172 4173 4174 fi 4175fi 4176if test -z "$CC"; then 4177 # Extract the first word of "cc", so it can be a program name with args. 4178set dummy cc; ac_word=$2 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4180$as_echo_n "checking for $ac_word... " >&6; } 4181if test "${ac_cv_prog_CC+set}" = set; then : 4182 $as_echo_n "(cached) " >&6 4183else 4184 if test -n "$CC"; then 4185 ac_cv_prog_CC="$CC" # Let the user override the test. 4186else 4187 ac_prog_rejected=no 4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH 4190do 4191 IFS=$as_save_IFS 4192 test -z "$as_dir" && as_dir=. 4193 for ac_exec_ext in '' $ac_executable_extensions; do 4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4196 ac_prog_rejected=yes 4197 continue 4198 fi 4199 ac_cv_prog_CC="cc" 4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4201 break 2 4202 fi 4203done 4204 done 4205IFS=$as_save_IFS 4206 4207if test $ac_prog_rejected = yes; then 4208 # We found a bogon in the path, so make sure we never use it. 4209 set dummy $ac_cv_prog_CC 4210 shift 4211 if test $# != 0; then 4212 # We chose a different compiler from the bogus one. 4213 # However, it has the same basename, so the bogon will be chosen 4214 # first if we set CC to just the basename; use the full file name. 4215 shift 4216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4217 fi 4218fi 4219fi 4220fi 4221CC=$ac_cv_prog_CC 4222if test -n "$CC"; then 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4224$as_echo "$CC" >&6; } 4225else 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4227$as_echo "no" >&6; } 4228fi 4229 4230 4231fi 4232if test -z "$CC"; then 4233 if test -n "$ac_tool_prefix"; then 4234 for ac_prog in cl.exe 4235 do 4236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4237set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4239$as_echo_n "checking for $ac_word... " >&6; } 4240if test "${ac_cv_prog_CC+set}" = set; then : 4241 $as_echo_n "(cached) " >&6 4242else 4243 if test -n "$CC"; then 4244 ac_cv_prog_CC="$CC" # Let the user override the test. 4245else 4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_exec_ext in '' $ac_executable_extensions; do 4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4255 break 2 4256 fi 4257done 4258 done 4259IFS=$as_save_IFS 4260 4261fi 4262fi 4263CC=$ac_cv_prog_CC 4264if test -n "$CC"; then 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4266$as_echo "$CC" >&6; } 4267else 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4269$as_echo "no" >&6; } 4270fi 4271 4272 4273 test -n "$CC" && break 4274 done 4275fi 4276if test -z "$CC"; then 4277 ac_ct_CC=$CC 4278 for ac_prog in cl.exe 4279do 4280 # Extract the first word of "$ac_prog", so it can be a program name with args. 4281set dummy $ac_prog; ac_word=$2 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4283$as_echo_n "checking for $ac_word... " >&6; } 4284if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4285 $as_echo_n "(cached) " >&6 4286else 4287 if test -n "$ac_ct_CC"; then 4288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4289else 4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4291for as_dir in $PATH 4292do 4293 IFS=$as_save_IFS 4294 test -z "$as_dir" && as_dir=. 4295 for ac_exec_ext in '' $ac_executable_extensions; do 4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4297 ac_cv_prog_ac_ct_CC="$ac_prog" 4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4299 break 2 4300 fi 4301done 4302 done 4303IFS=$as_save_IFS 4304 4305fi 4306fi 4307ac_ct_CC=$ac_cv_prog_ac_ct_CC 4308if test -n "$ac_ct_CC"; then 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4310$as_echo "$ac_ct_CC" >&6; } 4311else 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4313$as_echo "no" >&6; } 4314fi 4315 4316 4317 test -n "$ac_ct_CC" && break 4318done 4319 4320 if test "x$ac_ct_CC" = x; then 4321 CC="" 4322 else 4323 case $cross_compiling:$ac_tool_warned in 4324yes:) 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4327ac_tool_warned=yes ;; 4328esac 4329 CC=$ac_ct_CC 4330 fi 4331fi 4332 4333fi 4334 4335 4336test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4338as_fn_error "no acceptable C compiler found in \$PATH 4339See \`config.log' for more details." "$LINENO" 5; } 4340 4341# Provide some information about the compiler. 4342$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4343set X $ac_compile 4344ac_compiler=$2 4345for ac_option in --version -v -V -qversion; do 4346 { { ac_try="$ac_compiler $ac_option >&5" 4347case "(($ac_try" in 4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4349 *) ac_try_echo=$ac_try;; 4350esac 4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4352$as_echo "$ac_try_echo"; } >&5 4353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4354 ac_status=$? 4355 if test -s conftest.err; then 4356 sed '10a\ 4357... rest of stderr output deleted ... 4358 10q' conftest.err >conftest.er1 4359 cat conftest.er1 >&5 4360 rm -f conftest.er1 conftest.err 4361 fi 4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4363 test $ac_status = 0; } 4364done 4365 4366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4367/* end confdefs.h. */ 4368 4369int 4370main () 4371{ 4372 4373 ; 4374 return 0; 4375} 4376_ACEOF 4377ac_clean_files_save=$ac_clean_files 4378ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 4379# Try to create an executable without -o first, disregard a.out. 4380# It will help us diagnose broken compilers, and finding out an intuition 4381# of exeext. 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4383$as_echo_n "checking for C compiler default output file name... " >&6; } 4384ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4385 4386# The possible output files: 4387ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4388 4389ac_rmfiles= 4390for ac_file in $ac_files 4391do 4392 case $ac_file in 4393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4394 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4395 esac 4396done 4397rm -f $ac_rmfiles 4398 4399if { { ac_try="$ac_link_default" 4400case "(($ac_try" in 4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4402 *) ac_try_echo=$ac_try;; 4403esac 4404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4405$as_echo "$ac_try_echo"; } >&5 4406 (eval "$ac_link_default") 2>&5 4407 ac_status=$? 4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4409 test $ac_status = 0; }; then : 4410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4411# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4412# in a Makefile. We should not override ac_cv_exeext if it was cached, 4413# so that the user can short-circuit this test for compilers unknown to 4414# Autoconf. 4415for ac_file in $ac_files '' 4416do 4417 test -f "$ac_file" || continue 4418 case $ac_file in 4419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4420 ;; 4421 [ab].out ) 4422 # We found the default executable, but exeext='' is most 4423 # certainly right. 4424 break;; 4425 *.* ) 4426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4427 then :; else 4428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4429 fi 4430 # We set ac_cv_exeext here because the later test for it is not 4431 # safe: cross compilers may not add the suffix if given an `-o' 4432 # argument, so we may need to know it at that point already. 4433 # Even if this section looks crufty: it has the advantage of 4434 # actually working. 4435 break;; 4436 * ) 4437 break;; 4438 esac 4439done 4440test "$ac_cv_exeext" = no && ac_cv_exeext= 4441 4442else 4443 ac_file='' 4444fi 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4446$as_echo "$ac_file" >&6; } 4447if test -z "$ac_file"; then : 4448 $as_echo "$as_me: failed program was:" >&5 4449sed 's/^/| /' conftest.$ac_ext >&5 4450 4451{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4453{ as_fn_set_status 77 4454as_fn_error "C compiler cannot create executables 4455See \`config.log' for more details." "$LINENO" 5; }; } 4456fi 4457ac_exeext=$ac_cv_exeext 4458 4459# Check that the compiler produces executables we can run. If not, either 4460# the compiler is broken, or we cross compile. 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4462$as_echo_n "checking whether the C compiler works... " >&6; } 4463# If not cross compiling, check that we can run a simple program. 4464if test "$cross_compiling" != yes; then 4465 if { ac_try='./$ac_file' 4466 { { case "(($ac_try" in 4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4468 *) ac_try_echo=$ac_try;; 4469esac 4470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4471$as_echo "$ac_try_echo"; } >&5 4472 (eval "$ac_try") 2>&5 4473 ac_status=$? 4474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4475 test $ac_status = 0; }; }; then 4476 cross_compiling=no 4477 else 4478 if test "$cross_compiling" = maybe; then 4479 cross_compiling=yes 4480 else 4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4483as_fn_error "cannot run C compiled programs. 4484If you meant to cross compile, use \`--host'. 4485See \`config.log' for more details." "$LINENO" 5; } 4486 fi 4487 fi 4488fi 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4490$as_echo "yes" >&6; } 4491 4492rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 4493ac_clean_files=$ac_clean_files_save 4494# Check that the compiler produces executables we can run. If not, either 4495# the compiler is broken, or we cross compile. 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4497$as_echo_n "checking whether we are cross compiling... " >&6; } 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4499$as_echo "$cross_compiling" >&6; } 4500 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4502$as_echo_n "checking for suffix of executables... " >&6; } 4503if { { ac_try="$ac_link" 4504case "(($ac_try" in 4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4506 *) ac_try_echo=$ac_try;; 4507esac 4508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4509$as_echo "$ac_try_echo"; } >&5 4510 (eval "$ac_link") 2>&5 4511 ac_status=$? 4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4513 test $ac_status = 0; }; then : 4514 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4515# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4516# work properly (i.e., refer to `conftest.exe'), while it won't with 4517# `rm'. 4518for ac_file in conftest.exe conftest conftest.*; do 4519 test -f "$ac_file" || continue 4520 case $ac_file in 4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4523 break;; 4524 * ) break;; 4525 esac 4526done 4527else 4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4530as_fn_error "cannot compute suffix of executables: cannot compile and link 4531See \`config.log' for more details." "$LINENO" 5; } 4532fi 4533rm -f conftest$ac_cv_exeext 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4535$as_echo "$ac_cv_exeext" >&6; } 4536 4537rm -f conftest.$ac_ext 4538EXEEXT=$ac_cv_exeext 4539ac_exeext=$EXEEXT 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4541$as_echo_n "checking for suffix of object files... " >&6; } 4542if test "${ac_cv_objext+set}" = set; then : 4543 $as_echo_n "(cached) " >&6 4544else 4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4546/* end confdefs.h. */ 4547 4548int 4549main () 4550{ 4551 4552 ; 4553 return 0; 4554} 4555_ACEOF 4556rm -f conftest.o conftest.obj 4557if { { ac_try="$ac_compile" 4558case "(($ac_try" in 4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4560 *) ac_try_echo=$ac_try;; 4561esac 4562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4563$as_echo "$ac_try_echo"; } >&5 4564 (eval "$ac_compile") 2>&5 4565 ac_status=$? 4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4567 test $ac_status = 0; }; then : 4568 for ac_file in conftest.o conftest.obj conftest.*; do 4569 test -f "$ac_file" || continue; 4570 case $ac_file in 4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4572 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4573 break;; 4574 esac 4575done 4576else 4577 $as_echo "$as_me: failed program was:" >&5 4578sed 's/^/| /' conftest.$ac_ext >&5 4579 4580{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4582as_fn_error "cannot compute suffix of object files: cannot compile 4583See \`config.log' for more details." "$LINENO" 5; } 4584fi 4585rm -f conftest.$ac_cv_objext conftest.$ac_ext 4586fi 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4588$as_echo "$ac_cv_objext" >&6; } 4589OBJEXT=$ac_cv_objext 4590ac_objext=$OBJEXT 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4592$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4593if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4597/* end confdefs.h. */ 4598 4599int 4600main () 4601{ 4602#ifndef __GNUC__ 4603 choke me 4604#endif 4605 4606 ; 4607 return 0; 4608} 4609_ACEOF 4610if ac_fn_c_try_compile "$LINENO"; then : 4611 ac_compiler_gnu=yes 4612else 4613 ac_compiler_gnu=no 4614fi 4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4616ac_cv_c_compiler_gnu=$ac_compiler_gnu 4617 4618fi 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4620$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4621if test $ac_compiler_gnu = yes; then 4622 GCC=yes 4623else 4624 GCC= 4625fi 4626ac_test_CFLAGS=${CFLAGS+set} 4627ac_save_CFLAGS=$CFLAGS 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4629$as_echo_n "checking whether $CC accepts -g... " >&6; } 4630if test "${ac_cv_prog_cc_g+set}" = set; then : 4631 $as_echo_n "(cached) " >&6 4632else 4633 ac_save_c_werror_flag=$ac_c_werror_flag 4634 ac_c_werror_flag=yes 4635 ac_cv_prog_cc_g=no 4636 CFLAGS="-g" 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639 4640int 4641main () 4642{ 4643 4644 ; 4645 return 0; 4646} 4647_ACEOF 4648if ac_fn_c_try_compile "$LINENO"; then : 4649 ac_cv_prog_cc_g=yes 4650else 4651 CFLAGS="" 4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4653/* end confdefs.h. */ 4654 4655int 4656main () 4657{ 4658 4659 ; 4660 return 0; 4661} 4662_ACEOF 4663if ac_fn_c_try_compile "$LINENO"; then : 4664 4665else 4666 ac_c_werror_flag=$ac_save_c_werror_flag 4667 CFLAGS="-g" 4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4669/* end confdefs.h. */ 4670 4671int 4672main () 4673{ 4674 4675 ; 4676 return 0; 4677} 4678_ACEOF 4679if ac_fn_c_try_compile "$LINENO"; then : 4680 ac_cv_prog_cc_g=yes 4681fi 4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4683fi 4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4685fi 4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4687 ac_c_werror_flag=$ac_save_c_werror_flag 4688fi 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4690$as_echo "$ac_cv_prog_cc_g" >&6; } 4691if test "$ac_test_CFLAGS" = set; then 4692 CFLAGS=$ac_save_CFLAGS 4693elif test $ac_cv_prog_cc_g = yes; then 4694 if test "$GCC" = yes; then 4695 CFLAGS="-g -O2" 4696 else 4697 CFLAGS="-g" 4698 fi 4699else 4700 if test "$GCC" = yes; then 4701 CFLAGS="-O2" 4702 else 4703 CFLAGS= 4704 fi 4705fi 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4707$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4708if test "${ac_cv_prog_cc_c89+set}" = set; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 ac_cv_prog_cc_c89=no 4712ac_save_CC=$CC 4713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714/* end confdefs.h. */ 4715#include <stdarg.h> 4716#include <stdio.h> 4717#include <sys/types.h> 4718#include <sys/stat.h> 4719/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4720struct buf { int x; }; 4721FILE * (*rcsopen) (struct buf *, struct stat *, int); 4722static char *e (p, i) 4723 char **p; 4724 int i; 4725{ 4726 return p[i]; 4727} 4728static char *f (char * (*g) (char **, int), char **p, ...) 4729{ 4730 char *s; 4731 va_list v; 4732 va_start (v,p); 4733 s = g (p, va_arg (v,int)); 4734 va_end (v); 4735 return s; 4736} 4737 4738/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4739 function prototypes and stuff, but not '\xHH' hex character constants. 4740 These don't provoke an error unfortunately, instead are silently treated 4741 as 'x'. The following induces an error, until -std is added to get 4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4743 array size at least. It's necessary to write '\x00'==0 to get something 4744 that's true only with -std. */ 4745int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4746 4747/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4748 inside strings and character constants. */ 4749#define FOO(x) 'x' 4750int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4751 4752int test (int i, double x); 4753struct s1 {int (*f) (int a);}; 4754struct s2 {int (*f) (double a);}; 4755int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4756int argc; 4757char **argv; 4758int 4759main () 4760{ 4761return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4762 ; 4763 return 0; 4764} 4765_ACEOF 4766for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4768do 4769 CC="$ac_save_CC $ac_arg" 4770 if ac_fn_c_try_compile "$LINENO"; then : 4771 ac_cv_prog_cc_c89=$ac_arg 4772fi 4773rm -f core conftest.err conftest.$ac_objext 4774 test "x$ac_cv_prog_cc_c89" != "xno" && break 4775done 4776rm -f conftest.$ac_ext 4777CC=$ac_save_CC 4778 4779fi 4780# AC_CACHE_VAL 4781case "x$ac_cv_prog_cc_c89" in 4782 x) 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4784$as_echo "none needed" >&6; } ;; 4785 xno) 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4787$as_echo "unsupported" >&6; } ;; 4788 *) 4789 CC="$CC $ac_cv_prog_cc_c89" 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4791$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4792esac 4793if test "x$ac_cv_prog_cc_c89" != xno; then : 4794 4795fi 4796 4797ac_ext=c 4798ac_cpp='$CPP $CPPFLAGS' 4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4801ac_compiler_gnu=$ac_cv_c_compiler_gnu 4802 4803ac_ext=cpp 4804ac_cpp='$CXXCPP $CPPFLAGS' 4805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4808if test -z "$CXX"; then 4809 if test -n "$CCC"; then 4810 CXX=$CCC 4811 else 4812 if test -n "$ac_tool_prefix"; then 4813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4814 do 4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4816set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4818$as_echo_n "checking for $ac_word... " >&6; } 4819if test "${ac_cv_prog_CXX+set}" = set; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 if test -n "$CXX"; then 4823 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4824else 4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826for as_dir in $PATH 4827do 4828 IFS=$as_save_IFS 4829 test -z "$as_dir" && as_dir=. 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4834 break 2 4835 fi 4836done 4837 done 4838IFS=$as_save_IFS 4839 4840fi 4841fi 4842CXX=$ac_cv_prog_CXX 4843if test -n "$CXX"; then 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4845$as_echo "$CXX" >&6; } 4846else 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4848$as_echo "no" >&6; } 4849fi 4850 4851 4852 test -n "$CXX" && break 4853 done 4854fi 4855if test -z "$CXX"; then 4856 ac_ct_CXX=$CXX 4857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4858do 4859 # Extract the first word of "$ac_prog", so it can be a program name with args. 4860set dummy $ac_prog; ac_word=$2 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4862$as_echo_n "checking for $ac_word... " >&6; } 4863if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 4864 $as_echo_n "(cached) " >&6 4865else 4866 if test -n "$ac_ct_CXX"; then 4867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4868else 4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4870for as_dir in $PATH 4871do 4872 IFS=$as_save_IFS 4873 test -z "$as_dir" && as_dir=. 4874 for ac_exec_ext in '' $ac_executable_extensions; do 4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4876 ac_cv_prog_ac_ct_CXX="$ac_prog" 4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4878 break 2 4879 fi 4880done 4881 done 4882IFS=$as_save_IFS 4883 4884fi 4885fi 4886ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4887if test -n "$ac_ct_CXX"; then 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4889$as_echo "$ac_ct_CXX" >&6; } 4890else 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4892$as_echo "no" >&6; } 4893fi 4894 4895 4896 test -n "$ac_ct_CXX" && break 4897done 4898 4899 if test "x$ac_ct_CXX" = x; then 4900 CXX="g++" 4901 else 4902 case $cross_compiling:$ac_tool_warned in 4903yes:) 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4906ac_tool_warned=yes ;; 4907esac 4908 CXX=$ac_ct_CXX 4909 fi 4910fi 4911 4912 fi 4913fi 4914# Provide some information about the compiler. 4915$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4916set X $ac_compile 4917ac_compiler=$2 4918for ac_option in --version -v -V -qversion; do 4919 { { ac_try="$ac_compiler $ac_option >&5" 4920case "(($ac_try" in 4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4922 *) ac_try_echo=$ac_try;; 4923esac 4924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4925$as_echo "$ac_try_echo"; } >&5 4926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4927 ac_status=$? 4928 if test -s conftest.err; then 4929 sed '10a\ 4930... rest of stderr output deleted ... 4931 10q' conftest.err >conftest.er1 4932 cat conftest.er1 >&5 4933 rm -f conftest.er1 conftest.err 4934 fi 4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4936 test $ac_status = 0; } 4937done 4938 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4940$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4941if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 4942 $as_echo_n "(cached) " >&6 4943else 4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4945/* end confdefs.h. */ 4946 4947int 4948main () 4949{ 4950#ifndef __GNUC__ 4951 choke me 4952#endif 4953 4954 ; 4955 return 0; 4956} 4957_ACEOF 4958if ac_fn_cxx_try_compile "$LINENO"; then : 4959 ac_compiler_gnu=yes 4960else 4961 ac_compiler_gnu=no 4962fi 4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4964ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4965 4966fi 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4968$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4969if test $ac_compiler_gnu = yes; then 4970 GXX=yes 4971else 4972 GXX= 4973fi 4974ac_test_CXXFLAGS=${CXXFLAGS+set} 4975ac_save_CXXFLAGS=$CXXFLAGS 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4977$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4978if test "${ac_cv_prog_cxx_g+set}" = set; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4982 ac_cxx_werror_flag=yes 4983 ac_cv_prog_cxx_g=no 4984 CXXFLAGS="-g" 4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4986/* end confdefs.h. */ 4987 4988int 4989main () 4990{ 4991 4992 ; 4993 return 0; 4994} 4995_ACEOF 4996if ac_fn_cxx_try_compile "$LINENO"; then : 4997 ac_cv_prog_cxx_g=yes 4998else 4999 CXXFLAGS="" 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001/* end confdefs.h. */ 5002 5003int 5004main () 5005{ 5006 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011if ac_fn_cxx_try_compile "$LINENO"; then : 5012 5013else 5014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5015 CXXFLAGS="-g" 5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5017/* end confdefs.h. */ 5018 5019int 5020main () 5021{ 5022 5023 ; 5024 return 0; 5025} 5026_ACEOF 5027if ac_fn_cxx_try_compile "$LINENO"; then : 5028 ac_cv_prog_cxx_g=yes 5029fi 5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5031fi 5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5033fi 5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5036fi 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5038$as_echo "$ac_cv_prog_cxx_g" >&6; } 5039if test "$ac_test_CXXFLAGS" = set; then 5040 CXXFLAGS=$ac_save_CXXFLAGS 5041elif test $ac_cv_prog_cxx_g = yes; then 5042 if test "$GXX" = yes; then 5043 CXXFLAGS="-g -O2" 5044 else 5045 CXXFLAGS="-g" 5046 fi 5047else 5048 if test "$GXX" = yes; then 5049 CXXFLAGS="-O2" 5050 else 5051 CXXFLAGS= 5052 fi 5053fi 5054ac_ext=c 5055ac_cpp='$CPP $CPPFLAGS' 5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5058ac_compiler_gnu=$ac_cv_c_compiler_gnu 5059 5060 5061# We must set the default linker to the linker used by gcc for the correct 5062# operation of libtool. If LD is not defined and we are using gcc, try to 5063# set the LD default to the ld used by gcc. 5064if test -z "$LD"; then 5065 if test "$GCC" = yes; then 5066 case $build in 5067 *-*-mingw*) 5068 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; 5069 *) 5070 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; 5071 esac 5072 case $gcc_prog_ld in 5073 # Accept absolute paths. 5074 [\\/]* | [A-Za-z]:[\\/]*) 5075 LD="$gcc_prog_ld" ;; 5076 esac 5077 fi 5078fi 5079 5080# Check whether -static-libstdc++ -static-libgcc is supported. 5081have_static_libs=no 5082if test "$GCC" = yes; then 5083 saved_LDFLAGS="$LDFLAGS" 5084 5085 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 5087$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } 5088 ac_ext=cpp 5089ac_cpp='$CXXCPP $CPPFLAGS' 5090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5093 5094 5095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5096/* end confdefs.h. */ 5097 5098#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 5099#error -static-libstdc++ not implemented 5100#endif 5101int main() {} 5102_ACEOF 5103if ac_fn_cxx_try_link "$LINENO"; then : 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5105$as_echo "yes" >&6; }; have_static_libs=yes 5106else 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5108$as_echo "no" >&6; } 5109fi 5110rm -f core conftest.err conftest.$ac_objext \ 5111 conftest$ac_exeext conftest.$ac_ext 5112 ac_ext=c 5113ac_cpp='$CPP $CPPFLAGS' 5114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5116ac_compiler_gnu=$ac_cv_c_compiler_gnu 5117 5118 5119 LDFLAGS="$saved_LDFLAGS" 5120fi 5121 5122 5123 5124 5125if test -n "$ac_tool_prefix"; then 5126 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. 5127set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5129$as_echo_n "checking for $ac_word... " >&6; } 5130if test "${ac_cv_prog_GNATBIND+set}" = set; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 if test -n "$GNATBIND"; then 5134 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. 5135else 5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5137for as_dir in $PATH 5138do 5139 IFS=$as_save_IFS 5140 test -z "$as_dir" && as_dir=. 5141 for ac_exec_ext in '' $ac_executable_extensions; do 5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5143 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5145 break 2 5146 fi 5147done 5148 done 5149IFS=$as_save_IFS 5150 5151fi 5152fi 5153GNATBIND=$ac_cv_prog_GNATBIND 5154if test -n "$GNATBIND"; then 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 5156$as_echo "$GNATBIND" >&6; } 5157else 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5159$as_echo "no" >&6; } 5160fi 5161 5162 5163fi 5164if test -z "$ac_cv_prog_GNATBIND"; then 5165 ac_ct_GNATBIND=$GNATBIND 5166 # Extract the first word of "gnatbind", so it can be a program name with args. 5167set dummy gnatbind; ac_word=$2 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5169$as_echo_n "checking for $ac_word... " >&6; } 5170if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 if test -n "$ac_ct_GNATBIND"; then 5174 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. 5175else 5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5177for as_dir in $PATH 5178do 5179 IFS=$as_save_IFS 5180 test -z "$as_dir" && as_dir=. 5181 for ac_exec_ext in '' $ac_executable_extensions; do 5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5183 ac_cv_prog_ac_ct_GNATBIND="gnatbind" 5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5185 break 2 5186 fi 5187done 5188 done 5189IFS=$as_save_IFS 5190 5191fi 5192fi 5193ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND 5194if test -n "$ac_ct_GNATBIND"; then 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 5196$as_echo "$ac_ct_GNATBIND" >&6; } 5197else 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5199$as_echo "no" >&6; } 5200fi 5201 5202 if test "x$ac_ct_GNATBIND" = x; then 5203 GNATBIND="no" 5204 else 5205 case $cross_compiling:$ac_tool_warned in 5206yes:) 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5209ac_tool_warned=yes ;; 5210esac 5211 GNATBIND=$ac_ct_GNATBIND 5212 fi 5213else 5214 GNATBIND="$ac_cv_prog_GNATBIND" 5215fi 5216 5217if test -n "$ac_tool_prefix"; then 5218 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. 5219set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5221$as_echo_n "checking for $ac_word... " >&6; } 5222if test "${ac_cv_prog_GNATMAKE+set}" = set; then : 5223 $as_echo_n "(cached) " >&6 5224else 5225 if test -n "$GNATMAKE"; then 5226 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. 5227else 5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5229for as_dir in $PATH 5230do 5231 IFS=$as_save_IFS 5232 test -z "$as_dir" && as_dir=. 5233 for ac_exec_ext in '' $ac_executable_extensions; do 5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5235 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" 5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5237 break 2 5238 fi 5239done 5240 done 5241IFS=$as_save_IFS 5242 5243fi 5244fi 5245GNATMAKE=$ac_cv_prog_GNATMAKE 5246if test -n "$GNATMAKE"; then 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 5248$as_echo "$GNATMAKE" >&6; } 5249else 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5251$as_echo "no" >&6; } 5252fi 5253 5254 5255fi 5256if test -z "$ac_cv_prog_GNATMAKE"; then 5257 ac_ct_GNATMAKE=$GNATMAKE 5258 # Extract the first word of "gnatmake", so it can be a program name with args. 5259set dummy gnatmake; ac_word=$2 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5261$as_echo_n "checking for $ac_word... " >&6; } 5262if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : 5263 $as_echo_n "(cached) " >&6 5264else 5265 if test -n "$ac_ct_GNATMAKE"; then 5266 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. 5267else 5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269for as_dir in $PATH 5270do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5275 ac_cv_prog_ac_ct_GNATMAKE="gnatmake" 5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280 done 5281IFS=$as_save_IFS 5282 5283fi 5284fi 5285ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE 5286if test -n "$ac_ct_GNATMAKE"; then 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 5288$as_echo "$ac_ct_GNATMAKE" >&6; } 5289else 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5291$as_echo "no" >&6; } 5292fi 5293 5294 if test "x$ac_ct_GNATMAKE" = x; then 5295 GNATMAKE="no" 5296 else 5297 case $cross_compiling:$ac_tool_warned in 5298yes:) 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5301ac_tool_warned=yes ;; 5302esac 5303 GNATMAKE=$ac_ct_GNATMAKE 5304 fi 5305else 5306 GNATMAKE="$ac_cv_prog_GNATMAKE" 5307fi 5308 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 5310$as_echo_n "checking whether compiler driver understands Ada... " >&6; } 5311if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 cat >conftest.adb <<EOF 5315procedure conftest is begin null; end conftest; 5316EOF 5317acx_cv_cc_gcc_supports_ada=no 5318# There is a bug in old released versions of GCC which causes the 5319# driver to exit successfully when the appropriate language module 5320# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. 5321# Therefore we must check for the error message as well as an 5322# unsuccessful exit. 5323# Other compilers, like HP Tru64 UNIX cc, exit successfully when 5324# given a .adb file, but produce no object file. So we must check 5325# if an object file was really produced to guard against this. 5326errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` 5327if test x"$errors" = x && test -f conftest.$ac_objext; then 5328 acx_cv_cc_gcc_supports_ada=yes 5329fi 5330rm -f conftest.* 5331fi 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 5333$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } 5334 5335if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then 5336 have_gnat=yes 5337else 5338 have_gnat=no 5339fi 5340 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 5342$as_echo_n "checking how to compare bootstrapped objects... " >&6; } 5343if test "${gcc_cv_prog_cmp_skip+set}" = set; then : 5344 $as_echo_n "(cached) " >&6 5345else 5346 # comparing object files via cmp doesn't work on haiku (files will seemingly 5347 # always differ), so we disassemble both files and compare the results: 5348 if uname -o | grep -iq haiku; then 5349 gcc_cv_prog_cmp_skip='objdump -Dz $$f1 | tail +6 >tmp-foo1; objdump -Dz $$f2 | tail +6 >tmp-foo2; cmp tmp-foo1 tmp-foo2' 5350 else 5351 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' 5352 echo abfoo >t1 5353 echo cdfoo >t2 5354 if cmp t1 t2 2 2 > /dev/null 2>&1; then 5355 if cmp t1 t2 1 1 > /dev/null 2>&1; then 5356 : 5357 else 5358 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' 5359 fi 5360 fi 5361 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 5362 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 5363 : 5364 else 5365 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' 5366 fi 5367 fi 5368 rm t1 t2 5369 fi 5370 5371fi 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 5373$as_echo "$gcc_cv_prog_cmp_skip" >&6; } 5374do_compare="$gcc_cv_prog_cmp_skip" 5375 5376 5377 5378# Check whether --enable-bootstrap was given. 5379if test "${enable_bootstrap+set}" = set; then : 5380 enableval=$enable_bootstrap; 5381else 5382 enable_bootstrap=default 5383fi 5384 5385 5386# Issue errors and warnings for invalid/strange bootstrap combinations. 5387if test -r $srcdir/gcc/configure; then 5388 have_compiler=yes 5389else 5390 have_compiler=no 5391fi 5392 5393case "$have_compiler:$host:$target:$enable_bootstrap" in 5394 *:*:*:no) ;; 5395 5396 # Default behavior. Enable bootstrap if we have a compiler 5397 # and we are in a native configuration. 5398 yes:$build:$build:default) 5399 enable_bootstrap=yes ;; 5400 5401 *:*:*:default) 5402 enable_bootstrap=no ;; 5403 5404 # We have a compiler and we are in a native configuration, bootstrap is ok 5405 yes:$build:$build:yes) 5406 ;; 5407 5408 # Other configurations, but we have a compiler. Assume the user knows 5409 # what he's doing. 5410 yes:*:*:yes) 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 5412$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} 5413 ;; 5414 5415 # No compiler: if they passed --enable-bootstrap explicitly, fail 5416 no:*:*:yes) 5417 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; 5418 5419 # Fail if wrong command line 5420 *) 5421 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 5422 ;; 5423esac 5424 5425# Used for setting $lt_cv_objdir 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 5427$as_echo_n "checking for objdir... " >&6; } 5428if test "${lt_cv_objdir+set}" = set; then : 5429 $as_echo_n "(cached) " >&6 5430else 5431 rm -f .libs 2>/dev/null 5432mkdir .libs 2>/dev/null 5433if test -d .libs; then 5434 lt_cv_objdir=.libs 5435else 5436 # MS-DOS does not allow filenames that begin with a dot. 5437 lt_cv_objdir=_libs 5438fi 5439rmdir .libs 2>/dev/null 5440fi 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 5442$as_echo "$lt_cv_objdir" >&6; } 5443objdir=$lt_cv_objdir 5444 5445 5446 5447 5448 5449cat >>confdefs.h <<_ACEOF 5450#define LT_OBJDIR "$lt_cv_objdir/" 5451_ACEOF 5452 5453 5454 5455# Check for GMP, MPFR and MPC 5456gmplibs="-lmpc -lmpfr -lgmp" 5457gmpinc= 5458have_gmp=no 5459 5460# Specify a location for mpc 5461# check for this first so it ends up on the link line before mpfr. 5462 5463# Check whether --with-mpc was given. 5464if test "${with_mpc+set}" = set; then : 5465 withval=$with_mpc; 5466fi 5467 5468 5469# Check whether --with-mpc-include was given. 5470if test "${with_mpc_include+set}" = set; then : 5471 withval=$with_mpc_include; 5472fi 5473 5474 5475# Check whether --with-mpc-lib was given. 5476if test "${with_mpc_lib+set}" = set; then : 5477 withval=$with_mpc_lib; 5478fi 5479 5480 5481if test "x$with_mpc" != x; then 5482 gmplibs="-L$with_mpc/lib $gmplibs" 5483 gmpinc="-I$with_mpc/include $gmpinc" 5484fi 5485if test "x$with_mpc_include" != x; then 5486 gmpinc="-I$with_mpc_include $gmpinc" 5487fi 5488if test "x$with_mpc_lib" != x; then 5489 gmplibs="-L$with_mpc_lib $gmplibs" 5490fi 5491if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then 5492 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" 5493 gmpinc='-I$$s/mpc/src '"$gmpinc" 5494 # Do not test the mpc version. Assume that it is sufficient, since 5495 # it is in the source tree, and the library has not been built yet 5496 # but it would be included on the link line in the version check below 5497 # hence making the test fail. 5498 have_gmp=yes 5499fi 5500 5501# Specify a location for mpfr 5502# check for this first so it ends up on the link line before gmp. 5503 5504# Check whether --with-mpfr-dir was given. 5505if test "${with_mpfr_dir+set}" = set; then : 5506 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. 5507Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 5508fi 5509 5510 5511 5512# Check whether --with-mpfr was given. 5513if test "${with_mpfr+set}" = set; then : 5514 withval=$with_mpfr; 5515fi 5516 5517 5518# Check whether --with-mpfr-include was given. 5519if test "${with_mpfr_include+set}" = set; then : 5520 withval=$with_mpfr_include; 5521fi 5522 5523 5524# Check whether --with-mpfr-lib was given. 5525if test "${with_mpfr_lib+set}" = set; then : 5526 withval=$with_mpfr_lib; 5527fi 5528 5529 5530if test "x$with_mpfr" != x; then 5531 gmplibs="-L$with_mpfr/lib $gmplibs" 5532 gmpinc="-I$with_mpfr/include $gmpinc" 5533fi 5534if test "x$with_mpfr_include" != x; then 5535 gmpinc="-I$with_mpfr_include $gmpinc" 5536fi 5537if test "x$with_mpfr_lib" != x; then 5538 gmplibs="-L$with_mpfr_lib $gmplibs" 5539fi 5540if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then 5541 # MPFR v3.1.0 moved the sources into a src sub-directory. 5542 if test -d ${srcdir}/mpfr/src; then 5543 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" 5544 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" 5545 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" 5546 else 5547 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" 5548 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" 5549 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" 5550 fi 5551 # Do not test the mpfr version. Assume that it is sufficient, since 5552 # it is in the source tree, and the library has not been built yet 5553 # but it would be included on the link line in the version check below 5554 # hence making the test fail. 5555 have_gmp=yes 5556fi 5557 5558# Specify a location for gmp 5559 5560# Check whether --with-gmp-dir was given. 5561if test "${with_gmp_dir+set}" = set; then : 5562 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. 5563Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 5564fi 5565 5566 5567 5568# Check whether --with-gmp was given. 5569if test "${with_gmp+set}" = set; then : 5570 withval=$with_gmp; 5571fi 5572 5573 5574# Check whether --with-gmp-include was given. 5575if test "${with_gmp_include+set}" = set; then : 5576 withval=$with_gmp_include; 5577fi 5578 5579 5580# Check whether --with-gmp-lib was given. 5581if test "${with_gmp_lib+set}" = set; then : 5582 withval=$with_gmp_lib; 5583fi 5584 5585 5586 5587if test "x$with_gmp" != x; then 5588 gmplibs="-L$with_gmp/lib $gmplibs" 5589 gmpinc="-I$with_gmp/include $gmpinc" 5590fi 5591if test "x$with_gmp_include" != x; then 5592 gmpinc="-I$with_gmp_include $gmpinc" 5593fi 5594if test "x$with_gmp_lib" != x; then 5595 gmplibs="-L$with_gmp_lib $gmplibs" 5596fi 5597if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then 5598 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" 5599 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" 5600 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 5601 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 5602 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' 5603 # Do not test the gmp version. Assume that it is sufficient, since 5604 # it is in the source tree, and the library has not been built yet 5605 # but it would be included on the link line in the version check below 5606 # hence making the test fail. 5607 have_gmp=yes 5608fi 5609 5610if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then 5611 have_gmp=yes 5612 saved_CFLAGS="$CFLAGS" 5613 CFLAGS="$CFLAGS $gmpinc" 5614 # Check for the recommended and required versions of GMP. 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 5616$as_echo_n "checking for the correct version of gmp.h... " >&6; } 5617 5618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620#include "gmp.h" 5621int 5622main () 5623{ 5624 5625 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 5626 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) 5627 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) 5628 choke me 5629 #endif 5630 5631 ; 5632 return 0; 5633} 5634_ACEOF 5635if ac_fn_c_try_compile "$LINENO"; then : 5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5637/* end confdefs.h. */ 5638#include <gmp.h> 5639int 5640main () 5641{ 5642 5643 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 5644 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) 5645 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) 5646 choke me 5647 #endif 5648 5649 ; 5650 return 0; 5651} 5652_ACEOF 5653if ac_fn_c_try_compile "$LINENO"; then : 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5655$as_echo "yes" >&6; } 5656else 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5658$as_echo "buggy but acceptable" >&6; } 5659fi 5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5661else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5663$as_echo "no" >&6; }; have_gmp=no 5664fi 5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5666 5667 # If we have GMP, check the MPFR version. 5668 if test x"$have_gmp" = xyes; then 5669 # Check for the recommended and required versions of MPFR. 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 5671$as_echo_n "checking for the correct version of mpfr.h... " >&6; } 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674#include <gmp.h> 5675 #include <mpfr.h> 5676int 5677main () 5678{ 5679 5680 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) 5681 choke me 5682 #endif 5683 5684 ; 5685 return 0; 5686} 5687_ACEOF 5688if ac_fn_c_try_compile "$LINENO"; then : 5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691#include <gmp.h> 5692 #include <mpfr.h> 5693int 5694main () 5695{ 5696 5697 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) 5698 choke me 5699 #endif 5700 5701 ; 5702 return 0; 5703} 5704_ACEOF 5705if ac_fn_c_try_compile "$LINENO"; then : 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5707$as_echo "yes" >&6; } 5708else 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5710$as_echo "buggy but acceptable" >&6; } 5711fi 5712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5713else 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5715$as_echo "no" >&6; }; have_gmp=no 5716fi 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5718 fi 5719 5720 # Check for the MPC header version. 5721 if test x"$have_gmp" = xyes ; then 5722 # Check for the recommended and required versions of MPC. 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 5724$as_echo_n "checking for the correct version of mpc.h... " >&6; } 5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5726/* end confdefs.h. */ 5727#include <mpc.h> 5728int 5729main () 5730{ 5731 5732 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) 5733 choke me 5734 #endif 5735 5736 ; 5737 return 0; 5738} 5739_ACEOF 5740if ac_fn_c_try_compile "$LINENO"; then : 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743#include <mpc.h> 5744int 5745main () 5746{ 5747 5748 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) 5749 choke me 5750 #endif 5751 5752 ; 5753 return 0; 5754} 5755_ACEOF 5756if ac_fn_c_try_compile "$LINENO"; then : 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5758$as_echo "yes" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 5761$as_echo "buggy but acceptable" >&6; } 5762fi 5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5764else 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5766$as_echo "no" >&6; }; have_gmp=no 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5769 fi 5770 5771 # Now check the MPFR library. 5772 if test x"$have_gmp" = xyes; then 5773 saved_LIBS="$LIBS" 5774 LIBS="$LIBS $gmplibs" 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 5776$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779#include <mpc.h> 5780int 5781main () 5782{ 5783 5784 mpfr_t n; 5785 mpfr_t x; 5786 mpc_t c; 5787 int t; 5788 mpfr_init (n); 5789 mpfr_init (x); 5790 mpfr_atan2 (n, n, x, GMP_RNDN); 5791 mpfr_erfc (n, x, GMP_RNDN); 5792 mpfr_subnormalize (x, t, GMP_RNDN); 5793 mpfr_clear(n); 5794 mpfr_clear(x); 5795 mpc_init2 (c, 53); 5796 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); 5797 mpc_cosh (c, c, MPC_RNDNN); 5798 mpc_pow (c, c, c, MPC_RNDNN); 5799 mpc_acosh (c, c, MPC_RNDNN); 5800 mpc_clear (c); 5801 5802 ; 5803 return 0; 5804} 5805_ACEOF 5806if ac_fn_c_try_link "$LINENO"; then : 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5808$as_echo "yes" >&6; } 5809else 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5811$as_echo "no" >&6; }; have_gmp=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext \ 5814 conftest$ac_exeext conftest.$ac_ext 5815 LIBS="$saved_LIBS" 5816 fi 5817 5818 CFLAGS="$saved_CFLAGS" 5819 5820# The library versions listed in the error message below should match 5821# the HARD-minimums enforced above. 5822 if test x$have_gmp != xyes; then 5823 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. 5824Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify 5825their locations. Source code for these libraries can be found at 5826their respective hosting sites as well as at 5827ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also 5828http://gcc.gnu.org/install/prerequisites.html for additional info. If 5829you obtained GMP, MPFR and/or MPC from a vendor distribution package, 5830make sure that you have installed both the libraries and the header 5831files. They may be located in separate packages." "$LINENO" 5 5832 fi 5833fi 5834 5835# Flags needed for both GMP, MPFR and/or MPC. 5836 5837 5838 5839 5840 5841 5842 5843# Allow host libstdc++ to be specified for static linking with PPL. 5844 5845# Check whether --with-host-libstdcxx was given. 5846if test "${with_host_libstdcxx+set}" = set; then : 5847 withval=$with_host_libstdcxx; 5848fi 5849 5850 5851case $with_host_libstdcxx in 5852 no|yes) 5853 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 5854 ;; 5855esac 5856 5857# Libraries to use for stage1 or when not bootstrapping. 5858 5859# Check whether --with-stage1-libs was given. 5860if test "${with_stage1_libs+set}" = set; then : 5861 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then 5862 stage1_libs= 5863 else 5864 stage1_libs=$withval 5865 fi 5866else 5867 stage1_libs=$with_host_libstdcxx 5868fi 5869 5870 5871 5872# Linker flags to use for stage1 or when not bootstrapping. 5873 5874# Check whether --with-stage1-ldflags was given. 5875if test "${with_stage1_ldflags+set}" = set; then : 5876 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then 5877 stage1_ldflags= 5878 else 5879 stage1_ldflags=$withval 5880 fi 5881else 5882 stage1_ldflags= 5883 # In stage 1, default to linking libstdc++ and libgcc statically with GCC 5884 # if supported. But if the user explicitly specified the libraries to use, 5885 # trust that they are doing what they want. 5886 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then 5887 stage1_ldflags="-static-libstdc++ -static-libgcc" 5888 fi 5889fi 5890 5891 5892 5893# Libraries to use for stage2 and later builds. This defaults to the 5894# argument passed to --with-host-libstdcxx. 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=$with_host_libstdcxx 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}" 6005 LIBS="${_isl_saved_LIBS} -lisl" 6006 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5 6008$as_echo_n "checking for compatible ISL... " >&6; } 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011#include <isl/val.h> 6012int 6013main () 6014{ 6015; 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 CFLAGS=$_isl_saved_CFLAGS 6031 LDFLAGS=$_isl_saved_LDFLAGS 6032 LIBS=$_isl_saved_LIBS 6033 fi 6034 6035 6036 6037 6038 6039 6040 if test "x${with_isl}" = xno; then 6041 graphite_requested=no 6042 elif test "x${with_isl}" != x \ 6043 || test "x${with_isl_include}" != x \ 6044 || test "x${with_isl_lib}" != x ; then 6045 graphite_requested=yes 6046 else 6047 graphite_requested=no 6048 fi 6049 6050 6051 6052 if test "${gcc_cv_isl}" = no ; then 6053 isllibs= 6054 islinc= 6055 fi 6056 6057 if test "${graphite_requested}" = yes \ 6058 && test "x${isllibs}" = x \ 6059 && test "x${islinc}" = x ; then 6060 6061 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 6062 fi 6063 6064 6065fi 6066 6067# If the ISL check failed, disable builds of in-tree variant of ISL 6068if test "x$with_isl" = xno || 6069 test "x$gcc_cv_isl" = xno; then 6070 noconfigdirs="$noconfigdirs isl" 6071 islinc= 6072fi 6073 6074 6075 6076 6077# Check for LTO support. 6078# Check whether --enable-lto was given. 6079if test "${enable_lto+set}" = set; then : 6080 enableval=$enable_lto; enable_lto=$enableval 6081else 6082 enable_lto=yes; default_enable_lto=yes 6083fi 6084 6085 6086 6087 6088 6089target_elf=no 6090case $target in 6091 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ 6092 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ 6093 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ 6094 nvptx-*-none) 6095 target_elf=no 6096 ;; 6097 *) 6098 target_elf=yes 6099 ;; 6100esac 6101 6102if test $target_elf = yes; then : 6103 # ELF platforms build the lto-plugin always. 6104 build_lto_plugin=yes 6105 6106else 6107 if test x"$default_enable_lto" = x"yes" ; then 6108 case $target in 6109 *-apple-darwin9* | *-cygwin* | *-mingw*) ;; 6110 # On other non-ELF platforms, LTO has yet to be validated. 6111 *) enable_lto=no ;; 6112 esac 6113 else 6114 # Apart from ELF platforms, only Windows and Darwin support LTO so far. 6115 # It would also be nice to check the binutils support, but we don't 6116 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just 6117 # warn during gcc/ subconfigure; unless you're bootstrapping with 6118 # -flto it won't be needed until after installation anyway. 6119 case $target in 6120 *-cygwin* | *-mingw* | *-apple-darwin*) ;; 6121 *) if test x"$enable_lto" = x"yes"; then 6122 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 6123 fi 6124 ;; 6125 esac 6126 fi 6127 # Among non-ELF, only Windows platforms support the lto-plugin so far. 6128 # Build it unless LTO was explicitly disabled. 6129 case $target in 6130 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; 6131 *) ;; 6132 esac 6133 6134fi 6135 6136 6137# Check whether --enable-linker-plugin-configure-flags was given. 6138if test "${enable_linker_plugin_configure_flags+set}" = set; then : 6139 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval 6140else 6141 extra_linker_plugin_configure_flags= 6142fi 6143 6144 6145# Check whether --enable-linker-plugin-flags was given. 6146if test "${enable_linker_plugin_flags+set}" = set; then : 6147 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval 6148else 6149 extra_linker_plugin_flags= 6150fi 6151 6152 6153 6154 6155# By default, C and C++ are the only stage 1 languages. 6156stage1_languages=,c, 6157 6158# Target libraries that we bootstrap. 6159bootstrap_target_libs=,target-libgcc, 6160 6161# Figure out what language subdirectories are present. 6162# Look if the user specified --enable-languages="..."; if not, use 6163# the environment variable $LANGUAGES if defined. $LANGUAGES might 6164# go away some day. 6165# NB: embedded tabs in this IF block -- do not untabify 6166if test -d ${srcdir}/gcc; then 6167 if test x"${enable_languages+set}" != xset; then 6168 if test x"${LANGUAGES+set}" = xset; then 6169 enable_languages="${LANGUAGES}" 6170 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 6171 else 6172 enable_languages=all 6173 fi 6174 else 6175 if test x"${enable_languages}" = x || 6176 test x"${enable_languages}" = xyes; 6177 then 6178 echo configure.in: --enable-languages needs at least one language argument 1>&2 6179 exit 1 6180 fi 6181 fi 6182 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` 6183 6184 # 'f95' is the old name for the 'fortran' language. We issue a warning 6185 # and make the substitution. 6186 case ,${enable_languages}, in 6187 *,f95,*) 6188 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 6189 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` 6190 ;; 6191 esac 6192 6193 # If bootstrapping, C++ must be enabled. 6194 case ",$enable_languages,:$enable_bootstrap" in 6195 *,c++,*:*) ;; 6196 *:yes) 6197 if test -f ${srcdir}/gcc/cp/config-lang.in; then 6198 enable_languages="${enable_languages},c++" 6199 else 6200 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 6201 fi 6202 ;; 6203 esac 6204 6205 # First scan to see if an enabled language requires some other language. 6206 # We assume that a given config-lang.in will list all the language 6207 # front ends it requires, even if some are required indirectly. 6208 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 6209 case ${lang_frag} in 6210 ..) ;; 6211 # The odd quoting in the next line works around 6212 # an apparent bug in bash 1.12 on linux. 6213 ${srcdir}/gcc/[*]/config-lang.in) ;; 6214 *) 6215 # From the config-lang.in, get $language, $lang_requires, and 6216 # $lang_requires_boot_languages. 6217 language= 6218 lang_requires= 6219 lang_requires_boot_languages= 6220 . ${lang_frag} 6221 for other in ${lang_requires} ${lang_requires_boot_languages}; do 6222 case ,${enable_languages}, in 6223 *,$other,*) ;; 6224 *,all,*) ;; 6225 *,$language,*) 6226 echo " \`$other' language required by \`$language'; enabling" 1>&2 6227 enable_languages="${enable_languages},${other}" 6228 ;; 6229 esac 6230 done 6231 for other in ${lang_requires_boot_languages} ; do 6232 if test "$other" != "c"; then 6233 case ,${enable_stage1_languages}, in 6234 *,$other,*) ;; 6235 *,all,*) ;; 6236 *) 6237 case ,${enable_languages}, in 6238 *,$language,*) 6239 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 6240 enable_stage1_languages="$enable_stage1_languages,${other}" 6241 ;; 6242 esac 6243 ;; 6244 esac 6245 fi 6246 done 6247 ;; 6248 esac 6249 done 6250 6251 new_enable_languages=,c, 6252 6253 # If LTO is enabled, add the LTO front end. 6254 if test "$enable_lto" = "yes" ; then 6255 case ,${enable_languages}, in 6256 *,lto,*) ;; 6257 *) enable_languages="${enable_languages},lto" ;; 6258 esac 6259 if test "${build_lto_plugin}" = "yes" ; then 6260 configdirs="$configdirs lto-plugin" 6261 fi 6262 fi 6263 6264 # If we're building an offloading compiler, add the LTO front end. 6265 if test x"$enable_as_accelerator_for" != x ; then 6266 case ,${enable_languages}, in 6267 *,lto,*) ;; 6268 *) enable_languages="${enable_languages},lto" ;; 6269 esac 6270 fi 6271 6272 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` 6273 potential_languages=,c, 6274 6275 enabled_target_libs= 6276 disabled_target_libs= 6277 6278 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 6279 case ${lang_frag} in 6280 ..) ;; 6281 # The odd quoting in the next line works around 6282 # an apparent bug in bash 1.12 on linux. 6283 ${srcdir}/gcc/[*]/config-lang.in) ;; 6284 *) 6285 # From the config-lang.in, get $language, $target_libs, 6286 # $lang_dirs, $boot_language, and $build_by_default 6287 language= 6288 target_libs= 6289 lang_dirs= 6290 subdir_requires= 6291 boot_language=no 6292 build_by_default=yes 6293 . ${lang_frag} 6294 if test x${language} = x; then 6295 echo "${lang_frag} doesn't set \$language." 1>&2 6296 exit 1 6297 fi 6298 6299 if test "$language" = "c++"; then 6300 boot_language=yes 6301 fi 6302 6303 add_this_lang=no 6304 case ,${enable_languages}, in 6305 *,${language},*) 6306 # Language was explicitly selected; include it 6307 # unless it is C, which is enabled by default. 6308 if test "$language" != "c"; then 6309 add_this_lang=yes 6310 fi 6311 ;; 6312 *,all,*) 6313 # 'all' was selected, select it if it is a default language 6314 if test "$language" != "c"; then 6315 add_this_lang=${build_by_default} 6316 fi 6317 ;; 6318 esac 6319 6320 # Disable languages that need other directories if these aren't available. 6321 for i in $subdir_requires; do 6322 test -f "$srcdir/gcc/$i/config-lang.in" && continue 6323 case ,${enable_languages}, in 6324 *,${language},*) 6325 # Specifically requested language; tell them. 6326 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 6327 ;; 6328 *) 6329 # Silently disable. 6330 add_this_lang=unsupported 6331 ;; 6332 esac 6333 done 6334 6335 # Disable Ada if no preexisting GNAT is available. 6336 case ,${enable_languages},:${language}:${have_gnat} in 6337 *,${language},*:ada:no) 6338 # Specifically requested language; tell them. 6339 as_fn_error "GNAT is required to build $language" "$LINENO" 5 6340 ;; 6341 *:ada:no) 6342 # Silently disable. 6343 add_this_lang=unsupported 6344 ;; 6345 esac 6346 6347 # Disable a language that is unsupported by the target. 6348 case " $unsupported_languages " in 6349 *" $language "*) 6350 add_this_lang=unsupported 6351 ;; 6352 esac 6353 6354 case $add_this_lang in 6355 unsupported) 6356 # Remove language-dependent dirs. 6357 disabled_target_libs="$disabled_target_libs $target_libs" 6358 noconfigdirs="$noconfigdirs $lang_dirs" 6359 ;; 6360 no) 6361 # Remove language-dependent dirs; still show language as supported. 6362 disabled_target_libs="$disabled_target_libs $target_libs" 6363 noconfigdirs="$noconfigdirs $lang_dirs" 6364 potential_languages="${potential_languages}${language}," 6365 ;; 6366 yes) 6367 new_enable_languages="${new_enable_languages}${language}," 6368 potential_languages="${potential_languages}${language}," 6369 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` 6370 enabled_target_libs="$enabled_target_libs $target_libs" 6371 case "${boot_language}:,$enable_stage1_languages," in 6372 yes:* | *:*,$language,* | *:*,yes, | *:*,all,) 6373 # Add to (comma-separated) list of stage 1 languages. 6374 case ",$stage1_languages," in 6375 *,$language,* | ,yes, | ,all,) ;; 6376 *) stage1_languages="${stage1_languages}${language}," ;; 6377 esac 6378 # We need to bootstrap any supporting libraries. 6379 bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," 6380 ;; 6381 esac 6382 ;; 6383 esac 6384 ;; 6385 esac 6386 done 6387 6388 # Add target libraries which are only needed for disabled languages 6389 # to noconfigdirs. 6390 if test -n "$disabled_target_libs"; then 6391 for dir in $disabled_target_libs; do 6392 case " $enabled_target_libs " in 6393 *" ${dir} "*) ;; 6394 *) noconfigdirs="$noconfigdirs $dir" ;; 6395 esac 6396 done 6397 fi 6398 6399 # Check whether --enable-stage1-languages was given. 6400if test "${enable_stage1_languages+set}" = set; then : 6401 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in 6402 ,no,|,,) 6403 # Set it to something that will have no effect in the loop below 6404 enable_stage1_languages=c ;; 6405 ,yes,) 6406 enable_stage1_languages=`echo $new_enable_languages | \ 6407 sed -e "s/^,//" -e "s/,$//" ` ;; 6408 *,all,*) 6409 enable_stage1_languages=`echo ,$enable_stage1_languages, | \ 6410 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; 6411 esac 6412 6413 # Add "good" languages from enable_stage1_languages to stage1_languages, 6414 # while "bad" languages go in missing_languages. Leave no duplicates. 6415 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do 6416 case $potential_languages in 6417 *,$i,*) 6418 case $stage1_languages in 6419 *,$i,*) ;; 6420 *) stage1_languages="$stage1_languages$i," ;; 6421 esac ;; 6422 *) 6423 case $missing_languages in 6424 *,$i,*) ;; 6425 *) missing_languages="$missing_languages$i," ;; 6426 esac ;; 6427 esac 6428 done 6429fi 6430 6431 6432 # Remove leading/trailing commas that were added for simplicity 6433 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` 6434 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` 6435 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` 6436 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` 6437 6438 if test "x$missing_languages" != x; then 6439 as_fn_error " 6440The following requested languages could not be built: ${missing_languages} 6441Supported languages are: ${potential_languages}" "$LINENO" 5 6442 fi 6443 if test "x$new_enable_languages" != "x$enable_languages"; then 6444 echo The following languages will be built: ${new_enable_languages} 6445 enable_languages="$new_enable_languages" 6446 fi 6447 6448 6449 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` 6450fi 6451 6452# Handle --disable-<component> generically. 6453for dir in $configdirs $build_configdirs $target_configdirs ; do 6454 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` 6455 varname=`echo $dirname | sed -e s/+/_/g` 6456 if eval test x\${enable_${varname}} "=" xno ; then 6457 noconfigdirs="$noconfigdirs $dir" 6458 fi 6459done 6460 6461# Check for Boehm's garbage collector 6462# Check whether --enable-objc-gc was given. 6463if test "${enable_objc_gc+set}" = set; then : 6464 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in 6465 *,objc,*:*:yes:*target-boehm-gc*) 6466 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 6467 ;; 6468esac 6469fi 6470 6471 6472# Make sure we only build Boehm's garbage collector if required. 6473case ,${enable_languages},:${enable_objc_gc} in 6474 *,objc,*:yes) 6475 # Keep target-boehm-gc if requested for Objective-C. 6476 ;; 6477 *) 6478 # Otherwise remove target-boehm-gc depending on target-libjava. 6479 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then 6480 noconfigdirs="$noconfigdirs target-boehm-gc" 6481 fi 6482 ;; 6483esac 6484 6485# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ 6486case ,${enable_languages}, in 6487 *,c++,*) 6488 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ 6489 case "${noconfigdirs}" in 6490 *target-libstdc++-v3*) 6491 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" 6492 ;; 6493 *) ;; 6494 esac 6495 ;; 6496 *) 6497 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" 6498 ;; 6499esac 6500 6501# Remove the entries in $skipdirs and $noconfigdirs from $configdirs, 6502# $build_configdirs and $target_configdirs. 6503# If we have the source for $noconfigdirs entries, add them to $notsupp. 6504 6505notsupp="" 6506for dir in . $skipdirs $noconfigdirs ; do 6507 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` 6508 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6509 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` 6510 if test -r $srcdir/$dirname/configure ; then 6511 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6512 true 6513 else 6514 notsupp="$notsupp $dir" 6515 fi 6516 fi 6517 fi 6518 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6519 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` 6520 if test -r $srcdir/$dirname/configure ; then 6521 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6522 true 6523 else 6524 notsupp="$notsupp $dir" 6525 fi 6526 fi 6527 fi 6528 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6529 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` 6530 if test -r $srcdir/$dirname/configure ; then 6531 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6532 true 6533 else 6534 notsupp="$notsupp $dir" 6535 fi 6536 fi 6537 fi 6538done 6539 6540# Quietly strip out all directories which aren't configurable in this tree. 6541# This relies on all configurable subdirectories being autoconfiscated, which 6542# is now the case. 6543build_configdirs_all="$build_configdirs" 6544build_configdirs= 6545for i in ${build_configdirs_all} ; do 6546 j=`echo $i | sed -e s/build-//g` 6547 if test -f ${srcdir}/$j/configure ; then 6548 build_configdirs="${build_configdirs} $i" 6549 fi 6550done 6551 6552configdirs_all="$configdirs" 6553configdirs= 6554for i in ${configdirs_all} ; do 6555 if test -f ${srcdir}/$i/configure ; then 6556 configdirs="${configdirs} $i" 6557 fi 6558done 6559 6560target_configdirs_all="$target_configdirs" 6561target_configdirs= 6562for i in ${target_configdirs_all} ; do 6563 j=`echo $i | sed -e s/target-//g` 6564 if test -f ${srcdir}/$j/configure ; then 6565 target_configdirs="${target_configdirs} $i" 6566 fi 6567done 6568 6569# libiberty-linker-plugin is special: it doesn't have its own source directory, 6570# so we have to add it after the preceding checks. 6571if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x 6572then 6573 case " $configdirs " in 6574 *" libiberty "*) 6575 # If we can build libiberty, we can also build libiberty-linker-plugin. 6576 configdirs="$configdirs libiberty-linker-plugin" 6577 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ 6578 --with-libiberty=../libiberty-linker-plugin";; 6579 *) 6580 as_fn_error "libiberty missing" "$LINENO" 5;; 6581 esac 6582fi 6583 6584# Sometimes we have special requirements for the host libiberty. 6585extra_host_libiberty_configure_flags= 6586case " $configdirs " in 6587 *" lto-plugin "* | *" libcc1 "*) 6588 # When these are to be built as shared libraries, the same applies to 6589 # libiberty. 6590 extra_host_libiberty_configure_flags=--enable-shared 6591 ;; 6592esac 6593 6594 6595# Produce a warning message for the subdirs we can't configure. 6596# This isn't especially interesting in the Cygnus tree, but in the individual 6597# FSF releases, it's important to let people know when their machine isn't 6598# supported by the one or two programs in a package. 6599 6600if test -n "${notsupp}" && test -z "${norecursion}" ; then 6601 # If $appdirs is non-empty, at least one of those directories must still 6602 # be configured, or we error out. (E.g., if the gas release supports a 6603 # specified target in some subdirs but not the gas subdir, we shouldn't 6604 # pretend that all is well.) 6605 if test -n "$appdirs" ; then 6606 for dir in $appdirs ; do 6607 if test -r $dir/Makefile.in ; then 6608 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 6609 appdirs="" 6610 break 6611 fi 6612 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then 6613 appdirs="" 6614 break 6615 fi 6616 fi 6617 done 6618 if test -n "$appdirs" ; then 6619 echo "*** This configuration is not supported by this package." 1>&2 6620 exit 1 6621 fi 6622 fi 6623 # Okay, some application will build, or we don't care to check. Still 6624 # notify of subdirs not getting built. 6625 echo "*** This configuration is not supported in the following subdirectories:" 1>&2 6626 echo " ${notsupp}" 1>&2 6627 echo " (Any other directories should still work fine.)" 1>&2 6628fi 6629 6630case "$host" in 6631 *msdosdjgpp*) 6632 enable_gdbtk=no ;; 6633esac 6634 6635# To find our prefix, in gcc_cv_tool_prefix. 6636 6637# The user is always right. 6638if test "${PATH_SEPARATOR+set}" != set; then 6639 echo "#! /bin/sh" >conf$$.sh 6640 echo "exit 0" >>conf$$.sh 6641 chmod +x conf$$.sh 6642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6643 PATH_SEPARATOR=';' 6644 else 6645 PATH_SEPARATOR=: 6646 fi 6647 rm -f conf$$.sh 6648fi 6649 6650 6651 6652if test "x$exec_prefix" = xNONE; then 6653 if test "x$prefix" = xNONE; then 6654 gcc_cv_tool_prefix=$ac_default_prefix 6655 else 6656 gcc_cv_tool_prefix=$prefix 6657 fi 6658else 6659 gcc_cv_tool_prefix=$exec_prefix 6660fi 6661 6662# If there is no compiler in the tree, use the PATH only. In any 6663# case, if there is no compiler in the tree nobody should use 6664# AS_FOR_TARGET and LD_FOR_TARGET. 6665if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then 6666 gcc_version=`cat $srcdir/gcc/BASE-VER` 6667 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6668 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" 6669 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6670 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" 6671 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" 6672 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" 6673else 6674 gcc_cv_tool_dirs= 6675fi 6676 6677if test x$build = x$target && test -n "$md_exec_prefix"; then 6678 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" 6679fi 6680 6681 6682 6683copy_dirs= 6684 6685 6686# Check whether --with-build-sysroot was given. 6687if test "${with_build_sysroot+set}" = set; then : 6688 withval=$with_build_sysroot; if test x"$withval" != x ; then 6689 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" 6690 fi 6691else 6692 SYSROOT_CFLAGS_FOR_TARGET= 6693fi 6694 6695 6696 6697 6698# Check whether --with-debug-prefix-map was given. 6699if test "${with_debug_prefix_map+set}" = set; then : 6700 withval=$with_debug_prefix_map; if test x"$withval" != x; then 6701 DEBUG_PREFIX_CFLAGS_FOR_TARGET= 6702 for debug_map in $withval; do 6703 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" 6704 done 6705 fi 6706else 6707 DEBUG_PREFIX_CFLAGS_FOR_TARGET= 6708fi 6709 6710 6711 6712# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS 6713# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS 6714# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). 6715# We want to ensure that TARGET libraries (which we know are built with 6716# gcc) are built with "-O2 -g", so include those options when setting 6717# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. 6718if test "x$CFLAGS_FOR_TARGET" = x; then 6719 if test "x${is_cross_compiler}" = xyes; then 6720 CFLAGS_FOR_TARGET="-g -O2" 6721 else 6722 CFLAGS_FOR_TARGET=$CFLAGS 6723 case " $CFLAGS " in 6724 *" -O2 "*) ;; 6725 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; 6726 esac 6727 case " $CFLAGS " in 6728 *" -g "* | *" -g3 "*) ;; 6729 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; 6730 esac 6731 fi 6732fi 6733 6734 6735if test "x$CXXFLAGS_FOR_TARGET" = x; then 6736 if test "x${is_cross_compiler}" = xyes; then 6737 CXXFLAGS_FOR_TARGET="-g -O2" 6738 else 6739 CXXFLAGS_FOR_TARGET=$CXXFLAGS 6740 case " $CXXFLAGS " in 6741 *" -O2 "*) ;; 6742 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; 6743 esac 6744 case " $CXXFLAGS " in 6745 *" -g "* | *" -g3 "*) ;; 6746 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; 6747 esac 6748 fi 6749fi 6750 6751 6752 6753 6754# Handle --with-headers=XXX. If the value is not "yes", the contents of 6755# the named directory are copied to $(tooldir)/sys-include. 6756if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then 6757 if test x${is_cross_compiler} = xno ; then 6758 echo 1>&2 '***' --with-headers is only supported when cross compiling 6759 exit 1 6760 fi 6761 if test x"${with_headers}" != xyes ; then 6762 x=${gcc_cv_tool_prefix} 6763 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" 6764 fi 6765fi 6766 6767# Handle --with-libs=XXX. If the value is not "yes", the contents of 6768# the name directories are copied to $(tooldir)/lib. Multiple directories 6769# are permitted. 6770if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 6771 if test x${is_cross_compiler} = xno ; then 6772 echo 1>&2 '***' --with-libs is only supported when cross compiling 6773 exit 1 6774 fi 6775 if test x"${with_libs}" != xyes ; then 6776 # Copy the libraries in reverse order, so that files in the first named 6777 # library override files in subsequent libraries. 6778 x=${gcc_cv_tool_prefix} 6779 for l in ${with_libs}; do 6780 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" 6781 done 6782 fi 6783fi 6784 6785# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. 6786# 6787# This is done by determining whether or not the appropriate directory 6788# is available, and by checking whether or not specific configurations 6789# have requested that this magic not happen. 6790# 6791# The command line options always override the explicit settings in 6792# configure.in, and the settings in configure.in override this magic. 6793# 6794# If the default for a toolchain is to use GNU as and ld, and you don't 6795# want to do that, then you should use the --without-gnu-as and 6796# --without-gnu-ld options for the configure script. Similarly, if 6797# the default is to use the included zlib and you don't want to do that, 6798# you should use the --with-system-zlib option for the configure script. 6799 6800if test x${use_gnu_as} = x && 6801 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then 6802 with_gnu_as=yes 6803 extra_host_args="$extra_host_args --with-gnu-as" 6804fi 6805 6806if test x${use_gnu_ld} = x && 6807 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then 6808 with_gnu_ld=yes 6809 extra_host_args="$extra_host_args --with-gnu-ld" 6810fi 6811 6812if test x${use_included_zlib} = x && 6813 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then 6814 : 6815else 6816 with_system_zlib=yes 6817 extra_host_args="$extra_host_args --with-system-zlib" 6818fi 6819 6820# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure 6821# can detect this case. 6822 6823if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then 6824 with_newlib=yes 6825 extra_host_args="$extra_host_args --with-newlib" 6826fi 6827 6828# Handle ${copy_dirs} 6829set fnord ${copy_dirs} 6830shift 6831while test $# != 0 ; do 6832 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then 6833 : 6834 else 6835 echo Copying $1 to $2 6836 6837 # Use the install script to create the directory and all required 6838 # parent directories. 6839 if test -d $2 ; then 6840 : 6841 else 6842 echo >config.temp 6843 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED 6844 fi 6845 6846 # Copy the directory, assuming we have tar. 6847 # FIXME: Should we use B in the second tar? Not all systems support it. 6848 (cd $1; tar -cf - .) | (cd $2; tar -xpf -) 6849 6850 # It is the responsibility of the user to correctly adjust all 6851 # symlinks. If somebody can figure out how to handle them correctly 6852 # here, feel free to add the code. 6853 6854 echo $1 > $2/COPIED 6855 fi 6856 shift; shift 6857done 6858 6859# Determine a target-dependent exec_prefix that the installed 6860# gcc will search in. Keep this list sorted by triplet, with 6861# the *-*-osname triplets last. 6862md_exec_prefix= 6863case "${target}" in 6864 i[34567]86-pc-msdosdjgpp*) 6865 md_exec_prefix=/dev/env/DJDIR/bin 6866 ;; 6867 *-*-hpux* | \ 6868 *-*-nto-qnx* | \ 6869 *-*-solaris2*) 6870 md_exec_prefix=/usr/ccs/bin 6871 ;; 6872esac 6873 6874extra_arflags_for_target= 6875extra_nmflags_for_target= 6876extra_ranlibflags_for_target= 6877target_makefile_frag=/dev/null 6878case "${target}" in 6879 spu-*-*) 6880 target_makefile_frag="config/mt-spu" 6881 ;; 6882 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 6883 target_makefile_frag="config/mt-sde" 6884 ;; 6885 mipsisa*-*-elfoabi*) 6886 target_makefile_frag="config/mt-mips-elfoabi" 6887 ;; 6888 mips*-*-*linux* | mips*-*-gnu*) 6889 target_makefile_frag="config/mt-mips-gnu" 6890 ;; 6891 nios2-*-elf*) 6892 target_makefile_frag="config/mt-nios2-elf" 6893 ;; 6894 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 6895 target_makefile_frag="config/mt-gnu" 6896 ;; 6897 *-*-aix4.[3456789]* | *-*-aix[56789].*) 6898 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 6899 # commands to handle both 32-bit and 64-bit objects. These flags are 6900 # harmless if we're using GNU nm or ar. 6901 extra_arflags_for_target=" -X32_64" 6902 extra_nmflags_for_target=" -B -X32_64" 6903 ;; 6904esac 6905 6906alphaieee_frag=/dev/null 6907case $target in 6908 alpha*-*-*) 6909 # This just makes sure to use the -mieee option to build target libs. 6910 # This should probably be set individually by each library. 6911 alphaieee_frag="config/mt-alphaieee" 6912 ;; 6913esac 6914 6915# If --enable-target-optspace always use -Os instead of -O2 to build 6916# the target libraries, similarly if it is not specified, use -Os 6917# on selected platforms. 6918ospace_frag=/dev/null 6919case "${enable_target_optspace}:${target}" in 6920 yes:*) 6921 ospace_frag="config/mt-ospace" 6922 ;; 6923 :d30v-*) 6924 ospace_frag="config/mt-d30v" 6925 ;; 6926 :m32r-* | :d10v-* | :fr30-*) 6927 ospace_frag="config/mt-ospace" 6928 ;; 6929 no:* | :*) 6930 ;; 6931 *) 6932 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 6933 ;; 6934esac 6935 6936# Some systems (e.g., one of the i386-aix systems the gas testers are 6937# using) don't handle "\$" correctly, so don't use it here. 6938tooldir='${exec_prefix}'/${target_noncanonical} 6939build_tooldir=${tooldir} 6940 6941# Create a .gdbinit file which runs the one in srcdir 6942# and tells GDB to look there for source files. 6943 6944if test -r ${srcdir}/.gdbinit ; then 6945 case ${srcdir} in 6946 .) ;; 6947 *) cat > ./.gdbinit <<EOF 6948# ${NO_EDIT} 6949dir ${srcdir} 6950dir . 6951source ${srcdir}/.gdbinit 6952EOF 6953 ;; 6954 esac 6955fi 6956 6957# Make sure that the compiler is able to generate an executable. If it 6958# can't, we are probably in trouble. We don't care whether we can run the 6959# executable--we might be using a cross compiler--we only care whether it 6960# can be created. At this point the main configure script has set CC. 6961we_are_ok=no 6962echo "int main () { return 0; }" > conftest.c 6963${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 6964if test $? = 0 ; then 6965 if test -s conftest || test -s conftest.exe ; then 6966 we_are_ok=yes 6967 fi 6968fi 6969case $we_are_ok in 6970 no) 6971 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." 6972 echo 1>&2 "*** You must set the environment variable CC to a working compiler." 6973 rm -f conftest* 6974 exit 1 6975 ;; 6976esac 6977rm -f conftest* 6978 6979# Decide which environment variable is used to find dynamic libraries. 6980case "${host}" in 6981 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; 6982 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; 6983 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; 6984 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; 6985esac 6986 6987# On systems where the dynamic library environment variable is PATH, 6988# gcc/ will put dynamic libraries into a subdirectory to avoid adding 6989# built executables to PATH. 6990if test "$RPATH_ENVVAR" = PATH; then 6991 GCC_SHLIB_SUBDIR=/shlib 6992else 6993 GCC_SHLIB_SUBDIR= 6994fi 6995 6996# Adjust the toplevel makefile according to whether bootstrap was selected. 6997case $enable_bootstrap in 6998 yes) 6999 bootstrap_suffix=bootstrap 7000 BUILD_CONFIG=bootstrap-debug 7001 ;; 7002 no) 7003 bootstrap_suffix=no-bootstrap 7004 BUILD_CONFIG= 7005 ;; 7006esac 7007 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 7009$as_echo_n "checking for default BUILD_CONFIG... " >&6; } 7010 7011 7012# Check whether --with-build-config was given. 7013if test "${with_build_config+set}" = set; then : 7014 withval=$with_build_config; case $with_build_config in 7015 yes) with_build_config= ;; 7016 no) with_build_config= BUILD_CONFIG= ;; 7017 esac 7018fi 7019 7020 7021if test "x${with_build_config}" != x; then 7022 BUILD_CONFIG=$with_build_config 7023else 7024 case $BUILD_CONFIG in 7025 bootstrap-debug) 7026 if echo "int f (void) { return 0; }" > conftest.c && 7027 ${CC} -c conftest.c && 7028 mv conftest.o conftest.o.g0 && 7029 ${CC} -c -g conftest.c && 7030 mv conftest.o conftest.o.g && 7031 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then 7032 : 7033 else 7034 BUILD_CONFIG= 7035 fi 7036 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g 7037 ;; 7038 esac 7039fi 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 7041$as_echo "$BUILD_CONFIG" >&6; } 7042 7043 7044# Use same top-level configure hooks in libgcc/libstdc++/libvtv. 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 7046$as_echo_n "checking for --enable-vtable-verify... " >&6; } 7047# Check whether --enable-vtable-verify was given. 7048if test "${enable_vtable_verify+set}" = set; then : 7049 enableval=$enable_vtable_verify; case "$enableval" in 7050 yes) enable_vtable_verify=yes ;; 7051 no) enable_vtable_verify=no ;; 7052 *) enable_vtable_verify=no;; 7053 esac 7054else 7055 enable_vtable_verify=no 7056fi 7057 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 7059$as_echo "$enable_vtable_verify" >&6; } 7060 7061# Record target_configdirs and the configure arguments for target and 7062# build configuration in Makefile. 7063target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 7064build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` 7065bootstrap_fixincludes=no 7066 7067# If we are building libgomp, bootstrap it. 7068if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then 7069 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, 7070fi 7071 7072# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan 7073# or bootstrap-ubsan, bootstrap it. 7074if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then 7075 case "$BUILD_CONFIG" in 7076 *bootstrap-asan* | *bootstrap-ubsan* ) 7077 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, 7078 bootstrap_fixincludes=yes 7079 ;; 7080 esac 7081fi 7082 7083# If we are building libvtv and --enable-vtable-verify, bootstrap it. 7084if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && 7085 test "$enable_vtable_verify" != no; then 7086 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, 7087fi 7088 7089# If we are building libmpx, bootstrap it. 7090if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then 7091 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, 7092fi 7093 7094# Determine whether gdb needs tk/tcl or not. 7095# Use 'maybe' since enable_gdbtk might be true even if tk isn't available 7096# and in that case we want gdb to be built without tk. Ugh! 7097# In fact I believe gdb is the *only* package directly dependent on tk, 7098# so we should be able to put the 'maybe's in unconditionally and 7099# leave out the maybe dependencies when enable_gdbtk is false. I'm not 7100# 100% sure that that's safe though. 7101 7102gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" 7103case "$enable_gdbtk" in 7104 no) 7105 GDB_TK="" ;; 7106 yes) 7107 GDB_TK="${gdb_tk}" ;; 7108 *) 7109 # Only add the dependency on gdbtk when GDBtk is part of the gdb 7110 # distro. Eventually someone will fix this and move Insight, nee 7111 # gdbtk to a separate directory. 7112 if test -d ${srcdir}/gdb/gdbtk ; then 7113 GDB_TK="${gdb_tk}" 7114 else 7115 GDB_TK="" 7116 fi 7117 ;; 7118esac 7119CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` 7120INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` 7121 7122# Strip out unwanted targets. 7123 7124# While at that, we remove Makefiles if we were started for recursive 7125# configuration, so that the top-level Makefile reconfigures them, 7126# like we used to do when configure itself was recursive. 7127 7128# Loop over modules. We used to use the "$extrasub" feature from Autoconf 7129# but now we're fixing up the Makefile ourselves with the additional 7130# commands passed to AC_CONFIG_FILES. Use separate variables 7131# extrasub-{build,host,target} not because there is any reason to split 7132# the substitutions up that way, but only to remain below the limit of 7133# 99 commands in a script, for HP-UX sed. 7134# Do not nest @if/@endif pairs, because configure will not warn you at all. 7135 7136case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in 7137 yes:yes:*\ gold\ *:*,c++,*) ;; 7138 yes:yes:*\ gold\ *:*) 7139 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 7140 ;; 7141esac 7142 7143extrasub_build= 7144for module in ${build_configdirs} ; do 7145 if test -z "${no_recursion}" \ 7146 && test -f ${build_subdir}/${module}/Makefile; then 7147 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" 7148 rm -f ${build_subdir}/${module}/Makefile 7149 fi 7150 extrasub_build="$extrasub_build 7151/^@if build-$module\$/d 7152/^@endif build-$module\$/d 7153/^@if build-$module-$bootstrap_suffix\$/d 7154/^@endif build-$module-$bootstrap_suffix\$/d" 7155done 7156extrasub_host= 7157for module in ${configdirs} ; do 7158 if test -z "${no_recursion}"; then 7159 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do 7160 if test -f ${file}; then 7161 echo 1>&2 "*** removing ${file} to force reconfigure" 7162 rm -f ${file} 7163 fi 7164 done 7165 fi 7166 case ${module},${bootstrap_fixincludes} in 7167 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; 7168 *) host_bootstrap_suffix=$bootstrap_suffix ;; 7169 esac 7170 extrasub_host="$extrasub_host 7171/^@if $module\$/d 7172/^@endif $module\$/d 7173/^@if $module-$host_bootstrap_suffix\$/d 7174/^@endif $module-$host_bootstrap_suffix\$/d" 7175done 7176extrasub_target= 7177for module in ${target_configdirs} ; do 7178 if test -z "${no_recursion}" \ 7179 && test -f ${target_subdir}/${module}/Makefile; then 7180 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" 7181 rm -f ${target_subdir}/${module}/Makefile 7182 fi 7183 7184 # We only bootstrap target libraries listed in bootstrap_target_libs. 7185 case $bootstrap_target_libs in 7186 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; 7187 *) target_bootstrap_suffix=no-bootstrap ;; 7188 esac 7189 7190 extrasub_target="$extrasub_target 7191/^@if target-$module\$/d 7192/^@endif target-$module\$/d 7193/^@if target-$module-$target_bootstrap_suffix\$/d 7194/^@endif target-$module-$target_bootstrap_suffix\$/d" 7195done 7196 7197# Do the final fixup along with target modules. 7198extrasub_target="$extrasub_target 7199/^@if /,/^@endif /d" 7200 7201# Create the serialization dependencies. This uses a temporary file. 7202 7203# Check whether --enable-serial-configure was given. 7204if test "${enable_serial_configure+set}" = set; then : 7205 enableval=$enable_serial_configure; 7206fi 7207 7208 7209case ${enable_serial_configure} in 7210 yes) 7211 enable_serial_build_configure=yes 7212 enable_serial_host_configure=yes 7213 enable_serial_target_configure=yes 7214 ;; 7215esac 7216 7217# These force 'configure's to be done one at a time, to avoid problems 7218# with contention over a shared config.cache. 7219rm -f serdep.tmp 7220echo '# serdep.tmp' > serdep.tmp 7221olditem= 7222test "x${enable_serial_build_configure}" = xyes && 7223for item in ${build_configdirs} ; do 7224 case ${olditem} in 7225 "") ;; 7226 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; 7227 esac 7228 olditem=${item} 7229done 7230olditem= 7231test "x${enable_serial_host_configure}" = xyes && 7232for item in ${configdirs} ; do 7233 case ${olditem} in 7234 "") ;; 7235 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; 7236 esac 7237 olditem=${item} 7238done 7239olditem= 7240test "x${enable_serial_target_configure}" = xyes && 7241for item in ${target_configdirs} ; do 7242 case ${olditem} in 7243 "") ;; 7244 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; 7245 esac 7246 olditem=${item} 7247done 7248serialization_dependencies=serdep.tmp 7249 7250 7251# Base args. Strip norecursion, cache-file, srcdir, host, build, 7252# target, nonopt, and variable assignments. These are the ones we 7253# might not want to pass down to subconfigures. The exception being 7254# --cache-file=/dev/null, which is used to turn off the use of cache 7255# files altogether, and which should be passed on to subconfigures. 7256# Also strip program-prefix, program-suffix, and program-transform-name, 7257# so that we can pass down a consistent program-transform-name. 7258baseargs= 7259tbaseargs= 7260keep_next=no 7261skip_next=no 7262eval "set -- $ac_configure_args" 7263for ac_arg 7264do 7265 if test X"$skip_next" = X"yes"; then 7266 skip_next=no 7267 continue 7268 fi 7269 if test X"$keep_next" = X"yes"; then 7270 case $ac_arg in 7271 *\'*) 7272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 7273 esac 7274 baseargs="$baseargs '$ac_arg'" 7275 tbaseargs="$tbaseargs '$ac_arg'" 7276 keep_next=no 7277 continue 7278 fi 7279 7280 # Handle separated arguments. Based on the logic generated by 7281 # autoconf 2.59. 7282 case $ac_arg in 7283 *=* | --config-cache | -C | -disable-* | --disable-* \ 7284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 7285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 7286 | -with-* | --with-* | -without-* | --without-* | --x) 7287 separate_arg=no 7288 ;; 7289 -*) 7290 separate_arg=yes 7291 ;; 7292 *) 7293 separate_arg=no 7294 ;; 7295 esac 7296 7297 skip_targ=no 7298 case $ac_arg in 7299 7300 --with-* | --without-*) 7301 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` 7302 7303 case $libopt in 7304 *[-_]include) 7305 lib=`echo "$libopt" | sed 's,[-_]include$,,'` 7306 ;; 7307 *[-_]lib) 7308 lib=`echo "$libopt" | sed 's,[-_]lib$,,'` 7309 ;; 7310 *) 7311 lib=$libopt 7312 ;; 7313 esac 7314 7315 7316 case $lib in 7317 mpc | mpfr | gmp | isl) 7318 # If we're processing --with-$lib, --with-$lib-include or 7319 # --with-$lib-lib, for one of the libs above, and target is 7320 # different from host, don't pass the current argument to any 7321 # target library's configure. 7322 if test x$is_cross_compiler = xyes; then 7323 skip_targ=yes 7324 fi 7325 ;; 7326 esac 7327 ;; 7328 esac 7329 7330 case "$ac_arg" in 7331 --cache-file=/dev/null | \ 7332 -cache-file=/dev/null ) 7333 # Handled here to avoid the test to skip args below. 7334 baseargs="$baseargs '$ac_arg'" 7335 tbaseargs="$tbaseargs '$ac_arg'" 7336 # Assert: $separate_arg should always be no. 7337 keep_next=$separate_arg 7338 ;; 7339 --no*) 7340 continue 7341 ;; 7342 --c* | \ 7343 --sr* | \ 7344 --ho* | \ 7345 --bu* | \ 7346 --t* | \ 7347 --program-* | \ 7348 -cache_file* | \ 7349 -srcdir* | \ 7350 -host* | \ 7351 -build* | \ 7352 -target* | \ 7353 -program-prefix* | \ 7354 -program-suffix* | \ 7355 -program-transform-name* ) 7356 skip_next=$separate_arg 7357 continue 7358 ;; 7359 -*) 7360 # An option. Add it. 7361 case $ac_arg in 7362 *\'*) 7363 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 7364 esac 7365 baseargs="$baseargs '$ac_arg'" 7366 if test X"$skip_targ" = Xno; then 7367 tbaseargs="$tbaseargs '$ac_arg'" 7368 fi 7369 keep_next=$separate_arg 7370 ;; 7371 *) 7372 # Either a variable assignment, or a nonopt (triplet). Don't 7373 # pass it down; let the Makefile handle this. 7374 continue 7375 ;; 7376 esac 7377done 7378# Remove the initial space we just introduced and, as these will be 7379# expanded by make, quote '$'. 7380baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 7381 7382# Add in --program-transform-name, after --program-prefix and 7383# --program-suffix have been applied to it. Autoconf has already 7384# doubled dollar signs and backslashes in program_transform_name; we want 7385# the backslashes un-doubled, and then the entire thing wrapped in single 7386# quotes, because this will be expanded first by make and then by the shell. 7387# Also, because we want to override the logic in subdir configure scripts to 7388# choose program_transform_name, replace any s,x,x, with s,y,y,. 7389sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out 7390${program_transform_name} 7391EOF_SED 7392gcc_transform_name=`cat conftestsed.out` 7393rm -f conftestsed.out 7394baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" 7395tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" 7396if test "$silent" = yes; then 7397 baseargs="$baseargs --silent" 7398 tbaseargs="$tbaseargs --silent" 7399fi 7400baseargs="$baseargs --disable-option-checking" 7401tbaseargs="$tbaseargs --disable-option-checking" 7402 7403# Record and document user additions to sub configure arguments. 7404 7405 7406 7407 7408# For the build-side libraries, we just need to pretend we're native, 7409# and not use the same cache file. Multilibs are neither needed nor 7410# desired. We can't even use the same cache file for all build-side 7411# libraries, as they're compiled differently; some with C, some with 7412# C++ or with different feature-enabling options. 7413build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" 7414 7415# For host modules, accept cache file option, or specification as blank. 7416case "${cache_file}" in 7417"") # empty 7418 cache_file_option="" ;; 7419/* | [A-Za-z]:[\\/]* ) # absolute path 7420 cache_file_option="--cache-file=${cache_file}" ;; 7421*) # relative path 7422 cache_file_option="--cache-file=../${cache_file}" ;; 7423esac 7424 7425# Host dirs don't like to share a cache file either, horribly enough. 7426# This seems to be due to autoconf 2.5x stupidity. 7427host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" 7428 7429target_configargs="$target_configargs ${tbaseargs}" 7430 7431# Passing a --with-cross-host argument lets the target libraries know 7432# whether they are being built with a cross-compiler or being built 7433# native. However, it would be better to use other mechanisms to make the 7434# sorts of decisions they want to make on this basis. Please consider 7435# this option to be deprecated. FIXME. 7436if test x${is_cross_compiler} = xyes ; then 7437 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" 7438fi 7439 7440# Special user-friendly check for native x86_64-linux build, if 7441# multilib is not explicitly enabled. 7442case "$target:$have_compiler:$host:$target:$enable_multilib" in 7443 x86_64-*linux*:yes:$build:$build:) 7444 # Make sure we have a developement environment that handles 32-bit 7445 dev64=no 7446 echo "int main () { return 0; }" > conftest.c 7447 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 7448 if test $? = 0 ; then 7449 if test -s conftest || test -s conftest.exe ; then 7450 dev64=yes 7451 fi 7452 fi 7453 rm -f conftest* 7454 if test x${dev64} != xyes ; then 7455 as_fn_error "I suspect your system does not have 32-bit developement 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 7456 fi 7457 ;; 7458esac 7459 7460# Default to --enable-multilib. 7461if test x${enable_multilib} = x ; then 7462 target_configargs="--enable-multilib ${target_configargs}" 7463fi 7464 7465# Pass --with-newlib if appropriate. Note that target_configdirs has 7466# changed from the earlier setting of with_newlib. 7467if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then 7468 target_configargs="--with-newlib ${target_configargs}" 7469fi 7470 7471# Different target subdirs use different values of certain variables 7472# (notably CXX). Worse, multilibs use *lots* of different values. 7473# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that 7474# it doesn't automatically accept command-line overrides of them. 7475# This means it's not safe for target subdirs to share a cache file, 7476# which is disgusting, but there you have it. Hopefully this can be 7477# fixed in future. It's still worthwhile to use a cache file for each 7478# directory. I think. 7479 7480# Pass the appropriate --build, --host, --target and --cache-file arguments. 7481# We need to pass --target, as newer autoconf's requires consistency 7482# for target_alias and gcc doesn't manage it consistently. 7483target_configargs="--cache-file=./config.cache ${target_configargs}" 7484 7485FLAGS_FOR_TARGET= 7486case " $target_configdirs " in 7487 *" newlib "*) 7488 case " $target_configargs " in 7489 *" --with-newlib "*) 7490 case "$target" in 7491 *-cygwin*) 7492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' 7493 ;; 7494 esac 7495 7496 # If we're not building GCC, don't discard standard headers. 7497 if test -d ${srcdir}/gcc; then 7498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' 7499 7500 if test "${build}" != "${host}"; then 7501 # On Canadian crosses, CC_FOR_TARGET will have already been set 7502 # by `configure', so we won't have an opportunity to add -Bgcc/ 7503 # to it. This is right: we don't want to search that directory 7504 # for binaries, but we want the header files in there, so add 7505 # them explicitly. 7506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' 7507 7508 # Someone might think of using the pre-installed headers on 7509 # Canadian crosses, in case the installed compiler is not fully 7510 # compatible with the compiler being built. In this case, it 7511 # would be better to flag an error than risking having 7512 # incompatible object files being constructed. We can't 7513 # guarantee that an error will be flagged, but let's hope the 7514 # compiler will do it, when presented with incompatible header 7515 # files. 7516 fi 7517 fi 7518 7519 case "${target}-${is_cross_compiler}" in 7520 i[3456789]86-*-linux*-no) 7521 # Here host == target, so we don't need to build gcc, 7522 # so we don't want to discard standard headers. 7523 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` 7524 ;; 7525 *) 7526 # If we're building newlib, use its generic headers last, but search 7527 # for any libc-related directories first (so make it the last -B 7528 # switch). 7529 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' 7530 7531 # If we're building libgloss, find the startup file, simulator library 7532 # and linker script. 7533 case " $target_configdirs " in 7534 *" libgloss "*) 7535 # Look for startup file, simulator library and maybe linker script. 7536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" 7537 # Look for libnosys.a in case the target needs it. 7538 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' 7539 # Most targets have the linker script in the source directory. 7540 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" 7541 ;; 7542 esac 7543 ;; 7544 esac 7545 ;; 7546 esac 7547 ;; 7548esac 7549 7550case "$target" in 7551 x86_64-*mingw* | *-w64-mingw*) 7552 # MinGW-w64 does not use newlib, nor does it use winsup. It may, 7553 # however, use a symlink named 'mingw' in ${prefix} . 7554 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' 7555 ;; 7556 *-mingw*) 7557 # MinGW can't be handled as Cygwin above since it does not use newlib. 7558 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' 7559 ;; 7560esac 7561 7562# Allow the user to override the flags for 7563# our build compiler if desired. 7564if test x"${build}" = x"${host}" ; then 7565 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 7566 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} 7567 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} 7568fi 7569 7570# On Canadian crosses, we'll be searching the right directories for 7571# the previously-installed cross compiler, so don't bother to add 7572# flags for directories within the install tree of the compiler 7573# being built; programs in there won't even run. 7574if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then 7575 # Search for pre-installed headers if nothing else fits. 7576 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' 7577fi 7578 7579if test "x${use_gnu_ld}" = x && 7580 echo " ${configdirs} " | grep " ld " > /dev/null ; then 7581 # Arrange for us to find uninstalled linker scripts. 7582 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' 7583fi 7584 7585# Search for other target-specific linker scripts and such. 7586case "${target}" in 7587 mep*) 7588 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" 7589 ;; 7590esac 7591 7592# Makefile fragments. 7593for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; 7594do 7595 eval fragval=\$$frag 7596 if test $fragval != /dev/null; then 7597 eval $frag=${srcdir}/$fragval 7598 fi 7599done 7600 7601 7602 7603 7604 7605# Miscellanea: directories, flags, etc. 7606 7607 7608 7609 7610 7611 7612 7613 7614# Build module lists & subconfigure args. 7615 7616 7617 7618# Host module lists & subconfigure args. 7619 7620 7621 7622 7623# Target module lists & subconfigure args. 7624 7625 7626 7627# Build tools. 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645# Generate default definitions for YACC, M4, LEX and other programs that run 7646# on the build machine. These are used if the Makefile can't locate these 7647# programs in objdir. 7648MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 7649 7650for ac_prog in 'bison -y' byacc yacc 7651do 7652 # Extract the first word of "$ac_prog", so it can be a program name with args. 7653set dummy $ac_prog; ac_word=$2 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7655$as_echo_n "checking for $ac_word... " >&6; } 7656if test "${ac_cv_prog_YACC+set}" = set; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 if test -n "$YACC"; then 7660 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7661else 7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7663for as_dir in $PATH 7664do 7665 IFS=$as_save_IFS 7666 test -z "$as_dir" && as_dir=. 7667 for ac_exec_ext in '' $ac_executable_extensions; do 7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7669 ac_cv_prog_YACC="$ac_prog" 7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7671 break 2 7672 fi 7673done 7674 done 7675IFS=$as_save_IFS 7676 7677fi 7678fi 7679YACC=$ac_cv_prog_YACC 7680if test -n "$YACC"; then 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7682$as_echo "$YACC" >&6; } 7683else 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7685$as_echo "no" >&6; } 7686fi 7687 7688 7689 test -n "$YACC" && break 7690done 7691test -n "$YACC" || YACC="$MISSING bison -y" 7692 7693case " $build_configdirs " in 7694 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; 7695esac 7696 7697for ac_prog in bison 7698do 7699 # Extract the first word of "$ac_prog", so it can be a program name with args. 7700set dummy $ac_prog; ac_word=$2 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7702$as_echo_n "checking for $ac_word... " >&6; } 7703if test "${ac_cv_prog_BISON+set}" = set; then : 7704 $as_echo_n "(cached) " >&6 7705else 7706 if test -n "$BISON"; then 7707 ac_cv_prog_BISON="$BISON" # Let the user override the test. 7708else 7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7710for as_dir in $PATH 7711do 7712 IFS=$as_save_IFS 7713 test -z "$as_dir" && as_dir=. 7714 for ac_exec_ext in '' $ac_executable_extensions; do 7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7716 ac_cv_prog_BISON="$ac_prog" 7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7718 break 2 7719 fi 7720done 7721 done 7722IFS=$as_save_IFS 7723 7724fi 7725fi 7726BISON=$ac_cv_prog_BISON 7727if test -n "$BISON"; then 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 7729$as_echo "$BISON" >&6; } 7730else 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7732$as_echo "no" >&6; } 7733fi 7734 7735 7736 test -n "$BISON" && break 7737done 7738test -n "$BISON" || BISON="$MISSING bison" 7739 7740case " $build_configdirs " in 7741 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; 7742esac 7743 7744for ac_prog in gm4 gnum4 m4 7745do 7746 # Extract the first word of "$ac_prog", so it can be a program name with args. 7747set dummy $ac_prog; ac_word=$2 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7749$as_echo_n "checking for $ac_word... " >&6; } 7750if test "${ac_cv_prog_M4+set}" = set; then : 7751 $as_echo_n "(cached) " >&6 7752else 7753 if test -n "$M4"; then 7754 ac_cv_prog_M4="$M4" # Let the user override the test. 7755else 7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7757for as_dir in $PATH 7758do 7759 IFS=$as_save_IFS 7760 test -z "$as_dir" && as_dir=. 7761 for ac_exec_ext in '' $ac_executable_extensions; do 7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7763 ac_cv_prog_M4="$ac_prog" 7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7765 break 2 7766 fi 7767done 7768 done 7769IFS=$as_save_IFS 7770 7771fi 7772fi 7773M4=$ac_cv_prog_M4 7774if test -n "$M4"; then 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 7776$as_echo "$M4" >&6; } 7777else 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7779$as_echo "no" >&6; } 7780fi 7781 7782 7783 test -n "$M4" && break 7784done 7785test -n "$M4" || M4="$MISSING m4" 7786 7787case " $build_configdirs " in 7788 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; 7789esac 7790 7791for ac_prog in flex lex 7792do 7793 # Extract the first word of "$ac_prog", so it can be a program name with args. 7794set dummy $ac_prog; ac_word=$2 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7796$as_echo_n "checking for $ac_word... " >&6; } 7797if test "${ac_cv_prog_LEX+set}" = set; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 if test -n "$LEX"; then 7801 ac_cv_prog_LEX="$LEX" # Let the user override the test. 7802else 7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7804for as_dir in $PATH 7805do 7806 IFS=$as_save_IFS 7807 test -z "$as_dir" && as_dir=. 7808 for ac_exec_ext in '' $ac_executable_extensions; do 7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7810 ac_cv_prog_LEX="$ac_prog" 7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7812 break 2 7813 fi 7814done 7815 done 7816IFS=$as_save_IFS 7817 7818fi 7819fi 7820LEX=$ac_cv_prog_LEX 7821if test -n "$LEX"; then 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 7823$as_echo "$LEX" >&6; } 7824else 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7826$as_echo "no" >&6; } 7827fi 7828 7829 7830 test -n "$LEX" && break 7831done 7832test -n "$LEX" || LEX="$MISSING flex" 7833 7834case " $build_configdirs " in 7835 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; 7836 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; 7837esac 7838 7839for ac_prog in flex 7840do 7841 # Extract the first word of "$ac_prog", so it can be a program name with args. 7842set dummy $ac_prog; ac_word=$2 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7844$as_echo_n "checking for $ac_word... " >&6; } 7845if test "${ac_cv_prog_FLEX+set}" = set; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 if test -n "$FLEX"; then 7849 ac_cv_prog_FLEX="$FLEX" # Let the user override the test. 7850else 7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7852for as_dir in $PATH 7853do 7854 IFS=$as_save_IFS 7855 test -z "$as_dir" && as_dir=. 7856 for ac_exec_ext in '' $ac_executable_extensions; do 7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7858 ac_cv_prog_FLEX="$ac_prog" 7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7860 break 2 7861 fi 7862done 7863 done 7864IFS=$as_save_IFS 7865 7866fi 7867fi 7868FLEX=$ac_cv_prog_FLEX 7869if test -n "$FLEX"; then 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 7871$as_echo "$FLEX" >&6; } 7872else 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7874$as_echo "no" >&6; } 7875fi 7876 7877 7878 test -n "$FLEX" && break 7879done 7880test -n "$FLEX" || FLEX="$MISSING flex" 7881 7882case " $build_configdirs " in 7883 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; 7884esac 7885 7886for ac_prog in makeinfo 7887do 7888 # Extract the first word of "$ac_prog", so it can be a program name with args. 7889set dummy $ac_prog; ac_word=$2 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7891$as_echo_n "checking for $ac_word... " >&6; } 7892if test "${ac_cv_prog_MAKEINFO+set}" = set; then : 7893 $as_echo_n "(cached) " >&6 7894else 7895 if test -n "$MAKEINFO"; then 7896 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 7897else 7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7899for as_dir in $PATH 7900do 7901 IFS=$as_save_IFS 7902 test -z "$as_dir" && as_dir=. 7903 for ac_exec_ext in '' $ac_executable_extensions; do 7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7905 ac_cv_prog_MAKEINFO="$ac_prog" 7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7907 break 2 7908 fi 7909done 7910 done 7911IFS=$as_save_IFS 7912 7913fi 7914fi 7915MAKEINFO=$ac_cv_prog_MAKEINFO 7916if test -n "$MAKEINFO"; then 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 7918$as_echo "$MAKEINFO" >&6; } 7919else 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7921$as_echo "no" >&6; } 7922fi 7923 7924 7925 test -n "$MAKEINFO" && break 7926done 7927test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" 7928 7929case " $build_configdirs " in 7930 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; 7931 *) 7932 7933 # For an installed makeinfo, we require it to be from texinfo 4.7 or 7934 # higher, else we use the "missing" dummy. 7935 if ${MAKEINFO} --version \ 7936 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then 7937 : 7938 else 7939 MAKEINFO="$MISSING makeinfo" 7940 fi 7941 ;; 7942 7943esac 7944 7945# FIXME: expect and dejagnu may become build tools? 7946 7947for ac_prog in expect 7948do 7949 # Extract the first word of "$ac_prog", so it can be a program name with args. 7950set dummy $ac_prog; ac_word=$2 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7952$as_echo_n "checking for $ac_word... " >&6; } 7953if test "${ac_cv_prog_EXPECT+set}" = set; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 if test -n "$EXPECT"; then 7957 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. 7958else 7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7960for as_dir in $PATH 7961do 7962 IFS=$as_save_IFS 7963 test -z "$as_dir" && as_dir=. 7964 for ac_exec_ext in '' $ac_executable_extensions; do 7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7966 ac_cv_prog_EXPECT="$ac_prog" 7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7968 break 2 7969 fi 7970done 7971 done 7972IFS=$as_save_IFS 7973 7974fi 7975fi 7976EXPECT=$ac_cv_prog_EXPECT 7977if test -n "$EXPECT"; then 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 7979$as_echo "$EXPECT" >&6; } 7980else 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7982$as_echo "no" >&6; } 7983fi 7984 7985 7986 test -n "$EXPECT" && break 7987done 7988test -n "$EXPECT" || EXPECT="expect" 7989 7990case " $configdirs " in 7991 *" expect "*) 7992 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' 7993 ;; 7994esac 7995 7996for ac_prog in runtest 7997do 7998 # Extract the first word of "$ac_prog", so it can be a program name with args. 7999set dummy $ac_prog; ac_word=$2 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8001$as_echo_n "checking for $ac_word... " >&6; } 8002if test "${ac_cv_prog_RUNTEST+set}" = set; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 if test -n "$RUNTEST"; then 8006 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. 8007else 8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8009for as_dir in $PATH 8010do 8011 IFS=$as_save_IFS 8012 test -z "$as_dir" && as_dir=. 8013 for ac_exec_ext in '' $ac_executable_extensions; do 8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8015 ac_cv_prog_RUNTEST="$ac_prog" 8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8017 break 2 8018 fi 8019done 8020 done 8021IFS=$as_save_IFS 8022 8023fi 8024fi 8025RUNTEST=$ac_cv_prog_RUNTEST 8026if test -n "$RUNTEST"; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 8028$as_echo "$RUNTEST" >&6; } 8029else 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031$as_echo "no" >&6; } 8032fi 8033 8034 8035 test -n "$RUNTEST" && break 8036done 8037test -n "$RUNTEST" || RUNTEST="runtest" 8038 8039case " $configdirs " in 8040 *" dejagnu "*) 8041 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' 8042 ;; 8043esac 8044 8045 8046# Host tools. 8047ncn_tool_prefix= 8048test -n "$host_alias" && ncn_tool_prefix=$host_alias- 8049ncn_target_tool_prefix= 8050test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- 8051 8052 8053 8054if test -n "$AR"; then 8055 ac_cv_prog_AR=$AR 8056elif test -n "$ac_cv_prog_AR"; then 8057 AR=$ac_cv_prog_AR 8058fi 8059 8060if test -n "$ac_cv_prog_AR"; then 8061 for ncn_progname in ar; do 8062 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8063set dummy ${ncn_progname}; ac_word=$2 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8065$as_echo_n "checking for $ac_word... " >&6; } 8066if test "${ac_cv_prog_AR+set}" = set; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 if test -n "$AR"; then 8070 ac_cv_prog_AR="$AR" # Let the user override the test. 8071else 8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8073for as_dir in $PATH 8074do 8075 IFS=$as_save_IFS 8076 test -z "$as_dir" && as_dir=. 8077 for ac_exec_ext in '' $ac_executable_extensions; do 8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8079 ac_cv_prog_AR="${ncn_progname}" 8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8081 break 2 8082 fi 8083done 8084 done 8085IFS=$as_save_IFS 8086 8087fi 8088fi 8089AR=$ac_cv_prog_AR 8090if test -n "$AR"; then 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8092$as_echo "$AR" >&6; } 8093else 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8095$as_echo "no" >&6; } 8096fi 8097 8098 8099 done 8100fi 8101 8102for ncn_progname in ar; do 8103 if test -n "$ncn_tool_prefix"; then 8104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8105set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8107$as_echo_n "checking for $ac_word... " >&6; } 8108if test "${ac_cv_prog_AR+set}" = set; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 if test -n "$AR"; then 8112 ac_cv_prog_AR="$AR" # Let the user override the test. 8113else 8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8115for as_dir in $PATH 8116do 8117 IFS=$as_save_IFS 8118 test -z "$as_dir" && as_dir=. 8119 for ac_exec_ext in '' $ac_executable_extensions; do 8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8121 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" 8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8123 break 2 8124 fi 8125done 8126 done 8127IFS=$as_save_IFS 8128 8129fi 8130fi 8131AR=$ac_cv_prog_AR 8132if test -n "$AR"; then 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8134$as_echo "$AR" >&6; } 8135else 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8137$as_echo "no" >&6; } 8138fi 8139 8140 8141 fi 8142 if test -z "$ac_cv_prog_AR" && test $build = $host ; then 8143 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8144set dummy ${ncn_progname}; ac_word=$2 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8146$as_echo_n "checking for $ac_word... " >&6; } 8147if test "${ac_cv_prog_AR+set}" = set; then : 8148 $as_echo_n "(cached) " >&6 8149else 8150 if test -n "$AR"; then 8151 ac_cv_prog_AR="$AR" # Let the user override the test. 8152else 8153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8154for as_dir in $PATH 8155do 8156 IFS=$as_save_IFS 8157 test -z "$as_dir" && as_dir=. 8158 for ac_exec_ext in '' $ac_executable_extensions; do 8159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8160 ac_cv_prog_AR="${ncn_progname}" 8161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8162 break 2 8163 fi 8164done 8165 done 8166IFS=$as_save_IFS 8167 8168fi 8169fi 8170AR=$ac_cv_prog_AR 8171if test -n "$AR"; then 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8173$as_echo "$AR" >&6; } 8174else 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8176$as_echo "no" >&6; } 8177fi 8178 8179 8180 fi 8181 test -n "$ac_cv_prog_AR" && break 8182done 8183 8184if test -z "$ac_cv_prog_AR" ; then 8185 set dummy ar 8186 if test $build = $host ; then 8187 AR="$2" 8188 else 8189 AR="${ncn_tool_prefix}$2" 8190 fi 8191fi 8192 8193 8194 8195if test -n "$AS"; then 8196 ac_cv_prog_AS=$AS 8197elif test -n "$ac_cv_prog_AS"; then 8198 AS=$ac_cv_prog_AS 8199fi 8200 8201if test -n "$ac_cv_prog_AS"; then 8202 for ncn_progname in as; do 8203 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8204set dummy ${ncn_progname}; ac_word=$2 8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8206$as_echo_n "checking for $ac_word... " >&6; } 8207if test "${ac_cv_prog_AS+set}" = set; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 if test -n "$AS"; then 8211 ac_cv_prog_AS="$AS" # Let the user override the test. 8212else 8213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8214for as_dir in $PATH 8215do 8216 IFS=$as_save_IFS 8217 test -z "$as_dir" && as_dir=. 8218 for ac_exec_ext in '' $ac_executable_extensions; do 8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8220 ac_cv_prog_AS="${ncn_progname}" 8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8222 break 2 8223 fi 8224done 8225 done 8226IFS=$as_save_IFS 8227 8228fi 8229fi 8230AS=$ac_cv_prog_AS 8231if test -n "$AS"; then 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8233$as_echo "$AS" >&6; } 8234else 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8236$as_echo "no" >&6; } 8237fi 8238 8239 8240 done 8241fi 8242 8243for ncn_progname in as; do 8244 if test -n "$ncn_tool_prefix"; then 8245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8246set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8248$as_echo_n "checking for $ac_word... " >&6; } 8249if test "${ac_cv_prog_AS+set}" = set; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 if test -n "$AS"; then 8253 ac_cv_prog_AS="$AS" # Let the user override the test. 8254else 8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8256for as_dir in $PATH 8257do 8258 IFS=$as_save_IFS 8259 test -z "$as_dir" && as_dir=. 8260 for ac_exec_ext in '' $ac_executable_extensions; do 8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8262 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" 8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8264 break 2 8265 fi 8266done 8267 done 8268IFS=$as_save_IFS 8269 8270fi 8271fi 8272AS=$ac_cv_prog_AS 8273if test -n "$AS"; then 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8275$as_echo "$AS" >&6; } 8276else 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8278$as_echo "no" >&6; } 8279fi 8280 8281 8282 fi 8283 if test -z "$ac_cv_prog_AS" && test $build = $host ; then 8284 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8285set dummy ${ncn_progname}; ac_word=$2 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8287$as_echo_n "checking for $ac_word... " >&6; } 8288if test "${ac_cv_prog_AS+set}" = set; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 if test -n "$AS"; then 8292 ac_cv_prog_AS="$AS" # Let the user override the test. 8293else 8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8295for as_dir in $PATH 8296do 8297 IFS=$as_save_IFS 8298 test -z "$as_dir" && as_dir=. 8299 for ac_exec_ext in '' $ac_executable_extensions; do 8300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8301 ac_cv_prog_AS="${ncn_progname}" 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8303 break 2 8304 fi 8305done 8306 done 8307IFS=$as_save_IFS 8308 8309fi 8310fi 8311AS=$ac_cv_prog_AS 8312if test -n "$AS"; then 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8314$as_echo "$AS" >&6; } 8315else 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8317$as_echo "no" >&6; } 8318fi 8319 8320 8321 fi 8322 test -n "$ac_cv_prog_AS" && break 8323done 8324 8325if test -z "$ac_cv_prog_AS" ; then 8326 set dummy as 8327 if test $build = $host ; then 8328 AS="$2" 8329 else 8330 AS="${ncn_tool_prefix}$2" 8331 fi 8332fi 8333 8334 8335 8336if test -n "$DLLTOOL"; then 8337 ac_cv_prog_DLLTOOL=$DLLTOOL 8338elif test -n "$ac_cv_prog_DLLTOOL"; then 8339 DLLTOOL=$ac_cv_prog_DLLTOOL 8340fi 8341 8342if test -n "$ac_cv_prog_DLLTOOL"; then 8343 for ncn_progname in dlltool; do 8344 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8345set dummy ${ncn_progname}; ac_word=$2 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8347$as_echo_n "checking for $ac_word... " >&6; } 8348if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 if test -n "$DLLTOOL"; then 8352 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8353else 8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8355for as_dir in $PATH 8356do 8357 IFS=$as_save_IFS 8358 test -z "$as_dir" && as_dir=. 8359 for ac_exec_ext in '' $ac_executable_extensions; do 8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8361 ac_cv_prog_DLLTOOL="${ncn_progname}" 8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8363 break 2 8364 fi 8365done 8366 done 8367IFS=$as_save_IFS 8368 8369fi 8370fi 8371DLLTOOL=$ac_cv_prog_DLLTOOL 8372if test -n "$DLLTOOL"; then 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8374$as_echo "$DLLTOOL" >&6; } 8375else 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8377$as_echo "no" >&6; } 8378fi 8379 8380 8381 done 8382fi 8383 8384for ncn_progname in dlltool; do 8385 if test -n "$ncn_tool_prefix"; then 8386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8387set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8389$as_echo_n "checking for $ac_word... " >&6; } 8390if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 8391 $as_echo_n "(cached) " >&6 8392else 8393 if test -n "$DLLTOOL"; then 8394 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8395else 8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8397for as_dir in $PATH 8398do 8399 IFS=$as_save_IFS 8400 test -z "$as_dir" && as_dir=. 8401 for ac_exec_ext in '' $ac_executable_extensions; do 8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8403 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" 8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8405 break 2 8406 fi 8407done 8408 done 8409IFS=$as_save_IFS 8410 8411fi 8412fi 8413DLLTOOL=$ac_cv_prog_DLLTOOL 8414if test -n "$DLLTOOL"; then 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8416$as_echo "$DLLTOOL" >&6; } 8417else 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8419$as_echo "no" >&6; } 8420fi 8421 8422 8423 fi 8424 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then 8425 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8426set dummy ${ncn_progname}; ac_word=$2 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8428$as_echo_n "checking for $ac_word... " >&6; } 8429if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 8430 $as_echo_n "(cached) " >&6 8431else 8432 if test -n "$DLLTOOL"; then 8433 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8434else 8435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8436for as_dir in $PATH 8437do 8438 IFS=$as_save_IFS 8439 test -z "$as_dir" && as_dir=. 8440 for ac_exec_ext in '' $ac_executable_extensions; do 8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8442 ac_cv_prog_DLLTOOL="${ncn_progname}" 8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8444 break 2 8445 fi 8446done 8447 done 8448IFS=$as_save_IFS 8449 8450fi 8451fi 8452DLLTOOL=$ac_cv_prog_DLLTOOL 8453if test -n "$DLLTOOL"; then 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8455$as_echo "$DLLTOOL" >&6; } 8456else 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8458$as_echo "no" >&6; } 8459fi 8460 8461 8462 fi 8463 test -n "$ac_cv_prog_DLLTOOL" && break 8464done 8465 8466if test -z "$ac_cv_prog_DLLTOOL" ; then 8467 set dummy dlltool 8468 if test $build = $host ; then 8469 DLLTOOL="$2" 8470 else 8471 DLLTOOL="${ncn_tool_prefix}$2" 8472 fi 8473fi 8474 8475 8476 8477if test -n "$LD"; then 8478 ac_cv_prog_LD=$LD 8479elif test -n "$ac_cv_prog_LD"; then 8480 LD=$ac_cv_prog_LD 8481fi 8482 8483if test -n "$ac_cv_prog_LD"; then 8484 for ncn_progname in ld; do 8485 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8486set dummy ${ncn_progname}; ac_word=$2 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8488$as_echo_n "checking for $ac_word... " >&6; } 8489if test "${ac_cv_prog_LD+set}" = set; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 if test -n "$LD"; then 8493 ac_cv_prog_LD="$LD" # Let the user override the test. 8494else 8495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8496for as_dir in $PATH 8497do 8498 IFS=$as_save_IFS 8499 test -z "$as_dir" && as_dir=. 8500 for ac_exec_ext in '' $ac_executable_extensions; do 8501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8502 ac_cv_prog_LD="${ncn_progname}" 8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8504 break 2 8505 fi 8506done 8507 done 8508IFS=$as_save_IFS 8509 8510fi 8511fi 8512LD=$ac_cv_prog_LD 8513if test -n "$LD"; then 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8515$as_echo "$LD" >&6; } 8516else 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8518$as_echo "no" >&6; } 8519fi 8520 8521 8522 done 8523fi 8524 8525for ncn_progname in ld; do 8526 if test -n "$ncn_tool_prefix"; then 8527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8528set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8530$as_echo_n "checking for $ac_word... " >&6; } 8531if test "${ac_cv_prog_LD+set}" = set; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 if test -n "$LD"; then 8535 ac_cv_prog_LD="$LD" # Let the user override the test. 8536else 8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8538for as_dir in $PATH 8539do 8540 IFS=$as_save_IFS 8541 test -z "$as_dir" && as_dir=. 8542 for ac_exec_ext in '' $ac_executable_extensions; do 8543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8544 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" 8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8546 break 2 8547 fi 8548done 8549 done 8550IFS=$as_save_IFS 8551 8552fi 8553fi 8554LD=$ac_cv_prog_LD 8555if test -n "$LD"; then 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8557$as_echo "$LD" >&6; } 8558else 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8560$as_echo "no" >&6; } 8561fi 8562 8563 8564 fi 8565 if test -z "$ac_cv_prog_LD" && test $build = $host ; then 8566 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8567set dummy ${ncn_progname}; ac_word=$2 8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8569$as_echo_n "checking for $ac_word... " >&6; } 8570if test "${ac_cv_prog_LD+set}" = set; then : 8571 $as_echo_n "(cached) " >&6 8572else 8573 if test -n "$LD"; then 8574 ac_cv_prog_LD="$LD" # Let the user override the test. 8575else 8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8577for as_dir in $PATH 8578do 8579 IFS=$as_save_IFS 8580 test -z "$as_dir" && as_dir=. 8581 for ac_exec_ext in '' $ac_executable_extensions; do 8582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8583 ac_cv_prog_LD="${ncn_progname}" 8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8585 break 2 8586 fi 8587done 8588 done 8589IFS=$as_save_IFS 8590 8591fi 8592fi 8593LD=$ac_cv_prog_LD 8594if test -n "$LD"; then 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8596$as_echo "$LD" >&6; } 8597else 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8599$as_echo "no" >&6; } 8600fi 8601 8602 8603 fi 8604 test -n "$ac_cv_prog_LD" && break 8605done 8606 8607if test -z "$ac_cv_prog_LD" ; then 8608 set dummy ld 8609 if test $build = $host ; then 8610 LD="$2" 8611 else 8612 LD="${ncn_tool_prefix}$2" 8613 fi 8614fi 8615 8616 8617 8618if test -n "$LIPO"; then 8619 ac_cv_prog_LIPO=$LIPO 8620elif test -n "$ac_cv_prog_LIPO"; then 8621 LIPO=$ac_cv_prog_LIPO 8622fi 8623 8624if test -n "$ac_cv_prog_LIPO"; then 8625 for ncn_progname in lipo; do 8626 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8627set dummy ${ncn_progname}; ac_word=$2 8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8629$as_echo_n "checking for $ac_word... " >&6; } 8630if test "${ac_cv_prog_LIPO+set}" = set; then : 8631 $as_echo_n "(cached) " >&6 8632else 8633 if test -n "$LIPO"; then 8634 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8635else 8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8637for as_dir in $PATH 8638do 8639 IFS=$as_save_IFS 8640 test -z "$as_dir" && as_dir=. 8641 for ac_exec_ext in '' $ac_executable_extensions; do 8642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8643 ac_cv_prog_LIPO="${ncn_progname}" 8644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8645 break 2 8646 fi 8647done 8648 done 8649IFS=$as_save_IFS 8650 8651fi 8652fi 8653LIPO=$ac_cv_prog_LIPO 8654if test -n "$LIPO"; then 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8656$as_echo "$LIPO" >&6; } 8657else 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8659$as_echo "no" >&6; } 8660fi 8661 8662 8663 done 8664fi 8665 8666for ncn_progname in lipo; do 8667 if test -n "$ncn_tool_prefix"; then 8668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8669set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8671$as_echo_n "checking for $ac_word... " >&6; } 8672if test "${ac_cv_prog_LIPO+set}" = set; then : 8673 $as_echo_n "(cached) " >&6 8674else 8675 if test -n "$LIPO"; then 8676 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8677else 8678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8679for as_dir in $PATH 8680do 8681 IFS=$as_save_IFS 8682 test -z "$as_dir" && as_dir=. 8683 for ac_exec_ext in '' $ac_executable_extensions; do 8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8685 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" 8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8687 break 2 8688 fi 8689done 8690 done 8691IFS=$as_save_IFS 8692 8693fi 8694fi 8695LIPO=$ac_cv_prog_LIPO 8696if test -n "$LIPO"; then 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8698$as_echo "$LIPO" >&6; } 8699else 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8701$as_echo "no" >&6; } 8702fi 8703 8704 8705 fi 8706 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then 8707 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8708set dummy ${ncn_progname}; ac_word=$2 8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8710$as_echo_n "checking for $ac_word... " >&6; } 8711if test "${ac_cv_prog_LIPO+set}" = set; then : 8712 $as_echo_n "(cached) " >&6 8713else 8714 if test -n "$LIPO"; then 8715 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8716else 8717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8718for as_dir in $PATH 8719do 8720 IFS=$as_save_IFS 8721 test -z "$as_dir" && as_dir=. 8722 for ac_exec_ext in '' $ac_executable_extensions; do 8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8724 ac_cv_prog_LIPO="${ncn_progname}" 8725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8726 break 2 8727 fi 8728done 8729 done 8730IFS=$as_save_IFS 8731 8732fi 8733fi 8734LIPO=$ac_cv_prog_LIPO 8735if test -n "$LIPO"; then 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8737$as_echo "$LIPO" >&6; } 8738else 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8740$as_echo "no" >&6; } 8741fi 8742 8743 8744 fi 8745 test -n "$ac_cv_prog_LIPO" && break 8746done 8747 8748if test -z "$ac_cv_prog_LIPO" ; then 8749 set dummy lipo 8750 if test $build = $host ; then 8751 LIPO="$2" 8752 else 8753 LIPO="${ncn_tool_prefix}$2" 8754 fi 8755fi 8756 8757 8758 8759if test -n "$NM"; then 8760 ac_cv_prog_NM=$NM 8761elif test -n "$ac_cv_prog_NM"; then 8762 NM=$ac_cv_prog_NM 8763fi 8764 8765if test -n "$ac_cv_prog_NM"; then 8766 for ncn_progname in nm; do 8767 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8768set dummy ${ncn_progname}; ac_word=$2 8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8770$as_echo_n "checking for $ac_word... " >&6; } 8771if test "${ac_cv_prog_NM+set}" = set; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 if test -n "$NM"; then 8775 ac_cv_prog_NM="$NM" # Let the user override the test. 8776else 8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8778for as_dir in $PATH 8779do 8780 IFS=$as_save_IFS 8781 test -z "$as_dir" && as_dir=. 8782 for ac_exec_ext in '' $ac_executable_extensions; do 8783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8784 ac_cv_prog_NM="${ncn_progname}" 8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8786 break 2 8787 fi 8788done 8789 done 8790IFS=$as_save_IFS 8791 8792fi 8793fi 8794NM=$ac_cv_prog_NM 8795if test -n "$NM"; then 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8797$as_echo "$NM" >&6; } 8798else 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8800$as_echo "no" >&6; } 8801fi 8802 8803 8804 done 8805fi 8806 8807for ncn_progname in nm; do 8808 if test -n "$ncn_tool_prefix"; then 8809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8810set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8812$as_echo_n "checking for $ac_word... " >&6; } 8813if test "${ac_cv_prog_NM+set}" = set; then : 8814 $as_echo_n "(cached) " >&6 8815else 8816 if test -n "$NM"; then 8817 ac_cv_prog_NM="$NM" # Let the user override the test. 8818else 8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8820for as_dir in $PATH 8821do 8822 IFS=$as_save_IFS 8823 test -z "$as_dir" && as_dir=. 8824 for ac_exec_ext in '' $ac_executable_extensions; do 8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8826 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" 8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8828 break 2 8829 fi 8830done 8831 done 8832IFS=$as_save_IFS 8833 8834fi 8835fi 8836NM=$ac_cv_prog_NM 8837if test -n "$NM"; then 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8839$as_echo "$NM" >&6; } 8840else 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8842$as_echo "no" >&6; } 8843fi 8844 8845 8846 fi 8847 if test -z "$ac_cv_prog_NM" && test $build = $host ; then 8848 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8849set dummy ${ncn_progname}; ac_word=$2 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8851$as_echo_n "checking for $ac_word... " >&6; } 8852if test "${ac_cv_prog_NM+set}" = set; then : 8853 $as_echo_n "(cached) " >&6 8854else 8855 if test -n "$NM"; then 8856 ac_cv_prog_NM="$NM" # Let the user override the test. 8857else 8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8859for as_dir in $PATH 8860do 8861 IFS=$as_save_IFS 8862 test -z "$as_dir" && as_dir=. 8863 for ac_exec_ext in '' $ac_executable_extensions; do 8864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8865 ac_cv_prog_NM="${ncn_progname}" 8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8867 break 2 8868 fi 8869done 8870 done 8871IFS=$as_save_IFS 8872 8873fi 8874fi 8875NM=$ac_cv_prog_NM 8876if test -n "$NM"; then 8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8878$as_echo "$NM" >&6; } 8879else 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8881$as_echo "no" >&6; } 8882fi 8883 8884 8885 fi 8886 test -n "$ac_cv_prog_NM" && break 8887done 8888 8889if test -z "$ac_cv_prog_NM" ; then 8890 set dummy nm 8891 if test $build = $host ; then 8892 NM="$2" 8893 else 8894 NM="${ncn_tool_prefix}$2" 8895 fi 8896fi 8897 8898 8899 8900if test -n "$RANLIB"; then 8901 ac_cv_prog_RANLIB=$RANLIB 8902elif test -n "$ac_cv_prog_RANLIB"; then 8903 RANLIB=$ac_cv_prog_RANLIB 8904fi 8905 8906if test -n "$ac_cv_prog_RANLIB"; then 8907 for ncn_progname in ranlib; do 8908 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8909set dummy ${ncn_progname}; ac_word=$2 8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8911$as_echo_n "checking for $ac_word... " >&6; } 8912if test "${ac_cv_prog_RANLIB+set}" = set; then : 8913 $as_echo_n "(cached) " >&6 8914else 8915 if test -n "$RANLIB"; then 8916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8917else 8918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8919for as_dir in $PATH 8920do 8921 IFS=$as_save_IFS 8922 test -z "$as_dir" && as_dir=. 8923 for ac_exec_ext in '' $ac_executable_extensions; do 8924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8925 ac_cv_prog_RANLIB="${ncn_progname}" 8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8927 break 2 8928 fi 8929done 8930 done 8931IFS=$as_save_IFS 8932 8933fi 8934fi 8935RANLIB=$ac_cv_prog_RANLIB 8936if test -n "$RANLIB"; then 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8938$as_echo "$RANLIB" >&6; } 8939else 8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8941$as_echo "no" >&6; } 8942fi 8943 8944 8945 done 8946fi 8947 8948for ncn_progname in ranlib; do 8949 if test -n "$ncn_tool_prefix"; then 8950 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 8951set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 8952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8953$as_echo_n "checking for $ac_word... " >&6; } 8954if test "${ac_cv_prog_RANLIB+set}" = set; then : 8955 $as_echo_n "(cached) " >&6 8956else 8957 if test -n "$RANLIB"; then 8958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8959else 8960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8961for as_dir in $PATH 8962do 8963 IFS=$as_save_IFS 8964 test -z "$as_dir" && as_dir=. 8965 for ac_exec_ext in '' $ac_executable_extensions; do 8966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8967 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" 8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8969 break 2 8970 fi 8971done 8972 done 8973IFS=$as_save_IFS 8974 8975fi 8976fi 8977RANLIB=$ac_cv_prog_RANLIB 8978if test -n "$RANLIB"; then 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8980$as_echo "$RANLIB" >&6; } 8981else 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8983$as_echo "no" >&6; } 8984fi 8985 8986 8987 fi 8988 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then 8989 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 8990set dummy ${ncn_progname}; ac_word=$2 8991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8992$as_echo_n "checking for $ac_word... " >&6; } 8993if test "${ac_cv_prog_RANLIB+set}" = set; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 if test -n "$RANLIB"; then 8997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8998else 8999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9000for as_dir in $PATH 9001do 9002 IFS=$as_save_IFS 9003 test -z "$as_dir" && as_dir=. 9004 for ac_exec_ext in '' $ac_executable_extensions; do 9005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9006 ac_cv_prog_RANLIB="${ncn_progname}" 9007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9008 break 2 9009 fi 9010done 9011 done 9012IFS=$as_save_IFS 9013 9014fi 9015fi 9016RANLIB=$ac_cv_prog_RANLIB 9017if test -n "$RANLIB"; then 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9019$as_echo "$RANLIB" >&6; } 9020else 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9022$as_echo "no" >&6; } 9023fi 9024 9025 9026 fi 9027 test -n "$ac_cv_prog_RANLIB" && break 9028done 9029 9030if test -z "$ac_cv_prog_RANLIB" ; then 9031 RANLIB="true" 9032fi 9033 9034 9035 9036if test -n "$STRIP"; then 9037 ac_cv_prog_STRIP=$STRIP 9038elif test -n "$ac_cv_prog_STRIP"; then 9039 STRIP=$ac_cv_prog_STRIP 9040fi 9041 9042if test -n "$ac_cv_prog_STRIP"; then 9043 for ncn_progname in strip; do 9044 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9045set dummy ${ncn_progname}; ac_word=$2 9046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9047$as_echo_n "checking for $ac_word... " >&6; } 9048if test "${ac_cv_prog_STRIP+set}" = set; then : 9049 $as_echo_n "(cached) " >&6 9050else 9051 if test -n "$STRIP"; then 9052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9053else 9054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9055for as_dir in $PATH 9056do 9057 IFS=$as_save_IFS 9058 test -z "$as_dir" && as_dir=. 9059 for ac_exec_ext in '' $ac_executable_extensions; do 9060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9061 ac_cv_prog_STRIP="${ncn_progname}" 9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9063 break 2 9064 fi 9065done 9066 done 9067IFS=$as_save_IFS 9068 9069fi 9070fi 9071STRIP=$ac_cv_prog_STRIP 9072if test -n "$STRIP"; then 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9074$as_echo "$STRIP" >&6; } 9075else 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9077$as_echo "no" >&6; } 9078fi 9079 9080 9081 done 9082fi 9083 9084for ncn_progname in strip; do 9085 if test -n "$ncn_tool_prefix"; then 9086 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9087set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9089$as_echo_n "checking for $ac_word... " >&6; } 9090if test "${ac_cv_prog_STRIP+set}" = set; then : 9091 $as_echo_n "(cached) " >&6 9092else 9093 if test -n "$STRIP"; then 9094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9095else 9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9097for as_dir in $PATH 9098do 9099 IFS=$as_save_IFS 9100 test -z "$as_dir" && as_dir=. 9101 for ac_exec_ext in '' $ac_executable_extensions; do 9102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9103 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" 9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9105 break 2 9106 fi 9107done 9108 done 9109IFS=$as_save_IFS 9110 9111fi 9112fi 9113STRIP=$ac_cv_prog_STRIP 9114if test -n "$STRIP"; then 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9116$as_echo "$STRIP" >&6; } 9117else 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9119$as_echo "no" >&6; } 9120fi 9121 9122 9123 fi 9124 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then 9125 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9126set dummy ${ncn_progname}; ac_word=$2 9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9128$as_echo_n "checking for $ac_word... " >&6; } 9129if test "${ac_cv_prog_STRIP+set}" = set; then : 9130 $as_echo_n "(cached) " >&6 9131else 9132 if test -n "$STRIP"; then 9133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9134else 9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9136for as_dir in $PATH 9137do 9138 IFS=$as_save_IFS 9139 test -z "$as_dir" && as_dir=. 9140 for ac_exec_ext in '' $ac_executable_extensions; do 9141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9142 ac_cv_prog_STRIP="${ncn_progname}" 9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9144 break 2 9145 fi 9146done 9147 done 9148IFS=$as_save_IFS 9149 9150fi 9151fi 9152STRIP=$ac_cv_prog_STRIP 9153if test -n "$STRIP"; then 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9155$as_echo "$STRIP" >&6; } 9156else 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9158$as_echo "no" >&6; } 9159fi 9160 9161 9162 fi 9163 test -n "$ac_cv_prog_STRIP" && break 9164done 9165 9166if test -z "$ac_cv_prog_STRIP" ; then 9167 STRIP="true" 9168fi 9169 9170 9171 9172if test -n "$WINDRES"; then 9173 ac_cv_prog_WINDRES=$WINDRES 9174elif test -n "$ac_cv_prog_WINDRES"; then 9175 WINDRES=$ac_cv_prog_WINDRES 9176fi 9177 9178if test -n "$ac_cv_prog_WINDRES"; then 9179 for ncn_progname in windres; do 9180 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9181set dummy ${ncn_progname}; ac_word=$2 9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9183$as_echo_n "checking for $ac_word... " >&6; } 9184if test "${ac_cv_prog_WINDRES+set}" = set; then : 9185 $as_echo_n "(cached) " >&6 9186else 9187 if test -n "$WINDRES"; then 9188 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9189else 9190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9191for as_dir in $PATH 9192do 9193 IFS=$as_save_IFS 9194 test -z "$as_dir" && as_dir=. 9195 for ac_exec_ext in '' $ac_executable_extensions; do 9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9197 ac_cv_prog_WINDRES="${ncn_progname}" 9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9199 break 2 9200 fi 9201done 9202 done 9203IFS=$as_save_IFS 9204 9205fi 9206fi 9207WINDRES=$ac_cv_prog_WINDRES 9208if test -n "$WINDRES"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9210$as_echo "$WINDRES" >&6; } 9211else 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9213$as_echo "no" >&6; } 9214fi 9215 9216 9217 done 9218fi 9219 9220for ncn_progname in windres; do 9221 if test -n "$ncn_tool_prefix"; then 9222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9223set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9225$as_echo_n "checking for $ac_word... " >&6; } 9226if test "${ac_cv_prog_WINDRES+set}" = set; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 if test -n "$WINDRES"; then 9230 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9231else 9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9233for as_dir in $PATH 9234do 9235 IFS=$as_save_IFS 9236 test -z "$as_dir" && as_dir=. 9237 for ac_exec_ext in '' $ac_executable_extensions; do 9238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9239 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" 9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9241 break 2 9242 fi 9243done 9244 done 9245IFS=$as_save_IFS 9246 9247fi 9248fi 9249WINDRES=$ac_cv_prog_WINDRES 9250if test -n "$WINDRES"; then 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9252$as_echo "$WINDRES" >&6; } 9253else 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9255$as_echo "no" >&6; } 9256fi 9257 9258 9259 fi 9260 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then 9261 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9262set dummy ${ncn_progname}; ac_word=$2 9263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9264$as_echo_n "checking for $ac_word... " >&6; } 9265if test "${ac_cv_prog_WINDRES+set}" = set; then : 9266 $as_echo_n "(cached) " >&6 9267else 9268 if test -n "$WINDRES"; then 9269 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9270else 9271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9272for as_dir in $PATH 9273do 9274 IFS=$as_save_IFS 9275 test -z "$as_dir" && as_dir=. 9276 for ac_exec_ext in '' $ac_executable_extensions; do 9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9278 ac_cv_prog_WINDRES="${ncn_progname}" 9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9280 break 2 9281 fi 9282done 9283 done 9284IFS=$as_save_IFS 9285 9286fi 9287fi 9288WINDRES=$ac_cv_prog_WINDRES 9289if test -n "$WINDRES"; then 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9291$as_echo "$WINDRES" >&6; } 9292else 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9294$as_echo "no" >&6; } 9295fi 9296 9297 9298 fi 9299 test -n "$ac_cv_prog_WINDRES" && break 9300done 9301 9302if test -z "$ac_cv_prog_WINDRES" ; then 9303 set dummy windres 9304 if test $build = $host ; then 9305 WINDRES="$2" 9306 else 9307 WINDRES="${ncn_tool_prefix}$2" 9308 fi 9309fi 9310 9311 9312 9313if test -n "$WINDMC"; then 9314 ac_cv_prog_WINDMC=$WINDMC 9315elif test -n "$ac_cv_prog_WINDMC"; then 9316 WINDMC=$ac_cv_prog_WINDMC 9317fi 9318 9319if test -n "$ac_cv_prog_WINDMC"; then 9320 for ncn_progname in windmc; do 9321 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9322set dummy ${ncn_progname}; ac_word=$2 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9324$as_echo_n "checking for $ac_word... " >&6; } 9325if test "${ac_cv_prog_WINDMC+set}" = set; then : 9326 $as_echo_n "(cached) " >&6 9327else 9328 if test -n "$WINDMC"; then 9329 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9330else 9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9332for as_dir in $PATH 9333do 9334 IFS=$as_save_IFS 9335 test -z "$as_dir" && as_dir=. 9336 for ac_exec_ext in '' $ac_executable_extensions; do 9337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9338 ac_cv_prog_WINDMC="${ncn_progname}" 9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9340 break 2 9341 fi 9342done 9343 done 9344IFS=$as_save_IFS 9345 9346fi 9347fi 9348WINDMC=$ac_cv_prog_WINDMC 9349if test -n "$WINDMC"; then 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9351$as_echo "$WINDMC" >&6; } 9352else 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9354$as_echo "no" >&6; } 9355fi 9356 9357 9358 done 9359fi 9360 9361for ncn_progname in windmc; do 9362 if test -n "$ncn_tool_prefix"; then 9363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9364set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9366$as_echo_n "checking for $ac_word... " >&6; } 9367if test "${ac_cv_prog_WINDMC+set}" = set; then : 9368 $as_echo_n "(cached) " >&6 9369else 9370 if test -n "$WINDMC"; then 9371 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9372else 9373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9374for as_dir in $PATH 9375do 9376 IFS=$as_save_IFS 9377 test -z "$as_dir" && as_dir=. 9378 for ac_exec_ext in '' $ac_executable_extensions; do 9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9380 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" 9381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9382 break 2 9383 fi 9384done 9385 done 9386IFS=$as_save_IFS 9387 9388fi 9389fi 9390WINDMC=$ac_cv_prog_WINDMC 9391if test -n "$WINDMC"; then 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9393$as_echo "$WINDMC" >&6; } 9394else 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9396$as_echo "no" >&6; } 9397fi 9398 9399 9400 fi 9401 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then 9402 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9403set dummy ${ncn_progname}; ac_word=$2 9404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9405$as_echo_n "checking for $ac_word... " >&6; } 9406if test "${ac_cv_prog_WINDMC+set}" = set; then : 9407 $as_echo_n "(cached) " >&6 9408else 9409 if test -n "$WINDMC"; then 9410 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. 9411else 9412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9413for as_dir in $PATH 9414do 9415 IFS=$as_save_IFS 9416 test -z "$as_dir" && as_dir=. 9417 for ac_exec_ext in '' $ac_executable_extensions; do 9418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9419 ac_cv_prog_WINDMC="${ncn_progname}" 9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9421 break 2 9422 fi 9423done 9424 done 9425IFS=$as_save_IFS 9426 9427fi 9428fi 9429WINDMC=$ac_cv_prog_WINDMC 9430if test -n "$WINDMC"; then 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 9432$as_echo "$WINDMC" >&6; } 9433else 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9435$as_echo "no" >&6; } 9436fi 9437 9438 9439 fi 9440 test -n "$ac_cv_prog_WINDMC" && break 9441done 9442 9443if test -z "$ac_cv_prog_WINDMC" ; then 9444 set dummy windmc 9445 if test $build = $host ; then 9446 WINDMC="$2" 9447 else 9448 WINDMC="${ncn_tool_prefix}$2" 9449 fi 9450fi 9451 9452 9453 9454if test -n "$OBJCOPY"; then 9455 ac_cv_prog_OBJCOPY=$OBJCOPY 9456elif test -n "$ac_cv_prog_OBJCOPY"; then 9457 OBJCOPY=$ac_cv_prog_OBJCOPY 9458fi 9459 9460if test -n "$ac_cv_prog_OBJCOPY"; then 9461 for ncn_progname in objcopy; do 9462 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9463set dummy ${ncn_progname}; ac_word=$2 9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9465$as_echo_n "checking for $ac_word... " >&6; } 9466if test "${ac_cv_prog_OBJCOPY+set}" = set; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 if test -n "$OBJCOPY"; then 9470 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9471else 9472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9473for as_dir in $PATH 9474do 9475 IFS=$as_save_IFS 9476 test -z "$as_dir" && as_dir=. 9477 for ac_exec_ext in '' $ac_executable_extensions; do 9478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9479 ac_cv_prog_OBJCOPY="${ncn_progname}" 9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9481 break 2 9482 fi 9483done 9484 done 9485IFS=$as_save_IFS 9486 9487fi 9488fi 9489OBJCOPY=$ac_cv_prog_OBJCOPY 9490if test -n "$OBJCOPY"; then 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9492$as_echo "$OBJCOPY" >&6; } 9493else 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9495$as_echo "no" >&6; } 9496fi 9497 9498 9499 done 9500fi 9501 9502for ncn_progname in objcopy; do 9503 if test -n "$ncn_tool_prefix"; then 9504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9505set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9507$as_echo_n "checking for $ac_word... " >&6; } 9508if test "${ac_cv_prog_OBJCOPY+set}" = set; then : 9509 $as_echo_n "(cached) " >&6 9510else 9511 if test -n "$OBJCOPY"; then 9512 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9513else 9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9515for as_dir in $PATH 9516do 9517 IFS=$as_save_IFS 9518 test -z "$as_dir" && as_dir=. 9519 for ac_exec_ext in '' $ac_executable_extensions; do 9520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9521 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" 9522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9523 break 2 9524 fi 9525done 9526 done 9527IFS=$as_save_IFS 9528 9529fi 9530fi 9531OBJCOPY=$ac_cv_prog_OBJCOPY 9532if test -n "$OBJCOPY"; then 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9534$as_echo "$OBJCOPY" >&6; } 9535else 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9537$as_echo "no" >&6; } 9538fi 9539 9540 9541 fi 9542 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then 9543 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9544set dummy ${ncn_progname}; ac_word=$2 9545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9546$as_echo_n "checking for $ac_word... " >&6; } 9547if test "${ac_cv_prog_OBJCOPY+set}" = set; then : 9548 $as_echo_n "(cached) " >&6 9549else 9550 if test -n "$OBJCOPY"; then 9551 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 9552else 9553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9554for as_dir in $PATH 9555do 9556 IFS=$as_save_IFS 9557 test -z "$as_dir" && as_dir=. 9558 for ac_exec_ext in '' $ac_executable_extensions; do 9559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9560 ac_cv_prog_OBJCOPY="${ncn_progname}" 9561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9562 break 2 9563 fi 9564done 9565 done 9566IFS=$as_save_IFS 9567 9568fi 9569fi 9570OBJCOPY=$ac_cv_prog_OBJCOPY 9571if test -n "$OBJCOPY"; then 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 9573$as_echo "$OBJCOPY" >&6; } 9574else 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9576$as_echo "no" >&6; } 9577fi 9578 9579 9580 fi 9581 test -n "$ac_cv_prog_OBJCOPY" && break 9582done 9583 9584if test -z "$ac_cv_prog_OBJCOPY" ; then 9585 set dummy objcopy 9586 if test $build = $host ; then 9587 OBJCOPY="$2" 9588 else 9589 OBJCOPY="${ncn_tool_prefix}$2" 9590 fi 9591fi 9592 9593 9594 9595if test -n "$OBJDUMP"; then 9596 ac_cv_prog_OBJDUMP=$OBJDUMP 9597elif test -n "$ac_cv_prog_OBJDUMP"; then 9598 OBJDUMP=$ac_cv_prog_OBJDUMP 9599fi 9600 9601if test -n "$ac_cv_prog_OBJDUMP"; then 9602 for ncn_progname in objdump; do 9603 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9604set dummy ${ncn_progname}; ac_word=$2 9605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9606$as_echo_n "checking for $ac_word... " >&6; } 9607if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 9608 $as_echo_n "(cached) " >&6 9609else 9610 if test -n "$OBJDUMP"; then 9611 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9612else 9613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9614for as_dir in $PATH 9615do 9616 IFS=$as_save_IFS 9617 test -z "$as_dir" && as_dir=. 9618 for ac_exec_ext in '' $ac_executable_extensions; do 9619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9620 ac_cv_prog_OBJDUMP="${ncn_progname}" 9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9622 break 2 9623 fi 9624done 9625 done 9626IFS=$as_save_IFS 9627 9628fi 9629fi 9630OBJDUMP=$ac_cv_prog_OBJDUMP 9631if test -n "$OBJDUMP"; then 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9633$as_echo "$OBJDUMP" >&6; } 9634else 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636$as_echo "no" >&6; } 9637fi 9638 9639 9640 done 9641fi 9642 9643for ncn_progname in objdump; do 9644 if test -n "$ncn_tool_prefix"; then 9645 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9646set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9648$as_echo_n "checking for $ac_word... " >&6; } 9649if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 if test -n "$OBJDUMP"; then 9653 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9654else 9655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9656for as_dir in $PATH 9657do 9658 IFS=$as_save_IFS 9659 test -z "$as_dir" && as_dir=. 9660 for ac_exec_ext in '' $ac_executable_extensions; do 9661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9662 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" 9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9664 break 2 9665 fi 9666done 9667 done 9668IFS=$as_save_IFS 9669 9670fi 9671fi 9672OBJDUMP=$ac_cv_prog_OBJDUMP 9673if test -n "$OBJDUMP"; then 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9675$as_echo "$OBJDUMP" >&6; } 9676else 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9678$as_echo "no" >&6; } 9679fi 9680 9681 9682 fi 9683 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then 9684 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9685set dummy ${ncn_progname}; ac_word=$2 9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9687$as_echo_n "checking for $ac_word... " >&6; } 9688if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 9689 $as_echo_n "(cached) " >&6 9690else 9691 if test -n "$OBJDUMP"; then 9692 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9693else 9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9695for as_dir in $PATH 9696do 9697 IFS=$as_save_IFS 9698 test -z "$as_dir" && as_dir=. 9699 for ac_exec_ext in '' $ac_executable_extensions; do 9700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9701 ac_cv_prog_OBJDUMP="${ncn_progname}" 9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9703 break 2 9704 fi 9705done 9706 done 9707IFS=$as_save_IFS 9708 9709fi 9710fi 9711OBJDUMP=$ac_cv_prog_OBJDUMP 9712if test -n "$OBJDUMP"; then 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9714$as_echo "$OBJDUMP" >&6; } 9715else 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9717$as_echo "no" >&6; } 9718fi 9719 9720 9721 fi 9722 test -n "$ac_cv_prog_OBJDUMP" && break 9723done 9724 9725if test -z "$ac_cv_prog_OBJDUMP" ; then 9726 set dummy objdump 9727 if test $build = $host ; then 9728 OBJDUMP="$2" 9729 else 9730 OBJDUMP="${ncn_tool_prefix}$2" 9731 fi 9732fi 9733 9734 9735 9736if test -n "$READELF"; then 9737 ac_cv_prog_READELF=$READELF 9738elif test -n "$ac_cv_prog_READELF"; then 9739 READELF=$ac_cv_prog_READELF 9740fi 9741 9742if test -n "$ac_cv_prog_READELF"; then 9743 for ncn_progname in readelf; do 9744 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9745set dummy ${ncn_progname}; ac_word=$2 9746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9747$as_echo_n "checking for $ac_word... " >&6; } 9748if test "${ac_cv_prog_READELF+set}" = set; then : 9749 $as_echo_n "(cached) " >&6 9750else 9751 if test -n "$READELF"; then 9752 ac_cv_prog_READELF="$READELF" # Let the user override the test. 9753else 9754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9755for as_dir in $PATH 9756do 9757 IFS=$as_save_IFS 9758 test -z "$as_dir" && as_dir=. 9759 for ac_exec_ext in '' $ac_executable_extensions; do 9760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9761 ac_cv_prog_READELF="${ncn_progname}" 9762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9763 break 2 9764 fi 9765done 9766 done 9767IFS=$as_save_IFS 9768 9769fi 9770fi 9771READELF=$ac_cv_prog_READELF 9772if test -n "$READELF"; then 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 9774$as_echo "$READELF" >&6; } 9775else 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9777$as_echo "no" >&6; } 9778fi 9779 9780 9781 done 9782fi 9783 9784for ncn_progname in readelf; do 9785 if test -n "$ncn_tool_prefix"; then 9786 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. 9787set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 9788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9789$as_echo_n "checking for $ac_word... " >&6; } 9790if test "${ac_cv_prog_READELF+set}" = set; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 if test -n "$READELF"; then 9794 ac_cv_prog_READELF="$READELF" # Let the user override the test. 9795else 9796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9797for as_dir in $PATH 9798do 9799 IFS=$as_save_IFS 9800 test -z "$as_dir" && as_dir=. 9801 for ac_exec_ext in '' $ac_executable_extensions; do 9802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9803 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" 9804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9805 break 2 9806 fi 9807done 9808 done 9809IFS=$as_save_IFS 9810 9811fi 9812fi 9813READELF=$ac_cv_prog_READELF 9814if test -n "$READELF"; then 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 9816$as_echo "$READELF" >&6; } 9817else 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9819$as_echo "no" >&6; } 9820fi 9821 9822 9823 fi 9824 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then 9825 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9826set dummy ${ncn_progname}; ac_word=$2 9827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9828$as_echo_n "checking for $ac_word... " >&6; } 9829if test "${ac_cv_prog_READELF+set}" = set; then : 9830 $as_echo_n "(cached) " >&6 9831else 9832 if test -n "$READELF"; then 9833 ac_cv_prog_READELF="$READELF" # Let the user override the test. 9834else 9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9836for as_dir in $PATH 9837do 9838 IFS=$as_save_IFS 9839 test -z "$as_dir" && as_dir=. 9840 for ac_exec_ext in '' $ac_executable_extensions; do 9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9842 ac_cv_prog_READELF="${ncn_progname}" 9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9844 break 2 9845 fi 9846done 9847 done 9848IFS=$as_save_IFS 9849 9850fi 9851fi 9852READELF=$ac_cv_prog_READELF 9853if test -n "$READELF"; then 9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 9855$as_echo "$READELF" >&6; } 9856else 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9858$as_echo "no" >&6; } 9859fi 9860 9861 9862 fi 9863 test -n "$ac_cv_prog_READELF" && break 9864done 9865 9866if test -z "$ac_cv_prog_READELF" ; then 9867 set dummy readelf 9868 if test $build = $host ; then 9869 READELF="$2" 9870 else 9871 READELF="${ncn_tool_prefix}$2" 9872 fi 9873fi 9874 9875 9876 9877 9878 9879 9880# Target tools. 9881 9882# Check whether --with-build-time-tools was given. 9883if test "${with_build_time_tools+set}" = set; then : 9884 withval=$with_build_time_tools; case x"$withval" in 9885 x/*) ;; 9886 *) 9887 with_build_time_tools= 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 9889$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} 9890 ;; 9891 esac 9892else 9893 with_build_time_tools= 9894fi 9895 9896 9897 9898 9899if test -n "$CC_FOR_TARGET"; then 9900 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET 9901elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then 9902 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 9903fi 9904 9905if test -n "$ac_cv_prog_CC_FOR_TARGET"; then 9906 for ncn_progname in cc gcc; do 9907 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 9908set dummy ${ncn_progname}; ac_word=$2 9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9910$as_echo_n "checking for $ac_word... " >&6; } 9911if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : 9912 $as_echo_n "(cached) " >&6 9913else 9914 if test -n "$CC_FOR_TARGET"; then 9915 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 9916else 9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9918for as_dir in $PATH 9919do 9920 IFS=$as_save_IFS 9921 test -z "$as_dir" && as_dir=. 9922 for ac_exec_ext in '' $ac_executable_extensions; do 9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9924 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" 9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9926 break 2 9927 fi 9928done 9929 done 9930IFS=$as_save_IFS 9931 9932fi 9933fi 9934CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 9935if test -n "$CC_FOR_TARGET"; then 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 9937$as_echo "$CC_FOR_TARGET" >&6; } 9938else 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9940$as_echo "no" >&6; } 9941fi 9942 9943 9944 done 9945fi 9946 9947if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then 9948 for ncn_progname in cc gcc; do 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 9950$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 9951 if test -x $with_build_time_tools/${ncn_progname}; then 9952 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9954$as_echo "yes" >&6; } 9955 break 9956 else 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9958$as_echo "no" >&6; } 9959 fi 9960 done 9961fi 9962 9963if test -z "$ac_cv_prog_CC_FOR_TARGET"; then 9964 for ncn_progname in cc gcc; do 9965 if test -n "$ncn_target_tool_prefix"; then 9966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 9967set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9969$as_echo_n "checking for $ac_word... " >&6; } 9970if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : 9971 $as_echo_n "(cached) " >&6 9972else 9973 if test -n "$CC_FOR_TARGET"; then 9974 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 9975else 9976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9977for as_dir in $PATH 9978do 9979 IFS=$as_save_IFS 9980 test -z "$as_dir" && as_dir=. 9981 for ac_exec_ext in '' $ac_executable_extensions; do 9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9983 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9985 break 2 9986 fi 9987done 9988 done 9989IFS=$as_save_IFS 9990 9991fi 9992fi 9993CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 9994if test -n "$CC_FOR_TARGET"; then 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 9996$as_echo "$CC_FOR_TARGET" >&6; } 9997else 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9999$as_echo "no" >&6; } 10000fi 10001 10002 10003 fi 10004 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then 10005 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10006set dummy ${ncn_progname}; ac_word=$2 10007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10008$as_echo_n "checking for $ac_word... " >&6; } 10009if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : 10010 $as_echo_n "(cached) " >&6 10011else 10012 if test -n "$CC_FOR_TARGET"; then 10013 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. 10014else 10015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10016for as_dir in $PATH 10017do 10018 IFS=$as_save_IFS 10019 test -z "$as_dir" && as_dir=. 10020 for ac_exec_ext in '' $ac_executable_extensions; do 10021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10022 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" 10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10024 break 2 10025 fi 10026done 10027 done 10028IFS=$as_save_IFS 10029 10030fi 10031fi 10032CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET 10033if test -n "$CC_FOR_TARGET"; then 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 10035$as_echo "$CC_FOR_TARGET" >&6; } 10036else 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10038$as_echo "no" >&6; } 10039fi 10040 10041 10042 fi 10043 test -n "$ac_cv_prog_CC_FOR_TARGET" && break 10044 done 10045fi 10046 10047if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then 10048 set dummy cc gcc 10049 if test $build = $target ; then 10050 CC_FOR_TARGET="$2" 10051 else 10052 CC_FOR_TARGET="${ncn_target_tool_prefix}$2" 10053 fi 10054else 10055 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" 10056fi 10057 10058 10059 10060if test -n "$CXX_FOR_TARGET"; then 10061 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET 10062elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then 10063 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10064fi 10065 10066if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then 10067 for ncn_progname in c++ g++ cxx gxx; do 10068 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10069set dummy ${ncn_progname}; ac_word=$2 10070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10071$as_echo_n "checking for $ac_word... " >&6; } 10072if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : 10073 $as_echo_n "(cached) " >&6 10074else 10075 if test -n "$CXX_FOR_TARGET"; then 10076 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10077else 10078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10079for as_dir in $PATH 10080do 10081 IFS=$as_save_IFS 10082 test -z "$as_dir" && as_dir=. 10083 for ac_exec_ext in '' $ac_executable_extensions; do 10084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10085 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" 10086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10087 break 2 10088 fi 10089done 10090 done 10091IFS=$as_save_IFS 10092 10093fi 10094fi 10095CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10096if test -n "$CXX_FOR_TARGET"; then 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10098$as_echo "$CXX_FOR_TARGET" >&6; } 10099else 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10101$as_echo "no" >&6; } 10102fi 10103 10104 10105 done 10106fi 10107 10108if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then 10109 for ncn_progname in c++ g++ cxx gxx; do 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10111$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10112 if test -x $with_build_time_tools/${ncn_progname}; then 10113 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10115$as_echo "yes" >&6; } 10116 break 10117 else 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10119$as_echo "no" >&6; } 10120 fi 10121 done 10122fi 10123 10124if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then 10125 for ncn_progname in c++ g++ cxx gxx; do 10126 if test -n "$ncn_target_tool_prefix"; then 10127 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10128set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10130$as_echo_n "checking for $ac_word... " >&6; } 10131if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 if test -n "$CXX_FOR_TARGET"; then 10135 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10136else 10137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10138for as_dir in $PATH 10139do 10140 IFS=$as_save_IFS 10141 test -z "$as_dir" && as_dir=. 10142 for ac_exec_ext in '' $ac_executable_extensions; do 10143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10144 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10146 break 2 10147 fi 10148done 10149 done 10150IFS=$as_save_IFS 10151 10152fi 10153fi 10154CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10155if test -n "$CXX_FOR_TARGET"; then 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10157$as_echo "$CXX_FOR_TARGET" >&6; } 10158else 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10160$as_echo "no" >&6; } 10161fi 10162 10163 10164 fi 10165 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then 10166 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10167set dummy ${ncn_progname}; ac_word=$2 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10169$as_echo_n "checking for $ac_word... " >&6; } 10170if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : 10171 $as_echo_n "(cached) " >&6 10172else 10173 if test -n "$CXX_FOR_TARGET"; then 10174 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. 10175else 10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10177for as_dir in $PATH 10178do 10179 IFS=$as_save_IFS 10180 test -z "$as_dir" && as_dir=. 10181 for ac_exec_ext in '' $ac_executable_extensions; do 10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10183 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" 10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10185 break 2 10186 fi 10187done 10188 done 10189IFS=$as_save_IFS 10190 10191fi 10192fi 10193CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET 10194if test -n "$CXX_FOR_TARGET"; then 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 10196$as_echo "$CXX_FOR_TARGET" >&6; } 10197else 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10199$as_echo "no" >&6; } 10200fi 10201 10202 10203 fi 10204 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break 10205 done 10206fi 10207 10208if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then 10209 set dummy c++ g++ cxx gxx 10210 if test $build = $target ; then 10211 CXX_FOR_TARGET="$2" 10212 else 10213 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" 10214 fi 10215else 10216 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" 10217fi 10218 10219 10220 10221if test -n "$GCC_FOR_TARGET"; then 10222 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET 10223elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then 10224 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10225fi 10226 10227if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then 10228 for ncn_progname in gcc; do 10229 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10230set dummy ${ncn_progname}; ac_word=$2 10231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10232$as_echo_n "checking for $ac_word... " >&6; } 10233if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : 10234 $as_echo_n "(cached) " >&6 10235else 10236 if test -n "$GCC_FOR_TARGET"; then 10237 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10238else 10239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10240for as_dir in $PATH 10241do 10242 IFS=$as_save_IFS 10243 test -z "$as_dir" && as_dir=. 10244 for ac_exec_ext in '' $ac_executable_extensions; do 10245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10246 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" 10247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10248 break 2 10249 fi 10250done 10251 done 10252IFS=$as_save_IFS 10253 10254fi 10255fi 10256GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10257if test -n "$GCC_FOR_TARGET"; then 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10259$as_echo "$GCC_FOR_TARGET" >&6; } 10260else 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10262$as_echo "no" >&6; } 10263fi 10264 10265 10266 done 10267fi 10268 10269if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10270 for ncn_progname in gcc; do 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10272$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10273 if test -x $with_build_time_tools/${ncn_progname}; then 10274 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10276$as_echo "yes" >&6; } 10277 break 10278 else 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10280$as_echo "no" >&6; } 10281 fi 10282 done 10283fi 10284 10285if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then 10286 for ncn_progname in gcc; do 10287 if test -n "$ncn_target_tool_prefix"; then 10288 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10289set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10291$as_echo_n "checking for $ac_word... " >&6; } 10292if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : 10293 $as_echo_n "(cached) " >&6 10294else 10295 if test -n "$GCC_FOR_TARGET"; then 10296 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10297else 10298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10299for as_dir in $PATH 10300do 10301 IFS=$as_save_IFS 10302 test -z "$as_dir" && as_dir=. 10303 for ac_exec_ext in '' $ac_executable_extensions; do 10304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10305 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10307 break 2 10308 fi 10309done 10310 done 10311IFS=$as_save_IFS 10312 10313fi 10314fi 10315GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10316if test -n "$GCC_FOR_TARGET"; then 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10318$as_echo "$GCC_FOR_TARGET" >&6; } 10319else 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10321$as_echo "no" >&6; } 10322fi 10323 10324 10325 fi 10326 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then 10327 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10328set dummy ${ncn_progname}; ac_word=$2 10329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10330$as_echo_n "checking for $ac_word... " >&6; } 10331if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : 10332 $as_echo_n "(cached) " >&6 10333else 10334 if test -n "$GCC_FOR_TARGET"; then 10335 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. 10336else 10337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10338for as_dir in $PATH 10339do 10340 IFS=$as_save_IFS 10341 test -z "$as_dir" && as_dir=. 10342 for ac_exec_ext in '' $ac_executable_extensions; do 10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10344 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" 10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10346 break 2 10347 fi 10348done 10349 done 10350IFS=$as_save_IFS 10351 10352fi 10353fi 10354GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET 10355if test -n "$GCC_FOR_TARGET"; then 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 10357$as_echo "$GCC_FOR_TARGET" >&6; } 10358else 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10360$as_echo "no" >&6; } 10361fi 10362 10363 10364 fi 10365 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break 10366 done 10367fi 10368 10369if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then 10370 GCC_FOR_TARGET="${CC_FOR_TARGET}" 10371else 10372 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" 10373fi 10374 10375 10376 10377if test -n "$GCJ_FOR_TARGET"; then 10378 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET 10379elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then 10380 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET 10381fi 10382 10383if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then 10384 for ncn_progname in gcj; do 10385 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10386set dummy ${ncn_progname}; ac_word=$2 10387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10388$as_echo_n "checking for $ac_word... " >&6; } 10389if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : 10390 $as_echo_n "(cached) " >&6 10391else 10392 if test -n "$GCJ_FOR_TARGET"; then 10393 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. 10394else 10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10396for as_dir in $PATH 10397do 10398 IFS=$as_save_IFS 10399 test -z "$as_dir" && as_dir=. 10400 for ac_exec_ext in '' $ac_executable_extensions; do 10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10402 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" 10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10404 break 2 10405 fi 10406done 10407 done 10408IFS=$as_save_IFS 10409 10410fi 10411fi 10412GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET 10413if test -n "$GCJ_FOR_TARGET"; then 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 10415$as_echo "$GCJ_FOR_TARGET" >&6; } 10416else 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10418$as_echo "no" >&6; } 10419fi 10420 10421 10422 done 10423fi 10424 10425if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then 10426 for ncn_progname in gcj; do 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10428$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10429 if test -x $with_build_time_tools/${ncn_progname}; then 10430 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10432$as_echo "yes" >&6; } 10433 break 10434 else 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10436$as_echo "no" >&6; } 10437 fi 10438 done 10439fi 10440 10441if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then 10442 for ncn_progname in gcj; do 10443 if test -n "$ncn_target_tool_prefix"; then 10444 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10445set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10447$as_echo_n "checking for $ac_word... " >&6; } 10448if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : 10449 $as_echo_n "(cached) " >&6 10450else 10451 if test -n "$GCJ_FOR_TARGET"; then 10452 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. 10453else 10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10455for as_dir in $PATH 10456do 10457 IFS=$as_save_IFS 10458 test -z "$as_dir" && as_dir=. 10459 for ac_exec_ext in '' $ac_executable_extensions; do 10460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10461 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10463 break 2 10464 fi 10465done 10466 done 10467IFS=$as_save_IFS 10468 10469fi 10470fi 10471GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET 10472if test -n "$GCJ_FOR_TARGET"; then 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 10474$as_echo "$GCJ_FOR_TARGET" >&6; } 10475else 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10477$as_echo "no" >&6; } 10478fi 10479 10480 10481 fi 10482 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then 10483 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10484set dummy ${ncn_progname}; ac_word=$2 10485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10486$as_echo_n "checking for $ac_word... " >&6; } 10487if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : 10488 $as_echo_n "(cached) " >&6 10489else 10490 if test -n "$GCJ_FOR_TARGET"; then 10491 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. 10492else 10493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10494for as_dir in $PATH 10495do 10496 IFS=$as_save_IFS 10497 test -z "$as_dir" && as_dir=. 10498 for ac_exec_ext in '' $ac_executable_extensions; do 10499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10500 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" 10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10502 break 2 10503 fi 10504done 10505 done 10506IFS=$as_save_IFS 10507 10508fi 10509fi 10510GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET 10511if test -n "$GCJ_FOR_TARGET"; then 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 10513$as_echo "$GCJ_FOR_TARGET" >&6; } 10514else 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10516$as_echo "no" >&6; } 10517fi 10518 10519 10520 fi 10521 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break 10522 done 10523fi 10524 10525if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then 10526 set dummy gcj 10527 if test $build = $target ; then 10528 GCJ_FOR_TARGET="$2" 10529 else 10530 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" 10531 fi 10532else 10533 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" 10534fi 10535 10536 10537 10538if test -n "$GFORTRAN_FOR_TARGET"; then 10539 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET 10540elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10541 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10542fi 10543 10544if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10545 for ncn_progname in gfortran; do 10546 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10547set dummy ${ncn_progname}; ac_word=$2 10548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10549$as_echo_n "checking for $ac_word... " >&6; } 10550if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : 10551 $as_echo_n "(cached) " >&6 10552else 10553 if test -n "$GFORTRAN_FOR_TARGET"; then 10554 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10555else 10556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10557for as_dir in $PATH 10558do 10559 IFS=$as_save_IFS 10560 test -z "$as_dir" && as_dir=. 10561 for ac_exec_ext in '' $ac_executable_extensions; do 10562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10563 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" 10564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10565 break 2 10566 fi 10567done 10568 done 10569IFS=$as_save_IFS 10570 10571fi 10572fi 10573GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10574if test -n "$GFORTRAN_FOR_TARGET"; then 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10576$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10577else 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10579$as_echo "no" >&6; } 10580fi 10581 10582 10583 done 10584fi 10585 10586if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then 10587 for ncn_progname in gfortran; do 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10589$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10590 if test -x $with_build_time_tools/${ncn_progname}; then 10591 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10593$as_echo "yes" >&6; } 10594 break 10595 else 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10597$as_echo "no" >&6; } 10598 fi 10599 done 10600fi 10601 10602if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then 10603 for ncn_progname in gfortran; do 10604 if test -n "$ncn_target_tool_prefix"; then 10605 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10606set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10608$as_echo_n "checking for $ac_word... " >&6; } 10609if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : 10610 $as_echo_n "(cached) " >&6 10611else 10612 if test -n "$GFORTRAN_FOR_TARGET"; then 10613 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10614else 10615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10616for as_dir in $PATH 10617do 10618 IFS=$as_save_IFS 10619 test -z "$as_dir" && as_dir=. 10620 for ac_exec_ext in '' $ac_executable_extensions; do 10621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10622 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10624 break 2 10625 fi 10626done 10627 done 10628IFS=$as_save_IFS 10629 10630fi 10631fi 10632GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10633if test -n "$GFORTRAN_FOR_TARGET"; then 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10635$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10636else 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10638$as_echo "no" >&6; } 10639fi 10640 10641 10642 fi 10643 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then 10644 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10645set dummy ${ncn_progname}; ac_word=$2 10646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10647$as_echo_n "checking for $ac_word... " >&6; } 10648if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : 10649 $as_echo_n "(cached) " >&6 10650else 10651 if test -n "$GFORTRAN_FOR_TARGET"; then 10652 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. 10653else 10654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10655for as_dir in $PATH 10656do 10657 IFS=$as_save_IFS 10658 test -z "$as_dir" && as_dir=. 10659 for ac_exec_ext in '' $ac_executable_extensions; do 10660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10661 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" 10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10663 break 2 10664 fi 10665done 10666 done 10667IFS=$as_save_IFS 10668 10669fi 10670fi 10671GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET 10672if test -n "$GFORTRAN_FOR_TARGET"; then 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 10674$as_echo "$GFORTRAN_FOR_TARGET" >&6; } 10675else 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10677$as_echo "no" >&6; } 10678fi 10679 10680 10681 fi 10682 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break 10683 done 10684fi 10685 10686if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then 10687 set dummy gfortran 10688 if test $build = $target ; then 10689 GFORTRAN_FOR_TARGET="$2" 10690 else 10691 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" 10692 fi 10693else 10694 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" 10695fi 10696 10697 10698 10699if test -n "$GOC_FOR_TARGET"; then 10700 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET 10701elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then 10702 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10703fi 10704 10705if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then 10706 for ncn_progname in gccgo; do 10707 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10708set dummy ${ncn_progname}; ac_word=$2 10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10710$as_echo_n "checking for $ac_word... " >&6; } 10711if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 if test -n "$GOC_FOR_TARGET"; then 10715 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10716else 10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10718for as_dir in $PATH 10719do 10720 IFS=$as_save_IFS 10721 test -z "$as_dir" && as_dir=. 10722 for ac_exec_ext in '' $ac_executable_extensions; do 10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10724 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" 10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10726 break 2 10727 fi 10728done 10729 done 10730IFS=$as_save_IFS 10731 10732fi 10733fi 10734GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10735if test -n "$GOC_FOR_TARGET"; then 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10737$as_echo "$GOC_FOR_TARGET" >&6; } 10738else 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10740$as_echo "no" >&6; } 10741fi 10742 10743 10744 done 10745fi 10746 10747if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then 10748 for ncn_progname in gccgo; do 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10750$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10751 if test -x $with_build_time_tools/${ncn_progname}; then 10752 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10754$as_echo "yes" >&6; } 10755 break 10756 else 10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10758$as_echo "no" >&6; } 10759 fi 10760 done 10761fi 10762 10763if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then 10764 for ncn_progname in gccgo; do 10765 if test -n "$ncn_target_tool_prefix"; then 10766 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 10767set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 10768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10769$as_echo_n "checking for $ac_word... " >&6; } 10770if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : 10771 $as_echo_n "(cached) " >&6 10772else 10773 if test -n "$GOC_FOR_TARGET"; then 10774 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10775else 10776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10777for as_dir in $PATH 10778do 10779 IFS=$as_save_IFS 10780 test -z "$as_dir" && as_dir=. 10781 for ac_exec_ext in '' $ac_executable_extensions; do 10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10783 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10785 break 2 10786 fi 10787done 10788 done 10789IFS=$as_save_IFS 10790 10791fi 10792fi 10793GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10794if test -n "$GOC_FOR_TARGET"; then 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10796$as_echo "$GOC_FOR_TARGET" >&6; } 10797else 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10799$as_echo "no" >&6; } 10800fi 10801 10802 10803 fi 10804 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then 10805 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10806set dummy ${ncn_progname}; ac_word=$2 10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10808$as_echo_n "checking for $ac_word... " >&6; } 10809if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : 10810 $as_echo_n "(cached) " >&6 10811else 10812 if test -n "$GOC_FOR_TARGET"; then 10813 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. 10814else 10815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10816for as_dir in $PATH 10817do 10818 IFS=$as_save_IFS 10819 test -z "$as_dir" && as_dir=. 10820 for ac_exec_ext in '' $ac_executable_extensions; do 10821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10822 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" 10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10824 break 2 10825 fi 10826done 10827 done 10828IFS=$as_save_IFS 10829 10830fi 10831fi 10832GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET 10833if test -n "$GOC_FOR_TARGET"; then 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 10835$as_echo "$GOC_FOR_TARGET" >&6; } 10836else 10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10838$as_echo "no" >&6; } 10839fi 10840 10841 10842 fi 10843 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break 10844 done 10845fi 10846 10847if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then 10848 set dummy gccgo 10849 if test $build = $target ; then 10850 GOC_FOR_TARGET="$2" 10851 else 10852 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" 10853 fi 10854else 10855 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" 10856fi 10857 10858 10859 10860cat > conftest.c << \EOF 10861#ifdef __GNUC__ 10862 gcc_yay; 10863#endif 10864EOF 10865if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then 10866 have_gcc_for_target=yes 10867else 10868 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc 10869 have_gcc_for_target=no 10870fi 10871rm conftest.c 10872 10873 10874 10875 10876if test -z "$ac_cv_path_AR_FOR_TARGET" ; then 10877 if test -n "$with_build_time_tools"; then 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 10879$as_echo_n "checking for ar in $with_build_time_tools... " >&6; } 10880 if test -x $with_build_time_tools/ar; then 10881 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar 10882 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 10884$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } 10885 else 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10887$as_echo "no" >&6; } 10888 fi 10889 elif test $build != $host && test $have_gcc_for_target = yes; then 10890 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` 10891 test $AR_FOR_TARGET = ar && AR_FOR_TARGET= 10892 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET 10893 fi 10894fi 10895if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 10896 # Extract the first word of "ar", so it can be a program name with args. 10897set dummy ar; ac_word=$2 10898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10899$as_echo_n "checking for $ac_word... " >&6; } 10900if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : 10901 $as_echo_n "(cached) " >&6 10902else 10903 case $AR_FOR_TARGET in 10904 [\\/]* | ?:[\\/]*) 10905 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. 10906 ;; 10907 *) 10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10909for as_dir in $gcc_cv_tool_dirs 10910do 10911 IFS=$as_save_IFS 10912 test -z "$as_dir" && as_dir=. 10913 for ac_exec_ext in '' $ac_executable_extensions; do 10914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10915 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 10916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10917 break 2 10918 fi 10919done 10920 done 10921IFS=$as_save_IFS 10922 10923 ;; 10924esac 10925fi 10926AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET 10927if test -n "$AR_FOR_TARGET"; then 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 10929$as_echo "$AR_FOR_TARGET" >&6; } 10930else 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10932$as_echo "no" >&6; } 10933fi 10934 10935 10936fi 10937if test -z "$ac_cv_path_AR_FOR_TARGET" ; then 10938 10939 10940if test -n "$AR_FOR_TARGET"; then 10941 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET 10942elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then 10943 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 10944fi 10945 10946if test -n "$ac_cv_prog_AR_FOR_TARGET"; then 10947 for ncn_progname in ar; do 10948 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 10949set dummy ${ncn_progname}; ac_word=$2 10950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10951$as_echo_n "checking for $ac_word... " >&6; } 10952if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : 10953 $as_echo_n "(cached) " >&6 10954else 10955 if test -n "$AR_FOR_TARGET"; then 10956 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 10957else 10958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10959for as_dir in $PATH 10960do 10961 IFS=$as_save_IFS 10962 test -z "$as_dir" && as_dir=. 10963 for ac_exec_ext in '' $ac_executable_extensions; do 10964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10965 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" 10966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10967 break 2 10968 fi 10969done 10970 done 10971IFS=$as_save_IFS 10972 10973fi 10974fi 10975AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 10976if test -n "$AR_FOR_TARGET"; then 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 10978$as_echo "$AR_FOR_TARGET" >&6; } 10979else 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10981$as_echo "no" >&6; } 10982fi 10983 10984 10985 done 10986fi 10987 10988if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then 10989 for ncn_progname in ar; do 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 10991$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 10992 if test -x $with_build_time_tools/${ncn_progname}; then 10993 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10995$as_echo "yes" >&6; } 10996 break 10997 else 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10999$as_echo "no" >&6; } 11000 fi 11001 done 11002fi 11003 11004if test -z "$ac_cv_prog_AR_FOR_TARGET"; then 11005 for ncn_progname in ar; do 11006 if test -n "$ncn_target_tool_prefix"; then 11007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11008set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11010$as_echo_n "checking for $ac_word... " >&6; } 11011if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : 11012 $as_echo_n "(cached) " >&6 11013else 11014 if test -n "$AR_FOR_TARGET"; then 11015 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11016else 11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11018for as_dir in $PATH 11019do 11020 IFS=$as_save_IFS 11021 test -z "$as_dir" && as_dir=. 11022 for ac_exec_ext in '' $ac_executable_extensions; do 11023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11024 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11026 break 2 11027 fi 11028done 11029 done 11030IFS=$as_save_IFS 11031 11032fi 11033fi 11034AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11035if test -n "$AR_FOR_TARGET"; then 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11037$as_echo "$AR_FOR_TARGET" >&6; } 11038else 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11040$as_echo "no" >&6; } 11041fi 11042 11043 11044 fi 11045 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then 11046 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11047set dummy ${ncn_progname}; ac_word=$2 11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11049$as_echo_n "checking for $ac_word... " >&6; } 11050if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : 11051 $as_echo_n "(cached) " >&6 11052else 11053 if test -n "$AR_FOR_TARGET"; then 11054 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 11055else 11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11057for as_dir in $PATH 11058do 11059 IFS=$as_save_IFS 11060 test -z "$as_dir" && as_dir=. 11061 for ac_exec_ext in '' $ac_executable_extensions; do 11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11063 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" 11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11065 break 2 11066 fi 11067done 11068 done 11069IFS=$as_save_IFS 11070 11071fi 11072fi 11073AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET 11074if test -n "$AR_FOR_TARGET"; then 11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 11076$as_echo "$AR_FOR_TARGET" >&6; } 11077else 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11079$as_echo "no" >&6; } 11080fi 11081 11082 11083 fi 11084 test -n "$ac_cv_prog_AR_FOR_TARGET" && break 11085 done 11086fi 11087 11088if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then 11089 set dummy ar 11090 if test $build = $target ; then 11091 AR_FOR_TARGET="$2" 11092 else 11093 AR_FOR_TARGET="${ncn_target_tool_prefix}$2" 11094 fi 11095else 11096 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" 11097fi 11098 11099else 11100 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET 11101fi 11102 11103 11104 11105 11106if test -z "$ac_cv_path_AS_FOR_TARGET" ; then 11107 if test -n "$with_build_time_tools"; then 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 11109$as_echo_n "checking for as in $with_build_time_tools... " >&6; } 11110 if test -x $with_build_time_tools/as; then 11111 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as 11112 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 11114$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } 11115 else 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11117$as_echo "no" >&6; } 11118 fi 11119 elif test $build != $host && test $have_gcc_for_target = yes; then 11120 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` 11121 test $AS_FOR_TARGET = as && AS_FOR_TARGET= 11122 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET 11123 fi 11124fi 11125if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11126 # Extract the first word of "as", so it can be a program name with args. 11127set dummy as; ac_word=$2 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11129$as_echo_n "checking for $ac_word... " >&6; } 11130if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 case $AS_FOR_TARGET in 11134 [\\/]* | ?:[\\/]*) 11135 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. 11136 ;; 11137 *) 11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11139for as_dir in $gcc_cv_tool_dirs 11140do 11141 IFS=$as_save_IFS 11142 test -z "$as_dir" && as_dir=. 11143 for ac_exec_ext in '' $ac_executable_extensions; do 11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11145 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11147 break 2 11148 fi 11149done 11150 done 11151IFS=$as_save_IFS 11152 11153 ;; 11154esac 11155fi 11156AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET 11157if test -n "$AS_FOR_TARGET"; then 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11159$as_echo "$AS_FOR_TARGET" >&6; } 11160else 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11162$as_echo "no" >&6; } 11163fi 11164 11165 11166fi 11167if test -z "$ac_cv_path_AS_FOR_TARGET" ; then 11168 11169 11170if test -n "$AS_FOR_TARGET"; then 11171 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET 11172elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then 11173 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11174fi 11175 11176if test -n "$ac_cv_prog_AS_FOR_TARGET"; then 11177 for ncn_progname in as; do 11178 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11179set dummy ${ncn_progname}; ac_word=$2 11180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11181$as_echo_n "checking for $ac_word... " >&6; } 11182if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : 11183 $as_echo_n "(cached) " >&6 11184else 11185 if test -n "$AS_FOR_TARGET"; then 11186 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11187else 11188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11189for as_dir in $PATH 11190do 11191 IFS=$as_save_IFS 11192 test -z "$as_dir" && as_dir=. 11193 for ac_exec_ext in '' $ac_executable_extensions; do 11194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11195 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" 11196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11197 break 2 11198 fi 11199done 11200 done 11201IFS=$as_save_IFS 11202 11203fi 11204fi 11205AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11206if test -n "$AS_FOR_TARGET"; then 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11208$as_echo "$AS_FOR_TARGET" >&6; } 11209else 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11211$as_echo "no" >&6; } 11212fi 11213 11214 11215 done 11216fi 11217 11218if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then 11219 for ncn_progname in as; do 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11221$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11222 if test -x $with_build_time_tools/${ncn_progname}; then 11223 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11225$as_echo "yes" >&6; } 11226 break 11227 else 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11229$as_echo "no" >&6; } 11230 fi 11231 done 11232fi 11233 11234if test -z "$ac_cv_prog_AS_FOR_TARGET"; then 11235 for ncn_progname in as; do 11236 if test -n "$ncn_target_tool_prefix"; then 11237 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11238set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11240$as_echo_n "checking for $ac_word... " >&6; } 11241if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : 11242 $as_echo_n "(cached) " >&6 11243else 11244 if test -n "$AS_FOR_TARGET"; then 11245 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11246else 11247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11248for as_dir in $PATH 11249do 11250 IFS=$as_save_IFS 11251 test -z "$as_dir" && as_dir=. 11252 for ac_exec_ext in '' $ac_executable_extensions; do 11253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11254 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11256 break 2 11257 fi 11258done 11259 done 11260IFS=$as_save_IFS 11261 11262fi 11263fi 11264AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11265if test -n "$AS_FOR_TARGET"; then 11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11267$as_echo "$AS_FOR_TARGET" >&6; } 11268else 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11270$as_echo "no" >&6; } 11271fi 11272 11273 11274 fi 11275 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then 11276 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11277set dummy ${ncn_progname}; ac_word=$2 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11279$as_echo_n "checking for $ac_word... " >&6; } 11280if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : 11281 $as_echo_n "(cached) " >&6 11282else 11283 if test -n "$AS_FOR_TARGET"; then 11284 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 11285else 11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11287for as_dir in $PATH 11288do 11289 IFS=$as_save_IFS 11290 test -z "$as_dir" && as_dir=. 11291 for ac_exec_ext in '' $ac_executable_extensions; do 11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11293 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11295 break 2 11296 fi 11297done 11298 done 11299IFS=$as_save_IFS 11300 11301fi 11302fi 11303AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET 11304if test -n "$AS_FOR_TARGET"; then 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 11306$as_echo "$AS_FOR_TARGET" >&6; } 11307else 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11309$as_echo "no" >&6; } 11310fi 11311 11312 11313 fi 11314 test -n "$ac_cv_prog_AS_FOR_TARGET" && break 11315 done 11316fi 11317 11318if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then 11319 set dummy as 11320 if test $build = $target ; then 11321 AS_FOR_TARGET="$2" 11322 else 11323 AS_FOR_TARGET="${ncn_target_tool_prefix}$2" 11324 fi 11325else 11326 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" 11327fi 11328 11329else 11330 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET 11331fi 11332 11333 11334 11335 11336if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then 11337 if test -n "$with_build_time_tools"; then 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 11339$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } 11340 if test -x $with_build_time_tools/dlltool; then 11341 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool 11342 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 11344$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } 11345 else 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11347$as_echo "no" >&6; } 11348 fi 11349 elif test $build != $host && test $have_gcc_for_target = yes; then 11350 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` 11351 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= 11352 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11353 fi 11354fi 11355if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11356 # Extract the first word of "dlltool", so it can be a program name with args. 11357set dummy dlltool; ac_word=$2 11358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11359$as_echo_n "checking for $ac_word... " >&6; } 11360if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : 11361 $as_echo_n "(cached) " >&6 11362else 11363 case $DLLTOOL_FOR_TARGET in 11364 [\\/]* | ?:[\\/]*) 11365 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. 11366 ;; 11367 *) 11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11369for as_dir in $gcc_cv_tool_dirs 11370do 11371 IFS=$as_save_IFS 11372 test -z "$as_dir" && as_dir=. 11373 for ac_exec_ext in '' $ac_executable_extensions; do 11374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11375 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11377 break 2 11378 fi 11379done 11380 done 11381IFS=$as_save_IFS 11382 11383 ;; 11384esac 11385fi 11386DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET 11387if test -n "$DLLTOOL_FOR_TARGET"; then 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11389$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11390else 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11392$as_echo "no" >&6; } 11393fi 11394 11395 11396fi 11397if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then 11398 11399 11400if test -n "$DLLTOOL_FOR_TARGET"; then 11401 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 11402elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11403 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11404fi 11405 11406if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11407 for ncn_progname in dlltool; do 11408 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11409set dummy ${ncn_progname}; ac_word=$2 11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11411$as_echo_n "checking for $ac_word... " >&6; } 11412if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : 11413 $as_echo_n "(cached) " >&6 11414else 11415 if test -n "$DLLTOOL_FOR_TARGET"; then 11416 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11417else 11418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11419for as_dir in $PATH 11420do 11421 IFS=$as_save_IFS 11422 test -z "$as_dir" && as_dir=. 11423 for ac_exec_ext in '' $ac_executable_extensions; do 11424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11425 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" 11426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11427 break 2 11428 fi 11429done 11430 done 11431IFS=$as_save_IFS 11432 11433fi 11434fi 11435DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11436if test -n "$DLLTOOL_FOR_TARGET"; then 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11438$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11439else 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11441$as_echo "no" >&6; } 11442fi 11443 11444 11445 done 11446fi 11447 11448if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then 11449 for ncn_progname in dlltool; do 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11451$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11452 if test -x $with_build_time_tools/${ncn_progname}; then 11453 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11455$as_echo "yes" >&6; } 11456 break 11457 else 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11459$as_echo "no" >&6; } 11460 fi 11461 done 11462fi 11463 11464if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then 11465 for ncn_progname in dlltool; do 11466 if test -n "$ncn_target_tool_prefix"; then 11467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11470$as_echo_n "checking for $ac_word... " >&6; } 11471if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : 11472 $as_echo_n "(cached) " >&6 11473else 11474 if test -n "$DLLTOOL_FOR_TARGET"; then 11475 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11476else 11477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11478for as_dir in $PATH 11479do 11480 IFS=$as_save_IFS 11481 test -z "$as_dir" && as_dir=. 11482 for ac_exec_ext in '' $ac_executable_extensions; do 11483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11484 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11486 break 2 11487 fi 11488done 11489 done 11490IFS=$as_save_IFS 11491 11492fi 11493fi 11494DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11495if test -n "$DLLTOOL_FOR_TARGET"; then 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11497$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11498else 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11500$as_echo "no" >&6; } 11501fi 11502 11503 11504 fi 11505 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then 11506 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11507set dummy ${ncn_progname}; ac_word=$2 11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11509$as_echo_n "checking for $ac_word... " >&6; } 11510if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : 11511 $as_echo_n "(cached) " >&6 11512else 11513 if test -n "$DLLTOOL_FOR_TARGET"; then 11514 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 11515else 11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11517for as_dir in $PATH 11518do 11519 IFS=$as_save_IFS 11520 test -z "$as_dir" && as_dir=. 11521 for ac_exec_ext in '' $ac_executable_extensions; do 11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11523 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" 11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11525 break 2 11526 fi 11527done 11528 done 11529IFS=$as_save_IFS 11530 11531fi 11532fi 11533DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET 11534if test -n "$DLLTOOL_FOR_TARGET"; then 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 11536$as_echo "$DLLTOOL_FOR_TARGET" >&6; } 11537else 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11539$as_echo "no" >&6; } 11540fi 11541 11542 11543 fi 11544 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break 11545 done 11546fi 11547 11548if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then 11549 set dummy dlltool 11550 if test $build = $target ; then 11551 DLLTOOL_FOR_TARGET="$2" 11552 else 11553 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" 11554 fi 11555else 11556 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" 11557fi 11558 11559else 11560 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET 11561fi 11562 11563 11564 11565 11566if test -z "$ac_cv_path_LD_FOR_TARGET" ; then 11567 if test -n "$with_build_time_tools"; then 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 11569$as_echo_n "checking for ld in $with_build_time_tools... " >&6; } 11570 if test -x $with_build_time_tools/ld; then 11571 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld 11572 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 11574$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } 11575 else 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11577$as_echo "no" >&6; } 11578 fi 11579 elif test $build != $host && test $have_gcc_for_target = yes; then 11580 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` 11581 test $LD_FOR_TARGET = ld && LD_FOR_TARGET= 11582 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET 11583 fi 11584fi 11585if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11586 # Extract the first word of "ld", so it can be a program name with args. 11587set dummy ld; ac_word=$2 11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11589$as_echo_n "checking for $ac_word... " >&6; } 11590if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : 11591 $as_echo_n "(cached) " >&6 11592else 11593 case $LD_FOR_TARGET in 11594 [\\/]* | ?:[\\/]*) 11595 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. 11596 ;; 11597 *) 11598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11599for as_dir in $gcc_cv_tool_dirs 11600do 11601 IFS=$as_save_IFS 11602 test -z "$as_dir" && as_dir=. 11603 for ac_exec_ext in '' $ac_executable_extensions; do 11604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11605 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11607 break 2 11608 fi 11609done 11610 done 11611IFS=$as_save_IFS 11612 11613 ;; 11614esac 11615fi 11616LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET 11617if test -n "$LD_FOR_TARGET"; then 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11619$as_echo "$LD_FOR_TARGET" >&6; } 11620else 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11622$as_echo "no" >&6; } 11623fi 11624 11625 11626fi 11627if test -z "$ac_cv_path_LD_FOR_TARGET" ; then 11628 11629 11630if test -n "$LD_FOR_TARGET"; then 11631 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET 11632elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then 11633 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11634fi 11635 11636if test -n "$ac_cv_prog_LD_FOR_TARGET"; then 11637 for ncn_progname in ld; do 11638 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11639set dummy ${ncn_progname}; ac_word=$2 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11641$as_echo_n "checking for $ac_word... " >&6; } 11642if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : 11643 $as_echo_n "(cached) " >&6 11644else 11645 if test -n "$LD_FOR_TARGET"; then 11646 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 11647else 11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11649for as_dir in $PATH 11650do 11651 IFS=$as_save_IFS 11652 test -z "$as_dir" && as_dir=. 11653 for ac_exec_ext in '' $ac_executable_extensions; do 11654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11655 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" 11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11657 break 2 11658 fi 11659done 11660 done 11661IFS=$as_save_IFS 11662 11663fi 11664fi 11665LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11666if test -n "$LD_FOR_TARGET"; then 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11668$as_echo "$LD_FOR_TARGET" >&6; } 11669else 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11671$as_echo "no" >&6; } 11672fi 11673 11674 11675 done 11676fi 11677 11678if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then 11679 for ncn_progname in ld; do 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11681$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11682 if test -x $with_build_time_tools/${ncn_progname}; then 11683 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11685$as_echo "yes" >&6; } 11686 break 11687 else 11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11689$as_echo "no" >&6; } 11690 fi 11691 done 11692fi 11693 11694if test -z "$ac_cv_prog_LD_FOR_TARGET"; then 11695 for ncn_progname in ld; do 11696 if test -n "$ncn_target_tool_prefix"; then 11697 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11698set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11700$as_echo_n "checking for $ac_word... " >&6; } 11701if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : 11702 $as_echo_n "(cached) " >&6 11703else 11704 if test -n "$LD_FOR_TARGET"; then 11705 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 11706else 11707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11708for as_dir in $PATH 11709do 11710 IFS=$as_save_IFS 11711 test -z "$as_dir" && as_dir=. 11712 for ac_exec_ext in '' $ac_executable_extensions; do 11713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11714 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11716 break 2 11717 fi 11718done 11719 done 11720IFS=$as_save_IFS 11721 11722fi 11723fi 11724LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11725if test -n "$LD_FOR_TARGET"; then 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11727$as_echo "$LD_FOR_TARGET" >&6; } 11728else 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11730$as_echo "no" >&6; } 11731fi 11732 11733 11734 fi 11735 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then 11736 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11737set dummy ${ncn_progname}; ac_word=$2 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11739$as_echo_n "checking for $ac_word... " >&6; } 11740if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : 11741 $as_echo_n "(cached) " >&6 11742else 11743 if test -n "$LD_FOR_TARGET"; then 11744 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 11745else 11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11747for as_dir in $PATH 11748do 11749 IFS=$as_save_IFS 11750 test -z "$as_dir" && as_dir=. 11751 for ac_exec_ext in '' $ac_executable_extensions; do 11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11753 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" 11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11755 break 2 11756 fi 11757done 11758 done 11759IFS=$as_save_IFS 11760 11761fi 11762fi 11763LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET 11764if test -n "$LD_FOR_TARGET"; then 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 11766$as_echo "$LD_FOR_TARGET" >&6; } 11767else 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11769$as_echo "no" >&6; } 11770fi 11771 11772 11773 fi 11774 test -n "$ac_cv_prog_LD_FOR_TARGET" && break 11775 done 11776fi 11777 11778if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then 11779 set dummy ld 11780 if test $build = $target ; then 11781 LD_FOR_TARGET="$2" 11782 else 11783 LD_FOR_TARGET="${ncn_target_tool_prefix}$2" 11784 fi 11785else 11786 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" 11787fi 11788 11789else 11790 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET 11791fi 11792 11793 11794 11795 11796if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then 11797 if test -n "$with_build_time_tools"; then 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 11799$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } 11800 if test -x $with_build_time_tools/lipo; then 11801 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo 11802 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 11804$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } 11805 else 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11807$as_echo "no" >&6; } 11808 fi 11809 elif test $build != $host && test $have_gcc_for_target = yes; then 11810 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` 11811 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= 11812 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 11813 fi 11814fi 11815if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 11816 # Extract the first word of "lipo", so it can be a program name with args. 11817set dummy lipo; ac_word=$2 11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11819$as_echo_n "checking for $ac_word... " >&6; } 11820if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : 11821 $as_echo_n "(cached) " >&6 11822else 11823 case $LIPO_FOR_TARGET in 11824 [\\/]* | ?:[\\/]*) 11825 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. 11826 ;; 11827 *) 11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11829for as_dir in $gcc_cv_tool_dirs 11830do 11831 IFS=$as_save_IFS 11832 test -z "$as_dir" && as_dir=. 11833 for ac_exec_ext in '' $ac_executable_extensions; do 11834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11835 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11837 break 2 11838 fi 11839done 11840 done 11841IFS=$as_save_IFS 11842 11843 ;; 11844esac 11845fi 11846LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET 11847if test -n "$LIPO_FOR_TARGET"; then 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 11849$as_echo "$LIPO_FOR_TARGET" >&6; } 11850else 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11852$as_echo "no" >&6; } 11853fi 11854 11855 11856fi 11857if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then 11858 11859 11860if test -n "$LIPO_FOR_TARGET"; then 11861 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET 11862elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then 11863 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 11864fi 11865 11866if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then 11867 for ncn_progname in lipo; do 11868 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11869set dummy ${ncn_progname}; ac_word=$2 11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11871$as_echo_n "checking for $ac_word... " >&6; } 11872if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : 11873 $as_echo_n "(cached) " >&6 11874else 11875 if test -n "$LIPO_FOR_TARGET"; then 11876 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 11877else 11878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11879for as_dir in $PATH 11880do 11881 IFS=$as_save_IFS 11882 test -z "$as_dir" && as_dir=. 11883 for ac_exec_ext in '' $ac_executable_extensions; do 11884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11885 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" 11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11887 break 2 11888 fi 11889done 11890 done 11891IFS=$as_save_IFS 11892 11893fi 11894fi 11895LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 11896if test -n "$LIPO_FOR_TARGET"; then 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 11898$as_echo "$LIPO_FOR_TARGET" >&6; } 11899else 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11901$as_echo "no" >&6; } 11902fi 11903 11904 11905 done 11906fi 11907 11908if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then 11909 for ncn_progname in lipo; do 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 11911$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 11912 if test -x $with_build_time_tools/${ncn_progname}; then 11913 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11915$as_echo "yes" >&6; } 11916 break 11917 else 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11919$as_echo "no" >&6; } 11920 fi 11921 done 11922fi 11923 11924if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then 11925 for ncn_progname in lipo; do 11926 if test -n "$ncn_target_tool_prefix"; then 11927 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 11928set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11930$as_echo_n "checking for $ac_word... " >&6; } 11931if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : 11932 $as_echo_n "(cached) " >&6 11933else 11934 if test -n "$LIPO_FOR_TARGET"; then 11935 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 11936else 11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11938for as_dir in $PATH 11939do 11940 IFS=$as_save_IFS 11941 test -z "$as_dir" && as_dir=. 11942 for ac_exec_ext in '' $ac_executable_extensions; do 11943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11944 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11946 break 2 11947 fi 11948done 11949 done 11950IFS=$as_save_IFS 11951 11952fi 11953fi 11954LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 11955if test -n "$LIPO_FOR_TARGET"; then 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 11957$as_echo "$LIPO_FOR_TARGET" >&6; } 11958else 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11960$as_echo "no" >&6; } 11961fi 11962 11963 11964 fi 11965 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then 11966 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 11967set dummy ${ncn_progname}; ac_word=$2 11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11969$as_echo_n "checking for $ac_word... " >&6; } 11970if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : 11971 $as_echo_n "(cached) " >&6 11972else 11973 if test -n "$LIPO_FOR_TARGET"; then 11974 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. 11975else 11976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11977for as_dir in $PATH 11978do 11979 IFS=$as_save_IFS 11980 test -z "$as_dir" && as_dir=. 11981 for ac_exec_ext in '' $ac_executable_extensions; do 11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11983 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" 11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11985 break 2 11986 fi 11987done 11988 done 11989IFS=$as_save_IFS 11990 11991fi 11992fi 11993LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET 11994if test -n "$LIPO_FOR_TARGET"; then 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 11996$as_echo "$LIPO_FOR_TARGET" >&6; } 11997else 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11999$as_echo "no" >&6; } 12000fi 12001 12002 12003 fi 12004 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break 12005 done 12006fi 12007 12008if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then 12009 set dummy lipo 12010 if test $build = $target ; then 12011 LIPO_FOR_TARGET="$2" 12012 else 12013 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" 12014 fi 12015else 12016 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" 12017fi 12018 12019else 12020 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET 12021fi 12022 12023 12024 12025 12026if test -z "$ac_cv_path_NM_FOR_TARGET" ; then 12027 if test -n "$with_build_time_tools"; then 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 12029$as_echo_n "checking for nm in $with_build_time_tools... " >&6; } 12030 if test -x $with_build_time_tools/nm; then 12031 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm 12032 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 12034$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } 12035 else 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12037$as_echo "no" >&6; } 12038 fi 12039 elif test $build != $host && test $have_gcc_for_target = yes; then 12040 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` 12041 test $NM_FOR_TARGET = nm && NM_FOR_TARGET= 12042 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET 12043 fi 12044fi 12045if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12046 # Extract the first word of "nm", so it can be a program name with args. 12047set dummy nm; ac_word=$2 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12049$as_echo_n "checking for $ac_word... " >&6; } 12050if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : 12051 $as_echo_n "(cached) " >&6 12052else 12053 case $NM_FOR_TARGET in 12054 [\\/]* | ?:[\\/]*) 12055 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. 12056 ;; 12057 *) 12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12059for as_dir in $gcc_cv_tool_dirs 12060do 12061 IFS=$as_save_IFS 12062 test -z "$as_dir" && as_dir=. 12063 for ac_exec_ext in '' $ac_executable_extensions; do 12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12065 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12067 break 2 12068 fi 12069done 12070 done 12071IFS=$as_save_IFS 12072 12073 ;; 12074esac 12075fi 12076NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET 12077if test -n "$NM_FOR_TARGET"; then 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12079$as_echo "$NM_FOR_TARGET" >&6; } 12080else 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12082$as_echo "no" >&6; } 12083fi 12084 12085 12086fi 12087if test -z "$ac_cv_path_NM_FOR_TARGET" ; then 12088 12089 12090if test -n "$NM_FOR_TARGET"; then 12091 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET 12092elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then 12093 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12094fi 12095 12096if test -n "$ac_cv_prog_NM_FOR_TARGET"; then 12097 for ncn_progname in nm; do 12098 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12099set dummy ${ncn_progname}; ac_word=$2 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12101$as_echo_n "checking for $ac_word... " >&6; } 12102if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : 12103 $as_echo_n "(cached) " >&6 12104else 12105 if test -n "$NM_FOR_TARGET"; then 12106 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12107else 12108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12109for as_dir in $PATH 12110do 12111 IFS=$as_save_IFS 12112 test -z "$as_dir" && as_dir=. 12113 for ac_exec_ext in '' $ac_executable_extensions; do 12114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12115 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" 12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12117 break 2 12118 fi 12119done 12120 done 12121IFS=$as_save_IFS 12122 12123fi 12124fi 12125NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12126if test -n "$NM_FOR_TARGET"; then 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12128$as_echo "$NM_FOR_TARGET" >&6; } 12129else 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12131$as_echo "no" >&6; } 12132fi 12133 12134 12135 done 12136fi 12137 12138if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then 12139 for ncn_progname in nm; do 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12141$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12142 if test -x $with_build_time_tools/${ncn_progname}; then 12143 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12145$as_echo "yes" >&6; } 12146 break 12147 else 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12149$as_echo "no" >&6; } 12150 fi 12151 done 12152fi 12153 12154if test -z "$ac_cv_prog_NM_FOR_TARGET"; then 12155 for ncn_progname in nm; do 12156 if test -n "$ncn_target_tool_prefix"; then 12157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12158set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12160$as_echo_n "checking for $ac_word... " >&6; } 12161if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : 12162 $as_echo_n "(cached) " >&6 12163else 12164 if test -n "$NM_FOR_TARGET"; then 12165 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12166else 12167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12168for as_dir in $PATH 12169do 12170 IFS=$as_save_IFS 12171 test -z "$as_dir" && as_dir=. 12172 for ac_exec_ext in '' $ac_executable_extensions; do 12173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12174 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12176 break 2 12177 fi 12178done 12179 done 12180IFS=$as_save_IFS 12181 12182fi 12183fi 12184NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12185if test -n "$NM_FOR_TARGET"; then 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12187$as_echo "$NM_FOR_TARGET" >&6; } 12188else 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12190$as_echo "no" >&6; } 12191fi 12192 12193 12194 fi 12195 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then 12196 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12197set dummy ${ncn_progname}; ac_word=$2 12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12199$as_echo_n "checking for $ac_word... " >&6; } 12200if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : 12201 $as_echo_n "(cached) " >&6 12202else 12203 if test -n "$NM_FOR_TARGET"; then 12204 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 12205else 12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12207for as_dir in $PATH 12208do 12209 IFS=$as_save_IFS 12210 test -z "$as_dir" && as_dir=. 12211 for ac_exec_ext in '' $ac_executable_extensions; do 12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12213 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" 12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12215 break 2 12216 fi 12217done 12218 done 12219IFS=$as_save_IFS 12220 12221fi 12222fi 12223NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET 12224if test -n "$NM_FOR_TARGET"; then 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 12226$as_echo "$NM_FOR_TARGET" >&6; } 12227else 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12229$as_echo "no" >&6; } 12230fi 12231 12232 12233 fi 12234 test -n "$ac_cv_prog_NM_FOR_TARGET" && break 12235 done 12236fi 12237 12238if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then 12239 set dummy nm 12240 if test $build = $target ; then 12241 NM_FOR_TARGET="$2" 12242 else 12243 NM_FOR_TARGET="${ncn_target_tool_prefix}$2" 12244 fi 12245else 12246 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" 12247fi 12248 12249else 12250 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET 12251fi 12252 12253 12254 12255 12256if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then 12257 if test -n "$with_build_time_tools"; then 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 12259$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } 12260 if test -x $with_build_time_tools/objcopy; then 12261 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy 12262 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 12264$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } 12265 else 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12267$as_echo "no" >&6; } 12268 fi 12269 elif test $build != $host && test $have_gcc_for_target = yes; then 12270 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` 12271 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= 12272 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12273 fi 12274fi 12275if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12276 # Extract the first word of "objcopy", so it can be a program name with args. 12277set dummy objcopy; ac_word=$2 12278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12279$as_echo_n "checking for $ac_word... " >&6; } 12280if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : 12281 $as_echo_n "(cached) " >&6 12282else 12283 case $OBJCOPY_FOR_TARGET in 12284 [\\/]* | ?:[\\/]*) 12285 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. 12286 ;; 12287 *) 12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12289for as_dir in $gcc_cv_tool_dirs 12290do 12291 IFS=$as_save_IFS 12292 test -z "$as_dir" && as_dir=. 12293 for ac_exec_ext in '' $ac_executable_extensions; do 12294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12295 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12297 break 2 12298 fi 12299done 12300 done 12301IFS=$as_save_IFS 12302 12303 ;; 12304esac 12305fi 12306OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET 12307if test -n "$OBJCOPY_FOR_TARGET"; then 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12309$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12310else 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12312$as_echo "no" >&6; } 12313fi 12314 12315 12316fi 12317if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then 12318 12319 12320if test -n "$OBJCOPY_FOR_TARGET"; then 12321 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET 12322elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12323 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12324fi 12325 12326if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12327 for ncn_progname in objcopy; do 12328 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12329set dummy ${ncn_progname}; ac_word=$2 12330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12331$as_echo_n "checking for $ac_word... " >&6; } 12332if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : 12333 $as_echo_n "(cached) " >&6 12334else 12335 if test -n "$OBJCOPY_FOR_TARGET"; then 12336 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12337else 12338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12339for as_dir in $PATH 12340do 12341 IFS=$as_save_IFS 12342 test -z "$as_dir" && as_dir=. 12343 for ac_exec_ext in '' $ac_executable_extensions; do 12344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12345 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" 12346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12347 break 2 12348 fi 12349done 12350 done 12351IFS=$as_save_IFS 12352 12353fi 12354fi 12355OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12356if test -n "$OBJCOPY_FOR_TARGET"; then 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12358$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12359else 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12361$as_echo "no" >&6; } 12362fi 12363 12364 12365 done 12366fi 12367 12368if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then 12369 for ncn_progname in objcopy; do 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12371$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12372 if test -x $with_build_time_tools/${ncn_progname}; then 12373 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12375$as_echo "yes" >&6; } 12376 break 12377 else 12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12379$as_echo "no" >&6; } 12380 fi 12381 done 12382fi 12383 12384if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then 12385 for ncn_progname in objcopy; do 12386 if test -n "$ncn_target_tool_prefix"; then 12387 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12388set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12390$as_echo_n "checking for $ac_word... " >&6; } 12391if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : 12392 $as_echo_n "(cached) " >&6 12393else 12394 if test -n "$OBJCOPY_FOR_TARGET"; then 12395 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12396else 12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12398for as_dir in $PATH 12399do 12400 IFS=$as_save_IFS 12401 test -z "$as_dir" && as_dir=. 12402 for ac_exec_ext in '' $ac_executable_extensions; do 12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12404 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12406 break 2 12407 fi 12408done 12409 done 12410IFS=$as_save_IFS 12411 12412fi 12413fi 12414OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12415if test -n "$OBJCOPY_FOR_TARGET"; then 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12417$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12418else 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12420$as_echo "no" >&6; } 12421fi 12422 12423 12424 fi 12425 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then 12426 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12427set dummy ${ncn_progname}; ac_word=$2 12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12429$as_echo_n "checking for $ac_word... " >&6; } 12430if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : 12431 $as_echo_n "(cached) " >&6 12432else 12433 if test -n "$OBJCOPY_FOR_TARGET"; then 12434 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. 12435else 12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12437for as_dir in $PATH 12438do 12439 IFS=$as_save_IFS 12440 test -z "$as_dir" && as_dir=. 12441 for ac_exec_ext in '' $ac_executable_extensions; do 12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12443 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12445 break 2 12446 fi 12447done 12448 done 12449IFS=$as_save_IFS 12450 12451fi 12452fi 12453OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET 12454if test -n "$OBJCOPY_FOR_TARGET"; then 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 12456$as_echo "$OBJCOPY_FOR_TARGET" >&6; } 12457else 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12459$as_echo "no" >&6; } 12460fi 12461 12462 12463 fi 12464 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break 12465 done 12466fi 12467 12468if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then 12469 set dummy objcopy 12470 if test $build = $target ; then 12471 OBJCOPY_FOR_TARGET="$2" 12472 else 12473 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" 12474 fi 12475else 12476 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" 12477fi 12478 12479else 12480 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET 12481fi 12482 12483 12484 12485 12486if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then 12487 if test -n "$with_build_time_tools"; then 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 12489$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } 12490 if test -x $with_build_time_tools/objdump; then 12491 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump 12492 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 12494$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } 12495 else 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12497$as_echo "no" >&6; } 12498 fi 12499 elif test $build != $host && test $have_gcc_for_target = yes; then 12500 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` 12501 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= 12502 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12503 fi 12504fi 12505if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12506 # Extract the first word of "objdump", so it can be a program name with args. 12507set dummy objdump; ac_word=$2 12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12509$as_echo_n "checking for $ac_word... " >&6; } 12510if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : 12511 $as_echo_n "(cached) " >&6 12512else 12513 case $OBJDUMP_FOR_TARGET in 12514 [\\/]* | ?:[\\/]*) 12515 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. 12516 ;; 12517 *) 12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12519for as_dir in $gcc_cv_tool_dirs 12520do 12521 IFS=$as_save_IFS 12522 test -z "$as_dir" && as_dir=. 12523 for ac_exec_ext in '' $ac_executable_extensions; do 12524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12525 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12527 break 2 12528 fi 12529done 12530 done 12531IFS=$as_save_IFS 12532 12533 ;; 12534esac 12535fi 12536OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET 12537if test -n "$OBJDUMP_FOR_TARGET"; then 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12539$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12540else 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542$as_echo "no" >&6; } 12543fi 12544 12545 12546fi 12547if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then 12548 12549 12550if test -n "$OBJDUMP_FOR_TARGET"; then 12551 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET 12552elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12553 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12554fi 12555 12556if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12557 for ncn_progname in objdump; do 12558 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12559set dummy ${ncn_progname}; ac_word=$2 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12561$as_echo_n "checking for $ac_word... " >&6; } 12562if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 if test -n "$OBJDUMP_FOR_TARGET"; then 12566 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12567else 12568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12569for as_dir in $PATH 12570do 12571 IFS=$as_save_IFS 12572 test -z "$as_dir" && as_dir=. 12573 for ac_exec_ext in '' $ac_executable_extensions; do 12574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12575 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" 12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12577 break 2 12578 fi 12579done 12580 done 12581IFS=$as_save_IFS 12582 12583fi 12584fi 12585OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12586if test -n "$OBJDUMP_FOR_TARGET"; then 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12588$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12589else 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12591$as_echo "no" >&6; } 12592fi 12593 12594 12595 done 12596fi 12597 12598if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then 12599 for ncn_progname in objdump; do 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12601$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12602 if test -x $with_build_time_tools/${ncn_progname}; then 12603 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12605$as_echo "yes" >&6; } 12606 break 12607 else 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12609$as_echo "no" >&6; } 12610 fi 12611 done 12612fi 12613 12614if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then 12615 for ncn_progname in objdump; do 12616 if test -n "$ncn_target_tool_prefix"; then 12617 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12618set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12620$as_echo_n "checking for $ac_word... " >&6; } 12621if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : 12622 $as_echo_n "(cached) " >&6 12623else 12624 if test -n "$OBJDUMP_FOR_TARGET"; then 12625 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12626else 12627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12628for as_dir in $PATH 12629do 12630 IFS=$as_save_IFS 12631 test -z "$as_dir" && as_dir=. 12632 for ac_exec_ext in '' $ac_executable_extensions; do 12633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12634 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12636 break 2 12637 fi 12638done 12639 done 12640IFS=$as_save_IFS 12641 12642fi 12643fi 12644OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12645if test -n "$OBJDUMP_FOR_TARGET"; then 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12647$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12648else 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12650$as_echo "no" >&6; } 12651fi 12652 12653 12654 fi 12655 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then 12656 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12657set dummy ${ncn_progname}; ac_word=$2 12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12659$as_echo_n "checking for $ac_word... " >&6; } 12660if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : 12661 $as_echo_n "(cached) " >&6 12662else 12663 if test -n "$OBJDUMP_FOR_TARGET"; then 12664 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. 12665else 12666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12667for as_dir in $PATH 12668do 12669 IFS=$as_save_IFS 12670 test -z "$as_dir" && as_dir=. 12671 for ac_exec_ext in '' $ac_executable_extensions; do 12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12673 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" 12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12675 break 2 12676 fi 12677done 12678 done 12679IFS=$as_save_IFS 12680 12681fi 12682fi 12683OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET 12684if test -n "$OBJDUMP_FOR_TARGET"; then 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 12686$as_echo "$OBJDUMP_FOR_TARGET" >&6; } 12687else 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12689$as_echo "no" >&6; } 12690fi 12691 12692 12693 fi 12694 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break 12695 done 12696fi 12697 12698if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then 12699 set dummy objdump 12700 if test $build = $target ; then 12701 OBJDUMP_FOR_TARGET="$2" 12702 else 12703 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" 12704 fi 12705else 12706 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" 12707fi 12708 12709else 12710 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET 12711fi 12712 12713 12714 12715 12716if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then 12717 if test -n "$with_build_time_tools"; then 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 12719$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } 12720 if test -x $with_build_time_tools/ranlib; then 12721 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib 12722 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 12724$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } 12725 else 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12727$as_echo "no" >&6; } 12728 fi 12729 elif test $build != $host && test $have_gcc_for_target = yes; then 12730 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` 12731 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= 12732 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 12733 fi 12734fi 12735if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12736 # Extract the first word of "ranlib", so it can be a program name with args. 12737set dummy ranlib; ac_word=$2 12738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12739$as_echo_n "checking for $ac_word... " >&6; } 12740if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : 12741 $as_echo_n "(cached) " >&6 12742else 12743 case $RANLIB_FOR_TARGET in 12744 [\\/]* | ?:[\\/]*) 12745 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. 12746 ;; 12747 *) 12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12749for as_dir in $gcc_cv_tool_dirs 12750do 12751 IFS=$as_save_IFS 12752 test -z "$as_dir" && as_dir=. 12753 for ac_exec_ext in '' $ac_executable_extensions; do 12754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12755 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12757 break 2 12758 fi 12759done 12760 done 12761IFS=$as_save_IFS 12762 12763 ;; 12764esac 12765fi 12766RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET 12767if test -n "$RANLIB_FOR_TARGET"; then 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 12769$as_echo "$RANLIB_FOR_TARGET" >&6; } 12770else 12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12772$as_echo "no" >&6; } 12773fi 12774 12775 12776fi 12777if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then 12778 12779 12780if test -n "$RANLIB_FOR_TARGET"; then 12781 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 12782elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then 12783 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 12784fi 12785 12786if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then 12787 for ncn_progname in ranlib; do 12788 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12789set dummy ${ncn_progname}; ac_word=$2 12790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12791$as_echo_n "checking for $ac_word... " >&6; } 12792if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : 12793 $as_echo_n "(cached) " >&6 12794else 12795 if test -n "$RANLIB_FOR_TARGET"; then 12796 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 12797else 12798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12799for as_dir in $PATH 12800do 12801 IFS=$as_save_IFS 12802 test -z "$as_dir" && as_dir=. 12803 for ac_exec_ext in '' $ac_executable_extensions; do 12804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12805 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" 12806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12807 break 2 12808 fi 12809done 12810 done 12811IFS=$as_save_IFS 12812 12813fi 12814fi 12815RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 12816if test -n "$RANLIB_FOR_TARGET"; then 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 12818$as_echo "$RANLIB_FOR_TARGET" >&6; } 12819else 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12821$as_echo "no" >&6; } 12822fi 12823 12824 12825 done 12826fi 12827 12828if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then 12829 for ncn_progname in ranlib; do 12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 12831$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 12832 if test -x $with_build_time_tools/${ncn_progname}; then 12833 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12835$as_echo "yes" >&6; } 12836 break 12837 else 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12839$as_echo "no" >&6; } 12840 fi 12841 done 12842fi 12843 12844if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then 12845 for ncn_progname in ranlib; do 12846 if test -n "$ncn_target_tool_prefix"; then 12847 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 12848set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12850$as_echo_n "checking for $ac_word... " >&6; } 12851if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : 12852 $as_echo_n "(cached) " >&6 12853else 12854 if test -n "$RANLIB_FOR_TARGET"; then 12855 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 12856else 12857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12858for as_dir in $PATH 12859do 12860 IFS=$as_save_IFS 12861 test -z "$as_dir" && as_dir=. 12862 for ac_exec_ext in '' $ac_executable_extensions; do 12863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12864 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 12865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12866 break 2 12867 fi 12868done 12869 done 12870IFS=$as_save_IFS 12871 12872fi 12873fi 12874RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 12875if test -n "$RANLIB_FOR_TARGET"; then 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 12877$as_echo "$RANLIB_FOR_TARGET" >&6; } 12878else 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12880$as_echo "no" >&6; } 12881fi 12882 12883 12884 fi 12885 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then 12886 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 12887set dummy ${ncn_progname}; ac_word=$2 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12889$as_echo_n "checking for $ac_word... " >&6; } 12890if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : 12891 $as_echo_n "(cached) " >&6 12892else 12893 if test -n "$RANLIB_FOR_TARGET"; then 12894 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 12895else 12896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12897for as_dir in $PATH 12898do 12899 IFS=$as_save_IFS 12900 test -z "$as_dir" && as_dir=. 12901 for ac_exec_ext in '' $ac_executable_extensions; do 12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12903 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" 12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12905 break 2 12906 fi 12907done 12908 done 12909IFS=$as_save_IFS 12910 12911fi 12912fi 12913RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET 12914if test -n "$RANLIB_FOR_TARGET"; then 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 12916$as_echo "$RANLIB_FOR_TARGET" >&6; } 12917else 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12919$as_echo "no" >&6; } 12920fi 12921 12922 12923 fi 12924 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break 12925 done 12926fi 12927 12928if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then 12929 set dummy ranlib 12930 if test $build = $target ; then 12931 RANLIB_FOR_TARGET="$2" 12932 else 12933 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" 12934 fi 12935else 12936 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" 12937fi 12938 12939else 12940 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET 12941fi 12942 12943 12944 12945 12946if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then 12947 if test -n "$with_build_time_tools"; then 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 12949$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } 12950 if test -x $with_build_time_tools/readelf; then 12951 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf 12952 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 12954$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } 12955 else 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12957$as_echo "no" >&6; } 12958 fi 12959 elif test $build != $host && test $have_gcc_for_target = yes; then 12960 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` 12961 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= 12962 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET 12963 fi 12964fi 12965if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 12966 # Extract the first word of "readelf", so it can be a program name with args. 12967set dummy readelf; ac_word=$2 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12969$as_echo_n "checking for $ac_word... " >&6; } 12970if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : 12971 $as_echo_n "(cached) " >&6 12972else 12973 case $READELF_FOR_TARGET in 12974 [\\/]* | ?:[\\/]*) 12975 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. 12976 ;; 12977 *) 12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12979for as_dir in $gcc_cv_tool_dirs 12980do 12981 IFS=$as_save_IFS 12982 test -z "$as_dir" && as_dir=. 12983 for ac_exec_ext in '' $ac_executable_extensions; do 12984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12985 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12987 break 2 12988 fi 12989done 12990 done 12991IFS=$as_save_IFS 12992 12993 ;; 12994esac 12995fi 12996READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET 12997if test -n "$READELF_FOR_TARGET"; then 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 12999$as_echo "$READELF_FOR_TARGET" >&6; } 13000else 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13002$as_echo "no" >&6; } 13003fi 13004 13005 13006fi 13007if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then 13008 13009 13010if test -n "$READELF_FOR_TARGET"; then 13011 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET 13012elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then 13013 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13014fi 13015 13016if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then 13017 for ncn_progname in readelf; do 13018 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13019set dummy ${ncn_progname}; ac_word=$2 13020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13021$as_echo_n "checking for $ac_word... " >&6; } 13022if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : 13023 $as_echo_n "(cached) " >&6 13024else 13025 if test -n "$READELF_FOR_TARGET"; then 13026 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13027else 13028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13029for as_dir in $PATH 13030do 13031 IFS=$as_save_IFS 13032 test -z "$as_dir" && as_dir=. 13033 for ac_exec_ext in '' $ac_executable_extensions; do 13034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13035 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" 13036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13037 break 2 13038 fi 13039done 13040 done 13041IFS=$as_save_IFS 13042 13043fi 13044fi 13045READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13046if test -n "$READELF_FOR_TARGET"; then 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13048$as_echo "$READELF_FOR_TARGET" >&6; } 13049else 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13051$as_echo "no" >&6; } 13052fi 13053 13054 13055 done 13056fi 13057 13058if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then 13059 for ncn_progname in readelf; do 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13061$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13062 if test -x $with_build_time_tools/${ncn_progname}; then 13063 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13065$as_echo "yes" >&6; } 13066 break 13067 else 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13069$as_echo "no" >&6; } 13070 fi 13071 done 13072fi 13073 13074if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then 13075 for ncn_progname in readelf; do 13076 if test -n "$ncn_target_tool_prefix"; then 13077 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13078set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13080$as_echo_n "checking for $ac_word... " >&6; } 13081if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : 13082 $as_echo_n "(cached) " >&6 13083else 13084 if test -n "$READELF_FOR_TARGET"; then 13085 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13086else 13087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13088for as_dir in $PATH 13089do 13090 IFS=$as_save_IFS 13091 test -z "$as_dir" && as_dir=. 13092 for ac_exec_ext in '' $ac_executable_extensions; do 13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13094 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13096 break 2 13097 fi 13098done 13099 done 13100IFS=$as_save_IFS 13101 13102fi 13103fi 13104READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13105if test -n "$READELF_FOR_TARGET"; then 13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13107$as_echo "$READELF_FOR_TARGET" >&6; } 13108else 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13110$as_echo "no" >&6; } 13111fi 13112 13113 13114 fi 13115 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then 13116 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13117set dummy ${ncn_progname}; ac_word=$2 13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13119$as_echo_n "checking for $ac_word... " >&6; } 13120if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : 13121 $as_echo_n "(cached) " >&6 13122else 13123 if test -n "$READELF_FOR_TARGET"; then 13124 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. 13125else 13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13127for as_dir in $PATH 13128do 13129 IFS=$as_save_IFS 13130 test -z "$as_dir" && as_dir=. 13131 for ac_exec_ext in '' $ac_executable_extensions; do 13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13133 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" 13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13135 break 2 13136 fi 13137done 13138 done 13139IFS=$as_save_IFS 13140 13141fi 13142fi 13143READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET 13144if test -n "$READELF_FOR_TARGET"; then 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 13146$as_echo "$READELF_FOR_TARGET" >&6; } 13147else 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13149$as_echo "no" >&6; } 13150fi 13151 13152 13153 fi 13154 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break 13155 done 13156fi 13157 13158if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then 13159 set dummy readelf 13160 if test $build = $target ; then 13161 READELF_FOR_TARGET="$2" 13162 else 13163 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" 13164 fi 13165else 13166 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" 13167fi 13168 13169else 13170 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET 13171fi 13172 13173 13174 13175 13176if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then 13177 if test -n "$with_build_time_tools"; then 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 13179$as_echo_n "checking for strip in $with_build_time_tools... " >&6; } 13180 if test -x $with_build_time_tools/strip; then 13181 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip 13182 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 13184$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } 13185 else 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13187$as_echo "no" >&6; } 13188 fi 13189 elif test $build != $host && test $have_gcc_for_target = yes; then 13190 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` 13191 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= 13192 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13193 fi 13194fi 13195if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13196 # Extract the first word of "strip", so it can be a program name with args. 13197set dummy strip; ac_word=$2 13198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13199$as_echo_n "checking for $ac_word... " >&6; } 13200if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : 13201 $as_echo_n "(cached) " >&6 13202else 13203 case $STRIP_FOR_TARGET in 13204 [\\/]* | ?:[\\/]*) 13205 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. 13206 ;; 13207 *) 13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13209for as_dir in $gcc_cv_tool_dirs 13210do 13211 IFS=$as_save_IFS 13212 test -z "$as_dir" && as_dir=. 13213 for ac_exec_ext in '' $ac_executable_extensions; do 13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13215 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13217 break 2 13218 fi 13219done 13220 done 13221IFS=$as_save_IFS 13222 13223 ;; 13224esac 13225fi 13226STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET 13227if test -n "$STRIP_FOR_TARGET"; then 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13229$as_echo "$STRIP_FOR_TARGET" >&6; } 13230else 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13232$as_echo "no" >&6; } 13233fi 13234 13235 13236fi 13237if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then 13238 13239 13240if test -n "$STRIP_FOR_TARGET"; then 13241 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET 13242elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then 13243 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13244fi 13245 13246if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then 13247 for ncn_progname in strip; do 13248 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13249set dummy ${ncn_progname}; ac_word=$2 13250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13251$as_echo_n "checking for $ac_word... " >&6; } 13252if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : 13253 $as_echo_n "(cached) " >&6 13254else 13255 if test -n "$STRIP_FOR_TARGET"; then 13256 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13257else 13258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13259for as_dir in $PATH 13260do 13261 IFS=$as_save_IFS 13262 test -z "$as_dir" && as_dir=. 13263 for ac_exec_ext in '' $ac_executable_extensions; do 13264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13265 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" 13266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13267 break 2 13268 fi 13269done 13270 done 13271IFS=$as_save_IFS 13272 13273fi 13274fi 13275STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13276if test -n "$STRIP_FOR_TARGET"; then 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13278$as_echo "$STRIP_FOR_TARGET" >&6; } 13279else 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13281$as_echo "no" >&6; } 13282fi 13283 13284 13285 done 13286fi 13287 13288if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then 13289 for ncn_progname in strip; do 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13291$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13292 if test -x $with_build_time_tools/${ncn_progname}; then 13293 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13295$as_echo "yes" >&6; } 13296 break 13297 else 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13299$as_echo "no" >&6; } 13300 fi 13301 done 13302fi 13303 13304if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then 13305 for ncn_progname in strip; do 13306 if test -n "$ncn_target_tool_prefix"; then 13307 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13308set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13310$as_echo_n "checking for $ac_word... " >&6; } 13311if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : 13312 $as_echo_n "(cached) " >&6 13313else 13314 if test -n "$STRIP_FOR_TARGET"; then 13315 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13316else 13317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13318for as_dir in $PATH 13319do 13320 IFS=$as_save_IFS 13321 test -z "$as_dir" && as_dir=. 13322 for ac_exec_ext in '' $ac_executable_extensions; do 13323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13324 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13326 break 2 13327 fi 13328done 13329 done 13330IFS=$as_save_IFS 13331 13332fi 13333fi 13334STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13335if test -n "$STRIP_FOR_TARGET"; then 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13337$as_echo "$STRIP_FOR_TARGET" >&6; } 13338else 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13340$as_echo "no" >&6; } 13341fi 13342 13343 13344 fi 13345 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then 13346 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13347set dummy ${ncn_progname}; ac_word=$2 13348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13349$as_echo_n "checking for $ac_word... " >&6; } 13350if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : 13351 $as_echo_n "(cached) " >&6 13352else 13353 if test -n "$STRIP_FOR_TARGET"; then 13354 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. 13355else 13356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13357for as_dir in $PATH 13358do 13359 IFS=$as_save_IFS 13360 test -z "$as_dir" && as_dir=. 13361 for ac_exec_ext in '' $ac_executable_extensions; do 13362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13363 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" 13364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13365 break 2 13366 fi 13367done 13368 done 13369IFS=$as_save_IFS 13370 13371fi 13372fi 13373STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET 13374if test -n "$STRIP_FOR_TARGET"; then 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 13376$as_echo "$STRIP_FOR_TARGET" >&6; } 13377else 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13379$as_echo "no" >&6; } 13380fi 13381 13382 13383 fi 13384 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break 13385 done 13386fi 13387 13388if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then 13389 set dummy strip 13390 if test $build = $target ; then 13391 STRIP_FOR_TARGET="$2" 13392 else 13393 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" 13394 fi 13395else 13396 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" 13397fi 13398 13399else 13400 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET 13401fi 13402 13403 13404 13405 13406if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then 13407 if test -n "$with_build_time_tools"; then 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 13409$as_echo_n "checking for windres in $with_build_time_tools... " >&6; } 13410 if test -x $with_build_time_tools/windres; then 13411 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres 13412 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 13414$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } 13415 else 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13417$as_echo "no" >&6; } 13418 fi 13419 elif test $build != $host && test $have_gcc_for_target = yes; then 13420 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` 13421 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= 13422 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13423 fi 13424fi 13425if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13426 # Extract the first word of "windres", so it can be a program name with args. 13427set dummy windres; ac_word=$2 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13429$as_echo_n "checking for $ac_word... " >&6; } 13430if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : 13431 $as_echo_n "(cached) " >&6 13432else 13433 case $WINDRES_FOR_TARGET in 13434 [\\/]* | ?:[\\/]*) 13435 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. 13436 ;; 13437 *) 13438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13439for as_dir in $gcc_cv_tool_dirs 13440do 13441 IFS=$as_save_IFS 13442 test -z "$as_dir" && as_dir=. 13443 for ac_exec_ext in '' $ac_executable_extensions; do 13444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13445 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13447 break 2 13448 fi 13449done 13450 done 13451IFS=$as_save_IFS 13452 13453 ;; 13454esac 13455fi 13456WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET 13457if test -n "$WINDRES_FOR_TARGET"; then 13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13459$as_echo "$WINDRES_FOR_TARGET" >&6; } 13460else 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13462$as_echo "no" >&6; } 13463fi 13464 13465 13466fi 13467if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then 13468 13469 13470if test -n "$WINDRES_FOR_TARGET"; then 13471 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 13472elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then 13473 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13474fi 13475 13476if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then 13477 for ncn_progname in windres; do 13478 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13479set dummy ${ncn_progname}; ac_word=$2 13480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13481$as_echo_n "checking for $ac_word... " >&6; } 13482if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : 13483 $as_echo_n "(cached) " >&6 13484else 13485 if test -n "$WINDRES_FOR_TARGET"; then 13486 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 13487else 13488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13489for as_dir in $PATH 13490do 13491 IFS=$as_save_IFS 13492 test -z "$as_dir" && as_dir=. 13493 for ac_exec_ext in '' $ac_executable_extensions; do 13494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13495 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" 13496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13497 break 2 13498 fi 13499done 13500 done 13501IFS=$as_save_IFS 13502 13503fi 13504fi 13505WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13506if test -n "$WINDRES_FOR_TARGET"; then 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13508$as_echo "$WINDRES_FOR_TARGET" >&6; } 13509else 13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13511$as_echo "no" >&6; } 13512fi 13513 13514 13515 done 13516fi 13517 13518if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then 13519 for ncn_progname in windres; do 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13521$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13522 if test -x $with_build_time_tools/${ncn_progname}; then 13523 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13525$as_echo "yes" >&6; } 13526 break 13527 else 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13529$as_echo "no" >&6; } 13530 fi 13531 done 13532fi 13533 13534if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then 13535 for ncn_progname in windres; do 13536 if test -n "$ncn_target_tool_prefix"; then 13537 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13538set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13540$as_echo_n "checking for $ac_word... " >&6; } 13541if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : 13542 $as_echo_n "(cached) " >&6 13543else 13544 if test -n "$WINDRES_FOR_TARGET"; then 13545 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 13546else 13547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13548for as_dir in $PATH 13549do 13550 IFS=$as_save_IFS 13551 test -z "$as_dir" && as_dir=. 13552 for ac_exec_ext in '' $ac_executable_extensions; do 13553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13554 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13556 break 2 13557 fi 13558done 13559 done 13560IFS=$as_save_IFS 13561 13562fi 13563fi 13564WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13565if test -n "$WINDRES_FOR_TARGET"; then 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13567$as_echo "$WINDRES_FOR_TARGET" >&6; } 13568else 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13570$as_echo "no" >&6; } 13571fi 13572 13573 13574 fi 13575 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then 13576 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13577set dummy ${ncn_progname}; ac_word=$2 13578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13579$as_echo_n "checking for $ac_word... " >&6; } 13580if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : 13581 $as_echo_n "(cached) " >&6 13582else 13583 if test -n "$WINDRES_FOR_TARGET"; then 13584 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 13585else 13586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13587for as_dir in $PATH 13588do 13589 IFS=$as_save_IFS 13590 test -z "$as_dir" && as_dir=. 13591 for ac_exec_ext in '' $ac_executable_extensions; do 13592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13593 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" 13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13595 break 2 13596 fi 13597done 13598 done 13599IFS=$as_save_IFS 13600 13601fi 13602fi 13603WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET 13604if test -n "$WINDRES_FOR_TARGET"; then 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 13606$as_echo "$WINDRES_FOR_TARGET" >&6; } 13607else 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13609$as_echo "no" >&6; } 13610fi 13611 13612 13613 fi 13614 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break 13615 done 13616fi 13617 13618if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then 13619 set dummy windres 13620 if test $build = $target ; then 13621 WINDRES_FOR_TARGET="$2" 13622 else 13623 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" 13624 fi 13625else 13626 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" 13627fi 13628 13629else 13630 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET 13631fi 13632 13633 13634 13635 13636if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then 13637 if test -n "$with_build_time_tools"; then 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 13639$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } 13640 if test -x $with_build_time_tools/windmc; then 13641 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc 13642 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 13644$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } 13645 else 13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13647$as_echo "no" >&6; } 13648 fi 13649 elif test $build != $host && test $have_gcc_for_target = yes; then 13650 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` 13651 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= 13652 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 13653 fi 13654fi 13655if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then 13656 # Extract the first word of "windmc", so it can be a program name with args. 13657set dummy windmc; ac_word=$2 13658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13659$as_echo_n "checking for $ac_word... " >&6; } 13660if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : 13661 $as_echo_n "(cached) " >&6 13662else 13663 case $WINDMC_FOR_TARGET in 13664 [\\/]* | ?:[\\/]*) 13665 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. 13666 ;; 13667 *) 13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13669for as_dir in $gcc_cv_tool_dirs 13670do 13671 IFS=$as_save_IFS 13672 test -z "$as_dir" && as_dir=. 13673 for ac_exec_ext in '' $ac_executable_extensions; do 13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13675 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" 13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13677 break 2 13678 fi 13679done 13680 done 13681IFS=$as_save_IFS 13682 13683 ;; 13684esac 13685fi 13686WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET 13687if test -n "$WINDMC_FOR_TARGET"; then 13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 13689$as_echo "$WINDMC_FOR_TARGET" >&6; } 13690else 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13692$as_echo "no" >&6; } 13693fi 13694 13695 13696fi 13697if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then 13698 13699 13700if test -n "$WINDMC_FOR_TARGET"; then 13701 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET 13702elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then 13703 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 13704fi 13705 13706if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then 13707 for ncn_progname in windmc; do 13708 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13709set dummy ${ncn_progname}; ac_word=$2 13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13711$as_echo_n "checking for $ac_word... " >&6; } 13712if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : 13713 $as_echo_n "(cached) " >&6 13714else 13715 if test -n "$WINDMC_FOR_TARGET"; then 13716 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 13717else 13718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13719for as_dir in $PATH 13720do 13721 IFS=$as_save_IFS 13722 test -z "$as_dir" && as_dir=. 13723 for ac_exec_ext in '' $ac_executable_extensions; do 13724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13725 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" 13726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13727 break 2 13728 fi 13729done 13730 done 13731IFS=$as_save_IFS 13732 13733fi 13734fi 13735WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 13736if test -n "$WINDMC_FOR_TARGET"; then 13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 13738$as_echo "$WINDMC_FOR_TARGET" >&6; } 13739else 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13741$as_echo "no" >&6; } 13742fi 13743 13744 13745 done 13746fi 13747 13748if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then 13749 for ncn_progname in windmc; do 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 13751$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } 13752 if test -x $with_build_time_tools/${ncn_progname}; then 13753 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13755$as_echo "yes" >&6; } 13756 break 13757 else 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13759$as_echo "no" >&6; } 13760 fi 13761 done 13762fi 13763 13764if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then 13765 for ncn_progname in windmc; do 13766 if test -n "$ncn_target_tool_prefix"; then 13767 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. 13768set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 13769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13770$as_echo_n "checking for $ac_word... " >&6; } 13771if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : 13772 $as_echo_n "(cached) " >&6 13773else 13774 if test -n "$WINDMC_FOR_TARGET"; then 13775 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 13776else 13777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13778for as_dir in $PATH 13779do 13780 IFS=$as_save_IFS 13781 test -z "$as_dir" && as_dir=. 13782 for ac_exec_ext in '' $ac_executable_extensions; do 13783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13784 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" 13785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13786 break 2 13787 fi 13788done 13789 done 13790IFS=$as_save_IFS 13791 13792fi 13793fi 13794WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 13795if test -n "$WINDMC_FOR_TARGET"; then 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 13797$as_echo "$WINDMC_FOR_TARGET" >&6; } 13798else 13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13800$as_echo "no" >&6; } 13801fi 13802 13803 13804 fi 13805 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then 13806 # Extract the first word of "${ncn_progname}", so it can be a program name with args. 13807set dummy ${ncn_progname}; ac_word=$2 13808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13809$as_echo_n "checking for $ac_word... " >&6; } 13810if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : 13811 $as_echo_n "(cached) " >&6 13812else 13813 if test -n "$WINDMC_FOR_TARGET"; then 13814 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. 13815else 13816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13817for as_dir in $PATH 13818do 13819 IFS=$as_save_IFS 13820 test -z "$as_dir" && as_dir=. 13821 for ac_exec_ext in '' $ac_executable_extensions; do 13822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13823 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" 13824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13825 break 2 13826 fi 13827done 13828 done 13829IFS=$as_save_IFS 13830 13831fi 13832fi 13833WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET 13834if test -n "$WINDMC_FOR_TARGET"; then 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 13836$as_echo "$WINDMC_FOR_TARGET" >&6; } 13837else 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13839$as_echo "no" >&6; } 13840fi 13841 13842 13843 fi 13844 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break 13845 done 13846fi 13847 13848if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then 13849 set dummy windmc 13850 if test $build = $target ; then 13851 WINDMC_FOR_TARGET="$2" 13852 else 13853 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" 13854 fi 13855else 13856 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" 13857fi 13858 13859else 13860 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET 13861fi 13862 13863 13864RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" 13865 13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 13867$as_echo_n "checking where to find the target ar... " >&6; } 13868if test "x${build}" != "x${host}" ; then 13869 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then 13870 # We already found the complete path 13871 ac_dir=`dirname $AR_FOR_TARGET` 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13873$as_echo "pre-installed in $ac_dir" >&6; } 13874 else 13875 # Canadian cross, just use what we found 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13877$as_echo "pre-installed" >&6; } 13878 fi 13879else 13880 ok=yes 13881 case " ${configdirs} " in 13882 *" binutils "*) ;; 13883 *) ok=no ;; 13884 esac 13885 13886 if test $ok = yes; then 13887 # An in-tree tool is available and we can use it 13888 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 13890$as_echo "just compiled" >&6; } 13891 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then 13892 # We already found the complete path 13893 ac_dir=`dirname $AR_FOR_TARGET` 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13895$as_echo "pre-installed in $ac_dir" >&6; } 13896 elif test "x$target" = "x$host"; then 13897 # We can use an host tool 13898 AR_FOR_TARGET='$(AR)' 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 13900$as_echo "host tool" >&6; } 13901 else 13902 # We need a cross tool 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13904$as_echo "pre-installed" >&6; } 13905 fi 13906fi 13907 13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 13909$as_echo_n "checking where to find the target as... " >&6; } 13910if test "x${build}" != "x${host}" ; then 13911 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then 13912 # We already found the complete path 13913 ac_dir=`dirname $AS_FOR_TARGET` 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13915$as_echo "pre-installed in $ac_dir" >&6; } 13916 else 13917 # Canadian cross, just use what we found 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13919$as_echo "pre-installed" >&6; } 13920 fi 13921else 13922 ok=yes 13923 case " ${configdirs} " in 13924 *" gas "*) ;; 13925 *) ok=no ;; 13926 esac 13927 13928 if test $ok = yes; then 13929 # An in-tree tool is available and we can use it 13930 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 13932$as_echo "just compiled" >&6; } 13933 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then 13934 # We already found the complete path 13935 ac_dir=`dirname $AS_FOR_TARGET` 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13937$as_echo "pre-installed in $ac_dir" >&6; } 13938 elif test "x$target" = "x$host"; then 13939 # We can use an host tool 13940 AS_FOR_TARGET='$(AS)' 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 13942$as_echo "host tool" >&6; } 13943 else 13944 # We need a cross tool 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13946$as_echo "pre-installed" >&6; } 13947 fi 13948fi 13949 13950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 13951$as_echo_n "checking where to find the target cc... " >&6; } 13952if test "x${build}" != "x${host}" ; then 13953 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then 13954 # We already found the complete path 13955 ac_dir=`dirname $CC_FOR_TARGET` 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13957$as_echo "pre-installed in $ac_dir" >&6; } 13958 else 13959 # Canadian cross, just use what we found 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13961$as_echo "pre-installed" >&6; } 13962 fi 13963else 13964 ok=yes 13965 case " ${configdirs} " in 13966 *" gcc "*) ;; 13967 *) ok=no ;; 13968 esac 13969 13970 if test $ok = yes; then 13971 # An in-tree tool is available and we can use it 13972 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 13974$as_echo "just compiled" >&6; } 13975 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then 13976 # We already found the complete path 13977 ac_dir=`dirname $CC_FOR_TARGET` 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13979$as_echo "pre-installed in $ac_dir" >&6; } 13980 elif test "x$target" = "x$host"; then 13981 # We can use an host tool 13982 CC_FOR_TARGET='$(CC)' 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 13984$as_echo "host tool" >&6; } 13985 else 13986 # We need a cross tool 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 13988$as_echo "pre-installed" >&6; } 13989 fi 13990fi 13991 13992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 13993$as_echo_n "checking where to find the target c++... " >&6; } 13994if test "x${build}" != "x${host}" ; then 13995 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then 13996 # We already found the complete path 13997 ac_dir=`dirname $CXX_FOR_TARGET` 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 13999$as_echo "pre-installed in $ac_dir" >&6; } 14000 else 14001 # Canadian cross, just use what we found 14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14003$as_echo "pre-installed" >&6; } 14004 fi 14005else 14006 ok=yes 14007 case " ${configdirs} " in 14008 *" gcc "*) ;; 14009 *) ok=no ;; 14010 esac 14011 case ,${enable_languages}, in 14012 *,c++,*) ;; 14013 *) ok=no ;; 14014 esac 14015 if test $ok = yes; then 14016 # An in-tree tool is available and we can use it 14017 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' 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14019$as_echo "just compiled" >&6; } 14020 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then 14021 # We already found the complete path 14022 ac_dir=`dirname $CXX_FOR_TARGET` 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14024$as_echo "pre-installed in $ac_dir" >&6; } 14025 elif test "x$target" = "x$host"; then 14026 # We can use an host tool 14027 CXX_FOR_TARGET='$(CXX)' 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14029$as_echo "host tool" >&6; } 14030 else 14031 # We need a cross tool 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14033$as_echo "pre-installed" >&6; } 14034 fi 14035fi 14036 14037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 14038$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } 14039if test "x${build}" != "x${host}" ; then 14040 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then 14041 # We already found the complete path 14042 ac_dir=`dirname $RAW_CXX_FOR_TARGET` 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14044$as_echo "pre-installed in $ac_dir" >&6; } 14045 else 14046 # Canadian cross, just use what we found 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14048$as_echo "pre-installed" >&6; } 14049 fi 14050else 14051 ok=yes 14052 case " ${configdirs} " in 14053 *" gcc "*) ;; 14054 *) ok=no ;; 14055 esac 14056 case ,${enable_languages}, in 14057 *,c++,*) ;; 14058 *) ok=no ;; 14059 esac 14060 if test $ok = yes; then 14061 # An in-tree tool is available and we can use it 14062 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' 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14064$as_echo "just compiled" >&6; } 14065 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then 14066 # We already found the complete path 14067 ac_dir=`dirname $RAW_CXX_FOR_TARGET` 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14069$as_echo "pre-installed in $ac_dir" >&6; } 14070 elif test "x$target" = "x$host"; then 14071 # We can use an host tool 14072 RAW_CXX_FOR_TARGET='$(CXX)' 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14074$as_echo "host tool" >&6; } 14075 else 14076 # We need a cross tool 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14078$as_echo "pre-installed" >&6; } 14079 fi 14080fi 14081 14082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 14083$as_echo_n "checking where to find the target dlltool... " >&6; } 14084if test "x${build}" != "x${host}" ; then 14085 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then 14086 # We already found the complete path 14087 ac_dir=`dirname $DLLTOOL_FOR_TARGET` 14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14089$as_echo "pre-installed in $ac_dir" >&6; } 14090 else 14091 # Canadian cross, just use what we found 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14093$as_echo "pre-installed" >&6; } 14094 fi 14095else 14096 ok=yes 14097 case " ${configdirs} " in 14098 *" binutils "*) ;; 14099 *) ok=no ;; 14100 esac 14101 14102 if test $ok = yes; then 14103 # An in-tree tool is available and we can use it 14104 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14106$as_echo "just compiled" >&6; } 14107 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then 14108 # We already found the complete path 14109 ac_dir=`dirname $DLLTOOL_FOR_TARGET` 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14111$as_echo "pre-installed in $ac_dir" >&6; } 14112 elif test "x$target" = "x$host"; then 14113 # We can use an host tool 14114 DLLTOOL_FOR_TARGET='$(DLLTOOL)' 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14116$as_echo "host tool" >&6; } 14117 else 14118 # We need a cross tool 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14120$as_echo "pre-installed" >&6; } 14121 fi 14122fi 14123 14124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 14125$as_echo_n "checking where to find the target gcc... " >&6; } 14126if test "x${build}" != "x${host}" ; then 14127 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then 14128 # We already found the complete path 14129 ac_dir=`dirname $GCC_FOR_TARGET` 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14131$as_echo "pre-installed in $ac_dir" >&6; } 14132 else 14133 # Canadian cross, just use what we found 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14135$as_echo "pre-installed" >&6; } 14136 fi 14137else 14138 ok=yes 14139 case " ${configdirs} " in 14140 *" gcc "*) ;; 14141 *) ok=no ;; 14142 esac 14143 14144 if test $ok = yes; then 14145 # An in-tree tool is available and we can use it 14146 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14148$as_echo "just compiled" >&6; } 14149 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then 14150 # We already found the complete path 14151 ac_dir=`dirname $GCC_FOR_TARGET` 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14153$as_echo "pre-installed in $ac_dir" >&6; } 14154 elif test "x$target" = "x$host"; then 14155 # We can use an host tool 14156 GCC_FOR_TARGET='$()' 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14158$as_echo "host tool" >&6; } 14159 else 14160 # We need a cross tool 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14162$as_echo "pre-installed" >&6; } 14163 fi 14164fi 14165 14166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 14167$as_echo_n "checking where to find the target gcj... " >&6; } 14168if test "x${build}" != "x${host}" ; then 14169 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then 14170 # We already found the complete path 14171 ac_dir=`dirname $GCJ_FOR_TARGET` 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14173$as_echo "pre-installed in $ac_dir" >&6; } 14174 else 14175 # Canadian cross, just use what we found 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14177$as_echo "pre-installed" >&6; } 14178 fi 14179else 14180 ok=yes 14181 case " ${configdirs} " in 14182 *" gcc "*) ;; 14183 *) ok=no ;; 14184 esac 14185 case ,${enable_languages}, in 14186 *,java,*) ;; 14187 *) ok=no ;; 14188 esac 14189 if test $ok = yes; then 14190 # An in-tree tool is available and we can use it 14191 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' 14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14193$as_echo "just compiled" >&6; } 14194 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then 14195 # We already found the complete path 14196 ac_dir=`dirname $GCJ_FOR_TARGET` 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14198$as_echo "pre-installed in $ac_dir" >&6; } 14199 elif test "x$target" = "x$host"; then 14200 # We can use an host tool 14201 GCJ_FOR_TARGET='$(GCJ)' 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14203$as_echo "host tool" >&6; } 14204 else 14205 # We need a cross tool 14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14207$as_echo "pre-installed" >&6; } 14208 fi 14209fi 14210 14211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 14212$as_echo_n "checking where to find the target gfortran... " >&6; } 14213if test "x${build}" != "x${host}" ; then 14214 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then 14215 # We already found the complete path 14216 ac_dir=`dirname $GFORTRAN_FOR_TARGET` 14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14218$as_echo "pre-installed in $ac_dir" >&6; } 14219 else 14220 # Canadian cross, just use what we found 14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14222$as_echo "pre-installed" >&6; } 14223 fi 14224else 14225 ok=yes 14226 case " ${configdirs} " in 14227 *" gcc "*) ;; 14228 *) ok=no ;; 14229 esac 14230 case ,${enable_languages}, in 14231 *,fortran,*) ;; 14232 *) ok=no ;; 14233 esac 14234 if test $ok = yes; then 14235 # An in-tree tool is available and we can use it 14236 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14238$as_echo "just compiled" >&6; } 14239 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then 14240 # We already found the complete path 14241 ac_dir=`dirname $GFORTRAN_FOR_TARGET` 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14243$as_echo "pre-installed in $ac_dir" >&6; } 14244 elif test "x$target" = "x$host"; then 14245 # We can use an host tool 14246 GFORTRAN_FOR_TARGET='$(GFORTRAN)' 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14248$as_echo "host tool" >&6; } 14249 else 14250 # We need a cross tool 14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14252$as_echo "pre-installed" >&6; } 14253 fi 14254fi 14255 14256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 14257$as_echo_n "checking where to find the target gccgo... " >&6; } 14258if test "x${build}" != "x${host}" ; then 14259 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then 14260 # We already found the complete path 14261 ac_dir=`dirname $GOC_FOR_TARGET` 14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14263$as_echo "pre-installed in $ac_dir" >&6; } 14264 else 14265 # Canadian cross, just use what we found 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14267$as_echo "pre-installed" >&6; } 14268 fi 14269else 14270 ok=yes 14271 case " ${configdirs} " in 14272 *" gcc "*) ;; 14273 *) ok=no ;; 14274 esac 14275 case ,${enable_languages}, in 14276 *,go,*) ;; 14277 *) ok=no ;; 14278 esac 14279 if test $ok = yes; then 14280 # An in-tree tool is available and we can use it 14281 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14283$as_echo "just compiled" >&6; } 14284 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then 14285 # We already found the complete path 14286 ac_dir=`dirname $GOC_FOR_TARGET` 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14288$as_echo "pre-installed in $ac_dir" >&6; } 14289 elif test "x$target" = "x$host"; then 14290 # We can use an host tool 14291 GOC_FOR_TARGET='$(GOC)' 14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14293$as_echo "host tool" >&6; } 14294 else 14295 # We need a cross tool 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14297$as_echo "pre-installed" >&6; } 14298 fi 14299fi 14300 14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 14302$as_echo_n "checking where to find the target ld... " >&6; } 14303if test "x${build}" != "x${host}" ; then 14304 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then 14305 # We already found the complete path 14306 ac_dir=`dirname $LD_FOR_TARGET` 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14308$as_echo "pre-installed in $ac_dir" >&6; } 14309 else 14310 # Canadian cross, just use what we found 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14312$as_echo "pre-installed" >&6; } 14313 fi 14314else 14315 ok=yes 14316 case " ${configdirs} " in 14317 *" ld "*) ;; 14318 *) ok=no ;; 14319 esac 14320 14321 if test $ok = yes; then 14322 # An in-tree tool is available and we can use it 14323 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' 14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14325$as_echo "just compiled" >&6; } 14326 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then 14327 # We already found the complete path 14328 ac_dir=`dirname $LD_FOR_TARGET` 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14330$as_echo "pre-installed in $ac_dir" >&6; } 14331 elif test "x$target" = "x$host"; then 14332 # We can use an host tool 14333 LD_FOR_TARGET='$(LD)' 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14335$as_echo "host tool" >&6; } 14336 else 14337 # We need a cross tool 14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14339$as_echo "pre-installed" >&6; } 14340 fi 14341fi 14342 14343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 14344$as_echo_n "checking where to find the target lipo... " >&6; } 14345if test "x${build}" != "x${host}" ; then 14346 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then 14347 # We already found the complete path 14348 ac_dir=`dirname $LIPO_FOR_TARGET` 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14350$as_echo "pre-installed in $ac_dir" >&6; } 14351 else 14352 # Canadian cross, just use what we found 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14354$as_echo "pre-installed" >&6; } 14355 fi 14356else 14357 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then 14358 # We already found the complete path 14359 ac_dir=`dirname $LIPO_FOR_TARGET` 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14361$as_echo "pre-installed in $ac_dir" >&6; } 14362 elif test "x$target" = "x$host"; then 14363 # We can use an host tool 14364 LIPO_FOR_TARGET='$(LIPO)' 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14366$as_echo "host tool" >&6; } 14367 else 14368 # We need a cross tool 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14370$as_echo "pre-installed" >&6; } 14371 fi 14372fi 14373 14374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 14375$as_echo_n "checking where to find the target nm... " >&6; } 14376if test "x${build}" != "x${host}" ; then 14377 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then 14378 # We already found the complete path 14379 ac_dir=`dirname $NM_FOR_TARGET` 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14381$as_echo "pre-installed in $ac_dir" >&6; } 14382 else 14383 # Canadian cross, just use what we found 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14385$as_echo "pre-installed" >&6; } 14386 fi 14387else 14388 ok=yes 14389 case " ${configdirs} " in 14390 *" binutils "*) ;; 14391 *) ok=no ;; 14392 esac 14393 14394 if test $ok = yes; then 14395 # An in-tree tool is available and we can use it 14396 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14398$as_echo "just compiled" >&6; } 14399 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then 14400 # We already found the complete path 14401 ac_dir=`dirname $NM_FOR_TARGET` 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14403$as_echo "pre-installed in $ac_dir" >&6; } 14404 elif test "x$target" = "x$host"; then 14405 # We can use an host tool 14406 NM_FOR_TARGET='$(NM)' 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14408$as_echo "host tool" >&6; } 14409 else 14410 # We need a cross tool 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14412$as_echo "pre-installed" >&6; } 14413 fi 14414fi 14415 14416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 14417$as_echo_n "checking where to find the target objcopy... " >&6; } 14418if test "x${build}" != "x${host}" ; then 14419 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then 14420 # We already found the complete path 14421 ac_dir=`dirname $OBJCOPY_FOR_TARGET` 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14423$as_echo "pre-installed in $ac_dir" >&6; } 14424 else 14425 # Canadian cross, just use what we found 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14427$as_echo "pre-installed" >&6; } 14428 fi 14429else 14430 ok=yes 14431 case " ${configdirs} " in 14432 *" binutils "*) ;; 14433 *) ok=no ;; 14434 esac 14435 14436 if test $ok = yes; then 14437 # An in-tree tool is available and we can use it 14438 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14440$as_echo "just compiled" >&6; } 14441 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then 14442 # We already found the complete path 14443 ac_dir=`dirname $OBJCOPY_FOR_TARGET` 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14445$as_echo "pre-installed in $ac_dir" >&6; } 14446 elif test "x$target" = "x$host"; then 14447 # We can use an host tool 14448 OBJCOPY_FOR_TARGET='$(OBJCOPY)' 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14450$as_echo "host tool" >&6; } 14451 else 14452 # We need a cross tool 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14454$as_echo "pre-installed" >&6; } 14455 fi 14456fi 14457 14458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 14459$as_echo_n "checking where to find the target objdump... " >&6; } 14460if test "x${build}" != "x${host}" ; then 14461 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then 14462 # We already found the complete path 14463 ac_dir=`dirname $OBJDUMP_FOR_TARGET` 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14465$as_echo "pre-installed in $ac_dir" >&6; } 14466 else 14467 # Canadian cross, just use what we found 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14469$as_echo "pre-installed" >&6; } 14470 fi 14471else 14472 ok=yes 14473 case " ${configdirs} " in 14474 *" binutils "*) ;; 14475 *) ok=no ;; 14476 esac 14477 14478 if test $ok = yes; then 14479 # An in-tree tool is available and we can use it 14480 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14482$as_echo "just compiled" >&6; } 14483 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then 14484 # We already found the complete path 14485 ac_dir=`dirname $OBJDUMP_FOR_TARGET` 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14487$as_echo "pre-installed in $ac_dir" >&6; } 14488 elif test "x$target" = "x$host"; then 14489 # We can use an host tool 14490 OBJDUMP_FOR_TARGET='$(OBJDUMP)' 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14492$as_echo "host tool" >&6; } 14493 else 14494 # We need a cross tool 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14496$as_echo "pre-installed" >&6; } 14497 fi 14498fi 14499 14500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 14501$as_echo_n "checking where to find the target ranlib... " >&6; } 14502if test "x${build}" != "x${host}" ; then 14503 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then 14504 # We already found the complete path 14505 ac_dir=`dirname $RANLIB_FOR_TARGET` 14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14507$as_echo "pre-installed in $ac_dir" >&6; } 14508 else 14509 # Canadian cross, just use what we found 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14511$as_echo "pre-installed" >&6; } 14512 fi 14513else 14514 ok=yes 14515 case " ${configdirs} " in 14516 *" binutils "*) ;; 14517 *) ok=no ;; 14518 esac 14519 14520 if test $ok = yes; then 14521 # An in-tree tool is available and we can use it 14522 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14524$as_echo "just compiled" >&6; } 14525 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then 14526 # We already found the complete path 14527 ac_dir=`dirname $RANLIB_FOR_TARGET` 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14529$as_echo "pre-installed in $ac_dir" >&6; } 14530 elif test "x$target" = "x$host"; then 14531 # We can use an host tool 14532 RANLIB_FOR_TARGET='$(RANLIB)' 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14534$as_echo "host tool" >&6; } 14535 else 14536 # We need a cross tool 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14538$as_echo "pre-installed" >&6; } 14539 fi 14540fi 14541 14542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 14543$as_echo_n "checking where to find the target readelf... " >&6; } 14544if test "x${build}" != "x${host}" ; then 14545 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then 14546 # We already found the complete path 14547 ac_dir=`dirname $READELF_FOR_TARGET` 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14549$as_echo "pre-installed in $ac_dir" >&6; } 14550 else 14551 # Canadian cross, just use what we found 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14553$as_echo "pre-installed" >&6; } 14554 fi 14555else 14556 ok=yes 14557 case " ${configdirs} " in 14558 *" binutils "*) ;; 14559 *) ok=no ;; 14560 esac 14561 14562 if test $ok = yes; then 14563 # An in-tree tool is available and we can use it 14564 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14566$as_echo "just compiled" >&6; } 14567 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then 14568 # We already found the complete path 14569 ac_dir=`dirname $READELF_FOR_TARGET` 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14571$as_echo "pre-installed in $ac_dir" >&6; } 14572 elif test "x$target" = "x$host"; then 14573 # We can use an host tool 14574 READELF_FOR_TARGET='$(READELF)' 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14576$as_echo "host tool" >&6; } 14577 else 14578 # We need a cross tool 14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14580$as_echo "pre-installed" >&6; } 14581 fi 14582fi 14583 14584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 14585$as_echo_n "checking where to find the target strip... " >&6; } 14586if test "x${build}" != "x${host}" ; then 14587 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then 14588 # We already found the complete path 14589 ac_dir=`dirname $STRIP_FOR_TARGET` 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14591$as_echo "pre-installed in $ac_dir" >&6; } 14592 else 14593 # Canadian cross, just use what we found 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14595$as_echo "pre-installed" >&6; } 14596 fi 14597else 14598 ok=yes 14599 case " ${configdirs} " in 14600 *" binutils "*) ;; 14601 *) ok=no ;; 14602 esac 14603 14604 if test $ok = yes; then 14605 # An in-tree tool is available and we can use it 14606 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14608$as_echo "just compiled" >&6; } 14609 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then 14610 # We already found the complete path 14611 ac_dir=`dirname $STRIP_FOR_TARGET` 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14613$as_echo "pre-installed in $ac_dir" >&6; } 14614 elif test "x$target" = "x$host"; then 14615 # We can use an host tool 14616 STRIP_FOR_TARGET='$(STRIP)' 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14618$as_echo "host tool" >&6; } 14619 else 14620 # We need a cross tool 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14622$as_echo "pre-installed" >&6; } 14623 fi 14624fi 14625 14626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 14627$as_echo_n "checking where to find the target windres... " >&6; } 14628if test "x${build}" != "x${host}" ; then 14629 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then 14630 # We already found the complete path 14631 ac_dir=`dirname $WINDRES_FOR_TARGET` 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14633$as_echo "pre-installed in $ac_dir" >&6; } 14634 else 14635 # Canadian cross, just use what we found 14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14637$as_echo "pre-installed" >&6; } 14638 fi 14639else 14640 ok=yes 14641 case " ${configdirs} " in 14642 *" binutils "*) ;; 14643 *) ok=no ;; 14644 esac 14645 14646 if test $ok = yes; then 14647 # An in-tree tool is available and we can use it 14648 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14650$as_echo "just compiled" >&6; } 14651 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then 14652 # We already found the complete path 14653 ac_dir=`dirname $WINDRES_FOR_TARGET` 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14655$as_echo "pre-installed in $ac_dir" >&6; } 14656 elif test "x$target" = "x$host"; then 14657 # We can use an host tool 14658 WINDRES_FOR_TARGET='$(WINDRES)' 14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14660$as_echo "host tool" >&6; } 14661 else 14662 # We need a cross tool 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14664$as_echo "pre-installed" >&6; } 14665 fi 14666fi 14667 14668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 14669$as_echo_n "checking where to find the target windmc... " >&6; } 14670if test "x${build}" != "x${host}" ; then 14671 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then 14672 # We already found the complete path 14673 ac_dir=`dirname $WINDMC_FOR_TARGET` 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14675$as_echo "pre-installed in $ac_dir" >&6; } 14676 else 14677 # Canadian cross, just use what we found 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14679$as_echo "pre-installed" >&6; } 14680 fi 14681else 14682 ok=yes 14683 case " ${configdirs} " in 14684 *" binutils "*) ;; 14685 *) ok=no ;; 14686 esac 14687 14688 if test $ok = yes; then 14689 # An in-tree tool is available and we can use it 14690 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 14692$as_echo "just compiled" >&6; } 14693 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then 14694 # We already found the complete path 14695 ac_dir=`dirname $WINDMC_FOR_TARGET` 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 14697$as_echo "pre-installed in $ac_dir" >&6; } 14698 elif test "x$target" = "x$host"; then 14699 # We can use an host tool 14700 WINDMC_FOR_TARGET='$(WINDMC)' 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 14702$as_echo "host tool" >&6; } 14703 else 14704 # We need a cross tool 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 14706$as_echo "pre-installed" >&6; } 14707 fi 14708fi 14709 14710 14711 14712 14713 14714# Certain tools may need extra flags. 14715AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} 14716RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} 14717NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} 14718 14719# When building target libraries, except in a Canadian cross, we use 14720# the same toolchain as the compiler we just built. 14721COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' 14722COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' 14723COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' 14724if test $host = $build; then 14725 case " $configdirs " in 14726 *" gcc "*) 14727 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' 14728 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' 14729 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} 14730 ;; 14731 esac 14732fi 14733 14734 14735 14736 14737 14738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 14739$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 14740# Check whether --enable-maintainer-mode was given. 14741if test "${enable_maintainer_mode+set}" = set; then : 14742 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 14743else 14744 USE_MAINTAINER_MODE=no 14745fi 14746 14747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 14748$as_echo "$USE_MAINTAINER_MODE" >&6; } 14749 14750 14751if test "$USE_MAINTAINER_MODE" = yes; then 14752 MAINTAINER_MODE_TRUE= 14753 MAINTAINER_MODE_FALSE='#' 14754else 14755 MAINTAINER_MODE_TRUE='#' 14756 MAINTAINER_MODE_FALSE= 14757fi 14758MAINT=$MAINTAINER_MODE_TRUE 14759 14760# --------------------- 14761# GCC bootstrap support 14762# --------------------- 14763 14764# Stage specific cflags for build. 14765stage1_cflags="-g" 14766case $build in 14767 vax-*-*) 14768 case ${GCC} in 14769 yes) stage1_cflags="-g -Wa,-J" ;; 14770 *) stage1_cflags="-g -J" ;; 14771 esac ;; 14772esac 14773 14774 14775 14776# Enable --enable-checking in stage1 of the compiler. 14777# Check whether --enable-stage1-checking was given. 14778if test "${enable_stage1_checking+set}" = set; then : 14779 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} 14780else 14781 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then 14782 # For --disable-checking or implicit --enable-checking=release, avoid 14783 # setting --enable-checking=gc in the default stage1 checking for LTO 14784 # bootstraps. See PR62077. 14785 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types 14786 case $BUILD_CONFIG in 14787 *lto*) 14788 if test "x$enable_checking" = x && \ 14789 test -d ${srcdir}/gcc && \ 14790 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then 14791 stage1_checking=--enable-checking=yes,types 14792 fi;; 14793 *) stage1_checking=--enable-checking=yes,types;; 14794 esac 14795else 14796 stage1_checking=--enable-checking=$enable_checking,types 14797fi 14798fi 14799 14800 14801 14802# Enable -Werror in bootstrap stage2 and later. 14803# Check whether --enable-werror was given. 14804if test "${enable_werror+set}" = set; then : 14805 enableval=$enable_werror; 14806else 14807 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then 14808 enable_werror=yes 14809else 14810 enable_werror=no 14811fi 14812fi 14813 14814case ${enable_werror} in 14815 yes) stage2_werror_flag="--enable-werror-always" ;; 14816 *) stage2_werror_flag="" ;; 14817esac 14818 14819 14820# Enable --enable-host-shared. 14821# Check whether --enable-host-shared was given. 14822if test "${enable_host_shared+set}" = set; then : 14823 enableval=$enable_host_shared; host_shared=$enableval 14824else 14825 host_shared=no 14826fi 14827 14828 14829 14830# PR jit/64780: Require the user to explicitly specify 14831# --enable-host-shared if the jit is enabled, hinting 14832# that they might want to do a separate configure/build of 14833# the jit, to avoid users from slowing down the rest of the 14834# compiler by enabling the jit. 14835if test ${host_shared} = "no" ; then 14836 case "${enable_languages}" in 14837 *jit*) 14838 as_fn_error " 14839Enabling language \"jit\" requires --enable-host-shared. 14840 14841--enable-host-shared typically slows the rest of the compiler down by 14842a few %, so you must explicitly enable it. 14843 14844If you want to build both the jit and the regular compiler, it is often 14845best to do this via two separate configure/builds, in separate 14846directories, to avoid imposing the performance cost of 14847--enable-host-shared on the regular compiler." "$LINENO" 5 14848 ;; 14849 *) 14850 ;; 14851 esac 14852fi 14853 14854# Specify what files to not compare during bootstrap. 14855 14856compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" 14857case "$target" in 14858 hppa*64*-*-hpux*) ;; 14859 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; 14860 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; 14861esac 14862 14863 14864ac_config_files="$ac_config_files Makefile" 14865 14866cat >confcache <<\_ACEOF 14867# This file is a shell script that caches the results of configure 14868# tests run on this system so they can be shared between configure 14869# scripts and configure runs, see configure's option --config-cache. 14870# It is not useful on other systems. If it contains results you don't 14871# want to keep, you may remove or edit it. 14872# 14873# config.status only pays attention to the cache file if you give it 14874# the --recheck option to rerun configure. 14875# 14876# `ac_cv_env_foo' variables (set or unset) will be overridden when 14877# loading this file, other *unset* `ac_cv_foo' will be assigned the 14878# following values. 14879 14880_ACEOF 14881 14882# The following way of writing the cache mishandles newlines in values, 14883# but we know of no workaround that is simple, portable, and efficient. 14884# So, we kill variables containing newlines. 14885# Ultrix sh set writes to stderr and can't be redirected directly, 14886# and sets the high bit in the cache file unless we assign to the vars. 14887( 14888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14889 eval ac_val=\$$ac_var 14890 case $ac_val in #( 14891 *${as_nl}*) 14892 case $ac_var in #( 14893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14894$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14895 esac 14896 case $ac_var in #( 14897 _ | IFS | as_nl) ;; #( 14898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14899 *) { eval $ac_var=; unset $ac_var;} ;; 14900 esac ;; 14901 esac 14902 done 14903 14904 (set) 2>&1 | 14905 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14906 *${as_nl}ac_space=\ *) 14907 # `set' does not quote correctly, so add quotes: double-quote 14908 # substitution turns \\\\ into \\, and sed turns \\ into \. 14909 sed -n \ 14910 "s/'/'\\\\''/g; 14911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14912 ;; #( 14913 *) 14914 # `set' quotes correctly as required by POSIX, so do not add quotes. 14915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14916 ;; 14917 esac | 14918 sort 14919) | 14920 sed ' 14921 /^ac_cv_env_/b end 14922 t clear 14923 :clear 14924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14925 t end 14926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14927 :end' >>confcache 14928if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14929 if test -w "$cache_file"; then 14930 test "x$cache_file" != "x/dev/null" && 14931 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14932$as_echo "$as_me: updating cache $cache_file" >&6;} 14933 cat confcache >$cache_file 14934 else 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14936$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14937 fi 14938fi 14939rm -f confcache 14940 14941test "x$prefix" = xNONE && prefix=$ac_default_prefix 14942# Let make expand exec_prefix. 14943test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14944 14945# Transform confdefs.h into DEFS. 14946# Protect against shell expansion while executing Makefile rules. 14947# Protect against Makefile macro expansion. 14948# 14949# If the first sed substitution is executed (which looks for macros that 14950# take arguments), then branch to the quote section. Otherwise, 14951# look for a macro that doesn't take arguments. 14952ac_script=' 14953:mline 14954/\\$/{ 14955 N 14956 s,\\\n,, 14957 b mline 14958} 14959t clear 14960:clear 14961s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 14962t quote 14963s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 14964t quote 14965b any 14966:quote 14967s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 14968s/\[/\\&/g 14969s/\]/\\&/g 14970s/\$/$$/g 14971H 14972:any 14973${ 14974 g 14975 s/^\n// 14976 s/\n/ /g 14977 p 14978} 14979' 14980DEFS=`sed -n "$ac_script" confdefs.h` 14981 14982 14983ac_libobjs= 14984ac_ltlibobjs= 14985for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14986 # 1. Remove the extension, and $U if already installed. 14987 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14988 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14990 # will be set to the directory where LIBOBJS objects are built. 14991 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14992 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14993done 14994LIBOBJS=$ac_libobjs 14995 14996LTLIBOBJS=$ac_ltlibobjs 14997 14998 14999 15000: ${CONFIG_STATUS=./config.status} 15001ac_write_fail=0 15002ac_clean_files_save=$ac_clean_files 15003ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15004{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15005$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15006as_write_fail=0 15007cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15008#! $SHELL 15009# Generated by $as_me. 15010# Run this file to recreate the current configuration. 15011# Compiler output produced by configure, useful for debugging 15012# configure, is in config.log if it exists. 15013 15014debug=false 15015ac_cs_recheck=false 15016ac_cs_silent=false 15017 15018SHELL=\${CONFIG_SHELL-$SHELL} 15019export SHELL 15020_ASEOF 15021cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15022## -------------------- ## 15023## M4sh Initialization. ## 15024## -------------------- ## 15025 15026# Be more Bourne compatible 15027DUALCASE=1; export DUALCASE # for MKS sh 15028if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15029 emulate sh 15030 NULLCMD=: 15031 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15032 # is contrary to our usage. Disable this feature. 15033 alias -g '${1+"$@"}'='"$@"' 15034 setopt NO_GLOB_SUBST 15035else 15036 case `(set -o) 2>/dev/null` in #( 15037 *posix*) : 15038 set -o posix ;; #( 15039 *) : 15040 ;; 15041esac 15042fi 15043 15044 15045as_nl=' 15046' 15047export as_nl 15048# Printing a long string crashes Solaris 7 /usr/bin/printf. 15049as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15050as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15052# Prefer a ksh shell builtin over an external printf program on Solaris, 15053# but without wasting forks for bash or zsh. 15054if test -z "$BASH_VERSION$ZSH_VERSION" \ 15055 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15056 as_echo='print -r --' 15057 as_echo_n='print -rn --' 15058elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15059 as_echo='printf %s\n' 15060 as_echo_n='printf %s' 15061else 15062 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15063 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15064 as_echo_n='/usr/ucb/echo -n' 15065 else 15066 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15067 as_echo_n_body='eval 15068 arg=$1; 15069 case $arg in #( 15070 *"$as_nl"*) 15071 expr "X$arg" : "X\\(.*\\)$as_nl"; 15072 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15073 esac; 15074 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15075 ' 15076 export as_echo_n_body 15077 as_echo_n='sh -c $as_echo_n_body as_echo' 15078 fi 15079 export as_echo_body 15080 as_echo='sh -c $as_echo_body as_echo' 15081fi 15082 15083# The user is always right. 15084if test "${PATH_SEPARATOR+set}" != set; then 15085 PATH_SEPARATOR=: 15086 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15087 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15088 PATH_SEPARATOR=';' 15089 } 15090fi 15091 15092 15093# IFS 15094# We need space, tab and new line, in precisely that order. Quoting is 15095# there to prevent editors from complaining about space-tab. 15096# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15097# splitting by setting IFS to empty value.) 15098IFS=" "" $as_nl" 15099 15100# Find who we are. Look in the path if we contain no directory separator. 15101case $0 in #(( 15102 *[\\/]* ) as_myself=$0 ;; 15103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15104for as_dir in $PATH 15105do 15106 IFS=$as_save_IFS 15107 test -z "$as_dir" && as_dir=. 15108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15109 done 15110IFS=$as_save_IFS 15111 15112 ;; 15113esac 15114# We did not find ourselves, most probably we were run as `sh COMMAND' 15115# in which case we are not to be found in the path. 15116if test "x$as_myself" = x; then 15117 as_myself=$0 15118fi 15119if test ! -f "$as_myself"; then 15120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15121 exit 1 15122fi 15123 15124# Unset variables that we do not need and which cause bugs (e.g. in 15125# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15126# suppresses any "Segmentation fault" message there. '((' could 15127# trigger a bug in pdksh 5.2.14. 15128for as_var in BASH_ENV ENV MAIL MAILPATH 15129do eval test x\${$as_var+set} = xset \ 15130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15131done 15132PS1='$ ' 15133PS2='> ' 15134PS4='+ ' 15135 15136# NLS nuisances. 15137LC_ALL=C 15138export LC_ALL 15139LANGUAGE=C 15140export LANGUAGE 15141 15142# CDPATH. 15143(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15144 15145 15146# as_fn_error ERROR [LINENO LOG_FD] 15147# --------------------------------- 15148# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15149# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15150# script with status $?, using 1 if that was 0. 15151as_fn_error () 15152{ 15153 as_status=$?; test $as_status -eq 0 && as_status=1 15154 if test "$3"; then 15155 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15156 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 15157 fi 15158 $as_echo "$as_me: error: $1" >&2 15159 as_fn_exit $as_status 15160} # as_fn_error 15161 15162 15163# as_fn_set_status STATUS 15164# ----------------------- 15165# Set $? to STATUS, without forking. 15166as_fn_set_status () 15167{ 15168 return $1 15169} # as_fn_set_status 15170 15171# as_fn_exit STATUS 15172# ----------------- 15173# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15174as_fn_exit () 15175{ 15176 set +e 15177 as_fn_set_status $1 15178 exit $1 15179} # as_fn_exit 15180 15181# as_fn_unset VAR 15182# --------------- 15183# Portably unset VAR. 15184as_fn_unset () 15185{ 15186 { eval $1=; unset $1;} 15187} 15188as_unset=as_fn_unset 15189# as_fn_append VAR VALUE 15190# ---------------------- 15191# Append the text in VALUE to the end of the definition contained in VAR. Take 15192# advantage of any shell optimizations that allow amortized linear growth over 15193# repeated appends, instead of the typical quadratic growth present in naive 15194# implementations. 15195if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15196 eval 'as_fn_append () 15197 { 15198 eval $1+=\$2 15199 }' 15200else 15201 as_fn_append () 15202 { 15203 eval $1=\$$1\$2 15204 } 15205fi # as_fn_append 15206 15207# as_fn_arith ARG... 15208# ------------------ 15209# Perform arithmetic evaluation on the ARGs, and store the result in the 15210# global $as_val. Take advantage of shells that can avoid forks. The arguments 15211# must be portable across $(()) and expr. 15212if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15213 eval 'as_fn_arith () 15214 { 15215 as_val=$(( $* )) 15216 }' 15217else 15218 as_fn_arith () 15219 { 15220 as_val=`expr "$@" || test $? -eq 1` 15221 } 15222fi # as_fn_arith 15223 15224 15225if expr a : '\(a\)' >/dev/null 2>&1 && 15226 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15227 as_expr=expr 15228else 15229 as_expr=false 15230fi 15231 15232if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15233 as_basename=basename 15234else 15235 as_basename=false 15236fi 15237 15238if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15239 as_dirname=dirname 15240else 15241 as_dirname=false 15242fi 15243 15244as_me=`$as_basename -- "$0" || 15245$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15246 X"$0" : 'X\(//\)$' \| \ 15247 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15248$as_echo X/"$0" | 15249 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15250 s//\1/ 15251 q 15252 } 15253 /^X\/\(\/\/\)$/{ 15254 s//\1/ 15255 q 15256 } 15257 /^X\/\(\/\).*/{ 15258 s//\1/ 15259 q 15260 } 15261 s/.*/./; q'` 15262 15263# Avoid depending upon Character Ranges. 15264as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15265as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15266as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15267as_cr_digits='0123456789' 15268as_cr_alnum=$as_cr_Letters$as_cr_digits 15269 15270ECHO_C= ECHO_N= ECHO_T= 15271case `echo -n x` in #((((( 15272-n*) 15273 case `echo 'xy\c'` in 15274 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15275 xy) ECHO_C='\c';; 15276 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15277 ECHO_T=' ';; 15278 esac;; 15279*) 15280 ECHO_N='-n';; 15281esac 15282 15283rm -f conf$$ conf$$.exe conf$$.file 15284if test -d conf$$.dir; then 15285 rm -f conf$$.dir/conf$$.file 15286else 15287 rm -f conf$$.dir 15288 mkdir conf$$.dir 2>/dev/null 15289fi 15290if (echo >conf$$.file) 2>/dev/null; then 15291 if ln -s conf$$.file conf$$ 2>/dev/null; then 15292 as_ln_s='ln -s' 15293 # ... but there are two gotchas: 15294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15296 # In both cases, we have to default to `cp -p'. 15297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15298 as_ln_s='cp -p' 15299 elif ln conf$$.file conf$$ 2>/dev/null; then 15300 as_ln_s=ln 15301 else 15302 as_ln_s='cp -p' 15303 fi 15304else 15305 as_ln_s='cp -p' 15306fi 15307rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15308rmdir conf$$.dir 2>/dev/null 15309 15310 15311# as_fn_mkdir_p 15312# ------------- 15313# Create "$as_dir" as a directory, including parents if necessary. 15314as_fn_mkdir_p () 15315{ 15316 15317 case $as_dir in #( 15318 -*) as_dir=./$as_dir;; 15319 esac 15320 test -d "$as_dir" || eval $as_mkdir_p || { 15321 as_dirs= 15322 while :; do 15323 case $as_dir in #( 15324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15325 *) as_qdir=$as_dir;; 15326 esac 15327 as_dirs="'$as_qdir' $as_dirs" 15328 as_dir=`$as_dirname -- "$as_dir" || 15329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15330 X"$as_dir" : 'X\(//\)[^/]' \| \ 15331 X"$as_dir" : 'X\(//\)$' \| \ 15332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15333$as_echo X"$as_dir" | 15334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15335 s//\1/ 15336 q 15337 } 15338 /^X\(\/\/\)[^/].*/{ 15339 s//\1/ 15340 q 15341 } 15342 /^X\(\/\/\)$/{ 15343 s//\1/ 15344 q 15345 } 15346 /^X\(\/\).*/{ 15347 s//\1/ 15348 q 15349 } 15350 s/.*/./; q'` 15351 test -d "$as_dir" && break 15352 done 15353 test -z "$as_dirs" || eval "mkdir $as_dirs" 15354 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15355 15356 15357} # as_fn_mkdir_p 15358if mkdir -p . 2>/dev/null; then 15359 as_mkdir_p='mkdir -p "$as_dir"' 15360else 15361 test -d ./-p && rmdir ./-p 15362 as_mkdir_p=false 15363fi 15364 15365if test -x / >/dev/null 2>&1; then 15366 as_test_x='test -x' 15367else 15368 if ls -dL / >/dev/null 2>&1; then 15369 as_ls_L_option=L 15370 else 15371 as_ls_L_option= 15372 fi 15373 as_test_x=' 15374 eval sh -c '\'' 15375 if test -d "$1"; then 15376 test -d "$1/."; 15377 else 15378 case $1 in #( 15379 -*)set "./$1";; 15380 esac; 15381 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15382 ???[sx]*):;;*)false;;esac;fi 15383 '\'' sh 15384 ' 15385fi 15386as_executable_p=$as_test_x 15387 15388# Sed expression to map a string onto a valid CPP name. 15389as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15390 15391# Sed expression to map a string onto a valid variable name. 15392as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15393 15394 15395exec 6>&1 15396## ----------------------------------- ## 15397## Main body of $CONFIG_STATUS script. ## 15398## ----------------------------------- ## 15399_ASEOF 15400test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15401 15402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15403# Save the log message, to keep $0 and so on meaningful, and to 15404# report actual input values of CONFIG_FILES etc. instead of their 15405# values after options handling. 15406ac_log=" 15407This file was extended by $as_me, which was 15408generated by GNU Autoconf 2.64. Invocation command line was 15409 15410 CONFIG_FILES = $CONFIG_FILES 15411 CONFIG_HEADERS = $CONFIG_HEADERS 15412 CONFIG_LINKS = $CONFIG_LINKS 15413 CONFIG_COMMANDS = $CONFIG_COMMANDS 15414 $ $0 $@ 15415 15416on `(hostname || uname -n) 2>/dev/null | sed 1q` 15417" 15418 15419_ACEOF 15420 15421case $ac_config_files in *" 15422"*) set x $ac_config_files; shift; ac_config_files=$*;; 15423esac 15424 15425 15426 15427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15428# Files that config.status was made for. 15429config_files="$ac_config_files" 15430 15431_ACEOF 15432 15433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15434ac_cs_usage="\ 15435\`$as_me' instantiates files and other configuration actions 15436from templates according to the current configuration. Unless the files 15437and actions are specified as TAGs, all are instantiated by default. 15438 15439Usage: $0 [OPTION]... [TAG]... 15440 15441 -h, --help print this help, then exit 15442 -V, --version print version number and configuration settings, then exit 15443 -q, --quiet, --silent 15444 do not print progress messages 15445 -d, --debug don't remove temporary files 15446 --recheck update $as_me by reconfiguring in the same conditions 15447 --file=FILE[:TEMPLATE] 15448 instantiate the configuration file FILE 15449 15450Configuration files: 15451$config_files 15452 15453Report bugs to the package provider." 15454 15455_ACEOF 15456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15457ac_cs_version="\\ 15458config.status 15459configured by $0, generated by GNU Autoconf 2.64, 15460 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15461 15462Copyright (C) 2009 Free Software Foundation, Inc. 15463This config.status script is free software; the Free Software Foundation 15464gives unlimited permission to copy, distribute and modify it." 15465 15466ac_pwd='$ac_pwd' 15467srcdir='$srcdir' 15468INSTALL='$INSTALL' 15469AWK='$AWK' 15470test -n "\$AWK" || AWK=awk 15471_ACEOF 15472 15473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15474# The default lists apply if the user does not specify any file. 15475ac_need_defaults=: 15476while test $# != 0 15477do 15478 case $1 in 15479 --*=*) 15480 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15482 ac_shift=: 15483 ;; 15484 *) 15485 ac_option=$1 15486 ac_optarg=$2 15487 ac_shift=shift 15488 ;; 15489 esac 15490 15491 case $ac_option in 15492 # Handling of the options. 15493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15494 ac_cs_recheck=: ;; 15495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15496 $as_echo "$ac_cs_version"; exit ;; 15497 --debug | --debu | --deb | --de | --d | -d ) 15498 debug=: ;; 15499 --file | --fil | --fi | --f ) 15500 $ac_shift 15501 case $ac_optarg in 15502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15503 esac 15504 as_fn_append CONFIG_FILES " '$ac_optarg'" 15505 ac_need_defaults=false;; 15506 --he | --h | --help | --hel | -h ) 15507 $as_echo "$ac_cs_usage"; exit ;; 15508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15509 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15510 ac_cs_silent=: ;; 15511 15512 # This is an error. 15513 -*) as_fn_error "unrecognized option: \`$1' 15514Try \`$0 --help' for more information." ;; 15515 15516 *) as_fn_append ac_config_targets " $1" 15517 ac_need_defaults=false ;; 15518 15519 esac 15520 shift 15521done 15522 15523ac_configure_extra_args= 15524 15525if $ac_cs_silent; then 15526 exec 6>/dev/null 15527 ac_configure_extra_args="$ac_configure_extra_args --silent" 15528fi 15529 15530_ACEOF 15531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15532if \$ac_cs_recheck; then 15533 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15534 shift 15535 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15536 CONFIG_SHELL='$SHELL' 15537 export CONFIG_SHELL 15538 exec "\$@" 15539fi 15540 15541_ACEOF 15542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15543exec 5>>config.log 15544{ 15545 echo 15546 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15547## Running $as_me. ## 15548_ASBOX 15549 $as_echo "$ac_log" 15550} >&5 15551 15552_ACEOF 15553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15554# 15555# INIT-COMMANDS 15556# 15557extrasub_build="$extrasub_build" 15558 extrasub_host="$extrasub_host" 15559 extrasub_target="$extrasub_target" 15560 15561_ACEOF 15562 15563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15564 15565# Handling of arguments. 15566for ac_config_target in $ac_config_targets 15567do 15568 case $ac_config_target in 15569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15570 15571 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15572 esac 15573done 15574 15575 15576# If the user did not use the arguments to specify the items to instantiate, 15577# then the envvar interface is used. Set only those that are not. 15578# We use the long form for the default assignment because of an extremely 15579# bizarre bug on SunOS 4.1.3. 15580if $ac_need_defaults; then 15581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15582fi 15583 15584# Have a temporary directory for convenience. Make it in the build tree 15585# simply because there is no reason against having it here, and in addition, 15586# creating and moving files from /tmp can sometimes cause problems. 15587# Hook for its removal unless debugging. 15588# Note that there is a small window in which the directory will not be cleaned: 15589# after its creation but before its name has been assigned to `$tmp'. 15590$debug || 15591{ 15592 tmp= 15593 trap 'exit_status=$? 15594 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15595' 0 15596 trap 'as_fn_exit 1' 1 2 13 15 15597} 15598# Create a (secure) tmp directory for tmp files. 15599 15600{ 15601 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15602 test -n "$tmp" && test -d "$tmp" 15603} || 15604{ 15605 tmp=./conf$$-$RANDOM 15606 (umask 077 && mkdir "$tmp") 15607} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 15608 15609# Set up the scripts for CONFIG_FILES section. 15610# No need to generate them if there are no CONFIG_FILES. 15611# This happens for instance with `./config.status config.h'. 15612if test -n "$CONFIG_FILES"; then 15613 15614if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 15615 ac_cs_awk_getline=: 15616 ac_cs_awk_pipe_init= 15617 ac_cs_awk_read_file=' 15618 while ((getline aline < (F[key])) > 0) 15619 print(aline) 15620 close(F[key])' 15621 ac_cs_awk_pipe_fini= 15622else 15623 ac_cs_awk_getline=false 15624 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 15625 ac_cs_awk_read_file=' 15626 print "|#_!!_#|" 15627 print "cat " F[key] " &&" 15628 '$ac_cs_awk_pipe_init 15629 # The final `:' finishes the AND list. 15630 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 15631fi 15632ac_cr=`echo X | tr X '\015'` 15633# On cygwin, bash can eat \r inside `` if the user requested igncr. 15634# But we know of no other shell where ac_cr would be empty at this 15635# point, so we can use a bashism as a fallback. 15636if test "x$ac_cr" = x; then 15637 eval ac_cr=\$\'\\r\' 15638fi 15639ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15640if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15641 ac_cs_awk_cr='\r' 15642else 15643 ac_cs_awk_cr=$ac_cr 15644fi 15645 15646echo 'BEGIN {' >"$tmp/subs1.awk" && 15647_ACEOF 15648 15649# Create commands to substitute file output variables. 15650{ 15651 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 15652 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && 15653 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 15654 echo "_ACAWK" && 15655 echo "_ACEOF" 15656} >conf$$files.sh && 15657. ./conf$$files.sh || 15658 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15659rm -f conf$$files.sh 15660 15661{ 15662 echo "cat >conf$$subs.awk <<_ACEOF" && 15663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15664 echo "_ACEOF" 15665} >conf$$subs.sh || 15666 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15667ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15668ac_delim='%!_!# ' 15669for ac_last_try in false false false false false :; do 15670 . ./conf$$subs.sh || 15671 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15672 15673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15674 if test $ac_delim_n = $ac_delim_num; then 15675 break 15676 elif $ac_last_try; then 15677 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15678 else 15679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15680 fi 15681done 15682rm -f conf$$subs.sh 15683 15684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15685cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15686_ACEOF 15687sed -n ' 15688h 15689s/^/S["/; s/!.*/"]=/ 15690p 15691g 15692s/^[^!]*!// 15693:repl 15694t repl 15695s/'"$ac_delim"'$// 15696t delim 15697:nl 15698h 15699s/\(.\{148\}\).*/\1/ 15700t more1 15701s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15702p 15703n 15704b repl 15705:more1 15706s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15707p 15708g 15709s/.\{148\}// 15710t nl 15711:delim 15712h 15713s/\(.\{148\}\).*/\1/ 15714t more2 15715s/["\\]/\\&/g; s/^/"/; s/$/"/ 15716p 15717b 15718:more2 15719s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15720p 15721g 15722s/.\{148\}// 15723t delim 15724' <conf$$subs.awk | sed ' 15725/^[^""]/{ 15726 N 15727 s/\n// 15728} 15729' >>$CONFIG_STATUS || ac_write_fail=1 15730rm -f conf$$subs.awk 15731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15732_ACAWK 15733cat >>"\$tmp/subs1.awk" <<_ACAWK && 15734 for (key in S) S_is_set[key] = 1 15735 FS = "" 15736 \$ac_cs_awk_pipe_init 15737} 15738{ 15739 line = $ 0 15740 nfields = split(line, field, "@") 15741 substed = 0 15742 len = length(field[1]) 15743 for (i = 2; i < nfields; i++) { 15744 key = field[i] 15745 keylen = length(key) 15746 if (S_is_set[key]) { 15747 value = S[key] 15748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15749 len += length(value) + length(field[++i]) 15750 substed = 1 15751 } else 15752 len += 1 + keylen 15753 } 15754 if (nfields == 3 && !substed) { 15755 key = field[2] 15756 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 15757 \$ac_cs_awk_read_file 15758 next 15759 } 15760 } 15761 print line 15762} 15763\$ac_cs_awk_pipe_fini 15764_ACAWK 15765_ACEOF 15766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15767if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15768 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15769else 15770 cat 15771fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15772 || as_fn_error "could not setup config files machinery" "$LINENO" 5 15773_ACEOF 15774 15775# VPATH may cause trouble with some makes, so we remove $(srcdir), 15776# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15777# trailing colons and then remove the whole line if VPATH becomes empty 15778# (actually we leave an empty line to preserve line numbers). 15779if test "x$srcdir" = x.; then 15780 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15781s/:*\$(srcdir):*/:/ 15782s/:*\${srcdir}:*/:/ 15783s/:*@srcdir@:*/:/ 15784s/^\([^=]*=[ ]*\):*/\1/ 15785s/:*$// 15786s/^[^=]*=[ ]*$// 15787}' 15788fi 15789 15790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15791fi # test -n "$CONFIG_FILES" 15792 15793 15794eval set X " :F $CONFIG_FILES " 15795shift 15796for ac_tag 15797do 15798 case $ac_tag in 15799 :[FHLC]) ac_mode=$ac_tag; continue;; 15800 esac 15801 case $ac_mode$ac_tag in 15802 :[FHL]*:*);; 15803 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 15804 :[FH]-) ac_tag=-:-;; 15805 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15806 esac 15807 ac_save_IFS=$IFS 15808 IFS=: 15809 set x $ac_tag 15810 IFS=$ac_save_IFS 15811 shift 15812 ac_file=$1 15813 shift 15814 15815 case $ac_mode in 15816 :L) ac_source=$1;; 15817 :[FH]) 15818 ac_file_inputs= 15819 for ac_f 15820 do 15821 case $ac_f in 15822 -) ac_f="$tmp/stdin";; 15823 *) # Look for the file first in the build tree, then in the source tree 15824 # (if the path is not absolute). The absolute path cannot be DOS-style, 15825 # because $ac_f cannot contain `:'. 15826 test -f "$ac_f" || 15827 case $ac_f in 15828 [\\/$]*) false;; 15829 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15830 esac || 15831 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15832 esac 15833 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15834 as_fn_append ac_file_inputs " '$ac_f'" 15835 done 15836 15837 # Let's still pretend it is `configure' which instantiates (i.e., don't 15838 # use $as_me), people would be surprised to read: 15839 # /* config.h. Generated by config.status. */ 15840 configure_input='Generated from '` 15841 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15842 `' by configure.' 15843 if test x"$ac_file" != x-; then 15844 configure_input="$ac_file. $configure_input" 15845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15846$as_echo "$as_me: creating $ac_file" >&6;} 15847 fi 15848 # Neutralize special characters interpreted by sed in replacement strings. 15849 case $configure_input in #( 15850 *\&* | *\|* | *\\* ) 15851 ac_sed_conf_input=`$as_echo "$configure_input" | 15852 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15853 *) ac_sed_conf_input=$configure_input;; 15854 esac 15855 15856 case $ac_tag in 15857 *:-:* | *:-) cat >"$tmp/stdin" \ 15858 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 15859 esac 15860 ;; 15861 esac 15862 15863 ac_dir=`$as_dirname -- "$ac_file" || 15864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15865 X"$ac_file" : 'X\(//\)[^/]' \| \ 15866 X"$ac_file" : 'X\(//\)$' \| \ 15867 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15868$as_echo X"$ac_file" | 15869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15870 s//\1/ 15871 q 15872 } 15873 /^X\(\/\/\)[^/].*/{ 15874 s//\1/ 15875 q 15876 } 15877 /^X\(\/\/\)$/{ 15878 s//\1/ 15879 q 15880 } 15881 /^X\(\/\).*/{ 15882 s//\1/ 15883 q 15884 } 15885 s/.*/./; q'` 15886 as_dir="$ac_dir"; as_fn_mkdir_p 15887 ac_builddir=. 15888 15889case "$ac_dir" in 15890.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15891*) 15892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15893 # A ".." for each directory in $ac_dir_suffix. 15894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15895 case $ac_top_builddir_sub in 15896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15898 esac ;; 15899esac 15900ac_abs_top_builddir=$ac_pwd 15901ac_abs_builddir=$ac_pwd$ac_dir_suffix 15902# for backward compatibility: 15903ac_top_builddir=$ac_top_build_prefix 15904 15905case $srcdir in 15906 .) # We are building in place. 15907 ac_srcdir=. 15908 ac_top_srcdir=$ac_top_builddir_sub 15909 ac_abs_top_srcdir=$ac_pwd ;; 15910 [\\/]* | ?:[\\/]* ) # Absolute name. 15911 ac_srcdir=$srcdir$ac_dir_suffix; 15912 ac_top_srcdir=$srcdir 15913 ac_abs_top_srcdir=$srcdir ;; 15914 *) # Relative name. 15915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15916 ac_top_srcdir=$ac_top_build_prefix$srcdir 15917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15918esac 15919ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15920 15921 15922 case $ac_mode in 15923 :F) 15924 # 15925 # CONFIG_FILE 15926 # 15927 15928 case $INSTALL in 15929 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15930 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15931 esac 15932_ACEOF 15933 15934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15935# If the template does not know about datarootdir, expand it. 15936# FIXME: This hack should be removed a few years after 2.60. 15937ac_datarootdir_hack=; ac_datarootdir_seen= 15938ac_sed_dataroot=' 15939/datarootdir/ { 15940 p 15941 q 15942} 15943/@datadir@/p 15944/@docdir@/p 15945/@infodir@/p 15946/@localedir@/p 15947/@mandir@/p' 15948case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15949*datarootdir*) ac_datarootdir_seen=yes;; 15950*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15952$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15953_ACEOF 15954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15955 ac_datarootdir_hack=' 15956 s&@datadir@&$datadir&g 15957 s&@docdir@&$docdir&g 15958 s&@infodir@&$infodir&g 15959 s&@localedir@&$localedir&g 15960 s&@mandir@&$mandir&g 15961 s&\\\${datarootdir}&$datarootdir&g' ;; 15962esac 15963_ACEOF 15964 15965# Neutralize VPATH when `$srcdir' = `.'. 15966# Shell code in configure.ac might set extrasub. 15967# FIXME: do we really want to maintain this feature? 15968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15969ac_sed_extra="$ac_vpsub 15970$extrasub 15971_ACEOF 15972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15973:t 15974/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15975s|@configure_input@|$ac_sed_conf_input|;t t 15976s&@top_builddir@&$ac_top_builddir_sub&;t t 15977s&@top_build_prefix@&$ac_top_build_prefix&;t t 15978s&@srcdir@&$ac_srcdir&;t t 15979s&@abs_srcdir@&$ac_abs_srcdir&;t t 15980s&@top_srcdir@&$ac_top_srcdir&;t t 15981s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15982s&@builddir@&$ac_builddir&;t t 15983s&@abs_builddir@&$ac_abs_builddir&;t t 15984s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15985s&@INSTALL@&$ac_INSTALL&;t t 15986$ac_datarootdir_hack 15987" 15988eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 15989if $ac_cs_awk_getline; then 15990 $AWK -f "$tmp/subs.awk" 15991else 15992 $AWK -f "$tmp/subs.awk" | $SHELL 15993fi >$tmp/out \ 15994 || as_fn_error "could not create $ac_file" "$LINENO" 5 15995 15996test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15997 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15998 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16000which seems to be undefined. Please make sure it is defined." >&5 16001$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16002which seems to be undefined. Please make sure it is defined." >&2;} 16003 16004 rm -f "$tmp/stdin" 16005 case $ac_file in 16006 -) cat "$tmp/out" && rm -f "$tmp/out";; 16007 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16008 esac \ 16009 || as_fn_error "could not create $ac_file" "$LINENO" 5 16010 ;; 16011 16012 16013 16014 esac 16015 16016 16017 case $ac_file$ac_mode in 16018 "Makefile":F) sed "$extrasub_build" Makefile | 16019 sed "$extrasub_host" | 16020 sed "$extrasub_target" > mf$$ 16021 mv -f mf$$ Makefile ;; 16022 16023 esac 16024done # for ac_tag 16025 16026 16027as_fn_exit 0 16028_ACEOF 16029ac_clean_files=$ac_clean_files_save 16030 16031test $ac_write_fail = 0 || 16032 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 16033 16034 16035# configure is writing to config.log, and then calls config.status. 16036# config.status does its own redirection, appending to config.log. 16037# Unfortunately, on DOS this fails, as config.log is still kept open 16038# by configure, so config.status won't be able to write to it; its 16039# output is simply discarded. So we exec the FD to /dev/null, 16040# effectively closing config.log, so it can be properly (re)opened and 16041# appended to by config.status. When coming back to configure, we 16042# need to make the FD available again. 16043if test "$no_create" != yes; then 16044 ac_cs_success=: 16045 ac_config_status_args= 16046 test "$silent" = yes && 16047 ac_config_status_args="$ac_config_status_args --quiet" 16048 exec 5>/dev/null 16049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16050 exec 5>>config.log 16051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16052 # would make configure fail if this is the last instruction. 16053 $ac_cs_success || as_fn_exit $? 16054fi 16055if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16057$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16058fi 16059 16060