PageRenderTime 108ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 2ms

/tools/libc/src/configure

https://github.com/shanjit/lemberg
Shell | 15249 lines | 13398 code | 1073 blank | 778 comment | 2114 complexity | 31033615af3ecd9b38bc4a6d13b33ee4 MD5 | raw file
Possible License(s): JSON, Apache-2.0, GPL-3.0, GPL-2.0, LGPL-2.0, BSD-3-Clause
  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. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=
  506. ac_unique_file="move-if-change"
  507. enable_option_checking=no
  508. ac_subst_vars='LTLIBOBJS
  509. LIBOBJS
  510. compare_exclusions
  511. stage2_werror_flag
  512. stage1_checking
  513. stage1_cflags
  514. MAINT
  515. MAINTAINER_MODE_FALSE
  516. MAINTAINER_MODE_TRUE
  517. COMPILER_NM_FOR_TARGET
  518. COMPILER_LD_FOR_TARGET
  519. COMPILER_AS_FOR_TARGET
  520. FLAGS_FOR_TARGET
  521. RAW_CXX_FOR_TARGET
  522. WINDMC_FOR_TARGET
  523. WINDRES_FOR_TARGET
  524. STRIP_FOR_TARGET
  525. RANLIB_FOR_TARGET
  526. OBJDUMP_FOR_TARGET
  527. NM_FOR_TARGET
  528. LIPO_FOR_TARGET
  529. LD_FOR_TARGET
  530. DLLTOOL_FOR_TARGET
  531. AS_FOR_TARGET
  532. AR_FOR_TARGET
  533. GOC_FOR_TARGET
  534. GFORTRAN_FOR_TARGET
  535. GCJ_FOR_TARGET
  536. GCC_FOR_TARGET
  537. CXX_FOR_TARGET
  538. CC_FOR_TARGET
  539. OBJDUMP
  540. OBJCOPY
  541. WINDMC
  542. WINDRES
  543. STRIP
  544. RANLIB
  545. NM
  546. LIPO
  547. LD
  548. DLLTOOL
  549. AS
  550. AR
  551. RUNTEST
  552. EXPECT
  553. MAKEINFO
  554. FLEX
  555. LEX
  556. M4
  557. BISON
  558. YACC
  559. config_shell
  560. WINDRES_FOR_BUILD
  561. WINDMC_FOR_BUILD
  562. RANLIB_FOR_BUILD
  563. NM_FOR_BUILD
  564. LD_FOR_BUILD
  565. LDFLAGS_FOR_BUILD
  566. GOC_FOR_BUILD
  567. GFORTRAN_FOR_BUILD
  568. GCJ_FOR_BUILD
  569. DLLTOOL_FOR_BUILD
  570. CXX_FOR_BUILD
  571. CXXFLAGS_FOR_BUILD
  572. CFLAGS_FOR_BUILD
  573. CC_FOR_BUILD
  574. AS_FOR_BUILD
  575. AR_FOR_BUILD
  576. target_configdirs
  577. configdirs
  578. build_configdirs
  579. INSTALL_GDB_TK
  580. GDB_TK
  581. CONFIGURE_GDB_TK
  582. build_tooldir
  583. tooldir
  584. GCC_SHLIB_SUBDIR
  585. RPATH_ENVVAR
  586. target_configargs
  587. host_configargs
  588. build_configargs
  589. BUILD_CONFIG
  590. CXXFLAGS_FOR_TARGET
  591. CFLAGS_FOR_TARGET
  592. DEBUG_PREFIX_CFLAGS_FOR_TARGET
  593. SYSROOT_CFLAGS_FOR_TARGET
  594. stage1_languages
  595. extra_host_libiberty_configure_flags
  596. clooginc
  597. clooglibs
  598. pplinc
  599. ppllibs
  600. poststage1_ldflags
  601. poststage1_libs
  602. stage1_libs
  603. stage1_ldflags
  604. extra_mpc_mpfr_configure_flags
  605. extra_mpc_gmp_configure_flags
  606. extra_mpfr_configure_flags
  607. gmpinc
  608. gmplibs
  609. do_compare
  610. GNATMAKE
  611. GNATBIND
  612. ac_ct_CXX
  613. CXXFLAGS
  614. CXX
  615. OBJEXT
  616. EXEEXT
  617. ac_ct_CC
  618. CPPFLAGS
  619. LDFLAGS
  620. CFLAGS
  621. CC
  622. target_subdir
  623. host_subdir
  624. build_subdir
  625. build_libsubdir
  626. AWK
  627. SED
  628. LN_S
  629. LN
  630. INSTALL_DATA
  631. INSTALL_SCRIPT
  632. INSTALL_PROGRAM
  633. target_os
  634. target_vendor
  635. target_cpu
  636. target
  637. host_os
  638. host_vendor
  639. host_cpu
  640. host
  641. target_noncanonical
  642. host_noncanonical
  643. build_noncanonical
  644. build_os
  645. build_vendor
  646. build_cpu
  647. build
  648. TOPLEVEL_CONFIGURE_ARGUMENTS
  649. target_alias
  650. host_alias
  651. build_alias
  652. LIBS
  653. ECHO_T
  654. ECHO_N
  655. ECHO_C
  656. DEFS
  657. mandir
  658. localedir
  659. libdir
  660. psdir
  661. pdfdir
  662. dvidir
  663. htmldir
  664. infodir
  665. docdir
  666. oldincludedir
  667. includedir
  668. localstatedir
  669. sharedstatedir
  670. sysconfdir
  671. datadir
  672. datarootdir
  673. libexecdir
  674. sbindir
  675. bindir
  676. program_transform_name
  677. prefix
  678. exec_prefix
  679. PACKAGE_URL
  680. PACKAGE_BUGREPORT
  681. PACKAGE_STRING
  682. PACKAGE_VERSION
  683. PACKAGE_TARNAME
  684. PACKAGE_NAME
  685. PATH_SEPARATOR
  686. SHELL'
  687. ac_subst_files='serialization_dependencies
  688. host_makefile_frag
  689. target_makefile_frag
  690. alphaieee_frag
  691. ospace_frag'
  692. ac_user_opts='
  693. enable_option_checking
  694. with_build_libsubdir
  695. enable_gold
  696. enable_ld
  697. enable_libquadmath
  698. enable_libquadmath_support
  699. enable_libada
  700. enable_libssp
  701. enable_build_with_cxx
  702. with_mpc
  703. with_mpc_include
  704. with_mpc_lib
  705. with_mpfr_dir
  706. with_mpfr
  707. with_mpfr_include
  708. with_mpfr_lib
  709. with_gmp_dir
  710. with_gmp
  711. with_gmp_include
  712. with_gmp_lib
  713. with_host_libstdcxx
  714. with_stage1_ldflags
  715. with_stage1_libs
  716. with_boot_libs
  717. with_boot_ldflags
  718. with_ppl
  719. with_ppl_include
  720. with_ppl_lib
  721. enable_ppl_version_check
  722. with_cloog
  723. with_cloog_include
  724. with_cloog_lib
  725. enable_cloog_backend
  726. enable_cloog_version_check
  727. enable_lto
  728. enable_stage1_languages
  729. enable_objc_gc
  730. with_build_sysroot
  731. with_debug_prefix_map
  732. enable_bootstrap
  733. with_build_config
  734. enable_serial_configure
  735. with_build_time_tools
  736. enable_maintainer_mode
  737. enable_stage1_checking
  738. enable_werror
  739. '
  740. ac_precious_vars='build_alias
  741. host_alias
  742. target_alias
  743. CC
  744. CFLAGS
  745. LDFLAGS
  746. LIBS
  747. CPPFLAGS
  748. CXX
  749. CXXFLAGS
  750. CCC
  751. build_configargs
  752. host_configargs
  753. target_configargs
  754. AR
  755. AS
  756. DLLTOOL
  757. LD
  758. LIPO
  759. NM
  760. RANLIB
  761. STRIP
  762. WINDRES
  763. WINDMC
  764. OBJCOPY
  765. OBJDUMP
  766. CC_FOR_TARGET
  767. CXX_FOR_TARGET
  768. GCC_FOR_TARGET
  769. GCJ_FOR_TARGET
  770. GFORTRAN_FOR_TARGET
  771. GOC_FOR_TARGET
  772. AR_FOR_TARGET
  773. AS_FOR_TARGET
  774. DLLTOOL_FOR_TARGET
  775. LD_FOR_TARGET
  776. LIPO_FOR_TARGET
  777. NM_FOR_TARGET
  778. OBJDUMP_FOR_TARGET
  779. RANLIB_FOR_TARGET
  780. STRIP_FOR_TARGET
  781. WINDRES_FOR_TARGET
  782. WINDMC_FOR_TARGET'
  783. # Initialize some variables set by options.
  784. ac_init_help=
  785. ac_init_version=false
  786. ac_unrecognized_opts=
  787. ac_unrecognized_sep=
  788. # The variables have the same names as the options, with
  789. # dashes changed to underlines.
  790. cache_file=/dev/null
  791. exec_prefix=NONE
  792. no_create=
  793. no_recursion=
  794. prefix=NONE
  795. program_prefix=NONE
  796. program_suffix=NONE
  797. program_transform_name=s,x,x,
  798. silent=
  799. site=
  800. srcdir=
  801. verbose=
  802. x_includes=NONE
  803. x_libraries=NONE
  804. # Installation directory options.
  805. # These are left unexpanded so users can "make install exec_prefix=/foo"
  806. # and all the variables that are supposed to be based on exec_prefix
  807. # by default will actually change.
  808. # Use braces instead of parens because sh, perl, etc. also accept them.
  809. # (The list follows the same order as the GNU Coding Standards.)
  810. bindir='${exec_prefix}/bin'
  811. sbindir='${exec_prefix}/sbin'
  812. libexecdir='${exec_prefix}/libexec'
  813. datarootdir='${prefix}/share'
  814. datadir='${datarootdir}'
  815. sysconfdir='${prefix}/etc'
  816. sharedstatedir='${prefix}/com'
  817. localstatedir='${prefix}/var'
  818. includedir='${prefix}/include'
  819. oldincludedir='/usr/include'
  820. docdir='${datarootdir}/doc/${PACKAGE}'
  821. infodir='${datarootdir}/info'
  822. htmldir='${docdir}'
  823. dvidir='${docdir}'
  824. pdfdir='${docdir}'
  825. psdir='${docdir}'
  826. libdir='${exec_prefix}/lib'
  827. localedir='${datarootdir}/locale'
  828. mandir='${datarootdir}/man'
  829. ac_prev=
  830. ac_dashdash=
  831. for ac_option
  832. do
  833. # If the previous option needs an argument, assign it.
  834. if test -n "$ac_prev"; then
  835. eval $ac_prev=\$ac_option
  836. ac_prev=
  837. continue
  838. fi
  839. case $ac_option in
  840. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  841. *) ac_optarg=yes ;;
  842. esac
  843. # Accept the important Cygnus configure options, so we can diagnose typos.
  844. case $ac_dashdash$ac_option in
  845. --)
  846. ac_dashdash=yes ;;
  847. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  848. ac_prev=bindir ;;
  849. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  850. bindir=$ac_optarg ;;
  851. -build | --build | --buil | --bui | --bu)
  852. ac_prev=build_alias ;;
  853. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  854. build_alias=$ac_optarg ;;
  855. -cache-file | --cache-file | --cache-fil | --cache-fi \
  856. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  857. ac_prev=cache_file ;;
  858. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  859. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  860. cache_file=$ac_optarg ;;
  861. --config-cache | -C)
  862. cache_file=config.cache ;;
  863. -datadir | --datadir | --datadi | --datad)
  864. ac_prev=datadir ;;
  865. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  866. datadir=$ac_optarg ;;
  867. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  868. | --dataroo | --dataro | --datar)
  869. ac_prev=datarootdir ;;
  870. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  871. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  872. datarootdir=$ac_optarg ;;
  873. -disable-* | --disable-*)
  874. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  875. # Reject names that are not valid shell variable names.
  876. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  877. as_fn_error "invalid feature name: $ac_useropt"
  878. ac_useropt_orig=$ac_useropt
  879. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  880. case $ac_user_opts in
  881. *"
  882. "enable_$ac_useropt"
  883. "*) ;;
  884. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  885. ac_unrecognized_sep=', ';;
  886. esac
  887. eval enable_$ac_useropt=no ;;
  888. -docdir | --docdir | --docdi | --doc | --do)
  889. ac_prev=docdir ;;
  890. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  891. docdir=$ac_optarg ;;
  892. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  893. ac_prev=dvidir ;;
  894. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  895. dvidir=$ac_optarg ;;
  896. -enable-* | --enable-*)
  897. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  898. # Reject names that are not valid shell variable names.
  899. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  900. as_fn_error "invalid feature name: $ac_useropt"
  901. ac_useropt_orig=$ac_useropt
  902. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  903. case $ac_user_opts in
  904. *"
  905. "enable_$ac_useropt"
  906. "*) ;;
  907. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  908. ac_unrecognized_sep=', ';;
  909. esac
  910. eval enable_$ac_useropt=\$ac_optarg ;;
  911. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  912. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  913. | --exec | --exe | --ex)
  914. ac_prev=exec_prefix ;;
  915. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  916. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  917. | --exec=* | --exe=* | --ex=*)
  918. exec_prefix=$ac_optarg ;;
  919. -gas | --gas | --ga | --g)
  920. # Obsolete; use --with-gas.
  921. with_gas=yes ;;
  922. -help | --help | --hel | --he | -h)
  923. ac_init_help=long ;;
  924. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  925. ac_init_help=recursive ;;
  926. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  927. ac_init_help=short ;;
  928. -host | --host | --hos | --ho)
  929. ac_prev=host_alias ;;
  930. -host=* | --host=* | --hos=* | --ho=*)
  931. host_alias=$ac_optarg ;;
  932. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  933. ac_prev=htmldir ;;
  934. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  935. | --ht=*)
  936. htmldir=$ac_optarg ;;
  937. -includedir | --includedir | --includedi | --included | --include \
  938. | --includ | --inclu | --incl | --inc)
  939. ac_prev=includedir ;;
  940. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  941. | --includ=* | --inclu=* | --incl=* | --inc=*)
  942. includedir=$ac_optarg ;;
  943. -infodir | --infodir | --infodi | --infod | --info | --inf)
  944. ac_prev=infodir ;;
  945. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  946. infodir=$ac_optarg ;;
  947. -libdir | --libdir | --libdi | --libd)
  948. ac_prev=libdir ;;
  949. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  950. libdir=$ac_optarg ;;
  951. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  952. | --libexe | --libex | --libe)
  953. ac_prev=libexecdir ;;
  954. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  955. | --libexe=* | --libex=* | --libe=*)
  956. libexecdir=$ac_optarg ;;
  957. -localedir | --localedir | --localedi | --localed | --locale)
  958. ac_prev=localedir ;;
  959. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  960. localedir=$ac_optarg ;;
  961. -localstatedir | --localstatedir | --localstatedi | --localstated \
  962. | --localstate | --localstat | --localsta | --localst | --locals)
  963. ac_prev=localstatedir ;;
  964. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  965. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  966. localstatedir=$ac_optarg ;;
  967. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  968. ac_prev=mandir ;;
  969. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  970. mandir=$ac_optarg ;;
  971. -nfp | --nfp | --nf)
  972. # Obsolete; use --without-fp.
  973. with_fp=no ;;
  974. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  975. | --no-cr | --no-c | -n)
  976. no_create=yes ;;
  977. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  978. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  979. no_recursion=yes ;;
  980. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  981. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  982. | --oldin | --oldi | --old | --ol | --o)
  983. ac_prev=oldincludedir ;;
  984. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  985. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  986. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  987. oldincludedir=$ac_optarg ;;
  988. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  989. ac_prev=prefix ;;
  990. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  991. prefix=$ac_optarg ;;
  992. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  993. | --program-pre | --program-pr | --program-p)
  994. ac_prev=program_prefix ;;
  995. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  996. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  997. program_prefix=$ac_optarg ;;
  998. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  999. | --program-suf | --program-su | --program-s)
  1000. ac_prev=program_suffix ;;
  1001. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1002. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1003. program_suffix=$ac_optarg ;;
  1004. -program-transform-name | --program-transform-name \
  1005. | --program-transform-nam | --program-transform-na \
  1006. | --program-transform-n | --program-transform- \
  1007. | --program-transform | --program-transfor \
  1008. | --program-transfo | --program-transf \
  1009. | --program-trans | --program-tran \
  1010. | --progr-tra | --program-tr | --program-t)
  1011. ac_prev=program_transform_name ;;
  1012. -program-transform-name=* | --program-transform-name=* \
  1013. | --program-transform-nam=* | --program-transform-na=* \
  1014. | --program-transform-n=* | --program-transform-=* \
  1015. | --program-transform=* | --program-transfor=* \
  1016. | --program-transfo=* | --program-transf=* \
  1017. | --program-trans=* | --program-tran=* \
  1018. | --progr-tra=* | --program-tr=* | --program-t=*)
  1019. program_transform_name=$ac_optarg ;;
  1020. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1021. ac_prev=pdfdir ;;
  1022. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1023. pdfdir=$ac_optarg ;;
  1024. -psdir | --psdir | --psdi | --psd | --ps)
  1025. ac_prev=psdir ;;
  1026. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1027. psdir=$ac_optarg ;;
  1028. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1029. | -silent | --silent | --silen | --sile | --sil)
  1030. silent=yes ;;
  1031. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1032. ac_prev=sbindir ;;
  1033. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1034. | --sbi=* | --sb=*)
  1035. sbindir=$ac_optarg ;;
  1036. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1037. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1038. | --sharedst | --shareds | --shared | --share | --shar \
  1039. | --sha | --sh)
  1040. ac_prev=sharedstatedir ;;
  1041. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1042. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1043. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1044. | --sha=* | --sh=*)
  1045. sharedstatedir=$ac_optarg ;;
  1046. -site | --site | --sit)
  1047. ac_prev=site ;;
  1048. -site=* | --site=* | --sit=*)
  1049. site=$ac_optarg ;;
  1050. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1051. ac_prev=srcdir ;;
  1052. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1053. srcdir=$ac_optarg ;;
  1054. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1055. | --syscon | --sysco | --sysc | --sys | --sy)
  1056. ac_prev=sysconfdir ;;
  1057. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1058. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1059. sysconfdir=$ac_optarg ;;
  1060. -target | --target | --targe | --targ | --tar | --ta | --t)
  1061. ac_prev=target_alias ;;
  1062. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1063. target_alias=$ac_optarg ;;
  1064. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1065. verbose=yes ;;
  1066. -version | --version | --versio | --versi | --vers | -V)
  1067. ac_init_version=: ;;
  1068. -with-* | --with-*)
  1069. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1070. # Reject names that are not valid shell variable names.
  1071. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1072. as_fn_error "invalid package name: $ac_useropt"
  1073. ac_useropt_orig=$ac_useropt
  1074. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1075. case $ac_user_opts in
  1076. *"
  1077. "with_$ac_useropt"
  1078. "*) ;;
  1079. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1080. ac_unrecognized_sep=', ';;
  1081. esac
  1082. eval with_$ac_useropt=\$ac_optarg ;;
  1083. -without-* | --without-*)
  1084. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1085. # Reject names that are not valid shell variable names.
  1086. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1087. as_fn_error "invalid package name: $ac_useropt"
  1088. ac_useropt_orig=$ac_useropt
  1089. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1090. case $ac_user_opts in
  1091. *"
  1092. "with_$ac_useropt"
  1093. "*) ;;
  1094. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1095. ac_unrecognized_sep=', ';;
  1096. esac
  1097. eval with_$ac_useropt=no ;;
  1098. --x)
  1099. # Obsolete; use --with-x.
  1100. with_x=yes ;;
  1101. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1102. | --x-incl | --x-inc | --x-in | --x-i)
  1103. ac_prev=x_includes ;;
  1104. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1105. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1106. x_includes=$ac_optarg ;;
  1107. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1108. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1109. ac_prev=x_libraries ;;
  1110. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1111. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1112. x_libraries=$ac_optarg ;;
  1113. -*) as_fn_error "unrecognized option: \`$ac_option'
  1114. Try \`$0 --help' for more information."
  1115. ;;
  1116. *=*)
  1117. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1118. # Reject names that are not valid shell variable names.
  1119. case $ac_envvar in #(
  1120. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1121. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1122. esac
  1123. eval $ac_envvar=\$ac_optarg
  1124. export $ac_envvar ;;
  1125. *)
  1126. # FIXME: should be removed in autoconf 3.0.
  1127. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1128. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1129. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1130. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1131. ;;
  1132. esac
  1133. done
  1134. if test -n "$ac_prev"; then
  1135. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1136. as_fn_error "missing argument to $ac_option"
  1137. fi
  1138. if test -n "$ac_unrecognized_opts"; then
  1139. case $enable_option_checking in
  1140. no) ;;
  1141. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1142. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1143. esac
  1144. fi
  1145. # Check all directory arguments for consistency.
  1146. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1147. datadir sysconfdir sharedstatedir localstatedir includedir \
  1148. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1149. libdir localedir mandir
  1150. do
  1151. eval ac_val=\$$ac_var
  1152. # Remove trailing slashes.
  1153. case $ac_val in
  1154. */ )
  1155. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1156. eval $ac_var=\$ac_val;;
  1157. esac
  1158. # Be sure to have absolute directory names.
  1159. case $ac_val in
  1160. [\\/$]* | ?:[\\/]* ) continue;;
  1161. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1162. esac
  1163. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1164. done
  1165. # There might be people who depend on the old broken behavior: `$host'
  1166. # used to hold the argument of --host etc.
  1167. # FIXME: To remove some day.
  1168. build=$build_alias
  1169. host=$host_alias
  1170. target=$target_alias
  1171. # FIXME: To remove some day.
  1172. if test "x$host_alias" != x; then
  1173. if test "x$build_alias" = x; then
  1174. cross_compiling=maybe
  1175. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1176. If a cross compiler is detected then cross compile mode will be used." >&2
  1177. elif test "x$build_alias" != "x$host_alias"; then
  1178. cross_compiling=yes
  1179. fi
  1180. fi
  1181. ac_tool_prefix=
  1182. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1183. test "$silent" = yes && exec 6>/dev/null
  1184. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1185. ac_ls_di=`ls -di .` &&
  1186. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1187. as_fn_error "working directory cannot be determined"
  1188. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1189. as_fn_error "pwd does not report name of working directory"
  1190. # Find the source files, if location was not specified.
  1191. if test -z "$srcdir"; then
  1192. ac_srcdir_defaulted=yes
  1193. # Try the directory containing this script, then the parent directory.
  1194. ac_confdir=`$as_dirname -- "$as_myself" ||
  1195. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1196. X"$as_myself" : 'X\(//\)[^/]' \| \
  1197. X"$as_myself" : 'X\(//\)$' \| \
  1198. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1199. $as_echo X"$as_myself" |
  1200. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1201. s//\1/
  1202. q
  1203. }
  1204. /^X\(\/\/\)[^/].*/{
  1205. s//\1/
  1206. q
  1207. }
  1208. /^X\(\/\/\)$/{
  1209. s//\1/
  1210. q
  1211. }
  1212. /^X\(\/\).*/{
  1213. s//\1/
  1214. q
  1215. }
  1216. s/.*/./; q'`
  1217. srcdir=$ac_confdir
  1218. if test ! -r "$srcdir/$ac_unique_file"; then
  1219. srcdir=..
  1220. fi
  1221. else
  1222. ac_srcdir_defaulted=no
  1223. fi
  1224. if test ! -r "$srcdir/$ac_unique_file"; then
  1225. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1226. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1227. fi
  1228. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1229. ac_abs_confdir=`(
  1230. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1231. pwd)`
  1232. # When building in place, set srcdir=.
  1233. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1234. srcdir=.
  1235. fi
  1236. # Remove unnecessary trailing slashes from srcdir.
  1237. # Double slashes in file names in object file debugging info
  1238. # mess up M-x gdb in Emacs.
  1239. case $srcdir in
  1240. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1241. esac
  1242. case $srcdir in
  1243. *" "*)
  1244. as_fn_error "path to source, $srcdir, contains spaces"
  1245. ;;
  1246. esac
  1247. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1248. for ac_var in $ac_precious_vars; do
  1249. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1250. eval ac_env_${ac_var}_value=\$${ac_var}
  1251. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1253. done
  1254. #
  1255. # Report the --help message.
  1256. #
  1257. if test "$ac_init_help" = "long"; then
  1258. # Omit some internal or obsolete options to make the list less imposing.
  1259. # This message is too long to be a string in the A/UX 3.1 sh.
  1260. cat <<_ACEOF
  1261. \`configure' configures this package to adapt to many kinds of systems.
  1262. Usage: $0 [OPTION]... [VAR=VALUE]...
  1263. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1264. VAR=VALUE. See below for descriptions of some of the useful variables.
  1265. Defaults for the options are specified in brackets.
  1266. Configuration:
  1267. -h, --help display this help and exit
  1268. --help=short display options specific to this package
  1269. --help=recursive display the short help of all the included packages
  1270. -V, --version display version information and exit
  1271. -q, --quiet, --silent do not print \`checking...' messages
  1272. --cache-file=FILE cache test results in FILE [disabled]
  1273. -C, --config-cache alias for \`--cache-file=config.cache'
  1274. -n, --no-create do not create output files
  1275. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1276. Installation directories:
  1277. --prefix=PREFIX install architecture-independent files in PREFIX
  1278. [$ac_default_prefix]
  1279. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1280. [PREFIX]
  1281. By default, \`make install' will install all the files in
  1282. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1283. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1284. for instance \`--prefix=\$HOME'.
  1285. For better control, use the options below.
  1286. Fine tuning of the installation directories:
  1287. --bindir=DIR user executables [EPREFIX/bin]
  1288. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1289. --libexecdir=DIR program executables [EPREFIX/libexec]
  1290. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1291. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1292. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1293. --libdir=DIR object code libraries [EPREFIX/lib]
  1294. --includedir=DIR C header files [PREFIX/include]
  1295. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1296. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1297. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1298. --infodir=DIR info documentation [DATAROOTDIR/info]
  1299. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1300. --mandir=DIR man documentation [DATAROOTDIR/man]
  1301. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1302. --htmldir=DIR html documentation [DOCDIR]
  1303. --dvidir=DIR dvi documentation [DOCDIR]
  1304. --pdfdir=DIR pdf documentation [DOCDIR]
  1305. --psdir=DIR ps documentation [DOCDIR]
  1306. _ACEOF
  1307. cat <<\_ACEOF
  1308. Program names:
  1309. --program-prefix=PREFIX prepend PREFIX to installed program names
  1310. --program-suffix=SUFFIX append SUFFIX to installed program names
  1311. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1312. System types:
  1313. --build=BUILD configure for building on BUILD [guessed]
  1314. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1315. --target=TARGET configure for building compilers for TARGET [HOST]
  1316. _ACEOF
  1317. fi
  1318. if test -n "$ac_init_help"; then
  1319. cat <<\_ACEOF
  1320. Optional Features:
  1321. --disable-option-checking ignore unrecognized --enable/--with options
  1322. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1323. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1324. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1325. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1326. --disable-libquadmath do not build libquadmath directory
  1327. --disable-libquadmath-support
  1328. disable libquadmath support for Fortran
  1329. --enable-libada build libada directory
  1330. --enable-libssp build libssp directory
  1331. --enable-build-with-cxx build with C++ compiler instead of C compiler
  1332. --disable-ppl-version-check
  1333. disable check for PPL version
  1334. --enable-cloog-backend[=BACKEND]
  1335. set the CLooG BACKEND used to either isl, ppl or
  1336. ppl-legacy (default)
  1337. --disable-cloog-version-check
  1338. disable check for CLooG version
  1339. --enable-lto enable link time optimization support
  1340. --enable-stage1-languages[=all]
  1341. choose additional languages to build during stage1.
  1342. Mostly useful for compiler development
  1343. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1344. Objective-C runtime
  1345. --enable-bootstrap enable bootstrapping [yes if native build]
  1346. --enable-serial-[{host,target,build}-]configure
  1347. force sequential configuration of sub-packages for
  1348. the host, target or build machine, or all
  1349. sub-packages
  1350. --enable-maintainer-mode
  1351. enable make rules and dependencies not useful (and
  1352. sometimes confusing) to the casual installer
  1353. --enable-stage1-checking[=all]
  1354. choose additional checking for stage1 of the
  1355. compiler
  1356. --enable-werror enable -Werror in bootstrap stage2 and later
  1357. Optional Packages:
  1358. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1359. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1360. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1361. --with-mpc=PATH specify prefix directory for installed MPC package.
  1362. Equivalent to --with-mpc-include=PATH/include plus
  1363. --with-mpc-lib=PATH/lib
  1364. --with-mpc-include=PATH specify directory for installed MPC include files
  1365. --with-mpc-lib=PATH specify directory for the installed MPC library
  1366. --with-mpfr-dir=PATH this option has been REMOVED
  1367. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1368. Equivalent to --with-mpfr-include=PATH/include plus
  1369. --with-mpfr-lib=PATH/lib
  1370. --with-mpfr-include=PATH
  1371. specify directory for installed MPFR include files
  1372. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1373. --with-gmp-dir=PATH this option has been REMOVED
  1374. --with-gmp=PATH specify prefix directory for the installed GMP
  1375. package. Equivalent to
  1376. --with-gmp-include=PATH/include plus
  1377. --with-gmp-lib=PATH/lib
  1378. --with-gmp-include=PATH specify directory for installed GMP include files
  1379. --with-gmp-lib=PATH specify directory for the installed GMP library
  1380. --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
  1381. linking with PPL
  1382. --with-stage1-ldflags=FLAGS
  1383. linker flags for stage1
  1384. --with-stage1-libs=LIBS libraries for stage1
  1385. --with-boot-libs=LIBS libraries for stage2 and later
  1386. --with-boot-ldflags=FLAGS
  1387. linker flags for stage2 and later
  1388. --with-ppl=PATH specify prefix directory for the installed PPL
  1389. package. Equivalent to
  1390. --with-ppl-include=PATH/include plus
  1391. --with-ppl-lib=PATH/lib
  1392. --with-ppl-include=PATH specify directory for installed PPL include files
  1393. --with-ppl-lib=PATH specify directory for the installed PPL library
  1394. --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
  1395. package. Equivalent to
  1396. --with-cloog-include=PATH/include plus
  1397. --with-cloog-lib=PATH/lib
  1398. --with-cloog-include=PATH
  1399. Specify directory for installed CLooG include files
  1400. --with-cloog-lib=PATH Specify the directory for the installed CLooG
  1401. library
  1402. --with-build-sysroot=SYSROOT
  1403. use sysroot as the system root during the build
  1404. --with-debug-prefix-map='A=B C=D ...'
  1405. map A to B, C to D ... in debug information
  1406. --with-build-config='NAME NAME2...'
  1407. use config/NAME.mk build configuration
  1408. --with-build-time-tools=PATH
  1409. use given path to find target tools during the build
  1410. Some influential environment variables:
  1411. CC C compiler command
  1412. CFLAGS C compiler flags
  1413. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1414. nonstandard directory <lib dir>
  1415. LIBS libraries to pass to the linker, e.g. -l<library>
  1416. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1417. you have headers in a nonstandard directory <include dir>
  1418. CXX C++ compiler command
  1419. CXXFLAGS C++ compiler flags
  1420. build_configargs
  1421. additional configure arguments for build directories
  1422. host_configargs
  1423. additional configure arguments for host directories
  1424. target_configargs
  1425. additional configure arguments for target directories
  1426. AR AR for the host
  1427. AS AS for the host
  1428. DLLTOOL DLLTOOL for the host
  1429. LD LD for the host
  1430. LIPO LIPO for the host
  1431. NM NM for the host
  1432. RANLIB RANLIB for the host
  1433. STRIP STRIP for the host
  1434. WINDRES WINDRES for the host
  1435. WINDMC WINDMC for the host
  1436. OBJCOPY OBJCOPY for the host
  1437. OBJDUMP OBJDUMP for the host
  1438. CC_FOR_TARGET
  1439. CC for the target
  1440. CXX_FOR_TARGET
  1441. CXX for the target
  1442. GCC_FOR_TARGET
  1443. GCC for the target
  1444. GCJ_FOR_TARGET
  1445. GCJ for the target
  1446. GFORTRAN_FOR_TARGET
  1447. GFORTRAN for the target
  1448. GOC_FOR_TARGET
  1449. GOC for the target
  1450. AR_FOR_TARGET
  1451. AR for the target
  1452. AS_FOR_TARGET
  1453. AS for the target
  1454. DLLTOOL_FOR_TARGET
  1455. DLLTOOL for the target
  1456. LD_FOR_TARGET
  1457. LD for the target
  1458. LIPO_FOR_TARGET
  1459. LIPO for the target
  1460. NM_FOR_TARGET
  1461. NM for the target
  1462. OBJDUMP_FOR_TARGET
  1463. OBJDUMP for the target
  1464. RANLIB_FOR_TARGET
  1465. RANLIB for the target
  1466. STRIP_FOR_TARGET
  1467. STRIP for the target
  1468. WINDRES_FOR_TARGET
  1469. WINDRES for the target
  1470. WINDMC_FOR_TARGET
  1471. WINDMC for the target
  1472. Use these variables to override the choices made by `configure' or to help
  1473. it to find libraries and programs with nonstandard names/locations.
  1474. Report bugs to the package provider.
  1475. _ACEOF
  1476. ac_status=$?
  1477. fi
  1478. if test "$ac_init_help" = "recursive"; then
  1479. # If there are subdirs, report their specific --help.
  1480. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1481. test -d "$ac_dir" ||
  1482. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1483. continue
  1484. ac_builddir=.
  1485. case "$ac_dir" in
  1486. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1487. *)
  1488. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1489. # A ".." for each directory in $ac_dir_suffix.
  1490. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1491. case $ac_top_builddir_sub in
  1492. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1493. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1494. esac ;;
  1495. esac
  1496. ac_abs_top_builddir=$ac_pwd
  1497. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1498. # for backward compatibility:
  1499. ac_top_builddir=$ac_top_build_prefix
  1500. case $srcdir in
  1501. .) # We are building in place.
  1502. ac_srcdir=.
  1503. ac_top_srcdir=$ac_top_builddir_sub
  1504. ac_abs_top_srcdir=$ac_pwd ;;
  1505. [\\/]* | ?:[\\/]* ) # Absolute name.
  1506. ac_srcdir=$srcdir$ac_dir_suffix;
  1507. ac_top_srcdir=$srcdir
  1508. ac_abs_top_srcdir=$srcdir ;;
  1509. *) # Relative name.
  1510. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1511. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1512. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1513. esac
  1514. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1515. cd "$ac_dir" || { ac_status=$?; continue; }
  1516. # Check for guested configure.
  1517. if test -f "$ac_srcdir/configure.gnu"; then
  1518. echo &&
  1519. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1520. elif test -f "$ac_srcdir/configure"; then
  1521. echo &&
  1522. $SHELL "$ac_srcdir/configure" --help=recursive
  1523. else
  1524. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1525. fi || ac_status=$?
  1526. cd "$ac_pwd" || { ac_status=$?; break; }
  1527. done
  1528. fi
  1529. test -n "$ac_init_help" && exit $ac_status
  1530. if $ac_init_version; then
  1531. cat <<\_ACEOF
  1532. configure
  1533. generated by GNU Autoconf 2.64
  1534. Copyright (C) 2009 Free Software Foundation, Inc.
  1535. This configure script is free software; the Free Software Foundation
  1536. gives unlimited permission to copy, distribute and modify it.
  1537. _ACEOF
  1538. exit
  1539. fi
  1540. ## ------------------------ ##
  1541. ## Autoconf initialization. ##
  1542. ## ------------------------ ##
  1543. # ac_fn_c_try_compile LINENO
  1544. # --------------------------
  1545. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1546. ac_fn_c_try_compile ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. rm -f conftest.$ac_objext
  1550. if { { ac_try="$ac_compile"
  1551. case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_compile") 2>conftest.err
  1558. ac_status=$?
  1559. if test -s conftest.err; then
  1560. grep -v '^ *+' conftest.err >conftest.er1
  1561. cat conftest.er1 >&5
  1562. mv -f conftest.er1 conftest.err
  1563. fi
  1564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; } && {
  1566. test -z "$ac_c_werror_flag" ||
  1567. test ! -s conftest.err
  1568. } && test -s conftest.$ac_objext; then :
  1569. ac_retval=0
  1570. else
  1571. $as_echo "$as_me: failed program was:" >&5
  1572. sed 's/^/| /' conftest.$ac_ext >&5
  1573. ac_retval=1
  1574. fi
  1575. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1576. return $ac_retval
  1577. } # ac_fn_c_try_compile
  1578. # ac_fn_cxx_try_compile LINENO
  1579. # ----------------------------
  1580. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1581. ac_fn_cxx_try_compile ()
  1582. {
  1583. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1584. rm -f conftest.$ac_objext
  1585. if { { ac_try="$ac_compile"
  1586. case "(($ac_try" in
  1587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1588. *) ac_try_echo=$ac_try;;
  1589. esac
  1590. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1591. $as_echo "$ac_try_echo"; } >&5
  1592. (eval "$ac_compile") 2>conftest.err
  1593. ac_status=$?
  1594. if test -s conftest.err; then
  1595. grep -v '^ *+' conftest.err >conftest.er1
  1596. cat conftest.er1 >&5
  1597. mv -f conftest.er1 conftest.err
  1598. fi
  1599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1600. test $ac_status = 0; } && {
  1601. test -z "$ac_cxx_werror_flag" ||
  1602. test ! -s conftest.err
  1603. } && test -s conftest.$ac_objext; then :
  1604. ac_retval=0
  1605. else
  1606. $as_echo "$as_me: failed program was:" >&5
  1607. sed 's/^/| /' conftest.$ac_ext >&5
  1608. ac_retval=1
  1609. fi
  1610. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1611. return $ac_retval
  1612. } # ac_fn_cxx_try_compile
  1613. # ac_fn_c_try_link LINENO
  1614. # -----------------------
  1615. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1616. ac_fn_c_try_link ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. rm -f conftest.$ac_objext conftest$ac_exeext
  1620. if { { ac_try="$ac_link"
  1621. case "(($ac_try" in
  1622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1623. *) ac_try_echo=$ac_try;;
  1624. esac
  1625. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1626. $as_echo "$ac_try_echo"; } >&5
  1627. (eval "$ac_link") 2>conftest.err
  1628. ac_status=$?
  1629. if test -s conftest.err; then
  1630. grep -v '^ *+' conftest.err >conftest.er1
  1631. cat conftest.er1 >&5
  1632. mv -f conftest.er1 conftest.err
  1633. fi
  1634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1635. test $ac_status = 0; } && {
  1636. test -z "$ac_c_werror_flag" ||
  1637. test ! -s conftest.err
  1638. } && test -s conftest$ac_exeext && {
  1639. test "$cross_compiling" = yes ||
  1640. $as_test_x conftest$ac_exeext
  1641. }; then :
  1642. ac_retval=0
  1643. else
  1644. $as_echo "$as_me: failed program was:" >&5
  1645. sed 's/^/| /' conftest.$ac_ext >&5
  1646. ac_retval=1
  1647. fi
  1648. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1649. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1650. # interfere with the next link command; also delete a directory that is
  1651. # left behind by Apple's compiler. We do this before executing the actions.
  1652. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1653. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1654. return $ac_retval
  1655. } # ac_fn_c_try_link
  1656. cat >config.log <<_ACEOF
  1657. This file contains any messages produced by compilers while
  1658. running configure, to aid debugging if configure makes a mistake.
  1659. It was created by $as_me, which was
  1660. generated by GNU Autoconf 2.64. Invocation command line was
  1661. $ $0 $@
  1662. _ACEOF
  1663. exec 5>>config.log
  1664. {
  1665. cat <<_ASUNAME
  1666. ## --------- ##
  1667. ## Platform. ##
  1668. ## --------- ##
  1669. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1670. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1671. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1672. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1673. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1674. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1675. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1676. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1677. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1678. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1679. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1680. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1681. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1682. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1683. _ASUNAME
  1684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1685. for as_dir in $PATH
  1686. do
  1687. IFS=$as_save_IFS
  1688. test -z "$as_dir" && as_dir=.
  1689. $as_echo "PATH: $as_dir"
  1690. done
  1691. IFS=$as_save_IFS
  1692. } >&5
  1693. cat >&5 <<_ACEOF
  1694. ## ----------- ##
  1695. ## Core tests. ##
  1696. ## ----------- ##
  1697. _ACEOF
  1698. # Keep a trace of the command line.
  1699. # Strip out --no-create and --no-recursion so they do not pile up.
  1700. # Strip out --silent because we don't want to record it for future runs.
  1701. # Also quote any args containing shell meta-characters.
  1702. # Make two passes to allow for proper duplicate-argument suppression.
  1703. ac_configure_args=
  1704. ac_configure_args0=
  1705. ac_configure_args1=
  1706. ac_must_keep_next=false
  1707. for ac_pass in 1 2
  1708. do
  1709. for ac_arg
  1710. do
  1711. case $ac_arg in
  1712. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1713. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1714. | -silent | --silent | --silen | --sile | --sil)
  1715. continue ;;
  1716. *\'*)
  1717. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1718. esac
  1719. case $ac_pass in
  1720. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1721. 2)
  1722. as_fn_append ac_configure_args1 " '$ac_arg'"
  1723. if test $ac_must_keep_next = true; then
  1724. ac_must_keep_next=false # Got value, back to normal.
  1725. else
  1726. case $ac_arg in
  1727. *=* | --config-cache | -C | -disable-* | --disable-* \
  1728. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1729. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1730. | -with-* | --with-* | -without-* | --without-* | --x)
  1731. case "$ac_configure_args0 " in
  1732. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1733. esac
  1734. ;;
  1735. -* ) ac_must_keep_next=true ;;
  1736. esac
  1737. fi
  1738. as_fn_append ac_configure_args " '$ac_arg'"
  1739. ;;
  1740. esac
  1741. done
  1742. done
  1743. { ac_configure_args0=; unset ac_configure_args0;}
  1744. { ac_configure_args1=; unset ac_configure_args1;}
  1745. # When interrupted or exit'd, cleanup temporary files, and complete
  1746. # config.log. We remove comments because anyway the quotes in there
  1747. # would cause problems or look ugly.
  1748. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1749. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1750. trap 'exit_status=$?
  1751. # Save into config.log some information that might help in debugging.
  1752. {
  1753. echo
  1754. cat <<\_ASBOX
  1755. ## ---------------- ##
  1756. ## Cache variables. ##
  1757. ## ---------------- ##
  1758. _ASBOX
  1759. echo
  1760. # The following way of writing the cache mishandles newlines in values,
  1761. (
  1762. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1763. eval ac_val=\$$ac_var
  1764. case $ac_val in #(
  1765. *${as_nl}*)
  1766. case $ac_var in #(
  1767. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1768. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1769. esac
  1770. case $ac_var in #(
  1771. _ | IFS | as_nl) ;; #(
  1772. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1773. *) { eval $ac_var=; unset $ac_var;} ;;
  1774. esac ;;
  1775. esac
  1776. done
  1777. (set) 2>&1 |
  1778. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1779. *${as_nl}ac_space=\ *)
  1780. sed -n \
  1781. "s/'\''/'\''\\\\'\'''\''/g;
  1782. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1783. ;; #(
  1784. *)
  1785. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1786. ;;
  1787. esac |
  1788. sort
  1789. )
  1790. echo
  1791. cat <<\_ASBOX
  1792. ## ----------------- ##
  1793. ## Output variables. ##
  1794. ## ----------------- ##
  1795. _ASBOX
  1796. echo
  1797. for ac_var in $ac_subst_vars
  1798. do
  1799. eval ac_val=\$$ac_var
  1800. case $ac_val in
  1801. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1802. esac
  1803. $as_echo "$ac_var='\''$ac_val'\''"
  1804. done | sort
  1805. echo
  1806. if test -n "$ac_subst_files"; then
  1807. cat <<\_ASBOX
  1808. ## ------------------- ##
  1809. ## File substitutions. ##
  1810. ## ------------------- ##
  1811. _ASBOX
  1812. echo
  1813. for ac_var in $ac_subst_files
  1814. do
  1815. eval ac_val=\$$ac_var
  1816. case $ac_val in
  1817. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1818. esac
  1819. $as_echo "$ac_var='\''$ac_val'\''"
  1820. done | sort
  1821. echo
  1822. fi
  1823. if test -s confdefs.h; then
  1824. cat <<\_ASBOX
  1825. ## ----------- ##
  1826. ## confdefs.h. ##
  1827. ## ----------- ##
  1828. _ASBOX
  1829. echo
  1830. cat confdefs.h
  1831. echo
  1832. fi
  1833. test "$ac_signal" != 0 &&
  1834. $as_echo "$as_me: caught signal $ac_signal"
  1835. $as_echo "$as_me: exit $exit_status"
  1836. } >&5
  1837. rm -f core *.core core.conftest.* &&
  1838. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1839. exit $exit_status
  1840. ' 0
  1841. for ac_signal in 1 2 13 15; do
  1842. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1843. done
  1844. ac_signal=0
  1845. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1846. rm -f -r conftest* confdefs.h
  1847. $as_echo "/* confdefs.h */" > confdefs.h
  1848. # Predefined preprocessor variables.
  1849. cat >>confdefs.h <<_ACEOF
  1850. #define PACKAGE_NAME "$PACKAGE_NAME"
  1851. _ACEOF
  1852. cat >>confdefs.h <<_ACEOF
  1853. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1854. _ACEOF
  1855. cat >>confdefs.h <<_ACEOF
  1856. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1857. _ACEOF
  1858. cat >>confdefs.h <<_ACEOF
  1859. #define PACKAGE_STRING "$PACKAGE_STRING"
  1860. _ACEOF
  1861. cat >>confdefs.h <<_ACEOF
  1862. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1863. _ACEOF
  1864. cat >>confdefs.h <<_ACEOF
  1865. #define PACKAGE_URL "$PACKAGE_URL"
  1866. _ACEOF
  1867. # Let the site file select an alternate cache file if it wants to.
  1868. # Prefer an explicitly selected file to automatically selected ones.
  1869. ac_site_file1=NONE
  1870. ac_site_file2=NONE
  1871. if test -n "$CONFIG_SITE"; then
  1872. ac_site_file1=$CONFIG_SITE
  1873. elif test "x$prefix" != xNONE; then
  1874. ac_site_file1=$prefix/share/config.site
  1875. ac_site_file2=$prefix/etc/config.site
  1876. else
  1877. ac_site_file1=$ac_default_prefix/share/config.site
  1878. ac_site_file2=$ac_default_prefix/etc/config.site
  1879. fi
  1880. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1881. do
  1882. test "x$ac_site_file" = xNONE && continue
  1883. if test -r "$ac_site_file"; then
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1885. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1886. sed 's/^/| /' "$ac_site_file" >&5
  1887. . "$ac_site_file"
  1888. fi
  1889. done
  1890. if test -r "$cache_file"; then
  1891. # Some versions of bash will fail to source /dev/null (special
  1892. # files actually), so we avoid doing that.
  1893. if test -f "$cache_file"; then
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1895. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1896. case $cache_file in
  1897. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1898. *) . "./$cache_file";;
  1899. esac
  1900. fi
  1901. else
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1903. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1904. >$cache_file
  1905. fi
  1906. # Check that the precious variables saved in the cache have kept the same
  1907. # value.
  1908. ac_cache_corrupted=false
  1909. for ac_var in $ac_precious_vars; do
  1910. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1911. eval ac_new_set=\$ac_env_${ac_var}_set
  1912. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1913. eval ac_new_val=\$ac_env_${ac_var}_value
  1914. case $ac_old_set,$ac_new_set in
  1915. set,)
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1917. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1918. ac_cache_corrupted=: ;;
  1919. ,set)
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1921. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1922. ac_cache_corrupted=: ;;
  1923. ,);;
  1924. *)
  1925. if test "x$ac_old_val" != "x$ac_new_val"; then
  1926. # differences in whitespace do not lead to failure.
  1927. ac_old_val_w=`echo x $ac_old_val`
  1928. ac_new_val_w=`echo x $ac_new_val`
  1929. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1931. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1932. ac_cache_corrupted=:
  1933. else
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1935. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1936. eval $ac_var=\$ac_old_val
  1937. fi
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1939. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1941. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1942. fi;;
  1943. esac
  1944. # Pass precious variables to config.status.
  1945. if test "$ac_new_set" = set; then
  1946. case $ac_new_val in
  1947. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1948. *) ac_arg=$ac_var=$ac_new_val ;;
  1949. esac
  1950. case " $ac_configure_args " in
  1951. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1952. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1953. esac
  1954. fi
  1955. done
  1956. if $ac_cache_corrupted; then
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1958. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1960. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1961. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1962. fi
  1963. ## -------------------- ##
  1964. ## Main body of script. ##
  1965. ## -------------------- ##
  1966. ac_ext=c
  1967. ac_cpp='$CPP $CPPFLAGS'
  1968. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1969. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1970. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1971. progname=$0
  1972. # if PWD already has a value, it is probably wrong.
  1973. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  1974. # Export original configure arguments for use by sub-configures.
  1975. # Quote arguments with shell meta charatcers.
  1976. TOPLEVEL_CONFIGURE_ARGUMENTS=
  1977. set -- "$progname" "$@"
  1978. for ac_arg
  1979. do
  1980. case "$ac_arg" in
  1981. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  1982. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  1983. # if the argument is of the form -foo=baz, quote the baz part only
  1984. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  1985. *) ;;
  1986. esac
  1987. # Add the quoted argument to the list.
  1988. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  1989. done
  1990. if test "$silent" = yes; then
  1991. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  1992. fi
  1993. # Remove the initial space we just introduced and, as these will be
  1994. # expanded by make, quote '$'.
  1995. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  1996. # Find the build, host, and target systems.
  1997. ac_aux_dir=
  1998. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1999. for ac_t in install-sh install.sh shtool; do
  2000. if test -f "$ac_dir/$ac_t"; then
  2001. ac_aux_dir=$ac_dir
  2002. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2003. break 2
  2004. fi
  2005. done
  2006. done
  2007. if test -z "$ac_aux_dir"; then
  2008. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2009. fi
  2010. # These three variables are undocumented and unsupported,
  2011. # and are intended to be withdrawn in a future Autoconf release.
  2012. # They can cause serious problems if a builder's source tree is in a directory
  2013. # whose full name contains unusual characters.
  2014. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2015. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2016. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2017. # Make sure we can run config.sub.
  2018. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2019. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2021. $as_echo_n "checking build system type... " >&6; }
  2022. if test "${ac_cv_build+set}" = set; then :
  2023. $as_echo_n "(cached) " >&6
  2024. else
  2025. ac_build_alias=$build_alias
  2026. test "x$ac_build_alias" = x &&
  2027. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2028. test "x$ac_build_alias" = x &&
  2029. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2030. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2031. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2032. fi
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2034. $as_echo "$ac_cv_build" >&6; }
  2035. case $ac_cv_build in
  2036. *-*-*) ;;
  2037. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2038. esac
  2039. build=$ac_cv_build
  2040. ac_save_IFS=$IFS; IFS='-'
  2041. set x $ac_cv_build
  2042. shift
  2043. build_cpu=$1
  2044. build_vendor=$2
  2045. shift; shift
  2046. # Remember, the first character of IFS is used to create $*,
  2047. # except with old shells:
  2048. build_os=$*
  2049. IFS=$ac_save_IFS
  2050. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2051. case ${build_alias} in
  2052. "") build_noncanonical=${build} ;;
  2053. *) build_noncanonical=${build_alias} ;;
  2054. esac
  2055. case ${host_alias} in
  2056. "") host_noncanonical=${build_noncanonical} ;;
  2057. *) host_noncanonical=${host_alias} ;;
  2058. esac
  2059. case ${target_alias} in
  2060. "") target_noncanonical=${host_noncanonical} ;;
  2061. *) target_noncanonical=${target_alias} ;;
  2062. esac
  2063. test "$host_noncanonical" = "$target_noncanonical" &&
  2064. test "$program_prefix$program_suffix$program_transform_name" = \
  2065. NONENONEs,x,x, &&
  2066. program_transform_name=s,y,y,
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2068. $as_echo_n "checking host system type... " >&6; }
  2069. if test "${ac_cv_host+set}" = set; then :
  2070. $as_echo_n "(cached) " >&6
  2071. else
  2072. if test "x$host_alias" = x; then
  2073. ac_cv_host=$ac_cv_build
  2074. else
  2075. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2076. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2077. fi
  2078. fi
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2080. $as_echo "$ac_cv_host" >&6; }
  2081. case $ac_cv_host in
  2082. *-*-*) ;;
  2083. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2084. esac
  2085. host=$ac_cv_host
  2086. ac_save_IFS=$IFS; IFS='-'
  2087. set x $ac_cv_host
  2088. shift
  2089. host_cpu=$1
  2090. host_vendor=$2
  2091. shift; shift
  2092. # Remember, the first character of IFS is used to create $*,
  2093. # except with old shells:
  2094. host_os=$*
  2095. IFS=$ac_save_IFS
  2096. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2098. $as_echo_n "checking target system type... " >&6; }
  2099. if test "${ac_cv_target+set}" = set; then :
  2100. $as_echo_n "(cached) " >&6
  2101. else
  2102. if test "x$target_alias" = x; then
  2103. ac_cv_target=$ac_cv_host
  2104. else
  2105. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2106. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2107. fi
  2108. fi
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2110. $as_echo "$ac_cv_target" >&6; }
  2111. case $ac_cv_target in
  2112. *-*-*) ;;
  2113. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2114. esac
  2115. target=$ac_cv_target
  2116. ac_save_IFS=$IFS; IFS='-'
  2117. set x $ac_cv_target
  2118. shift
  2119. target_cpu=$1
  2120. target_vendor=$2
  2121. shift; shift
  2122. # Remember, the first character of IFS is used to create $*,
  2123. # except with old shells:
  2124. target_os=$*
  2125. IFS=$ac_save_IFS
  2126. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2127. # The aliases save the names the user supplied, while $host etc.
  2128. # will get canonicalized.
  2129. test -n "$target_alias" &&
  2130. test "$program_prefix$program_suffix$program_transform_name" = \
  2131. NONENONEs,x,x, &&
  2132. program_prefix=${target_alias}-
  2133. test "$program_prefix" != NONE &&
  2134. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2135. # Use a double $ so make ignores it.
  2136. test "$program_suffix" != NONE &&
  2137. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2138. # Double any \ or $.
  2139. # By default was `s,x,x', remove it if useless.
  2140. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2141. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2142. # Get 'install' or 'install-sh' and its variants.
  2143. # Find a good install program. We prefer a C program (faster),
  2144. # so one script is as good as another. But avoid the broken or
  2145. # incompatible versions:
  2146. # SysV /etc/install, /usr/sbin/install
  2147. # SunOS /usr/etc/install
  2148. # IRIX /sbin/install
  2149. # AIX /bin/install
  2150. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2151. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2152. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2153. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2154. # OS/2's system install, which has a completely different semantic
  2155. # ./install, which can be erroneously created by make from ./install.sh.
  2156. # Reject install programs that cannot install multiple files.
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2158. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2159. if test -z "$INSTALL"; then
  2160. if test "${ac_cv_path_install+set}" = set; then :
  2161. $as_echo_n "(cached) " >&6
  2162. else
  2163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2164. for as_dir in $PATH
  2165. do
  2166. IFS=$as_save_IFS
  2167. test -z "$as_dir" && as_dir=.
  2168. # Account for people who put trailing slashes in PATH elements.
  2169. case $as_dir/ in #((
  2170. ./ | .// | /[cC]/* | \
  2171. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2172. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2173. /usr/ucb/* ) ;;
  2174. *)
  2175. # OSF1 and SCO ODT 3.0 have their own names for install.
  2176. # Don't use installbsd from OSF since it installs stuff as root
  2177. # by default.
  2178. for ac_prog in ginstall scoinst install; do
  2179. for ac_exec_ext in '' $ac_executable_extensions; do
  2180. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2181. if test $ac_prog = install &&
  2182. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2183. # AIX install. It has an incompatible calling convention.
  2184. :
  2185. elif test $ac_prog = install &&
  2186. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2187. # program-specific install script used by HP pwplus--don't use.
  2188. :
  2189. else
  2190. rm -rf conftest.one conftest.two conftest.dir
  2191. echo one > conftest.one
  2192. echo two > conftest.two
  2193. mkdir conftest.dir
  2194. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2195. test -s conftest.one && test -s conftest.two &&
  2196. test -s conftest.dir/conftest.one &&
  2197. test -s conftest.dir/conftest.two
  2198. then
  2199. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2200. break 3
  2201. fi
  2202. fi
  2203. fi
  2204. done
  2205. done
  2206. ;;
  2207. esac
  2208. done
  2209. IFS=$as_save_IFS
  2210. rm -rf conftest.one conftest.two conftest.dir
  2211. fi
  2212. if test "${ac_cv_path_install+set}" = set; then
  2213. INSTALL=$ac_cv_path_install
  2214. else
  2215. # As a last resort, use the slow shell script. Don't cache a
  2216. # value for INSTALL within a source directory, because that will
  2217. # break other packages using the cache if that directory is
  2218. # removed, or if the value is a relative name.
  2219. INSTALL=$ac_install_sh
  2220. fi
  2221. fi
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2223. $as_echo "$INSTALL" >&6; }
  2224. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2225. # It thinks the first close brace ends the variable substitution.
  2226. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2227. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2228. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2230. $as_echo_n "checking whether ln works... " >&6; }
  2231. if test "${acx_cv_prog_LN+set}" = set; then :
  2232. $as_echo_n "(cached) " >&6
  2233. else
  2234. rm -f conftestdata_t
  2235. echo >conftestdata_f
  2236. if ln conftestdata_f conftestdata_t 2>/dev/null
  2237. then
  2238. acx_cv_prog_LN=ln
  2239. else
  2240. acx_cv_prog_LN=no
  2241. fi
  2242. rm -f conftestdata_f conftestdata_t
  2243. fi
  2244. if test $acx_cv_prog_LN = no; then
  2245. LN="cp"
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2247. $as_echo "no, using $LN" >&6; }
  2248. else
  2249. LN="$acx_cv_prog_LN"
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2251. $as_echo "yes" >&6; }
  2252. fi
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2254. $as_echo_n "checking whether ln -s works... " >&6; }
  2255. LN_S=$as_ln_s
  2256. if test "$LN_S" = "ln -s"; then
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2258. $as_echo "yes" >&6; }
  2259. else
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2261. $as_echo "no, using $LN_S" >&6; }
  2262. fi
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2264. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2265. if test "${ac_cv_path_SED+set}" = set; then :
  2266. $as_echo_n "(cached) " >&6
  2267. else
  2268. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2269. for ac_i in 1 2 3 4 5 6 7; do
  2270. ac_script="$ac_script$as_nl$ac_script"
  2271. done
  2272. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2273. { ac_script=; unset ac_script;}
  2274. if test -z "$SED"; then
  2275. ac_path_SED_found=false
  2276. # Loop through the user's path and test for each of PROGNAME-LIST
  2277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2278. for as_dir in $PATH
  2279. do
  2280. IFS=$as_save_IFS
  2281. test -z "$as_dir" && as_dir=.
  2282. for ac_prog in sed gsed; do
  2283. for ac_exec_ext in '' $ac_executable_extensions; do
  2284. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2285. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2286. # Check for GNU ac_path_SED and select it if it is found.
  2287. # Check for GNU $ac_path_SED
  2288. case `"$ac_path_SED" --version 2>&1` in
  2289. *GNU*)
  2290. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2291. *)
  2292. ac_count=0
  2293. $as_echo_n 0123456789 >"conftest.in"
  2294. while :
  2295. do
  2296. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2297. mv "conftest.tmp" "conftest.in"
  2298. cp "conftest.in" "conftest.nl"
  2299. $as_echo '' >> "conftest.nl"
  2300. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2301. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2302. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2303. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2304. # Best one so far, save it but keep looking for a better one
  2305. ac_cv_path_SED="$ac_path_SED"
  2306. ac_path_SED_max=$ac_count
  2307. fi
  2308. # 10*(2^10) chars as input seems more than enough
  2309. test $ac_count -gt 10 && break
  2310. done
  2311. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2312. esac
  2313. $ac_path_SED_found && break 3
  2314. done
  2315. done
  2316. done
  2317. IFS=$as_save_IFS
  2318. if test -z "$ac_cv_path_SED"; then
  2319. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2320. fi
  2321. else
  2322. ac_cv_path_SED=$SED
  2323. fi
  2324. fi
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2326. $as_echo "$ac_cv_path_SED" >&6; }
  2327. SED="$ac_cv_path_SED"
  2328. rm -f conftest.sed
  2329. for ac_prog in gawk mawk nawk awk
  2330. do
  2331. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2332. set dummy $ac_prog; ac_word=$2
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2334. $as_echo_n "checking for $ac_word... " >&6; }
  2335. if test "${ac_cv_prog_AWK+set}" = set; then :
  2336. $as_echo_n "(cached) " >&6
  2337. else
  2338. if test -n "$AWK"; then
  2339. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2340. else
  2341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2342. for as_dir in $PATH
  2343. do
  2344. IFS=$as_save_IFS
  2345. test -z "$as_dir" && as_dir=.
  2346. for ac_exec_ext in '' $ac_executable_extensions; do
  2347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2348. ac_cv_prog_AWK="$ac_prog"
  2349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2350. break 2
  2351. fi
  2352. done
  2353. done
  2354. IFS=$as_save_IFS
  2355. fi
  2356. fi
  2357. AWK=$ac_cv_prog_AWK
  2358. if test -n "$AWK"; then
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2360. $as_echo "$AWK" >&6; }
  2361. else
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2363. $as_echo "no" >&6; }
  2364. fi
  2365. test -n "$AWK" && break
  2366. done
  2367. ### we might need to use some other shell than /bin/sh for running subshells
  2368. ### If we are on Windows, search for the shell. This will permit people
  2369. ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
  2370. ### without also having to set CONFIG_SHELL. This code will work when
  2371. ### using bash, which sets OSTYPE.
  2372. case "${OSTYPE}" in
  2373. *win32*)
  2374. if test x${CONFIG_SHELL} = x ; then
  2375. if test ! -f /bin/sh ; then
  2376. if test x${SHELL} != x && test -f ${SHELL} ; then
  2377. CONFIG_SHELL=${SHELL}
  2378. export CONFIG_SHELL
  2379. else
  2380. for prog in sh sh.exe bash bash.exe; do
  2381. IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
  2382. for dir in $PATH; do
  2383. test -z "$dir" && dir=.
  2384. if test -f $dir/$prog; then
  2385. CONFIG_SHELL=$dir/$prog
  2386. export CONFIG_SHELL
  2387. break
  2388. fi
  2389. done
  2390. IFS="$save_ifs"
  2391. test -n "${CONFIG_SHELL}" && break
  2392. done
  2393. fi
  2394. fi
  2395. fi
  2396. ;;
  2397. esac
  2398. config_shell=${CONFIG_SHELL-/bin/sh}
  2399. moveifchange=${srcdir}/move-if-change
  2400. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2401. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2402. # a relative path.
  2403. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2404. INSTALL="${srcpwd}/install-sh -c"
  2405. fi
  2406. # Set srcdir to "." if that's what it is.
  2407. # This is important for multilib support.
  2408. pwd=`${PWDCMD-pwd}`
  2409. if test "${pwd}" = "${srcpwd}" ; then
  2410. srcdir=.
  2411. fi
  2412. topsrcdir=$srcpwd
  2413. extra_host_args=
  2414. ### To add a new directory to the tree, first choose whether it is a target
  2415. ### or a host dependent tool. Then put it into the appropriate list
  2416. ### (library or tools, host or target), doing a dependency sort.
  2417. # Subdirs will be configured in the order listed in build_configdirs,
  2418. # configdirs, or target_configdirs; see the serialization section below.
  2419. # Dependency sorting is only needed when *configuration* must be done in
  2420. # a particular order. In all cases a dependency should be specified in
  2421. # the Makefile, whether or not it's implicitly specified here.
  2422. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2423. # cause circular dependencies and break everything horribly.
  2424. # these library is used by various programs built for the build
  2425. # environment
  2426. #
  2427. build_libs="build-libiberty"
  2428. # these tools are built for the build environment
  2429. build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
  2430. # these libraries are used by various programs built for the host environment
  2431. #
  2432. host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
  2433. # these tools are built for the host environment
  2434. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2435. # know that we are building the simulator.
  2436. # binutils, gas and ld appear in that order because it makes sense to run
  2437. # "make check" in that particular order.
  2438. # If --enable-gold is used, "gold" may replace "ld".
  2439. host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
  2440. # libgcj represents the runtime libraries only used by gcj.
  2441. libgcj="target-libffi \
  2442. target-zlib \
  2443. target-qthreads \
  2444. target-libjava"
  2445. # these libraries are built for the target environment, and are built after
  2446. # the host libraries and the host tools (which may be a cross compiler)
  2447. #
  2448. target_libraries="target-libgcc \
  2449. target-libiberty \
  2450. target-libgloss \
  2451. target-newlib \
  2452. target-libgomp \
  2453. target-libstdc++-v3 \
  2454. target-libmudflap \
  2455. target-libssp \
  2456. target-libquadmath \
  2457. target-libgfortran \
  2458. target-boehm-gc \
  2459. ${libgcj} \
  2460. target-libobjc \
  2461. target-libada \
  2462. target-libgo"
  2463. # these tools are built using the target libraries, and are intended to
  2464. # run only in the target environment
  2465. #
  2466. # note: any program that *uses* libraries that are in the "target_libraries"
  2467. # list belongs in this list.
  2468. #
  2469. target_tools="target-examples target-gperf target-rda"
  2470. ################################################################################
  2471. ## All tools belong in one of the four categories, and are assigned above
  2472. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2473. ## is important because configure will choke if they ever get through.
  2474. ## ${configdirs} is directories we build using the host tools.
  2475. ## ${target_configdirs} is directories we build using the target tools.
  2476. configdirs=`echo ${host_libs} ${host_tools}`
  2477. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2478. build_configdirs=`echo ${build_libs} ${build_tools}`
  2479. ################################################################################
  2480. srcname="gnu development package"
  2481. # This gets set non-empty for some net releases of packages.
  2482. appdirs=""
  2483. # Define is_cross_compiler to save on calls to 'test'.
  2484. is_cross_compiler=
  2485. if test x"${host}" = x"${target}" ; then
  2486. is_cross_compiler=no
  2487. else
  2488. is_cross_compiler=yes
  2489. fi
  2490. # Find the build and target subdir names.
  2491. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2492. # have matching libraries, they should use host libraries: Makefile.tpl
  2493. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2494. # However, they still use the build modules, because the corresponding
  2495. # host modules (e.g. bison) are only built for the host when bootstrap
  2496. # finishes. So:
  2497. # - build_subdir is where we find build modules, and never changes.
  2498. # - build_libsubdir is where we find build libraries, and can be overridden.
  2499. # Prefix 'build-' so this never conflicts with target_subdir.
  2500. build_subdir="build-${build_noncanonical}"
  2501. # Check whether --with-build-libsubdir was given.
  2502. if test "${with_build_libsubdir+set}" = set; then :
  2503. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2504. else
  2505. build_libsubdir="$build_subdir"
  2506. fi
  2507. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2508. if ( test $srcdir = . && test -d gcc ) \
  2509. || test -d $srcdir/../host-${host_noncanonical}; then
  2510. host_subdir="host-${host_noncanonical}"
  2511. else
  2512. host_subdir=.
  2513. fi
  2514. # No prefix.
  2515. target_subdir=${target_noncanonical}
  2516. # Be sure to cover against remnants of an in-tree build.
  2517. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2518. as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
  2519. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2520. fi
  2521. # Skipdirs are removed silently.
  2522. skipdirs=
  2523. # Noconfigdirs are removed loudly.
  2524. noconfigdirs=""
  2525. use_gnu_ld=
  2526. # Make sure we don't let GNU ld be added if we didn't want it.
  2527. if test x$with_gnu_ld = xno ; then
  2528. use_gnu_ld=no
  2529. noconfigdirs="$noconfigdirs ld gold"
  2530. fi
  2531. use_gnu_as=
  2532. # Make sure we don't let GNU as be added if we didn't want it.
  2533. if test x$with_gnu_as = xno ; then
  2534. use_gnu_as=no
  2535. noconfigdirs="$noconfigdirs gas"
  2536. fi
  2537. use_included_zlib=
  2538. # Make sure we don't let ZLIB be added if we didn't want it.
  2539. if test x$with_system_zlib = xyes ; then
  2540. use_included_zlib=no
  2541. noconfigdirs="$noconfigdirs zlib"
  2542. fi
  2543. # some tools are so dependent upon X11 that if we're not building with X,
  2544. # it's not even worth trying to configure, much less build, that tool.
  2545. case ${with_x} in
  2546. yes | "") ;; # the default value for this tree is that X11 is available
  2547. no)
  2548. skipdirs="${skipdirs} tk itcl libgui"
  2549. # We won't be able to build gdbtk without X.
  2550. enable_gdbtk=no
  2551. ;;
  2552. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2553. esac
  2554. # Some are only suitable for cross toolchains.
  2555. # Remove these if host=target.
  2556. cross_only="target-libgloss target-newlib target-opcodes"
  2557. case $is_cross_compiler in
  2558. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2559. esac
  2560. # If both --with-headers and --with-libs are specified, default to
  2561. # --without-newlib.
  2562. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2563. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2564. if test x"${with_newlib}" = x ; then
  2565. with_newlib=no
  2566. fi
  2567. fi
  2568. # Recognize --with-newlib/--without-newlib.
  2569. case ${with_newlib} in
  2570. no) skipdirs="${skipdirs} target-newlib" ;;
  2571. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2572. esac
  2573. # Handle --enable-gold, --enable-ld.
  2574. # --disable-gold [--enable-ld]
  2575. # Build only ld. Default option.
  2576. # --enable-gold [--enable-ld]
  2577. # Build both gold and ld. Install gold as "ld.gold", install ld
  2578. # as "ld.bfd" and "ld".
  2579. # --enable-gold=default [--enable-ld]
  2580. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2581. # install ld as "ld.bfd".
  2582. # --enable-gold[=default] --disable-ld
  2583. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2584. # --enable-gold --enable-ld=default
  2585. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2586. # and ld.bfd).
  2587. # In other words, ld is default
  2588. # --enable-gold=default --enable-ld=default
  2589. # Error.
  2590. default_ld=
  2591. # Check whether --enable-gold was given.
  2592. if test "${enable_gold+set}" = set; then :
  2593. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2594. else
  2595. ENABLE_GOLD=no
  2596. fi
  2597. case "${ENABLE_GOLD}" in
  2598. yes|default)
  2599. # Check for ELF target.
  2600. is_elf=no
  2601. case "${target}" in
  2602. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2603. | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2604. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2605. | *-*-solaris2* | *-*-nto*)
  2606. case "${target}" in
  2607. *-*-linux*aout* | *-*-linux*oldld*)
  2608. ;;
  2609. *)
  2610. is_elf=yes
  2611. ;;
  2612. esac
  2613. esac
  2614. if test "$is_elf" = "yes"; then
  2615. # Check for target supported by gold.
  2616. case "${target}" in
  2617. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
  2618. configdirs="$configdirs gold"
  2619. if test x${ENABLE_GOLD} = xdefault; then
  2620. default_ld=gold
  2621. fi
  2622. ENABLE_GOLD=yes
  2623. ;;
  2624. esac
  2625. fi
  2626. ;;
  2627. no)
  2628. ;;
  2629. *)
  2630. as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  2631. ;;
  2632. esac
  2633. # Check whether --enable-ld was given.
  2634. if test "${enable_ld+set}" = set; then :
  2635. enableval=$enable_ld; ENABLE_LD=$enableval
  2636. else
  2637. ENABLE_LD=yes
  2638. fi
  2639. case "${ENABLE_LD}" in
  2640. default)
  2641. if test x${default_ld} != x; then
  2642. as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
  2643. fi
  2644. ;;
  2645. yes)
  2646. ;;
  2647. no)
  2648. if test x${ENABLE_GOLD} != xyes; then
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2650. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2651. fi
  2652. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2653. ;;
  2654. *)
  2655. as_fn_error "invalid --enable-ld argument" "$LINENO" 5
  2656. ;;
  2657. esac
  2658. # Configure extra directories which are host specific
  2659. case "${host}" in
  2660. *-cygwin*)
  2661. configdirs="$configdirs libtermcap" ;;
  2662. esac
  2663. # A target can indicate whether a language isn't supported for some reason.
  2664. # Only spaces may be used in this macro; not newlines or tabs.
  2665. unsupported_languages=
  2666. # Remove more programs from consideration, based on the host or
  2667. # target this usually means that a port of the program doesn't
  2668. # exist yet.
  2669. case "${host}" in
  2670. i[3456789]86-*-msdosdjgpp*)
  2671. noconfigdirs="$noconfigdirs tcl tk itcl"
  2672. ;;
  2673. esac
  2674. # Check whether --enable-libquadmath was given.
  2675. if test "${enable_libquadmath+set}" = set; then :
  2676. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2677. else
  2678. ENABLE_LIBQUADMATH=yes
  2679. fi
  2680. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2681. noconfigdirs="$noconfigdirs target-libquadmath"
  2682. fi
  2683. # Check whether --enable-libquadmath-support was given.
  2684. if test "${enable_libquadmath_support+set}" = set; then :
  2685. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2686. else
  2687. ENABLE_LIBQUADMATH_SUPPORT=yes
  2688. fi
  2689. enable_libquadmath_support=
  2690. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2691. enable_libquadmath_support=no
  2692. fi
  2693. # Check whether --enable-libada was given.
  2694. if test "${enable_libada+set}" = set; then :
  2695. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2696. else
  2697. ENABLE_LIBADA=yes
  2698. fi
  2699. if test "${ENABLE_LIBADA}" != "yes" ; then
  2700. noconfigdirs="$noconfigdirs gnattools"
  2701. fi
  2702. # Check whether --enable-libssp was given.
  2703. if test "${enable_libssp+set}" = set; then :
  2704. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2705. else
  2706. ENABLE_LIBSSP=yes
  2707. fi
  2708. # Save it here so that, even in case of --enable-libgcj, if the Java
  2709. # front-end isn't enabled, we still get libgcj disabled.
  2710. libgcj_saved=$libgcj
  2711. case $enable_libgcj in
  2712. yes)
  2713. # If we reset it here, it won't get added to noconfigdirs in the
  2714. # target-specific build rules, so it will be forcibly enabled
  2715. # (unless the Java language itself isn't enabled).
  2716. libgcj=
  2717. ;;
  2718. no)
  2719. # Make sure we get it printed in the list of not supported target libs.
  2720. # Don't disable libffi, though, other languages use it.
  2721. noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
  2722. # Clear libgcj_saved so that even if java is enabled libffi won't be
  2723. # built.
  2724. libgcj_saved=
  2725. ;;
  2726. esac
  2727. # Disable libmudflap on some systems.
  2728. if test x$enable_libmudflap = x ; then
  2729. case "${target}" in
  2730. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
  2731. # Enable libmudflap by default in GNU and friends.
  2732. ;;
  2733. *-*-freebsd*)
  2734. # Enable libmudflap by default in FreeBSD.
  2735. ;;
  2736. *)
  2737. # Disable it by default everywhere else.
  2738. noconfigdirs="$noconfigdirs target-libmudflap"
  2739. ;;
  2740. esac
  2741. fi
  2742. # Disable libgomp on non POSIX hosted systems.
  2743. if test x$enable_libgomp = x ; then
  2744. # Enable libgomp by default on hosted POSIX systems.
  2745. case "${target}" in
  2746. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2747. ;;
  2748. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2749. ;;
  2750. *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
  2751. ;;
  2752. *-*-darwin* | *-*-aix*)
  2753. ;;
  2754. *)
  2755. noconfigdirs="$noconfigdirs target-libgomp"
  2756. ;;
  2757. esac
  2758. fi
  2759. # Default libgloss CPU subdirectory.
  2760. libgloss_dir="$target_cpu"
  2761. case "${target}" in
  2762. *-*-chorusos)
  2763. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  2764. ;;
  2765. powerpc-*-darwin*)
  2766. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  2767. noconfigdirs="$noconfigdirs sim target-rda"
  2768. ;;
  2769. i[3456789]86-*-darwin*)
  2770. noconfigdirs="$noconfigdirs ld gprof"
  2771. noconfigdirs="$noconfigdirs sim target-rda"
  2772. ;;
  2773. x86_64-*-darwin[912]*)
  2774. noconfigdirs="$noconfigdirs ld gas gprof"
  2775. noconfigdirs="$noconfigdirs sim target-rda"
  2776. ;;
  2777. *-*-darwin*)
  2778. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  2779. noconfigdirs="$noconfigdirs sim target-rda"
  2780. noconfigdirs="$noconfigdirs ${libgcj}"
  2781. ;;
  2782. *-*-dragonfly*)
  2783. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2784. ;;
  2785. *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
  2786. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  2787. ;;
  2788. *-*-freebsd*)
  2789. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2790. if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  2791. && test -f /usr/local/include/gmp.h; then
  2792. with_gmp=/usr/local
  2793. fi
  2794. # Skip some stuff that's unsupported on some FreeBSD configurations.
  2795. case "${target}" in
  2796. i*86-*-*) ;;
  2797. alpha*-*-*) ;;
  2798. x86_64-*-*) ;;
  2799. *)
  2800. noconfigdirs="$noconfigdirs ${libgcj}"
  2801. ;;
  2802. esac
  2803. ;;
  2804. *-*-kaos*)
  2805. # Remove unsupported stuff on all kaOS configurations.
  2806. skipdirs="target-libiberty ${libgcj} target-libstdc++-v3"
  2807. skipdirs="$skipdirs target-libobjc"
  2808. skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
  2809. noconfigdirs="$noconfigdirs target-libgloss"
  2810. ;;
  2811. *-*-netbsd*)
  2812. # Skip some stuff on all NetBSD configurations.
  2813. noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
  2814. # Skip some stuff that's unsupported on some NetBSD configurations.
  2815. case "${target}" in
  2816. i*86-*-netbsdelf*) ;;
  2817. arm*-*-netbsdelf*) ;;
  2818. *)
  2819. noconfigdirs="$noconfigdirs ${libgcj}"
  2820. ;;
  2821. esac
  2822. ;;
  2823. *-*-netware*)
  2824. noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
  2825. ;;
  2826. *-*-rtems*)
  2827. skipdirs="${skipdirs} target-libiberty"
  2828. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  2829. ;;
  2830. # The tpf target doesn't support gdb yet.
  2831. *-*-tpf*)
  2832. noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
  2833. ;;
  2834. *-*-uclinux*)
  2835. noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
  2836. ;;
  2837. *-*-vxworks*)
  2838. noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
  2839. ;;
  2840. alpha*-dec-osf*)
  2841. # ld works, but does not support shared libraries.
  2842. # newlib is not 64 bit ready.
  2843. # gas doesn't generate exception information.
  2844. noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
  2845. ;;
  2846. alpha*-*-*vms*)
  2847. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
  2848. ;;
  2849. alpha*-*-linux*)
  2850. # newlib is not 64 bit ready
  2851. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2852. ;;
  2853. alpha*-*-*)
  2854. # newlib is not 64 bit ready
  2855. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  2856. ;;
  2857. am33_2.0-*-linux*)
  2858. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  2859. ;;
  2860. sh-*-linux*)
  2861. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  2862. ;;
  2863. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  2864. noconfigdirs="$noconfigdirs ${libgcj}"
  2865. noconfigdirs="$noconfigdirs target-libiberty"
  2866. noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  2867. # the C++ libraries don't build on top of CE's C libraries
  2868. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2869. noconfigdirs="$noconfigdirs target-newlib"
  2870. libgloss_dir=wince
  2871. ;;
  2872. arc-*-*)
  2873. noconfigdirs="$noconfigdirs target-libgloss"
  2874. ;;
  2875. arm-*-coff)
  2876. noconfigdirs="$noconfigdirs ${libgcj}"
  2877. libgloss_dir=arm
  2878. ;;
  2879. arm-*-elf* | arm*-*-eabi* )
  2880. noconfigdirs="$noconfigdirs target-libffi"
  2881. libgloss_dir=arm
  2882. ;;
  2883. arm*-*-linux-gnueabi)
  2884. noconfigdirs="$noconfigdirs"
  2885. case ${with_newlib} in
  2886. no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  2887. esac
  2888. libgloss_dir=arm
  2889. ;;
  2890. arm*-*-symbianelf*)
  2891. noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
  2892. libgloss_dir=arm
  2893. ;;
  2894. arm-*-pe*)
  2895. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  2896. ;;
  2897. arm-*-riscix*)
  2898. noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
  2899. ;;
  2900. avr-*-*)
  2901. noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
  2902. ;;
  2903. bfin-*-*)
  2904. unsupported_languages="$unsupported_languages java"
  2905. noconfigdirs="$noconfigdirs target-boehm-gc"
  2906. if test x${is_cross_compiler} != xno ; then
  2907. target_configdirs="${target_configdirs} target-bsp target-cygmon"
  2908. fi
  2909. ;;
  2910. c4x-*-* | tic4x-*-*)
  2911. noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
  2912. ;;
  2913. c54x*-*-* | tic54x-*-*)
  2914. noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb"
  2915. ;;
  2916. cr16-*-*)
  2917. noconfigdirs="$noconfigdirs ${libgcj} gdb"
  2918. ;;
  2919. cris-*-* | crisv32-*-*)
  2920. unsupported_languages="$unsupported_languages java"
  2921. case "${target}" in
  2922. *-*-aout)
  2923. unsupported_languages="$unsupported_languages fortran"
  2924. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
  2925. *-*-elf) # See PR46792 regarding target-libffi.
  2926. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
  2927. *-*-linux*)
  2928. noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
  2929. *)
  2930. unsupported_languages="$unsupported_languages fortran"
  2931. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
  2932. esac
  2933. libgloss_dir=cris
  2934. ;;
  2935. d10v-*-*)
  2936. noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
  2937. ;;
  2938. d30v-*-*)
  2939. noconfigdirs="$noconfigdirs ${libgcj} gdb"
  2940. ;;
  2941. fr30-*-elf*)
  2942. noconfigdirs="$noconfigdirs ${libgcj} gdb"
  2943. ;;
  2944. frv-*-*)
  2945. noconfigdirs="$noconfigdirs ${libgcj}"
  2946. ;;
  2947. moxie-*-*)
  2948. noconfigdirs="$noconfigdirs ${libgcj}"
  2949. noconfigdirs="$noconfigdirs gprof"
  2950. ;;
  2951. h8300*-*-*)
  2952. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  2953. ;;
  2954. h8500-*-*)
  2955. noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
  2956. ;;
  2957. hppa1.1-*-osf* | hppa1.1-*-bsd* )
  2958. ;;
  2959. hppa*64*-*-linux*)
  2960. # In this case, it's because the hppa64-linux target is for
  2961. # the kernel only at this point and has no libc, and thus no
  2962. # headers, crt*.o, etc., all of which are needed by these.
  2963. noconfigdirs="$noconfigdirs target-zlib"
  2964. ;;
  2965. hppa*-*-linux*)
  2966. ;;
  2967. hppa*-*-*elf* | \
  2968. hppa*-*-lites* | \
  2969. hppa*-*-openbsd* | \
  2970. hppa*64*-*-*)
  2971. noconfigdirs="$noconfigdirs ${libgcj}"
  2972. ;;
  2973. hppa*-hp-hpux11*)
  2974. noconfigdirs="$noconfigdirs ld"
  2975. ;;
  2976. hppa*-*-pro*)
  2977. libgloss_dir=pa
  2978. ;;
  2979. hppa*-*-*)
  2980. # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
  2981. # build on HP-UX 10.20.
  2982. noconfigdirs="$noconfigdirs ld ${libgcj}"
  2983. ;;
  2984. i960-*-*)
  2985. noconfigdirs="$noconfigdirs ${libgcj} gdb"
  2986. ;;
  2987. ia64*-*-elf*)
  2988. # No gdb support yet.
  2989. noconfigdirs="$noconfigdirs readline libgui itcl gdb"
  2990. ;;
  2991. ia64*-**-hpux*)
  2992. # No ld support yet.
  2993. noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
  2994. ;;
  2995. ia64*-*-*vms*)
  2996. # No gdb or ld support yet.
  2997. noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
  2998. ;;
  2999. i[3456789]86-*-coff | i[3456789]86-*-elf)
  3000. noconfigdirs="$noconfigdirs ${libgcj}"
  3001. libgloss_dir=i386
  3002. ;;
  3003. i[3456789]86-*-linux*)
  3004. # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
  3005. # not build java stuff by default.
  3006. case "${target}" in
  3007. *-*-*libc1*)
  3008. noconfigdirs="$noconfigdirs ${libgcj}";;
  3009. esac
  3010. # This section makes it possible to build newlib natively on linux.
  3011. # If we are using a cross compiler then don't configure newlib.
  3012. if test x${is_cross_compiler} != xno ; then
  3013. noconfigdirs="$noconfigdirs target-newlib"
  3014. fi
  3015. noconfigdirs="$noconfigdirs target-libgloss"
  3016. # If we are not using a cross compiler, do configure newlib.
  3017. # Note however, that newlib will only be configured in this situation
  3018. # if the --with-newlib option has been given, because otherwise
  3019. # 'target-newlib' will appear in skipdirs.
  3020. ;;
  3021. i[3456789]86-w64-mingw*)
  3022. noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
  3023. ;;
  3024. i[3456789]86-*-mingw*)
  3025. target_configdirs="$target_configdirs target-winsup"
  3026. noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
  3027. ;;
  3028. x86_64-*-mingw*)
  3029. noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
  3030. ;;
  3031. *-*-cygwin*)
  3032. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  3033. noconfigdirs="$noconfigdirs target-libgloss"
  3034. # always build newlib if winsup directory is present.
  3035. if test -d "$srcdir/winsup/cygwin"; then
  3036. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3037. elif test -d "$srcdir/newlib"; then
  3038. echo "Warning: winsup/cygwin is missing so newlib can't be built."
  3039. fi
  3040. ;;
  3041. i[3456789]86-*-interix* )
  3042. ;;
  3043. i[3456789]86-*-pe)
  3044. noconfigdirs="$noconfigdirs target-libgloss"
  3045. ;;
  3046. i[3456789]86-*-sco3.2v5*)
  3047. # The linker does not yet know about weak symbols in COFF,
  3048. # and is not configured to handle mixed ELF and COFF.
  3049. noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
  3050. ;;
  3051. i[3456789]86-*-sco*)
  3052. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  3053. ;;
  3054. i[3456789]86-*-solaris2*)
  3055. noconfigdirs="$noconfigdirs target-libgloss"
  3056. ;;
  3057. i[3456789]86-*-sysv4*)
  3058. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  3059. ;;
  3060. i[3456789]86-*-beos*)
  3061. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
  3062. ;;
  3063. i[3456789]86-*-rdos*)
  3064. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3065. ;;
  3066. m32r-*-*)
  3067. noconfigdirs="$noconfigdirs ${libgcj}"
  3068. ;;
  3069. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  3070. noconfigdirs="$noconfigdirs target-libiberty"
  3071. libgloss_dir=m68hc11
  3072. ;;
  3073. m68k-*-elf*)
  3074. noconfigdirs="$noconfigdirs ${libgcj}"
  3075. ;;
  3076. m68k-*-coff*)
  3077. noconfigdirs="$noconfigdirs ${libgcj}"
  3078. ;;
  3079. m68*-*-* | fido-*-*)
  3080. libgloss_dir=m68k
  3081. ;;
  3082. mmix-*-*)
  3083. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
  3084. unsupported_languages="$unsupported_languages fortran java"
  3085. ;;
  3086. mn10200-*-*)
  3087. noconfigdirs="$noconfigdirs ${libgcj}"
  3088. ;;
  3089. mn10300-*-*)
  3090. noconfigdirs="$noconfigdirs ${libgcj}"
  3091. ;;
  3092. mt-*-*)
  3093. noconfigdirs="$noconfigdirs sim"
  3094. ;;
  3095. picochip-*-*)
  3096. noconfigdirs="$noconfigdirs target-libiberty"
  3097. ;;
  3098. powerpc-*-aix*)
  3099. # copied from rs6000-*-* entry
  3100. noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
  3101. ;;
  3102. powerpc*-*-winnt* | powerpc*-*-pe*)
  3103. target_configdirs="$target_configdirs target-winsup"
  3104. noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl ${libgcj}"
  3105. # always build newlib.
  3106. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3107. ;;
  3108. # This is temporary until we can link against shared libraries
  3109. powerpcle-*-solaris*)
  3110. noconfigdirs="$noconfigdirs gdb sim tcl tk itcl ${libgcj}"
  3111. libgloss_dir=rs6000
  3112. ;;
  3113. powerpc-*-beos*)
  3114. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
  3115. ;;
  3116. powerpc-*-eabi)
  3117. noconfigdirs="$noconfigdirs ${libgcj}"
  3118. libgloss_dir=rs6000
  3119. ;;
  3120. powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
  3121. libgloss_dir=rs6000
  3122. ;;
  3123. rs6000-*-lynxos*)
  3124. noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
  3125. ;;
  3126. rs6000-*-aix*)
  3127. noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
  3128. ;;
  3129. rs6000-*-*)
  3130. noconfigdirs="$noconfigdirs gprof ${libgcj}"
  3131. ;;
  3132. m68k-apollo-*)
  3133. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
  3134. ;;
  3135. microblaze*)
  3136. noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
  3137. ;;
  3138. mips*-sde-elf*)
  3139. skipdirs="$skipdirs target-libiberty"
  3140. noconfigdirs="$noconfigdirs ${libgcj}"
  3141. if test x$with_newlib = xyes; then
  3142. noconfigdirs="$noconfigdirs gprof"
  3143. fi
  3144. libgloss_dir=mips
  3145. ;;
  3146. mips*-*-irix5*)
  3147. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  3148. ;;
  3149. mips*-*-irix6*)
  3150. # Linking libjava exceeds command-line length limits on at least
  3151. # IRIX 6.2, but not on IRIX 6.5.
  3152. # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
  3153. # <oldham@codesourcery.com>
  3154. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  3155. ;;
  3156. mips*-*-bsd*)
  3157. noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
  3158. ;;
  3159. mips*-*-linux*)
  3160. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3161. ;;
  3162. mips*-*-*)
  3163. noconfigdirs="$noconfigdirs gprof ${libgcj}"
  3164. libgloss_dir=mips
  3165. ;;
  3166. romp-*-*)
  3167. noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
  3168. ;;
  3169. sh-*-* | sh64-*-*)
  3170. case "${target}" in
  3171. sh*-*-elf)
  3172. noconfigdirs="$noconfigdirs ${libgcj}" ;;
  3173. *)
  3174. noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
  3175. esac
  3176. ;;
  3177. sparclet-*-aout* | sparc86x-*-*)
  3178. libgloss_dir=sparc
  3179. ;;
  3180. sparc-*-elf*)
  3181. noconfigdirs="$noconfigdirs ${libgcj}"
  3182. ;;
  3183. sparc64-*-elf*)
  3184. noconfigdirs="$noconfigdirs ${libgcj}"
  3185. libgloss_dir=sparc
  3186. ;;
  3187. sparclite-*-*)
  3188. noconfigdirs="$noconfigdirs ${libgcj}"
  3189. libgloss_dir=sparc
  3190. ;;
  3191. sparc-*-sunos4*)
  3192. noconfigdirs="$noconfigdirs ${libgcj}"
  3193. if test x${is_cross_compiler} != xno ; then
  3194. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3195. else
  3196. use_gnu_ld=no
  3197. fi
  3198. ;;
  3199. sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
  3200. noconfigdirs="$noconfigdirs ${libgcj}"
  3201. ;;
  3202. sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
  3203. ;;
  3204. tic6x-*-*)
  3205. noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
  3206. ;;
  3207. v810-*-*)
  3208. noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
  3209. ;;
  3210. v850*-*-*)
  3211. noconfigdirs="$noconfigdirs ${libgcj}"
  3212. ;;
  3213. vax-*-vms)
  3214. noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
  3215. ;;
  3216. vax-*-*)
  3217. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  3218. ;;
  3219. xtensa*-*-*)
  3220. noconfigdirs="$noconfigdirs ${libgcj}"
  3221. ;;
  3222. ip2k-*-*)
  3223. noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
  3224. ;;
  3225. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  3226. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3227. ;;
  3228. *-*-lynxos*)
  3229. noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  3230. ;;
  3231. *-*-*)
  3232. noconfigdirs="$noconfigdirs ${libgcj}"
  3233. ;;
  3234. esac
  3235. # If we aren't building newlib, then don't build libgloss, since libgloss
  3236. # depends upon some newlib header files.
  3237. case "${noconfigdirs}" in
  3238. *target-libgloss*) ;;
  3239. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  3240. esac
  3241. # Work in distributions that contain no compiler tools, like Autoconf.
  3242. host_makefile_frag=/dev/null
  3243. if test -d ${srcdir}/config ; then
  3244. case "${host}" in
  3245. i[3456789]86-*-msdosdjgpp*)
  3246. host_makefile_frag="config/mh-djgpp"
  3247. ;;
  3248. *-cygwin*)
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
  3250. $as_echo_n "checking to see if cat works as expected... " >&6; }
  3251. echo a >cygwin-cat-check
  3252. if test `cat cygwin-cat-check` = a ; then
  3253. rm cygwin-cat-check
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3255. $as_echo "yes" >&6; }
  3256. else
  3257. rm cygwin-cat-check
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3259. $as_echo "no" >&6; }
  3260. as_fn_error "The cat command does not ignore carriage return characters.
  3261. Please either mount the build directory in binary mode or run the following
  3262. commands before running any configure script:
  3263. set -o igncr
  3264. export SHELLOPTS
  3265. " "$LINENO" 5
  3266. fi
  3267. host_makefile_frag="config/mh-cygwin"
  3268. ;;
  3269. *-mingw*)
  3270. host_makefile_frag="config/mh-mingw"
  3271. ;;
  3272. *-interix*)
  3273. host_makefile_frag="config/mh-interix"
  3274. ;;
  3275. hppa*-hp-hpux10*)
  3276. host_makefile_frag="config/mh-pa-hpux10"
  3277. ;;
  3278. hppa*-hp-hpux*)
  3279. host_makefile_frag="config/mh-pa"
  3280. ;;
  3281. hppa*-*)
  3282. host_makefile_frag="config/mh-pa"
  3283. ;;
  3284. *-*-darwin*)
  3285. host_makefile_frag="config/mh-darwin"
  3286. ;;
  3287. powerpc-*-aix*)
  3288. host_makefile_frag="config/mh-ppc-aix"
  3289. ;;
  3290. rs6000-*-aix*)
  3291. host_makefile_frag="config/mh-ppc-aix"
  3292. ;;
  3293. esac
  3294. fi
  3295. if test "${build}" != "${host}" ; then
  3296. AR_FOR_BUILD=${AR_FOR_BUILD-ar}
  3297. AS_FOR_BUILD=${AS_FOR_BUILD-as}
  3298. CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
  3299. CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
  3300. GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
  3301. GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
  3302. GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
  3303. DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
  3304. LD_FOR_BUILD=${LD_FOR_BUILD-ld}
  3305. NM_FOR_BUILD=${NM_FOR_BUILD-nm}
  3306. RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
  3307. WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
  3308. WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
  3309. else
  3310. AR_FOR_BUILD="\$(AR)"
  3311. AS_FOR_BUILD="\$(AS)"
  3312. CC_FOR_BUILD="\$(CC)"
  3313. CXX_FOR_BUILD="\$(CXX)"
  3314. GCJ_FOR_BUILD="\$(GCJ)"
  3315. GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
  3316. GOC_FOR_BUILD="\$(GOC)"
  3317. DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
  3318. LD_FOR_BUILD="\$(LD)"
  3319. NM_FOR_BUILD="\$(NM)"
  3320. RANLIB_FOR_BUILD="\$(RANLIB)"
  3321. WINDRES_FOR_BUILD="\$(WINDRES)"
  3322. WINDMC_FOR_BUILD="\$(WINDMC)"
  3323. fi
  3324. ac_ext=c
  3325. ac_cpp='$CPP $CPPFLAGS'
  3326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3329. if test -n "$ac_tool_prefix"; then
  3330. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3331. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3333. $as_echo_n "checking for $ac_word... " >&6; }
  3334. if test "${ac_cv_prog_CC+set}" = set; then :
  3335. $as_echo_n "(cached) " >&6
  3336. else
  3337. if test -n "$CC"; then
  3338. ac_cv_prog_CC="$CC" # Let the user override the test.
  3339. else
  3340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341. for as_dir in $PATH
  3342. do
  3343. IFS=$as_save_IFS
  3344. test -z "$as_dir" && as_dir=.
  3345. for ac_exec_ext in '' $ac_executable_extensions; do
  3346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3347. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3349. break 2
  3350. fi
  3351. done
  3352. done
  3353. IFS=$as_save_IFS
  3354. fi
  3355. fi
  3356. CC=$ac_cv_prog_CC
  3357. if test -n "$CC"; then
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3359. $as_echo "$CC" >&6; }
  3360. else
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3362. $as_echo "no" >&6; }
  3363. fi
  3364. fi
  3365. if test -z "$ac_cv_prog_CC"; then
  3366. ac_ct_CC=$CC
  3367. # Extract the first word of "gcc", so it can be a program name with args.
  3368. set dummy gcc; ac_word=$2
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3370. $as_echo_n "checking for $ac_word... " >&6; }
  3371. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3372. $as_echo_n "(cached) " >&6
  3373. else
  3374. if test -n "$ac_ct_CC"; then
  3375. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3376. else
  3377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3378. for as_dir in $PATH
  3379. do
  3380. IFS=$as_save_IFS
  3381. test -z "$as_dir" && as_dir=.
  3382. for ac_exec_ext in '' $ac_executable_extensions; do
  3383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3384. ac_cv_prog_ac_ct_CC="gcc"
  3385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3386. break 2
  3387. fi
  3388. done
  3389. done
  3390. IFS=$as_save_IFS
  3391. fi
  3392. fi
  3393. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3394. if test -n "$ac_ct_CC"; then
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3396. $as_echo "$ac_ct_CC" >&6; }
  3397. else
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3399. $as_echo "no" >&6; }
  3400. fi
  3401. if test "x$ac_ct_CC" = x; then
  3402. CC=""
  3403. else
  3404. case $cross_compiling:$ac_tool_warned in
  3405. yes:)
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3408. ac_tool_warned=yes ;;
  3409. esac
  3410. CC=$ac_ct_CC
  3411. fi
  3412. else
  3413. CC="$ac_cv_prog_CC"
  3414. fi
  3415. if test -z "$CC"; then
  3416. if test -n "$ac_tool_prefix"; then
  3417. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3418. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3420. $as_echo_n "checking for $ac_word... " >&6; }
  3421. if test "${ac_cv_prog_CC+set}" = set; then :
  3422. $as_echo_n "(cached) " >&6
  3423. else
  3424. if test -n "$CC"; then
  3425. ac_cv_prog_CC="$CC" # Let the user override the test.
  3426. else
  3427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3428. for as_dir in $PATH
  3429. do
  3430. IFS=$as_save_IFS
  3431. test -z "$as_dir" && as_dir=.
  3432. for ac_exec_ext in '' $ac_executable_extensions; do
  3433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3434. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3436. break 2
  3437. fi
  3438. done
  3439. done
  3440. IFS=$as_save_IFS
  3441. fi
  3442. fi
  3443. CC=$ac_cv_prog_CC
  3444. if test -n "$CC"; then
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3446. $as_echo "$CC" >&6; }
  3447. else
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3449. $as_echo "no" >&6; }
  3450. fi
  3451. fi
  3452. fi
  3453. if test -z "$CC"; then
  3454. # Extract the first word of "cc", so it can be a program name with args.
  3455. set dummy cc; ac_word=$2
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3457. $as_echo_n "checking for $ac_word... " >&6; }
  3458. if test "${ac_cv_prog_CC+set}" = set; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. if test -n "$CC"; then
  3462. ac_cv_prog_CC="$CC" # Let the user override the test.
  3463. else
  3464. ac_prog_rejected=no
  3465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3466. for as_dir in $PATH
  3467. do
  3468. IFS=$as_save_IFS
  3469. test -z "$as_dir" && as_dir=.
  3470. for ac_exec_ext in '' $ac_executable_extensions; do
  3471. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3472. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3473. ac_prog_rejected=yes
  3474. continue
  3475. fi
  3476. ac_cv_prog_CC="cc"
  3477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3478. break 2
  3479. fi
  3480. done
  3481. done
  3482. IFS=$as_save_IFS
  3483. if test $ac_prog_rejected = yes; then
  3484. # We found a bogon in the path, so make sure we never use it.
  3485. set dummy $ac_cv_prog_CC
  3486. shift
  3487. if test $# != 0; then
  3488. # We chose a different compiler from the bogus one.
  3489. # However, it has the same basename, so the bogon will be chosen
  3490. # first if we set CC to just the basename; use the full file name.
  3491. shift
  3492. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3493. fi
  3494. fi
  3495. fi
  3496. fi
  3497. CC=$ac_cv_prog_CC
  3498. if test -n "$CC"; then
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3500. $as_echo "$CC" >&6; }
  3501. else
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3503. $as_echo "no" >&6; }
  3504. fi
  3505. fi
  3506. if test -z "$CC"; then
  3507. if test -n "$ac_tool_prefix"; then
  3508. for ac_prog in cl.exe
  3509. do
  3510. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3511. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3513. $as_echo_n "checking for $ac_word... " >&6; }
  3514. if test "${ac_cv_prog_CC+set}" = set; then :
  3515. $as_echo_n "(cached) " >&6
  3516. else
  3517. if test -n "$CC"; then
  3518. ac_cv_prog_CC="$CC" # Let the user override the test.
  3519. else
  3520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3521. for as_dir in $PATH
  3522. do
  3523. IFS=$as_save_IFS
  3524. test -z "$as_dir" && as_dir=.
  3525. for ac_exec_ext in '' $ac_executable_extensions; do
  3526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3527. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3529. break 2
  3530. fi
  3531. done
  3532. done
  3533. IFS=$as_save_IFS
  3534. fi
  3535. fi
  3536. CC=$ac_cv_prog_CC
  3537. if test -n "$CC"; then
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3539. $as_echo "$CC" >&6; }
  3540. else
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3542. $as_echo "no" >&6; }
  3543. fi
  3544. test -n "$CC" && break
  3545. done
  3546. fi
  3547. if test -z "$CC"; then
  3548. ac_ct_CC=$CC
  3549. for ac_prog in cl.exe
  3550. do
  3551. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3552. set dummy $ac_prog; ac_word=$2
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3554. $as_echo_n "checking for $ac_word... " >&6; }
  3555. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3556. $as_echo_n "(cached) " >&6
  3557. else
  3558. if test -n "$ac_ct_CC"; then
  3559. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3560. else
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH
  3563. do
  3564. IFS=$as_save_IFS
  3565. test -z "$as_dir" && as_dir=.
  3566. for ac_exec_ext in '' $ac_executable_extensions; do
  3567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3568. ac_cv_prog_ac_ct_CC="$ac_prog"
  3569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3570. break 2
  3571. fi
  3572. done
  3573. done
  3574. IFS=$as_save_IFS
  3575. fi
  3576. fi
  3577. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3578. if test -n "$ac_ct_CC"; then
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3580. $as_echo "$ac_ct_CC" >&6; }
  3581. else
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. fi
  3585. test -n "$ac_ct_CC" && break
  3586. done
  3587. if test "x$ac_ct_CC" = x; then
  3588. CC=""
  3589. else
  3590. case $cross_compiling:$ac_tool_warned in
  3591. yes:)
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3593. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3594. ac_tool_warned=yes ;;
  3595. esac
  3596. CC=$ac_ct_CC
  3597. fi
  3598. fi
  3599. fi
  3600. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3601. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3602. as_fn_error "no acceptable C compiler found in \$PATH
  3603. See \`config.log' for more details." "$LINENO" 5; }
  3604. # Provide some information about the compiler.
  3605. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3606. set X $ac_compile
  3607. ac_compiler=$2
  3608. for ac_option in --version -v -V -qversion; do
  3609. { { ac_try="$ac_compiler $ac_option >&5"
  3610. case "(($ac_try" in
  3611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3612. *) ac_try_echo=$ac_try;;
  3613. esac
  3614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3615. $as_echo "$ac_try_echo"; } >&5
  3616. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3617. ac_status=$?
  3618. if test -s conftest.err; then
  3619. sed '10a\
  3620. ... rest of stderr output deleted ...
  3621. 10q' conftest.err >conftest.er1
  3622. cat conftest.er1 >&5
  3623. rm -f conftest.er1 conftest.err
  3624. fi
  3625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3626. test $ac_status = 0; }
  3627. done
  3628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3629. /* end confdefs.h. */
  3630. int
  3631. main ()
  3632. {
  3633. ;
  3634. return 0;
  3635. }
  3636. _ACEOF
  3637. ac_clean_files_save=$ac_clean_files
  3638. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3639. # Try to create an executable without -o first, disregard a.out.
  3640. # It will help us diagnose broken compilers, and finding out an intuition
  3641. # of exeext.
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3643. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3644. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3645. # The possible output files:
  3646. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3647. ac_rmfiles=
  3648. for ac_file in $ac_files
  3649. do
  3650. case $ac_file in
  3651. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3652. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3653. esac
  3654. done
  3655. rm -f $ac_rmfiles
  3656. if { { ac_try="$ac_link_default"
  3657. case "(($ac_try" in
  3658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3659. *) ac_try_echo=$ac_try;;
  3660. esac
  3661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3662. $as_echo "$ac_try_echo"; } >&5
  3663. (eval "$ac_link_default") 2>&5
  3664. ac_status=$?
  3665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3666. test $ac_status = 0; }; then :
  3667. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3668. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3669. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3670. # so that the user can short-circuit this test for compilers unknown to
  3671. # Autoconf.
  3672. for ac_file in $ac_files ''
  3673. do
  3674. test -f "$ac_file" || continue
  3675. case $ac_file in
  3676. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3677. ;;
  3678. [ab].out )
  3679. # We found the default executable, but exeext='' is most
  3680. # certainly right.
  3681. break;;
  3682. *.* )
  3683. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3684. then :; else
  3685. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3686. fi
  3687. # We set ac_cv_exeext here because the later test for it is not
  3688. # safe: cross compilers may not add the suffix if given an `-o'
  3689. # argument, so we may need to know it at that point already.
  3690. # Even if this section looks crufty: it has the advantage of
  3691. # actually working.
  3692. break;;
  3693. * )
  3694. break;;
  3695. esac
  3696. done
  3697. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3698. else
  3699. ac_file=''
  3700. fi
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3702. $as_echo "$ac_file" >&6; }
  3703. if test -z "$ac_file"; then :
  3704. $as_echo "$as_me: failed program was:" >&5
  3705. sed 's/^/| /' conftest.$ac_ext >&5
  3706. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3707. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3708. { as_fn_set_status 77
  3709. as_fn_error "C compiler cannot create executables
  3710. See \`config.log' for more details." "$LINENO" 5; }; }
  3711. fi
  3712. ac_exeext=$ac_cv_exeext
  3713. # Check that the compiler produces executables we can run. If not, either
  3714. # the compiler is broken, or we cross compile.
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3716. $as_echo_n "checking whether the C compiler works... " >&6; }
  3717. # If not cross compiling, check that we can run a simple program.
  3718. if test "$cross_compiling" != yes; then
  3719. if { ac_try='./$ac_file'
  3720. { { case "(($ac_try" in
  3721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3722. *) ac_try_echo=$ac_try;;
  3723. esac
  3724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3725. $as_echo "$ac_try_echo"; } >&5
  3726. (eval "$ac_try") 2>&5
  3727. ac_status=$?
  3728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3729. test $ac_status = 0; }; }; then
  3730. cross_compiling=no
  3731. else
  3732. if test "$cross_compiling" = maybe; then
  3733. cross_compiling=yes
  3734. else
  3735. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3736. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3737. as_fn_error "cannot run C compiled programs.
  3738. If you meant to cross compile, use \`--host'.
  3739. See \`config.log' for more details." "$LINENO" 5; }
  3740. fi
  3741. fi
  3742. fi
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3744. $as_echo "yes" >&6; }
  3745. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3746. ac_clean_files=$ac_clean_files_save
  3747. # Check that the compiler produces executables we can run. If not, either
  3748. # the compiler is broken, or we cross compile.
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3750. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3752. $as_echo "$cross_compiling" >&6; }
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3754. $as_echo_n "checking for suffix of executables... " >&6; }
  3755. if { { ac_try="$ac_link"
  3756. case "(($ac_try" in
  3757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3758. *) ac_try_echo=$ac_try;;
  3759. esac
  3760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3761. $as_echo "$ac_try_echo"; } >&5
  3762. (eval "$ac_link") 2>&5
  3763. ac_status=$?
  3764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3765. test $ac_status = 0; }; then :
  3766. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3767. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3768. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3769. # `rm'.
  3770. for ac_file in conftest.exe conftest conftest.*; do
  3771. test -f "$ac_file" || continue
  3772. case $ac_file in
  3773. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3774. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3775. break;;
  3776. * ) break;;
  3777. esac
  3778. done
  3779. else
  3780. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3781. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3782. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3783. See \`config.log' for more details." "$LINENO" 5; }
  3784. fi
  3785. rm -f conftest$ac_cv_exeext
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3787. $as_echo "$ac_cv_exeext" >&6; }
  3788. rm -f conftest.$ac_ext
  3789. EXEEXT=$ac_cv_exeext
  3790. ac_exeext=$EXEEXT
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3792. $as_echo_n "checking for suffix of object files... " >&6; }
  3793. if test "${ac_cv_objext+set}" = set; then :
  3794. $as_echo_n "(cached) " >&6
  3795. else
  3796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3797. /* end confdefs.h. */
  3798. int
  3799. main ()
  3800. {
  3801. ;
  3802. return 0;
  3803. }
  3804. _ACEOF
  3805. rm -f conftest.o conftest.obj
  3806. if { { ac_try="$ac_compile"
  3807. case "(($ac_try" in
  3808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3809. *) ac_try_echo=$ac_try;;
  3810. esac
  3811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3812. $as_echo "$ac_try_echo"; } >&5
  3813. (eval "$ac_compile") 2>&5
  3814. ac_status=$?
  3815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3816. test $ac_status = 0; }; then :
  3817. for ac_file in conftest.o conftest.obj conftest.*; do
  3818. test -f "$ac_file" || continue;
  3819. case $ac_file in
  3820. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3821. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3822. break;;
  3823. esac
  3824. done
  3825. else
  3826. $as_echo "$as_me: failed program was:" >&5
  3827. sed 's/^/| /' conftest.$ac_ext >&5
  3828. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3830. as_fn_error "cannot compute suffix of object files: cannot compile
  3831. See \`config.log' for more details." "$LINENO" 5; }
  3832. fi
  3833. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3834. fi
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3836. $as_echo "$ac_cv_objext" >&6; }
  3837. OBJEXT=$ac_cv_objext
  3838. ac_objext=$OBJEXT
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3840. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3841. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3842. $as_echo_n "(cached) " >&6
  3843. else
  3844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3845. /* end confdefs.h. */
  3846. int
  3847. main ()
  3848. {
  3849. #ifndef __GNUC__
  3850. choke me
  3851. #endif
  3852. ;
  3853. return 0;
  3854. }
  3855. _ACEOF
  3856. if ac_fn_c_try_compile "$LINENO"; then :
  3857. ac_compiler_gnu=yes
  3858. else
  3859. ac_compiler_gnu=no
  3860. fi
  3861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3862. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3863. fi
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3865. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3866. if test $ac_compiler_gnu = yes; then
  3867. GCC=yes
  3868. else
  3869. GCC=
  3870. fi
  3871. ac_test_CFLAGS=${CFLAGS+set}
  3872. ac_save_CFLAGS=$CFLAGS
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3874. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3875. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. ac_save_c_werror_flag=$ac_c_werror_flag
  3879. ac_c_werror_flag=yes
  3880. ac_cv_prog_cc_g=no
  3881. CFLAGS="-g"
  3882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3883. /* end confdefs.h. */
  3884. int
  3885. main ()
  3886. {
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. if ac_fn_c_try_compile "$LINENO"; then :
  3892. ac_cv_prog_cc_g=yes
  3893. else
  3894. CFLAGS=""
  3895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3896. /* end confdefs.h. */
  3897. int
  3898. main ()
  3899. {
  3900. ;
  3901. return 0;
  3902. }
  3903. _ACEOF
  3904. if ac_fn_c_try_compile "$LINENO"; then :
  3905. else
  3906. ac_c_werror_flag=$ac_save_c_werror_flag
  3907. CFLAGS="-g"
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main ()
  3912. {
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. if ac_fn_c_try_compile "$LINENO"; then :
  3918. ac_cv_prog_cc_g=yes
  3919. fi
  3920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3921. fi
  3922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3923. fi
  3924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3925. ac_c_werror_flag=$ac_save_c_werror_flag
  3926. fi
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3928. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3929. if test "$ac_test_CFLAGS" = set; then
  3930. CFLAGS=$ac_save_CFLAGS
  3931. elif test $ac_cv_prog_cc_g = yes; then
  3932. if test "$GCC" = yes; then
  3933. CFLAGS="-g -O2"
  3934. else
  3935. CFLAGS="-g"
  3936. fi
  3937. else
  3938. if test "$GCC" = yes; then
  3939. CFLAGS="-O2"
  3940. else
  3941. CFLAGS=
  3942. fi
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3945. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3946. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3947. $as_echo_n "(cached) " >&6
  3948. else
  3949. ac_cv_prog_cc_c89=no
  3950. ac_save_CC=$CC
  3951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3952. /* end confdefs.h. */
  3953. #include <stdarg.h>
  3954. #include <stdio.h>
  3955. #include <sys/types.h>
  3956. #include <sys/stat.h>
  3957. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3958. struct buf { int x; };
  3959. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3960. static char *e (p, i)
  3961. char **p;
  3962. int i;
  3963. {
  3964. return p[i];
  3965. }
  3966. static char *f (char * (*g) (char **, int), char **p, ...)
  3967. {
  3968. char *s;
  3969. va_list v;
  3970. va_start (v,p);
  3971. s = g (p, va_arg (v,int));
  3972. va_end (v);
  3973. return s;
  3974. }
  3975. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3976. function prototypes and stuff, but not '\xHH' hex character constants.
  3977. These don't provoke an error unfortunately, instead are silently treated
  3978. as 'x'. The following induces an error, until -std is added to get
  3979. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3980. array size at least. It's necessary to write '\x00'==0 to get something
  3981. that's true only with -std. */
  3982. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3983. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3984. inside strings and character constants. */
  3985. #define FOO(x) 'x'
  3986. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3987. int test (int i, double x);
  3988. struct s1 {int (*f) (int a);};
  3989. struct s2 {int (*f) (double a);};
  3990. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3991. int argc;
  3992. char **argv;
  3993. int
  3994. main ()
  3995. {
  3996. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3997. ;
  3998. return 0;
  3999. }
  4000. _ACEOF
  4001. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4002. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4003. do
  4004. CC="$ac_save_CC $ac_arg"
  4005. if ac_fn_c_try_compile "$LINENO"; then :
  4006. ac_cv_prog_cc_c89=$ac_arg
  4007. fi
  4008. rm -f core conftest.err conftest.$ac_objext
  4009. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4010. done
  4011. rm -f conftest.$ac_ext
  4012. CC=$ac_save_CC
  4013. fi
  4014. # AC_CACHE_VAL
  4015. case "x$ac_cv_prog_cc_c89" in
  4016. x)
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4018. $as_echo "none needed" >&6; } ;;
  4019. xno)
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4021. $as_echo "unsupported" >&6; } ;;
  4022. *)
  4023. CC="$CC $ac_cv_prog_cc_c89"
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4025. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4026. esac
  4027. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4028. fi
  4029. ac_ext=c
  4030. ac_cpp='$CPP $CPPFLAGS'
  4031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4034. ac_ext=cpp
  4035. ac_cpp='$CXXCPP $CPPFLAGS'
  4036. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4037. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4038. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4039. if test -z "$CXX"; then
  4040. if test -n "$CCC"; then
  4041. CXX=$CCC
  4042. else
  4043. if test -n "$ac_tool_prefix"; then
  4044. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4045. do
  4046. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4047. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4049. $as_echo_n "checking for $ac_word... " >&6; }
  4050. if test "${ac_cv_prog_CXX+set}" = set; then :
  4051. $as_echo_n "(cached) " >&6
  4052. else
  4053. if test -n "$CXX"; then
  4054. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4055. else
  4056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4057. for as_dir in $PATH
  4058. do
  4059. IFS=$as_save_IFS
  4060. test -z "$as_dir" && as_dir=.
  4061. for ac_exec_ext in '' $ac_executable_extensions; do
  4062. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4063. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4065. break 2
  4066. fi
  4067. done
  4068. done
  4069. IFS=$as_save_IFS
  4070. fi
  4071. fi
  4072. CXX=$ac_cv_prog_CXX
  4073. if test -n "$CXX"; then
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4075. $as_echo "$CXX" >&6; }
  4076. else
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4078. $as_echo "no" >&6; }
  4079. fi
  4080. test -n "$CXX" && break
  4081. done
  4082. fi
  4083. if test -z "$CXX"; then
  4084. ac_ct_CXX=$CXX
  4085. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4086. do
  4087. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4088. set dummy $ac_prog; ac_word=$2
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4090. $as_echo_n "checking for $ac_word... " >&6; }
  4091. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4092. $as_echo_n "(cached) " >&6
  4093. else
  4094. if test -n "$ac_ct_CXX"; then
  4095. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4096. else
  4097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4098. for as_dir in $PATH
  4099. do
  4100. IFS=$as_save_IFS
  4101. test -z "$as_dir" && as_dir=.
  4102. for ac_exec_ext in '' $ac_executable_extensions; do
  4103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4104. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4106. break 2
  4107. fi
  4108. done
  4109. done
  4110. IFS=$as_save_IFS
  4111. fi
  4112. fi
  4113. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4114. if test -n "$ac_ct_CXX"; then
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4116. $as_echo "$ac_ct_CXX" >&6; }
  4117. else
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4119. $as_echo "no" >&6; }
  4120. fi
  4121. test -n "$ac_ct_CXX" && break
  4122. done
  4123. if test "x$ac_ct_CXX" = x; then
  4124. CXX="g++"
  4125. else
  4126. case $cross_compiling:$ac_tool_warned in
  4127. yes:)
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4129. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4130. ac_tool_warned=yes ;;
  4131. esac
  4132. CXX=$ac_ct_CXX
  4133. fi
  4134. fi
  4135. fi
  4136. fi
  4137. # Provide some information about the compiler.
  4138. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4139. set X $ac_compile
  4140. ac_compiler=$2
  4141. for ac_option in --version -v -V -qversion; do
  4142. { { ac_try="$ac_compiler $ac_option >&5"
  4143. case "(($ac_try" in
  4144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4145. *) ac_try_echo=$ac_try;;
  4146. esac
  4147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4148. $as_echo "$ac_try_echo"; } >&5
  4149. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4150. ac_status=$?
  4151. if test -s conftest.err; then
  4152. sed '10a\
  4153. ... rest of stderr output deleted ...
  4154. 10q' conftest.err >conftest.er1
  4155. cat conftest.er1 >&5
  4156. rm -f conftest.er1 conftest.err
  4157. fi
  4158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4159. test $ac_status = 0; }
  4160. done
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4162. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4163. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4167. /* end confdefs.h. */
  4168. int
  4169. main ()
  4170. {
  4171. #ifndef __GNUC__
  4172. choke me
  4173. #endif
  4174. ;
  4175. return 0;
  4176. }
  4177. _ACEOF
  4178. if ac_fn_cxx_try_compile "$LINENO"; then :
  4179. ac_compiler_gnu=yes
  4180. else
  4181. ac_compiler_gnu=no
  4182. fi
  4183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4184. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4185. fi
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4187. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4188. if test $ac_compiler_gnu = yes; then
  4189. GXX=yes
  4190. else
  4191. GXX=
  4192. fi
  4193. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4194. ac_save_CXXFLAGS=$CXXFLAGS
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4196. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4197. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4201. ac_cxx_werror_flag=yes
  4202. ac_cv_prog_cxx_g=no
  4203. CXXFLAGS="-g"
  4204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4205. /* end confdefs.h. */
  4206. int
  4207. main ()
  4208. {
  4209. ;
  4210. return 0;
  4211. }
  4212. _ACEOF
  4213. if ac_fn_cxx_try_compile "$LINENO"; then :
  4214. ac_cv_prog_cxx_g=yes
  4215. else
  4216. CXXFLAGS=""
  4217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4218. /* end confdefs.h. */
  4219. int
  4220. main ()
  4221. {
  4222. ;
  4223. return 0;
  4224. }
  4225. _ACEOF
  4226. if ac_fn_cxx_try_compile "$LINENO"; then :
  4227. else
  4228. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4229. CXXFLAGS="-g"
  4230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4231. /* end confdefs.h. */
  4232. int
  4233. main ()
  4234. {
  4235. ;
  4236. return 0;
  4237. }
  4238. _ACEOF
  4239. if ac_fn_cxx_try_compile "$LINENO"; then :
  4240. ac_cv_prog_cxx_g=yes
  4241. fi
  4242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4243. fi
  4244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4245. fi
  4246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4247. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4248. fi
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4250. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4251. if test "$ac_test_CXXFLAGS" = set; then
  4252. CXXFLAGS=$ac_save_CXXFLAGS
  4253. elif test $ac_cv_prog_cxx_g = yes; then
  4254. if test "$GXX" = yes; then
  4255. CXXFLAGS="-g -O2"
  4256. else
  4257. CXXFLAGS="-g"
  4258. fi
  4259. else
  4260. if test "$GXX" = yes; then
  4261. CXXFLAGS="-O2"
  4262. else
  4263. CXXFLAGS=
  4264. fi
  4265. fi
  4266. ac_ext=c
  4267. ac_cpp='$CPP $CPPFLAGS'
  4268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4271. # We must set the default linker to the linker used by gcc for the correct
  4272. # operation of libtool. If LD is not defined and we are using gcc, try to
  4273. # set the LD default to the ld used by gcc.
  4274. if test -z "$LD"; then
  4275. if test "$GCC" = yes; then
  4276. case $build in
  4277. *-*-mingw*)
  4278. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
  4279. *)
  4280. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
  4281. esac
  4282. case $gcc_prog_ld in
  4283. # Accept absolute paths.
  4284. [\\/]* | [A-Za-z]:[\\/]*)
  4285. LD="$gcc_prog_ld" ;;
  4286. esac
  4287. fi
  4288. fi
  4289. if test -n "$ac_tool_prefix"; then
  4290. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  4291. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4293. $as_echo_n "checking for $ac_word... " >&6; }
  4294. if test "${ac_cv_prog_GNATBIND+set}" = set; then :
  4295. $as_echo_n "(cached) " >&6
  4296. else
  4297. if test -n "$GNATBIND"; then
  4298. ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  4299. else
  4300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4301. for as_dir in $PATH
  4302. do
  4303. IFS=$as_save_IFS
  4304. test -z "$as_dir" && as_dir=.
  4305. for ac_exec_ext in '' $ac_executable_extensions; do
  4306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4307. ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  4308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4309. break 2
  4310. fi
  4311. done
  4312. done
  4313. IFS=$as_save_IFS
  4314. fi
  4315. fi
  4316. GNATBIND=$ac_cv_prog_GNATBIND
  4317. if test -n "$GNATBIND"; then
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  4319. $as_echo "$GNATBIND" >&6; }
  4320. else
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4322. $as_echo "no" >&6; }
  4323. fi
  4324. fi
  4325. if test -z "$ac_cv_prog_GNATBIND"; then
  4326. ac_ct_GNATBIND=$GNATBIND
  4327. # Extract the first word of "gnatbind", so it can be a program name with args.
  4328. set dummy gnatbind; ac_word=$2
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4330. $as_echo_n "checking for $ac_word... " >&6; }
  4331. if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
  4332. $as_echo_n "(cached) " >&6
  4333. else
  4334. if test -n "$ac_ct_GNATBIND"; then
  4335. ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  4336. else
  4337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4338. for as_dir in $PATH
  4339. do
  4340. IFS=$as_save_IFS
  4341. test -z "$as_dir" && as_dir=.
  4342. for ac_exec_ext in '' $ac_executable_extensions; do
  4343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4344. ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  4345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4346. break 2
  4347. fi
  4348. done
  4349. done
  4350. IFS=$as_save_IFS
  4351. fi
  4352. fi
  4353. ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  4354. if test -n "$ac_ct_GNATBIND"; then
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  4356. $as_echo "$ac_ct_GNATBIND" >&6; }
  4357. else
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4359. $as_echo "no" >&6; }
  4360. fi
  4361. if test "x$ac_ct_GNATBIND" = x; then
  4362. GNATBIND="no"
  4363. else
  4364. case $cross_compiling:$ac_tool_warned in
  4365. yes:)
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4368. ac_tool_warned=yes ;;
  4369. esac
  4370. GNATBIND=$ac_ct_GNATBIND
  4371. fi
  4372. else
  4373. GNATBIND="$ac_cv_prog_GNATBIND"
  4374. fi
  4375. if test -n "$ac_tool_prefix"; then
  4376. # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  4377. set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4379. $as_echo_n "checking for $ac_word... " >&6; }
  4380. if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
  4381. $as_echo_n "(cached) " >&6
  4382. else
  4383. if test -n "$GNATMAKE"; then
  4384. ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  4385. else
  4386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4387. for as_dir in $PATH
  4388. do
  4389. IFS=$as_save_IFS
  4390. test -z "$as_dir" && as_dir=.
  4391. for ac_exec_ext in '' $ac_executable_extensions; do
  4392. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4393. ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  4394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4395. break 2
  4396. fi
  4397. done
  4398. done
  4399. IFS=$as_save_IFS
  4400. fi
  4401. fi
  4402. GNATMAKE=$ac_cv_prog_GNATMAKE
  4403. if test -n "$GNATMAKE"; then
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  4405. $as_echo "$GNATMAKE" >&6; }
  4406. else
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4408. $as_echo "no" >&6; }
  4409. fi
  4410. fi
  4411. if test -z "$ac_cv_prog_GNATMAKE"; then
  4412. ac_ct_GNATMAKE=$GNATMAKE
  4413. # Extract the first word of "gnatmake", so it can be a program name with args.
  4414. set dummy gnatmake; ac_word=$2
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4416. $as_echo_n "checking for $ac_word... " >&6; }
  4417. if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
  4418. $as_echo_n "(cached) " >&6
  4419. else
  4420. if test -n "$ac_ct_GNATMAKE"; then
  4421. ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  4422. else
  4423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4424. for as_dir in $PATH
  4425. do
  4426. IFS=$as_save_IFS
  4427. test -z "$as_dir" && as_dir=.
  4428. for ac_exec_ext in '' $ac_executable_extensions; do
  4429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4430. ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  4431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4432. break 2
  4433. fi
  4434. done
  4435. done
  4436. IFS=$as_save_IFS
  4437. fi
  4438. fi
  4439. ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  4440. if test -n "$ac_ct_GNATMAKE"; then
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  4442. $as_echo "$ac_ct_GNATMAKE" >&6; }
  4443. else
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4445. $as_echo "no" >&6; }
  4446. fi
  4447. if test "x$ac_ct_GNATMAKE" = x; then
  4448. GNATMAKE="no"
  4449. else
  4450. case $cross_compiling:$ac_tool_warned in
  4451. yes:)
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4454. ac_tool_warned=yes ;;
  4455. esac
  4456. GNATMAKE=$ac_ct_GNATMAKE
  4457. fi
  4458. else
  4459. GNATMAKE="$ac_cv_prog_GNATMAKE"
  4460. fi
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  4462. $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  4463. if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
  4464. $as_echo_n "(cached) " >&6
  4465. else
  4466. cat >conftest.adb <<EOF
  4467. procedure conftest is begin null; end conftest;
  4468. EOF
  4469. acx_cv_cc_gcc_supports_ada=no
  4470. # There is a bug in old released versions of GCC which causes the
  4471. # driver to exit successfully when the appropriate language module
  4472. # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  4473. # Therefore we must check for the error message as well as an
  4474. # unsuccessful exit.
  4475. # Other compilers, like HP Tru64 UNIX cc, exit successfully when
  4476. # given a .adb file, but produce no object file. So we must check
  4477. # if an object file was really produced to guard against this.
  4478. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
  4479. if test x"$errors" = x && test -f conftest.$ac_objext; then
  4480. acx_cv_cc_gcc_supports_ada=yes
  4481. fi
  4482. rm -f conftest.*
  4483. fi
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  4485. $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  4486. if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  4487. have_gnat=yes
  4488. else
  4489. have_gnat=no
  4490. fi
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  4492. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  4493. if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. echo abfoo >t1
  4497. echo cdfoo >t2
  4498. gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  4499. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  4500. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  4501. :
  4502. else
  4503. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  4504. fi
  4505. fi
  4506. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  4507. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  4508. :
  4509. else
  4510. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  4511. fi
  4512. fi
  4513. rm t1 t2
  4514. fi
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  4516. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  4517. do_compare="$gcc_cv_prog_cmp_skip"
  4518. # See if we are building gcc with C++.
  4519. # Check whether --enable-build-with-cxx was given.
  4520. if test "${enable_build_with_cxx+set}" = set; then :
  4521. enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
  4522. else
  4523. ENABLE_BUILD_WITH_CXX=no
  4524. fi
  4525. # Used for setting $lt_cv_objdir
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  4527. $as_echo_n "checking for objdir... " >&6; }
  4528. if test "${lt_cv_objdir+set}" = set; then :
  4529. $as_echo_n "(cached) " >&6
  4530. else
  4531. rm -f .libs 2>/dev/null
  4532. mkdir .libs 2>/dev/null
  4533. if test -d .libs; then
  4534. lt_cv_objdir=.libs
  4535. else
  4536. # MS-DOS does not allow filenames that begin with a dot.
  4537. lt_cv_objdir=_libs
  4538. fi
  4539. rmdir .libs 2>/dev/null
  4540. fi
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  4542. $as_echo "$lt_cv_objdir" >&6; }
  4543. objdir=$lt_cv_objdir
  4544. cat >>confdefs.h <<_ACEOF
  4545. #define LT_OBJDIR "$lt_cv_objdir/"
  4546. _ACEOF
  4547. # Check for GMP, MPFR and MPC
  4548. gmplibs="-lmpc -lmpfr -lgmp"
  4549. gmpinc=
  4550. have_gmp=no
  4551. # Specify a location for mpc
  4552. # check for this first so it ends up on the link line before mpfr.
  4553. # Check whether --with-mpc was given.
  4554. if test "${with_mpc+set}" = set; then :
  4555. withval=$with_mpc;
  4556. fi
  4557. # Check whether --with-mpc-include was given.
  4558. if test "${with_mpc_include+set}" = set; then :
  4559. withval=$with_mpc_include;
  4560. fi
  4561. # Check whether --with-mpc-lib was given.
  4562. if test "${with_mpc_lib+set}" = set; then :
  4563. withval=$with_mpc_lib;
  4564. fi
  4565. if test "x$with_mpc" != x; then
  4566. gmplibs="-L$with_mpc/lib $gmplibs"
  4567. gmpinc="-I$with_mpc/include $gmpinc"
  4568. fi
  4569. if test "x$with_mpc_include" != x; then
  4570. gmpinc="-I$with_mpc_include $gmpinc"
  4571. fi
  4572. if test "x$with_mpc_lib" != x; then
  4573. gmplibs="-L$with_mpc_lib $gmplibs"
  4574. fi
  4575. if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
  4576. gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
  4577. gmpinc='-I$$s/mpc/src '"$gmpinc"
  4578. # Do not test the mpc version. Assume that it is sufficient, since
  4579. # it is in the source tree, and the library has not been built yet
  4580. # but it would be included on the link line in the version check below
  4581. # hence making the test fail.
  4582. have_gmp=yes
  4583. fi
  4584. # Specify a location for mpfr
  4585. # check for this first so it ends up on the link line before gmp.
  4586. # Check whether --with-mpfr-dir was given.
  4587. if test "${with_mpfr_dir+set}" = set; then :
  4588. withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
  4589. Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
  4590. fi
  4591. # Check whether --with-mpfr was given.
  4592. if test "${with_mpfr+set}" = set; then :
  4593. withval=$with_mpfr;
  4594. fi
  4595. # Check whether --with-mpfr-include was given.
  4596. if test "${with_mpfr_include+set}" = set; then :
  4597. withval=$with_mpfr_include;
  4598. fi
  4599. # Check whether --with-mpfr-lib was given.
  4600. if test "${with_mpfr_lib+set}" = set; then :
  4601. withval=$with_mpfr_lib;
  4602. fi
  4603. if test "x$with_mpfr" != x; then
  4604. gmplibs="-L$with_mpfr/lib $gmplibs"
  4605. gmpinc="-I$with_mpfr/include $gmpinc"
  4606. fi
  4607. if test "x$with_mpfr_include" != x; then
  4608. gmpinc="-I$with_mpfr_include $gmpinc"
  4609. fi
  4610. if test "x$with_mpfr_lib" != x; then
  4611. gmplibs="-L$with_mpfr_lib $gmplibs"
  4612. fi
  4613. if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
  4614. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
  4615. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
  4616. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
  4617. # Do not test the mpfr version. Assume that it is sufficient, since
  4618. # it is in the source tree, and the library has not been built yet
  4619. # but it would be included on the link line in the version check below
  4620. # hence making the test fail.
  4621. have_gmp=yes
  4622. fi
  4623. # Specify a location for gmp
  4624. # Check whether --with-gmp-dir was given.
  4625. if test "${with_gmp_dir+set}" = set; then :
  4626. withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
  4627. Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
  4628. fi
  4629. # Check whether --with-gmp was given.
  4630. if test "${with_gmp+set}" = set; then :
  4631. withval=$with_gmp;
  4632. fi
  4633. # Check whether --with-gmp-include was given.
  4634. if test "${with_gmp_include+set}" = set; then :
  4635. withval=$with_gmp_include;
  4636. fi
  4637. # Check whether --with-gmp-lib was given.
  4638. if test "${with_gmp_lib+set}" = set; then :
  4639. withval=$with_gmp_lib;
  4640. fi
  4641. if test "x$with_gmp" != x; then
  4642. gmplibs="-L$with_gmp/lib $gmplibs"
  4643. gmpinc="-I$with_gmp/include $gmpinc"
  4644. fi
  4645. if test "x$with_gmp_include" != x; then
  4646. gmpinc="-I$with_gmp_include $gmpinc"
  4647. fi
  4648. if test "x$with_gmp_lib" != x; then
  4649. gmplibs="-L$with_gmp_lib $gmplibs"
  4650. fi
  4651. if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
  4652. gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
  4653. gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
  4654. extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  4655. extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  4656. # Do not test the gmp version. Assume that it is sufficient, since
  4657. # it is in the source tree, and the library has not been built yet
  4658. # but it would be included on the link line in the version check below
  4659. # hence making the test fail.
  4660. have_gmp=yes
  4661. fi
  4662. if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
  4663. have_gmp=yes
  4664. saved_CFLAGS="$CFLAGS"
  4665. CFLAGS="$CFLAGS $gmpinc"
  4666. # Check for the recommended and required versions of GMP.
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
  4668. $as_echo_n "checking for the correct version of gmp.h... " >&6; }
  4669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4670. /* end confdefs.h. */
  4671. #include "gmp.h"
  4672. int
  4673. main ()
  4674. {
  4675. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  4676. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  4677. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
  4678. choke me
  4679. #endif
  4680. ;
  4681. return 0;
  4682. }
  4683. _ACEOF
  4684. if ac_fn_c_try_compile "$LINENO"; then :
  4685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4686. /* end confdefs.h. */
  4687. #include <gmp.h>
  4688. int
  4689. main ()
  4690. {
  4691. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  4692. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  4693. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
  4694. choke me
  4695. #endif
  4696. ;
  4697. return 0;
  4698. }
  4699. _ACEOF
  4700. if ac_fn_c_try_compile "$LINENO"; then :
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4702. $as_echo "yes" >&6; }
  4703. else
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  4705. $as_echo "buggy but acceptable" >&6; }
  4706. fi
  4707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4708. else
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4710. $as_echo "no" >&6; }; have_gmp=no
  4711. fi
  4712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4713. # If we have GMP, check the MPFR version.
  4714. if test x"$have_gmp" = xyes; then
  4715. # Check for the recommended and required versions of MPFR.
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
  4717. $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
  4718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h. */
  4720. #include <gmp.h>
  4721. #include <mpfr.h>
  4722. int
  4723. main ()
  4724. {
  4725. #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
  4726. choke me
  4727. #endif
  4728. ;
  4729. return 0;
  4730. }
  4731. _ACEOF
  4732. if ac_fn_c_try_compile "$LINENO"; then :
  4733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4734. /* end confdefs.h. */
  4735. #include <gmp.h>
  4736. #include <mpfr.h>
  4737. int
  4738. main ()
  4739. {
  4740. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
  4741. choke me
  4742. #endif
  4743. ;
  4744. return 0;
  4745. }
  4746. _ACEOF
  4747. if ac_fn_c_try_compile "$LINENO"; then :
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4749. $as_echo "yes" >&6; }
  4750. else
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  4752. $as_echo "buggy but acceptable" >&6; }
  4753. fi
  4754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4757. $as_echo "no" >&6; }; have_gmp=no
  4758. fi
  4759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4760. fi
  4761. # Check for the MPC header version.
  4762. if test x"$have_gmp" = xyes ; then
  4763. # Check for the recommended and required versions of MPC.
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
  4765. $as_echo_n "checking for the correct version of mpc.h... " >&6; }
  4766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4767. /* end confdefs.h. */
  4768. #include <mpc.h>
  4769. int
  4770. main ()
  4771. {
  4772. #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
  4773. choke me
  4774. #endif
  4775. ;
  4776. return 0;
  4777. }
  4778. _ACEOF
  4779. if ac_fn_c_try_compile "$LINENO"; then :
  4780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4781. /* end confdefs.h. */
  4782. #include <mpc.h>
  4783. int
  4784. main ()
  4785. {
  4786. #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
  4787. choke me
  4788. #endif
  4789. ;
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. if ac_fn_c_try_compile "$LINENO"; then :
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4795. $as_echo "yes" >&6; }
  4796. else
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  4798. $as_echo "buggy but acceptable" >&6; }
  4799. fi
  4800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4801. else
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4803. $as_echo "no" >&6; }; have_gmp=no
  4804. fi
  4805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4806. fi
  4807. # Now check the MPFR library.
  4808. if test x"$have_gmp" = xyes; then
  4809. saved_LIBS="$LIBS"
  4810. LIBS="$LIBS $gmplibs"
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
  4812. $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
  4813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4814. /* end confdefs.h. */
  4815. #include <mpc.h>
  4816. int
  4817. main ()
  4818. {
  4819. mpfr_t n;
  4820. mpfr_t x;
  4821. mpc_t c;
  4822. int t;
  4823. mpfr_init (n);
  4824. mpfr_init (x);
  4825. mpfr_atan2 (n, n, x, GMP_RNDN);
  4826. mpfr_erfc (n, x, GMP_RNDN);
  4827. mpfr_subnormalize (x, t, GMP_RNDN);
  4828. mpfr_clear(n);
  4829. mpfr_clear(x);
  4830. mpc_init2 (c, 53);
  4831. mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
  4832. mpc_cosh (c, c, MPC_RNDNN);
  4833. mpc_pow (c, c, c, MPC_RNDNN);
  4834. mpc_acosh (c, c, MPC_RNDNN);
  4835. mpc_clear (c);
  4836. ;
  4837. return 0;
  4838. }
  4839. _ACEOF
  4840. if ac_fn_c_try_link "$LINENO"; then :
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4842. $as_echo "yes" >&6; }
  4843. else
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4845. $as_echo "no" >&6; }; have_gmp=no
  4846. fi
  4847. rm -f core conftest.err conftest.$ac_objext \
  4848. conftest$ac_exeext conftest.$ac_ext
  4849. LIBS="$saved_LIBS"
  4850. fi
  4851. CFLAGS="$saved_CFLAGS"
  4852. # The library versions listed in the error message below should match
  4853. # the HARD-minimums enforced above.
  4854. if test x$have_gmp != xyes; then
  4855. as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
  4856. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  4857. their locations. Source code for these libraries can be found at
  4858. their respective hosting sites as well as at
  4859. ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
  4860. http://gcc.gnu.org/install/prerequisites.html for additional info. If
  4861. you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  4862. make sure that you have installed both the libraries and the header
  4863. files. They may be located in separate packages." "$LINENO" 5
  4864. fi
  4865. fi
  4866. # Flags needed for both GMP, MPFR and/or MPC.
  4867. # Allow host libstdc++ to be specified for static linking with PPL.
  4868. # Check whether --with-host-libstdcxx was given.
  4869. if test "${with_host_libstdcxx+set}" = set; then :
  4870. withval=$with_host_libstdcxx;
  4871. fi
  4872. case $with_host_libstdcxx in
  4873. no|yes)
  4874. as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
  4875. ;;
  4876. esac
  4877. # Linker flags to use for stage1 or when not boostrapping.
  4878. # Check whether --with-stage1-ldflags was given.
  4879. if test "${with_stage1_ldflags+set}" = set; then :
  4880. withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  4881. stage1_ldflags=
  4882. else
  4883. stage1_ldflags=$withval
  4884. fi
  4885. else
  4886. stage1_ldflags=
  4887. fi
  4888. # Libraries to use for stage1 or when not bootstrapping.
  4889. # Check whether --with-stage1-libs was given.
  4890. if test "${with_stage1_libs+set}" = set; then :
  4891. withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  4892. stage1_libs=
  4893. else
  4894. stage1_libs=$withval
  4895. fi
  4896. else
  4897. stage1_libs=$with_host_libstdcxx
  4898. fi
  4899. # Libraries to use for stage2 and later builds. This defaults to the
  4900. # argument passed to --with-host-libstdcxx.
  4901. # Check whether --with-boot-libs was given.
  4902. if test "${with_boot_libs+set}" = set; then :
  4903. withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  4904. poststage1_libs=
  4905. else
  4906. poststage1_libs=$withval
  4907. fi
  4908. else
  4909. poststage1_libs=$with_host_libstdcxx
  4910. fi
  4911. # Linker flags to use for stage2 and later builds.
  4912. # Check whether --with-boot-ldflags was given.
  4913. if test "${with_boot_ldflags+set}" = set; then :
  4914. withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  4915. poststage1_ldflags=
  4916. else
  4917. poststage1_ldflags=$withval
  4918. fi
  4919. else
  4920. poststage1_ldflags=
  4921. # In stages 2 and 3, default to linking libstdc++ and libgcc
  4922. # statically. But if the user explicitly specified the libraries to
  4923. # use, trust that they are doing what they want.
  4924. if test "$poststage1_libs" = ""; then
  4925. poststage1_ldflags="-static-libstdc++ -static-libgcc"
  4926. fi
  4927. fi
  4928. # Check for PPL
  4929. ppllibs=
  4930. pplinc=
  4931. pwllib=
  4932. # Check whether --with-ppl was given.
  4933. if test "${with_ppl+set}" = set; then :
  4934. withval=$with_ppl;
  4935. fi
  4936. # Check whether --with-ppl-include was given.
  4937. if test "${with_ppl_include+set}" = set; then :
  4938. withval=$with_ppl_include;
  4939. fi
  4940. # Check whether --with-ppl-lib was given.
  4941. if test "${with_ppl_lib+set}" = set; then :
  4942. withval=$with_ppl_lib;
  4943. fi
  4944. # Check whether --enable-ppl-version-check was given.
  4945. if test "${enable_ppl_version_check+set}" = set; then :
  4946. enableval=$enable_ppl_version_check;
  4947. fi
  4948. case $with_ppl in
  4949. yes | no | "")
  4950. ;;
  4951. *)
  4952. ppllibs="-L$with_ppl/lib"
  4953. pplinc="-I$with_ppl/include $pplinc"
  4954. if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
  4955. with_ppl=yes
  4956. else
  4957. as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
  4958. fi
  4959. ;;
  4960. esac
  4961. if test x"$with_ppl_include" != x; then
  4962. pplinc="-I$with_ppl_include $pplinc"
  4963. with_ppl=yes
  4964. fi
  4965. if test "x$with_ppl_lib" != x; then
  4966. ppllibs="-L$with_ppl_lib"
  4967. with_ppl=yes
  4968. fi
  4969. if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
  4970. if test x"$enable_watchdog" = xyes; then
  4971. pwllib="-lpwl"
  4972. fi
  4973. ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
  4974. pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
  4975. enable_ppl_version_check=no
  4976. with_ppl=yes
  4977. fi
  4978. if test "x$with_ppl" != xno; then
  4979. if test "x$pwllib" = x; then
  4980. saved_LIBS="$LIBS"
  4981. LIBS="$LIBS $ppllibs -lstdc++ -lm"
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
  4983. $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
  4984. if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. ac_check_lib_save_LIBS=$LIBS
  4988. LIBS="-lpwl $LIBS"
  4989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4990. /* end confdefs.h. */
  4991. /* Override any GCC internal prototype to avoid an error.
  4992. Use char because int might match the return type of a GCC
  4993. builtin and then its argument prototype would still apply. */
  4994. #ifdef __cplusplus
  4995. extern "C"
  4996. #endif
  4997. char PWL_handle_timeout ();
  4998. int
  4999. main ()
  5000. {
  5001. return PWL_handle_timeout ();
  5002. ;
  5003. return 0;
  5004. }
  5005. _ACEOF
  5006. if ac_fn_c_try_link "$LINENO"; then :
  5007. ac_cv_lib_pwl_PWL_handle_timeout=yes
  5008. else
  5009. ac_cv_lib_pwl_PWL_handle_timeout=no
  5010. fi
  5011. rm -f core conftest.err conftest.$ac_objext \
  5012. conftest$ac_exeext conftest.$ac_ext
  5013. LIBS=$ac_check_lib_save_LIBS
  5014. fi
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
  5016. $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
  5017. if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
  5018. pwllib="-lpwl"
  5019. fi
  5020. LIBS="$saved_LIBS"
  5021. fi
  5022. ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
  5023. if test "$enable_ppl_version_check" != no; then
  5024. saved_CFLAGS="$CFLAGS"
  5025. CFLAGS="$CFLAGS $pplinc $gmpinc"
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
  5027. $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
  5028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5029. /* end confdefs.h. */
  5030. #include "ppl_c.h"
  5031. int
  5032. main ()
  5033. {
  5034. #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
  5035. choke me
  5036. #endif
  5037. ;
  5038. return 0;
  5039. }
  5040. _ACEOF
  5041. if ac_fn_c_try_compile "$LINENO"; then :
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5043. $as_echo "yes" >&6; }
  5044. else
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5046. $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
  5047. fi
  5048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5049. CFLAGS="$saved_CFLAGS"
  5050. fi
  5051. fi
  5052. # Flags needed for PPL
  5053. # Check for CLOOG
  5054. # Check whether --with-cloog was given.
  5055. if test "${with_cloog+set}" = set; then :
  5056. withval=$with_cloog;
  5057. fi
  5058. # Check whether --with-cloog-include was given.
  5059. if test "${with_cloog_include+set}" = set; then :
  5060. withval=$with_cloog_include;
  5061. fi
  5062. # Check whether --with-cloog-lib was given.
  5063. if test "${with_cloog_lib+set}" = set; then :
  5064. withval=$with_cloog_lib;
  5065. fi
  5066. # Check whether --enable-cloog-backend was given.
  5067. if test "${enable_cloog_backend+set}" = set; then :
  5068. enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
  5069. cloog_backend=isl
  5070. elif test "x${enableval}" = "xppl"; then
  5071. cloog_backend=ppl
  5072. else
  5073. cloog_backend=ppl-legacy
  5074. fi
  5075. else
  5076. cloog_backend=ppl-legacy
  5077. fi
  5078. # Check whether --enable-cloog-version-check was given.
  5079. if test "${enable_cloog_version_check+set}" = set; then :
  5080. enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
  5081. else
  5082. ENABLE_CLOOG_CHECK=yes
  5083. fi
  5084. # Initialize clooglibs and clooginc.
  5085. case $with_cloog in
  5086. no)
  5087. clooglibs=
  5088. clooginc=
  5089. ;;
  5090. "" | yes)
  5091. ;;
  5092. *)
  5093. clooglibs="-L$with_cloog/lib"
  5094. clooginc="-I$with_cloog/include"
  5095. ;;
  5096. esac
  5097. if test "x${with_cloog_include}" != x ; then
  5098. clooginc="-I$with_cloog_include"
  5099. fi
  5100. if test "x${with_cloog_lib}" != x; then
  5101. clooglibs="-L$with_cloog_lib"
  5102. fi
  5103. if test "x$with_ppl" = "xno"; then
  5104. if test "x${with_cloog}" = xno; then
  5105. graphite_requested=no
  5106. elif test "x${with_cloog}" != x \
  5107. || test "x${with_cloog_include}" != x \
  5108. || test "x${with_cloog_lib}" != x ; then
  5109. graphite_requested=yes
  5110. else
  5111. graphite_requested=no
  5112. fi
  5113. if test "${graphite_requested}" = yes; then
  5114. as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
  5115. fi
  5116. with_cloog=no
  5117. fi
  5118. if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
  5119. && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
  5120. clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
  5121. clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
  5122. fi
  5123. if test "x$with_cloog" != "xno"; then
  5124. _cloog_saved_CFLAGS=$CFLAGS
  5125. _cloog_saved_CPPFLAGS=$CPPFLAGS
  5126. _cloog_saved_LDFLAGS=$LDFLAGS
  5127. _cloog_saved_LIBS=$LIBS
  5128. _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
  5129. CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
  5130. CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
  5131. LDFLAGS="${LDFLAGS} ${clooglibs}"
  5132. case $cloog_backend in
  5133. "ppl-legacy")
  5134. CFLAGS="${CFLAGS} ${pplinc}"
  5135. LDFLAGS="${LDFLAGS} ${ppllibs}"
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
  5137. $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
  5138. if test "${gcc_cv_cloog_type+set}" = set; then :
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. LIBS="-lcloog ${_cloog_saved_LIBS}"
  5142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5143. /* end confdefs.h. */
  5144. #include "cloog/cloog.h"
  5145. int
  5146. main ()
  5147. {
  5148. #ifndef CLOOG_PPL_BACKEND
  5149. choke me
  5150. #endif
  5151. ;
  5152. return 0;
  5153. }
  5154. _ACEOF
  5155. if ac_fn_c_try_link "$LINENO"; then :
  5156. gcc_cv_cloog_type="PPL Legacy"
  5157. else
  5158. gcc_cv_cloog_type=no
  5159. fi
  5160. rm -f core conftest.err conftest.$ac_objext \
  5161. conftest$ac_exeext conftest.$ac_ext
  5162. fi
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
  5164. $as_echo "$gcc_cv_cloog_type" >&6; }
  5165. ;;
  5166. "isl")
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
  5168. $as_echo_n "checking for installed CLooG ISL... " >&6; }
  5169. if test "${gcc_cv_cloog_type+set}" = set; then :
  5170. $as_echo_n "(cached) " >&6
  5171. else
  5172. LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
  5173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5174. /* end confdefs.h. */
  5175. #include "cloog/cloog.h"
  5176. int
  5177. main ()
  5178. {
  5179. cloog_version ()
  5180. ;
  5181. return 0;
  5182. }
  5183. _ACEOF
  5184. if ac_fn_c_try_link "$LINENO"; then :
  5185. gcc_cv_cloog_type="ISL"
  5186. else
  5187. gcc_cv_cloog_type=no
  5188. fi
  5189. rm -f core conftest.err conftest.$ac_objext \
  5190. conftest$ac_exeext conftest.$ac_ext
  5191. fi
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
  5193. $as_echo "$gcc_cv_cloog_type" >&6; }
  5194. ;;
  5195. "ppl")
  5196. CFLAGS="${CFLAGS} ${pplinc}"
  5197. LDFLAGS="${LDFLAGS} ${ppllibs}"
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
  5199. $as_echo_n "checking for installed CLooG PPL... " >&6; }
  5200. if test "${gcc_cv_cloog_type+set}" = set; then :
  5201. $as_echo_n "(cached) " >&6
  5202. else
  5203. LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
  5204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5205. /* end confdefs.h. */
  5206. #include "cloog/cloog.h"
  5207. #include "cloog/ppl/cloog.h"
  5208. int
  5209. main ()
  5210. {
  5211. cloog_version ()
  5212. ;
  5213. return 0;
  5214. }
  5215. _ACEOF
  5216. if ac_fn_c_try_link "$LINENO"; then :
  5217. gcc_cv_cloog_type="PPL"
  5218. else
  5219. gcc_cv_cloog_type=no
  5220. fi
  5221. rm -f core conftest.err conftest.$ac_objext \
  5222. conftest$ac_exeext conftest.$ac_ext
  5223. fi
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
  5225. $as_echo "$gcc_cv_cloog_type" >&6; }
  5226. ;;
  5227. *)
  5228. gcc_cv_cloog_type=""
  5229. esac
  5230. case $gcc_cv_cloog_type in
  5231. "PPL Legacy")
  5232. clooginc="${clooginc}"
  5233. clooglibs="${clooglibs} -lcloog"
  5234. cloog_org=no
  5235. ;;
  5236. "ISL")
  5237. clooginc="${clooginc} ${_cloogorginc}"
  5238. clooglibs="${clooglibs} -lcloog-isl -lisl"
  5239. cloog_org=yes
  5240. ;;
  5241. "PPL")
  5242. clooginc="${clooginc} ${_cloogorginc}"
  5243. clooglibs="${clooglibs} -lcloog-ppl"
  5244. cloog_org=yes
  5245. ;;
  5246. *)
  5247. clooglibs=
  5248. clooginc=
  5249. cloog_org=
  5250. ;;
  5251. esac
  5252. LIBS=$_cloog_saved_LIBS
  5253. CFLAGS=$_cloog_saved_CFLAGS
  5254. CPPFLAGS=$_cloog_saved_CPPFLAGS
  5255. LDFLAGS=$_cloog_saved_LDFLAGS
  5256. if test "${ENABLE_CLOOG_CHECK}" = yes ; then
  5257. _cloog_saved_CFLAGS=$CFLAGS
  5258. _cloog_saved_LDFLAGS=$LDFLAGS
  5259. CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
  5260. LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
  5261. if test "${cloog_org}" = yes ; then
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
  5263. $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
  5264. if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
  5265. $as_echo_n "(cached) " >&6
  5266. else
  5267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5268. /* end confdefs.h. */
  5269. #include "cloog/cloog.h"
  5270. int
  5271. main ()
  5272. {
  5273. #if CLOOG_VERSION_MAJOR != 0 \
  5274. || CLOOG_VERSION_MINOR != 16 \
  5275. || CLOOG_VERSION_REVISION < 1
  5276. choke me
  5277. #endif
  5278. ;
  5279. return 0;
  5280. }
  5281. _ACEOF
  5282. if ac_fn_c_try_compile "$LINENO"; then :
  5283. gcc_cv_cloog_ct_0_14_0=yes
  5284. else
  5285. gcc_cv_cloog_ct_0_14_0=no
  5286. fi
  5287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5288. fi
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
  5290. $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
  5291. elif test "${cloog_org}" = no ; then
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
  5293. $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
  5294. if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
  5295. $as_echo_n "(cached) " >&6
  5296. else
  5297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5298. /* end confdefs.h. */
  5299. #include "cloog/cloog.h"
  5300. int
  5301. main ()
  5302. {
  5303. #if CLOOG_VERSION_MAJOR != 0 \
  5304. || CLOOG_VERSION_MINOR != 15 \
  5305. || CLOOG_VERSION_REVISION < 5
  5306. choke me
  5307. #endif
  5308. ;
  5309. return 0;
  5310. }
  5311. _ACEOF
  5312. if ac_fn_c_try_compile "$LINENO"; then :
  5313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5314. /* end confdefs.h. */
  5315. #include "cloog/cloog.h"
  5316. int
  5317. main ()
  5318. {
  5319. #if CLOOG_VERSION_MAJOR != 0 \
  5320. || CLOOG_VERSION_MINOR != 15 \
  5321. || CLOOG_VERSION_REVISION < 9
  5322. choke me
  5323. #endif
  5324. ;
  5325. return 0;
  5326. }
  5327. _ACEOF
  5328. if ac_fn_c_try_compile "$LINENO"; then :
  5329. gcc_cv_cloog_ct_0_15_5=yes
  5330. else
  5331. gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
  5332. fi
  5333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5334. else
  5335. gcc_cv_cloog_ct_0_15_5=no
  5336. fi
  5337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5338. fi
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
  5340. $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
  5341. fi
  5342. CFLAGS=$_cloog_saved_CFLAGS
  5343. LDFLAGS=$_cloog_saved_LDFLAGS
  5344. fi
  5345. if test "x${with_cloog}" = xno; then
  5346. graphite_requested=no
  5347. elif test "x${with_cloog}" != x \
  5348. || test "x${with_cloog_include}" != x \
  5349. || test "x${with_cloog_lib}" != x ; then
  5350. graphite_requested=yes
  5351. else
  5352. graphite_requested=no
  5353. fi
  5354. if test "${gcc_cv_cloog_ct_0_14_0}" = no \
  5355. || test "${gcc_cv_cloog_rt_0_14_0}" = no \
  5356. || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
  5357. clooglibs=
  5358. clooginc=
  5359. fi
  5360. if test "${graphite_requested}" = yes \
  5361. && test "x${clooglibs}" = x \
  5362. && test "x${clooginc}" = x ; then
  5363. as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
  5364. fi
  5365. fi
  5366. # Check for LTO support.
  5367. # Check whether --enable-lto was given.
  5368. if test "${enable_lto+set}" = set; then :
  5369. enableval=$enable_lto; enable_lto=$enableval
  5370. else
  5371. enable_lto=yes; default_enable_lto=yes
  5372. fi
  5373. target_elf=no
  5374. case $target in
  5375. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  5376. *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
  5377. alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
  5378. target_elf=no
  5379. ;;
  5380. *)
  5381. target_elf=yes
  5382. ;;
  5383. esac
  5384. if test $target_elf = yes; then :
  5385. # ELF platforms build the lto-plugin always.
  5386. build_lto_plugin=yes
  5387. else
  5388. if test x"$default_enable_lto" = x"yes" ; then
  5389. case $target in
  5390. *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
  5391. # On other non-ELF platforms, LTO has yet to be validated.
  5392. *) enable_lto=no ;;
  5393. esac
  5394. else
  5395. # Apart from ELF platforms, only Windows and Darwin support LTO so far.
  5396. # It would also be nice to check the binutils support, but we don't
  5397. # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
  5398. # warn during gcc/ subconfigure; unless you're bootstrapping with
  5399. # -flto it won't be needed until after installation anyway.
  5400. case $target in
  5401. *-cygwin* | *-mingw* | *-apple-darwin*) ;;
  5402. *) if test x"$enable_lto" = x"yes"; then
  5403. as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
  5404. fi
  5405. ;;
  5406. esac
  5407. fi
  5408. # Among non-ELF, only Windows platforms support the lto-plugin so far.
  5409. # Build it unless LTO was explicitly disabled.
  5410. case $target in
  5411. *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
  5412. *) ;;
  5413. esac
  5414. fi
  5415. # By default, C is the only stage 1 language.
  5416. stage1_languages=,c,
  5417. # Target libraries that we bootstrap.
  5418. bootstrap_target_libs=,target-libgcc,
  5419. # Figure out what language subdirectories are present.
  5420. # Look if the user specified --enable-languages="..."; if not, use
  5421. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  5422. # go away some day.
  5423. # NB: embedded tabs in this IF block -- do not untabify
  5424. if test -d ${srcdir}/gcc; then
  5425. if test x"${enable_languages+set}" != xset; then
  5426. if test x"${LANGUAGES+set}" = xset; then
  5427. enable_languages="${LANGUAGES}"
  5428. echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  5429. else
  5430. enable_languages=all
  5431. fi
  5432. else
  5433. if test x"${enable_languages}" = x ||
  5434. test x"${enable_languages}" = xyes;
  5435. then
  5436. echo configure.in: --enable-languages needs at least one language argument 1>&2
  5437. exit 1
  5438. fi
  5439. fi
  5440. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  5441. # 'f95' is the old name for the 'fortran' language. We issue a warning
  5442. # and make the substitution.
  5443. case ,${enable_languages}, in
  5444. *,f95,*)
  5445. echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
  5446. enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
  5447. ;;
  5448. esac
  5449. # First scan to see if an enabled language requires some other language.
  5450. # We assume that a given config-lang.in will list all the language
  5451. # front ends it requires, even if some are required indirectly.
  5452. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5453. case ${lang_frag} in
  5454. ..) ;;
  5455. # The odd quoting in the next line works around
  5456. # an apparent bug in bash 1.12 on linux.
  5457. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5458. *)
  5459. # From the config-lang.in, get $language, $lang_requires, and
  5460. # $lang_requires_boot_languages.
  5461. language=
  5462. lang_requires=
  5463. lang_requires_boot_languages=
  5464. . ${lang_frag}
  5465. for other in ${lang_requires} ${lang_requires_boot_languages}; do
  5466. case ,${enable_languages}, in
  5467. *,$other,*) ;;
  5468. *,all,*) ;;
  5469. *,$language,*)
  5470. echo " \`$other' language required by \`$language'; enabling" 1>&2
  5471. enable_languages="${enable_languages},${other}"
  5472. ;;
  5473. esac
  5474. done
  5475. for other in ${lang_requires_boot_languages} ; do
  5476. if test "$other" != "c"; then
  5477. case ,${enable_stage1_languages}, in
  5478. *,$other,*) ;;
  5479. *,all,*) ;;
  5480. *)
  5481. case ,${enable_languages}, in
  5482. *,$language,*)
  5483. echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
  5484. enable_stage1_languages="$enable_stage1_languages,${other}"
  5485. ;;
  5486. esac
  5487. ;;
  5488. esac
  5489. fi
  5490. done
  5491. ;;
  5492. esac
  5493. done
  5494. new_enable_languages=,c,
  5495. # If LTO is enabled, add the LTO front end.
  5496. extra_host_libiberty_configure_flags=
  5497. if test "$enable_lto" = "yes" ; then
  5498. case ,${enable_languages}, in
  5499. *,lto,*) ;;
  5500. *) enable_languages="${enable_languages},lto" ;;
  5501. esac
  5502. if test "${build_lto_plugin}" = "yes" ; then
  5503. configdirs="$configdirs lto-plugin"
  5504. extra_host_libiberty_configure_flags=--enable-shared
  5505. fi
  5506. fi
  5507. missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
  5508. potential_languages=,c,
  5509. enabled_target_libs=
  5510. disabled_target_libs=
  5511. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5512. case ${lang_frag} in
  5513. ..) ;;
  5514. # The odd quoting in the next line works around
  5515. # an apparent bug in bash 1.12 on linux.
  5516. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5517. *)
  5518. # From the config-lang.in, get $language, $target_libs,
  5519. # $lang_dirs, $boot_language, and $build_by_default
  5520. language=
  5521. target_libs=
  5522. lang_dirs=
  5523. subdir_requires=
  5524. boot_language=no
  5525. build_by_default=yes
  5526. . ${lang_frag}
  5527. if test x${language} = x; then
  5528. echo "${lang_frag} doesn't set \$language." 1>&2
  5529. exit 1
  5530. fi
  5531. if test "$language" = "c++" \
  5532. && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
  5533. boot_language=yes
  5534. fi
  5535. case ,${enable_languages}, in
  5536. *,${language},*)
  5537. # Language was explicitly selected; include it.
  5538. add_this_lang=yes
  5539. ;;
  5540. *,all,*)
  5541. # 'all' was selected, select it if it is a default language
  5542. add_this_lang=${build_by_default}
  5543. ;;
  5544. *)
  5545. add_this_lang=no
  5546. ;;
  5547. esac
  5548. # Disable languages that need other directories if these aren't available.
  5549. for i in $subdir_requires; do
  5550. test -f "$srcdir/gcc/$i/config-lang.in" && continue
  5551. case ,${enable_languages}, in
  5552. *,${language},*)
  5553. # Specifically requested language; tell them.
  5554. as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
  5555. ;;
  5556. *)
  5557. # Silently disable.
  5558. add_this_lang=unsupported
  5559. ;;
  5560. esac
  5561. done
  5562. # Disable Ada if no preexisting GNAT is available.
  5563. case ,${enable_languages},:${language}:${have_gnat} in
  5564. *,${language},*:ada:no)
  5565. # Specifically requested language; tell them.
  5566. as_fn_error "GNAT is required to build $language" "$LINENO" 5
  5567. ;;
  5568. *:ada:no)
  5569. # Silently disable.
  5570. add_this_lang=unsupported
  5571. ;;
  5572. esac
  5573. # Disable a language that is unsupported by the target.
  5574. case " $unsupported_languages " in
  5575. *" $language "*)
  5576. add_this_lang=unsupported
  5577. ;;
  5578. esac
  5579. case $add_this_lang in
  5580. unsupported)
  5581. # Remove language-dependent dirs.
  5582. disabled_target_libs="$disabled_target_libs $target_libs"
  5583. noconfigdirs="$noconfigdirs $lang_dirs"
  5584. ;;
  5585. no)
  5586. # Remove language-dependent dirs; still show language as supported.
  5587. disabled_target_libs="$disabled_target_libs $target_libs"
  5588. noconfigdirs="$noconfigdirs $lang_dirs"
  5589. potential_languages="${potential_languages}${language},"
  5590. ;;
  5591. yes)
  5592. new_enable_languages="${new_enable_languages}${language},"
  5593. potential_languages="${potential_languages}${language},"
  5594. missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
  5595. enabled_target_libs="$enabled_target_libs $target_libs"
  5596. case "${boot_language}:,$enable_stage1_languages," in
  5597. yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
  5598. # Add to (comma-separated) list of stage 1 languages.
  5599. case ",$stage1_languages," in
  5600. *,$language,* | ,yes, | ,all,) ;;
  5601. *) stage1_languages="${stage1_languages}${language}," ;;
  5602. esac
  5603. # We need to bootstrap any supporting libraries.
  5604. bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
  5605. ;;
  5606. esac
  5607. ;;
  5608. esac
  5609. ;;
  5610. esac
  5611. done
  5612. # Add target libraries which are only needed for disabled languages
  5613. # to noconfigdirs.
  5614. if test -n "$disabled_target_libs"; then
  5615. for dir in $disabled_target_libs; do
  5616. case " $enabled_target_libs " in
  5617. *" ${dir} "*) ;;
  5618. *) noconfigdirs="$noconfigdirs $dir" ;;
  5619. esac
  5620. done
  5621. fi
  5622. # Check whether --enable-stage1-languages was given.
  5623. if test "${enable_stage1_languages+set}" = set; then :
  5624. enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
  5625. ,no,|,,)
  5626. # Set it to something that will have no effect in the loop below
  5627. enable_stage1_languages=c ;;
  5628. ,yes,)
  5629. enable_stage1_languages=`echo $new_enable_languages | \
  5630. sed -e "s/^,//" -e "s/,$//" ` ;;
  5631. *,all,*)
  5632. enable_stage1_languages=`echo ,$enable_stage1_languages, | \
  5633. sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
  5634. esac
  5635. # Add "good" languages from enable_stage1_languages to stage1_languages,
  5636. # while "bad" languages go in missing_languages. Leave no duplicates.
  5637. for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
  5638. case $potential_languages in
  5639. *,$i,*)
  5640. case $stage1_languages in
  5641. *,$i,*) ;;
  5642. *) stage1_languages="$stage1_languages$i," ;;
  5643. esac ;;
  5644. *)
  5645. case $missing_languages in
  5646. *,$i,*) ;;
  5647. *) missing_languages="$missing_languages$i," ;;
  5648. esac ;;
  5649. esac
  5650. done
  5651. fi
  5652. # Remove leading/trailing commas that were added for simplicity
  5653. potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
  5654. missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
  5655. stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
  5656. new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
  5657. if test "x$missing_languages" != x; then
  5658. as_fn_error "
  5659. The following requested languages could not be built: ${missing_languages}
  5660. Supported languages are: ${potential_languages}" "$LINENO" 5
  5661. fi
  5662. if test "x$new_enable_languages" != "x$enable_languages"; then
  5663. echo The following languages will be built: ${new_enable_languages}
  5664. enable_languages="$new_enable_languages"
  5665. fi
  5666. ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
  5667. fi
  5668. # Handle --disable-<component> generically.
  5669. for dir in $configdirs $build_configdirs $target_configdirs ; do
  5670. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
  5671. varname=`echo $dirname | sed -e s/+/_/g`
  5672. if eval test x\${enable_${varname}} "=" xno ; then
  5673. noconfigdirs="$noconfigdirs $dir"
  5674. fi
  5675. done
  5676. # Check for Boehm's garbage collector
  5677. # Check whether --enable-objc-gc was given.
  5678. if test "${enable_objc_gc+set}" = set; then :
  5679. enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
  5680. *,objc,*:*:yes:*target-boehm-gc*)
  5681. as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
  5682. ;;
  5683. esac
  5684. fi
  5685. # Make sure we only build Boehm's garbage collector if required.
  5686. case ,${enable_languages},:${enable_objc_gc} in
  5687. *,objc,*:yes)
  5688. # Keep target-boehm-gc if requested for Objective-C.
  5689. ;;
  5690. *)
  5691. # Otherwise remove target-boehm-gc depending on target-libjava.
  5692. if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
  5693. noconfigdirs="$noconfigdirs target-boehm-gc"
  5694. fi
  5695. ;;
  5696. esac
  5697. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
  5698. # $build_configdirs and $target_configdirs.
  5699. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  5700. notsupp=""
  5701. for dir in . $skipdirs $noconfigdirs ; do
  5702. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
  5703. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5704. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  5705. if test -r $srcdir/$dirname/configure ; then
  5706. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5707. true
  5708. else
  5709. notsupp="$notsupp $dir"
  5710. fi
  5711. fi
  5712. fi
  5713. if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5714. build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
  5715. if test -r $srcdir/$dirname/configure ; then
  5716. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5717. true
  5718. else
  5719. notsupp="$notsupp $dir"
  5720. fi
  5721. fi
  5722. fi
  5723. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5724. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  5725. if test -r $srcdir/$dirname/configure ; then
  5726. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5727. true
  5728. else
  5729. notsupp="$notsupp $dir"
  5730. fi
  5731. fi
  5732. fi
  5733. done
  5734. # Sometimes the tools are distributed with libiberty but with no other
  5735. # libraries. In that case, we don't want to build target-libiberty.
  5736. # Don't let libgcc imply libiberty either.
  5737. if test -n "${target_configdirs}" ; then
  5738. libgcc=
  5739. others=
  5740. for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
  5741. if test "$i" = "libgcc"; then
  5742. libgcc=target-libgcc
  5743. elif test "$i" != "libiberty" ; then
  5744. if test -r $srcdir/$i/configure ; then
  5745. others=yes;
  5746. break;
  5747. fi
  5748. fi
  5749. done
  5750. if test -z "${others}" ; then
  5751. target_configdirs=$libgcc
  5752. fi
  5753. fi
  5754. # Quietly strip out all directories which aren't configurable in this tree.
  5755. # This relies on all configurable subdirectories being autoconfiscated, which
  5756. # is now the case.
  5757. build_configdirs_all="$build_configdirs"
  5758. build_configdirs=
  5759. for i in ${build_configdirs_all} ; do
  5760. j=`echo $i | sed -e s/build-//g`
  5761. if test -f ${srcdir}/$j/configure ; then
  5762. build_configdirs="${build_configdirs} $i"
  5763. fi
  5764. done
  5765. configdirs_all="$configdirs"
  5766. configdirs=
  5767. for i in ${configdirs_all} ; do
  5768. if test -f ${srcdir}/$i/configure ; then
  5769. configdirs="${configdirs} $i"
  5770. fi
  5771. done
  5772. target_configdirs_all="$target_configdirs"
  5773. target_configdirs=
  5774. for i in ${target_configdirs_all} ; do
  5775. j=`echo $i | sed -e s/target-//g`
  5776. if test -f ${srcdir}/$j/configure ; then
  5777. target_configdirs="${target_configdirs} $i"
  5778. fi
  5779. done
  5780. # Produce a warning message for the subdirs we can't configure.
  5781. # This isn't especially interesting in the Cygnus tree, but in the individual
  5782. # FSF releases, it's important to let people know when their machine isn't
  5783. # supported by the one or two programs in a package.
  5784. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  5785. # If $appdirs is non-empty, at least one of those directories must still
  5786. # be configured, or we error out. (E.g., if the gas release supports a
  5787. # specified target in some subdirs but not the gas subdir, we shouldn't
  5788. # pretend that all is well.)
  5789. if test -n "$appdirs" ; then
  5790. for dir in $appdirs ; do
  5791. if test -r $dir/Makefile.in ; then
  5792. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5793. appdirs=""
  5794. break
  5795. fi
  5796. if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
  5797. appdirs=""
  5798. break
  5799. fi
  5800. fi
  5801. done
  5802. if test -n "$appdirs" ; then
  5803. echo "*** This configuration is not supported by this package." 1>&2
  5804. exit 1
  5805. fi
  5806. fi
  5807. # Okay, some application will build, or we don't care to check. Still
  5808. # notify of subdirs not getting built.
  5809. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  5810. echo " ${notsupp}" 1>&2
  5811. echo " (Any other directories should still work fine.)" 1>&2
  5812. fi
  5813. case "$host" in
  5814. *msdosdjgpp*)
  5815. enable_gdbtk=no ;;
  5816. esac
  5817. # To find our prefix, in gcc_cv_tool_prefix.
  5818. # The user is always right.
  5819. if test "${PATH_SEPARATOR+set}" != set; then
  5820. echo "#! /bin/sh" >conf$$.sh
  5821. echo "exit 0" >>conf$$.sh
  5822. chmod +x conf$$.sh
  5823. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5824. PATH_SEPARATOR=';'
  5825. else
  5826. PATH_SEPARATOR=:
  5827. fi
  5828. rm -f conf$$.sh
  5829. fi
  5830. if test "x$exec_prefix" = xNONE; then
  5831. if test "x$prefix" = xNONE; then
  5832. gcc_cv_tool_prefix=$ac_default_prefix
  5833. else
  5834. gcc_cv_tool_prefix=$prefix
  5835. fi
  5836. else
  5837. gcc_cv_tool_prefix=$exec_prefix
  5838. fi
  5839. # If there is no compiler in the tree, use the PATH only. In any
  5840. # case, if there is no compiler in the tree nobody should use
  5841. # AS_FOR_TARGET and LD_FOR_TARGET.
  5842. if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
  5843. gcc_version=`cat $srcdir/gcc/BASE-VER`
  5844. gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5845. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
  5846. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5847. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
  5848. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5849. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
  5850. else
  5851. gcc_cv_tool_dirs=
  5852. fi
  5853. if test x$build = x$target && test -n "$md_exec_prefix"; then
  5854. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
  5855. fi
  5856. copy_dirs=
  5857. # Check whether --with-build-sysroot was given.
  5858. if test "${with_build_sysroot+set}" = set; then :
  5859. withval=$with_build_sysroot; if test x"$withval" != x ; then
  5860. SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  5861. fi
  5862. else
  5863. SYSROOT_CFLAGS_FOR_TARGET=
  5864. fi
  5865. # Check whether --with-debug-prefix-map was given.
  5866. if test "${with_debug_prefix_map+set}" = set; then :
  5867. withval=$with_debug_prefix_map; if test x"$withval" != x; then
  5868. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  5869. for debug_map in $withval; do
  5870. DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
  5871. done
  5872. fi
  5873. else
  5874. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  5875. fi
  5876. # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
  5877. # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
  5878. # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
  5879. # We want to ensure that TARGET libraries (which we know are built with
  5880. # gcc) are built with "-O2 -g", so include those options when setting
  5881. # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
  5882. if test "x$CFLAGS_FOR_TARGET" = x; then
  5883. CFLAGS_FOR_TARGET=$CFLAGS
  5884. case " $CFLAGS " in
  5885. *" -O2 "*) ;;
  5886. *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
  5887. esac
  5888. case " $CFLAGS " in
  5889. *" -g "* | *" -g3 "*) ;;
  5890. *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
  5891. esac
  5892. fi
  5893. if test "x$CXXFLAGS_FOR_TARGET" = x; then
  5894. CXXFLAGS_FOR_TARGET=$CXXFLAGS
  5895. case " $CXXFLAGS " in
  5896. *" -O2 "*) ;;
  5897. *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
  5898. esac
  5899. case " $CXXFLAGS " in
  5900. *" -g "* | *" -g3 "*) ;;
  5901. *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
  5902. esac
  5903. fi
  5904. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  5905. # the named directory are copied to $(tooldir)/sys-include.
  5906. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
  5907. if test x${is_cross_compiler} = xno ; then
  5908. echo 1>&2 '***' --with-headers is only supported when cross compiling
  5909. exit 1
  5910. fi
  5911. if test x"${with_headers}" != xyes ; then
  5912. x=${gcc_cv_tool_prefix}
  5913. copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
  5914. fi
  5915. fi
  5916. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  5917. # the name directories are copied to $(tooldir)/lib. Multiple directories
  5918. # are permitted.
  5919. if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  5920. if test x${is_cross_compiler} = xno ; then
  5921. echo 1>&2 '***' --with-libs is only supported when cross compiling
  5922. exit 1
  5923. fi
  5924. if test x"${with_libs}" != xyes ; then
  5925. # Copy the libraries in reverse order, so that files in the first named
  5926. # library override files in subsequent libraries.
  5927. x=${gcc_cv_tool_prefix}
  5928. for l in ${with_libs}; do
  5929. copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
  5930. done
  5931. fi
  5932. fi
  5933. # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
  5934. #
  5935. # This is done by determining whether or not the appropriate directory
  5936. # is available, and by checking whether or not specific configurations
  5937. # have requested that this magic not happen.
  5938. #
  5939. # The command line options always override the explicit settings in
  5940. # configure.in, and the settings in configure.in override this magic.
  5941. #
  5942. # If the default for a toolchain is to use GNU as and ld, and you don't
  5943. # want to do that, then you should use the --without-gnu-as and
  5944. # --without-gnu-ld options for the configure script. Similarly, if
  5945. # the default is to use the included zlib and you don't want to do that,
  5946. # you should use the --with-system-zlib option for the configure script.
  5947. if test x${use_gnu_as} = x &&
  5948. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  5949. with_gnu_as=yes
  5950. extra_host_args="$extra_host_args --with-gnu-as"
  5951. fi
  5952. if test x${use_gnu_ld} = x &&
  5953. echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
  5954. with_gnu_ld=yes
  5955. extra_host_args="$extra_host_args --with-gnu-ld"
  5956. fi
  5957. if test x${use_included_zlib} = x &&
  5958. echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
  5959. :
  5960. else
  5961. with_system_zlib=yes
  5962. extra_host_args="$extra_host_args --with-system-zlib"
  5963. fi
  5964. # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
  5965. # can detect this case.
  5966. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  5967. with_newlib=yes
  5968. extra_host_args="$extra_host_args --with-newlib"
  5969. fi
  5970. # Handle ${copy_dirs}
  5971. set fnord ${copy_dirs}
  5972. shift
  5973. while test $# != 0 ; do
  5974. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  5975. :
  5976. else
  5977. echo Copying $1 to $2
  5978. # Use the install script to create the directory and all required
  5979. # parent directories.
  5980. if test -d $2 ; then
  5981. :
  5982. else
  5983. echo >config.temp
  5984. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  5985. fi
  5986. # Copy the directory, assuming we have tar.
  5987. # FIXME: Should we use B in the second tar? Not all systems support it.
  5988. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  5989. # It is the responsibility of the user to correctly adjust all
  5990. # symlinks. If somebody can figure out how to handle them correctly
  5991. # here, feel free to add the code.
  5992. echo $1 > $2/COPIED
  5993. fi
  5994. shift; shift
  5995. done
  5996. # Determine a target-dependent exec_prefix that the installed
  5997. # gcc will search in. Keep this list sorted by triplet, with
  5998. # the *-*-osname triplets last.
  5999. md_exec_prefix=
  6000. case "${target}" in
  6001. alpha*-*-*vms*)
  6002. md_exec_prefix=/gnu/lib/gcc-lib
  6003. ;;
  6004. i[34567]86-pc-msdosdjgpp*)
  6005. md_exec_prefix=/dev/env/DJDIR/bin
  6006. ;;
  6007. i[34567]86-*-sco3.2v5*)
  6008. if test $with_gnu_as = yes; then
  6009. md_exec_prefix=/usr/gnu/bin
  6010. else
  6011. md_exec_prefix=/usr/ccs/bin/elf
  6012. fi
  6013. ;;
  6014. mn10300-*-* | \
  6015. powerpc-*-chorusos* | \
  6016. powerpc*-*-eabi* | \
  6017. powerpc*-*-sysv* | \
  6018. powerpc*-*-kaos* | \
  6019. s390x-ibm-tpf*)
  6020. md_exec_prefix=/usr/ccs/bin
  6021. ;;
  6022. sparc64-*-elf*)
  6023. ;;
  6024. v850*-*-*)
  6025. md_exec_prefix=/usr/ccs/bin
  6026. ;;
  6027. xtensa*-*-elf*)
  6028. ;;
  6029. *-*-beos* | \
  6030. *-*-elf* | \
  6031. *-*-hpux* | \
  6032. *-*-netware* | \
  6033. *-*-nto-qnx* | \
  6034. *-*-rtems* | \
  6035. *-*-solaris2* | \
  6036. *-*-sysv[45]* | \
  6037. *-*-vxworks* | \
  6038. *-wrs-windiss)
  6039. md_exec_prefix=/usr/ccs/bin
  6040. ;;
  6041. esac
  6042. extra_arflags_for_target=
  6043. extra_nmflags_for_target=
  6044. extra_ranlibflags_for_target=
  6045. target_makefile_frag=/dev/null
  6046. case "${target}" in
  6047. spu-*-*)
  6048. target_makefile_frag="config/mt-spu"
  6049. ;;
  6050. mips*-sde-elf*)
  6051. target_makefile_frag="config/mt-sde"
  6052. ;;
  6053. mipsisa*-*-elfoabi*)
  6054. target_makefile_frag="config/mt-mips-elfoabi"
  6055. ;;
  6056. mips*-*-*linux* | mips*-*-gnu*)
  6057. target_makefile_frag="config/mt-mips-gnu"
  6058. ;;
  6059. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  6060. target_makefile_frag="config/mt-gnu"
  6061. ;;
  6062. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  6063. # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
  6064. # commands to handle both 32-bit and 64-bit objects. These flags are
  6065. # harmless if we're using GNU nm or ar.
  6066. extra_arflags_for_target=" -X32_64"
  6067. extra_nmflags_for_target=" -B -X32_64"
  6068. ;;
  6069. *-*-darwin[3-9]*)
  6070. # ranlib before Darwin10 requires the -c flag to look at common symbols.
  6071. extra_ranlibflags_for_target=" -c"
  6072. ;;
  6073. esac
  6074. alphaieee_frag=/dev/null
  6075. case $target in
  6076. alpha*-*-*)
  6077. # This just makes sure to use the -mieee option to build target libs.
  6078. # This should probably be set individually by each library.
  6079. alphaieee_frag="config/mt-alphaieee"
  6080. ;;
  6081. esac
  6082. # If --enable-target-optspace always use -Os instead of -O2 to build
  6083. # the target libraries, similarly if it is not specified, use -Os
  6084. # on selected platforms.
  6085. ospace_frag=/dev/null
  6086. case "${enable_target_optspace}:${target}" in
  6087. yes:*)
  6088. ospace_frag="config/mt-ospace"
  6089. ;;
  6090. :d30v-*)
  6091. ospace_frag="config/mt-d30v"
  6092. ;;
  6093. :m32r-* | :d10v-* | :fr30-*)
  6094. ospace_frag="config/mt-ospace"
  6095. ;;
  6096. no:* | :*)
  6097. ;;
  6098. *)
  6099. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  6100. ;;
  6101. esac
  6102. # Default to using --with-stabs for certain targets.
  6103. if test x${with_stabs} = x ; then
  6104. case "${target}" in
  6105. mips*-*-irix[56]*)
  6106. ;;
  6107. mips*-*-* | alpha*-*-osf*)
  6108. with_stabs=yes;
  6109. extra_host_args="${extra_host_args} --with-stabs"
  6110. ;;
  6111. esac
  6112. fi
  6113. # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
  6114. # them automatically.
  6115. case "${host}" in
  6116. hppa*64*-*-hpux11*)
  6117. extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
  6118. ;;
  6119. esac
  6120. # Some systems (e.g., one of the i386-aix systems the gas testers are
  6121. # using) don't handle "\$" correctly, so don't use it here.
  6122. tooldir='${exec_prefix}'/${target_noncanonical}
  6123. build_tooldir=${tooldir}
  6124. # Create a .gdbinit file which runs the one in srcdir
  6125. # and tells GDB to look there for source files.
  6126. if test -r ${srcdir}/.gdbinit ; then
  6127. case ${srcdir} in
  6128. .) ;;
  6129. *) cat > ./.gdbinit <<EOF
  6130. # ${NO_EDIT}
  6131. dir ${srcdir}
  6132. dir .
  6133. source ${srcdir}/.gdbinit
  6134. EOF
  6135. ;;
  6136. esac
  6137. fi
  6138. # Make sure that the compiler is able to generate an executable. If it
  6139. # can't, we are probably in trouble. We don't care whether we can run the
  6140. # executable--we might be using a cross compiler--we only care whether it
  6141. # can be created. At this point the main configure script has set CC.
  6142. we_are_ok=no
  6143. echo "int main () { return 0; }" > conftest.c
  6144. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6145. if test $? = 0 ; then
  6146. if test -s conftest || test -s conftest.exe ; then
  6147. we_are_ok=yes
  6148. fi
  6149. fi
  6150. case $we_are_ok in
  6151. no)
  6152. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  6153. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  6154. rm -f conftest*
  6155. exit 1
  6156. ;;
  6157. esac
  6158. rm -f conftest*
  6159. # The Solaris /usr/ucb/cc compiler does not appear to work.
  6160. case "${host}" in
  6161. sparc-sun-solaris2*)
  6162. CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
  6163. if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
  6164. could_use=
  6165. test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
  6166. if test -d /opt/cygnus/bin ; then
  6167. if test "$could_use" = "" ; then
  6168. could_use="/opt/cygnus/bin"
  6169. else
  6170. could_use="$could_use or /opt/cygnus/bin"
  6171. fi
  6172. fi
  6173. if test "$could_use" = "" ; then
  6174. echo "Warning: compilation may fail because you're using"
  6175. echo "/usr/ucb/cc. You should change your PATH or CC "
  6176. echo "variable and rerun configure."
  6177. else
  6178. echo "Warning: compilation may fail because you're using"
  6179. echo "/usr/ucb/cc, when you should use the C compiler from"
  6180. echo "$could_use. You should change your"
  6181. echo "PATH or CC variable and rerun configure."
  6182. fi
  6183. fi
  6184. ;;
  6185. esac
  6186. # Decide which environment variable is used to find dynamic libraries.
  6187. case "${host}" in
  6188. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  6189. *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  6190. *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  6191. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  6192. esac
  6193. # On systems where the dynamic library environment variable is PATH,
  6194. # gcc/ will put dynamic libraries into a subdirectory to avoid adding
  6195. # built executables to PATH.
  6196. if test "$RPATH_ENVVAR" = PATH; then
  6197. GCC_SHLIB_SUBDIR=/shlib
  6198. else
  6199. GCC_SHLIB_SUBDIR=
  6200. fi
  6201. # Record target_configdirs and the configure arguments for target and
  6202. # build configuration in Makefile.
  6203. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  6204. build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
  6205. # If we are building libgomp, bootstrap it.
  6206. if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
  6207. bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
  6208. fi
  6209. # Determine whether gdb needs tk/tcl or not.
  6210. # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
  6211. # and in that case we want gdb to be built without tk. Ugh!
  6212. # In fact I believe gdb is the *only* package directly dependent on tk,
  6213. # so we should be able to put the 'maybe's in unconditionally and
  6214. # leave out the maybe dependencies when enable_gdbtk is false. I'm not
  6215. # 100% sure that that's safe though.
  6216. gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
  6217. case "$enable_gdbtk" in
  6218. no)
  6219. GDB_TK="" ;;
  6220. yes)
  6221. GDB_TK="${gdb_tk}" ;;
  6222. *)
  6223. # Only add the dependency on gdbtk when GDBtk is part of the gdb
  6224. # distro. Eventually someone will fix this and move Insight, nee
  6225. # gdbtk to a separate directory.
  6226. if test -d ${srcdir}/gdb/gdbtk ; then
  6227. GDB_TK="${gdb_tk}"
  6228. else
  6229. GDB_TK=""
  6230. fi
  6231. ;;
  6232. esac
  6233. CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
  6234. INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
  6235. # Strip out unwanted targets.
  6236. # While at that, we remove Makefiles if we were started for recursive
  6237. # configuration, so that the top-level Makefile reconfigures them,
  6238. # like we used to do when configure itself was recursive.
  6239. # Loop over modules. We used to use the "$extrasub" feature from Autoconf
  6240. # but now we're fixing up the Makefile ourselves with the additional
  6241. # commands passed to AC_CONFIG_FILES. Use separate variables
  6242. # extrasub-{build,host,target} not because there is any reason to split
  6243. # the substitutions up that way, but only to remain below the limit of
  6244. # 99 commands in a script, for HP-UX sed.
  6245. # Do not nest @if/@endif pairs, because configure will not warn you at all.
  6246. # Check whether --enable-bootstrap was given.
  6247. if test "${enable_bootstrap+set}" = set; then :
  6248. enableval=$enable_bootstrap;
  6249. else
  6250. enable_bootstrap=default
  6251. fi
  6252. # Issue errors and warnings for invalid/strange bootstrap combinations.
  6253. case "$configdirs" in
  6254. *gcc*) have_compiler=yes ;;
  6255. *) have_compiler=no ;;
  6256. esac
  6257. case "$have_compiler:$host:$target:$enable_bootstrap" in
  6258. *:*:*:no) ;;
  6259. # Default behavior. Enable bootstrap if we have a compiler
  6260. # and we are in a native configuration.
  6261. yes:$build:$build:default)
  6262. enable_bootstrap=yes ;;
  6263. *:*:*:default)
  6264. enable_bootstrap=no ;;
  6265. # We have a compiler and we are in a native configuration, bootstrap is ok
  6266. yes:$build:$build:yes)
  6267. ;;
  6268. # Other configurations, but we have a compiler. Assume the user knows
  6269. # what he's doing.
  6270. yes:*:*:yes)
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
  6272. $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
  6273. ;;
  6274. # No compiler: if they passed --enable-bootstrap explicitly, fail
  6275. no:*:*:yes)
  6276. as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
  6277. # Fail if wrong command line
  6278. *)
  6279. as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
  6280. ;;
  6281. esac
  6282. case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
  6283. *,c++,*:yes:yes) ;;
  6284. *:yes:yes)
  6285. as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
  6286. ;;
  6287. esac
  6288. case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
  6289. yes:yes:*\ gold\ *:*,c++,*) ;;
  6290. yes:yes:*\ gold\ *:*)
  6291. as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
  6292. ;;
  6293. esac
  6294. # Adjust the toplevel makefile according to whether bootstrap was selected.
  6295. case $enable_bootstrap in
  6296. yes)
  6297. bootstrap_suffix=bootstrap
  6298. BUILD_CONFIG=bootstrap-debug
  6299. ;;
  6300. no)
  6301. bootstrap_suffix=no-bootstrap
  6302. BUILD_CONFIG=
  6303. ;;
  6304. esac
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
  6306. $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
  6307. # Check whether --with-build-config was given.
  6308. if test "${with_build_config+set}" = set; then :
  6309. withval=$with_build_config; case $with_build_config in
  6310. yes) with_build_config= ;;
  6311. no) with_build_config= BUILD_CONFIG= ;;
  6312. esac
  6313. fi
  6314. if test "x${with_build_config}" != x; then
  6315. BUILD_CONFIG=$with_build_config
  6316. else
  6317. case $BUILD_CONFIG in
  6318. bootstrap-debug)
  6319. if echo "int f (void) { return 0; }" > conftest.c &&
  6320. ${CC} -c conftest.c &&
  6321. mv conftest.o conftest.o.g0 &&
  6322. ${CC} -c -g conftest.c &&
  6323. mv conftest.o conftest.o.g &&
  6324. ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
  6325. :
  6326. else
  6327. BUILD_CONFIG=
  6328. fi
  6329. rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
  6330. ;;
  6331. esac
  6332. fi
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
  6334. $as_echo "$BUILD_CONFIG" >&6; }
  6335. extrasub_build=
  6336. for module in ${build_configdirs} ; do
  6337. if test -z "${no_recursion}" \
  6338. && test -f ${build_subdir}/${module}/Makefile; then
  6339. echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
  6340. rm -f ${build_subdir}/${module}/Makefile
  6341. fi
  6342. extrasub_build="$extrasub_build
  6343. /^@if build-$module\$/d
  6344. /^@endif build-$module\$/d
  6345. /^@if build-$module-$bootstrap_suffix\$/d
  6346. /^@endif build-$module-$bootstrap_suffix\$/d"
  6347. done
  6348. extrasub_host=
  6349. for module in ${configdirs} ; do
  6350. if test -z "${no_recursion}"; then
  6351. for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
  6352. if test -f ${file}; then
  6353. echo 1>&2 "*** removing ${file} to force reconfigure"
  6354. rm -f ${file}
  6355. fi
  6356. done
  6357. fi
  6358. extrasub_host="$extrasub_host
  6359. /^@if $module\$/d
  6360. /^@endif $module\$/d
  6361. /^@if $module-$bootstrap_suffix\$/d
  6362. /^@endif $module-$bootstrap_suffix\$/d"
  6363. done
  6364. extrasub_target=
  6365. for module in ${target_configdirs} ; do
  6366. if test -z "${no_recursion}" \
  6367. && test -f ${target_subdir}/${module}/Makefile; then
  6368. echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
  6369. rm -f ${target_subdir}/${module}/Makefile
  6370. fi
  6371. # We only bootstrap target libraries listed in bootstrap_target_libs.
  6372. case $bootstrap_target_libs in
  6373. *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
  6374. *) target_bootstrap_suffix=no-bootstrap ;;
  6375. esac
  6376. extrasub_target="$extrasub_target
  6377. /^@if target-$module\$/d
  6378. /^@endif target-$module\$/d
  6379. /^@if target-$module-$target_bootstrap_suffix\$/d
  6380. /^@endif target-$module-$target_bootstrap_suffix\$/d"
  6381. done
  6382. # Do the final fixup along with target modules.
  6383. extrasub_target="$extrasub_target
  6384. /^@if /,/^@endif /d"
  6385. # Create the serialization dependencies. This uses a temporary file.
  6386. # Check whether --enable-serial-configure was given.
  6387. if test "${enable_serial_configure+set}" = set; then :
  6388. enableval=$enable_serial_configure;
  6389. fi
  6390. case ${enable_serial_configure} in
  6391. yes)
  6392. enable_serial_build_configure=yes
  6393. enable_serial_host_configure=yes
  6394. enable_serial_target_configure=yes
  6395. ;;
  6396. esac
  6397. # These force 'configure's to be done one at a time, to avoid problems
  6398. # with contention over a shared config.cache.
  6399. rm -f serdep.tmp
  6400. echo '# serdep.tmp' > serdep.tmp
  6401. olditem=
  6402. test "x${enable_serial_build_configure}" = xyes &&
  6403. for item in ${build_configdirs} ; do
  6404. case ${olditem} in
  6405. "") ;;
  6406. *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
  6407. esac
  6408. olditem=${item}
  6409. done
  6410. olditem=
  6411. test "x${enable_serial_host_configure}" = xyes &&
  6412. for item in ${configdirs} ; do
  6413. case ${olditem} in
  6414. "") ;;
  6415. *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
  6416. esac
  6417. olditem=${item}
  6418. done
  6419. olditem=
  6420. test "x${enable_serial_target_configure}" = xyes &&
  6421. for item in ${target_configdirs} ; do
  6422. case ${olditem} in
  6423. "") ;;
  6424. *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
  6425. esac
  6426. olditem=${item}
  6427. done
  6428. serialization_dependencies=serdep.tmp
  6429. # Base args. Strip norecursion, cache-file, srcdir, host, build,
  6430. # target, nonopt, and variable assignments. These are the ones we
  6431. # might not want to pass down to subconfigures. The exception being
  6432. # --cache-file=/dev/null, which is used to turn off the use of cache
  6433. # files altogether, and which should be passed on to subconfigures.
  6434. # Also strip program-prefix, program-suffix, and program-transform-name,
  6435. # so that we can pass down a consistent program-transform-name.
  6436. baseargs=
  6437. tbaseargs=
  6438. keep_next=no
  6439. skip_next=no
  6440. eval "set -- $ac_configure_args"
  6441. for ac_arg
  6442. do
  6443. if test X"$skip_next" = X"yes"; then
  6444. skip_next=no
  6445. continue
  6446. fi
  6447. if test X"$keep_next" = X"yes"; then
  6448. case $ac_arg in
  6449. *\'*)
  6450. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6451. esac
  6452. baseargs="$baseargs '$ac_arg'"
  6453. tbaseargs="$tbaseargs '$ac_arg'"
  6454. keep_next=no
  6455. continue
  6456. fi
  6457. # Handle separated arguments. Based on the logic generated by
  6458. # autoconf 2.59.
  6459. case $ac_arg in
  6460. *=* | --config-cache | -C | -disable-* | --disable-* \
  6461. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  6462. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  6463. | -with-* | --with-* | -without-* | --without-* | --x)
  6464. separate_arg=no
  6465. ;;
  6466. -*)
  6467. separate_arg=yes
  6468. ;;
  6469. *)
  6470. separate_arg=no
  6471. ;;
  6472. esac
  6473. skip_targ=no
  6474. case $ac_arg in
  6475. --with-* | --without-*)
  6476. libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
  6477. case $libopt in
  6478. *[-_]include)
  6479. lib=`echo "$libopt" | sed 's,[-_]include$,,'`
  6480. ;;
  6481. *[-_]lib)
  6482. lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
  6483. ;;
  6484. *)
  6485. lib=$libopt
  6486. ;;
  6487. esac
  6488. case $lib in
  6489. mpc | mpfr | gmp | ppl | cloog)
  6490. # If we're processing --with-$lib, --with-$lib-include or
  6491. # --with-$lib-lib, for one of the libs above, and target is
  6492. # different from host, don't pass the current argument to any
  6493. # target library's configure.
  6494. if test x$is_cross_compiler = xyes; then
  6495. skip_targ=yes
  6496. fi
  6497. ;;
  6498. esac
  6499. ;;
  6500. esac
  6501. case "$ac_arg" in
  6502. --cache-file=/dev/null | \
  6503. -cache-file=/dev/null )
  6504. # Handled here to avoid the test to skip args below.
  6505. baseargs="$baseargs '$ac_arg'"
  6506. tbaseargs="$tbaseargs '$ac_arg'"
  6507. # Assert: $separate_arg should always be no.
  6508. keep_next=$separate_arg
  6509. ;;
  6510. --no*)
  6511. continue
  6512. ;;
  6513. --c* | \
  6514. --sr* | \
  6515. --ho* | \
  6516. --bu* | \
  6517. --t* | \
  6518. --program-* | \
  6519. -cache_file* | \
  6520. -srcdir* | \
  6521. -host* | \
  6522. -build* | \
  6523. -target* | \
  6524. -program-prefix* | \
  6525. -program-suffix* | \
  6526. -program-transform-name* )
  6527. skip_next=$separate_arg
  6528. continue
  6529. ;;
  6530. -*)
  6531. # An option. Add it.
  6532. case $ac_arg in
  6533. *\'*)
  6534. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6535. esac
  6536. baseargs="$baseargs '$ac_arg'"
  6537. if test X"$skip_targ" = Xno; then
  6538. tbaseargs="$tbaseargs '$ac_arg'"
  6539. fi
  6540. keep_next=$separate_arg
  6541. ;;
  6542. *)
  6543. # Either a variable assignment, or a nonopt (triplet). Don't
  6544. # pass it down; let the Makefile handle this.
  6545. continue
  6546. ;;
  6547. esac
  6548. done
  6549. # Remove the initial space we just introduced and, as these will be
  6550. # expanded by make, quote '$'.
  6551. baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  6552. # Add in --program-transform-name, after --program-prefix and
  6553. # --program-suffix have been applied to it. Autoconf has already
  6554. # doubled dollar signs and backslashes in program_transform_name; we want
  6555. # the backslashes un-doubled, and then the entire thing wrapped in single
  6556. # quotes, because this will be expanded first by make and then by the shell.
  6557. # Also, because we want to override the logic in subdir configure scripts to
  6558. # choose program_transform_name, replace any s,x,x, with s,y,y,.
  6559. sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
  6560. ${program_transform_name}
  6561. EOF_SED
  6562. gcc_transform_name=`cat conftestsed.out`
  6563. rm -f conftestsed.out
  6564. baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
  6565. tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
  6566. if test "$silent" = yes; then
  6567. baseargs="$baseargs --silent"
  6568. tbaseargs="$tbaseargs --silent"
  6569. fi
  6570. baseargs="$baseargs --disable-option-checking"
  6571. tbaseargs="$tbaseargs --disable-option-checking"
  6572. # Record and document user additions to sub configure arguments.
  6573. # For the build-side libraries, we just need to pretend we're native,
  6574. # and not use the same cache file. Multilibs are neither needed nor
  6575. # desired.
  6576. build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
  6577. # For host modules, accept cache file option, or specification as blank.
  6578. case "${cache_file}" in
  6579. "") # empty
  6580. cache_file_option="" ;;
  6581. /* | [A-Za-z]:[\\/]* ) # absolute path
  6582. cache_file_option="--cache-file=${cache_file}" ;;
  6583. *) # relative path
  6584. cache_file_option="--cache-file=../${cache_file}" ;;
  6585. esac
  6586. # Host dirs don't like to share a cache file either, horribly enough.
  6587. # This seems to be due to autoconf 2.5x stupidity.
  6588. host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
  6589. target_configargs="$target_configargs ${tbaseargs}"
  6590. # Passing a --with-cross-host argument lets the target libraries know
  6591. # whether they are being built with a cross-compiler or being built
  6592. # native. However, it would be better to use other mechanisms to make the
  6593. # sorts of decisions they want to make on this basis. Please consider
  6594. # this option to be deprecated. FIXME.
  6595. if test x${is_cross_compiler} = xyes ; then
  6596. target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
  6597. fi
  6598. # Default to --enable-multilib.
  6599. if test x${enable_multilib} = x ; then
  6600. target_configargs="--enable-multilib ${target_configargs}"
  6601. fi
  6602. # Pass --with-newlib if appropriate. Note that target_configdirs has
  6603. # changed from the earlier setting of with_newlib.
  6604. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  6605. target_configargs="--with-newlib ${target_configargs}"
  6606. fi
  6607. # Different target subdirs use different values of certain variables
  6608. # (notably CXX). Worse, multilibs use *lots* of different values.
  6609. # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
  6610. # it doesn't automatically accept command-line overrides of them.
  6611. # This means it's not safe for target subdirs to share a cache file,
  6612. # which is disgusting, but there you have it. Hopefully this can be
  6613. # fixed in future. It's still worthwhile to use a cache file for each
  6614. # directory. I think.
  6615. # Pass the appropriate --build, --host, --target and --cache-file arguments.
  6616. # We need to pass --target, as newer autoconf's requires consistency
  6617. # for target_alias and gcc doesn't manage it consistently.
  6618. target_configargs="--cache-file=./config.cache ${target_configargs}"
  6619. FLAGS_FOR_TARGET=
  6620. case " $target_configdirs " in
  6621. *" newlib "*)
  6622. case " $target_configargs " in
  6623. *" --with-newlib "*)
  6624. case "$target" in
  6625. *-cygwin*)
  6626. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
  6627. ;;
  6628. esac
  6629. # If we're not building GCC, don't discard standard headers.
  6630. if test -d ${srcdir}/gcc; then
  6631. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  6632. if test "${build}" != "${host}"; then
  6633. # On Canadian crosses, CC_FOR_TARGET will have already been set
  6634. # by `configure', so we won't have an opportunity to add -Bgcc/
  6635. # to it. This is right: we don't want to search that directory
  6636. # for binaries, but we want the header files in there, so add
  6637. # them explicitly.
  6638. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
  6639. # Someone might think of using the pre-installed headers on
  6640. # Canadian crosses, in case the installed compiler is not fully
  6641. # compatible with the compiler being built. In this case, it
  6642. # would be better to flag an error than risking having
  6643. # incompatible object files being constructed. We can't
  6644. # guarantee that an error will be flagged, but let's hope the
  6645. # compiler will do it, when presented with incompatible header
  6646. # files.
  6647. fi
  6648. fi
  6649. case "${target}-${is_cross_compiler}" in
  6650. i[3456789]86-*-linux*-no)
  6651. # Here host == target, so we don't need to build gcc,
  6652. # so we don't want to discard standard headers.
  6653. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  6654. ;;
  6655. *)
  6656. # If we're building newlib, use its generic headers last, but search
  6657. # for any libc-related directories first (so make it the last -B
  6658. # switch).
  6659. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  6660. # If we're building libgloss, find the startup file, simulator library
  6661. # and linker script.
  6662. case " $target_configdirs " in
  6663. *" libgloss "*)
  6664. # Look for startup file, simulator library and maybe linker script.
  6665. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
  6666. # Look for libnosys.a in case the target needs it.
  6667. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
  6668. # Most targets have the linker script in the source directory.
  6669. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
  6670. ;;
  6671. esac
  6672. ;;
  6673. esac
  6674. ;;
  6675. esac
  6676. ;;
  6677. esac
  6678. case "$target" in
  6679. x86_64-*mingw* | *-w64-mingw*)
  6680. # MinGW-w64 does not use newlib, nor does it use winsup. It may,
  6681. # however, use a symlink named 'mingw' in ${prefix} .
  6682. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
  6683. ;;
  6684. *-mingw*)
  6685. # MinGW can't be handled as Cygwin above since it does not use newlib.
  6686. 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'
  6687. ;;
  6688. esac
  6689. # Allow the user to override the flags for
  6690. # our build compiler if desired.
  6691. if test x"${build}" = x"${host}" ; then
  6692. CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
  6693. CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
  6694. LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
  6695. fi
  6696. # On Canadian crosses, we'll be searching the right directories for
  6697. # the previously-installed cross compiler, so don't bother to add
  6698. # flags for directories within the install tree of the compiler
  6699. # being built; programs in there won't even run.
  6700. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  6701. # Search for pre-installed headers if nothing else fits.
  6702. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
  6703. fi
  6704. if test "x${use_gnu_ld}" = x &&
  6705. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  6706. # Arrange for us to find uninstalled linker scripts.
  6707. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
  6708. fi
  6709. # Search for other target-specific linker scripts and such.
  6710. case "${target}" in
  6711. mep*)
  6712. FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
  6713. ;;
  6714. esac
  6715. # Makefile fragments.
  6716. for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
  6717. do
  6718. eval fragval=\$$frag
  6719. if test $fragval != /dev/null; then
  6720. eval $frag=${srcdir}/$fragval
  6721. fi
  6722. done
  6723. # Miscellanea: directories, flags, etc.
  6724. # Build module lists & subconfigure args.
  6725. # Host module lists & subconfigure args.
  6726. # Target module lists & subconfigure args.
  6727. # Build tools.
  6728. # Generate default definitions for YACC, M4, LEX and other programs that run
  6729. # on the build machine. These are used if the Makefile can't locate these
  6730. # programs in objdir.
  6731. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  6732. for ac_prog in 'bison -y' byacc yacc
  6733. do
  6734. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6735. set dummy $ac_prog; ac_word=$2
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6737. $as_echo_n "checking for $ac_word... " >&6; }
  6738. if test "${ac_cv_prog_YACC+set}" = set; then :
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. if test -n "$YACC"; then
  6742. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6743. else
  6744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6745. for as_dir in $PATH
  6746. do
  6747. IFS=$as_save_IFS
  6748. test -z "$as_dir" && as_dir=.
  6749. for ac_exec_ext in '' $ac_executable_extensions; do
  6750. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6751. ac_cv_prog_YACC="$ac_prog"
  6752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6753. break 2
  6754. fi
  6755. done
  6756. done
  6757. IFS=$as_save_IFS
  6758. fi
  6759. fi
  6760. YACC=$ac_cv_prog_YACC
  6761. if test -n "$YACC"; then
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6763. $as_echo "$YACC" >&6; }
  6764. else
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6766. $as_echo "no" >&6; }
  6767. fi
  6768. test -n "$YACC" && break
  6769. done
  6770. test -n "$YACC" || YACC="$MISSING bison -y"
  6771. case " $build_configdirs " in
  6772. *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
  6773. *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
  6774. esac
  6775. for ac_prog in bison
  6776. do
  6777. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6778. set dummy $ac_prog; ac_word=$2
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6780. $as_echo_n "checking for $ac_word... " >&6; }
  6781. if test "${ac_cv_prog_BISON+set}" = set; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. if test -n "$BISON"; then
  6785. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  6786. else
  6787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6788. for as_dir in $PATH
  6789. do
  6790. IFS=$as_save_IFS
  6791. test -z "$as_dir" && as_dir=.
  6792. for ac_exec_ext in '' $ac_executable_extensions; do
  6793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6794. ac_cv_prog_BISON="$ac_prog"
  6795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6796. break 2
  6797. fi
  6798. done
  6799. done
  6800. IFS=$as_save_IFS
  6801. fi
  6802. fi
  6803. BISON=$ac_cv_prog_BISON
  6804. if test -n "$BISON"; then
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6806. $as_echo "$BISON" >&6; }
  6807. else
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6809. $as_echo "no" >&6; }
  6810. fi
  6811. test -n "$BISON" && break
  6812. done
  6813. test -n "$BISON" || BISON="$MISSING bison"
  6814. case " $build_configdirs " in
  6815. *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
  6816. esac
  6817. for ac_prog in gm4 gnum4 m4
  6818. do
  6819. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6820. set dummy $ac_prog; ac_word=$2
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6822. $as_echo_n "checking for $ac_word... " >&6; }
  6823. if test "${ac_cv_prog_M4+set}" = set; then :
  6824. $as_echo_n "(cached) " >&6
  6825. else
  6826. if test -n "$M4"; then
  6827. ac_cv_prog_M4="$M4" # Let the user override the test.
  6828. else
  6829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6830. for as_dir in $PATH
  6831. do
  6832. IFS=$as_save_IFS
  6833. test -z "$as_dir" && as_dir=.
  6834. for ac_exec_ext in '' $ac_executable_extensions; do
  6835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6836. ac_cv_prog_M4="$ac_prog"
  6837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6838. break 2
  6839. fi
  6840. done
  6841. done
  6842. IFS=$as_save_IFS
  6843. fi
  6844. fi
  6845. M4=$ac_cv_prog_M4
  6846. if test -n "$M4"; then
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
  6848. $as_echo "$M4" >&6; }
  6849. else
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6851. $as_echo "no" >&6; }
  6852. fi
  6853. test -n "$M4" && break
  6854. done
  6855. test -n "$M4" || M4="$MISSING m4"
  6856. case " $build_configdirs " in
  6857. *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
  6858. esac
  6859. for ac_prog in flex lex
  6860. do
  6861. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6862. set dummy $ac_prog; ac_word=$2
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6864. $as_echo_n "checking for $ac_word... " >&6; }
  6865. if test "${ac_cv_prog_LEX+set}" = set; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. if test -n "$LEX"; then
  6869. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. test -z "$as_dir" && as_dir=.
  6876. for ac_exec_ext in '' $ac_executable_extensions; do
  6877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6878. ac_cv_prog_LEX="$ac_prog"
  6879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6880. break 2
  6881. fi
  6882. done
  6883. done
  6884. IFS=$as_save_IFS
  6885. fi
  6886. fi
  6887. LEX=$ac_cv_prog_LEX
  6888. if test -n "$LEX"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  6890. $as_echo "$LEX" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. test -n "$LEX" && break
  6896. done
  6897. test -n "$LEX" || LEX="$MISSING flex"
  6898. case " $build_configdirs " in
  6899. *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  6900. *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
  6901. esac
  6902. for ac_prog in flex
  6903. do
  6904. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6905. set dummy $ac_prog; ac_word=$2
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6907. $as_echo_n "checking for $ac_word... " >&6; }
  6908. if test "${ac_cv_prog_FLEX+set}" = set; then :
  6909. $as_echo_n "(cached) " >&6
  6910. else
  6911. if test -n "$FLEX"; then
  6912. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  6913. else
  6914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6915. for as_dir in $PATH
  6916. do
  6917. IFS=$as_save_IFS
  6918. test -z "$as_dir" && as_dir=.
  6919. for ac_exec_ext in '' $ac_executable_extensions; do
  6920. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6921. ac_cv_prog_FLEX="$ac_prog"
  6922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6923. break 2
  6924. fi
  6925. done
  6926. done
  6927. IFS=$as_save_IFS
  6928. fi
  6929. fi
  6930. FLEX=$ac_cv_prog_FLEX
  6931. if test -n "$FLEX"; then
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6933. $as_echo "$FLEX" >&6; }
  6934. else
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6936. $as_echo "no" >&6; }
  6937. fi
  6938. test -n "$FLEX" && break
  6939. done
  6940. test -n "$FLEX" || FLEX="$MISSING flex"
  6941. case " $build_configdirs " in
  6942. *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  6943. esac
  6944. for ac_prog in makeinfo
  6945. do
  6946. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6947. set dummy $ac_prog; ac_word=$2
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6949. $as_echo_n "checking for $ac_word... " >&6; }
  6950. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  6951. $as_echo_n "(cached) " >&6
  6952. else
  6953. if test -n "$MAKEINFO"; then
  6954. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  6955. else
  6956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6957. for as_dir in $PATH
  6958. do
  6959. IFS=$as_save_IFS
  6960. test -z "$as_dir" && as_dir=.
  6961. for ac_exec_ext in '' $ac_executable_extensions; do
  6962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6963. ac_cv_prog_MAKEINFO="$ac_prog"
  6964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6965. break 2
  6966. fi
  6967. done
  6968. done
  6969. IFS=$as_save_IFS
  6970. fi
  6971. fi
  6972. MAKEINFO=$ac_cv_prog_MAKEINFO
  6973. if test -n "$MAKEINFO"; then
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  6975. $as_echo "$MAKEINFO" >&6; }
  6976. else
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6978. $as_echo "no" >&6; }
  6979. fi
  6980. test -n "$MAKEINFO" && break
  6981. done
  6982. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  6983. case " $build_configdirs " in
  6984. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  6985. *)
  6986. # For an installed makeinfo, we require it to be from texinfo 4.7 or
  6987. # higher, else we use the "missing" dummy.
  6988. if ${MAKEINFO} --version \
  6989. | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
  6990. :
  6991. else
  6992. MAKEINFO="$MISSING makeinfo"
  6993. fi
  6994. ;;
  6995. esac
  6996. # FIXME: expect and dejagnu may become build tools?
  6997. for ac_prog in expect
  6998. do
  6999. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7000. set dummy $ac_prog; ac_word=$2
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7002. $as_echo_n "checking for $ac_word... " >&6; }
  7003. if test "${ac_cv_prog_EXPECT+set}" = set; then :
  7004. $as_echo_n "(cached) " >&6
  7005. else
  7006. if test -n "$EXPECT"; then
  7007. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  7008. else
  7009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7010. for as_dir in $PATH
  7011. do
  7012. IFS=$as_save_IFS
  7013. test -z "$as_dir" && as_dir=.
  7014. for ac_exec_ext in '' $ac_executable_extensions; do
  7015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7016. ac_cv_prog_EXPECT="$ac_prog"
  7017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7018. break 2
  7019. fi
  7020. done
  7021. done
  7022. IFS=$as_save_IFS
  7023. fi
  7024. fi
  7025. EXPECT=$ac_cv_prog_EXPECT
  7026. if test -n "$EXPECT"; then
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  7028. $as_echo "$EXPECT" >&6; }
  7029. else
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7031. $as_echo "no" >&6; }
  7032. fi
  7033. test -n "$EXPECT" && break
  7034. done
  7035. test -n "$EXPECT" || EXPECT="expect"
  7036. case " $configdirs " in
  7037. *" expect "*)
  7038. test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
  7039. ;;
  7040. esac
  7041. for ac_prog in runtest
  7042. do
  7043. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7044. set dummy $ac_prog; ac_word=$2
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. $as_echo_n "checking for $ac_word... " >&6; }
  7047. if test "${ac_cv_prog_RUNTEST+set}" = set; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. if test -n "$RUNTEST"; then
  7051. ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. test -z "$as_dir" && as_dir=.
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7060. ac_cv_prog_RUNTEST="$ac_prog"
  7061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. RUNTEST=$ac_cv_prog_RUNTEST
  7070. if test -n "$RUNTEST"; then
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
  7072. $as_echo "$RUNTEST" >&6; }
  7073. else
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7075. $as_echo "no" >&6; }
  7076. fi
  7077. test -n "$RUNTEST" && break
  7078. done
  7079. test -n "$RUNTEST" || RUNTEST="runtest"
  7080. case " $configdirs " in
  7081. *" dejagnu "*)
  7082. test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
  7083. ;;
  7084. esac
  7085. # Host tools.
  7086. ncn_tool_prefix=
  7087. test -n "$host_alias" && ncn_tool_prefix=$host_alias-
  7088. ncn_target_tool_prefix=
  7089. test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
  7090. if test -n "$AR"; then
  7091. ac_cv_prog_AR=$AR
  7092. elif test -n "$ac_cv_prog_AR"; then
  7093. AR=$ac_cv_prog_AR
  7094. fi
  7095. if test -n "$ac_cv_prog_AR"; then
  7096. for ncn_progname in ar; do
  7097. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7098. set dummy ${ncn_progname}; ac_word=$2
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7100. $as_echo_n "checking for $ac_word... " >&6; }
  7101. if test "${ac_cv_prog_AR+set}" = set; then :
  7102. $as_echo_n "(cached) " >&6
  7103. else
  7104. if test -n "$AR"; then
  7105. ac_cv_prog_AR="$AR" # Let the user override the test.
  7106. else
  7107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7108. for as_dir in $PATH
  7109. do
  7110. IFS=$as_save_IFS
  7111. test -z "$as_dir" && as_dir=.
  7112. for ac_exec_ext in '' $ac_executable_extensions; do
  7113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7114. ac_cv_prog_AR="${ncn_progname}"
  7115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7116. break 2
  7117. fi
  7118. done
  7119. done
  7120. IFS=$as_save_IFS
  7121. fi
  7122. fi
  7123. AR=$ac_cv_prog_AR
  7124. if test -n "$AR"; then
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7126. $as_echo "$AR" >&6; }
  7127. else
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7129. $as_echo "no" >&6; }
  7130. fi
  7131. done
  7132. fi
  7133. for ncn_progname in ar; do
  7134. if test -n "$ncn_tool_prefix"; then
  7135. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7136. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7138. $as_echo_n "checking for $ac_word... " >&6; }
  7139. if test "${ac_cv_prog_AR+set}" = set; then :
  7140. $as_echo_n "(cached) " >&6
  7141. else
  7142. if test -n "$AR"; then
  7143. ac_cv_prog_AR="$AR" # Let the user override the test.
  7144. else
  7145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7146. for as_dir in $PATH
  7147. do
  7148. IFS=$as_save_IFS
  7149. test -z "$as_dir" && as_dir=.
  7150. for ac_exec_ext in '' $ac_executable_extensions; do
  7151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7152. ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
  7153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7154. break 2
  7155. fi
  7156. done
  7157. done
  7158. IFS=$as_save_IFS
  7159. fi
  7160. fi
  7161. AR=$ac_cv_prog_AR
  7162. if test -n "$AR"; then
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7164. $as_echo "$AR" >&6; }
  7165. else
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7167. $as_echo "no" >&6; }
  7168. fi
  7169. fi
  7170. if test -z "$ac_cv_prog_AR" && test $build = $host ; then
  7171. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7172. set dummy ${ncn_progname}; ac_word=$2
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7174. $as_echo_n "checking for $ac_word... " >&6; }
  7175. if test "${ac_cv_prog_AR+set}" = set; then :
  7176. $as_echo_n "(cached) " >&6
  7177. else
  7178. if test -n "$AR"; then
  7179. ac_cv_prog_AR="$AR" # Let the user override the test.
  7180. else
  7181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7182. for as_dir in $PATH
  7183. do
  7184. IFS=$as_save_IFS
  7185. test -z "$as_dir" && as_dir=.
  7186. for ac_exec_ext in '' $ac_executable_extensions; do
  7187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7188. ac_cv_prog_AR="${ncn_progname}"
  7189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7190. break 2
  7191. fi
  7192. done
  7193. done
  7194. IFS=$as_save_IFS
  7195. fi
  7196. fi
  7197. AR=$ac_cv_prog_AR
  7198. if test -n "$AR"; then
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7200. $as_echo "$AR" >&6; }
  7201. else
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7203. $as_echo "no" >&6; }
  7204. fi
  7205. fi
  7206. test -n "$ac_cv_prog_AR" && break
  7207. done
  7208. if test -z "$ac_cv_prog_AR" ; then
  7209. set dummy ar
  7210. if test $build = $host ; then
  7211. AR="$2"
  7212. else
  7213. AR="${ncn_tool_prefix}$2"
  7214. fi
  7215. fi
  7216. if test -n "$AS"; then
  7217. ac_cv_prog_AS=$AS
  7218. elif test -n "$ac_cv_prog_AS"; then
  7219. AS=$ac_cv_prog_AS
  7220. fi
  7221. if test -n "$ac_cv_prog_AS"; then
  7222. for ncn_progname in as; do
  7223. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7224. set dummy ${ncn_progname}; ac_word=$2
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7226. $as_echo_n "checking for $ac_word... " >&6; }
  7227. if test "${ac_cv_prog_AS+set}" = set; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. if test -n "$AS"; then
  7231. ac_cv_prog_AS="$AS" # Let the user override the test.
  7232. else
  7233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7234. for as_dir in $PATH
  7235. do
  7236. IFS=$as_save_IFS
  7237. test -z "$as_dir" && as_dir=.
  7238. for ac_exec_ext in '' $ac_executable_extensions; do
  7239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7240. ac_cv_prog_AS="${ncn_progname}"
  7241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7242. break 2
  7243. fi
  7244. done
  7245. done
  7246. IFS=$as_save_IFS
  7247. fi
  7248. fi
  7249. AS=$ac_cv_prog_AS
  7250. if test -n "$AS"; then
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7252. $as_echo "$AS" >&6; }
  7253. else
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7255. $as_echo "no" >&6; }
  7256. fi
  7257. done
  7258. fi
  7259. for ncn_progname in as; do
  7260. if test -n "$ncn_tool_prefix"; then
  7261. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7262. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7264. $as_echo_n "checking for $ac_word... " >&6; }
  7265. if test "${ac_cv_prog_AS+set}" = set; then :
  7266. $as_echo_n "(cached) " >&6
  7267. else
  7268. if test -n "$AS"; then
  7269. ac_cv_prog_AS="$AS" # Let the user override the test.
  7270. else
  7271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7272. for as_dir in $PATH
  7273. do
  7274. IFS=$as_save_IFS
  7275. test -z "$as_dir" && as_dir=.
  7276. for ac_exec_ext in '' $ac_executable_extensions; do
  7277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7278. ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
  7279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7280. break 2
  7281. fi
  7282. done
  7283. done
  7284. IFS=$as_save_IFS
  7285. fi
  7286. fi
  7287. AS=$ac_cv_prog_AS
  7288. if test -n "$AS"; then
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7290. $as_echo "$AS" >&6; }
  7291. else
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7293. $as_echo "no" >&6; }
  7294. fi
  7295. fi
  7296. if test -z "$ac_cv_prog_AS" && test $build = $host ; then
  7297. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7298. set dummy ${ncn_progname}; ac_word=$2
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7300. $as_echo_n "checking for $ac_word... " >&6; }
  7301. if test "${ac_cv_prog_AS+set}" = set; then :
  7302. $as_echo_n "(cached) " >&6
  7303. else
  7304. if test -n "$AS"; then
  7305. ac_cv_prog_AS="$AS" # Let the user override the test.
  7306. else
  7307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7308. for as_dir in $PATH
  7309. do
  7310. IFS=$as_save_IFS
  7311. test -z "$as_dir" && as_dir=.
  7312. for ac_exec_ext in '' $ac_executable_extensions; do
  7313. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7314. ac_cv_prog_AS="${ncn_progname}"
  7315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7316. break 2
  7317. fi
  7318. done
  7319. done
  7320. IFS=$as_save_IFS
  7321. fi
  7322. fi
  7323. AS=$ac_cv_prog_AS
  7324. if test -n "$AS"; then
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7326. $as_echo "$AS" >&6; }
  7327. else
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7329. $as_echo "no" >&6; }
  7330. fi
  7331. fi
  7332. test -n "$ac_cv_prog_AS" && break
  7333. done
  7334. if test -z "$ac_cv_prog_AS" ; then
  7335. set dummy as
  7336. if test $build = $host ; then
  7337. AS="$2"
  7338. else
  7339. AS="${ncn_tool_prefix}$2"
  7340. fi
  7341. fi
  7342. if test -n "$DLLTOOL"; then
  7343. ac_cv_prog_DLLTOOL=$DLLTOOL
  7344. elif test -n "$ac_cv_prog_DLLTOOL"; then
  7345. DLLTOOL=$ac_cv_prog_DLLTOOL
  7346. fi
  7347. if test -n "$ac_cv_prog_DLLTOOL"; then
  7348. for ncn_progname in dlltool; do
  7349. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7350. set dummy ${ncn_progname}; ac_word=$2
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7352. $as_echo_n "checking for $ac_word... " >&6; }
  7353. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. if test -n "$DLLTOOL"; then
  7357. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7358. else
  7359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7360. for as_dir in $PATH
  7361. do
  7362. IFS=$as_save_IFS
  7363. test -z "$as_dir" && as_dir=.
  7364. for ac_exec_ext in '' $ac_executable_extensions; do
  7365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7366. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7368. break 2
  7369. fi
  7370. done
  7371. done
  7372. IFS=$as_save_IFS
  7373. fi
  7374. fi
  7375. DLLTOOL=$ac_cv_prog_DLLTOOL
  7376. if test -n "$DLLTOOL"; then
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7378. $as_echo "$DLLTOOL" >&6; }
  7379. else
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7381. $as_echo "no" >&6; }
  7382. fi
  7383. done
  7384. fi
  7385. for ncn_progname in dlltool; do
  7386. if test -n "$ncn_tool_prefix"; then
  7387. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7388. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7390. $as_echo_n "checking for $ac_word... " >&6; }
  7391. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7392. $as_echo_n "(cached) " >&6
  7393. else
  7394. if test -n "$DLLTOOL"; then
  7395. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7396. else
  7397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7398. for as_dir in $PATH
  7399. do
  7400. IFS=$as_save_IFS
  7401. test -z "$as_dir" && as_dir=.
  7402. for ac_exec_ext in '' $ac_executable_extensions; do
  7403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7404. ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
  7405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7406. break 2
  7407. fi
  7408. done
  7409. done
  7410. IFS=$as_save_IFS
  7411. fi
  7412. fi
  7413. DLLTOOL=$ac_cv_prog_DLLTOOL
  7414. if test -n "$DLLTOOL"; then
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7416. $as_echo "$DLLTOOL" >&6; }
  7417. else
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7419. $as_echo "no" >&6; }
  7420. fi
  7421. fi
  7422. if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
  7423. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7424. set dummy ${ncn_progname}; ac_word=$2
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7426. $as_echo_n "checking for $ac_word... " >&6; }
  7427. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7428. $as_echo_n "(cached) " >&6
  7429. else
  7430. if test -n "$DLLTOOL"; then
  7431. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7432. else
  7433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7434. for as_dir in $PATH
  7435. do
  7436. IFS=$as_save_IFS
  7437. test -z "$as_dir" && as_dir=.
  7438. for ac_exec_ext in '' $ac_executable_extensions; do
  7439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7440. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7442. break 2
  7443. fi
  7444. done
  7445. done
  7446. IFS=$as_save_IFS
  7447. fi
  7448. fi
  7449. DLLTOOL=$ac_cv_prog_DLLTOOL
  7450. if test -n "$DLLTOOL"; then
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7452. $as_echo "$DLLTOOL" >&6; }
  7453. else
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7455. $as_echo "no" >&6; }
  7456. fi
  7457. fi
  7458. test -n "$ac_cv_prog_DLLTOOL" && break
  7459. done
  7460. if test -z "$ac_cv_prog_DLLTOOL" ; then
  7461. set dummy dlltool
  7462. if test $build = $host ; then
  7463. DLLTOOL="$2"
  7464. else
  7465. DLLTOOL="${ncn_tool_prefix}$2"
  7466. fi
  7467. fi
  7468. if test -n "$LD"; then
  7469. ac_cv_prog_LD=$LD
  7470. elif test -n "$ac_cv_prog_LD"; then
  7471. LD=$ac_cv_prog_LD
  7472. fi
  7473. if test -n "$ac_cv_prog_LD"; then
  7474. for ncn_progname in ld; do
  7475. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7476. set dummy ${ncn_progname}; ac_word=$2
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7478. $as_echo_n "checking for $ac_word... " >&6; }
  7479. if test "${ac_cv_prog_LD+set}" = set; then :
  7480. $as_echo_n "(cached) " >&6
  7481. else
  7482. if test -n "$LD"; then
  7483. ac_cv_prog_LD="$LD" # Let the user override the test.
  7484. else
  7485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7486. for as_dir in $PATH
  7487. do
  7488. IFS=$as_save_IFS
  7489. test -z "$as_dir" && as_dir=.
  7490. for ac_exec_ext in '' $ac_executable_extensions; do
  7491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7492. ac_cv_prog_LD="${ncn_progname}"
  7493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7494. break 2
  7495. fi
  7496. done
  7497. done
  7498. IFS=$as_save_IFS
  7499. fi
  7500. fi
  7501. LD=$ac_cv_prog_LD
  7502. if test -n "$LD"; then
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7504. $as_echo "$LD" >&6; }
  7505. else
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7507. $as_echo "no" >&6; }
  7508. fi
  7509. done
  7510. fi
  7511. for ncn_progname in ld; do
  7512. if test -n "$ncn_tool_prefix"; then
  7513. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7514. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7516. $as_echo_n "checking for $ac_word... " >&6; }
  7517. if test "${ac_cv_prog_LD+set}" = set; then :
  7518. $as_echo_n "(cached) " >&6
  7519. else
  7520. if test -n "$LD"; then
  7521. ac_cv_prog_LD="$LD" # Let the user override the test.
  7522. else
  7523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7524. for as_dir in $PATH
  7525. do
  7526. IFS=$as_save_IFS
  7527. test -z "$as_dir" && as_dir=.
  7528. for ac_exec_ext in '' $ac_executable_extensions; do
  7529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7530. ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
  7531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7532. break 2
  7533. fi
  7534. done
  7535. done
  7536. IFS=$as_save_IFS
  7537. fi
  7538. fi
  7539. LD=$ac_cv_prog_LD
  7540. if test -n "$LD"; then
  7541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7542. $as_echo "$LD" >&6; }
  7543. else
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7545. $as_echo "no" >&6; }
  7546. fi
  7547. fi
  7548. if test -z "$ac_cv_prog_LD" && test $build = $host ; then
  7549. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7550. set dummy ${ncn_progname}; ac_word=$2
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7552. $as_echo_n "checking for $ac_word... " >&6; }
  7553. if test "${ac_cv_prog_LD+set}" = set; then :
  7554. $as_echo_n "(cached) " >&6
  7555. else
  7556. if test -n "$LD"; then
  7557. ac_cv_prog_LD="$LD" # Let the user override the test.
  7558. else
  7559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7560. for as_dir in $PATH
  7561. do
  7562. IFS=$as_save_IFS
  7563. test -z "$as_dir" && as_dir=.
  7564. for ac_exec_ext in '' $ac_executable_extensions; do
  7565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7566. ac_cv_prog_LD="${ncn_progname}"
  7567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7568. break 2
  7569. fi
  7570. done
  7571. done
  7572. IFS=$as_save_IFS
  7573. fi
  7574. fi
  7575. LD=$ac_cv_prog_LD
  7576. if test -n "$LD"; then
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7578. $as_echo "$LD" >&6; }
  7579. else
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7581. $as_echo "no" >&6; }
  7582. fi
  7583. fi
  7584. test -n "$ac_cv_prog_LD" && break
  7585. done
  7586. if test -z "$ac_cv_prog_LD" ; then
  7587. set dummy ld
  7588. if test $build = $host ; then
  7589. LD="$2"
  7590. else
  7591. LD="${ncn_tool_prefix}$2"
  7592. fi
  7593. fi
  7594. if test -n "$LIPO"; then
  7595. ac_cv_prog_LIPO=$LIPO
  7596. elif test -n "$ac_cv_prog_LIPO"; then
  7597. LIPO=$ac_cv_prog_LIPO
  7598. fi
  7599. if test -n "$ac_cv_prog_LIPO"; then
  7600. for ncn_progname in lipo; do
  7601. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7602. set dummy ${ncn_progname}; ac_word=$2
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7604. $as_echo_n "checking for $ac_word... " >&6; }
  7605. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7606. $as_echo_n "(cached) " >&6
  7607. else
  7608. if test -n "$LIPO"; then
  7609. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7610. else
  7611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7612. for as_dir in $PATH
  7613. do
  7614. IFS=$as_save_IFS
  7615. test -z "$as_dir" && as_dir=.
  7616. for ac_exec_ext in '' $ac_executable_extensions; do
  7617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7618. ac_cv_prog_LIPO="${ncn_progname}"
  7619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7620. break 2
  7621. fi
  7622. done
  7623. done
  7624. IFS=$as_save_IFS
  7625. fi
  7626. fi
  7627. LIPO=$ac_cv_prog_LIPO
  7628. if test -n "$LIPO"; then
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7630. $as_echo "$LIPO" >&6; }
  7631. else
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7633. $as_echo "no" >&6; }
  7634. fi
  7635. done
  7636. fi
  7637. for ncn_progname in lipo; do
  7638. if test -n "$ncn_tool_prefix"; then
  7639. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7640. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7642. $as_echo_n "checking for $ac_word... " >&6; }
  7643. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7644. $as_echo_n "(cached) " >&6
  7645. else
  7646. if test -n "$LIPO"; then
  7647. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7648. else
  7649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7650. for as_dir in $PATH
  7651. do
  7652. IFS=$as_save_IFS
  7653. test -z "$as_dir" && as_dir=.
  7654. for ac_exec_ext in '' $ac_executable_extensions; do
  7655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7656. ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
  7657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7658. break 2
  7659. fi
  7660. done
  7661. done
  7662. IFS=$as_save_IFS
  7663. fi
  7664. fi
  7665. LIPO=$ac_cv_prog_LIPO
  7666. if test -n "$LIPO"; then
  7667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7668. $as_echo "$LIPO" >&6; }
  7669. else
  7670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7671. $as_echo "no" >&6; }
  7672. fi
  7673. fi
  7674. if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
  7675. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7676. set dummy ${ncn_progname}; ac_word=$2
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7678. $as_echo_n "checking for $ac_word... " >&6; }
  7679. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7680. $as_echo_n "(cached) " >&6
  7681. else
  7682. if test -n "$LIPO"; then
  7683. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7684. else
  7685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7686. for as_dir in $PATH
  7687. do
  7688. IFS=$as_save_IFS
  7689. test -z "$as_dir" && as_dir=.
  7690. for ac_exec_ext in '' $ac_executable_extensions; do
  7691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7692. ac_cv_prog_LIPO="${ncn_progname}"
  7693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7694. break 2
  7695. fi
  7696. done
  7697. done
  7698. IFS=$as_save_IFS
  7699. fi
  7700. fi
  7701. LIPO=$ac_cv_prog_LIPO
  7702. if test -n "$LIPO"; then
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7704. $as_echo "$LIPO" >&6; }
  7705. else
  7706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7707. $as_echo "no" >&6; }
  7708. fi
  7709. fi
  7710. test -n "$ac_cv_prog_LIPO" && break
  7711. done
  7712. if test -z "$ac_cv_prog_LIPO" ; then
  7713. set dummy lipo
  7714. if test $build = $host ; then
  7715. LIPO="$2"
  7716. else
  7717. LIPO="${ncn_tool_prefix}$2"
  7718. fi
  7719. fi
  7720. if test -n "$NM"; then
  7721. ac_cv_prog_NM=$NM
  7722. elif test -n "$ac_cv_prog_NM"; then
  7723. NM=$ac_cv_prog_NM
  7724. fi
  7725. if test -n "$ac_cv_prog_NM"; then
  7726. for ncn_progname in nm; do
  7727. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7728. set dummy ${ncn_progname}; ac_word=$2
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7730. $as_echo_n "checking for $ac_word... " >&6; }
  7731. if test "${ac_cv_prog_NM+set}" = set; then :
  7732. $as_echo_n "(cached) " >&6
  7733. else
  7734. if test -n "$NM"; then
  7735. ac_cv_prog_NM="$NM" # Let the user override the test.
  7736. else
  7737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7738. for as_dir in $PATH
  7739. do
  7740. IFS=$as_save_IFS
  7741. test -z "$as_dir" && as_dir=.
  7742. for ac_exec_ext in '' $ac_executable_extensions; do
  7743. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7744. ac_cv_prog_NM="${ncn_progname}"
  7745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7746. break 2
  7747. fi
  7748. done
  7749. done
  7750. IFS=$as_save_IFS
  7751. fi
  7752. fi
  7753. NM=$ac_cv_prog_NM
  7754. if test -n "$NM"; then
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7756. $as_echo "$NM" >&6; }
  7757. else
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7759. $as_echo "no" >&6; }
  7760. fi
  7761. done
  7762. fi
  7763. for ncn_progname in nm; do
  7764. if test -n "$ncn_tool_prefix"; then
  7765. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7766. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7768. $as_echo_n "checking for $ac_word... " >&6; }
  7769. if test "${ac_cv_prog_NM+set}" = set; then :
  7770. $as_echo_n "(cached) " >&6
  7771. else
  7772. if test -n "$NM"; then
  7773. ac_cv_prog_NM="$NM" # Let the user override the test.
  7774. else
  7775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7776. for as_dir in $PATH
  7777. do
  7778. IFS=$as_save_IFS
  7779. test -z "$as_dir" && as_dir=.
  7780. for ac_exec_ext in '' $ac_executable_extensions; do
  7781. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7782. ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
  7783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7784. break 2
  7785. fi
  7786. done
  7787. done
  7788. IFS=$as_save_IFS
  7789. fi
  7790. fi
  7791. NM=$ac_cv_prog_NM
  7792. if test -n "$NM"; then
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7794. $as_echo "$NM" >&6; }
  7795. else
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7797. $as_echo "no" >&6; }
  7798. fi
  7799. fi
  7800. if test -z "$ac_cv_prog_NM" && test $build = $host ; then
  7801. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7802. set dummy ${ncn_progname}; ac_word=$2
  7803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7804. $as_echo_n "checking for $ac_word... " >&6; }
  7805. if test "${ac_cv_prog_NM+set}" = set; then :
  7806. $as_echo_n "(cached) " >&6
  7807. else
  7808. if test -n "$NM"; then
  7809. ac_cv_prog_NM="$NM" # Let the user override the test.
  7810. else
  7811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7812. for as_dir in $PATH
  7813. do
  7814. IFS=$as_save_IFS
  7815. test -z "$as_dir" && as_dir=.
  7816. for ac_exec_ext in '' $ac_executable_extensions; do
  7817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7818. ac_cv_prog_NM="${ncn_progname}"
  7819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7820. break 2
  7821. fi
  7822. done
  7823. done
  7824. IFS=$as_save_IFS
  7825. fi
  7826. fi
  7827. NM=$ac_cv_prog_NM
  7828. if test -n "$NM"; then
  7829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7830. $as_echo "$NM" >&6; }
  7831. else
  7832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7833. $as_echo "no" >&6; }
  7834. fi
  7835. fi
  7836. test -n "$ac_cv_prog_NM" && break
  7837. done
  7838. if test -z "$ac_cv_prog_NM" ; then
  7839. set dummy nm
  7840. if test $build = $host ; then
  7841. NM="$2"
  7842. else
  7843. NM="${ncn_tool_prefix}$2"
  7844. fi
  7845. fi
  7846. if test -n "$RANLIB"; then
  7847. ac_cv_prog_RANLIB=$RANLIB
  7848. elif test -n "$ac_cv_prog_RANLIB"; then
  7849. RANLIB=$ac_cv_prog_RANLIB
  7850. fi
  7851. if test -n "$ac_cv_prog_RANLIB"; then
  7852. for ncn_progname in ranlib; do
  7853. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7854. set dummy ${ncn_progname}; ac_word=$2
  7855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7856. $as_echo_n "checking for $ac_word... " >&6; }
  7857. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7858. $as_echo_n "(cached) " >&6
  7859. else
  7860. if test -n "$RANLIB"; then
  7861. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7862. else
  7863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7864. for as_dir in $PATH
  7865. do
  7866. IFS=$as_save_IFS
  7867. test -z "$as_dir" && as_dir=.
  7868. for ac_exec_ext in '' $ac_executable_extensions; do
  7869. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7870. ac_cv_prog_RANLIB="${ncn_progname}"
  7871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7872. break 2
  7873. fi
  7874. done
  7875. done
  7876. IFS=$as_save_IFS
  7877. fi
  7878. fi
  7879. RANLIB=$ac_cv_prog_RANLIB
  7880. if test -n "$RANLIB"; then
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7882. $as_echo "$RANLIB" >&6; }
  7883. else
  7884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7885. $as_echo "no" >&6; }
  7886. fi
  7887. done
  7888. fi
  7889. for ncn_progname in ranlib; do
  7890. if test -n "$ncn_tool_prefix"; then
  7891. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7892. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7894. $as_echo_n "checking for $ac_word... " >&6; }
  7895. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7896. $as_echo_n "(cached) " >&6
  7897. else
  7898. if test -n "$RANLIB"; then
  7899. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7900. else
  7901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7902. for as_dir in $PATH
  7903. do
  7904. IFS=$as_save_IFS
  7905. test -z "$as_dir" && as_dir=.
  7906. for ac_exec_ext in '' $ac_executable_extensions; do
  7907. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7908. ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
  7909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7910. break 2
  7911. fi
  7912. done
  7913. done
  7914. IFS=$as_save_IFS
  7915. fi
  7916. fi
  7917. RANLIB=$ac_cv_prog_RANLIB
  7918. if test -n "$RANLIB"; then
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7920. $as_echo "$RANLIB" >&6; }
  7921. else
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7923. $as_echo "no" >&6; }
  7924. fi
  7925. fi
  7926. if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
  7927. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7928. set dummy ${ncn_progname}; ac_word=$2
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7930. $as_echo_n "checking for $ac_word... " >&6; }
  7931. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7932. $as_echo_n "(cached) " >&6
  7933. else
  7934. if test -n "$RANLIB"; then
  7935. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7936. else
  7937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7938. for as_dir in $PATH
  7939. do
  7940. IFS=$as_save_IFS
  7941. test -z "$as_dir" && as_dir=.
  7942. for ac_exec_ext in '' $ac_executable_extensions; do
  7943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7944. ac_cv_prog_RANLIB="${ncn_progname}"
  7945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7946. break 2
  7947. fi
  7948. done
  7949. done
  7950. IFS=$as_save_IFS
  7951. fi
  7952. fi
  7953. RANLIB=$ac_cv_prog_RANLIB
  7954. if test -n "$RANLIB"; then
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7956. $as_echo "$RANLIB" >&6; }
  7957. else
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7959. $as_echo "no" >&6; }
  7960. fi
  7961. fi
  7962. test -n "$ac_cv_prog_RANLIB" && break
  7963. done
  7964. if test -z "$ac_cv_prog_RANLIB" ; then
  7965. RANLIB="true"
  7966. fi
  7967. if test -n "$STRIP"; then
  7968. ac_cv_prog_STRIP=$STRIP
  7969. elif test -n "$ac_cv_prog_STRIP"; then
  7970. STRIP=$ac_cv_prog_STRIP
  7971. fi
  7972. if test -n "$ac_cv_prog_STRIP"; then
  7973. for ncn_progname in strip; do
  7974. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7975. set dummy ${ncn_progname}; ac_word=$2
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7977. $as_echo_n "checking for $ac_word... " >&6; }
  7978. if test "${ac_cv_prog_STRIP+set}" = set; then :
  7979. $as_echo_n "(cached) " >&6
  7980. else
  7981. if test -n "$STRIP"; then
  7982. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7983. else
  7984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7985. for as_dir in $PATH
  7986. do
  7987. IFS=$as_save_IFS
  7988. test -z "$as_dir" && as_dir=.
  7989. for ac_exec_ext in '' $ac_executable_extensions; do
  7990. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7991. ac_cv_prog_STRIP="${ncn_progname}"
  7992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7993. break 2
  7994. fi
  7995. done
  7996. done
  7997. IFS=$as_save_IFS
  7998. fi
  7999. fi
  8000. STRIP=$ac_cv_prog_STRIP
  8001. if test -n "$STRIP"; then
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8003. $as_echo "$STRIP" >&6; }
  8004. else
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8006. $as_echo "no" >&6; }
  8007. fi
  8008. done
  8009. fi
  8010. for ncn_progname in strip; do
  8011. if test -n "$ncn_tool_prefix"; then
  8012. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8013. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8015. $as_echo_n "checking for $ac_word... " >&6; }
  8016. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8017. $as_echo_n "(cached) " >&6
  8018. else
  8019. if test -n "$STRIP"; then
  8020. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8021. else
  8022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8023. for as_dir in $PATH
  8024. do
  8025. IFS=$as_save_IFS
  8026. test -z "$as_dir" && as_dir=.
  8027. for ac_exec_ext in '' $ac_executable_extensions; do
  8028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8029. ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
  8030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8031. break 2
  8032. fi
  8033. done
  8034. done
  8035. IFS=$as_save_IFS
  8036. fi
  8037. fi
  8038. STRIP=$ac_cv_prog_STRIP
  8039. if test -n "$STRIP"; then
  8040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8041. $as_echo "$STRIP" >&6; }
  8042. else
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8044. $as_echo "no" >&6; }
  8045. fi
  8046. fi
  8047. if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
  8048. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8049. set dummy ${ncn_progname}; ac_word=$2
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8051. $as_echo_n "checking for $ac_word... " >&6; }
  8052. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8053. $as_echo_n "(cached) " >&6
  8054. else
  8055. if test -n "$STRIP"; then
  8056. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8057. else
  8058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8059. for as_dir in $PATH
  8060. do
  8061. IFS=$as_save_IFS
  8062. test -z "$as_dir" && as_dir=.
  8063. for ac_exec_ext in '' $ac_executable_extensions; do
  8064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8065. ac_cv_prog_STRIP="${ncn_progname}"
  8066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8067. break 2
  8068. fi
  8069. done
  8070. done
  8071. IFS=$as_save_IFS
  8072. fi
  8073. fi
  8074. STRIP=$ac_cv_prog_STRIP
  8075. if test -n "$STRIP"; then
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8077. $as_echo "$STRIP" >&6; }
  8078. else
  8079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8080. $as_echo "no" >&6; }
  8081. fi
  8082. fi
  8083. test -n "$ac_cv_prog_STRIP" && break
  8084. done
  8085. if test -z "$ac_cv_prog_STRIP" ; then
  8086. STRIP="true"
  8087. fi
  8088. if test -n "$WINDRES"; then
  8089. ac_cv_prog_WINDRES=$WINDRES
  8090. elif test -n "$ac_cv_prog_WINDRES"; then
  8091. WINDRES=$ac_cv_prog_WINDRES
  8092. fi
  8093. if test -n "$ac_cv_prog_WINDRES"; then
  8094. for ncn_progname in windres; do
  8095. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8096. set dummy ${ncn_progname}; ac_word=$2
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8098. $as_echo_n "checking for $ac_word... " >&6; }
  8099. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8100. $as_echo_n "(cached) " >&6
  8101. else
  8102. if test -n "$WINDRES"; then
  8103. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8104. else
  8105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8106. for as_dir in $PATH
  8107. do
  8108. IFS=$as_save_IFS
  8109. test -z "$as_dir" && as_dir=.
  8110. for ac_exec_ext in '' $ac_executable_extensions; do
  8111. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8112. ac_cv_prog_WINDRES="${ncn_progname}"
  8113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8114. break 2
  8115. fi
  8116. done
  8117. done
  8118. IFS=$as_save_IFS
  8119. fi
  8120. fi
  8121. WINDRES=$ac_cv_prog_WINDRES
  8122. if test -n "$WINDRES"; then
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8124. $as_echo "$WINDRES" >&6; }
  8125. else
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8127. $as_echo "no" >&6; }
  8128. fi
  8129. done
  8130. fi
  8131. for ncn_progname in windres; do
  8132. if test -n "$ncn_tool_prefix"; then
  8133. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8134. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8136. $as_echo_n "checking for $ac_word... " >&6; }
  8137. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8138. $as_echo_n "(cached) " >&6
  8139. else
  8140. if test -n "$WINDRES"; then
  8141. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8142. else
  8143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8144. for as_dir in $PATH
  8145. do
  8146. IFS=$as_save_IFS
  8147. test -z "$as_dir" && as_dir=.
  8148. for ac_exec_ext in '' $ac_executable_extensions; do
  8149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8150. ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
  8151. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8152. break 2
  8153. fi
  8154. done
  8155. done
  8156. IFS=$as_save_IFS
  8157. fi
  8158. fi
  8159. WINDRES=$ac_cv_prog_WINDRES
  8160. if test -n "$WINDRES"; then
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8162. $as_echo "$WINDRES" >&6; }
  8163. else
  8164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8165. $as_echo "no" >&6; }
  8166. fi
  8167. fi
  8168. if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
  8169. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8170. set dummy ${ncn_progname}; ac_word=$2
  8171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8172. $as_echo_n "checking for $ac_word... " >&6; }
  8173. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8174. $as_echo_n "(cached) " >&6
  8175. else
  8176. if test -n "$WINDRES"; then
  8177. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8178. else
  8179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8180. for as_dir in $PATH
  8181. do
  8182. IFS=$as_save_IFS
  8183. test -z "$as_dir" && as_dir=.
  8184. for ac_exec_ext in '' $ac_executable_extensions; do
  8185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8186. ac_cv_prog_WINDRES="${ncn_progname}"
  8187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8188. break 2
  8189. fi
  8190. done
  8191. done
  8192. IFS=$as_save_IFS
  8193. fi
  8194. fi
  8195. WINDRES=$ac_cv_prog_WINDRES
  8196. if test -n "$WINDRES"; then
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8198. $as_echo "$WINDRES" >&6; }
  8199. else
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8201. $as_echo "no" >&6; }
  8202. fi
  8203. fi
  8204. test -n "$ac_cv_prog_WINDRES" && break
  8205. done
  8206. if test -z "$ac_cv_prog_WINDRES" ; then
  8207. set dummy windres
  8208. if test $build = $host ; then
  8209. WINDRES="$2"
  8210. else
  8211. WINDRES="${ncn_tool_prefix}$2"
  8212. fi
  8213. fi
  8214. if test -n "$WINDMC"; then
  8215. ac_cv_prog_WINDMC=$WINDMC
  8216. elif test -n "$ac_cv_prog_WINDMC"; then
  8217. WINDMC=$ac_cv_prog_WINDMC
  8218. fi
  8219. if test -n "$ac_cv_prog_WINDMC"; then
  8220. for ncn_progname in windmc; do
  8221. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8222. set dummy ${ncn_progname}; ac_word=$2
  8223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8224. $as_echo_n "checking for $ac_word... " >&6; }
  8225. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8226. $as_echo_n "(cached) " >&6
  8227. else
  8228. if test -n "$WINDMC"; then
  8229. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8230. else
  8231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8232. for as_dir in $PATH
  8233. do
  8234. IFS=$as_save_IFS
  8235. test -z "$as_dir" && as_dir=.
  8236. for ac_exec_ext in '' $ac_executable_extensions; do
  8237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8238. ac_cv_prog_WINDMC="${ncn_progname}"
  8239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8240. break 2
  8241. fi
  8242. done
  8243. done
  8244. IFS=$as_save_IFS
  8245. fi
  8246. fi
  8247. WINDMC=$ac_cv_prog_WINDMC
  8248. if test -n "$WINDMC"; then
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8250. $as_echo "$WINDMC" >&6; }
  8251. else
  8252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8253. $as_echo "no" >&6; }
  8254. fi
  8255. done
  8256. fi
  8257. for ncn_progname in windmc; do
  8258. if test -n "$ncn_tool_prefix"; then
  8259. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8260. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8262. $as_echo_n "checking for $ac_word... " >&6; }
  8263. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8264. $as_echo_n "(cached) " >&6
  8265. else
  8266. if test -n "$WINDMC"; then
  8267. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8268. else
  8269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8270. for as_dir in $PATH
  8271. do
  8272. IFS=$as_save_IFS
  8273. test -z "$as_dir" && as_dir=.
  8274. for ac_exec_ext in '' $ac_executable_extensions; do
  8275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8276. ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
  8277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8278. break 2
  8279. fi
  8280. done
  8281. done
  8282. IFS=$as_save_IFS
  8283. fi
  8284. fi
  8285. WINDMC=$ac_cv_prog_WINDMC
  8286. if test -n "$WINDMC"; then
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8288. $as_echo "$WINDMC" >&6; }
  8289. else
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8291. $as_echo "no" >&6; }
  8292. fi
  8293. fi
  8294. if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
  8295. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8296. set dummy ${ncn_progname}; ac_word=$2
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8298. $as_echo_n "checking for $ac_word... " >&6; }
  8299. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8300. $as_echo_n "(cached) " >&6
  8301. else
  8302. if test -n "$WINDMC"; then
  8303. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8304. else
  8305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8306. for as_dir in $PATH
  8307. do
  8308. IFS=$as_save_IFS
  8309. test -z "$as_dir" && as_dir=.
  8310. for ac_exec_ext in '' $ac_executable_extensions; do
  8311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8312. ac_cv_prog_WINDMC="${ncn_progname}"
  8313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8314. break 2
  8315. fi
  8316. done
  8317. done
  8318. IFS=$as_save_IFS
  8319. fi
  8320. fi
  8321. WINDMC=$ac_cv_prog_WINDMC
  8322. if test -n "$WINDMC"; then
  8323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8324. $as_echo "$WINDMC" >&6; }
  8325. else
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8327. $as_echo "no" >&6; }
  8328. fi
  8329. fi
  8330. test -n "$ac_cv_prog_WINDMC" && break
  8331. done
  8332. if test -z "$ac_cv_prog_WINDMC" ; then
  8333. set dummy windmc
  8334. if test $build = $host ; then
  8335. WINDMC="$2"
  8336. else
  8337. WINDMC="${ncn_tool_prefix}$2"
  8338. fi
  8339. fi
  8340. if test -n "$OBJCOPY"; then
  8341. ac_cv_prog_OBJCOPY=$OBJCOPY
  8342. elif test -n "$ac_cv_prog_OBJCOPY"; then
  8343. OBJCOPY=$ac_cv_prog_OBJCOPY
  8344. fi
  8345. if test -n "$ac_cv_prog_OBJCOPY"; then
  8346. for ncn_progname in objcopy; do
  8347. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8348. set dummy ${ncn_progname}; ac_word=$2
  8349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8350. $as_echo_n "checking for $ac_word... " >&6; }
  8351. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8352. $as_echo_n "(cached) " >&6
  8353. else
  8354. if test -n "$OBJCOPY"; then
  8355. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8356. else
  8357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8358. for as_dir in $PATH
  8359. do
  8360. IFS=$as_save_IFS
  8361. test -z "$as_dir" && as_dir=.
  8362. for ac_exec_ext in '' $ac_executable_extensions; do
  8363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8364. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8366. break 2
  8367. fi
  8368. done
  8369. done
  8370. IFS=$as_save_IFS
  8371. fi
  8372. fi
  8373. OBJCOPY=$ac_cv_prog_OBJCOPY
  8374. if test -n "$OBJCOPY"; then
  8375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8376. $as_echo "$OBJCOPY" >&6; }
  8377. else
  8378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8379. $as_echo "no" >&6; }
  8380. fi
  8381. done
  8382. fi
  8383. for ncn_progname in objcopy; do
  8384. if test -n "$ncn_tool_prefix"; then
  8385. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8386. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8388. $as_echo_n "checking for $ac_word... " >&6; }
  8389. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8390. $as_echo_n "(cached) " >&6
  8391. else
  8392. if test -n "$OBJCOPY"; then
  8393. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8394. else
  8395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8396. for as_dir in $PATH
  8397. do
  8398. IFS=$as_save_IFS
  8399. test -z "$as_dir" && as_dir=.
  8400. for ac_exec_ext in '' $ac_executable_extensions; do
  8401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8402. ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
  8403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8404. break 2
  8405. fi
  8406. done
  8407. done
  8408. IFS=$as_save_IFS
  8409. fi
  8410. fi
  8411. OBJCOPY=$ac_cv_prog_OBJCOPY
  8412. if test -n "$OBJCOPY"; then
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8414. $as_echo "$OBJCOPY" >&6; }
  8415. else
  8416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8417. $as_echo "no" >&6; }
  8418. fi
  8419. fi
  8420. if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
  8421. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8422. set dummy ${ncn_progname}; ac_word=$2
  8423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8424. $as_echo_n "checking for $ac_word... " >&6; }
  8425. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8426. $as_echo_n "(cached) " >&6
  8427. else
  8428. if test -n "$OBJCOPY"; then
  8429. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8430. else
  8431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8432. for as_dir in $PATH
  8433. do
  8434. IFS=$as_save_IFS
  8435. test -z "$as_dir" && as_dir=.
  8436. for ac_exec_ext in '' $ac_executable_extensions; do
  8437. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8438. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8440. break 2
  8441. fi
  8442. done
  8443. done
  8444. IFS=$as_save_IFS
  8445. fi
  8446. fi
  8447. OBJCOPY=$ac_cv_prog_OBJCOPY
  8448. if test -n "$OBJCOPY"; then
  8449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8450. $as_echo "$OBJCOPY" >&6; }
  8451. else
  8452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8453. $as_echo "no" >&6; }
  8454. fi
  8455. fi
  8456. test -n "$ac_cv_prog_OBJCOPY" && break
  8457. done
  8458. if test -z "$ac_cv_prog_OBJCOPY" ; then
  8459. set dummy objcopy
  8460. if test $build = $host ; then
  8461. OBJCOPY="$2"
  8462. else
  8463. OBJCOPY="${ncn_tool_prefix}$2"
  8464. fi
  8465. fi
  8466. if test -n "$OBJDUMP"; then
  8467. ac_cv_prog_OBJDUMP=$OBJDUMP
  8468. elif test -n "$ac_cv_prog_OBJDUMP"; then
  8469. OBJDUMP=$ac_cv_prog_OBJDUMP
  8470. fi
  8471. if test -n "$ac_cv_prog_OBJDUMP"; then
  8472. for ncn_progname in objdump; do
  8473. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8474. set dummy ${ncn_progname}; ac_word=$2
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8476. $as_echo_n "checking for $ac_word... " >&6; }
  8477. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8478. $as_echo_n "(cached) " >&6
  8479. else
  8480. if test -n "$OBJDUMP"; then
  8481. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8482. else
  8483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8484. for as_dir in $PATH
  8485. do
  8486. IFS=$as_save_IFS
  8487. test -z "$as_dir" && as_dir=.
  8488. for ac_exec_ext in '' $ac_executable_extensions; do
  8489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8490. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8492. break 2
  8493. fi
  8494. done
  8495. done
  8496. IFS=$as_save_IFS
  8497. fi
  8498. fi
  8499. OBJDUMP=$ac_cv_prog_OBJDUMP
  8500. if test -n "$OBJDUMP"; then
  8501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8502. $as_echo "$OBJDUMP" >&6; }
  8503. else
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8505. $as_echo "no" >&6; }
  8506. fi
  8507. done
  8508. fi
  8509. for ncn_progname in objdump; do
  8510. if test -n "$ncn_tool_prefix"; then
  8511. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8512. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8514. $as_echo_n "checking for $ac_word... " >&6; }
  8515. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8516. $as_echo_n "(cached) " >&6
  8517. else
  8518. if test -n "$OBJDUMP"; then
  8519. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8520. else
  8521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8522. for as_dir in $PATH
  8523. do
  8524. IFS=$as_save_IFS
  8525. test -z "$as_dir" && as_dir=.
  8526. for ac_exec_ext in '' $ac_executable_extensions; do
  8527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8528. ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
  8529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8530. break 2
  8531. fi
  8532. done
  8533. done
  8534. IFS=$as_save_IFS
  8535. fi
  8536. fi
  8537. OBJDUMP=$ac_cv_prog_OBJDUMP
  8538. if test -n "$OBJDUMP"; then
  8539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8540. $as_echo "$OBJDUMP" >&6; }
  8541. else
  8542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8543. $as_echo "no" >&6; }
  8544. fi
  8545. fi
  8546. if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
  8547. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8548. set dummy ${ncn_progname}; ac_word=$2
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8550. $as_echo_n "checking for $ac_word... " >&6; }
  8551. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8552. $as_echo_n "(cached) " >&6
  8553. else
  8554. if test -n "$OBJDUMP"; then
  8555. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8556. else
  8557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8558. for as_dir in $PATH
  8559. do
  8560. IFS=$as_save_IFS
  8561. test -z "$as_dir" && as_dir=.
  8562. for ac_exec_ext in '' $ac_executable_extensions; do
  8563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8564. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8566. break 2
  8567. fi
  8568. done
  8569. done
  8570. IFS=$as_save_IFS
  8571. fi
  8572. fi
  8573. OBJDUMP=$ac_cv_prog_OBJDUMP
  8574. if test -n "$OBJDUMP"; then
  8575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8576. $as_echo "$OBJDUMP" >&6; }
  8577. else
  8578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8579. $as_echo "no" >&6; }
  8580. fi
  8581. fi
  8582. test -n "$ac_cv_prog_OBJDUMP" && break
  8583. done
  8584. if test -z "$ac_cv_prog_OBJDUMP" ; then
  8585. set dummy objdump
  8586. if test $build = $host ; then
  8587. OBJDUMP="$2"
  8588. else
  8589. OBJDUMP="${ncn_tool_prefix}$2"
  8590. fi
  8591. fi
  8592. # Target tools.
  8593. # Check whether --with-build-time-tools was given.
  8594. if test "${with_build_time_tools+set}" = set; then :
  8595. withval=$with_build_time_tools; case x"$withval" in
  8596. x/*) ;;
  8597. *)
  8598. with_build_time_tools=
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
  8600. $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
  8601. ;;
  8602. esac
  8603. else
  8604. with_build_time_tools=
  8605. fi
  8606. if test -n "$CC_FOR_TARGET"; then
  8607. ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
  8608. elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8609. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8610. fi
  8611. if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8612. for ncn_progname in cc gcc; do
  8613. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8614. set dummy ${ncn_progname}; ac_word=$2
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8616. $as_echo_n "checking for $ac_word... " >&6; }
  8617. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. if test -n "$CC_FOR_TARGET"; then
  8621. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8622. else
  8623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8624. for as_dir in $PATH
  8625. do
  8626. IFS=$as_save_IFS
  8627. test -z "$as_dir" && as_dir=.
  8628. for ac_exec_ext in '' $ac_executable_extensions; do
  8629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8630. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8632. break 2
  8633. fi
  8634. done
  8635. done
  8636. IFS=$as_save_IFS
  8637. fi
  8638. fi
  8639. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8640. if test -n "$CC_FOR_TARGET"; then
  8641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8642. $as_echo "$CC_FOR_TARGET" >&6; }
  8643. else
  8644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8645. $as_echo "no" >&6; }
  8646. fi
  8647. done
  8648. fi
  8649. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8650. for ncn_progname in cc gcc; do
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8652. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8653. if test -x $with_build_time_tools/${ncn_progname}; then
  8654. ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8656. $as_echo "yes" >&6; }
  8657. break
  8658. else
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8660. $as_echo "no" >&6; }
  8661. fi
  8662. done
  8663. fi
  8664. if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
  8665. for ncn_progname in cc gcc; do
  8666. if test -n "$ncn_target_tool_prefix"; then
  8667. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8668. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8670. $as_echo_n "checking for $ac_word... " >&6; }
  8671. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8672. $as_echo_n "(cached) " >&6
  8673. else
  8674. if test -n "$CC_FOR_TARGET"; then
  8675. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8676. else
  8677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8678. for as_dir in $PATH
  8679. do
  8680. IFS=$as_save_IFS
  8681. test -z "$as_dir" && as_dir=.
  8682. for ac_exec_ext in '' $ac_executable_extensions; do
  8683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8684. ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8686. break 2
  8687. fi
  8688. done
  8689. done
  8690. IFS=$as_save_IFS
  8691. fi
  8692. fi
  8693. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8694. if test -n "$CC_FOR_TARGET"; then
  8695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8696. $as_echo "$CC_FOR_TARGET" >&6; }
  8697. else
  8698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8699. $as_echo "no" >&6; }
  8700. fi
  8701. fi
  8702. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
  8703. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8704. set dummy ${ncn_progname}; ac_word=$2
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8706. $as_echo_n "checking for $ac_word... " >&6; }
  8707. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8708. $as_echo_n "(cached) " >&6
  8709. else
  8710. if test -n "$CC_FOR_TARGET"; then
  8711. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8712. else
  8713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8714. for as_dir in $PATH
  8715. do
  8716. IFS=$as_save_IFS
  8717. test -z "$as_dir" && as_dir=.
  8718. for ac_exec_ext in '' $ac_executable_extensions; do
  8719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8720. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8722. break 2
  8723. fi
  8724. done
  8725. done
  8726. IFS=$as_save_IFS
  8727. fi
  8728. fi
  8729. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8730. if test -n "$CC_FOR_TARGET"; then
  8731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8732. $as_echo "$CC_FOR_TARGET" >&6; }
  8733. else
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8735. $as_echo "no" >&6; }
  8736. fi
  8737. fi
  8738. test -n "$ac_cv_prog_CC_FOR_TARGET" && break
  8739. done
  8740. fi
  8741. if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
  8742. set dummy cc gcc
  8743. if test $build = $target ; then
  8744. CC_FOR_TARGET="$2"
  8745. else
  8746. CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  8747. fi
  8748. else
  8749. CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
  8750. fi
  8751. if test -n "$CXX_FOR_TARGET"; then
  8752. ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
  8753. elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  8754. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8755. fi
  8756. if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  8757. for ncn_progname in c++ g++ cxx gxx; do
  8758. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8759. set dummy ${ncn_progname}; ac_word=$2
  8760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8761. $as_echo_n "checking for $ac_word... " >&6; }
  8762. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  8763. $as_echo_n "(cached) " >&6
  8764. else
  8765. if test -n "$CXX_FOR_TARGET"; then
  8766. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  8767. else
  8768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8769. for as_dir in $PATH
  8770. do
  8771. IFS=$as_save_IFS
  8772. test -z "$as_dir" && as_dir=.
  8773. for ac_exec_ext in '' $ac_executable_extensions; do
  8774. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8775. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  8776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8777. break 2
  8778. fi
  8779. done
  8780. done
  8781. IFS=$as_save_IFS
  8782. fi
  8783. fi
  8784. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8785. if test -n "$CXX_FOR_TARGET"; then
  8786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  8787. $as_echo "$CXX_FOR_TARGET" >&6; }
  8788. else
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8790. $as_echo "no" >&6; }
  8791. fi
  8792. done
  8793. fi
  8794. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8795. for ncn_progname in c++ g++ cxx gxx; do
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8797. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8798. if test -x $with_build_time_tools/${ncn_progname}; then
  8799. ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8801. $as_echo "yes" >&6; }
  8802. break
  8803. else
  8804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8805. $as_echo "no" >&6; }
  8806. fi
  8807. done
  8808. fi
  8809. if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
  8810. for ncn_progname in c++ g++ cxx gxx; do
  8811. if test -n "$ncn_target_tool_prefix"; then
  8812. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8813. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8815. $as_echo_n "checking for $ac_word... " >&6; }
  8816. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  8817. $as_echo_n "(cached) " >&6
  8818. else
  8819. if test -n "$CXX_FOR_TARGET"; then
  8820. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  8821. else
  8822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8823. for as_dir in $PATH
  8824. do
  8825. IFS=$as_save_IFS
  8826. test -z "$as_dir" && as_dir=.
  8827. for ac_exec_ext in '' $ac_executable_extensions; do
  8828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8829. ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8831. break 2
  8832. fi
  8833. done
  8834. done
  8835. IFS=$as_save_IFS
  8836. fi
  8837. fi
  8838. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8839. if test -n "$CXX_FOR_TARGET"; then
  8840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  8841. $as_echo "$CXX_FOR_TARGET" >&6; }
  8842. else
  8843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8844. $as_echo "no" >&6; }
  8845. fi
  8846. fi
  8847. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
  8848. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8849. set 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; }
  8852. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  8853. $as_echo_n "(cached) " >&6
  8854. else
  8855. if test -n "$CXX_FOR_TARGET"; then
  8856. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  8857. else
  8858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8859. for as_dir in $PATH
  8860. do
  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_CXX_FOR_TARGET="${ncn_progname}"
  8866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8867. break 2
  8868. fi
  8869. done
  8870. done
  8871. IFS=$as_save_IFS
  8872. fi
  8873. fi
  8874. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8875. if test -n "$CXX_FOR_TARGET"; then
  8876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  8877. $as_echo "$CXX_FOR_TARGET" >&6; }
  8878. else
  8879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8880. $as_echo "no" >&6; }
  8881. fi
  8882. fi
  8883. test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
  8884. done
  8885. fi
  8886. if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
  8887. set dummy c++ g++ cxx gxx
  8888. if test $build = $target ; then
  8889. CXX_FOR_TARGET="$2"
  8890. else
  8891. CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
  8892. fi
  8893. else
  8894. CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
  8895. fi
  8896. if test -n "$GCC_FOR_TARGET"; then
  8897. ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
  8898. elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  8899. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  8900. fi
  8901. if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  8902. for ncn_progname in gcc; do
  8903. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8904. set dummy ${ncn_progname}; ac_word=$2
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8906. $as_echo_n "checking for $ac_word... " >&6; }
  8907. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. if test -n "$GCC_FOR_TARGET"; then
  8911. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  8912. else
  8913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8914. for as_dir in $PATH
  8915. do
  8916. IFS=$as_save_IFS
  8917. test -z "$as_dir" && as_dir=.
  8918. for ac_exec_ext in '' $ac_executable_extensions; do
  8919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8920. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  8921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8922. break 2
  8923. fi
  8924. done
  8925. done
  8926. IFS=$as_save_IFS
  8927. fi
  8928. fi
  8929. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  8930. if test -n "$GCC_FOR_TARGET"; then
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  8932. $as_echo "$GCC_FOR_TARGET" >&6; }
  8933. else
  8934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8935. $as_echo "no" >&6; }
  8936. fi
  8937. done
  8938. fi
  8939. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8940. for ncn_progname in gcc; do
  8941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8942. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8943. if test -x $with_build_time_tools/${ncn_progname}; then
  8944. ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8946. $as_echo "yes" >&6; }
  8947. break
  8948. else
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8950. $as_echo "no" >&6; }
  8951. fi
  8952. done
  8953. fi
  8954. if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
  8955. for ncn_progname in gcc; do
  8956. if test -n "$ncn_target_tool_prefix"; then
  8957. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8958. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8960. $as_echo_n "checking for $ac_word... " >&6; }
  8961. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  8962. $as_echo_n "(cached) " >&6
  8963. else
  8964. if test -n "$GCC_FOR_TARGET"; then
  8965. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  8966. else
  8967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8968. for as_dir in $PATH
  8969. do
  8970. IFS=$as_save_IFS
  8971. test -z "$as_dir" && as_dir=.
  8972. for ac_exec_ext in '' $ac_executable_extensions; do
  8973. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8974. ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8976. break 2
  8977. fi
  8978. done
  8979. done
  8980. IFS=$as_save_IFS
  8981. fi
  8982. fi
  8983. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  8984. if test -n "$GCC_FOR_TARGET"; then
  8985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  8986. $as_echo "$GCC_FOR_TARGET" >&6; }
  8987. else
  8988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8989. $as_echo "no" >&6; }
  8990. fi
  8991. fi
  8992. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
  8993. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8994. set dummy ${ncn_progname}; ac_word=$2
  8995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8996. $as_echo_n "checking for $ac_word... " >&6; }
  8997. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  8998. $as_echo_n "(cached) " >&6
  8999. else
  9000. if test -n "$GCC_FOR_TARGET"; then
  9001. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9002. else
  9003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9004. for as_dir in $PATH
  9005. do
  9006. IFS=$as_save_IFS
  9007. test -z "$as_dir" && as_dir=.
  9008. for ac_exec_ext in '' $ac_executable_extensions; do
  9009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9010. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  9011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9012. break 2
  9013. fi
  9014. done
  9015. done
  9016. IFS=$as_save_IFS
  9017. fi
  9018. fi
  9019. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9020. if test -n "$GCC_FOR_TARGET"; then
  9021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9022. $as_echo "$GCC_FOR_TARGET" >&6; }
  9023. else
  9024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9025. $as_echo "no" >&6; }
  9026. fi
  9027. fi
  9028. test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
  9029. done
  9030. fi
  9031. if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
  9032. GCC_FOR_TARGET="${CC_FOR_TARGET}"
  9033. else
  9034. GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
  9035. fi
  9036. if test -n "$GCJ_FOR_TARGET"; then
  9037. ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
  9038. elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9039. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9040. fi
  9041. if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9042. for ncn_progname in gcj; do
  9043. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9044. set dummy ${ncn_progname}; ac_word=$2
  9045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9046. $as_echo_n "checking for $ac_word... " >&6; }
  9047. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9048. $as_echo_n "(cached) " >&6
  9049. else
  9050. if test -n "$GCJ_FOR_TARGET"; then
  9051. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9052. else
  9053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9054. for as_dir in $PATH
  9055. do
  9056. IFS=$as_save_IFS
  9057. test -z "$as_dir" && as_dir=.
  9058. for ac_exec_ext in '' $ac_executable_extensions; do
  9059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9060. ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
  9061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9062. break 2
  9063. fi
  9064. done
  9065. done
  9066. IFS=$as_save_IFS
  9067. fi
  9068. fi
  9069. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9070. if test -n "$GCJ_FOR_TARGET"; then
  9071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9072. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9073. else
  9074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9075. $as_echo "no" >&6; }
  9076. fi
  9077. done
  9078. fi
  9079. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9080. for ncn_progname in gcj; do
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9082. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9083. if test -x $with_build_time_tools/${ncn_progname}; then
  9084. ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9086. $as_echo "yes" >&6; }
  9087. break
  9088. else
  9089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9090. $as_echo "no" >&6; }
  9091. fi
  9092. done
  9093. fi
  9094. if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9095. for ncn_progname in gcj; do
  9096. if test -n "$ncn_target_tool_prefix"; then
  9097. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9098. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9100. $as_echo_n "checking for $ac_word... " >&6; }
  9101. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9102. $as_echo_n "(cached) " >&6
  9103. else
  9104. if test -n "$GCJ_FOR_TARGET"; then
  9105. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9106. else
  9107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9108. for as_dir in $PATH
  9109. do
  9110. IFS=$as_save_IFS
  9111. test -z "$as_dir" && as_dir=.
  9112. for ac_exec_ext in '' $ac_executable_extensions; do
  9113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9114. ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9116. break 2
  9117. fi
  9118. done
  9119. done
  9120. IFS=$as_save_IFS
  9121. fi
  9122. fi
  9123. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9124. if test -n "$GCJ_FOR_TARGET"; then
  9125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9126. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9127. else
  9128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9129. $as_echo "no" >&6; }
  9130. fi
  9131. fi
  9132. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
  9133. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9134. set dummy ${ncn_progname}; ac_word=$2
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9136. $as_echo_n "checking for $ac_word... " >&6; }
  9137. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9138. $as_echo_n "(cached) " >&6
  9139. else
  9140. if test -n "$GCJ_FOR_TARGET"; then
  9141. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9142. else
  9143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9144. for as_dir in $PATH
  9145. do
  9146. IFS=$as_save_IFS
  9147. test -z "$as_dir" && as_dir=.
  9148. for ac_exec_ext in '' $ac_executable_extensions; do
  9149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9150. ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
  9151. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9152. break 2
  9153. fi
  9154. done
  9155. done
  9156. IFS=$as_save_IFS
  9157. fi
  9158. fi
  9159. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9160. if test -n "$GCJ_FOR_TARGET"; then
  9161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9162. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9163. else
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9165. $as_echo "no" >&6; }
  9166. fi
  9167. fi
  9168. test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
  9169. done
  9170. fi
  9171. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
  9172. set dummy gcj
  9173. if test $build = $target ; then
  9174. GCJ_FOR_TARGET="$2"
  9175. else
  9176. GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9177. fi
  9178. else
  9179. GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
  9180. fi
  9181. if test -n "$GFORTRAN_FOR_TARGET"; then
  9182. ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
  9183. elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9184. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9185. fi
  9186. if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9187. for ncn_progname in gfortran; do
  9188. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9189. set dummy ${ncn_progname}; ac_word=$2
  9190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9191. $as_echo_n "checking for $ac_word... " >&6; }
  9192. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9193. $as_echo_n "(cached) " >&6
  9194. else
  9195. if test -n "$GFORTRAN_FOR_TARGET"; then
  9196. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9197. else
  9198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9199. for as_dir in $PATH
  9200. do
  9201. IFS=$as_save_IFS
  9202. test -z "$as_dir" && as_dir=.
  9203. for ac_exec_ext in '' $ac_executable_extensions; do
  9204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9205. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9207. break 2
  9208. fi
  9209. done
  9210. done
  9211. IFS=$as_save_IFS
  9212. fi
  9213. fi
  9214. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9215. if test -n "$GFORTRAN_FOR_TARGET"; then
  9216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9217. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9218. else
  9219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9220. $as_echo "no" >&6; }
  9221. fi
  9222. done
  9223. fi
  9224. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9225. for ncn_progname in gfortran; do
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9227. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9228. if test -x $with_build_time_tools/${ncn_progname}; then
  9229. ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9231. $as_echo "yes" >&6; }
  9232. break
  9233. else
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9235. $as_echo "no" >&6; }
  9236. fi
  9237. done
  9238. fi
  9239. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9240. for ncn_progname in gfortran; do
  9241. if test -n "$ncn_target_tool_prefix"; then
  9242. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9243. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9245. $as_echo_n "checking for $ac_word... " >&6; }
  9246. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9247. $as_echo_n "(cached) " >&6
  9248. else
  9249. if test -n "$GFORTRAN_FOR_TARGET"; then
  9250. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9251. else
  9252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9253. for as_dir in $PATH
  9254. do
  9255. IFS=$as_save_IFS
  9256. test -z "$as_dir" && as_dir=.
  9257. for ac_exec_ext in '' $ac_executable_extensions; do
  9258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9259. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9261. break 2
  9262. fi
  9263. done
  9264. done
  9265. IFS=$as_save_IFS
  9266. fi
  9267. fi
  9268. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9269. if test -n "$GFORTRAN_FOR_TARGET"; then
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9271. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9272. else
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9274. $as_echo "no" >&6; }
  9275. fi
  9276. fi
  9277. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
  9278. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9279. set dummy ${ncn_progname}; ac_word=$2
  9280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9281. $as_echo_n "checking for $ac_word... " >&6; }
  9282. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9283. $as_echo_n "(cached) " >&6
  9284. else
  9285. if test -n "$GFORTRAN_FOR_TARGET"; then
  9286. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9287. else
  9288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9289. for as_dir in $PATH
  9290. do
  9291. IFS=$as_save_IFS
  9292. test -z "$as_dir" && as_dir=.
  9293. for ac_exec_ext in '' $ac_executable_extensions; do
  9294. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9295. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9297. break 2
  9298. fi
  9299. done
  9300. done
  9301. IFS=$as_save_IFS
  9302. fi
  9303. fi
  9304. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9305. if test -n "$GFORTRAN_FOR_TARGET"; then
  9306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9307. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9308. else
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9310. $as_echo "no" >&6; }
  9311. fi
  9312. fi
  9313. test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
  9314. done
  9315. fi
  9316. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
  9317. set dummy gfortran
  9318. if test $build = $target ; then
  9319. GFORTRAN_FOR_TARGET="$2"
  9320. else
  9321. GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9322. fi
  9323. else
  9324. GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
  9325. fi
  9326. if test -n "$GOC_FOR_TARGET"; then
  9327. ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
  9328. elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9329. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9330. fi
  9331. if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9332. for ncn_progname in gccgo; do
  9333. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9334. set dummy ${ncn_progname}; ac_word=$2
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9336. $as_echo_n "checking for $ac_word... " >&6; }
  9337. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9338. $as_echo_n "(cached) " >&6
  9339. else
  9340. if test -n "$GOC_FOR_TARGET"; then
  9341. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9342. else
  9343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9344. for as_dir in $PATH
  9345. do
  9346. IFS=$as_save_IFS
  9347. test -z "$as_dir" && as_dir=.
  9348. for ac_exec_ext in '' $ac_executable_extensions; do
  9349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9350. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9352. break 2
  9353. fi
  9354. done
  9355. done
  9356. IFS=$as_save_IFS
  9357. fi
  9358. fi
  9359. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9360. if test -n "$GOC_FOR_TARGET"; then
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9362. $as_echo "$GOC_FOR_TARGET" >&6; }
  9363. else
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9365. $as_echo "no" >&6; }
  9366. fi
  9367. done
  9368. fi
  9369. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9370. for ncn_progname in gccgo; do
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9372. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9373. if test -x $with_build_time_tools/${ncn_progname}; then
  9374. ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9376. $as_echo "yes" >&6; }
  9377. break
  9378. else
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9380. $as_echo "no" >&6; }
  9381. fi
  9382. done
  9383. fi
  9384. if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
  9385. for ncn_progname in gccgo; do
  9386. if test -n "$ncn_target_tool_prefix"; then
  9387. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9388. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9390. $as_echo_n "checking for $ac_word... " >&6; }
  9391. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9392. $as_echo_n "(cached) " >&6
  9393. else
  9394. if test -n "$GOC_FOR_TARGET"; then
  9395. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9396. else
  9397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9398. for as_dir in $PATH
  9399. do
  9400. IFS=$as_save_IFS
  9401. test -z "$as_dir" && as_dir=.
  9402. for ac_exec_ext in '' $ac_executable_extensions; do
  9403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9404. ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9406. break 2
  9407. fi
  9408. done
  9409. done
  9410. IFS=$as_save_IFS
  9411. fi
  9412. fi
  9413. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9414. if test -n "$GOC_FOR_TARGET"; then
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9416. $as_echo "$GOC_FOR_TARGET" >&6; }
  9417. else
  9418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9419. $as_echo "no" >&6; }
  9420. fi
  9421. fi
  9422. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
  9423. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9424. set dummy ${ncn_progname}; ac_word=$2
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9426. $as_echo_n "checking for $ac_word... " >&6; }
  9427. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9428. $as_echo_n "(cached) " >&6
  9429. else
  9430. if test -n "$GOC_FOR_TARGET"; then
  9431. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9432. else
  9433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9434. for as_dir in $PATH
  9435. do
  9436. IFS=$as_save_IFS
  9437. test -z "$as_dir" && as_dir=.
  9438. for ac_exec_ext in '' $ac_executable_extensions; do
  9439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9440. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9442. break 2
  9443. fi
  9444. done
  9445. done
  9446. IFS=$as_save_IFS
  9447. fi
  9448. fi
  9449. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9450. if test -n "$GOC_FOR_TARGET"; then
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9452. $as_echo "$GOC_FOR_TARGET" >&6; }
  9453. else
  9454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9455. $as_echo "no" >&6; }
  9456. fi
  9457. fi
  9458. test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
  9459. done
  9460. fi
  9461. if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
  9462. set dummy gccgo
  9463. if test $build = $target ; then
  9464. GOC_FOR_TARGET="$2"
  9465. else
  9466. GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9467. fi
  9468. else
  9469. GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
  9470. fi
  9471. cat > conftest.c << \EOF
  9472. #ifdef __GNUC__
  9473. gcc_yay;
  9474. #endif
  9475. EOF
  9476. if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
  9477. have_gcc_for_target=yes
  9478. else
  9479. GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
  9480. have_gcc_for_target=no
  9481. fi
  9482. rm conftest.c
  9483. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9484. if test -n "$with_build_time_tools"; then
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
  9486. $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
  9487. if test -x $with_build_time_tools/ar; then
  9488. AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
  9489. ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
  9491. $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
  9492. else
  9493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9494. $as_echo "no" >&6; }
  9495. fi
  9496. elif test $build != $host && test $have_gcc_for_target = yes; then
  9497. AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
  9498. test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
  9499. test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9500. fi
  9501. fi
  9502. if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9503. # Extract the first word of "ar", so it can be a program name with args.
  9504. set dummy ar; ac_word=$2
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9506. $as_echo_n "checking for $ac_word... " >&6; }
  9507. if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
  9508. $as_echo_n "(cached) " >&6
  9509. else
  9510. case $AR_FOR_TARGET in
  9511. [\\/]* | ?:[\\/]*)
  9512. ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
  9513. ;;
  9514. *)
  9515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9516. for as_dir in $gcc_cv_tool_dirs
  9517. do
  9518. IFS=$as_save_IFS
  9519. test -z "$as_dir" && as_dir=.
  9520. for ac_exec_ext in '' $ac_executable_extensions; do
  9521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9522. ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9524. break 2
  9525. fi
  9526. done
  9527. done
  9528. IFS=$as_save_IFS
  9529. ;;
  9530. esac
  9531. fi
  9532. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9533. if test -n "$AR_FOR_TARGET"; then
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9535. $as_echo "$AR_FOR_TARGET" >&6; }
  9536. else
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9538. $as_echo "no" >&6; }
  9539. fi
  9540. fi
  9541. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9542. if test -n "$AR_FOR_TARGET"; then
  9543. ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
  9544. elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9545. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9546. fi
  9547. if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9548. for ncn_progname in ar; do
  9549. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9550. set dummy ${ncn_progname}; ac_word=$2
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9552. $as_echo_n "checking for $ac_word... " >&6; }
  9553. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9554. $as_echo_n "(cached) " >&6
  9555. else
  9556. if test -n "$AR_FOR_TARGET"; then
  9557. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9558. else
  9559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9560. for as_dir in $PATH
  9561. do
  9562. IFS=$as_save_IFS
  9563. test -z "$as_dir" && as_dir=.
  9564. for ac_exec_ext in '' $ac_executable_extensions; do
  9565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9566. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9568. break 2
  9569. fi
  9570. done
  9571. done
  9572. IFS=$as_save_IFS
  9573. fi
  9574. fi
  9575. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9576. if test -n "$AR_FOR_TARGET"; then
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9578. $as_echo "$AR_FOR_TARGET" >&6; }
  9579. else
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9581. $as_echo "no" >&6; }
  9582. fi
  9583. done
  9584. fi
  9585. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9586. for ncn_progname in ar; do
  9587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9588. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9589. if test -x $with_build_time_tools/${ncn_progname}; then
  9590. ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9592. $as_echo "yes" >&6; }
  9593. break
  9594. else
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9596. $as_echo "no" >&6; }
  9597. fi
  9598. done
  9599. fi
  9600. if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
  9601. for ncn_progname in ar; do
  9602. if test -n "$ncn_target_tool_prefix"; then
  9603. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9604. set dummy ${ncn_target_tool_prefix}${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; }
  9607. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9608. $as_echo_n "(cached) " >&6
  9609. else
  9610. if test -n "$AR_FOR_TARGET"; then
  9611. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9612. else
  9613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9614. for as_dir in $PATH
  9615. do
  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_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9622. break 2
  9623. fi
  9624. done
  9625. done
  9626. IFS=$as_save_IFS
  9627. fi
  9628. fi
  9629. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9630. if test -n "$AR_FOR_TARGET"; then
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9632. $as_echo "$AR_FOR_TARGET" >&6; }
  9633. else
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9635. $as_echo "no" >&6; }
  9636. fi
  9637. fi
  9638. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
  9639. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9640. set dummy ${ncn_progname}; ac_word=$2
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9642. $as_echo_n "checking for $ac_word... " >&6; }
  9643. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9644. $as_echo_n "(cached) " >&6
  9645. else
  9646. if test -n "$AR_FOR_TARGET"; then
  9647. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9648. else
  9649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9650. for as_dir in $PATH
  9651. do
  9652. IFS=$as_save_IFS
  9653. test -z "$as_dir" && as_dir=.
  9654. for ac_exec_ext in '' $ac_executable_extensions; do
  9655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9656. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9658. break 2
  9659. fi
  9660. done
  9661. done
  9662. IFS=$as_save_IFS
  9663. fi
  9664. fi
  9665. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9666. if test -n "$AR_FOR_TARGET"; then
  9667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9668. $as_echo "$AR_FOR_TARGET" >&6; }
  9669. else
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9671. $as_echo "no" >&6; }
  9672. fi
  9673. fi
  9674. test -n "$ac_cv_prog_AR_FOR_TARGET" && break
  9675. done
  9676. fi
  9677. if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
  9678. set dummy ar
  9679. if test $build = $target ; then
  9680. AR_FOR_TARGET="$2"
  9681. else
  9682. AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9683. fi
  9684. else
  9685. AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
  9686. fi
  9687. else
  9688. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9689. fi
  9690. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9691. if test -n "$with_build_time_tools"; then
  9692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
  9693. $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
  9694. if test -x $with_build_time_tools/as; then
  9695. AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
  9696. ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
  9698. $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
  9699. else
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9701. $as_echo "no" >&6; }
  9702. fi
  9703. elif test $build != $host && test $have_gcc_for_target = yes; then
  9704. AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
  9705. test $AS_FOR_TARGET = as && AS_FOR_TARGET=
  9706. test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9707. fi
  9708. fi
  9709. if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9710. # Extract the first word of "as", so it can be a program name with args.
  9711. set dummy as; ac_word=$2
  9712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9713. $as_echo_n "checking for $ac_word... " >&6; }
  9714. if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
  9715. $as_echo_n "(cached) " >&6
  9716. else
  9717. case $AS_FOR_TARGET in
  9718. [\\/]* | ?:[\\/]*)
  9719. ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
  9720. ;;
  9721. *)
  9722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9723. for as_dir in $gcc_cv_tool_dirs
  9724. do
  9725. IFS=$as_save_IFS
  9726. test -z "$as_dir" && as_dir=.
  9727. for ac_exec_ext in '' $ac_executable_extensions; do
  9728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9729. ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9731. break 2
  9732. fi
  9733. done
  9734. done
  9735. IFS=$as_save_IFS
  9736. ;;
  9737. esac
  9738. fi
  9739. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  9740. if test -n "$AS_FOR_TARGET"; then
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9742. $as_echo "$AS_FOR_TARGET" >&6; }
  9743. else
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9745. $as_echo "no" >&6; }
  9746. fi
  9747. fi
  9748. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9749. if test -n "$AS_FOR_TARGET"; then
  9750. ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
  9751. elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  9752. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9753. fi
  9754. if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  9755. for ncn_progname in as; do
  9756. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9757. set dummy ${ncn_progname}; ac_word=$2
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9759. $as_echo_n "checking for $ac_word... " >&6; }
  9760. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9761. $as_echo_n "(cached) " >&6
  9762. else
  9763. if test -n "$AS_FOR_TARGET"; then
  9764. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9765. else
  9766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9767. for as_dir in $PATH
  9768. do
  9769. IFS=$as_save_IFS
  9770. test -z "$as_dir" && as_dir=.
  9771. for ac_exec_ext in '' $ac_executable_extensions; do
  9772. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9773. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  9774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9775. break 2
  9776. fi
  9777. done
  9778. done
  9779. IFS=$as_save_IFS
  9780. fi
  9781. fi
  9782. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9783. if test -n "$AS_FOR_TARGET"; then
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9785. $as_echo "$AS_FOR_TARGET" >&6; }
  9786. else
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9788. $as_echo "no" >&6; }
  9789. fi
  9790. done
  9791. fi
  9792. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9793. for ncn_progname in as; do
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9795. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9796. if test -x $with_build_time_tools/${ncn_progname}; then
  9797. ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9799. $as_echo "yes" >&6; }
  9800. break
  9801. else
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9803. $as_echo "no" >&6; }
  9804. fi
  9805. done
  9806. fi
  9807. if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
  9808. for ncn_progname in as; do
  9809. if test -n "$ncn_target_tool_prefix"; then
  9810. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9811. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9813. $as_echo_n "checking for $ac_word... " >&6; }
  9814. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9815. $as_echo_n "(cached) " >&6
  9816. else
  9817. if test -n "$AS_FOR_TARGET"; then
  9818. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9819. else
  9820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9821. for as_dir in $PATH
  9822. do
  9823. IFS=$as_save_IFS
  9824. test -z "$as_dir" && as_dir=.
  9825. for ac_exec_ext in '' $ac_executable_extensions; do
  9826. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9827. ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9829. break 2
  9830. fi
  9831. done
  9832. done
  9833. IFS=$as_save_IFS
  9834. fi
  9835. fi
  9836. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9837. if test -n "$AS_FOR_TARGET"; then
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9839. $as_echo "$AS_FOR_TARGET" >&6; }
  9840. else
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9842. $as_echo "no" >&6; }
  9843. fi
  9844. fi
  9845. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
  9846. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9847. set dummy ${ncn_progname}; ac_word=$2
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9849. $as_echo_n "checking for $ac_word... " >&6; }
  9850. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9851. $as_echo_n "(cached) " >&6
  9852. else
  9853. if test -n "$AS_FOR_TARGET"; then
  9854. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9855. else
  9856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9857. for as_dir in $PATH
  9858. do
  9859. IFS=$as_save_IFS
  9860. test -z "$as_dir" && as_dir=.
  9861. for ac_exec_ext in '' $ac_executable_extensions; do
  9862. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9863. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  9864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9865. break 2
  9866. fi
  9867. done
  9868. done
  9869. IFS=$as_save_IFS
  9870. fi
  9871. fi
  9872. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9873. if test -n "$AS_FOR_TARGET"; then
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9875. $as_echo "$AS_FOR_TARGET" >&6; }
  9876. else
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9878. $as_echo "no" >&6; }
  9879. fi
  9880. fi
  9881. test -n "$ac_cv_prog_AS_FOR_TARGET" && break
  9882. done
  9883. fi
  9884. if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
  9885. set dummy as
  9886. if test $build = $target ; then
  9887. AS_FOR_TARGET="$2"
  9888. else
  9889. AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9890. fi
  9891. else
  9892. AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
  9893. fi
  9894. else
  9895. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  9896. fi
  9897. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  9898. if test -n "$with_build_time_tools"; then
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
  9900. $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
  9901. if test -x $with_build_time_tools/dlltool; then
  9902. DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
  9903. ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
  9905. $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
  9906. else
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9908. $as_echo "no" >&6; }
  9909. fi
  9910. elif test $build != $host && test $have_gcc_for_target = yes; then
  9911. DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
  9912. test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
  9913. test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  9914. fi
  9915. fi
  9916. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9917. # Extract the first word of "dlltool", so it can be a program name with args.
  9918. set dummy dlltool; ac_word=$2
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9920. $as_echo_n "checking for $ac_word... " >&6; }
  9921. if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
  9922. $as_echo_n "(cached) " >&6
  9923. else
  9924. case $DLLTOOL_FOR_TARGET in
  9925. [\\/]* | ?:[\\/]*)
  9926. ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
  9927. ;;
  9928. *)
  9929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9930. for as_dir in $gcc_cv_tool_dirs
  9931. do
  9932. IFS=$as_save_IFS
  9933. test -z "$as_dir" && as_dir=.
  9934. for ac_exec_ext in '' $ac_executable_extensions; do
  9935. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9936. ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9938. break 2
  9939. fi
  9940. done
  9941. done
  9942. IFS=$as_save_IFS
  9943. ;;
  9944. esac
  9945. fi
  9946. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  9947. if test -n "$DLLTOOL_FOR_TARGET"; then
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  9949. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  9950. else
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9952. $as_echo "no" >&6; }
  9953. fi
  9954. fi
  9955. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  9956. if test -n "$DLLTOOL_FOR_TARGET"; then
  9957. ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  9958. elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  9959. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  9960. fi
  9961. if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  9962. for ncn_progname in dlltool; do
  9963. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9964. set dummy ${ncn_progname}; ac_word=$2
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9966. $as_echo_n "checking for $ac_word... " >&6; }
  9967. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. if test -n "$DLLTOOL_FOR_TARGET"; then
  9971. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  9972. else
  9973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9974. for as_dir in $PATH
  9975. do
  9976. IFS=$as_save_IFS
  9977. test -z "$as_dir" && as_dir=.
  9978. for ac_exec_ext in '' $ac_executable_extensions; do
  9979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9980. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  9981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9982. break 2
  9983. fi
  9984. done
  9985. done
  9986. IFS=$as_save_IFS
  9987. fi
  9988. fi
  9989. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  9990. if test -n "$DLLTOOL_FOR_TARGET"; then
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  9992. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  9993. else
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9995. $as_echo "no" >&6; }
  9996. fi
  9997. done
  9998. fi
  9999. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10000. for ncn_progname in dlltool; do
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10002. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10003. if test -x $with_build_time_tools/${ncn_progname}; then
  10004. ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10006. $as_echo "yes" >&6; }
  10007. break
  10008. else
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10010. $as_echo "no" >&6; }
  10011. fi
  10012. done
  10013. fi
  10014. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10015. for ncn_progname in dlltool; do
  10016. if test -n "$ncn_target_tool_prefix"; then
  10017. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10018. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10020. $as_echo_n "checking for $ac_word... " >&6; }
  10021. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10022. $as_echo_n "(cached) " >&6
  10023. else
  10024. if test -n "$DLLTOOL_FOR_TARGET"; then
  10025. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10026. else
  10027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10028. for as_dir in $PATH
  10029. do
  10030. IFS=$as_save_IFS
  10031. test -z "$as_dir" && as_dir=.
  10032. for ac_exec_ext in '' $ac_executable_extensions; do
  10033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10034. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10036. break 2
  10037. fi
  10038. done
  10039. done
  10040. IFS=$as_save_IFS
  10041. fi
  10042. fi
  10043. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10044. if test -n "$DLLTOOL_FOR_TARGET"; then
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10046. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10047. else
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10049. $as_echo "no" >&6; }
  10050. fi
  10051. fi
  10052. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
  10053. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10054. set dummy ${ncn_progname}; ac_word=$2
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10056. $as_echo_n "checking for $ac_word... " >&6; }
  10057. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10058. $as_echo_n "(cached) " >&6
  10059. else
  10060. if test -n "$DLLTOOL_FOR_TARGET"; then
  10061. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10062. else
  10063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10064. for as_dir in $PATH
  10065. do
  10066. IFS=$as_save_IFS
  10067. test -z "$as_dir" && as_dir=.
  10068. for ac_exec_ext in '' $ac_executable_extensions; do
  10069. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10070. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10072. break 2
  10073. fi
  10074. done
  10075. done
  10076. IFS=$as_save_IFS
  10077. fi
  10078. fi
  10079. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10080. if test -n "$DLLTOOL_FOR_TARGET"; then
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10082. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10083. else
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10085. $as_echo "no" >&6; }
  10086. fi
  10087. fi
  10088. test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
  10089. done
  10090. fi
  10091. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
  10092. set dummy dlltool
  10093. if test $build = $target ; then
  10094. DLLTOOL_FOR_TARGET="$2"
  10095. else
  10096. DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10097. fi
  10098. else
  10099. DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
  10100. fi
  10101. else
  10102. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10103. fi
  10104. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10105. if test -n "$with_build_time_tools"; then
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
  10107. $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
  10108. if test -x $with_build_time_tools/ld; then
  10109. LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
  10110. ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
  10112. $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
  10113. else
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10115. $as_echo "no" >&6; }
  10116. fi
  10117. elif test $build != $host && test $have_gcc_for_target = yes; then
  10118. LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
  10119. test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
  10120. test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10121. fi
  10122. fi
  10123. if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10124. # Extract the first word of "ld", so it can be a program name with args.
  10125. set dummy ld; ac_word=$2
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10127. $as_echo_n "checking for $ac_word... " >&6; }
  10128. if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. case $LD_FOR_TARGET in
  10132. [\\/]* | ?:[\\/]*)
  10133. ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
  10134. ;;
  10135. *)
  10136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10137. for as_dir in $gcc_cv_tool_dirs
  10138. do
  10139. IFS=$as_save_IFS
  10140. test -z "$as_dir" && as_dir=.
  10141. for ac_exec_ext in '' $ac_executable_extensions; do
  10142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10143. ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10145. break 2
  10146. fi
  10147. done
  10148. done
  10149. IFS=$as_save_IFS
  10150. ;;
  10151. esac
  10152. fi
  10153. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10154. if test -n "$LD_FOR_TARGET"; then
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10156. $as_echo "$LD_FOR_TARGET" >&6; }
  10157. else
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10159. $as_echo "no" >&6; }
  10160. fi
  10161. fi
  10162. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10163. if test -n "$LD_FOR_TARGET"; then
  10164. ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
  10165. elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10166. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10167. fi
  10168. if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10169. for ncn_progname in ld; do
  10170. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10171. set dummy ${ncn_progname}; ac_word=$2
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10173. $as_echo_n "checking for $ac_word... " >&6; }
  10174. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10175. $as_echo_n "(cached) " >&6
  10176. else
  10177. if test -n "$LD_FOR_TARGET"; then
  10178. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10179. else
  10180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10181. for as_dir in $PATH
  10182. do
  10183. IFS=$as_save_IFS
  10184. test -z "$as_dir" && as_dir=.
  10185. for ac_exec_ext in '' $ac_executable_extensions; do
  10186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10187. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10189. break 2
  10190. fi
  10191. done
  10192. done
  10193. IFS=$as_save_IFS
  10194. fi
  10195. fi
  10196. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10197. if test -n "$LD_FOR_TARGET"; then
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10199. $as_echo "$LD_FOR_TARGET" >&6; }
  10200. else
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10202. $as_echo "no" >&6; }
  10203. fi
  10204. done
  10205. fi
  10206. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10207. for ncn_progname in ld; do
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10209. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10210. if test -x $with_build_time_tools/${ncn_progname}; then
  10211. ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10213. $as_echo "yes" >&6; }
  10214. break
  10215. else
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10217. $as_echo "no" >&6; }
  10218. fi
  10219. done
  10220. fi
  10221. if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
  10222. for ncn_progname in ld; do
  10223. if test -n "$ncn_target_tool_prefix"; then
  10224. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10225. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10227. $as_echo_n "checking for $ac_word... " >&6; }
  10228. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10229. $as_echo_n "(cached) " >&6
  10230. else
  10231. if test -n "$LD_FOR_TARGET"; then
  10232. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10233. else
  10234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10235. for as_dir in $PATH
  10236. do
  10237. IFS=$as_save_IFS
  10238. test -z "$as_dir" && as_dir=.
  10239. for ac_exec_ext in '' $ac_executable_extensions; do
  10240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10241. ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10243. break 2
  10244. fi
  10245. done
  10246. done
  10247. IFS=$as_save_IFS
  10248. fi
  10249. fi
  10250. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10251. if test -n "$LD_FOR_TARGET"; then
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10253. $as_echo "$LD_FOR_TARGET" >&6; }
  10254. else
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10256. $as_echo "no" >&6; }
  10257. fi
  10258. fi
  10259. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
  10260. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10261. set dummy ${ncn_progname}; ac_word=$2
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10263. $as_echo_n "checking for $ac_word... " >&6; }
  10264. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10265. $as_echo_n "(cached) " >&6
  10266. else
  10267. if test -n "$LD_FOR_TARGET"; then
  10268. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10269. else
  10270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10271. for as_dir in $PATH
  10272. do
  10273. IFS=$as_save_IFS
  10274. test -z "$as_dir" && as_dir=.
  10275. for ac_exec_ext in '' $ac_executable_extensions; do
  10276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10277. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10279. break 2
  10280. fi
  10281. done
  10282. done
  10283. IFS=$as_save_IFS
  10284. fi
  10285. fi
  10286. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10287. if test -n "$LD_FOR_TARGET"; then
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10289. $as_echo "$LD_FOR_TARGET" >&6; }
  10290. else
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10292. $as_echo "no" >&6; }
  10293. fi
  10294. fi
  10295. test -n "$ac_cv_prog_LD_FOR_TARGET" && break
  10296. done
  10297. fi
  10298. if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
  10299. set dummy ld
  10300. if test $build = $target ; then
  10301. LD_FOR_TARGET="$2"
  10302. else
  10303. LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10304. fi
  10305. else
  10306. LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
  10307. fi
  10308. else
  10309. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10310. fi
  10311. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10312. if test -n "$with_build_time_tools"; then
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
  10314. $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
  10315. if test -x $with_build_time_tools/lipo; then
  10316. LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
  10317. ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
  10319. $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
  10320. else
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10322. $as_echo "no" >&6; }
  10323. fi
  10324. elif test $build != $host && test $have_gcc_for_target = yes; then
  10325. LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
  10326. test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
  10327. test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10328. fi
  10329. fi
  10330. if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10331. # Extract the first word of "lipo", so it can be a program name with args.
  10332. set dummy lipo; ac_word=$2
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10334. $as_echo_n "checking for $ac_word... " >&6; }
  10335. if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
  10336. $as_echo_n "(cached) " >&6
  10337. else
  10338. case $LIPO_FOR_TARGET in
  10339. [\\/]* | ?:[\\/]*)
  10340. ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
  10341. ;;
  10342. *)
  10343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10344. for as_dir in $gcc_cv_tool_dirs
  10345. do
  10346. IFS=$as_save_IFS
  10347. test -z "$as_dir" && as_dir=.
  10348. for ac_exec_ext in '' $ac_executable_extensions; do
  10349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10350. ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10352. break 2
  10353. fi
  10354. done
  10355. done
  10356. IFS=$as_save_IFS
  10357. ;;
  10358. esac
  10359. fi
  10360. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10361. if test -n "$LIPO_FOR_TARGET"; then
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10363. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10364. else
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10366. $as_echo "no" >&6; }
  10367. fi
  10368. fi
  10369. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10370. if test -n "$LIPO_FOR_TARGET"; then
  10371. ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10372. elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10373. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10374. fi
  10375. if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10376. for ncn_progname in lipo; do
  10377. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10378. set dummy ${ncn_progname}; ac_word=$2
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10380. $as_echo_n "checking for $ac_word... " >&6; }
  10381. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10382. $as_echo_n "(cached) " >&6
  10383. else
  10384. if test -n "$LIPO_FOR_TARGET"; then
  10385. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10386. else
  10387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10388. for as_dir in $PATH
  10389. do
  10390. IFS=$as_save_IFS
  10391. test -z "$as_dir" && as_dir=.
  10392. for ac_exec_ext in '' $ac_executable_extensions; do
  10393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10394. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10396. break 2
  10397. fi
  10398. done
  10399. done
  10400. IFS=$as_save_IFS
  10401. fi
  10402. fi
  10403. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10404. if test -n "$LIPO_FOR_TARGET"; then
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10406. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10407. else
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10409. $as_echo "no" >&6; }
  10410. fi
  10411. done
  10412. fi
  10413. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10414. for ncn_progname in lipo; do
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10416. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10417. if test -x $with_build_time_tools/${ncn_progname}; then
  10418. ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10420. $as_echo "yes" >&6; }
  10421. break
  10422. else
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10424. $as_echo "no" >&6; }
  10425. fi
  10426. done
  10427. fi
  10428. if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10429. for ncn_progname in lipo; do
  10430. if test -n "$ncn_target_tool_prefix"; then
  10431. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10432. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10434. $as_echo_n "checking for $ac_word... " >&6; }
  10435. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10436. $as_echo_n "(cached) " >&6
  10437. else
  10438. if test -n "$LIPO_FOR_TARGET"; then
  10439. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10440. else
  10441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10442. for as_dir in $PATH
  10443. do
  10444. IFS=$as_save_IFS
  10445. test -z "$as_dir" && as_dir=.
  10446. for ac_exec_ext in '' $ac_executable_extensions; do
  10447. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10448. ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10450. break 2
  10451. fi
  10452. done
  10453. done
  10454. IFS=$as_save_IFS
  10455. fi
  10456. fi
  10457. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10458. if test -n "$LIPO_FOR_TARGET"; then
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10460. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10461. else
  10462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10463. $as_echo "no" >&6; }
  10464. fi
  10465. fi
  10466. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
  10467. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10468. set dummy ${ncn_progname}; ac_word=$2
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10470. $as_echo_n "checking for $ac_word... " >&6; }
  10471. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10472. $as_echo_n "(cached) " >&6
  10473. else
  10474. if test -n "$LIPO_FOR_TARGET"; then
  10475. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10476. else
  10477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10478. for as_dir in $PATH
  10479. do
  10480. IFS=$as_save_IFS
  10481. test -z "$as_dir" && as_dir=.
  10482. for ac_exec_ext in '' $ac_executable_extensions; do
  10483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10484. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10486. break 2
  10487. fi
  10488. done
  10489. done
  10490. IFS=$as_save_IFS
  10491. fi
  10492. fi
  10493. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10494. if test -n "$LIPO_FOR_TARGET"; then
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10496. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10497. else
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10499. $as_echo "no" >&6; }
  10500. fi
  10501. fi
  10502. test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
  10503. done
  10504. fi
  10505. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
  10506. set dummy lipo
  10507. if test $build = $target ; then
  10508. LIPO_FOR_TARGET="$2"
  10509. else
  10510. LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10511. fi
  10512. else
  10513. LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
  10514. fi
  10515. else
  10516. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10517. fi
  10518. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10519. if test -n "$with_build_time_tools"; then
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
  10521. $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
  10522. if test -x $with_build_time_tools/nm; then
  10523. NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
  10524. ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
  10526. $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
  10527. else
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10529. $as_echo "no" >&6; }
  10530. fi
  10531. elif test $build != $host && test $have_gcc_for_target = yes; then
  10532. NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
  10533. test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
  10534. test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10535. fi
  10536. fi
  10537. if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10538. # Extract the first word of "nm", so it can be a program name with args.
  10539. set dummy nm; ac_word=$2
  10540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10541. $as_echo_n "checking for $ac_word... " >&6; }
  10542. if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
  10543. $as_echo_n "(cached) " >&6
  10544. else
  10545. case $NM_FOR_TARGET in
  10546. [\\/]* | ?:[\\/]*)
  10547. ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
  10548. ;;
  10549. *)
  10550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10551. for as_dir in $gcc_cv_tool_dirs
  10552. do
  10553. IFS=$as_save_IFS
  10554. test -z "$as_dir" && as_dir=.
  10555. for ac_exec_ext in '' $ac_executable_extensions; do
  10556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10557. ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10559. break 2
  10560. fi
  10561. done
  10562. done
  10563. IFS=$as_save_IFS
  10564. ;;
  10565. esac
  10566. fi
  10567. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10568. if test -n "$NM_FOR_TARGET"; then
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10570. $as_echo "$NM_FOR_TARGET" >&6; }
  10571. else
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10573. $as_echo "no" >&6; }
  10574. fi
  10575. fi
  10576. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10577. if test -n "$NM_FOR_TARGET"; then
  10578. ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
  10579. elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10580. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10581. fi
  10582. if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10583. for ncn_progname in nm; do
  10584. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10585. set dummy ${ncn_progname}; ac_word=$2
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10587. $as_echo_n "checking for $ac_word... " >&6; }
  10588. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10589. $as_echo_n "(cached) " >&6
  10590. else
  10591. if test -n "$NM_FOR_TARGET"; then
  10592. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10593. else
  10594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10595. for as_dir in $PATH
  10596. do
  10597. IFS=$as_save_IFS
  10598. test -z "$as_dir" && as_dir=.
  10599. for ac_exec_ext in '' $ac_executable_extensions; do
  10600. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10601. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10603. break 2
  10604. fi
  10605. done
  10606. done
  10607. IFS=$as_save_IFS
  10608. fi
  10609. fi
  10610. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10611. if test -n "$NM_FOR_TARGET"; then
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10613. $as_echo "$NM_FOR_TARGET" >&6; }
  10614. else
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10616. $as_echo "no" >&6; }
  10617. fi
  10618. done
  10619. fi
  10620. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10621. for ncn_progname in nm; do
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10623. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10624. if test -x $with_build_time_tools/${ncn_progname}; then
  10625. ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10627. $as_echo "yes" >&6; }
  10628. break
  10629. else
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10631. $as_echo "no" >&6; }
  10632. fi
  10633. done
  10634. fi
  10635. if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
  10636. for ncn_progname in nm; do
  10637. if test -n "$ncn_target_tool_prefix"; then
  10638. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10639. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10641. $as_echo_n "checking for $ac_word... " >&6; }
  10642. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10643. $as_echo_n "(cached) " >&6
  10644. else
  10645. if test -n "$NM_FOR_TARGET"; then
  10646. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10647. else
  10648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10649. for as_dir in $PATH
  10650. do
  10651. IFS=$as_save_IFS
  10652. test -z "$as_dir" && as_dir=.
  10653. for ac_exec_ext in '' $ac_executable_extensions; do
  10654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10655. ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10657. break 2
  10658. fi
  10659. done
  10660. done
  10661. IFS=$as_save_IFS
  10662. fi
  10663. fi
  10664. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10665. if test -n "$NM_FOR_TARGET"; then
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10667. $as_echo "$NM_FOR_TARGET" >&6; }
  10668. else
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10670. $as_echo "no" >&6; }
  10671. fi
  10672. fi
  10673. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
  10674. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10675. set dummy ${ncn_progname}; ac_word=$2
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10677. $as_echo_n "checking for $ac_word... " >&6; }
  10678. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10679. $as_echo_n "(cached) " >&6
  10680. else
  10681. if test -n "$NM_FOR_TARGET"; then
  10682. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10683. else
  10684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10685. for as_dir in $PATH
  10686. do
  10687. IFS=$as_save_IFS
  10688. test -z "$as_dir" && as_dir=.
  10689. for ac_exec_ext in '' $ac_executable_extensions; do
  10690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10691. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10693. break 2
  10694. fi
  10695. done
  10696. done
  10697. IFS=$as_save_IFS
  10698. fi
  10699. fi
  10700. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10701. if test -n "$NM_FOR_TARGET"; then
  10702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10703. $as_echo "$NM_FOR_TARGET" >&6; }
  10704. else
  10705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10706. $as_echo "no" >&6; }
  10707. fi
  10708. fi
  10709. test -n "$ac_cv_prog_NM_FOR_TARGET" && break
  10710. done
  10711. fi
  10712. if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
  10713. set dummy nm
  10714. if test $build = $target ; then
  10715. NM_FOR_TARGET="$2"
  10716. else
  10717. NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10718. fi
  10719. else
  10720. NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
  10721. fi
  10722. else
  10723. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10724. fi
  10725. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  10726. if test -n "$with_build_time_tools"; then
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
  10728. $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
  10729. if test -x $with_build_time_tools/objdump; then
  10730. OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
  10731. ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
  10733. $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
  10734. else
  10735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10736. $as_echo "no" >&6; }
  10737. fi
  10738. elif test $build != $host && test $have_gcc_for_target = yes; then
  10739. OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
  10740. test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
  10741. test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  10742. fi
  10743. fi
  10744. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10745. # Extract the first word of "objdump", so it can be a program name with args.
  10746. set dummy objdump; ac_word=$2
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10748. $as_echo_n "checking for $ac_word... " >&6; }
  10749. if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
  10750. $as_echo_n "(cached) " >&6
  10751. else
  10752. case $OBJDUMP_FOR_TARGET in
  10753. [\\/]* | ?:[\\/]*)
  10754. ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
  10755. ;;
  10756. *)
  10757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10758. for as_dir in $gcc_cv_tool_dirs
  10759. do
  10760. IFS=$as_save_IFS
  10761. test -z "$as_dir" && as_dir=.
  10762. for ac_exec_ext in '' $ac_executable_extensions; do
  10763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10764. ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10766. break 2
  10767. fi
  10768. done
  10769. done
  10770. IFS=$as_save_IFS
  10771. ;;
  10772. esac
  10773. fi
  10774. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  10775. if test -n "$OBJDUMP_FOR_TARGET"; then
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  10777. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  10778. else
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10780. $as_echo "no" >&6; }
  10781. fi
  10782. fi
  10783. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  10784. if test -n "$OBJDUMP_FOR_TARGET"; then
  10785. ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  10786. elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  10787. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  10788. fi
  10789. if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  10790. for ncn_progname in objdump; do
  10791. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10792. set dummy ${ncn_progname}; ac_word=$2
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10794. $as_echo_n "checking for $ac_word... " >&6; }
  10795. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  10796. $as_echo_n "(cached) " >&6
  10797. else
  10798. if test -n "$OBJDUMP_FOR_TARGET"; then
  10799. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  10800. else
  10801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10802. for as_dir in $PATH
  10803. do
  10804. IFS=$as_save_IFS
  10805. test -z "$as_dir" && as_dir=.
  10806. for ac_exec_ext in '' $ac_executable_extensions; do
  10807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10808. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  10809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10810. break 2
  10811. fi
  10812. done
  10813. done
  10814. IFS=$as_save_IFS
  10815. fi
  10816. fi
  10817. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  10818. if test -n "$OBJDUMP_FOR_TARGET"; then
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  10820. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  10821. else
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10823. $as_echo "no" >&6; }
  10824. fi
  10825. done
  10826. fi
  10827. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10828. for ncn_progname in objdump; do
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10830. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10831. if test -x $with_build_time_tools/${ncn_progname}; then
  10832. ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10834. $as_echo "yes" >&6; }
  10835. break
  10836. else
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10838. $as_echo "no" >&6; }
  10839. fi
  10840. done
  10841. fi
  10842. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  10843. for ncn_progname in objdump; do
  10844. if test -n "$ncn_target_tool_prefix"; then
  10845. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10846. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10848. $as_echo_n "checking for $ac_word... " >&6; }
  10849. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  10850. $as_echo_n "(cached) " >&6
  10851. else
  10852. if test -n "$OBJDUMP_FOR_TARGET"; then
  10853. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  10854. else
  10855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10856. for as_dir in $PATH
  10857. do
  10858. IFS=$as_save_IFS
  10859. test -z "$as_dir" && as_dir=.
  10860. for ac_exec_ext in '' $ac_executable_extensions; do
  10861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10862. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10864. break 2
  10865. fi
  10866. done
  10867. done
  10868. IFS=$as_save_IFS
  10869. fi
  10870. fi
  10871. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  10872. if test -n "$OBJDUMP_FOR_TARGET"; then
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  10874. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  10875. else
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10877. $as_echo "no" >&6; }
  10878. fi
  10879. fi
  10880. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
  10881. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10882. set dummy ${ncn_progname}; ac_word=$2
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10884. $as_echo_n "checking for $ac_word... " >&6; }
  10885. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  10886. $as_echo_n "(cached) " >&6
  10887. else
  10888. if test -n "$OBJDUMP_FOR_TARGET"; then
  10889. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  10890. else
  10891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10892. for as_dir in $PATH
  10893. do
  10894. IFS=$as_save_IFS
  10895. test -z "$as_dir" && as_dir=.
  10896. for ac_exec_ext in '' $ac_executable_extensions; do
  10897. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10898. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  10899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10900. break 2
  10901. fi
  10902. done
  10903. done
  10904. IFS=$as_save_IFS
  10905. fi
  10906. fi
  10907. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  10908. if test -n "$OBJDUMP_FOR_TARGET"; then
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  10910. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  10911. else
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10913. $as_echo "no" >&6; }
  10914. fi
  10915. fi
  10916. test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
  10917. done
  10918. fi
  10919. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
  10920. set dummy objdump
  10921. if test $build = $target ; then
  10922. OBJDUMP_FOR_TARGET="$2"
  10923. else
  10924. OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10925. fi
  10926. else
  10927. OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
  10928. fi
  10929. else
  10930. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  10931. fi
  10932. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  10933. if test -n "$with_build_time_tools"; then
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
  10935. $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
  10936. if test -x $with_build_time_tools/ranlib; then
  10937. RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
  10938. ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
  10940. $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
  10941. else
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10943. $as_echo "no" >&6; }
  10944. fi
  10945. elif test $build != $host && test $have_gcc_for_target = yes; then
  10946. RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
  10947. test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
  10948. test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  10949. fi
  10950. fi
  10951. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10952. # Extract the first word of "ranlib", so it can be a program name with args.
  10953. set dummy ranlib; ac_word=$2
  10954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10955. $as_echo_n "checking for $ac_word... " >&6; }
  10956. if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
  10957. $as_echo_n "(cached) " >&6
  10958. else
  10959. case $RANLIB_FOR_TARGET in
  10960. [\\/]* | ?:[\\/]*)
  10961. ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
  10962. ;;
  10963. *)
  10964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10965. for as_dir in $gcc_cv_tool_dirs
  10966. do
  10967. IFS=$as_save_IFS
  10968. test -z "$as_dir" && as_dir=.
  10969. for ac_exec_ext in '' $ac_executable_extensions; do
  10970. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10971. ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10973. break 2
  10974. fi
  10975. done
  10976. done
  10977. IFS=$as_save_IFS
  10978. ;;
  10979. esac
  10980. fi
  10981. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  10982. if test -n "$RANLIB_FOR_TARGET"; then
  10983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  10984. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  10985. else
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10987. $as_echo "no" >&6; }
  10988. fi
  10989. fi
  10990. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  10991. if test -n "$RANLIB_FOR_TARGET"; then
  10992. ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  10993. elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  10994. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  10995. fi
  10996. if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  10997. for ncn_progname in ranlib; do
  10998. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10999. set dummy ${ncn_progname}; ac_word=$2
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11001. $as_echo_n "checking for $ac_word... " >&6; }
  11002. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11003. $as_echo_n "(cached) " >&6
  11004. else
  11005. if test -n "$RANLIB_FOR_TARGET"; then
  11006. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11007. else
  11008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11009. for as_dir in $PATH
  11010. do
  11011. IFS=$as_save_IFS
  11012. test -z "$as_dir" && as_dir=.
  11013. for ac_exec_ext in '' $ac_executable_extensions; do
  11014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11015. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11017. break 2
  11018. fi
  11019. done
  11020. done
  11021. IFS=$as_save_IFS
  11022. fi
  11023. fi
  11024. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11025. if test -n "$RANLIB_FOR_TARGET"; then
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11027. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11028. else
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11030. $as_echo "no" >&6; }
  11031. fi
  11032. done
  11033. fi
  11034. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11035. for ncn_progname in ranlib; do
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11037. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11038. if test -x $with_build_time_tools/${ncn_progname}; then
  11039. ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11041. $as_echo "yes" >&6; }
  11042. break
  11043. else
  11044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11045. $as_echo "no" >&6; }
  11046. fi
  11047. done
  11048. fi
  11049. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11050. for ncn_progname in ranlib; do
  11051. if test -n "$ncn_target_tool_prefix"; then
  11052. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11053. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11055. $as_echo_n "checking for $ac_word... " >&6; }
  11056. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11057. $as_echo_n "(cached) " >&6
  11058. else
  11059. if test -n "$RANLIB_FOR_TARGET"; then
  11060. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11061. else
  11062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11063. for as_dir in $PATH
  11064. do
  11065. IFS=$as_save_IFS
  11066. test -z "$as_dir" && as_dir=.
  11067. for ac_exec_ext in '' $ac_executable_extensions; do
  11068. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11069. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11071. break 2
  11072. fi
  11073. done
  11074. done
  11075. IFS=$as_save_IFS
  11076. fi
  11077. fi
  11078. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11079. if test -n "$RANLIB_FOR_TARGET"; then
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11081. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11082. else
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11084. $as_echo "no" >&6; }
  11085. fi
  11086. fi
  11087. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
  11088. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11089. set dummy ${ncn_progname}; ac_word=$2
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11091. $as_echo_n "checking for $ac_word... " >&6; }
  11092. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11093. $as_echo_n "(cached) " >&6
  11094. else
  11095. if test -n "$RANLIB_FOR_TARGET"; then
  11096. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11097. else
  11098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11099. for as_dir in $PATH
  11100. do
  11101. IFS=$as_save_IFS
  11102. test -z "$as_dir" && as_dir=.
  11103. for ac_exec_ext in '' $ac_executable_extensions; do
  11104. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11105. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11107. break 2
  11108. fi
  11109. done
  11110. done
  11111. IFS=$as_save_IFS
  11112. fi
  11113. fi
  11114. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11115. if test -n "$RANLIB_FOR_TARGET"; then
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11117. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11118. else
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11120. $as_echo "no" >&6; }
  11121. fi
  11122. fi
  11123. test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
  11124. done
  11125. fi
  11126. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
  11127. set dummy ranlib
  11128. if test $build = $target ; then
  11129. RANLIB_FOR_TARGET="$2"
  11130. else
  11131. RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11132. fi
  11133. else
  11134. RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
  11135. fi
  11136. else
  11137. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11138. fi
  11139. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11140. if test -n "$with_build_time_tools"; then
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
  11142. $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
  11143. if test -x $with_build_time_tools/strip; then
  11144. STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
  11145. ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
  11147. $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
  11148. else
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11150. $as_echo "no" >&6; }
  11151. fi
  11152. elif test $build != $host && test $have_gcc_for_target = yes; then
  11153. STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
  11154. test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
  11155. test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11156. fi
  11157. fi
  11158. if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11159. # Extract the first word of "strip", so it can be a program name with args.
  11160. set dummy strip; ac_word=$2
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11162. $as_echo_n "checking for $ac_word... " >&6; }
  11163. if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
  11164. $as_echo_n "(cached) " >&6
  11165. else
  11166. case $STRIP_FOR_TARGET in
  11167. [\\/]* | ?:[\\/]*)
  11168. ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
  11169. ;;
  11170. *)
  11171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11172. for as_dir in $gcc_cv_tool_dirs
  11173. do
  11174. IFS=$as_save_IFS
  11175. test -z "$as_dir" && as_dir=.
  11176. for ac_exec_ext in '' $ac_executable_extensions; do
  11177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11178. ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11180. break 2
  11181. fi
  11182. done
  11183. done
  11184. IFS=$as_save_IFS
  11185. ;;
  11186. esac
  11187. fi
  11188. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11189. if test -n "$STRIP_FOR_TARGET"; then
  11190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11191. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11192. else
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11194. $as_echo "no" >&6; }
  11195. fi
  11196. fi
  11197. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11198. if test -n "$STRIP_FOR_TARGET"; then
  11199. ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11200. elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11201. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11202. fi
  11203. if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11204. for ncn_progname in strip; do
  11205. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11206. set dummy ${ncn_progname}; ac_word=$2
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11208. $as_echo_n "checking for $ac_word... " >&6; }
  11209. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11210. $as_echo_n "(cached) " >&6
  11211. else
  11212. if test -n "$STRIP_FOR_TARGET"; then
  11213. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11214. else
  11215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11216. for as_dir in $PATH
  11217. do
  11218. IFS=$as_save_IFS
  11219. test -z "$as_dir" && as_dir=.
  11220. for ac_exec_ext in '' $ac_executable_extensions; do
  11221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11222. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11224. break 2
  11225. fi
  11226. done
  11227. done
  11228. IFS=$as_save_IFS
  11229. fi
  11230. fi
  11231. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11232. if test -n "$STRIP_FOR_TARGET"; then
  11233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11234. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11235. else
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11237. $as_echo "no" >&6; }
  11238. fi
  11239. done
  11240. fi
  11241. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11242. for ncn_progname in strip; do
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11244. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11245. if test -x $with_build_time_tools/${ncn_progname}; then
  11246. ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11248. $as_echo "yes" >&6; }
  11249. break
  11250. else
  11251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11252. $as_echo "no" >&6; }
  11253. fi
  11254. done
  11255. fi
  11256. if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11257. for ncn_progname in strip; do
  11258. if test -n "$ncn_target_tool_prefix"; then
  11259. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11260. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11262. $as_echo_n "checking for $ac_word... " >&6; }
  11263. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11264. $as_echo_n "(cached) " >&6
  11265. else
  11266. if test -n "$STRIP_FOR_TARGET"; then
  11267. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11268. else
  11269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11270. for as_dir in $PATH
  11271. do
  11272. IFS=$as_save_IFS
  11273. test -z "$as_dir" && as_dir=.
  11274. for ac_exec_ext in '' $ac_executable_extensions; do
  11275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11276. ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11278. break 2
  11279. fi
  11280. done
  11281. done
  11282. IFS=$as_save_IFS
  11283. fi
  11284. fi
  11285. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11286. if test -n "$STRIP_FOR_TARGET"; then
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11288. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11289. else
  11290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11291. $as_echo "no" >&6; }
  11292. fi
  11293. fi
  11294. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
  11295. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11296. set dummy ${ncn_progname}; ac_word=$2
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11298. $as_echo_n "checking for $ac_word... " >&6; }
  11299. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. if test -n "$STRIP_FOR_TARGET"; then
  11303. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11304. else
  11305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11306. for as_dir in $PATH
  11307. do
  11308. IFS=$as_save_IFS
  11309. test -z "$as_dir" && as_dir=.
  11310. for ac_exec_ext in '' $ac_executable_extensions; do
  11311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11312. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11314. break 2
  11315. fi
  11316. done
  11317. done
  11318. IFS=$as_save_IFS
  11319. fi
  11320. fi
  11321. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11322. if test -n "$STRIP_FOR_TARGET"; then
  11323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11324. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11325. else
  11326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11327. $as_echo "no" >&6; }
  11328. fi
  11329. fi
  11330. test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
  11331. done
  11332. fi
  11333. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
  11334. set dummy strip
  11335. if test $build = $target ; then
  11336. STRIP_FOR_TARGET="$2"
  11337. else
  11338. STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11339. fi
  11340. else
  11341. STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
  11342. fi
  11343. else
  11344. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11345. fi
  11346. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  11347. if test -n "$with_build_time_tools"; then
  11348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
  11349. $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
  11350. if test -x $with_build_time_tools/windres; then
  11351. WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
  11352. ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
  11354. $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
  11355. else
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11357. $as_echo "no" >&6; }
  11358. fi
  11359. elif test $build != $host && test $have_gcc_for_target = yes; then
  11360. WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
  11361. test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
  11362. test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11363. fi
  11364. fi
  11365. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11366. # Extract the first word of "windres", so it can be a program name with args.
  11367. set dummy windres; ac_word=$2
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11369. $as_echo_n "checking for $ac_word... " >&6; }
  11370. if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
  11371. $as_echo_n "(cached) " >&6
  11372. else
  11373. case $WINDRES_FOR_TARGET in
  11374. [\\/]* | ?:[\\/]*)
  11375. ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
  11376. ;;
  11377. *)
  11378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11379. for as_dir in $gcc_cv_tool_dirs
  11380. do
  11381. IFS=$as_save_IFS
  11382. test -z "$as_dir" && as_dir=.
  11383. for ac_exec_ext in '' $ac_executable_extensions; do
  11384. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11385. ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11387. break 2
  11388. fi
  11389. done
  11390. done
  11391. IFS=$as_save_IFS
  11392. ;;
  11393. esac
  11394. fi
  11395. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  11396. if test -n "$WINDRES_FOR_TARGET"; then
  11397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11398. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11399. else
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11401. $as_echo "no" >&6; }
  11402. fi
  11403. fi
  11404. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  11405. if test -n "$WINDRES_FOR_TARGET"; then
  11406. ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11407. elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11408. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11409. fi
  11410. if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11411. for ncn_progname in windres; do
  11412. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11413. set dummy ${ncn_progname}; ac_word=$2
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11415. $as_echo_n "checking for $ac_word... " >&6; }
  11416. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11417. $as_echo_n "(cached) " >&6
  11418. else
  11419. if test -n "$WINDRES_FOR_TARGET"; then
  11420. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11421. else
  11422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11423. for as_dir in $PATH
  11424. do
  11425. IFS=$as_save_IFS
  11426. test -z "$as_dir" && as_dir=.
  11427. for ac_exec_ext in '' $ac_executable_extensions; do
  11428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11429. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  11430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11431. break 2
  11432. fi
  11433. done
  11434. done
  11435. IFS=$as_save_IFS
  11436. fi
  11437. fi
  11438. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11439. if test -n "$WINDRES_FOR_TARGET"; then
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11441. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11442. else
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11444. $as_echo "no" >&6; }
  11445. fi
  11446. done
  11447. fi
  11448. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11449. for ncn_progname in windres; 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_WINDRES_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
  11462. fi
  11463. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11464. for ncn_progname in windres; do
  11465. if test -n "$ncn_target_tool_prefix"; then
  11466. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11467. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11469. $as_echo_n "checking for $ac_word... " >&6; }
  11470. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11471. $as_echo_n "(cached) " >&6
  11472. else
  11473. if test -n "$WINDRES_FOR_TARGET"; then
  11474. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11475. else
  11476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11477. for as_dir in $PATH
  11478. do
  11479. IFS=$as_save_IFS
  11480. test -z "$as_dir" && as_dir=.
  11481. for ac_exec_ext in '' $ac_executable_extensions; do
  11482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11483. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11485. break 2
  11486. fi
  11487. done
  11488. done
  11489. IFS=$as_save_IFS
  11490. fi
  11491. fi
  11492. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11493. if test -n "$WINDRES_FOR_TARGET"; then
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11495. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11496. else
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11498. $as_echo "no" >&6; }
  11499. fi
  11500. fi
  11501. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
  11502. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11503. set dummy ${ncn_progname}; ac_word=$2
  11504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11505. $as_echo_n "checking for $ac_word... " >&6; }
  11506. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11507. $as_echo_n "(cached) " >&6
  11508. else
  11509. if test -n "$WINDRES_FOR_TARGET"; then
  11510. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11511. else
  11512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11513. for as_dir in $PATH
  11514. do
  11515. IFS=$as_save_IFS
  11516. test -z "$as_dir" && as_dir=.
  11517. for ac_exec_ext in '' $ac_executable_extensions; do
  11518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11519. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  11520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11521. break 2
  11522. fi
  11523. done
  11524. done
  11525. IFS=$as_save_IFS
  11526. fi
  11527. fi
  11528. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11529. if test -n "$WINDRES_FOR_TARGET"; then
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11531. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11532. else
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11534. $as_echo "no" >&6; }
  11535. fi
  11536. fi
  11537. test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
  11538. done
  11539. fi
  11540. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
  11541. set dummy windres
  11542. if test $build = $target ; then
  11543. WINDRES_FOR_TARGET="$2"
  11544. else
  11545. WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11546. fi
  11547. else
  11548. WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
  11549. fi
  11550. else
  11551. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  11552. fi
  11553. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  11554. if test -n "$with_build_time_tools"; then
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
  11556. $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
  11557. if test -x $with_build_time_tools/windmc; then
  11558. WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
  11559. ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  11560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
  11561. $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
  11562. else
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11564. $as_echo "no" >&6; }
  11565. fi
  11566. elif test $build != $host && test $have_gcc_for_target = yes; then
  11567. WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
  11568. test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
  11569. test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  11570. fi
  11571. fi
  11572. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11573. # Extract the first word of "windmc", so it can be a program name with args.
  11574. set dummy windmc; ac_word=$2
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11576. $as_echo_n "checking for $ac_word... " >&6; }
  11577. if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
  11578. $as_echo_n "(cached) " >&6
  11579. else
  11580. case $WINDMC_FOR_TARGET in
  11581. [\\/]* | ?:[\\/]*)
  11582. ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
  11583. ;;
  11584. *)
  11585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11586. for as_dir in $gcc_cv_tool_dirs
  11587. do
  11588. IFS=$as_save_IFS
  11589. test -z "$as_dir" && as_dir=.
  11590. for ac_exec_ext in '' $ac_executable_extensions; do
  11591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11592. ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11594. break 2
  11595. fi
  11596. done
  11597. done
  11598. IFS=$as_save_IFS
  11599. ;;
  11600. esac
  11601. fi
  11602. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  11603. if test -n "$WINDMC_FOR_TARGET"; then
  11604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  11605. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  11606. else
  11607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11608. $as_echo "no" >&6; }
  11609. fi
  11610. fi
  11611. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  11612. if test -n "$WINDMC_FOR_TARGET"; then
  11613. ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  11614. elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  11615. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  11616. fi
  11617. if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  11618. for ncn_progname in windmc; do
  11619. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11620. set dummy ${ncn_progname}; ac_word=$2
  11621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11622. $as_echo_n "checking for $ac_word... " >&6; }
  11623. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  11624. $as_echo_n "(cached) " >&6
  11625. else
  11626. if test -n "$WINDMC_FOR_TARGET"; then
  11627. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  11628. else
  11629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11630. for as_dir in $PATH
  11631. do
  11632. IFS=$as_save_IFS
  11633. test -z "$as_dir" && as_dir=.
  11634. for ac_exec_ext in '' $ac_executable_extensions; do
  11635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11636. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  11637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11638. break 2
  11639. fi
  11640. done
  11641. done
  11642. IFS=$as_save_IFS
  11643. fi
  11644. fi
  11645. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  11646. if test -n "$WINDMC_FOR_TARGET"; then
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  11648. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  11649. else
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11651. $as_echo "no" >&6; }
  11652. fi
  11653. done
  11654. fi
  11655. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11656. for ncn_progname in windmc; do
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11658. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11659. if test -x $with_build_time_tools/${ncn_progname}; then
  11660. ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11662. $as_echo "yes" >&6; }
  11663. break
  11664. else
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11666. $as_echo "no" >&6; }
  11667. fi
  11668. done
  11669. fi
  11670. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  11671. for ncn_progname in windmc; do
  11672. if test -n "$ncn_target_tool_prefix"; then
  11673. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11674. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11676. $as_echo_n "checking for $ac_word... " >&6; }
  11677. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  11678. $as_echo_n "(cached) " >&6
  11679. else
  11680. if test -n "$WINDMC_FOR_TARGET"; then
  11681. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  11682. else
  11683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11684. for as_dir in $PATH
  11685. do
  11686. IFS=$as_save_IFS
  11687. test -z "$as_dir" && as_dir=.
  11688. for ac_exec_ext in '' $ac_executable_extensions; do
  11689. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11690. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11692. break 2
  11693. fi
  11694. done
  11695. done
  11696. IFS=$as_save_IFS
  11697. fi
  11698. fi
  11699. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  11700. if test -n "$WINDMC_FOR_TARGET"; then
  11701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  11702. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  11703. else
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11705. $as_echo "no" >&6; }
  11706. fi
  11707. fi
  11708. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
  11709. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11710. set dummy ${ncn_progname}; ac_word=$2
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11712. $as_echo_n "checking for $ac_word... " >&6; }
  11713. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  11714. $as_echo_n "(cached) " >&6
  11715. else
  11716. if test -n "$WINDMC_FOR_TARGET"; then
  11717. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  11718. else
  11719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11720. for as_dir in $PATH
  11721. do
  11722. IFS=$as_save_IFS
  11723. test -z "$as_dir" && as_dir=.
  11724. for ac_exec_ext in '' $ac_executable_extensions; do
  11725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11726. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  11727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11728. break 2
  11729. fi
  11730. done
  11731. done
  11732. IFS=$as_save_IFS
  11733. fi
  11734. fi
  11735. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  11736. if test -n "$WINDMC_FOR_TARGET"; then
  11737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  11738. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  11739. else
  11740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11741. $as_echo "no" >&6; }
  11742. fi
  11743. fi
  11744. test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
  11745. done
  11746. fi
  11747. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
  11748. set dummy windmc
  11749. if test $build = $target ; then
  11750. WINDMC_FOR_TARGET="$2"
  11751. else
  11752. WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11753. fi
  11754. else
  11755. WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
  11756. fi
  11757. else
  11758. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  11759. fi
  11760. RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  11761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
  11762. $as_echo_n "checking where to find the target ar... " >&6; }
  11763. if test "x${build}" != "x${host}" ; then
  11764. if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  11765. # We already found the complete path
  11766. ac_dir=`dirname $AR_FOR_TARGET`
  11767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11768. $as_echo "pre-installed in $ac_dir" >&6; }
  11769. else
  11770. # Canadian cross, just use what we found
  11771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11772. $as_echo "pre-installed" >&6; }
  11773. fi
  11774. else
  11775. ok=yes
  11776. case " ${configdirs} " in
  11777. *" binutils "*) ;;
  11778. *) ok=no ;;
  11779. esac
  11780. if test $ok = yes; then
  11781. # An in-tree tool is available and we can use it
  11782. AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11784. $as_echo "just compiled" >&6; }
  11785. elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  11786. # We already found the complete path
  11787. ac_dir=`dirname $AR_FOR_TARGET`
  11788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11789. $as_echo "pre-installed in $ac_dir" >&6; }
  11790. elif test "x$target" = "x$host"; then
  11791. # We can use an host tool
  11792. AR_FOR_TARGET='$(AR)'
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11794. $as_echo "host tool" >&6; }
  11795. else
  11796. # We need a cross tool
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11798. $as_echo "pre-installed" >&6; }
  11799. fi
  11800. fi
  11801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
  11802. $as_echo_n "checking where to find the target as... " >&6; }
  11803. if test "x${build}" != "x${host}" ; then
  11804. if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  11805. # We already found the complete path
  11806. ac_dir=`dirname $AS_FOR_TARGET`
  11807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11808. $as_echo "pre-installed in $ac_dir" >&6; }
  11809. else
  11810. # Canadian cross, just use what we found
  11811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11812. $as_echo "pre-installed" >&6; }
  11813. fi
  11814. else
  11815. ok=yes
  11816. case " ${configdirs} " in
  11817. *" gas "*) ;;
  11818. *) ok=no ;;
  11819. esac
  11820. if test $ok = yes; then
  11821. # An in-tree tool is available and we can use it
  11822. AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11824. $as_echo "just compiled" >&6; }
  11825. elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  11826. # We already found the complete path
  11827. ac_dir=`dirname $AS_FOR_TARGET`
  11828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11829. $as_echo "pre-installed in $ac_dir" >&6; }
  11830. elif test "x$target" = "x$host"; then
  11831. # We can use an host tool
  11832. AS_FOR_TARGET='$(AS)'
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11834. $as_echo "host tool" >&6; }
  11835. else
  11836. # We need a cross tool
  11837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11838. $as_echo "pre-installed" >&6; }
  11839. fi
  11840. fi
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
  11842. $as_echo_n "checking where to find the target cc... " >&6; }
  11843. if test "x${build}" != "x${host}" ; then
  11844. if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  11845. # We already found the complete path
  11846. ac_dir=`dirname $CC_FOR_TARGET`
  11847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11848. $as_echo "pre-installed in $ac_dir" >&6; }
  11849. else
  11850. # Canadian cross, just use what we found
  11851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11852. $as_echo "pre-installed" >&6; }
  11853. fi
  11854. else
  11855. ok=yes
  11856. case " ${configdirs} " in
  11857. *" gcc "*) ;;
  11858. *) ok=no ;;
  11859. esac
  11860. if test $ok = yes; then
  11861. # An in-tree tool is available and we can use it
  11862. CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  11863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11864. $as_echo "just compiled" >&6; }
  11865. elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  11866. # We already found the complete path
  11867. ac_dir=`dirname $CC_FOR_TARGET`
  11868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11869. $as_echo "pre-installed in $ac_dir" >&6; }
  11870. elif test "x$target" = "x$host"; then
  11871. # We can use an host tool
  11872. CC_FOR_TARGET='$(CC)'
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11874. $as_echo "host tool" >&6; }
  11875. else
  11876. # We need a cross tool
  11877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11878. $as_echo "pre-installed" >&6; }
  11879. fi
  11880. fi
  11881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
  11882. $as_echo_n "checking where to find the target c++... " >&6; }
  11883. if test "x${build}" != "x${host}" ; then
  11884. if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  11885. # We already found the complete path
  11886. ac_dir=`dirname $CXX_FOR_TARGET`
  11887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11888. $as_echo "pre-installed in $ac_dir" >&6; }
  11889. else
  11890. # Canadian cross, just use what we found
  11891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11892. $as_echo "pre-installed" >&6; }
  11893. fi
  11894. else
  11895. ok=yes
  11896. case " ${configdirs} " in
  11897. *" gcc "*) ;;
  11898. *) ok=no ;;
  11899. esac
  11900. case ,${enable_languages}, in
  11901. *,c++,*) ;;
  11902. *) ok=no ;;
  11903. esac
  11904. if test $ok = yes; then
  11905. # An in-tree tool is available and we can use it
  11906. CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11908. $as_echo "just compiled" >&6; }
  11909. elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  11910. # We already found the complete path
  11911. ac_dir=`dirname $CXX_FOR_TARGET`
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11913. $as_echo "pre-installed in $ac_dir" >&6; }
  11914. elif test "x$target" = "x$host"; then
  11915. # We can use an host tool
  11916. CXX_FOR_TARGET='$(CXX)'
  11917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11918. $as_echo "host tool" >&6; }
  11919. else
  11920. # We need a cross tool
  11921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11922. $as_echo "pre-installed" >&6; }
  11923. fi
  11924. fi
  11925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
  11926. $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
  11927. if test "x${build}" != "x${host}" ; then
  11928. if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  11929. # We already found the complete path
  11930. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  11931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11932. $as_echo "pre-installed in $ac_dir" >&6; }
  11933. else
  11934. # Canadian cross, just use what we found
  11935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11936. $as_echo "pre-installed" >&6; }
  11937. fi
  11938. else
  11939. ok=yes
  11940. case " ${configdirs} " in
  11941. *" gcc "*) ;;
  11942. *) ok=no ;;
  11943. esac
  11944. case ,${enable_languages}, in
  11945. *,c++,*) ;;
  11946. *) ok=no ;;
  11947. esac
  11948. if test $ok = yes; then
  11949. # An in-tree tool is available and we can use it
  11950. 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'
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11952. $as_echo "just compiled" >&6; }
  11953. elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  11954. # We already found the complete path
  11955. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  11956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11957. $as_echo "pre-installed in $ac_dir" >&6; }
  11958. elif test "x$target" = "x$host"; then
  11959. # We can use an host tool
  11960. RAW_CXX_FOR_TARGET='$(CXX)'
  11961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  11962. $as_echo "host tool" >&6; }
  11963. else
  11964. # We need a cross tool
  11965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11966. $as_echo "pre-installed" >&6; }
  11967. fi
  11968. fi
  11969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
  11970. $as_echo_n "checking where to find the target dlltool... " >&6; }
  11971. if test "x${build}" != "x${host}" ; then
  11972. if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  11973. # We already found the complete path
  11974. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  11975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11976. $as_echo "pre-installed in $ac_dir" >&6; }
  11977. else
  11978. # Canadian cross, just use what we found
  11979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  11980. $as_echo "pre-installed" >&6; }
  11981. fi
  11982. else
  11983. ok=yes
  11984. case " ${configdirs} " in
  11985. *" binutils "*) ;;
  11986. *) ok=no ;;
  11987. esac
  11988. if test $ok = yes; then
  11989. # An in-tree tool is available and we can use it
  11990. DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
  11991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  11992. $as_echo "just compiled" >&6; }
  11993. elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  11994. # We already found the complete path
  11995. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  11997. $as_echo "pre-installed in $ac_dir" >&6; }
  11998. elif test "x$target" = "x$host"; then
  11999. # We can use an host tool
  12000. DLLTOOL_FOR_TARGET='$(DLLTOOL)'
  12001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12002. $as_echo "host tool" >&6; }
  12003. else
  12004. # We need a cross tool
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12006. $as_echo "pre-installed" >&6; }
  12007. fi
  12008. fi
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
  12010. $as_echo_n "checking where to find the target gcc... " >&6; }
  12011. if test "x${build}" != "x${host}" ; then
  12012. if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  12013. # We already found the complete path
  12014. ac_dir=`dirname $GCC_FOR_TARGET`
  12015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12016. $as_echo "pre-installed in $ac_dir" >&6; }
  12017. else
  12018. # Canadian cross, just use what we found
  12019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12020. $as_echo "pre-installed" >&6; }
  12021. fi
  12022. else
  12023. ok=yes
  12024. case " ${configdirs} " in
  12025. *" gcc "*) ;;
  12026. *) ok=no ;;
  12027. esac
  12028. if test $ok = yes; then
  12029. # An in-tree tool is available and we can use it
  12030. GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  12031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12032. $as_echo "just compiled" >&6; }
  12033. elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  12034. # We already found the complete path
  12035. ac_dir=`dirname $GCC_FOR_TARGET`
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12037. $as_echo "pre-installed in $ac_dir" >&6; }
  12038. elif test "x$target" = "x$host"; then
  12039. # We can use an host tool
  12040. GCC_FOR_TARGET='$()'
  12041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12042. $as_echo "host tool" >&6; }
  12043. else
  12044. # We need a cross tool
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12046. $as_echo "pre-installed" >&6; }
  12047. fi
  12048. fi
  12049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
  12050. $as_echo_n "checking where to find the target gcj... " >&6; }
  12051. if test "x${build}" != "x${host}" ; then
  12052. if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
  12053. # We already found the complete path
  12054. ac_dir=`dirname $GCJ_FOR_TARGET`
  12055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12056. $as_echo "pre-installed in $ac_dir" >&6; }
  12057. else
  12058. # Canadian cross, just use what we found
  12059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12060. $as_echo "pre-installed" >&6; }
  12061. fi
  12062. else
  12063. ok=yes
  12064. case " ${configdirs} " in
  12065. *" gcc "*) ;;
  12066. *) ok=no ;;
  12067. esac
  12068. case ,${enable_languages}, in
  12069. *,java,*) ;;
  12070. *) ok=no ;;
  12071. esac
  12072. if test $ok = yes; then
  12073. # An in-tree tool is available and we can use it
  12074. GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12076. $as_echo "just compiled" >&6; }
  12077. elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
  12078. # We already found the complete path
  12079. ac_dir=`dirname $GCJ_FOR_TARGET`
  12080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12081. $as_echo "pre-installed in $ac_dir" >&6; }
  12082. elif test "x$target" = "x$host"; then
  12083. # We can use an host tool
  12084. GCJ_FOR_TARGET='$(GCJ)'
  12085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12086. $as_echo "host tool" >&6; }
  12087. else
  12088. # We need a cross tool
  12089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12090. $as_echo "pre-installed" >&6; }
  12091. fi
  12092. fi
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
  12094. $as_echo_n "checking where to find the target gfortran... " >&6; }
  12095. if test "x${build}" != "x${host}" ; then
  12096. if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12097. # We already found the complete path
  12098. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12100. $as_echo "pre-installed in $ac_dir" >&6; }
  12101. else
  12102. # Canadian cross, just use what we found
  12103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12104. $as_echo "pre-installed" >&6; }
  12105. fi
  12106. else
  12107. ok=yes
  12108. case " ${configdirs} " in
  12109. *" gcc "*) ;;
  12110. *) ok=no ;;
  12111. esac
  12112. case ,${enable_languages}, in
  12113. *,fortran,*) ;;
  12114. *) ok=no ;;
  12115. esac
  12116. if test $ok = yes; then
  12117. # An in-tree tool is available and we can use it
  12118. GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12120. $as_echo "just compiled" >&6; }
  12121. elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12122. # We already found the complete path
  12123. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12125. $as_echo "pre-installed in $ac_dir" >&6; }
  12126. elif test "x$target" = "x$host"; then
  12127. # We can use an host tool
  12128. GFORTRAN_FOR_TARGET='$(GFORTRAN)'
  12129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12130. $as_echo "host tool" >&6; }
  12131. else
  12132. # We need a cross tool
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12134. $as_echo "pre-installed" >&6; }
  12135. fi
  12136. fi
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
  12138. $as_echo_n "checking where to find the target gccgo... " >&6; }
  12139. if test "x${build}" != "x${host}" ; then
  12140. if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12141. # We already found the complete path
  12142. ac_dir=`dirname $GOC_FOR_TARGET`
  12143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12144. $as_echo "pre-installed in $ac_dir" >&6; }
  12145. else
  12146. # Canadian cross, just use what we found
  12147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12148. $as_echo "pre-installed" >&6; }
  12149. fi
  12150. else
  12151. ok=yes
  12152. case " ${configdirs} " in
  12153. *" gcc "*) ;;
  12154. *) ok=no ;;
  12155. esac
  12156. case ,${enable_languages}, in
  12157. *,go,*) ;;
  12158. *) ok=no ;;
  12159. esac
  12160. if test $ok = yes; then
  12161. # An in-tree tool is available and we can use it
  12162. GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12164. $as_echo "just compiled" >&6; }
  12165. elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12166. # We already found the complete path
  12167. ac_dir=`dirname $GOC_FOR_TARGET`
  12168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12169. $as_echo "pre-installed in $ac_dir" >&6; }
  12170. elif test "x$target" = "x$host"; then
  12171. # We can use an host tool
  12172. GOC_FOR_TARGET='$(GOC)'
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12174. $as_echo "host tool" >&6; }
  12175. else
  12176. # We need a cross tool
  12177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12178. $as_echo "pre-installed" >&6; }
  12179. fi
  12180. fi
  12181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
  12182. $as_echo_n "checking where to find the target ld... " >&6; }
  12183. if test "x${build}" != "x${host}" ; then
  12184. if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12185. # We already found the complete path
  12186. ac_dir=`dirname $LD_FOR_TARGET`
  12187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12188. $as_echo "pre-installed in $ac_dir" >&6; }
  12189. else
  12190. # Canadian cross, just use what we found
  12191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12192. $as_echo "pre-installed" >&6; }
  12193. fi
  12194. else
  12195. ok=yes
  12196. case " ${configdirs} " in
  12197. *" ld "*) ;;
  12198. *) ok=no ;;
  12199. esac
  12200. if test $ok = yes; then
  12201. # An in-tree tool is available and we can use it
  12202. LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
  12203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12204. $as_echo "just compiled" >&6; }
  12205. elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12206. # We already found the complete path
  12207. ac_dir=`dirname $LD_FOR_TARGET`
  12208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12209. $as_echo "pre-installed in $ac_dir" >&6; }
  12210. elif test "x$target" = "x$host"; then
  12211. # We can use an host tool
  12212. LD_FOR_TARGET='$(LD)'
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12214. $as_echo "host tool" >&6; }
  12215. else
  12216. # We need a cross tool
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12218. $as_echo "pre-installed" >&6; }
  12219. fi
  12220. fi
  12221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
  12222. $as_echo_n "checking where to find the target lipo... " >&6; }
  12223. if test "x${build}" != "x${host}" ; then
  12224. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12225. # We already found the complete path
  12226. ac_dir=`dirname $LIPO_FOR_TARGET`
  12227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12228. $as_echo "pre-installed in $ac_dir" >&6; }
  12229. else
  12230. # Canadian cross, just use what we found
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12232. $as_echo "pre-installed" >&6; }
  12233. fi
  12234. else
  12235. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12236. # We already found the complete path
  12237. ac_dir=`dirname $LIPO_FOR_TARGET`
  12238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12239. $as_echo "pre-installed in $ac_dir" >&6; }
  12240. elif test "x$target" = "x$host"; then
  12241. # We can use an host tool
  12242. LIPO_FOR_TARGET='$(LIPO)'
  12243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12244. $as_echo "host tool" >&6; }
  12245. else
  12246. # We need a cross tool
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12248. $as_echo "pre-installed" >&6; }
  12249. fi
  12250. fi
  12251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
  12252. $as_echo_n "checking where to find the target nm... " >&6; }
  12253. if test "x${build}" != "x${host}" ; then
  12254. if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12255. # We already found the complete path
  12256. ac_dir=`dirname $NM_FOR_TARGET`
  12257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12258. $as_echo "pre-installed in $ac_dir" >&6; }
  12259. else
  12260. # Canadian cross, just use what we found
  12261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12262. $as_echo "pre-installed" >&6; }
  12263. fi
  12264. else
  12265. ok=yes
  12266. case " ${configdirs} " in
  12267. *" binutils "*) ;;
  12268. *) ok=no ;;
  12269. esac
  12270. if test $ok = yes; then
  12271. # An in-tree tool is available and we can use it
  12272. NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12274. $as_echo "just compiled" >&6; }
  12275. elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12276. # We already found the complete path
  12277. ac_dir=`dirname $NM_FOR_TARGET`
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12279. $as_echo "pre-installed in $ac_dir" >&6; }
  12280. elif test "x$target" = "x$host"; then
  12281. # We can use an host tool
  12282. NM_FOR_TARGET='$(NM)'
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12284. $as_echo "host tool" >&6; }
  12285. else
  12286. # We need a cross tool
  12287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12288. $as_echo "pre-installed" >&6; }
  12289. fi
  12290. fi
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
  12292. $as_echo_n "checking where to find the target objdump... " >&6; }
  12293. if test "x${build}" != "x${host}" ; then
  12294. if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  12295. # We already found the complete path
  12296. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12298. $as_echo "pre-installed in $ac_dir" >&6; }
  12299. else
  12300. # Canadian cross, just use what we found
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12302. $as_echo "pre-installed" >&6; }
  12303. fi
  12304. else
  12305. ok=yes
  12306. case " ${configdirs} " in
  12307. *" binutils "*) ;;
  12308. *) ok=no ;;
  12309. esac
  12310. if test $ok = yes; then
  12311. # An in-tree tool is available and we can use it
  12312. OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
  12313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12314. $as_echo "just compiled" >&6; }
  12315. elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  12316. # We already found the complete path
  12317. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12319. $as_echo "pre-installed in $ac_dir" >&6; }
  12320. elif test "x$target" = "x$host"; then
  12321. # We can use an host tool
  12322. OBJDUMP_FOR_TARGET='$(OBJDUMP)'
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12324. $as_echo "host tool" >&6; }
  12325. else
  12326. # We need a cross tool
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12328. $as_echo "pre-installed" >&6; }
  12329. fi
  12330. fi
  12331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
  12332. $as_echo_n "checking where to find the target ranlib... " >&6; }
  12333. if test "x${build}" != "x${host}" ; then
  12334. if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  12335. # We already found the complete path
  12336. ac_dir=`dirname $RANLIB_FOR_TARGET`
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12338. $as_echo "pre-installed in $ac_dir" >&6; }
  12339. else
  12340. # Canadian cross, just use what we found
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12342. $as_echo "pre-installed" >&6; }
  12343. fi
  12344. else
  12345. ok=yes
  12346. case " ${configdirs} " in
  12347. *" binutils "*) ;;
  12348. *) ok=no ;;
  12349. esac
  12350. if test $ok = yes; then
  12351. # An in-tree tool is available and we can use it
  12352. RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
  12353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12354. $as_echo "just compiled" >&6; }
  12355. elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  12356. # We already found the complete path
  12357. ac_dir=`dirname $RANLIB_FOR_TARGET`
  12358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12359. $as_echo "pre-installed in $ac_dir" >&6; }
  12360. elif test "x$target" = "x$host"; then
  12361. # We can use an host tool
  12362. RANLIB_FOR_TARGET='$(RANLIB)'
  12363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12364. $as_echo "host tool" >&6; }
  12365. else
  12366. # We need a cross tool
  12367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12368. $as_echo "pre-installed" >&6; }
  12369. fi
  12370. fi
  12371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
  12372. $as_echo_n "checking where to find the target strip... " >&6; }
  12373. if test "x${build}" != "x${host}" ; then
  12374. if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  12375. # We already found the complete path
  12376. ac_dir=`dirname $STRIP_FOR_TARGET`
  12377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12378. $as_echo "pre-installed in $ac_dir" >&6; }
  12379. else
  12380. # Canadian cross, just use what we found
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12382. $as_echo "pre-installed" >&6; }
  12383. fi
  12384. else
  12385. ok=yes
  12386. case " ${configdirs} " in
  12387. *" binutils "*) ;;
  12388. *) ok=no ;;
  12389. esac
  12390. if test $ok = yes; then
  12391. # An in-tree tool is available and we can use it
  12392. STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12394. $as_echo "just compiled" >&6; }
  12395. elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  12396. # We already found the complete path
  12397. ac_dir=`dirname $STRIP_FOR_TARGET`
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12399. $as_echo "pre-installed in $ac_dir" >&6; }
  12400. elif test "x$target" = "x$host"; then
  12401. # We can use an host tool
  12402. STRIP_FOR_TARGET='$(STRIP)'
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12404. $as_echo "host tool" >&6; }
  12405. else
  12406. # We need a cross tool
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12408. $as_echo "pre-installed" >&6; }
  12409. fi
  12410. fi
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
  12412. $as_echo_n "checking where to find the target windres... " >&6; }
  12413. if test "x${build}" != "x${host}" ; then
  12414. if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  12415. # We already found the complete path
  12416. ac_dir=`dirname $WINDRES_FOR_TARGET`
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12418. $as_echo "pre-installed in $ac_dir" >&6; }
  12419. else
  12420. # Canadian cross, just use what we found
  12421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12422. $as_echo "pre-installed" >&6; }
  12423. fi
  12424. else
  12425. ok=yes
  12426. case " ${configdirs} " in
  12427. *" binutils "*) ;;
  12428. *) ok=no ;;
  12429. esac
  12430. if test $ok = yes; then
  12431. # An in-tree tool is available and we can use it
  12432. WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
  12433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12434. $as_echo "just compiled" >&6; }
  12435. elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  12436. # We already found the complete path
  12437. ac_dir=`dirname $WINDRES_FOR_TARGET`
  12438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12439. $as_echo "pre-installed in $ac_dir" >&6; }
  12440. elif test "x$target" = "x$host"; then
  12441. # We can use an host tool
  12442. WINDRES_FOR_TARGET='$(WINDRES)'
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12444. $as_echo "host tool" >&6; }
  12445. else
  12446. # We need a cross tool
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12448. $as_echo "pre-installed" >&6; }
  12449. fi
  12450. fi
  12451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
  12452. $as_echo_n "checking where to find the target windmc... " >&6; }
  12453. if test "x${build}" != "x${host}" ; then
  12454. if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  12455. # We already found the complete path
  12456. ac_dir=`dirname $WINDMC_FOR_TARGET`
  12457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12458. $as_echo "pre-installed in $ac_dir" >&6; }
  12459. else
  12460. # Canadian cross, just use what we found
  12461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12462. $as_echo "pre-installed" >&6; }
  12463. fi
  12464. else
  12465. ok=yes
  12466. case " ${configdirs} " in
  12467. *" binutils "*) ;;
  12468. *) ok=no ;;
  12469. esac
  12470. if test $ok = yes; then
  12471. # An in-tree tool is available and we can use it
  12472. WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12474. $as_echo "just compiled" >&6; }
  12475. elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  12476. # We already found the complete path
  12477. ac_dir=`dirname $WINDMC_FOR_TARGET`
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12479. $as_echo "pre-installed in $ac_dir" >&6; }
  12480. elif test "x$target" = "x$host"; then
  12481. # We can use an host tool
  12482. WINDMC_FOR_TARGET='$(WINDMC)'
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12484. $as_echo "host tool" >&6; }
  12485. else
  12486. # We need a cross tool
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12488. $as_echo "pre-installed" >&6; }
  12489. fi
  12490. fi
  12491. # Certain tools may need extra flags.
  12492. AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
  12493. RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
  12494. NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
  12495. # When building target libraries, except in a Canadian cross, we use
  12496. # the same toolchain as the compiler we just built.
  12497. COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
  12498. COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  12499. COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  12500. if test $host = $build; then
  12501. case " $configdirs " in
  12502. *" gcc "*)
  12503. COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
  12504. COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
  12505. COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
  12506. ;;
  12507. esac
  12508. fi
  12509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  12510. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  12511. # Check whether --enable-maintainer-mode was given.
  12512. if test "${enable_maintainer_mode+set}" = set; then :
  12513. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  12514. else
  12515. USE_MAINTAINER_MODE=no
  12516. fi
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  12518. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  12519. if test "$USE_MAINTAINER_MODE" = yes; then
  12520. MAINTAINER_MODE_TRUE=
  12521. MAINTAINER_MODE_FALSE='#'
  12522. else
  12523. MAINTAINER_MODE_TRUE='#'
  12524. MAINTAINER_MODE_FALSE=
  12525. fi
  12526. MAINT=$MAINTAINER_MODE_TRUE
  12527. # ---------------------
  12528. # GCC bootstrap support
  12529. # ---------------------
  12530. # Stage specific cflags for build.
  12531. stage1_cflags="-g"
  12532. case $build in
  12533. vax-*-*)
  12534. case ${GCC} in
  12535. yes) stage1_cflags="-g -Wa,-J" ;;
  12536. *) stage1_cflags="-g -J" ;;
  12537. esac ;;
  12538. esac
  12539. # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
  12540. if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
  12541. saved_CFLAGS="$CFLAGS"
  12542. # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
  12543. CFLAGS="$CFLAGS -fkeep-inline-functions"
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
  12545. $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
  12546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12547. /* end confdefs.h. */
  12548. #if (__GNUC__ < 3) \
  12549. || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
  12550. || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
  12551. #error http://gcc.gnu.org/PR29382
  12552. #endif
  12553. int
  12554. main ()
  12555. {
  12556. ;
  12557. return 0;
  12558. }
  12559. _ACEOF
  12560. if ac_fn_c_try_compile "$LINENO"; then :
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12562. $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
  12563. else
  12564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12565. $as_echo "no" >&6; }
  12566. fi
  12567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12568. CFLAGS="$saved_CFLAGS"
  12569. fi
  12570. # Enable --enable-checking in stage1 of the compiler.
  12571. # Check whether --enable-stage1-checking was given.
  12572. if test "${enable_stage1_checking+set}" = set; then :
  12573. enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
  12574. else
  12575. if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
  12576. stage1_checking=--enable-checking=yes,types
  12577. else
  12578. stage1_checking=--enable-checking=$enable_checking,types
  12579. fi
  12580. fi
  12581. # Enable -Werror in bootstrap stage2 and later.
  12582. # Check whether --enable-werror was given.
  12583. if test "${enable_werror+set}" = set; then :
  12584. enableval=$enable_werror;
  12585. else
  12586. if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
  12587. enable_werror=yes
  12588. else
  12589. enable_werror=no
  12590. fi
  12591. fi
  12592. case ${enable_werror} in
  12593. yes) stage2_werror_flag="--enable-werror-always" ;;
  12594. *) stage2_werror_flag="" ;;
  12595. esac
  12596. # Specify what files to not compare during bootstrap.
  12597. compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
  12598. case "$target" in
  12599. hppa*64*-*-hpux*) ;;
  12600. hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
  12601. esac
  12602. case " $configdirs " in
  12603. *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
  12604. esac
  12605. ac_config_files="$ac_config_files Makefile"
  12606. cat >confcache <<\_ACEOF
  12607. # This file is a shell script that caches the results of configure
  12608. # tests run on this system so they can be shared between configure
  12609. # scripts and configure runs, see configure's option --config-cache.
  12610. # It is not useful on other systems. If it contains results you don't
  12611. # want to keep, you may remove or edit it.
  12612. #
  12613. # config.status only pays attention to the cache file if you give it
  12614. # the --recheck option to rerun configure.
  12615. #
  12616. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12617. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12618. # following values.
  12619. _ACEOF
  12620. # The following way of writing the cache mishandles newlines in values,
  12621. # but we know of no workaround that is simple, portable, and efficient.
  12622. # So, we kill variables containing newlines.
  12623. # Ultrix sh set writes to stderr and can't be redirected directly,
  12624. # and sets the high bit in the cache file unless we assign to the vars.
  12625. (
  12626. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12627. eval ac_val=\$$ac_var
  12628. case $ac_val in #(
  12629. *${as_nl}*)
  12630. case $ac_var in #(
  12631. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12632. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12633. esac
  12634. case $ac_var in #(
  12635. _ | IFS | as_nl) ;; #(
  12636. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12637. *) { eval $ac_var=; unset $ac_var;} ;;
  12638. esac ;;
  12639. esac
  12640. done
  12641. (set) 2>&1 |
  12642. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12643. *${as_nl}ac_space=\ *)
  12644. # `set' does not quote correctly, so add quotes: double-quote
  12645. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12646. sed -n \
  12647. "s/'/'\\\\''/g;
  12648. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12649. ;; #(
  12650. *)
  12651. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12652. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12653. ;;
  12654. esac |
  12655. sort
  12656. ) |
  12657. sed '
  12658. /^ac_cv_env_/b end
  12659. t clear
  12660. :clear
  12661. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12662. t end
  12663. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12664. :end' >>confcache
  12665. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12666. if test -w "$cache_file"; then
  12667. test "x$cache_file" != "x/dev/null" &&
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12669. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12670. cat confcache >$cache_file
  12671. else
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12673. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12674. fi
  12675. fi
  12676. rm -f confcache
  12677. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12678. # Let make expand exec_prefix.
  12679. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12680. # Transform confdefs.h into DEFS.
  12681. # Protect against shell expansion while executing Makefile rules.
  12682. # Protect against Makefile macro expansion.
  12683. #
  12684. # If the first sed substitution is executed (which looks for macros that
  12685. # take arguments), then branch to the quote section. Otherwise,
  12686. # look for a macro that doesn't take arguments.
  12687. ac_script='
  12688. :mline
  12689. /\\$/{
  12690. N
  12691. s,\\\n,,
  12692. b mline
  12693. }
  12694. t clear
  12695. :clear
  12696. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12697. t quote
  12698. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12699. t quote
  12700. b any
  12701. :quote
  12702. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12703. s/\[/\\&/g
  12704. s/\]/\\&/g
  12705. s/\$/$$/g
  12706. H
  12707. :any
  12708. ${
  12709. g
  12710. s/^\n//
  12711. s/\n/ /g
  12712. p
  12713. }
  12714. '
  12715. DEFS=`sed -n "$ac_script" confdefs.h`
  12716. ac_libobjs=
  12717. ac_ltlibobjs=
  12718. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12719. # 1. Remove the extension, and $U if already installed.
  12720. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12721. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12722. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12723. # will be set to the directory where LIBOBJS objects are built.
  12724. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12725. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12726. done
  12727. LIBOBJS=$ac_libobjs
  12728. LTLIBOBJS=$ac_ltlibobjs
  12729. : ${CONFIG_STATUS=./config.status}
  12730. ac_write_fail=0
  12731. ac_clean_files_save=$ac_clean_files
  12732. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12734. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12735. as_write_fail=0
  12736. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12737. #! $SHELL
  12738. # Generated by $as_me.
  12739. # Run this file to recreate the current configuration.
  12740. # Compiler output produced by configure, useful for debugging
  12741. # configure, is in config.log if it exists.
  12742. debug=false
  12743. ac_cs_recheck=false
  12744. ac_cs_silent=false
  12745. SHELL=\${CONFIG_SHELL-$SHELL}
  12746. export SHELL
  12747. _ASEOF
  12748. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12749. ## -------------------- ##
  12750. ## M4sh Initialization. ##
  12751. ## -------------------- ##
  12752. # Be more Bourne compatible
  12753. DUALCASE=1; export DUALCASE # for MKS sh
  12754. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12755. emulate sh
  12756. NULLCMD=:
  12757. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12758. # is contrary to our usage. Disable this feature.
  12759. alias -g '${1+"$@"}'='"$@"'
  12760. setopt NO_GLOB_SUBST
  12761. else
  12762. case `(set -o) 2>/dev/null` in #(
  12763. *posix*) :
  12764. set -o posix ;; #(
  12765. *) :
  12766. ;;
  12767. esac
  12768. fi
  12769. as_nl='
  12770. '
  12771. export as_nl
  12772. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12773. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12774. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12775. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12776. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12777. # but without wasting forks for bash or zsh.
  12778. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12779. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12780. as_echo='print -r --'
  12781. as_echo_n='print -rn --'
  12782. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12783. as_echo='printf %s\n'
  12784. as_echo_n='printf %s'
  12785. else
  12786. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12787. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12788. as_echo_n='/usr/ucb/echo -n'
  12789. else
  12790. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12791. as_echo_n_body='eval
  12792. arg=$1;
  12793. case $arg in #(
  12794. *"$as_nl"*)
  12795. expr "X$arg" : "X\\(.*\\)$as_nl";
  12796. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12797. esac;
  12798. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12799. '
  12800. export as_echo_n_body
  12801. as_echo_n='sh -c $as_echo_n_body as_echo'
  12802. fi
  12803. export as_echo_body
  12804. as_echo='sh -c $as_echo_body as_echo'
  12805. fi
  12806. # The user is always right.
  12807. if test "${PATH_SEPARATOR+set}" != set; then
  12808. PATH_SEPARATOR=:
  12809. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12810. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12811. PATH_SEPARATOR=';'
  12812. }
  12813. fi
  12814. # IFS
  12815. # We need space, tab and new line, in precisely that order. Quoting is
  12816. # there to prevent editors from complaining about space-tab.
  12817. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12818. # splitting by setting IFS to empty value.)
  12819. IFS=" "" $as_nl"
  12820. # Find who we are. Look in the path if we contain no directory separator.
  12821. case $0 in #((
  12822. *[\\/]* ) as_myself=$0 ;;
  12823. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12824. for as_dir in $PATH
  12825. do
  12826. IFS=$as_save_IFS
  12827. test -z "$as_dir" && as_dir=.
  12828. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12829. done
  12830. IFS=$as_save_IFS
  12831. ;;
  12832. esac
  12833. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12834. # in which case we are not to be found in the path.
  12835. if test "x$as_myself" = x; then
  12836. as_myself=$0
  12837. fi
  12838. if test ! -f "$as_myself"; then
  12839. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12840. exit 1
  12841. fi
  12842. # Unset variables that we do not need and which cause bugs (e.g. in
  12843. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12844. # suppresses any "Segmentation fault" message there. '((' could
  12845. # trigger a bug in pdksh 5.2.14.
  12846. for as_var in BASH_ENV ENV MAIL MAILPATH
  12847. do eval test x\${$as_var+set} = xset \
  12848. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12849. done
  12850. PS1='$ '
  12851. PS2='> '
  12852. PS4='+ '
  12853. # NLS nuisances.
  12854. LC_ALL=C
  12855. export LC_ALL
  12856. LANGUAGE=C
  12857. export LANGUAGE
  12858. # CDPATH.
  12859. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12860. # as_fn_error ERROR [LINENO LOG_FD]
  12861. # ---------------------------------
  12862. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12863. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12864. # script with status $?, using 1 if that was 0.
  12865. as_fn_error ()
  12866. {
  12867. as_status=$?; test $as_status -eq 0 && as_status=1
  12868. if test "$3"; then
  12869. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12870. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12871. fi
  12872. $as_echo "$as_me: error: $1" >&2
  12873. as_fn_exit $as_status
  12874. } # as_fn_error
  12875. # as_fn_set_status STATUS
  12876. # -----------------------
  12877. # Set $? to STATUS, without forking.
  12878. as_fn_set_status ()
  12879. {
  12880. return $1
  12881. } # as_fn_set_status
  12882. # as_fn_exit STATUS
  12883. # -----------------
  12884. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12885. as_fn_exit ()
  12886. {
  12887. set +e
  12888. as_fn_set_status $1
  12889. exit $1
  12890. } # as_fn_exit
  12891. # as_fn_unset VAR
  12892. # ---------------
  12893. # Portably unset VAR.
  12894. as_fn_unset ()
  12895. {
  12896. { eval $1=; unset $1;}
  12897. }
  12898. as_unset=as_fn_unset
  12899. # as_fn_append VAR VALUE
  12900. # ----------------------
  12901. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12902. # advantage of any shell optimizations that allow amortized linear growth over
  12903. # repeated appends, instead of the typical quadratic growth present in naive
  12904. # implementations.
  12905. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12906. eval 'as_fn_append ()
  12907. {
  12908. eval $1+=\$2
  12909. }'
  12910. else
  12911. as_fn_append ()
  12912. {
  12913. eval $1=\$$1\$2
  12914. }
  12915. fi # as_fn_append
  12916. # as_fn_arith ARG...
  12917. # ------------------
  12918. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12919. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12920. # must be portable across $(()) and expr.
  12921. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12922. eval 'as_fn_arith ()
  12923. {
  12924. as_val=$(( $* ))
  12925. }'
  12926. else
  12927. as_fn_arith ()
  12928. {
  12929. as_val=`expr "$@" || test $? -eq 1`
  12930. }
  12931. fi # as_fn_arith
  12932. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12933. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12934. as_expr=expr
  12935. else
  12936. as_expr=false
  12937. fi
  12938. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12939. as_basename=basename
  12940. else
  12941. as_basename=false
  12942. fi
  12943. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12944. as_dirname=dirname
  12945. else
  12946. as_dirname=false
  12947. fi
  12948. as_me=`$as_basename -- "$0" ||
  12949. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12950. X"$0" : 'X\(//\)$' \| \
  12951. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12952. $as_echo X/"$0" |
  12953. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12954. s//\1/
  12955. q
  12956. }
  12957. /^X\/\(\/\/\)$/{
  12958. s//\1/
  12959. q
  12960. }
  12961. /^X\/\(\/\).*/{
  12962. s//\1/
  12963. q
  12964. }
  12965. s/.*/./; q'`
  12966. # Avoid depending upon Character Ranges.
  12967. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12968. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12969. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12970. as_cr_digits='0123456789'
  12971. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12972. ECHO_C= ECHO_N= ECHO_T=
  12973. case `echo -n x` in #(((((
  12974. -n*)
  12975. case `echo 'xy\c'` in
  12976. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12977. xy) ECHO_C='\c';;
  12978. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12979. ECHO_T=' ';;
  12980. esac;;
  12981. *)
  12982. ECHO_N='-n';;
  12983. esac
  12984. rm -f conf$$ conf$$.exe conf$$.file
  12985. if test -d conf$$.dir; then
  12986. rm -f conf$$.dir/conf$$.file
  12987. else
  12988. rm -f conf$$.dir
  12989. mkdir conf$$.dir 2>/dev/null
  12990. fi
  12991. if (echo >conf$$.file) 2>/dev/null; then
  12992. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12993. as_ln_s='ln -s'
  12994. # ... but there are two gotchas:
  12995. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12996. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12997. # In both cases, we have to default to `cp -p'.
  12998. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12999. as_ln_s='cp -p'
  13000. elif ln conf$$.file conf$$ 2>/dev/null; then
  13001. as_ln_s=ln
  13002. else
  13003. as_ln_s='cp -p'
  13004. fi
  13005. else
  13006. as_ln_s='cp -p'
  13007. fi
  13008. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13009. rmdir conf$$.dir 2>/dev/null
  13010. # as_fn_mkdir_p
  13011. # -------------
  13012. # Create "$as_dir" as a directory, including parents if necessary.
  13013. as_fn_mkdir_p ()
  13014. {
  13015. case $as_dir in #(
  13016. -*) as_dir=./$as_dir;;
  13017. esac
  13018. test -d "$as_dir" || eval $as_mkdir_p || {
  13019. as_dirs=
  13020. while :; do
  13021. case $as_dir in #(
  13022. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13023. *) as_qdir=$as_dir;;
  13024. esac
  13025. as_dirs="'$as_qdir' $as_dirs"
  13026. as_dir=`$as_dirname -- "$as_dir" ||
  13027. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13028. X"$as_dir" : 'X\(//\)[^/]' \| \
  13029. X"$as_dir" : 'X\(//\)$' \| \
  13030. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13031. $as_echo X"$as_dir" |
  13032. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13033. s//\1/
  13034. q
  13035. }
  13036. /^X\(\/\/\)[^/].*/{
  13037. s//\1/
  13038. q
  13039. }
  13040. /^X\(\/\/\)$/{
  13041. s//\1/
  13042. q
  13043. }
  13044. /^X\(\/\).*/{
  13045. s//\1/
  13046. q
  13047. }
  13048. s/.*/./; q'`
  13049. test -d "$as_dir" && break
  13050. done
  13051. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13052. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13053. } # as_fn_mkdir_p
  13054. if mkdir -p . 2>/dev/null; then
  13055. as_mkdir_p='mkdir -p "$as_dir"'
  13056. else
  13057. test -d ./-p && rmdir ./-p
  13058. as_mkdir_p=false
  13059. fi
  13060. if test -x / >/dev/null 2>&1; then
  13061. as_test_x='test -x'
  13062. else
  13063. if ls -dL / >/dev/null 2>&1; then
  13064. as_ls_L_option=L
  13065. else
  13066. as_ls_L_option=
  13067. fi
  13068. as_test_x='
  13069. eval sh -c '\''
  13070. if test -d "$1"; then
  13071. test -d "$1/.";
  13072. else
  13073. case $1 in #(
  13074. -*)set "./$1";;
  13075. esac;
  13076. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13077. ???[sx]*):;;*)false;;esac;fi
  13078. '\'' sh
  13079. '
  13080. fi
  13081. as_executable_p=$as_test_x
  13082. # Sed expression to map a string onto a valid CPP name.
  13083. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13084. # Sed expression to map a string onto a valid variable name.
  13085. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13086. exec 6>&1
  13087. ## ----------------------------------- ##
  13088. ## Main body of $CONFIG_STATUS script. ##
  13089. ## ----------------------------------- ##
  13090. _ASEOF
  13091. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13093. # Save the log message, to keep $0 and so on meaningful, and to
  13094. # report actual input values of CONFIG_FILES etc. instead of their
  13095. # values after options handling.
  13096. ac_log="
  13097. This file was extended by $as_me, which was
  13098. generated by GNU Autoconf 2.64. Invocation command line was
  13099. CONFIG_FILES = $CONFIG_FILES
  13100. CONFIG_HEADERS = $CONFIG_HEADERS
  13101. CONFIG_LINKS = $CONFIG_LINKS
  13102. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13103. $ $0 $@
  13104. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13105. "
  13106. _ACEOF
  13107. case $ac_config_files in *"
  13108. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13109. esac
  13110. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13111. # Files that config.status was made for.
  13112. config_files="$ac_config_files"
  13113. _ACEOF
  13114. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13115. ac_cs_usage="\
  13116. \`$as_me' instantiates files and other configuration actions
  13117. from templates according to the current configuration. Unless the files
  13118. and actions are specified as TAGs, all are instantiated by default.
  13119. Usage: $0 [OPTION]... [TAG]...
  13120. -h, --help print this help, then exit
  13121. -V, --version print version number and configuration settings, then exit
  13122. -q, --quiet, --silent
  13123. do not print progress messages
  13124. -d, --debug don't remove temporary files
  13125. --recheck update $as_me by reconfiguring in the same conditions
  13126. --file=FILE[:TEMPLATE]
  13127. instantiate the configuration file FILE
  13128. Configuration files:
  13129. $config_files
  13130. Report bugs to the package provider."
  13131. _ACEOF
  13132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13133. ac_cs_version="\\
  13134. config.status
  13135. configured by $0, generated by GNU Autoconf 2.64,
  13136. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13137. Copyright (C) 2009 Free Software Foundation, Inc.
  13138. This config.status script is free software; the Free Software Foundation
  13139. gives unlimited permission to copy, distribute and modify it."
  13140. ac_pwd='$ac_pwd'
  13141. srcdir='$srcdir'
  13142. INSTALL='$INSTALL'
  13143. AWK='$AWK'
  13144. test -n "\$AWK" || AWK=awk
  13145. _ACEOF
  13146. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13147. # The default lists apply if the user does not specify any file.
  13148. ac_need_defaults=:
  13149. while test $# != 0
  13150. do
  13151. case $1 in
  13152. --*=*)
  13153. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13154. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13155. ac_shift=:
  13156. ;;
  13157. *)
  13158. ac_option=$1
  13159. ac_optarg=$2
  13160. ac_shift=shift
  13161. ;;
  13162. esac
  13163. case $ac_option in
  13164. # Handling of the options.
  13165. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13166. ac_cs_recheck=: ;;
  13167. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13168. $as_echo "$ac_cs_version"; exit ;;
  13169. --debug | --debu | --deb | --de | --d | -d )
  13170. debug=: ;;
  13171. --file | --fil | --fi | --f )
  13172. $ac_shift
  13173. case $ac_optarg in
  13174. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13175. esac
  13176. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13177. ac_need_defaults=false;;
  13178. --he | --h | --help | --hel | -h )
  13179. $as_echo "$ac_cs_usage"; exit ;;
  13180. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13181. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13182. ac_cs_silent=: ;;
  13183. # This is an error.
  13184. -*) as_fn_error "unrecognized option: \`$1'
  13185. Try \`$0 --help' for more information." ;;
  13186. *) as_fn_append ac_config_targets " $1"
  13187. ac_need_defaults=false ;;
  13188. esac
  13189. shift
  13190. done
  13191. ac_configure_extra_args=
  13192. if $ac_cs_silent; then
  13193. exec 6>/dev/null
  13194. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13195. fi
  13196. _ACEOF
  13197. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13198. if \$ac_cs_recheck; then
  13199. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13200. shift
  13201. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13202. CONFIG_SHELL='$SHELL'
  13203. export CONFIG_SHELL
  13204. exec "\$@"
  13205. fi
  13206. _ACEOF
  13207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13208. exec 5>>config.log
  13209. {
  13210. echo
  13211. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13212. ## Running $as_me. ##
  13213. _ASBOX
  13214. $as_echo "$ac_log"
  13215. } >&5
  13216. _ACEOF
  13217. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13218. #
  13219. # INIT-COMMANDS
  13220. #
  13221. extrasub_build="$extrasub_build"
  13222. extrasub_host="$extrasub_host"
  13223. extrasub_target="$extrasub_target"
  13224. _ACEOF
  13225. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13226. # Handling of arguments.
  13227. for ac_config_target in $ac_config_targets
  13228. do
  13229. case $ac_config_target in
  13230. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13231. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13232. esac
  13233. done
  13234. # If the user did not use the arguments to specify the items to instantiate,
  13235. # then the envvar interface is used. Set only those that are not.
  13236. # We use the long form for the default assignment because of an extremely
  13237. # bizarre bug on SunOS 4.1.3.
  13238. if $ac_need_defaults; then
  13239. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13240. fi
  13241. # Have a temporary directory for convenience. Make it in the build tree
  13242. # simply because there is no reason against having it here, and in addition,
  13243. # creating and moving files from /tmp can sometimes cause problems.
  13244. # Hook for its removal unless debugging.
  13245. # Note that there is a small window in which the directory will not be cleaned:
  13246. # after its creation but before its name has been assigned to `$tmp'.
  13247. $debug ||
  13248. {
  13249. tmp=
  13250. trap 'exit_status=$?
  13251. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13252. ' 0
  13253. trap 'as_fn_exit 1' 1 2 13 15
  13254. }
  13255. # Create a (secure) tmp directory for tmp files.
  13256. {
  13257. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13258. test -n "$tmp" && test -d "$tmp"
  13259. } ||
  13260. {
  13261. tmp=./conf$$-$RANDOM
  13262. (umask 077 && mkdir "$tmp")
  13263. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13264. # Set up the scripts for CONFIG_FILES section.
  13265. # No need to generate them if there are no CONFIG_FILES.
  13266. # This happens for instance with `./config.status config.h'.
  13267. if test -n "$CONFIG_FILES"; then
  13268. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  13269. ac_cs_awk_getline=:
  13270. ac_cs_awk_pipe_init=
  13271. ac_cs_awk_read_file='
  13272. while ((getline aline < (F[key])) > 0)
  13273. print(aline)
  13274. close(F[key])'
  13275. ac_cs_awk_pipe_fini=
  13276. else
  13277. ac_cs_awk_getline=false
  13278. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  13279. ac_cs_awk_read_file='
  13280. print "|#_!!_#|"
  13281. print "cat " F[key] " &&"
  13282. '$ac_cs_awk_pipe_init
  13283. # The final `:' finishes the AND list.
  13284. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  13285. fi
  13286. ac_cr=`echo X | tr X '\015'`
  13287. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13288. # But we know of no other shell where ac_cr would be empty at this
  13289. # point, so we can use a bashism as a fallback.
  13290. if test "x$ac_cr" = x; then
  13291. eval ac_cr=\$\'\\r\'
  13292. fi
  13293. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13294. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13295. ac_cs_awk_cr='\r'
  13296. else
  13297. ac_cs_awk_cr=$ac_cr
  13298. fi
  13299. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13300. _ACEOF
  13301. # Create commands to substitute file output variables.
  13302. {
  13303. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  13304. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  13305. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  13306. echo "_ACAWK" &&
  13307. echo "_ACEOF"
  13308. } >conf$$files.sh &&
  13309. . ./conf$$files.sh ||
  13310. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13311. rm -f conf$$files.sh
  13312. {
  13313. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13314. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13315. echo "_ACEOF"
  13316. } >conf$$subs.sh ||
  13317. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13318. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13319. ac_delim='%!_!# '
  13320. for ac_last_try in false false false false false :; do
  13321. . ./conf$$subs.sh ||
  13322. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13323. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13324. if test $ac_delim_n = $ac_delim_num; then
  13325. break
  13326. elif $ac_last_try; then
  13327. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13328. else
  13329. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13330. fi
  13331. done
  13332. rm -f conf$$subs.sh
  13333. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13334. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13335. _ACEOF
  13336. sed -n '
  13337. h
  13338. s/^/S["/; s/!.*/"]=/
  13339. p
  13340. g
  13341. s/^[^!]*!//
  13342. :repl
  13343. t repl
  13344. s/'"$ac_delim"'$//
  13345. t delim
  13346. :nl
  13347. h
  13348. s/\(.\{148\}\).*/\1/
  13349. t more1
  13350. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13351. p
  13352. n
  13353. b repl
  13354. :more1
  13355. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13356. p
  13357. g
  13358. s/.\{148\}//
  13359. t nl
  13360. :delim
  13361. h
  13362. s/\(.\{148\}\).*/\1/
  13363. t more2
  13364. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13365. p
  13366. b
  13367. :more2
  13368. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13369. p
  13370. g
  13371. s/.\{148\}//
  13372. t delim
  13373. ' <conf$$subs.awk | sed '
  13374. /^[^""]/{
  13375. N
  13376. s/\n//
  13377. }
  13378. ' >>$CONFIG_STATUS || ac_write_fail=1
  13379. rm -f conf$$subs.awk
  13380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13381. _ACAWK
  13382. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13383. for (key in S) S_is_set[key] = 1
  13384. FS = ""
  13385. \$ac_cs_awk_pipe_init
  13386. }
  13387. {
  13388. line = $ 0
  13389. nfields = split(line, field, "@")
  13390. substed = 0
  13391. len = length(field[1])
  13392. for (i = 2; i < nfields; i++) {
  13393. key = field[i]
  13394. keylen = length(key)
  13395. if (S_is_set[key]) {
  13396. value = S[key]
  13397. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13398. len += length(value) + length(field[++i])
  13399. substed = 1
  13400. } else
  13401. len += 1 + keylen
  13402. }
  13403. if (nfields == 3 && !substed) {
  13404. key = field[2]
  13405. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  13406. \$ac_cs_awk_read_file
  13407. next
  13408. }
  13409. }
  13410. print line
  13411. }
  13412. \$ac_cs_awk_pipe_fini
  13413. _ACAWK
  13414. _ACEOF
  13415. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13416. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13417. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13418. else
  13419. cat
  13420. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13421. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13422. _ACEOF
  13423. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13424. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13425. # trailing colons and then remove the whole line if VPATH becomes empty
  13426. # (actually we leave an empty line to preserve line numbers).
  13427. if test "x$srcdir" = x.; then
  13428. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13429. s/:*\$(srcdir):*/:/
  13430. s/:*\${srcdir}:*/:/
  13431. s/:*@srcdir@:*/:/
  13432. s/^\([^=]*=[ ]*\):*/\1/
  13433. s/:*$//
  13434. s/^[^=]*=[ ]*$//
  13435. }'
  13436. fi
  13437. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13438. fi # test -n "$CONFIG_FILES"
  13439. eval set X " :F $CONFIG_FILES "
  13440. shift
  13441. for ac_tag
  13442. do
  13443. case $ac_tag in
  13444. :[FHLC]) ac_mode=$ac_tag; continue;;
  13445. esac
  13446. case $ac_mode$ac_tag in
  13447. :[FHL]*:*);;
  13448. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13449. :[FH]-) ac_tag=-:-;;
  13450. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13451. esac
  13452. ac_save_IFS=$IFS
  13453. IFS=:
  13454. set x $ac_tag
  13455. IFS=$ac_save_IFS
  13456. shift
  13457. ac_file=$1
  13458. shift
  13459. case $ac_mode in
  13460. :L) ac_source=$1;;
  13461. :[FH])
  13462. ac_file_inputs=
  13463. for ac_f
  13464. do
  13465. case $ac_f in
  13466. -) ac_f="$tmp/stdin";;
  13467. *) # Look for the file first in the build tree, then in the source tree
  13468. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13469. # because $ac_f cannot contain `:'.
  13470. test -f "$ac_f" ||
  13471. case $ac_f in
  13472. [\\/$]*) false;;
  13473. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13474. esac ||
  13475. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13476. esac
  13477. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13478. as_fn_append ac_file_inputs " '$ac_f'"
  13479. done
  13480. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13481. # use $as_me), people would be surprised to read:
  13482. # /* config.h. Generated by config.status. */
  13483. configure_input='Generated from '`
  13484. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13485. `' by configure.'
  13486. if test x"$ac_file" != x-; then
  13487. configure_input="$ac_file. $configure_input"
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13489. $as_echo "$as_me: creating $ac_file" >&6;}
  13490. fi
  13491. # Neutralize special characters interpreted by sed in replacement strings.
  13492. case $configure_input in #(
  13493. *\&* | *\|* | *\\* )
  13494. ac_sed_conf_input=`$as_echo "$configure_input" |
  13495. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13496. *) ac_sed_conf_input=$configure_input;;
  13497. esac
  13498. case $ac_tag in
  13499. *:-:* | *:-) cat >"$tmp/stdin" \
  13500. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13501. esac
  13502. ;;
  13503. esac
  13504. ac_dir=`$as_dirname -- "$ac_file" ||
  13505. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13506. X"$ac_file" : 'X\(//\)[^/]' \| \
  13507. X"$ac_file" : 'X\(//\)$' \| \
  13508. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13509. $as_echo X"$ac_file" |
  13510. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13511. s//\1/
  13512. q
  13513. }
  13514. /^X\(\/\/\)[^/].*/{
  13515. s//\1/
  13516. q
  13517. }
  13518. /^X\(\/\/\)$/{
  13519. s//\1/
  13520. q
  13521. }
  13522. /^X\(\/\).*/{
  13523. s//\1/
  13524. q
  13525. }
  13526. s/.*/./; q'`
  13527. as_dir="$ac_dir"; as_fn_mkdir_p
  13528. ac_builddir=.
  13529. case "$ac_dir" in
  13530. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13531. *)
  13532. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13533. # A ".." for each directory in $ac_dir_suffix.
  13534. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13535. case $ac_top_builddir_sub in
  13536. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13537. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13538. esac ;;
  13539. esac
  13540. ac_abs_top_builddir=$ac_pwd
  13541. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13542. # for backward compatibility:
  13543. ac_top_builddir=$ac_top_build_prefix
  13544. case $srcdir in
  13545. .) # We are building in place.
  13546. ac_srcdir=.
  13547. ac_top_srcdir=$ac_top_builddir_sub
  13548. ac_abs_top_srcdir=$ac_pwd ;;
  13549. [\\/]* | ?:[\\/]* ) # Absolute name.
  13550. ac_srcdir=$srcdir$ac_dir_suffix;
  13551. ac_top_srcdir=$srcdir
  13552. ac_abs_top_srcdir=$srcdir ;;
  13553. *) # Relative name.
  13554. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13555. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13556. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13557. esac
  13558. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13559. case $ac_mode in
  13560. :F)
  13561. #
  13562. # CONFIG_FILE
  13563. #
  13564. case $INSTALL in
  13565. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13566. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13567. esac
  13568. _ACEOF
  13569. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13570. # If the template does not know about datarootdir, expand it.
  13571. # FIXME: This hack should be removed a few years after 2.60.
  13572. ac_datarootdir_hack=; ac_datarootdir_seen=
  13573. ac_sed_dataroot='
  13574. /datarootdir/ {
  13575. p
  13576. q
  13577. }
  13578. /@datadir@/p
  13579. /@docdir@/p
  13580. /@infodir@/p
  13581. /@localedir@/p
  13582. /@mandir@/p'
  13583. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13584. *datarootdir*) ac_datarootdir_seen=yes;;
  13585. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13587. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13588. _ACEOF
  13589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13590. ac_datarootdir_hack='
  13591. s&@datadir@&$datadir&g
  13592. s&@docdir@&$docdir&g
  13593. s&@infodir@&$infodir&g
  13594. s&@localedir@&$localedir&g
  13595. s&@mandir@&$mandir&g
  13596. s&\\\${datarootdir}&$datarootdir&g' ;;
  13597. esac
  13598. _ACEOF
  13599. # Neutralize VPATH when `$srcdir' = `.'.
  13600. # Shell code in configure.ac might set extrasub.
  13601. # FIXME: do we really want to maintain this feature?
  13602. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13603. ac_sed_extra="$ac_vpsub
  13604. $extrasub
  13605. _ACEOF
  13606. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13607. :t
  13608. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13609. s|@configure_input@|$ac_sed_conf_input|;t t
  13610. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13611. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13612. s&@srcdir@&$ac_srcdir&;t t
  13613. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13614. s&@top_srcdir@&$ac_top_srcdir&;t t
  13615. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13616. s&@builddir@&$ac_builddir&;t t
  13617. s&@abs_builddir@&$ac_abs_builddir&;t t
  13618. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13619. s&@INSTALL@&$ac_INSTALL&;t t
  13620. $ac_datarootdir_hack
  13621. "
  13622. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  13623. if $ac_cs_awk_getline; then
  13624. $AWK -f "$tmp/subs.awk"
  13625. else
  13626. $AWK -f "$tmp/subs.awk" | $SHELL
  13627. fi >$tmp/out \
  13628. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13629. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13630. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13631. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13633. which seems to be undefined. Please make sure it is defined." >&5
  13634. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13635. which seems to be undefined. Please make sure it is defined." >&2;}
  13636. rm -f "$tmp/stdin"
  13637. case $ac_file in
  13638. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13639. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13640. esac \
  13641. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13642. ;;
  13643. esac
  13644. case $ac_file$ac_mode in
  13645. "Makefile":F) sed "$extrasub_build" Makefile |
  13646. sed "$extrasub_host" |
  13647. sed "$extrasub_target" > mf$$
  13648. mv -f mf$$ Makefile ;;
  13649. esac
  13650. done # for ac_tag
  13651. as_fn_exit 0
  13652. _ACEOF
  13653. ac_clean_files=$ac_clean_files_save
  13654. test $ac_write_fail = 0 ||
  13655. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13656. # configure is writing to config.log, and then calls config.status.
  13657. # config.status does its own redirection, appending to config.log.
  13658. # Unfortunately, on DOS this fails, as config.log is still kept open
  13659. # by configure, so config.status won't be able to write to it; its
  13660. # output is simply discarded. So we exec the FD to /dev/null,
  13661. # effectively closing config.log, so it can be properly (re)opened and
  13662. # appended to by config.status. When coming back to configure, we
  13663. # need to make the FD available again.
  13664. if test "$no_create" != yes; then
  13665. ac_cs_success=:
  13666. ac_config_status_args=
  13667. test "$silent" = yes &&
  13668. ac_config_status_args="$ac_config_status_args --quiet"
  13669. exec 5>/dev/null
  13670. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13671. exec 5>>config.log
  13672. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13673. # would make configure fail if this is the last instruction.
  13674. $ac_cs_success || as_fn_exit $?
  13675. fi
  13676. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13678. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13679. fi