]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
2007-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
[thirdparty/gcc.git] / configure
CommitLineData
71ab34df 1#! /bin/sh
71ab34df 2# Guess values for system-dependent variables and create Makefiles.
5084f823 3# Generated by GNU Autoconf 2.59.
71ab34df 4#
5084f823 5# Copyright (C) 2003 Free Software Foundation, Inc.
71ab34df 6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
b30fcfae 8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
5084f823 12# Be Bourne compatible
b30fcfae 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
5084f823 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
b30fcfae 21fi
5084f823 22DUALCASE=1; export DUALCASE # for MKS sh
b30fcfae 23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
5084f823 33$as_unset ENV MAIL MAILPATH
b30fcfae 34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
5084f823 47 $as_unset $as_var
b30fcfae 48 fi
49done
50
51# Required to use basename.
5084f823 52if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 53 as_expr=expr
54else
55 as_expr=false
56fi
57
5084f823 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
b30fcfae 59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
5084f823 66as_me=`$as_basename "$0" ||
b30fcfae 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
5084f823 69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
b30fcfae 71echo X/"$0" |
5084f823 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
b30fcfae 76
b30fcfae 77
5084f823 78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
570af75a 85
5084f823 86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
570af75a 97fi
98
570af75a 99
5084f823 100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
570af75a 116
5084f823 117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
b30fcfae 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
5084f823 135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
b30fcfae 137 /*)
5084f823 138 if ("$as_dir/$as_base" -c '
570af75a 139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
5084f823 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
570af75a 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
5084f823 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
b30fcfae 155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
5084f823 158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
b30fcfae 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5084f823 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
b30fcfae 165 sed '
166 N
5084f823 167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
b30fcfae 170 t loop
5084f823 171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
b30fcfae 173 ' >$as_me.lineno &&
5084f823 174 chmod +x $as_me.lineno ||
b30fcfae 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
5084f823 180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
b30fcfae 182 # Exit status is that of the last command.
183 exit
184}
185
186
5084f823 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
b30fcfae 192esac
193
5084f823 194if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
b30fcfae 207 as_ln_s='cp -p'
5084f823 208 else
209 as_ln_s='ln -s'
210 fi
b30fcfae 211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
5084f823 216rm -f conf$$ conf$$.exe conf$$.file
b30fcfae 217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
5084f823 225as_executable_p="test -f"
a83ffacf 226
b30fcfae 227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
5084f823 234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
b30fcfae 242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
5084f823 249exec 6>&1
250
b30fcfae 251#
252# Initializations.
253#
71ab34df 254ac_default_prefix=/usr/local
b30fcfae 255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
5084f823 262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
b30fcfae 267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
75d6a0a9 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
5084f823 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
71ab34df 277
278# Initialize some variables set by options.
b30fcfae 279ac_init_help=
280ac_init_version=false
71ab34df 281# The variables have the same names as the options, with
282# dashes changed to underlines.
b30fcfae 283cache_file=/dev/null
71ab34df 284exec_prefix=NONE
71ab34df 285no_create=
71ab34df 286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
71ab34df 294verbose=
295x_includes=NONE
296x_libraries=NONE
b30fcfae 297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
71ab34df 303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
5084f823 306datadir='${prefix}/share'
71ab34df 307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
5084f823 310libdir='${exec_prefix}/lib'
71ab34df 311includedir='${prefix}/include'
312oldincludedir='/usr/include'
5084f823 313infodir='${prefix}/info'
314mandir='${prefix}/man'
a8298541 315
71ab34df 316ac_prev=
317for ac_option
318do
71ab34df 319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
5084f823 321 eval "$ac_prev=\$ac_option"
71ab34df 322 ac_prev=
323 continue
324 fi
a8298541 325
5084f823 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
71ab34df 327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
5084f823 330 case $ac_option in
71ab34df 331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b30fcfae 335 bindir=$ac_optarg ;;
71ab34df 336
337 -build | --build | --buil | --bui | --bu)
b30fcfae 338 ac_prev=build_alias ;;
71ab34df 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b30fcfae 340 build_alias=$ac_optarg ;;
71ab34df 341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b30fcfae 347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
71ab34df 351
5084f823 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
71ab34df 353 ac_prev=datadir ;;
5084f823 354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
b30fcfae 356 datadir=$ac_optarg ;;
71ab34df 357
358 -disable-* | --disable-*)
b30fcfae 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
71ab34df 360 # Reject names that are not valid shell variable names.
5084f823 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
b30fcfae 362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
5084f823 364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
71ab34df 366
367 -enable-* | --enable-*)
b30fcfae 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
71ab34df 369 # Reject names that are not valid shell variable names.
5084f823 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
b30fcfae 371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
5084f823 373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
71ab34df 379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
b30fcfae 387 exec_prefix=$ac_optarg ;;
71ab34df 388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
b30fcfae 393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
71ab34df 399
400 -host | --host | --hos | --ho)
b30fcfae 401 ac_prev=host_alias ;;
71ab34df 402 -host=* | --host=* | --hos=* | --ho=*)
b30fcfae 403 host_alias=$ac_optarg ;;
71ab34df 404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
b30fcfae 410 includedir=$ac_optarg ;;
71ab34df 411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b30fcfae 415 infodir=$ac_optarg ;;
71ab34df 416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b30fcfae 420 libdir=$ac_optarg ;;
71ab34df 421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
b30fcfae 427 libexecdir=$ac_optarg ;;
71ab34df 428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
5084f823 430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
71ab34df 432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5084f823 434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b30fcfae 436 localstatedir=$ac_optarg ;;
71ab34df 437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b30fcfae 441 mandir=$ac_optarg ;;
71ab34df 442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b30fcfae 448 | --no-cr | --no-c | -n)
71ab34df 449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b30fcfae 462 oldincludedir=$ac_optarg ;;
71ab34df 463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b30fcfae 467 prefix=$ac_optarg ;;
71ab34df 468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b30fcfae 474 program_prefix=$ac_optarg ;;
71ab34df 475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b30fcfae 481 program_suffix=$ac_optarg ;;
71ab34df 482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
b30fcfae 498 program_transform_name=$ac_optarg ;;
71ab34df 499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
b30fcfae 508 sbindir=$ac_optarg ;;
71ab34df 509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
b30fcfae 519 sharedstatedir=$ac_optarg ;;
71ab34df 520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
b30fcfae 524 site=$ac_optarg ;;
71ab34df 525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b30fcfae 529 srcdir=$ac_optarg ;;
71ab34df 530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b30fcfae 536 sysconfdir=$ac_optarg ;;
71ab34df 537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
b30fcfae 539 ac_prev=target_alias ;;
71ab34df 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b30fcfae 541 target_alias=$ac_optarg ;;
71ab34df 542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
b30fcfae 546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
71ab34df 548
549 -with-* | --with-*)
b30fcfae 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
71ab34df 551 # Reject names that are not valid shell variable names.
5084f823 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
b30fcfae 553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
5084f823 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
71ab34df 561
562 -without-* | --without-*)
b30fcfae 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
71ab34df 564 # Reject names that are not valid shell variable names.
5084f823 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
b30fcfae 566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
5084f823 568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
71ab34df 570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b30fcfae 580 x_includes=$ac_optarg ;;
71ab34df 581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b30fcfae 587 x_libraries=$ac_optarg ;;
71ab34df 588
b30fcfae 589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
71ab34df 592 ;;
593
b30fcfae 594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
5084f823 600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
b30fcfae 602 export $ac_envvar ;;
603
71ab34df 604 *)
b30fcfae 605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
71ab34df 610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
b30fcfae 616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
ae48753c 619fi
ae48753c 620
5084f823 621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
71ab34df 623do
5084f823 624 eval ac_val=$`echo $ac_var`
b30fcfae 625 case $ac_val in
5084f823 626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
71ab34df 641 esac
642done
643
b30fcfae 644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
a83ffacf 650
b30fcfae 651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
71ab34df 666
71ab34df 667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
5084f823 671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
b30fcfae 673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
5084f823 676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
b30fcfae 678echo X"$0" |
5084f823 679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
71ab34df 684 srcdir=$ac_confdir
5084f823 685 if test ! -r $srcdir/$ac_unique_file; then
71ab34df 686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
5084f823 691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b30fcfae 697 { (exit 1); exit 1; }; }
5084f823 698 fi
b30fcfae 699fi
5084f823 700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
b30fcfae 702 { (exit 1); exit 1; }; }
5084f823 703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
75d6a0a9 776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
5084f823 780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
75d6a0a9 848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
b30fcfae 852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
5084f823 880_ACEOF
881
882 cat <<_ACEOF
b30fcfae 883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
5084f823 900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
b30fcfae 901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
5084f823 907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
b30fcfae 909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
923fi
924
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
09c2d953 932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
b30fcfae 935 stage1. Mostly useful for compiler development.
09c2d953 936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
b30fcfae 941 sub-packages for the host, target or build
09c2d953 942 machine, or all sub-packages
b30fcfae 943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
09c2d953 945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
b30fcfae 947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
09c2d953 953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
b30fcfae 955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
09c2d953 958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
b30fcfae 962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
09c2d953 964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
b30fcfae 967 use sysroot as the system root during the build
09c2d953 968 --with-build-time-tools=PATH
b30fcfae 969 use given path to find target tools during the build
09c2d953 970 --with-datarootdir use datarootdir as the data root directory.
971 --with-docdir install documentation in this directory.
972 --with-pdfdir install pdf in this directory.
973 --with-htmldir install html in this directory.
b30fcfae 974
975Some influential environment variables:
976 CC C compiler command
977 CFLAGS C compiler flags
978 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
979 nonstandard directory <lib dir>
5084f823 980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
eae5b2bc 982 CXX C++ compiler command
983 CXXFLAGS C++ compiler flags
95a05732 984 AR AR for the host
985 AS AS for the host
986 DLLTOOL DLLTOOL for the host
987 LD LD for the host
988 LIPO LIPO for the host
989 NM NM for the host
990 RANLIB RANLIB for the host
991 STRIP STRIP for the host
992 WINDRES WINDRES for the host
75d6a0a9 993 WINDMC WINDMC for the host
95a05732 994 OBJCOPY OBJCOPY for the host
995 OBJDUMP OBJDUMP for the host
996 CC_FOR_TARGET
997 CC for the target
998 CXX_FOR_TARGET
999 CXX for the target
1000 GCC_FOR_TARGET
1001 GCC for the target
1002 GCJ_FOR_TARGET
1003 GCJ for the target
1004 GFORTRAN_FOR_TARGET
1005 GFORTRAN for the target
1006 AR_FOR_TARGET
1007 AR for the target
1008 AS_FOR_TARGET
1009 AS for the target
1010 DLLTOOL_FOR_TARGET
1011 DLLTOOL for the target
1012 LD_FOR_TARGET
1013 LD for the target
1014 LIPO_FOR_TARGET
1015 LIPO for the target
1016 NM_FOR_TARGET
1017 NM for the target
1018 OBJDUMP_FOR_TARGET
1019 OBJDUMP for the target
1020 RANLIB_FOR_TARGET
1021 RANLIB for the target
1022 STRIP_FOR_TARGET
1023 STRIP for the target
1024 WINDRES_FOR_TARGET
1025 WINDRES for the target
75d6a0a9 1026 WINDMC_FOR_TARGET
1027 WINDMC for the target
b30fcfae 1028
1029Use these variables to override the choices made by `configure' or to help
1030it to find libraries and programs with nonstandard names/locations.
1031
1032_ACEOF
1033fi
1034
1035if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
5084f823 1037 ac_popdir=`pwd`
b30fcfae 1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5084f823 1039 test -d $ac_dir || continue
b30fcfae 1040 ac_builddir=.
1041
5084f823 1042if test "$ac_dir" != .; then
b30fcfae 1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5084f823 1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046else
1047 ac_dir_suffix= ac_top_builddir=
1048fi
b30fcfae 1049
1050case $srcdir in
5084f823 1051 .) # No --srcdir option. We are building in place.
b30fcfae 1052 ac_srcdir=.
5084f823 1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
b30fcfae 1059 ac_srcdir=$srcdir$ac_dir_suffix;
5084f823 1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064esac
1065
1066# Do not use `cd foo && pwd` to compute absolute paths, because
1067# the directories may not exist.
1068case `pwd` in
1069.) ac_abs_builddir="$ac_dir";;
1070*)
1071 case "$ac_dir" in
1072 .) ac_abs_builddir=`pwd`;;
1073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1075 esac;;
1076esac
1077case $ac_abs_builddir in
1078.) ac_abs_top_builddir=${ac_top_builddir}.;;
1079*)
1080 case ${ac_top_builddir}. in
1081 .) ac_abs_top_builddir=$ac_abs_builddir;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1084 esac;;
1085esac
1086case $ac_abs_builddir in
1087.) ac_abs_srcdir=$ac_srcdir;;
1088*)
1089 case $ac_srcdir in
1090 .) ac_abs_srcdir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_srcdir=$ac_top_srcdir;;
1097*)
1098 case $ac_top_srcdir in
1099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1102 esac;;
b30fcfae 1103esac
5084f823 1104
1105 cd $ac_dir
1106 # Check for guested configure; otherwise get Cygnus style configure.
1107 if test -f $ac_srcdir/configure.gnu; then
1108 echo
1109 $SHELL $ac_srcdir/configure.gnu --help=recursive
1110 elif test -f $ac_srcdir/configure; then
1111 echo
1112 $SHELL $ac_srcdir/configure --help=recursive
1113 elif test -f $ac_srcdir/configure.ac ||
1114 test -f $ac_srcdir/configure.in; then
1115 echo
1116 $ac_configure --help
b30fcfae 1117 else
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5084f823 1119 fi
1120 cd $ac_popdir
b30fcfae 1121 done
1122fi
1123
5084f823 1124test -n "$ac_init_help" && exit 0
b30fcfae 1125if $ac_init_version; then
1126 cat <<\_ACEOF
1127
5084f823 1128Copyright (C) 2003 Free Software Foundation, Inc.
b30fcfae 1129This configure script is free software; the Free Software Foundation
1130gives unlimited permission to copy, distribute and modify it.
1131_ACEOF
5084f823 1132 exit 0
a83ffacf 1133fi
5084f823 1134exec 5>config.log
1135cat >&5 <<_ACEOF
b30fcfae 1136This file contains any messages produced by compilers while
1137running configure, to aid debugging if configure makes a mistake.
1138
1139It was created by $as_me, which was
5084f823 1140generated by GNU Autoconf 2.59. Invocation command line was
b30fcfae 1141
1142 $ $0 $@
1143
1144_ACEOF
1145{
1146cat <<_ASUNAME
1147## --------- ##
1148## Platform. ##
1149## --------- ##
1150
1151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1152uname -m = `(uname -m) 2>/dev/null || echo unknown`
1153uname -r = `(uname -r) 2>/dev/null || echo unknown`
1154uname -s = `(uname -s) 2>/dev/null || echo unknown`
1155uname -v = `(uname -v) 2>/dev/null || echo unknown`
1156
1157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1158/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1159
1160/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1161/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5084f823 1163hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1164/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1165/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1166/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1167
1168_ASUNAME
1169
1170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1171for as_dir in $PATH
1172do
1173 IFS=$as_save_IFS
1174 test -z "$as_dir" && as_dir=.
1175 echo "PATH: $as_dir"
1176done
1177
1178} >&5
1179
1180cat >&5 <<_ACEOF
1181
1182
1183## ----------- ##
1184## Core tests. ##
1185## ----------- ##
1186
1187_ACEOF
1188
1189
1190# Keep a trace of the command line.
1191# Strip out --no-create and --no-recursion so they do not pile up.
1192# Strip out --silent because we don't want to record it for future runs.
1193# Also quote any args containing shell meta-characters.
1194# Make two passes to allow for proper duplicate-argument suppression.
1195ac_configure_args=
1196ac_configure_args0=
1197ac_configure_args1=
5084f823 1198ac_sep=
b30fcfae 1199ac_must_keep_next=false
1200for ac_pass in 1 2
1201do
1202 for ac_arg
1203 do
1204 case $ac_arg in
1205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 continue ;;
5084f823 1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
b30fcfae 1210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211 esac
1212 case $ac_pass in
1213 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1214 2)
1215 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1216 if test $ac_must_keep_next = true; then
1217 ac_must_keep_next=false # Got value, back to normal.
1218 else
1219 case $ac_arg in
1220 *=* | --config-cache | -C | -disable-* | --disable-* \
1221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1223 | -with-* | --with-* | -without-* | --without-* | --x)
1224 case "$ac_configure_args0 " in
1225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1226 esac
1227 ;;
1228 -* ) ac_must_keep_next=true ;;
1229 esac
1230 fi
5084f823 1231 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1232 # Get rid of the leading space.
1233 ac_sep=" "
b30fcfae 1234 ;;
1235 esac
1236 done
1237done
1238$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1239$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1240
1241# When interrupted or exit'd, cleanup temporary files, and complete
1242# config.log. We remove comments because anyway the quotes in there
1243# would cause problems or look ugly.
5084f823 1244# WARNING: Be sure not to use single quotes in there, as some shells,
1245# such as our DU 5.0 friend, will then `close' the trap.
b30fcfae 1246trap 'exit_status=$?
1247 # Save into config.log some information that might help in debugging.
1248 {
1249 echo
1250
1251 cat <<\_ASBOX
1252## ---------------- ##
1253## Cache variables. ##
1254## ---------------- ##
1255_ASBOX
1256 echo
1257 # The following way of writing the cache mishandles newlines in values,
5084f823 1258{
b30fcfae 1259 (set) 2>&1 |
5084f823 1260 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1261 *ac_space=\ *)
b30fcfae 1262 sed -n \
5084f823 1263 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1265 ;;
b30fcfae 1266 *)
5084f823 1267 sed -n \
1268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b30fcfae 1269 ;;
5084f823 1270 esac;
1271}
b30fcfae 1272 echo
1273
1274 cat <<\_ASBOX
1275## ----------------- ##
1276## Output variables. ##
1277## ----------------- ##
1278_ASBOX
1279 echo
1280 for ac_var in $ac_subst_vars
1281 do
5084f823 1282 eval ac_val=$`echo $ac_var`
1283 echo "$ac_var='"'"'$ac_val'"'"'"
b30fcfae 1284 done | sort
1285 echo
1286
1287 if test -n "$ac_subst_files"; then
1288 cat <<\_ASBOX
5084f823 1289## ------------- ##
1290## Output files. ##
1291## ------------- ##
b30fcfae 1292_ASBOX
1293 echo
1294 for ac_var in $ac_subst_files
1295 do
5084f823 1296 eval ac_val=$`echo $ac_var`
1297 echo "$ac_var='"'"'$ac_val'"'"'"
b30fcfae 1298 done | sort
1299 echo
1300 fi
1301
1302 if test -s confdefs.h; then
1303 cat <<\_ASBOX
1304## ----------- ##
1305## confdefs.h. ##
1306## ----------- ##
1307_ASBOX
1308 echo
5084f823 1309 sed "/^$/d" confdefs.h | sort
b30fcfae 1310 echo
1311 fi
1312 test "$ac_signal" != 0 &&
1313 echo "$as_me: caught signal $ac_signal"
1314 echo "$as_me: exit $exit_status"
1315 } >&5
5084f823 1316 rm -f core *.core &&
1317 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 1318 exit $exit_status
5084f823 1319 ' 0
b30fcfae 1320for ac_signal in 1 2 13 15; do
1321 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1322done
1323ac_signal=0
1324
1325# confdefs.h avoids OS command line length limits that DEFS can exceed.
5084f823 1326rm -rf conftest* confdefs.h
1327# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1328echo >confdefs.h
b30fcfae 1329
1330# Predefined preprocessor variables.
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_NAME "$PACKAGE_NAME"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_VERSION "$PACKAGE_VERSION"
1344_ACEOF
a83ffacf 1345
b30fcfae 1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_STRING "$PACKAGE_STRING"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1354_ACEOF
1355
1356
1357# Let the site file select an alternate cache file if it wants to.
71ab34df 1358# Prefer explicitly selected file to automatically selected ones.
5084f823 1359if test -z "$CONFIG_SITE"; then
1360 if test "x$prefix" != xNONE; then
1361 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1362 else
1363 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1364 fi
71ab34df 1365fi
5084f823 1366for ac_site_file in $CONFIG_SITE; do
71ab34df 1367 if test -r "$ac_site_file"; then
b30fcfae 1368 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1369echo "$as_me: loading site script $ac_site_file" >&6;}
1370 sed 's/^/| /' "$ac_site_file" >&5
71ab34df 1371 . "$ac_site_file"
1372 fi
1373done
1374
1375if test -r "$cache_file"; then
b30fcfae 1376 # Some versions of bash will fail to source /dev/null (special
1377 # files actually), so we avoid doing that.
1378 if test -f "$cache_file"; then
1379 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1380echo "$as_me: loading cache $cache_file" >&6;}
1381 case $cache_file in
5084f823 1382 [\\/]* | ?:[\\/]* ) . $cache_file;;
1383 *) . ./$cache_file;;
b30fcfae 1384 esac
1385 fi
71ab34df 1386else
b30fcfae 1387 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1388echo "$as_me: creating cache $cache_file" >&6;}
1389 >$cache_file
1390fi
1391
1392# Check that the precious variables saved in the cache have kept the same
1393# value.
1394ac_cache_corrupted=false
5084f823 1395for ac_var in `(set) 2>&1 |
1396 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
b30fcfae 1397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1398 eval ac_new_set=\$ac_env_${ac_var}_set
5084f823 1399 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1400 eval ac_new_val="\$ac_env_${ac_var}_value"
b30fcfae 1401 case $ac_old_set,$ac_new_set in
1402 set,)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1404echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,set)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,);;
1411 *)
1412 if test "x$ac_old_val" != "x$ac_new_val"; then
1413 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1414echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1416echo "$as_me: former value: $ac_old_val" >&2;}
1417 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1418echo "$as_me: current value: $ac_new_val" >&2;}
1419 ac_cache_corrupted=:
1420 fi;;
1421 esac
1422 # Pass precious variables to config.status.
1423 if test "$ac_new_set" = set; then
1424 case $ac_new_val in
5084f823 1425 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 1427 *) ac_arg=$ac_var=$ac_new_val ;;
1428 esac
1429 case " $ac_configure_args " in
1430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1431 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1432 esac
1433 fi
1434done
1435if $ac_cache_corrupted; then
1436 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1437echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1438 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1439echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1440 { (exit 1); exit 1; }; }
71ab34df 1441fi
1442
5084f823 1443ac_ext=c
1444ac_cpp='$CPP $CPPFLAGS'
1445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1447ac_compiler_gnu=$ac_cv_c_compiler_gnu
1448
b30fcfae 1449
1450
1451
1452
71ab34df 1453
1454
d65dd253 1455
b30fcfae 1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469# Find the build, host, and target systems.
71ab34df 1470ac_aux_dir=
5084f823 1471for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1472 if test -f $ac_dir/install-sh; then
71ab34df 1473 ac_aux_dir=$ac_dir
1474 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 break
5084f823 1476 elif test -f $ac_dir/install.sh; then
71ab34df 1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 break
5084f823 1480 elif test -f $ac_dir/shtool; then
b30fcfae 1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/shtool install -c"
1483 break
71ab34df 1484 fi
1485done
1486if test -z "$ac_aux_dir"; then
5084f823 1487 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1488echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
b30fcfae 1489 { (exit 1); exit 1; }; }
71ab34df 1490fi
5084f823 1491ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1492ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1493ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
71ab34df 1494
b30fcfae 1495# Make sure we can run config.sub.
5084f823 1496$ac_config_sub sun4 >/dev/null 2>&1 ||
1497 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498echo "$as_me: error: cannot run $ac_config_sub" >&2;}
b30fcfae 1499 { (exit 1); exit 1; }; }
1500
5084f823 1501echo "$as_me:$LINENO: checking build system type" >&5
1502echo $ECHO_N "checking build system type... $ECHO_C" >&6
b30fcfae 1503if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
5084f823 1506 ac_cv_build_alias=$build_alias
1507test -z "$ac_cv_build_alias" &&
1508 ac_cv_build_alias=`$ac_config_guess`
1509test -z "$ac_cv_build_alias" &&
b30fcfae 1510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512 { (exit 1); exit 1; }; }
5084f823 1513ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
b30fcfae 1516 { (exit 1); exit 1; }; }
1517
1518fi
5084f823 1519echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520echo "${ECHO_T}$ac_cv_build" >&6
b30fcfae 1521build=$ac_cv_build
5084f823 1522build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
71ab34df 1525
71ab34df 1526
b30fcfae 1527 case ${build_alias} in
1528 "") build_noncanonical=${build} ;;
1529 *) build_noncanonical=${build_alias} ;;
ae48753c 1530esac
1531
1532
ae48753c 1533
b30fcfae 1534 case ${host_alias} in
1535 "") host_noncanonical=${build_noncanonical} ;;
1536 *) host_noncanonical=${host_alias} ;;
ae48753c 1537esac
1538
ae48753c 1539
b30fcfae 1540
1541 case ${target_alias} in
1542 "") target_noncanonical=${host_noncanonical} ;;
1543 *) target_noncanonical=${target_alias} ;;
ae48753c 1544esac
1545
ae48753c 1546
b30fcfae 1547
1548
1549test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 1550 test "$program_prefix$program_suffix$program_transform_name" = \
1551 NONENONEs,x,x, &&
b30fcfae 1552 program_transform_name=s,y,y,
ae48753c 1553
5084f823 1554echo "$as_me:$LINENO: checking host system type" >&5
1555echo $ECHO_N "checking host system type... $ECHO_C" >&6
b30fcfae 1556if test "${ac_cv_host+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
ae48753c 1558else
5084f823 1559 ac_cv_host_alias=$host_alias
1560test -z "$ac_cv_host_alias" &&
1561 ac_cv_host_alias=$ac_cv_build_alias
1562ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
b30fcfae 1565 { (exit 1); exit 1; }; }
1566
ae48753c 1567fi
5084f823 1568echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1569echo "${ECHO_T}$ac_cv_host" >&6
b30fcfae 1570host=$ac_cv_host
5084f823 1571host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576echo "$as_me:$LINENO: checking target system type" >&5
1577echo $ECHO_N "checking target system type... $ECHO_C" >&6
b30fcfae 1578if test "${ac_cv_target+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
5084f823 1581 ac_cv_target_alias=$target_alias
1582test "x$ac_cv_target_alias" = "x" &&
1583 ac_cv_target_alias=$ac_cv_host_alias
1584ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1586echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
b30fcfae 1587 { (exit 1); exit 1; }; }
1588
1589fi
5084f823 1590echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1591echo "${ECHO_T}$ac_cv_target" >&6
b30fcfae 1592target=$ac_cv_target
5084f823 1593target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b30fcfae 1596
1597
1598# The aliases save the names the user supplied, while $host etc.
1599# will get canonicalized.
1600test -n "$target_alias" &&
1601 test "$program_prefix$program_suffix$program_transform_name" = \
1602 NONENONEs,x,x, &&
1603 program_prefix=${target_alias}-
71ab34df 1604test "$program_prefix" != NONE &&
5084f823 1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
71ab34df 1606# Use a double $ so make ignores it.
1607test "$program_suffix" != NONE &&
5084f823 1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
b30fcfae 1609# Double any \ or $. echo might interpret backslashes.
1610# By default was `s,x,x', remove it if useless.
1611cat <<\_ACEOF >conftest.sed
1612s/[\\$]/&&/g;s/;s,x,x,$//
1613_ACEOF
1614program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5084f823 1615rm conftest.sed
ae48753c 1616
71ab34df 1617
1618
450e6c84 1619# Get 'install' or 'install-sh' and its variants.
1620# Find a good install program. We prefer a C program (faster),
1621# so one script is as good as another. But avoid the broken or
1622# incompatible versions:
1623# SysV /etc/install, /usr/sbin/install
1624# SunOS /usr/etc/install
1625# IRIX /sbin/install
1626# AIX /bin/install
b30fcfae 1627# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 1628# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1629# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1630# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 1631# OS/2's system install, which has a completely different semantic
450e6c84 1632# ./install, which can be erroneously created by make from ./install.sh.
5084f823 1633echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1634echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
450e6c84 1635if test -z "$INSTALL"; then
b30fcfae 1636if test "${ac_cv_path_install+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 # Account for people who put trailing slashes in PATH elements.
1645case $as_dir/ in
1646 ./ | .// | /cC/* | \
1647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1648 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1649 /usr/ucb/* ) ;;
1650 *)
1651 # OSF1 and SCO ODT 3.0 have their own names for install.
1652 # Don't use installbsd from OSF since it installs stuff as root
1653 # by default.
1654 for ac_prog in ginstall scoinst install; do
1655 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 1656 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
450e6c84 1657 if test $ac_prog = install &&
b30fcfae 1658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 1659 # AIX install. It has an incompatible calling convention.
1660 :
b30fcfae 1661 elif test $ac_prog = install &&
1662 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1663 # program-specific install script used by HP pwplus--don't use.
1664 :
450e6c84 1665 else
b30fcfae 1666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1667 break 3
450e6c84 1668 fi
1669 fi
1670 done
b30fcfae 1671 done
1672 ;;
1673esac
1674done
1675
450e6c84 1676
1677fi
1678 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 1679 INSTALL=$ac_cv_path_install
450e6c84 1680 else
5084f823 1681 # As a last resort, use the slow shell script. We don't cache a
1682 # path for INSTALL within a source directory, because that will
450e6c84 1683 # break other packages using the cache if that directory is
5084f823 1684 # removed, or if the path is relative.
b30fcfae 1685 INSTALL=$ac_install_sh
450e6c84 1686 fi
1687fi
5084f823 1688echo "$as_me:$LINENO: result: $INSTALL" >&5
1689echo "${ECHO_T}$INSTALL" >&6
450e6c84 1690
1691# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1692# It thinks the first close brace ends the variable substitution.
1693test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1694
b30fcfae 1695test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 1696
1697test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1698
5084f823 1699echo "$as_me:$LINENO: checking whether ln works" >&5
1700echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
b30fcfae 1701if test "${acx_cv_prog_LN+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
599a3eac 1703else
1704 rm -f conftestdata_t
1705echo >conftestdata_f
1706if ln conftestdata_f conftestdata_t 2>/dev/null
1707then
1708 acx_cv_prog_LN=ln
1709else
1710 acx_cv_prog_LN=no
1711fi
1712rm -f conftestdata_f conftestdata_t
1713
1714fi
1715if test $acx_cv_prog_LN = no; then
1716 LN="cp"
5084f823 1717 echo "$as_me:$LINENO: result: no, using $LN" >&5
1718echo "${ECHO_T}no, using $LN" >&6
599a3eac 1719else
1720 LN="$acx_cv_prog_LN"
5084f823 1721 echo "$as_me:$LINENO: result: yes" >&5
1722echo "${ECHO_T}yes" >&6
599a3eac 1723fi
1724
5084f823 1725echo "$as_me:$LINENO: checking whether ln -s works" >&5
1726echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
b30fcfae 1727LN_S=$as_ln_s
1728if test "$LN_S" = "ln -s"; then
5084f823 1729 echo "$as_me:$LINENO: result: yes" >&5
1730echo "${ECHO_T}yes" >&6
a4af6a58 1731else
5084f823 1732 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1733echo "${ECHO_T}no, using $LN_S" >&6
5965d276 1734fi
1735
450e6c84 1736
a8298541 1737### we might need to use some other shell than /bin/sh for running subshells
a8298541 1738### If we are on Windows, search for the shell. This will permit people
1739### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1740### without also having to set CONFIG_SHELL. This code will work when
1741### using bash, which sets OSTYPE.
1742case "${OSTYPE}" in
1743*win32*)
71ab34df 1744 if test x${CONFIG_SHELL} = x ; then
1745 if test ! -f /bin/sh ; then
1746 if test x${SHELL} != x && test -f ${SHELL} ; then
a8298541 1747 CONFIG_SHELL=${SHELL}
1748 export CONFIG_SHELL
1749 else
1750 for prog in sh sh.exe bash bash.exe; do
1751 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1752 for dir in $PATH; do
1753 test -z "$dir" && dir=.
1754 if test -f $dir/$prog; then
1755 CONFIG_SHELL=$dir/$prog
1756 export CONFIG_SHELL
1757 break
1758 fi
1759 done
1760 IFS="$save_ifs"
1761 test -n "${CONFIG_SHELL}" && break
1762 done
1763 fi
1764 fi
1765 fi
1766 ;;
1767esac
1768
1769config_shell=${CONFIG_SHELL-/bin/sh}
1770
a8298541 1771progname=$0
1772# if PWD already has a value, it is probably wrong.
71ab34df 1773if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
a8298541 1774
77ae4d79 1775# Export original configure arguments for use by sub-configures.
1776# Quote arguments with shell meta charatcers.
1777TOPLEVEL_CONFIGURE_ARGUMENTS=
1778set -- "$progname" "$@"
ae8552b7 1779for ac_arg
1780do
77ae4d79 1781 case "$ac_arg" in
d623d587 1782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
77ae4d79 1783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1784 # if the argument is of the form -foo=baz, quote the baz part only
1785 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1786 *) ;;
1787 esac
1788 # Add the quoted argument to the list.
1789 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1790done
1791# Remove the initial space we just introduced and, as these will be
1792# expanded by make, quote '$'.
1793TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a16b5a9d 1794
9371935c 1795
71ab34df 1796moveifchange=${srcdir}/move-if-change
a8298541 1797
e8eddfdd 1798srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1799
1800# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1801# a relative path.
1802if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1803 INSTALL="${srcpwd}/install-sh -c"
1804fi
1805
71ab34df 1806# Set srcdir to "." if that's what it is.
1807# This is important for multilib support.
1808pwd=`${PWDCMD-pwd}`
71ab34df 1809if test "${pwd}" = "${srcpwd}" ; then
1810 srcdir=.
a8298541 1811fi
1812
71ab34df 1813topsrcdir=$srcpwd
ed37269d 1814
71ab34df 1815extra_host_args=
14ac9144 1816
71ab34df 1817### To add a new directory to the tree, first choose whether it is a target
1818### or a host dependent tool. Then put it into the appropriate list
1819### (library or tools, host or target), doing a dependency sort.
a8298541 1820
b30fcfae 1821# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 1822# configdirs, or target_configdirs; see the serialization section below.
a8298541 1823
b30fcfae 1824# Dependency sorting is only needed when *configuration* must be done in
1825# a particular order. In all cases a dependency should be specified in
71ab34df 1826# the Makefile, whether or not it's implicitly specified here.
a8298541 1827
71ab34df 1828# Double entries in build_configdirs, configdirs, or target_configdirs may
1829# cause circular dependencies and break everything horribly.
a8298541 1830
2f8725b0 1831# these library is used by various programs built for the build
1832# environment
1833#
1834build_libs="build-libiberty"
1835
1836# these tools are built for the build environment
2b59cb05 1837build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2f8725b0 1838
71ab34df 1839# these libraries are used by various programs built for the host environment
1840#
d45318b3 1841host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
71ab34df 1842
71ab34df 1843# these tools are built for the host environment
1844# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1845# know that we are building the simulator.
1846# binutils, gas and ld appear in that order because it makes sense to run
1847# "make check" in that particular order.
a136b23d 1848host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc 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"
71ab34df 1849
1850# libgcj represents the runtime libraries only used by gcj.
1851libgcj="target-libffi \
71ab34df 1852 target-zlib \
1853 target-qthreads \
1854 target-libjava"
1855
1856# these libraries are built for the target environment, and are built after
1857# the host libraries and the host tools (which may be a cross compiler)
1858#
27bfe7b7 1859target_libraries="target-libgcc \
1860 target-libiberty \
71ab34df 1861 target-libgloss \
1862 target-newlib \
54d7d5f2 1863 target-libstdc++-v3 \
4ee9c684 1864 target-libmudflap \
0d55f4d0 1865 target-libssp \
4ee9c684 1866 target-libgfortran \
dd6d3a67 1867 target-boehm-gc \
cdfc500e 1868 ${libgcj} \
93341878 1869 target-libobjc \
1e8e9920 1870 target-libada \
1871 target-libgomp"
71ab34df 1872
328637e8 1873# these tools are built using the target libraries, and are intended to
1874# run only in the target environment
71ab34df 1875#
328637e8 1876# note: any program that *uses* libraries that are in the "target_libraries"
71ab34df 1877# list belongs in this list. those programs are also very likely
1878# candidates for the "native_only" list which follows
1879#
410f1dde 1880target_tools="target-examples target-groff target-gperf target-rda"
a8298541 1881
71ab34df 1882################################################################################
a8298541 1883
71ab34df 1884## All tools belong in one of the four categories, and are assigned above
1885## We assign ${configdirs} this way to remove all embedded newlines. This
1886## is important because configure will choke if they ever get through.
1887## ${configdirs} is directories we build using the host tools.
1888## ${target_configdirs} is directories we build using the target tools.
71ab34df 1889configdirs=`echo ${host_libs} ${host_tools}`
328637e8 1890target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 1891build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 1892
71ab34df 1893################################################################################
a8298541 1894
71ab34df 1895srcname="gnu development package"
a8298541 1896
71ab34df 1897# This gets set non-empty for some net releases of packages.
1898appdirs=""
a8298541 1899
71ab34df 1900# Define is_cross_compiler to save on calls to 'test'.
1901is_cross_compiler=
1902if test x"${host}" = x"${target}" ; then
1903 is_cross_compiler=no
a8298541 1904else
71ab34df 1905 is_cross_compiler=yes
b30fcfae 1906fi
a8298541 1907
2f61b8ca 1908# Find the build and target subdir names.
6f4f34a7 1909
d3e7b04c 1910# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1911# have matching libraries, they should use host libraries: Makefile.tpl
1912# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1913# However, they still use the build modules, because the corresponding
1914# host modules (e.g. bison) are only built for the host when bootstrap
1915# finishes. So:
1916# - build_subdir is where we find build modules, and never changes.
1917# - build_libsubdir is where we find build libraries, and can be overridden.
1918
1919# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 1920build_subdir="build-${build_noncanonical}"
b30fcfae 1921
5084f823 1922# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
d3e7b04c 1923if test "${with_build_libsubdir+set}" = set; then
5084f823 1924 withval="$with_build_libsubdir"
1925 build_libsubdir="$withval"
d3e7b04c 1926else
1927 build_libsubdir="$build_subdir"
5084f823 1928fi;
c1eb9e31 1929# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1930if ( test $srcdir = . && test -d gcc ) \
1931 || test -d $srcdir/../host-${host_noncanonical}; then
1932 host_subdir="host-${host_noncanonical}"
1933else
1934 host_subdir=.
1935fi
6f4f34a7 1936# No prefix.
1937target_subdir=${target_noncanonical}
b30fcfae 1938
a8298541 1939
71ab34df 1940# Skipdirs are removed silently.
1941skipdirs=
1942# Noconfigdirs are removed loudly.
1943noconfigdirs=""
a8298541 1944
71ab34df 1945use_gnu_ld=
1946# Make sure we don't let GNU ld be added if we didn't want it.
1947if test x$with_gnu_ld = xno ; then
1948 use_gnu_ld=no
1949 noconfigdirs="$noconfigdirs ld"
a8298541 1950fi
1951
71ab34df 1952use_gnu_as=
1953# Make sure we don't let GNU as be added if we didn't want it.
1954if test x$with_gnu_as = xno ; then
1955 use_gnu_as=no
1956 noconfigdirs="$noconfigdirs gas"
a8298541 1957fi
1958
b30fcfae 1959# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 1960# it's not even worth trying to configure, much less build, that tool.
a8298541 1961
71ab34df 1962case ${with_x} in
1963 yes | "") ;; # the default value for this tree is that X11 is available
1964 no)
f843f075 1965 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 1966 # We won't be able to build gdbtk without X.
b30fcfae 1967 enable_gdbtk=no
71ab34df 1968 ;;
1969 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1970esac
a8298541 1971
71ab34df 1972# Some tools are only suitable for building in a "native" situation.
b30fcfae 1973# Remove these if host!=target.
a2c13723 1974native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
a8298541 1975
71ab34df 1976# Similarly, some are only suitable for cross toolchains.
1977# Remove these if host=target.
1978cross_only="target-libgloss target-newlib target-opcodes"
1979
1980case $is_cross_compiler in
1981 no) skipdirs="${skipdirs} ${cross_only}" ;;
1982 yes) skipdirs="${skipdirs} ${native_only}" ;;
1983esac
a8298541 1984
71ab34df 1985# If both --with-headers and --with-libs are specified, default to
1986# --without-newlib.
e8eddfdd 1987if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1988 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 1989 if test x"${with_newlib}" = x ; then
1990 with_newlib=no
1991 fi
a8298541 1992fi
1993
71ab34df 1994# Recognize --with-newlib/--without-newlib.
1995case ${with_newlib} in
1996 no) skipdirs="${skipdirs} target-newlib" ;;
1997 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1998esac
a8298541 1999
71ab34df 2000# Configure extra directories which are host specific
a8298541 2001
71ab34df 2002case "${host}" in
2003 *-cygwin*)
2004 configdirs="$configdirs libtermcap" ;;
2005esac
a8298541 2006
ff7dcf6a 2007# A target can indicate whether a language isn't supported for some reason.
2008# Only spaces may be used in this macro; not newlines or tabs.
2009unsupported_languages=
2010
b30fcfae 2011# Remove more programs from consideration, based on the host or
71ab34df 2012# target this usually means that a port of the program doesn't
2013# exist yet.
c7879c37 2014
71ab34df 2015case "${host}" in
2016 hppa*64*-*-*)
2017 noconfigdirs="$noconfigdirs byacc"
2018 ;;
f74ea578 2019 i[3456789]86-*-vsta)
f843f075 2020 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
71ab34df 2021 ;;
f74ea578 2022 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
f843f075 2023 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
602d002b 2024 ;;
a378fc89 2025 x86_64-*-mingw*)
2026 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2027 ;;
f74ea578 2028 i[3456789]86-*-mingw32*)
f843f075 2029 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
d6d689df 2030 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
602d002b 2031 ;;
f74ea578 2032 i[3456789]86-*-beos*)
f843f075 2033 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
602d002b 2034 ;;
71ab34df 2035 *-*-cygwin*)
9dec93ca 2036 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
71ab34df 2037 ;;
2038 *-*-netbsd*)
9dec93ca 2039 noconfigdirs="$noconfigdirs rcs"
71ab34df 2040 ;;
2041 ppc*-*-pe)
f843f075 2042 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
71ab34df 2043 ;;
2044 powerpc-*-beos*)
f843f075 2045 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
71ab34df 2046 ;;
71ab34df 2047esac
c7879c37 2048
4ee9c684 2049
5084f823 2050# Check whether --enable-libada or --disable-libada was given.
93341878 2051if test "${enable_libada+set}" = set; then
5084f823 2052 enableval="$enable_libada"
2053 ENABLE_LIBADA=$enableval
93341878 2054else
2055 ENABLE_LIBADA=yes
5084f823 2056fi;
93341878 2057if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 2058 noconfigdirs="$noconfigdirs gnattools"
93341878 2059fi
2060
5084f823 2061# Check whether --enable-libssp or --disable-libssp was given.
07da5214 2062if test "${enable_libssp+set}" = set; then
5084f823 2063 enableval="$enable_libssp"
2064 ENABLE_LIBSSP=$enableval
07da5214 2065else
2066 ENABLE_LIBSSP=yes
5084f823 2067fi;
07da5214 2068
71ab34df 2069# Save it here so that, even in case of --enable-libgcj, if the Java
2070# front-end isn't enabled, we still get libgcj disabled.
2071libgcj_saved=$libgcj
2072case $enable_libgcj in
2073yes)
2074 # If we reset it here, it won't get added to noconfigdirs in the
2075 # target-specific build rules, so it will be forcibly enabled
2076 # (unless the Java language itself isn't enabled).
2077 libgcj=
2078 ;;
2079no)
2080 # Make sure we get it printed in the list of not supported target libs.
2081 noconfigdirs="$noconfigdirs ${libgcj}"
2082 ;;
2083esac
c7879c37 2084
4ee9c684 2085
50996fe5 2086# Disable libmudflap on some systems.
2087if test x$enable_libmudflap = x ; then
344b2784 2088 case "${target}" in
b7ef8464 2089 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
cb8a7007 2090 # Enable libmudflap by default in GNU and friends.
344b2784 2091 ;;
122ae8c7 2092 *-*-freebsd*)
2093 # Enable libmudflap by default in FreeBSD.
2094 ;;
344b2784 2095 *)
2096 # Disable it by default everywhere else.
2097 noconfigdirs="$noconfigdirs target-libmudflap"
2098 ;;
2099 esac
50996fe5 2100fi
4ee9c684 2101
50996fe5 2102# Disable libgomp on non POSIX hosted systems.
2103if test x$enable_libgomp = x ; then
1e8e9920 2104 # Enable libgomp by default on hosted POSIX systems.
2105 case "${target}" in
4938df8a 2106 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1e8e9920 2107 ;;
2108 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2109 ;;
778f2e8d 2110 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1e8e9920 2111 ;;
634efbee 2112 *-*-darwin* | *-*-aix*)
1e8e9920 2113 ;;
2114 *)
2115 noconfigdirs="$noconfigdirs target-libgomp"
2116 ;;
2117 esac
50996fe5 2118fi
1e8e9920 2119
4ee9c684 2120
71ab34df 2121case "${target}" in
2122 *-*-chorusos)
d6f7b8f2 2123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2124 ;;
fce068fd 2125 powerpc-*-darwin* | i[3456789]86-*-darwin*)
ffe859e6 2126 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
d28caca4 2127 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 2128 ;;
fce068fd 2129 *-*-darwin*)
2130 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2131 noconfigdirs="$noconfigdirs sim target-rda"
2132 noconfigdirs="$noconfigdirs ${libgcj}"
2133 ;;
71ab34df 2134 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
d6f7b8f2 2135 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2136 ;;
c01dd063 2137 *-*-freebsd*)
4ee9c684 2138 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2139 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2140 && test -f /usr/local/include/gmp.h; then
2141 with_gmp=/usr/local
2142 fi
2143
2144 # Skip some stuff that's unsupported on some FreeBSD configurations.
2145 case "${target}" in
2146 i*86-*-*) ;;
2147 alpha*-*-*) ;;
2148 *)
d6f7b8f2 2149 noconfigdirs="$noconfigdirs ${libgcj}"
4ee9c684 2150 ;;
2151 esac
2152 ;;
336577be 2153 *-*-kaos*)
2154 # Remove unsupported stuff on all kaOS configurations.
d6f7b8f2 2155 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
336577be 2156 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2157 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2158 noconfigdirs="$noconfigdirs target-libgloss"
2159 ;;
71ab34df 2160 *-*-netbsd*)
2161 # Skip some stuff on all NetBSD configurations.
2162 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2163
2164 # Skip some stuff that's unsupported on some NetBSD configurations.
2165 case "${target}" in
2166 i*86-*-netbsdelf*) ;;
c8a4cc21 2167 arm*-*-netbsdelf*) ;;
71ab34df 2168 *)
d6f7b8f2 2169 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2170 ;;
2171 esac
2172 ;;
634f7a13 2173 *-*-netware*)
d6f7b8f2 2174 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
71ab34df 2175 ;;
2176 *-*-rtems*)
d6f7b8f2 2177 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2178 ;;
9f88bc9d 2179 # The tpf target doesn't support gdb yet.
2180 *-*-tpf*)
d6f7b8f2 2181 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
9f88bc9d 2182 ;;
688429c4 2183 *-*-uclinux*)
d6f7b8f2 2184 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
688429c4 2185 ;;
71ab34df 2186 *-*-vxworks*)
d6f7b8f2 2187 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2188 ;;
2189 alpha*-dec-osf*)
2190 # ld works, but does not support shared libraries.
2191 # newlib is not 64 bit ready. I'm not sure about fileutils.
2192 # gas doesn't generate exception information.
2193 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2194 ;;
2195 alpha*-*-*vms*)
d6f7b8f2 2196 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
71ab34df 2197 ;;
2198 alpha*-*-linux*)
2199 # newlib is not 64 bit ready
2200 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2201 ;;
71ab34df 2202 alpha*-*-*)
2203 # newlib is not 64 bit ready
d6f7b8f2 2204 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2205 ;;
700d38c2 2206 am33_2.0-*-linux*)
d6f7b8f2 2207 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
700d38c2 2208 ;;
71ab34df 2209 sh-*-linux*)
d6f7b8f2 2210 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
b30fcfae 2211 ;;
71ab34df 2212 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
d6f7b8f2 2213 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2214 noconfigdirs="$noconfigdirs target-examples"
2215 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
f843f075 2216 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 2217 noconfigdirs="$noconfigdirs expect dejagnu"
2218 # the C++ libraries don't build on top of CE's C libraries
54d7d5f2 2219 noconfigdirs="$noconfigdirs target-libstdc++-v3"
71ab34df 2220 noconfigdirs="$noconfigdirs target-newlib"
2221 case "${host}" in
2222 *-*-cygwin*) ;; # keep gdb and readline
123bd2df 2223 *) noconfigdirs="$noconfigdirs gdb readline"
71ab34df 2224 ;;
2225 esac
2226 ;;
2227 arc-*-*)
d6f7b8f2 2228 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2229 ;;
e8eddfdd 2230 arm-semi-aof )
e8eddfdd 2231 ;;
71ab34df 2232 arm-*-coff | strongarm-*-coff | xscale-*-coff)
d6f7b8f2 2233 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2234 ;;
30e9913f 2235 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
71ab34df 2236 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2237 ;;
6783d878 2238 arm*-*-linux-gnueabi)
2239 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2240 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
b7ef8464 2241 case ${with_newlib} in
2242 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2243 esac
6783d878 2244 ;;
8647a116 2245 arm*-*-symbianelf*)
d6f7b8f2 2246 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
8647a116 2247 ;;
71ab34df 2248 arm-*-pe*)
d6f7b8f2 2249 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2250 ;;
71ab34df 2251 thumb-*-coff)
d6f7b8f2 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2253 ;;
2254 thumb-*-elf)
d6f7b8f2 2255 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2256 ;;
71ab34df 2257 thumb-*-pe)
d6f7b8f2 2258 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2259 ;;
2260 arm-*-riscix*)
d6f7b8f2 2261 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
71ab34df 2262 ;;
2263 avr-*-*)
d6f7b8f2 2264 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2265 ;;
7172be51 2266 bfin-*-*)
067bdab5 2267 noconfigdirs="$noconfigdirs gdb"
8d687193 2268 if test x${is_cross_compiler} != xno ; then
7172be51 2269 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2270 fi
2271 ;;
71ab34df 2272 c4x-*-* | tic4x-*-*)
d6f7b8f2 2273 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2274 ;;
2275 c54x*-*-* | tic54x-*-*)
d6f7b8f2 2276 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
71ab34df 2277 ;;
06b2086e 2278 cris-*-* | crisv32-*-*)
ff7dcf6a 2279 unsupported_languages="$unsupported_languages java"
06b2086e 2280 case "${target}" in
c0188550 2281 *-*-aout)
2c718da0 2282 unsupported_languages="$unsupported_languages fortran"
ff7dcf6a 2283 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c0188550 2284 *-*-elf)
2c718da0 2285 unsupported_languages="$unsupported_languages fortran"
d0c03476 2286 noconfigdirs="$noconfigdirs target-boehm-gc";;
c0188550 2287 *-*-linux*)
d0c03476 2288 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
06b2086e 2289 *)
2c718da0 2290 unsupported_languages="$unsupported_languages fortran"
d6f7b8f2 2291 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
06b2086e 2292 esac
71ab34df 2293 ;;
75b6260c 2294 crx-*-*)
d6f7b8f2 2295 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
75b6260c 2296 ;;
71ab34df 2297 d10v-*-*)
d6f7b8f2 2298 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2299 ;;
2300 d30v-*-*)
d6f7b8f2 2301 noconfigdirs="$noconfigdirs ${libgcj} gdb"
71ab34df 2302 ;;
2303 fr30-*-elf*)
d6f7b8f2 2304 noconfigdirs="$noconfigdirs ${libgcj} gdb"
71ab34df 2305 ;;
2306 frv-*-*)
d6f7b8f2 2307 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2308 ;;
2309 h8300*-*-*)
d6f7b8f2 2310 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2311 ;;
2312 h8500-*-*)
d6f7b8f2 2313 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2314 ;;
e8eddfdd 2315 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 2316 ;;
71ab34df 2317 hppa*64*-*-linux* | parisc*64*-*-linux*)
2318 # In this case, it's because the hppa64-linux target is for
2319 # the kernel only at this point and has no libc, and thus no
2320 # headers, crt*.o, etc., all of which are needed by these.
2321 noconfigdirs="$noconfigdirs target-zlib"
2322 ;;
08261f02 2323 parisc*-*-linux* | hppa*-*-linux*)
2324 ;;
71ab34df 2325 hppa*-*-*elf* | \
71ab34df 2326 hppa*-*-lites* | \
2327 hppa*-*-openbsd* | \
2328 hppa*64*-*-*)
d6f7b8f2 2329 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2330 ;;
75d59721 2331 hppa*-hp-hpux11*)
2332 noconfigdirs="$noconfigdirs ld shellutils"
2333 ;;
71ab34df 2334 hppa*-*-*)
2335 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2336 # build on HP-UX 10.20.
d6f7b8f2 2337 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
71ab34df 2338 ;;
4a9237fb 2339 i960-*-*)
d6f7b8f2 2340 noconfigdirs="$noconfigdirs ${libgcj} gdb"
4a9237fb 2341 ;;
71ab34df 2342 ia64*-*-elf*)
2343 # No gdb support yet.
f843f075 2344 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
71ab34df 2345 ;;
2346 ia64*-**-hpux*)
2347 # No gdb or ld support yet.
d6f7b8f2 2348 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
71ab34df 2349 ;;
e8eddfdd 2350 i370-*-opened*)
e8eddfdd 2351 ;;
f74ea578 2352 i[3456789]86-*-coff | i[3456789]86-*-elf)
d6f7b8f2 2353 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2354 ;;
f74ea578 2355 i[3456789]86-*-linux*)
71ab34df 2356 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2357 # not build java stuff by default.
2358 case "${target}" in
2359 *-*-*libc1*)
d6f7b8f2 2360 noconfigdirs="$noconfigdirs ${libgcj}";;
71ab34df 2361 esac
2362
2363 # This section makes it possible to build newlib natively on linux.
2364 # If we are using a cross compiler then don't configure newlib.
2365 if test x${is_cross_compiler} != xno ; then
602d002b 2366 noconfigdirs="$noconfigdirs target-newlib"
71ab34df 2367 fi
2368 noconfigdirs="$noconfigdirs target-libgloss"
2369 # If we are not using a cross compiler, do configure newlib.
2370 # Note however, that newlib will only be configured in this situation
2371 # if the --with-newlib option has been given, because otherwise
2372 # 'target-newlib' will appear in skipdirs.
2373 ;;
f74ea578 2374 i[3456789]86-*-mingw32*)
d6d689df 2375 target_configdirs="$target_configdirs target-winsup"
2376 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b30fcfae 2377 ;;
a378fc89 2378 x86_64-*-mingw*)
2379 target_configdirs="$target_configdirs target-winsup"
2380 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b30fcfae 2381 ;;
71ab34df 2382 *-*-cygwin*)
2383 target_configdirs="$target_configdirs target-libtermcap target-winsup"
d6f7b8f2 2384 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2c10944d 2385 # always build newlib if winsup directory is present.
d6d689df 2386 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 2387 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 2388 elif test -d "$srcdir/newlib"; then
d6d689df 2389 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 2390 fi
b30fcfae 2391 ;;
e8eddfdd 2392 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2393 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
e8eddfdd 2394 ;;
f74ea578 2395 i[3456789]86-*-pe)
d6f7b8f2 2396 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2397 ;;
f74ea578 2398 i[3456789]86-*-sco3.2v5*)
71ab34df 2399 # The linker does not yet know about weak symbols in COFF,
2400 # and is not configured to handle mixed ELF and COFF.
d6f7b8f2 2401 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
71ab34df 2402 ;;
f74ea578 2403 i[3456789]86-*-sco*)
d6f7b8f2 2404 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2405 ;;
f74ea578 2406 i[3456789]86-*-solaris2*)
71ab34df 2407 noconfigdirs="$noconfigdirs target-libgloss"
2408 ;;
f74ea578 2409 i[3456789]86-*-sysv4*)
d6f7b8f2 2410 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2411 ;;
f74ea578 2412 i[3456789]86-*-beos*)
d6f7b8f2 2413 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
602d002b 2414 ;;
ab0da556 2415 i[3456789]86-*-rdos*)
2416 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2417 ;;
4a9237fb 2418 m32r-*-*)
d6f7b8f2 2419 noconfigdirs="$noconfigdirs ${libgcj}"
4a9237fb 2420 ;;
71ab34df 2421 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
d6f7b8f2 2422 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2423 ;;
2424 m68k-*-elf*)
d6f7b8f2 2425 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2426 ;;
2427 m68k-*-coff*)
d6f7b8f2 2428 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2429 ;;
2430 mcore-*-pe*)
2431 # The EPOC C++ environment does not support exceptions or rtti,
2432 # and so building libstdc++-v3 tends not to always work.
2433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2434 ;;
2435 mmix-*-*)
ff7dcf6a 2436 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2c718da0 2437 unsupported_languages="$unsupported_languages fortran java"
71ab34df 2438 ;;
2439 mn10200-*-*)
d6f7b8f2 2440 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2441 ;;
2442 mn10300-*-*)
d6f7b8f2 2443 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2444 ;;
957985d9 2445 mt-*-*)
f6fa11cb 2446 noconfigdirs="$noconfigdirs sim"
2447 ;;
71ab34df 2448 powerpc-*-aix*)
2449 # copied from rs6000-*-* entry
d6f7b8f2 2450 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
71ab34df 2451 ;;
2452 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2453 target_configdirs="$target_configdirs target-winsup"
d6f7b8f2 2454 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
71ab34df 2455 # always build newlib.
2456 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2457 ;;
2458 # This is temporary until we can link against shared libraries
2459 powerpcle-*-solaris*)
d6f7b8f2 2460 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
71ab34df 2461 ;;
2462 powerpc-*-beos*)
d6f7b8f2 2463 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
71ab34df 2464 ;;
71ab34df 2465 powerpc-*-eabi)
d6f7b8f2 2466 noconfigdirs="$noconfigdirs ${libgcj}"
e8eddfdd 2467 ;;
2468 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
71ab34df 2469 ;;
71ab34df 2470 rs6000-*-lynxos*)
d6f7b8f2 2471 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
71ab34df 2472 ;;
2473 rs6000-*-aix*)
d6f7b8f2 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
71ab34df 2475 ;;
2476 rs6000-*-*)
d6f7b8f2 2477 noconfigdirs="$noconfigdirs gprof ${libgcj}"
71ab34df 2478 ;;
2479 m68k-apollo-*)
d6f7b8f2 2480 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
71ab34df 2481 ;;
2482 mips*-*-irix5*)
d6f7b8f2 2483 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2484 ;;
2485 mips*-*-irix6*)
71ab34df 2486 # Linking libjava exceeds command-line length limits on at least
2487 # IRIX 6.2, but not on IRIX 6.5.
2488 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2489 # <oldham@codesourcery.com>
d6f7b8f2 2490 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2491 ;;
71ab34df 2492 mips*-*-bsd*)
d6f7b8f2 2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2494 ;;
19e1fe6d 2495 mips64*-*-linux*)
806f1769 2496 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
19e1fe6d 2497 ;;
71ab34df 2498 mips*-*-linux*)
2499 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2500 ;;
2501 mips*-*-*)
d6f7b8f2 2502 noconfigdirs="$noconfigdirs gprof ${libgcj}"
71ab34df 2503 ;;
2504 romp-*-*)
d6f7b8f2 2505 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
71ab34df 2506 ;;
33974778 2507 sh-*-* | sh64-*-*)
71ab34df 2508 case "${host}" in
f74ea578 2509 i[3456789]86-*-vsta) ;; # don't add gprof back in
2510 i[3456789]86-*-go32*) ;; # don't add gprof back in
2511 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
71ab34df 2512 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2513 esac
d6f7b8f2 2514 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2515 ;;
71ab34df 2516 sparc-*-elf*)
d6f7b8f2 2517 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2518 ;;
2519 sparc64-*-elf*)
d6f7b8f2 2520 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2521 ;;
2522 sparclite-*-*)
d6f7b8f2 2523 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2524 ;;
2525 sparc-*-sunos4*)
d6f7b8f2 2526 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2527 if test x${is_cross_compiler} != xno ; then
2528 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2529 else
2530 use_gnu_ld=no
2531 fi
2532 ;;
17336619 2533 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
d6f7b8f2 2534 noconfigdirs="$noconfigdirs ${libgcj}"
17336619 2535 ;;
71ab34df 2536 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2537 ;;
644459d0 2538 spu-*-*)
f5b9de9c 2539 skipdirs="target-libssp"
644459d0 2540 ;;
71ab34df 2541 v810-*-*)
d6f7b8f2 2542 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
71ab34df 2543 ;;
2544 v850-*-*)
d6f7b8f2 2545 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2546 ;;
2547 v850e-*-*)
d6f7b8f2 2548 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2549 ;;
2550 v850ea-*-*)
d6f7b8f2 2551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2552 ;;
2553 vax-*-vms)
d6f7b8f2 2554 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
71ab34df 2555 ;;
2556 vax-*-*)
d6f7b8f2 2557 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2558 ;;
678f5830 2559 xtensa-*-*)
d6f7b8f2 2560 noconfigdirs="$noconfigdirs ${libgcj}"
678f5830 2561 ;;
71ab34df 2562 ip2k-*-*)
d6f7b8f2 2563 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2564 ;;
c01dd063 2565 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
71ab34df 2566 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2567 ;;
2568 *-*-lynxos*)
d6f7b8f2 2569 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
b30fcfae 2570 ;;
71ab34df 2571 *-*-*)
d6f7b8f2 2572 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2573 ;;
2574esac
a8298541 2575
71ab34df 2576# If we aren't building newlib, then don't build libgloss, since libgloss
2577# depends upon some newlib header files.
2578case "${noconfigdirs}" in
2579 *target-libgloss*) ;;
2580 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2581esac
2582
71ab34df 2583# Work in distributions that contain no compiler tools, like Autoconf.
2584tentative_cc=""
2585host_makefile_frag=/dev/null
2586if test -d ${srcdir}/config ; then
2587case "${host}" in
2588 m68k-hp-hpux*)
2589 # Avoid "too much defining" errors from HPUX compiler.
2590 tentative_cc="cc -Wp,-H256000"
2591 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2592 # If it's HP/UX ar, this should be harmless.
2593 RANLIB="ar ts"
2594 ;;
2595 m68k-apollo-sysv*)
2596 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2597 ;;
2598 m68k-apollo-bsd*)
2599 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2600 # chokes on bfd, the compiler won't let you assign integers to enums, and
2601 # other problems. Defining CC to gcc is a questionable way to say "don't use
2602 # the apollo compiler" (the preferred version of GCC could be called cc,
2603 # or whatever), but I'm not sure leaving CC as cc is any better...
2604 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2605 # Used to have BISON=yacc.
2606 tentative_cc=gcc
2607 ;;
2608 m88k-dg-dgux*)
2609 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
71ab34df 2610 ;;
2611 m88k-harris-cxux*)
2612 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2613 tentative_cc="cc -Xa"
2614 host_makefile_frag="config/mh-cxux"
2615 ;;
2616 m88k-motorola-sysv*)
2617 ;;
2618 mips*-dec-ultrix*)
2619 tentative_cc="cc -Wf,-XNg1000"
2620 host_makefile_frag="config/mh-decstation"
2621 ;;
2622 mips*-nec-sysv4*)
2623 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2624 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2625 host_makefile_frag="config/mh-necv4"
2626 ;;
2627 mips*-sgi-irix4*)
2628 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2629 # environment. Also bump switch table size so that cp-parse will
2630 # compile. Bump string length limit so linker builds.
2631 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2632 ;;
2633 mips*-*-sysv4*)
2634 host_makefile_frag="config/mh-sysv4"
2635 ;;
2636 mips*-*-sysv*)
2637 # This is for a MIPS running RISC/os 4.52C.
2638
2639 # This is needed for GDB, but needs to be in the top-level make because
2640 # if a library is compiled with the bsd headers and gets linked with the
2641 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2642 # a different size).
2643 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2644 # known except to select the sysv environment. Could we use /proc instead?
2645 # These "sysv environments" and "bsd environments" often end up being a pain.
2646 #
2647 # This is not part of CFLAGS because perhaps not all C compilers have this
2648 # option.
2649 tentative_cc="cc -systype sysv"
2650 ;;
2651 i370-ibm-opened*)
2652 tentative_cc="c89"
2653 ;;
f74ea578 2654 i[3456789]86-*-sysv5*)
71ab34df 2655 host_makefile_frag="config/mh-sysv5"
2656 ;;
f74ea578 2657 i[3456789]86-*-dgux*)
71ab34df 2658 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2659 host_makefile_frag="config/mh-dgux386"
2660 ;;
f74ea578 2661 i[3456789]86-ncr-sysv4.3*)
71ab34df 2662 # The MetaWare compiler will generate a copyright message unless you
2663 # turn it off by adding the -Hnocopyr flag.
2664 tentative_cc="cc -Hnocopyr"
2665 ;;
f74ea578 2666 i[3456789]86-ncr-sysv4*)
71ab34df 2667 # for an NCR 3000 (i486/SVR4) system.
2668 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2669 # This compiler not only emits obnoxious copyright messages every time
2670 # you run it, but it chokes and dies on a whole bunch of GNU source
2671 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2672 tentative_cc="/usr/ccs/ATT/cc"
2673 host_makefile_frag="config/mh-ncr3000"
2674 ;;
f74ea578 2675 i[3456789]86-*-sco3.2v5*)
71ab34df 2676 ;;
f74ea578 2677 i[3456789]86-*-sco*)
71ab34df 2678 # The native C compiler botches some simple uses of const. Unfortunately,
2679 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2680 tentative_cc="cc -Dconst="
2681 host_makefile_frag="config/mh-sco"
2682 ;;
f74ea578 2683 i[3456789]86-*-udk*)
71ab34df 2684 host_makefile_frag="config/mh-sysv5"
2685 ;;
f74ea578 2686 i[3456789]86-*-solaris2*)
71ab34df 2687 host_makefile_frag="config/mh-sysv4"
2688 ;;
f74ea578 2689 i[3456789]86-*-msdosdjgpp*)
71ab34df 2690 host_makefile_frag="config/mh-djgpp"
2691 ;;
2692 *-cygwin*)
2693 host_makefile_frag="config/mh-cygwin"
2694 ;;
2695 *-mingw32*)
71ab34df 2696 ;;
a378fc89 2697 *-mingw64*)
2698 ;;
71ab34df 2699 *-interix*)
2700 host_makefile_frag="config/mh-interix"
2701 ;;
2702 vax-*-ultrix2*)
2703 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2704 tentative_cc=gcc
2705 ;;
2706 *-*-solaris2*)
2707 host_makefile_frag="config/mh-solaris"
2708 ;;
2709 m68k-sun-sunos*)
2710 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2711 # without overflowing the jump tables (-J says to use a 32 bit table)
2712 tentative_cc="cc -J"
2713 ;;
2714 *-hp-hpux*)
2715 tentative_cc="cc -Wp,-H256000"
2716 ;;
2717 *-*-hiux*)
2718 tentative_cc="cc -Wp,-H256000"
2719 ;;
2720 rs6000-*-lynxos*)
2721 # /bin/cc is less than useful for our purposes. Always use GCC
2722 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2723 host_makefile_frag="config/mh-lynxrs6k"
2724 ;;
2b64d19b 2725 powerpc-*-darwin*)
0222d984 2726 host_makefile_frag="config/mh-ppc-darwin"
2727 ;;
9d44a802 2728 powerpc-*-aix*)
2729 host_makefile_frag="config/mh-ppc-aix"
2730 ;;
2731 rs6000-*-aix*)
2732 host_makefile_frag="config/mh-ppc-aix"
2733 ;;
71ab34df 2734 *-*-lynxos*)
2735 # /bin/cc is less than useful for our purposes. Always use GCC
2736 tentative_cc="/bin/gcc"
2737 ;;
2738 *-*-sysv4*)
2739 host_makefile_frag="config/mh-sysv4"
2740 ;;
da9e6519 2741 # This is placed last to prevent interfering with the cases above.
2742 i[3456789]86-*-*)
2743 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2744 host_makefile_frag="config/mh-x86omitfp"
2745 ;;
71ab34df 2746esac
2747fi
2748
8e1fea1a 2749# If we aren't going to be using gcc, see if we can extract a definition
2750# of CC from the fragment.
2751# Actually, use the 'pre-extracted' version above.
2752if test -z "${CC}" && test "${build}" = "${host}" ; then
2753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2754 found=
2755 for dir in $PATH; do
2756 test -z "$dir" && dir=.
2757 if test -f $dir/gcc; then
2758 found=yes
2759 break
2760 fi
2761 done
2762 IFS="$save_ifs"
2763 if test -z "${found}" && test -n "${tentative_cc}" ; then
2764 CC=$tentative_cc
2765 fi
2766fi
2767
2768if test "${build}" != "${host}" ; then
8e1fea1a 2769 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
8e1fea1a 2770else
a4af6a58 2771 CC_FOR_BUILD="\$(CC)"
eae5b2bc 2772fi
2773
2774ac_ext=c
b30fcfae 2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}gcc; ac_word=$2
5084f823 2782echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2784if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2797 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802done
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
5084f823 2808 echo "$as_me:$LINENO: result: $CC" >&5
2809echo "${ECHO_T}$CC" >&6
b30fcfae 2810else
5084f823 2811 echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
b30fcfae 2813fi
2814
2815fi
2816if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
a4af6a58 2818 # Extract the first word of "gcc", so it can be a program name with args.
2819set dummy gcc; ac_word=$2
5084f823 2820echo "$as_me:$LINENO: checking for $ac_word" >&5
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2835 ac_cv_prog_ac_ct_CC="gcc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840done
2841
2842fi
2843fi
2844ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845if test -n "$ac_ct_CC"; then
5084f823 2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847echo "${ECHO_T}$ac_ct_CC" >&6
b30fcfae 2848else
5084f823 2849 echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
b30fcfae 2851fi
2852
5084f823 2853 CC=$ac_ct_CC
b30fcfae 2854else
2855 CC="$ac_cv_prog_CC"
2856fi
2857
2858if test -z "$CC"; then
5084f823 2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 2861set dummy ${ac_tool_prefix}cc; ac_word=$2
5084f823 2862echo "$as_me:$LINENO: checking for $ac_word" >&5
2863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2864if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 2866else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869else
b30fcfae 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2877 ac_cv_prog_CC="${ac_tool_prefix}cc"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881done
2882done
2883
a83ffacf 2884fi
a83ffacf 2885fi
b30fcfae 2886CC=$ac_cv_prog_CC
ae48753c 2887if test -n "$CC"; then
5084f823 2888 echo "$as_me:$LINENO: result: $CC" >&5
2889echo "${ECHO_T}$CC" >&6
a83ffacf 2890else
5084f823 2891 echo "$as_me:$LINENO: result: no" >&5
2892echo "${ECHO_T}no" >&6
a83ffacf 2893fi
2894
5084f823 2895fi
2896if test -z "$ac_cv_prog_CC"; then
2897 ac_ct_CC=$CC
2898 # Extract the first word of "cc", so it can be a program name with args.
2899set dummy cc; ac_word=$2
2900echo "$as_me:$LINENO: checking for $ac_word" >&5
2901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2902if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2904else
2905 if test -n "$ac_ct_CC"; then
2906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_CC="cc"
2916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
570af75a 2918 fi
5084f823 2919done
2920done
2921
2922fi
2923fi
2924ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925if test -n "$ac_ct_CC"; then
2926 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2927echo "${ECHO_T}$ac_ct_CC" >&6
2928else
2929 echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
2931fi
2932
2933 CC=$ac_ct_CC
2934else
2935 CC="$ac_cv_prog_CC"
2936fi
2937
b30fcfae 2938fi
8e1fea1a 2939if test -z "$CC"; then
2940 # Extract the first word of "cc", so it can be a program name with args.
2941set dummy cc; ac_word=$2
5084f823 2942echo "$as_me:$LINENO: checking for $ac_word" >&5
2943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2944if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 2946else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949else
a83ffacf 2950 ac_prog_rejected=no
b30fcfae 2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2959 ac_prog_rejected=yes
2960 continue
2961 fi
2962 ac_cv_prog_CC="cc"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966done
2967done
2968
8e1fea1a 2969if test $ac_prog_rejected = yes; then
2970 # We found a bogon in the path, so make sure we never use it.
2971 set dummy $ac_cv_prog_CC
2972 shift
b30fcfae 2973 if test $# != 0; then
8e1fea1a 2974 # We chose a different compiler from the bogus one.
2975 # However, it has the same basename, so the bogon will be chosen
2976 # first if we set CC to just the basename; use the full file name.
2977 shift
b30fcfae 2978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 2979 fi
2980fi
2981fi
2982fi
b30fcfae 2983CC=$ac_cv_prog_CC
8e1fea1a 2984if test -n "$CC"; then
5084f823 2985 echo "$as_me:$LINENO: result: $CC" >&5
2986echo "${ECHO_T}$CC" >&6
8e1fea1a 2987else
5084f823 2988 echo "$as_me:$LINENO: result: no" >&5
2989echo "${ECHO_T}no" >&6
8e1fea1a 2990fi
2991
b30fcfae 2992fi
2993if test -z "$CC"; then
2994 if test -n "$ac_tool_prefix"; then
5084f823 2995 for ac_prog in cl
b30fcfae 2996 do
2997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084f823 2999echo "$as_me:$LINENO: checking for $ac_word" >&5
3000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3001if test "${ac_cv_prog_CC+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 3003else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006else
b30fcfae 3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018done
3019done
3020
8e1fea1a 3021fi
3022fi
b30fcfae 3023CC=$ac_cv_prog_CC
8e1fea1a 3024if test -n "$CC"; then
5084f823 3025 echo "$as_me:$LINENO: result: $CC" >&5
3026echo "${ECHO_T}$CC" >&6
b1660f25 3027else
5084f823 3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
a4af6a58 3030fi
ae48753c 3031
b30fcfae 3032 test -n "$CC" && break
3033 done
ae48753c 3034fi
b30fcfae 3035if test -z "$CC"; then
3036 ac_ct_CC=$CC
5084f823 3037 for ac_prog in cl
b30fcfae 3038do
3039 # Extract the first word of "$ac_prog", so it can be a program name with args.
3040set dummy $ac_prog; ac_word=$2
5084f823 3041echo "$as_me:$LINENO: checking for $ac_word" >&5
3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
a83ffacf 3045else
b30fcfae 3046 if test -n "$ac_ct_CC"; then
3047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 3048else
b30fcfae 3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3056 ac_cv_prog_ac_ct_CC="$ac_prog"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060done
3061done
3062
ae48753c 3063fi
3064fi
b30fcfae 3065ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066if test -n "$ac_ct_CC"; then
5084f823 3067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3068echo "${ECHO_T}$ac_ct_CC" >&6
a4af6a58 3069else
5084f823 3070 echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6
ae48753c 3072fi
a83ffacf 3073
b30fcfae 3074 test -n "$ac_ct_CC" && break
3075done
3076
5084f823 3077 CC=$ac_ct_CC
b30fcfae 3078fi
3079
3080fi
3081
3082
3083test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3084See \`config.log' for more details." >&5
3085echo "$as_me: error: no acceptable C compiler found in \$PATH
3086See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3088
3089# Provide some information about the compiler.
5084f823 3090echo "$as_me:$LINENO:" \
3091 "checking for C compiler version" >&5
b30fcfae 3092ac_compiler=`set X $ac_compile; echo $2`
5084f823 3093{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3094 (eval $ac_compiler --version </dev/null >&5) 2>&5
b30fcfae 3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
5084f823 3098{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3099 (eval $ac_compiler -v </dev/null >&5) 2>&5
b30fcfae 3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }
5084f823 3103{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3104 (eval $ac_compiler -V </dev/null >&5) 2>&5
b30fcfae 3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }
3108
3109cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124ac_clean_files_save=$ac_clean_files
3125ac_clean_files="$ac_clean_files a.out a.exe b.out"
3126# Try to create an executable without -o first, disregard a.out.
3127# It will help us diagnose broken compilers, and finding out an intuition
3128# of exeext.
5084f823 3129echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
b30fcfae 3131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5084f823 3132if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3133 (eval $ac_link_default) 2>&5
b30fcfae 3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; then
5084f823 3137 # Find the output, starting from the most likely. This scheme is
3138# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3139# resort.
3140
3141# Be careful to initialize this variable, since it used to be cached.
3142# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3143ac_cv_exeext=
3144# b.out is created by i960 compilers.
3145for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
b30fcfae 3146do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
5084f823 3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3150 ;;
3151 conftest.$ac_ext )
3152 # This is the source file.
b30fcfae 3153 ;;
3154 [ab].out )
3155 # We found the default executable, but exeext='' is most
3156 # certainly right.
3157 break;;
3158 *.* )
5084f823 3159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 # FIXME: I believe we export ac_cv_exeext for Libtool,
3161 # but it would be cool to find out if it's true. Does anybody
3162 # maintain Libtool? --akim.
3163 export ac_cv_exeext
b30fcfae 3164 break;;
3165 * )
3166 break;;
3167 esac
3168done
3169else
3170 echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3174See \`config.log' for more details." >&5
3175echo "$as_me: error: C compiler cannot create executables
3176See \`config.log' for more details." >&2;}
3177 { (exit 77); exit 77; }; }
3178fi
3179
3180ac_exeext=$ac_cv_exeext
5084f823 3181echo "$as_me:$LINENO: result: $ac_file" >&5
3182echo "${ECHO_T}$ac_file" >&6
b30fcfae 3183
5084f823 3184# Check the compiler produces executables we can run. If not, either
b30fcfae 3185# the compiler is broken, or we cross compile.
5084f823 3186echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3187echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
b30fcfae 3188# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3189# If not cross compiling, check that we can run a simple program.
3190if test "$cross_compiling" != yes; then
3191 if { ac_try='./$ac_file'
5084f823 3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
b30fcfae 3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 cross_compiling=no
3198 else
3199 if test "$cross_compiling" = maybe; then
3200 cross_compiling=yes
3201 else
3202 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3203If you meant to cross compile, use \`--host'.
3204See \`config.log' for more details." >&5
3205echo "$as_me: error: cannot run C compiled programs.
3206If you meant to cross compile, use \`--host'.
3207See \`config.log' for more details." >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210 fi
3211fi
5084f823 3212echo "$as_me:$LINENO: result: yes" >&5
3213echo "${ECHO_T}yes" >&6
b30fcfae 3214
3215rm -f a.out a.exe conftest$ac_cv_exeext b.out
3216ac_clean_files=$ac_clean_files_save
5084f823 3217# Check the compiler produces executables we can run. If not, either
b30fcfae 3218# the compiler is broken, or we cross compile.
5084f823 3219echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3220echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3221echo "$as_me:$LINENO: result: $cross_compiling" >&5
3222echo "${ECHO_T}$cross_compiling" >&6
3223
3224echo "$as_me:$LINENO: checking for suffix of executables" >&5
3225echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3227 (eval $ac_link) 2>&5
b30fcfae 3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; then
3231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3232# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3233# work properly (i.e., refer to `conftest.exe'), while it won't with
3234# `rm'.
3235for ac_file in conftest.exe conftest conftest.*; do
3236 test -f "$ac_file" || continue
3237 case $ac_file in
5084f823 3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
b30fcfae 3239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5084f823 3240 export ac_cv_exeext
b30fcfae 3241 break;;
3242 * ) break;;
3243 esac
3244done
ae48753c 3245else
b30fcfae 3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3247See \`config.log' for more details." >&5
3248echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3249See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3251fi
3252
3253rm -f conftest$ac_cv_exeext
5084f823 3254echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3255echo "${ECHO_T}$ac_cv_exeext" >&6
b30fcfae 3256
3257rm -f conftest.$ac_ext
3258EXEEXT=$ac_cv_exeext
3259ac_exeext=$EXEEXT
5084f823 3260echo "$as_me:$LINENO: checking for suffix of object files" >&5
3261echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
b30fcfae 3262if test "${ac_cv_objext+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265 cat >conftest.$ac_ext <<_ACEOF
3266/* confdefs.h. */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h. */
3271
3272int
3273main ()
3274{
3275
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280rm -f conftest.o conftest.obj
5084f823 3281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>&5
b30fcfae 3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; then
5084f823 3286 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
b30fcfae 3287 case $ac_file in
5084f823 3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
b30fcfae 3289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3290 break;;
3291 esac
3292done
3293else
3294 echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3298See \`config.log' for more details." >&5
3299echo "$as_me: error: cannot compute suffix of object files: cannot compile
3300See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }
3302fi
3303
3304rm -f conftest.$ac_cv_objext conftest.$ac_ext
3305fi
5084f823 3306echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3307echo "${ECHO_T}$ac_cv_objext" >&6
b30fcfae 3308OBJEXT=$ac_cv_objext
3309ac_objext=$OBJEXT
5084f823 3310echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3311echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
b30fcfae 3312if test "${ac_cv_c_compiler_gnu+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315 cat >conftest.$ac_ext <<_ACEOF
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
3321
3322int
3323main ()
3324{
3325#ifndef __GNUC__
3326 choke me
3327#endif
3328
3329 ;
3330 return 0;
3331}
3332_ACEOF
3333rm -f conftest.$ac_objext
5084f823 3334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
b30fcfae 3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag"
3343 || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
b30fcfae 3355 ac_compiler_gnu=yes
3356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
5084f823 3360ac_compiler_gnu=no
b30fcfae 3361fi
5084f823 3362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 3363ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364
3365fi
5084f823 3366echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3367echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
b30fcfae 3368GCC=`test $ac_compiler_gnu = yes && echo yes`
3369ac_test_CFLAGS=${CFLAGS+set}
3370ac_save_CFLAGS=$CFLAGS
5084f823 3371CFLAGS="-g"
3372echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3373echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
b30fcfae 3374if test "${ac_cv_prog_cc_g+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
5084f823 3377 cat >conftest.$ac_ext <<_ACEOF
b30fcfae 3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387
3388 ;
3389 return 0;
3390}
3391_ACEOF
3392rm -f conftest.$ac_objext
5084f823 3393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>conftest.er1
b30fcfae 3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3400 (exit $ac_status); } &&
3401 { ac_try='test -z "$ac_c_werror_flag"
3402 || test ! -s conftest.err'
3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
b30fcfae 3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3407 (exit $ac_status); }; } &&
3408 { ac_try='test -s conftest.$ac_objext'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
b30fcfae 3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3413 (exit $ac_status); }; }; then
8e1fea1a 3414 ac_cv_prog_cc_g=yes
3415else
b30fcfae 3416 echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
ae48753c 3418
5084f823 3419ac_cv_prog_cc_g=no
a83ffacf 3420fi
5084f823 3421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 3422fi
5084f823 3423echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3424echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8e1fea1a 3425if test "$ac_test_CFLAGS" = set; then
b30fcfae 3426 CFLAGS=$ac_save_CFLAGS
8e1fea1a 3427elif test $ac_cv_prog_cc_g = yes; then
3428 if test "$GCC" = yes; then
3429 CFLAGS="-g -O2"
3430 else
3431 CFLAGS="-g"
3432 fi
3433else
3434 if test "$GCC" = yes; then
3435 CFLAGS="-O2"
3436 else
3437 CFLAGS=
3438 fi
3439fi
5084f823 3440echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3441echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3442if test "${ac_cv_prog_cc_stdc+set}" = set; then
b30fcfae 3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
5084f823 3445 ac_cv_prog_cc_stdc=no
b30fcfae 3446ac_save_CC=$CC
3447cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h. */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h. */
3453#include <stdarg.h>
3454#include <stdio.h>
3455#include <sys/types.h>
3456#include <sys/stat.h>
3457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3458struct buf { int x; };
3459FILE * (*rcsopen) (struct buf *, struct stat *, int);
3460static char *e (p, i)
3461 char **p;
3462 int i;
3463{
3464 return p[i];
3465}
3466static char *f (char * (*g) (char **, int), char **p, ...)
3467{
3468 char *s;
3469 va_list v;
3470 va_start (v,p);
3471 s = g (p, va_arg (v,int));
3472 va_end (v);
3473 return s;
3474}
3475
3476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3477 function prototypes and stuff, but not '\xHH' hex character constants.
3478 These don't provoke an error unfortunately, instead are silently treated
5084f823 3479 as 'x'. The following induces an error, until -std1 is added to get
b30fcfae 3480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3481 array size at least. It's necessary to write '\x00'==0 to get something
5084f823 3482 that's true only with -std1. */
b30fcfae 3483int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3484
3485int test (int i, double x);
3486struct s1 {int (*f) (int a);};
3487struct s2 {int (*f) (double a);};
3488int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489int argc;
3490char **argv;
3491int
3492main ()
3493{
3494return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3495 ;
3496 return 0;
3497}
3498_ACEOF
5084f823 3499# Don't try gcc -ansi; that turns off useful extensions and
3500# breaks some systems' header files.
3501# AIX -qlanglvl=ansi
3502# Ultrix and OSF/1 -std1
3503# HP-UX 10.20 and later -Ae
3504# HP-UX older versions -Aa -D_HPUX_SOURCE
3505# SVR4 -Xc -D__EXTENSIONS__
3506for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 3507do
3508 CC="$ac_save_CC $ac_arg"
3509 rm -f conftest.$ac_objext
5084f823 3510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
b30fcfae 3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag"
3519 || test ! -s conftest.err'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 ac_cv_prog_cc_stdc=$ac_arg
3532break
b30fcfae 3533else
3534 echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537fi
5084f823 3538rm -f conftest.err conftest.$ac_objext
b30fcfae 3539done
5084f823 3540rm -f conftest.$ac_ext conftest.$ac_objext
b30fcfae 3541CC=$ac_save_CC
3542
3543fi
5084f823 3544
3545case "x$ac_cv_prog_cc_stdc" in
3546 x|xno)
3547 echo "$as_me:$LINENO: result: none needed" >&5
3548echo "${ECHO_T}none needed" >&6 ;;
b30fcfae 3549 *)
5084f823 3550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3551echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3552 CC="$CC $ac_cv_prog_cc_stdc" ;;
b30fcfae 3553esac
3554
5084f823 3555# Some people use a C++ compiler to compile C. Since we use `exit',
3556# in C++ we need to declare it. In case someone uses the same compiler
3557# for both compiling C and C++ we need to have the C++ compiler decide
3558# the declaration of exit, since it's the most demanding environment.
3559cat >conftest.$ac_ext <<_ACEOF
3560#ifndef __cplusplus
3561 choke me
3562#endif
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 for ac_declaration in \
3587 '' \
3588 'extern "C" void std::exit (int) throw (); using std::exit;' \
3589 'extern "C" void std::exit (int); using std::exit;' \
3590 'extern "C" void exit (int) throw ();' \
3591 'extern "C" void exit (int);' \
3592 'void exit (int);'
3593do
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600$ac_declaration
3601#include <stdlib.h>
3602int
3603main ()
3604{
3605exit (42);
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610rm -f conftest.$ac_objext
3611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 :
3633else
3634 echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637continue
3638fi
3639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646$ac_declaration
3647int
3648main ()
3649{
3650exit (42);
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655rm -f conftest.$ac_objext
3656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 break
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682fi
3683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684done
3685rm -f conftest*
3686if test -n "$ac_declaration"; then
3687 echo '#ifdef __cplusplus' >>confdefs.h
3688 echo $ac_declaration >>confdefs.h
3689 echo '#endif' >>confdefs.h
3690fi
3691
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696fi
3697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698ac_ext=c
3699ac_cpp='$CPP $CPPFLAGS'
3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704ac_ext=cc
3705ac_cpp='$CXXCPP $CPPFLAGS'
3706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3709if test -n "$ac_tool_prefix"; then
3710 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3711 do
3712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3713set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3714echo "$as_me:$LINENO: checking for $ac_word" >&5
3715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716if test "${ac_cv_prog_CXX+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719 if test -n "$CXX"; then
3720 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733done
3734done
8e1fea1a 3735
eae5b2bc 3736fi
3737fi
3738CXX=$ac_cv_prog_CXX
3739if test -n "$CXX"; then
5084f823 3740 echo "$as_me:$LINENO: result: $CXX" >&5
3741echo "${ECHO_T}$CXX" >&6
eae5b2bc 3742else
5084f823 3743 echo "$as_me:$LINENO: result: no" >&5
3744echo "${ECHO_T}no" >&6
eae5b2bc 3745fi
3746
3747 test -n "$CXX" && break
3748 done
3749fi
3750if test -z "$CXX"; then
3751 ac_ct_CXX=$CXX
5084f823 3752 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
eae5b2bc 3753do
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755set dummy $ac_prog; ac_word=$2
5084f823 3756echo "$as_me:$LINENO: checking for $ac_word" >&5
3757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
eae5b2bc 3758if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761 if test -n "$ac_ct_CXX"; then
3762 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eae5b2bc 3771 ac_cv_prog_ac_ct_CXX="$ac_prog"
3772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775done
3776done
3777
3778fi
3779fi
3780ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3781if test -n "$ac_ct_CXX"; then
5084f823 3782 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3783echo "${ECHO_T}$ac_ct_CXX" >&6
eae5b2bc 3784else
5084f823 3785 echo "$as_me:$LINENO: result: no" >&5
3786echo "${ECHO_T}no" >&6
eae5b2bc 3787fi
3788
3789 test -n "$ac_ct_CXX" && break
3790done
5084f823 3791test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
eae5b2bc 3792
5084f823 3793 CXX=$ac_ct_CXX
eae5b2bc 3794fi
3795
5084f823 3796
eae5b2bc 3797# Provide some information about the compiler.
5084f823 3798echo "$as_me:$LINENO:" \
3799 "checking for C++ compiler version" >&5
eae5b2bc 3800ac_compiler=`set X $ac_compile; echo $2`
5084f823 3801{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3802 (eval $ac_compiler --version </dev/null >&5) 2>&5
eae5b2bc 3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }
5084f823 3806{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3807 (eval $ac_compiler -v </dev/null >&5) 2>&5
eae5b2bc 3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }
5084f823 3811{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3812 (eval $ac_compiler -V </dev/null >&5) 2>&5
eae5b2bc 3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }
3816
5084f823 3817echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3818echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
eae5b2bc 3819if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
3822 cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h. */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h. */
3828
3829int
3830main ()
3831{
3832#ifndef __GNUC__
3833 choke me
3834#endif
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840rm -f conftest.$ac_objext
5084f823 3841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>conftest.er1
eae5b2bc 3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_cxx_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
eae5b2bc 3862 ac_compiler_gnu=yes
3863else
3864 echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
5084f823 3867ac_compiler_gnu=no
eae5b2bc 3868fi
5084f823 3869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 3870ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3871
3872fi
5084f823 3873echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3874echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
eae5b2bc 3875GXX=`test $ac_compiler_gnu = yes && echo yes`
3876ac_test_CXXFLAGS=${CXXFLAGS+set}
3877ac_save_CXXFLAGS=$CXXFLAGS
5084f823 3878CXXFLAGS="-g"
3879echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3880echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
eae5b2bc 3881if test "${ac_cv_prog_cxx_g+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
5084f823 3884 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext
5084f823 3900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3901 (eval $ac_compile) 2>conftest.er1
eae5b2bc 3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3907 (exit $ac_status); } &&
3908 { ac_try='test -z "$ac_cxx_werror_flag"
3909 || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest.$ac_objext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
eae5b2bc 3921 ac_cv_prog_cxx_g=yes
3922else
3923 echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
5084f823 3926ac_cv_prog_cxx_g=no
3927fi
3928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3929fi
3930echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3931echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3932if test "$ac_test_CXXFLAGS" = set; then
3933 CXXFLAGS=$ac_save_CXXFLAGS
3934elif test $ac_cv_prog_cxx_g = yes; then
3935 if test "$GXX" = yes; then
3936 CXXFLAGS="-g -O2"
3937 else
3938 CXXFLAGS="-g"
3939 fi
3940else
3941 if test "$GXX" = yes; then
3942 CXXFLAGS="-O2"
3943 else
3944 CXXFLAGS=
3945 fi
3946fi
3947for ac_declaration in \
3948 '' \
3949 'extern "C" void std::exit (int) throw (); using std::exit;' \
3950 'extern "C" void std::exit (int); using std::exit;' \
3951 'extern "C" void exit (int) throw ();' \
3952 'extern "C" void exit (int);' \
3953 'void exit (int);'
3954do
3955 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 3956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h. */
5084f823 3961$ac_declaration
3962#include <stdlib.h>
eae5b2bc 3963int
3964main ()
3965{
5084f823 3966exit (42);
eae5b2bc 3967 ;
3968 return 0;
3969}
3970_ACEOF
3971rm -f conftest.$ac_objext
5084f823 3972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
eae5b2bc 3974 ac_status=$?
3975 grep -v '^ *+' conftest.er1 >conftest.err
3976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_cxx_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
eae5b2bc 3993 :
3994else
3995 echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
2f8725b0 3997
5084f823 3998continue
3999fi
4000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
5084f823 4007$ac_declaration
eae5b2bc 4008int
4009main ()
4010{
5084f823 4011exit (42);
eae5b2bc 4012 ;
4013 return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext
5084f823 4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_cxx_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 break
eae5b2bc 4039else
4040 echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
570af75a 4043fi
5084f823 4044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045done
4046rm -f conftest*
4047if test -n "$ac_declaration"; then
4048 echo '#ifdef __cplusplus' >>confdefs.h
4049 echo $ac_declaration >>confdefs.h
4050 echo '#endif' >>confdefs.h
eae5b2bc 4051fi
4052
4053ac_ext=c
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
4059
4060# We must set the default linker to the linker used by gcc for the correct
4061# operation of libtool. If LD is not defined and we are using gcc, try to
4062# set the LD default to the ld used by gcc.
4063if test -z "$LD"; then
4064 if test "$GCC" = yes; then
4065 case $build in
4066 *-*-mingw*)
4067 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4068 *)
4069 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4070 esac
4071 case $gcc_prog_ld in
4072 # Accept absolute paths.
4073 [\\/]* | [A-Za-z]:[\\/]*)
4074 LD="$gcc_prog_ld" ;;
4075 esac
4076 fi
2f8725b0 4077fi
4078
2f8725b0 4079
4080
8e1fea1a 4081
b30fcfae 4082if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 4084set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5084f823 4085echo "$as_me:$LINENO: checking for $ac_word" >&5
4086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4087if test "${ac_cv_prog_GNATBIND+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4089else
4090 if test -n "$GNATBIND"; then
4091 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4092else
b30fcfae 4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4100 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104done
4105done
4106
8e1fea1a 4107fi
4108fi
b30fcfae 4109GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 4110if test -n "$GNATBIND"; then
5084f823 4111 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4112echo "${ECHO_T}$GNATBIND" >&6
8e1fea1a 4113else
5084f823 4114 echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6
8e1fea1a 4116fi
4117
b30fcfae 4118fi
8e1fea1a 4119if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 4120 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 4121 # Extract the first word of "gnatbind", so it can be a program name with args.
4122set dummy gnatbind; ac_word=$2
5084f823 4123echo "$as_me:$LINENO: checking for $ac_word" >&5
4124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4125if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4127else
b30fcfae 4128 if test -n "$ac_ct_GNATBIND"; then
4129 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 4130else
b30fcfae 4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4138 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4141 fi
4142done
4143done
4144
5084f823 4145 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
8e1fea1a 4146fi
4147fi
b30fcfae 4148ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4149if test -n "$ac_ct_GNATBIND"; then
5084f823 4150 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4151echo "${ECHO_T}$ac_ct_GNATBIND" >&6
8e1fea1a 4152else
5084f823 4153 echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
8e1fea1a 4155fi
4156
5084f823 4157 GNATBIND=$ac_ct_GNATBIND
8e1fea1a 4158else
b30fcfae 4159 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 4160fi
4161
b30fcfae 4162if test -n "$ac_tool_prefix"; then
4163 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 4164set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5084f823 4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4167if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
a18b2c54 4169else
4170 if test -n "$GNATMAKE"; then
4171 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4172else
b30fcfae 4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4180 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184done
4185done
4186
a18b2c54 4187fi
4188fi
b30fcfae 4189GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 4190if test -n "$GNATMAKE"; then
5084f823 4191 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4192echo "${ECHO_T}$GNATMAKE" >&6
a18b2c54 4193else
5084f823 4194 echo "$as_me:$LINENO: result: no" >&5
4195echo "${ECHO_T}no" >&6
a18b2c54 4196fi
4197
b30fcfae 4198fi
a18b2c54 4199if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 4200 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 4201 # Extract the first word of "gnatmake", so it can be a program name with args.
4202set dummy gnatmake; ac_word=$2
5084f823 4203echo "$as_me:$LINENO: checking for $ac_word" >&5
4204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4205if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
a18b2c54 4207else
b30fcfae 4208 if test -n "$ac_ct_GNATMAKE"; then
4209 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 4210else
b30fcfae 4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4218 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222done
4223done
4224
5084f823 4225 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
a18b2c54 4226fi
4227fi
b30fcfae 4228ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4229if test -n "$ac_ct_GNATMAKE"; then
5084f823 4230 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4231echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
a18b2c54 4232else
5084f823 4233 echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
a18b2c54 4235fi
4236
5084f823 4237 GNATMAKE=$ac_ct_GNATMAKE
a18b2c54 4238else
b30fcfae 4239 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 4240fi
4241
5084f823 4242echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4243echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
b30fcfae 4244if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4246else
4247 cat >conftest.adb <<EOF
4248procedure conftest is begin null; end conftest;
4249EOF
4250acx_cv_cc_gcc_supports_ada=no
4251# There is a bug in old released versions of GCC which causes the
4252# driver to exit successfully when the appropriate language module
4253# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4254# Therefore we must check for the error message as well as an
4255# unsuccessful exit.
216de822 4256# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4257# given a .adb file, but produce no object file. So we must check
4258# if an object file was really produced to guard against this.
8e1fea1a 4259errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 4260if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 4261 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 4262fi
4263rm -f conftest.*
4264fi
5084f823 4265echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4266echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
8e1fea1a 4267
a18b2c54 4268if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 4269 have_gnat=yes
4270else
4271 have_gnat=no
4272fi
4273
5084f823 4274echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4275echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
b30fcfae 4276if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
7bcc3b4a 4278else
4279 echo abfoo >t1
4280 echo cdfoo >t2
4281 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 4282 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4283 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4284 :
4285 else
4286 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4287 fi
4288 fi
7bcc3b4a 4289 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4290 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 4291 :
7bcc3b4a 4292 else
4293 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4294 fi
4295 fi
4296 rm t1 t2
4297
4298fi
5084f823 4299echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4300echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7bcc3b4a 4301do_compare="$gcc_cv_prog_cmp_skip"
4302
4303
8e1fea1a 4304
5ca838b8 4305# Check for GMP and MPFR
d45318b3 4306gmplibs="-lmpfr -lgmp"
4ee9c684 4307gmpinc=
d45318b3 4308have_gmp=no
4309
5ca838b8 4310# Specify a location for mpfr
4311# check for this first so it ends up on the link line before gmp.
b30fcfae 4312
5084f823 4313# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
5ca838b8 4314if test "${with_mpfr_dir+set}" = set; then
5084f823 4315 withval="$with_mpfr_dir"
4316 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
b30fcfae 4317Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4318echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4319Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4320 { (exit 1); exit 1; }; }
5084f823 4321fi;
5ca838b8 4322
4323
5084f823 4324# Check whether --with-mpfr or --without-mpfr was given.
5ca838b8 4325if test "${with_mpfr+set}" = set; then
5084f823 4326 withval="$with_mpfr"
b30fcfae 4327
5084f823 4328fi;
5ca838b8 4329
5084f823 4330# Check whether --with-mpfr_include or --without-mpfr_include was given.
a5144c1d 4331if test "${with_mpfr_include+set}" = set; then
5084f823 4332 withval="$with_mpfr_include"
b30fcfae 4333
5084f823 4334fi;
a5144c1d 4335
5084f823 4336# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
a5144c1d 4337if test "${with_mpfr_lib+set}" = set; then
5084f823 4338 withval="$with_mpfr_lib"
a5144c1d 4339
5084f823 4340fi;
5ca838b8 4341
4342if test "x$with_mpfr" != x; then
4343 gmplibs="-L$with_mpfr/lib $gmplibs"
4344 gmpinc="-I$with_mpfr/include"
4345fi
a5144c1d 4346if test "x$with_mpfr_include" != x; then
4347 gmpinc="-I$with_mpfr_include"
4348fi
4349if test "x$with_mpfr_lib" != x; then
4350 gmplibs="-L$with_mpfr_lib $gmplibs"
4351fi
d45318b3 4352if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4353 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4354 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4355 # Do not test the mpfr version. Assume that it is sufficient, since
4356 # it is in the source tree, and the library has not been built yet
4357 # but it would be included on the link line in the version check below
4358 # hence making the test fail.
4359 have_gmp=yes
4360fi
5ca838b8 4361
4ee9c684 4362# Specify a location for gmp
b30fcfae 4363
5084f823 4364# Check whether --with-gmp-dir or --without-gmp-dir was given.
4ee9c684 4365if test "${with_gmp_dir+set}" = set; then
5084f823 4366 withval="$with_gmp_dir"
4367 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
b30fcfae 4368Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4369echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4370Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4371 { (exit 1); exit 1; }; }
5084f823 4372fi;
4ee9c684 4373
4ee9c684 4374
5084f823 4375# Check whether --with-gmp or --without-gmp was given.
4ee9c684 4376if test "${with_gmp+set}" = set; then
5084f823 4377 withval="$with_gmp"
b30fcfae 4378
5084f823 4379fi;
4ee9c684 4380
5084f823 4381# Check whether --with-gmp_include or --without-gmp_include was given.
a5144c1d 4382if test "${with_gmp_include+set}" = set; then
5084f823 4383 withval="$with_gmp_include"
b30fcfae 4384
5084f823 4385fi;
a5144c1d 4386
5084f823 4387# Check whether --with-gmp_lib or --without-gmp_lib was given.
a5144c1d 4388if test "${with_gmp_lib+set}" = set; then
5084f823 4389 withval="$with_gmp_lib"
a5144c1d 4390
5084f823 4391fi;
a5144c1d 4392
4ee9c684 4393
5ca838b8 4394if test "x$with_gmp" != x; then
4395 gmplibs="-L$with_gmp/lib $gmplibs"
4396 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 4397fi
a5144c1d 4398if test "x$with_gmp_include" != x; then
4399 gmpinc="-I$with_gmp_include $gmpinc"
4400fi
4401if test "x$with_gmp_lib" != x; then
4402 gmplibs="-L$with_gmp_lib $gmplibs"
4403fi
d45318b3 4404if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4405 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4406 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4407 # Do not test the gmp version. Assume that it is sufficient, since
4408 # it is in the source tree, and the library has not been built yet
4409 # but it would be included on the link line in the version check below
4410 # hence making the test fail.
4411 have_gmp=yes
4412fi
4ee9c684 4413
16c9b2e3 4414if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 4415 have_gmp=yes
4416 saved_CFLAGS="$CFLAGS"
4417 CFLAGS="$CFLAGS $gmpinc"
4418 # Check GMP actually works
5084f823 4419 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4420echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
b30fcfae 4421
4422cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
4ee9c684 4428#include "gmp.h"
b30fcfae 4429int
4430main ()
4431{
4ee9c684 4432
d45318b3 4433 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4434 choke me
4435 #endif
b30fcfae 4436
4437 ;
4438 return 0;
4439}
4440_ACEOF
4441rm -f conftest.$ac_objext
5084f823 4442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
b30fcfae 4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 echo "$as_me:$LINENO: result: yes" >&5
4464echo "${ECHO_T}yes" >&6
b30fcfae 4465else
4466 echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
5084f823 4469echo "$as_me:$LINENO: result: no" >&5
4470echo "${ECHO_T}no" >&6; have_gmp=no
b30fcfae 4471fi
5084f823 4472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 4473
d45318b3 4474 if test x"$have_gmp" = xyes; then
4475 saved_LIBS="$LIBS"
4476 LIBS="$LIBS $gmplibs"
5084f823 4477 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4478echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
b30fcfae 4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
6a086156 4485#include <gmp.h>
d45318b3 4486 #include <mpfr.h>
b30fcfae 4487int
4488main ()
4489{
112f3d57 4490
d45318b3 4491 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4492 choke me
4493 #endif
78a477ad 4494 mpfr_t n;
4495 mpfr_t x;
d45318b3 4496 int t;
78a477ad 4497 mpfr_init (n);
4498 mpfr_init (x);
d45318b3 4499 mpfr_atan2 (n, n, x, GMP_RNDN);
4500 mpfr_erfc (n, x, GMP_RNDN);
4501 mpfr_subnormalize (x, t, GMP_RNDN);
b30fcfae 4502
4503 ;
4504 return 0;
4505}
4506_ACEOF
4507rm -f conftest.$ac_objext conftest$ac_exeext
5084f823 4508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>conftest.er1
b30fcfae 4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest$ac_exeext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
b30fcfae 4529 cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h. */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h. */
0157cc75 4535#include <gmp.h>
d45318b3 4536 #include <mpfr.h>
b30fcfae 4537int
4538main ()
4539{
0157cc75 4540
d45318b3 4541 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4542 choke me
4543 #endif
4544 mpfr_t n; mpfr_init(n);
b30fcfae 4545
4546 ;
4547 return 0;
4548}
4549_ACEOF
4550rm -f conftest.$ac_objext conftest$ac_exeext
5084f823 4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>conftest.er1
b30fcfae 4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4558 (exit $ac_status); } &&
4559 { ac_try='test -z "$ac_c_werror_flag"
4560 || test ! -s conftest.err'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest$ac_exeext'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 echo "$as_me:$LINENO: result: yes" >&5
4573echo "${ECHO_T}yes" >&6
b30fcfae 4574else
4575 echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
5084f823 4578echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4579echo "${ECHO_T}buggy but acceptable" >&6
b30fcfae 4580fi
5084f823 4581rm -f conftest.err conftest.$ac_objext \
b30fcfae 4582 conftest$ac_exeext conftest.$ac_ext
4583else
4584 echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
5084f823 4587echo "$as_me:$LINENO: result: no" >&5
4588echo "${ECHO_T}no" >&6; have_gmp=no
b30fcfae 4589fi
5084f823 4590rm -f conftest.err conftest.$ac_objext \
b30fcfae 4591 conftest$ac_exeext conftest.$ac_ext
d45318b3 4592 LIBS="$saved_LIBS"
4593 fi
4594 CFLAGS="$saved_CFLAGS"
4ee9c684 4595
d45318b3 4596 if test x$have_gmp != xyes; then
b30fcfae 4597 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4598Try the --with-gmp and/or --with-mpfr options to specify their locations.
4599Copies of these libraries' source code can be found at their respective
4600hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4601See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4602If you obtained GMP and/or MPFR from a vendor distribution package, make
4603sure that you have installed both the libraries and the header files.
4604They may be located in separate packages." >&5
4605echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
0818100b 4606Try the --with-gmp and/or --with-mpfr options to specify their locations.
4607Copies of these libraries' source code can be found at their respective
4608hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
6af0e733 4609See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4610If you obtained GMP and/or MPFR from a vendor distribution package, make
4611sure that you have installed both the libraries and the header files.
b30fcfae 4612They may be located in separate packages." >&2;}
4613 { (exit 1); exit 1; }; }
d45318b3 4614 fi
6a086156 4615fi
4616
5ca838b8 4617# Flags needed for both GMP and/or MPFR
4ee9c684 4618
4619
4620
8e6391a6 4621# By default, C is the only stage 1 language.
9c3a0a29 4622stage1_languages=,c,
2d64c2fd 4623
8e1fea1a 4624# Figure out what language subdirectories are present.
4625# Look if the user specified --enable-languages="..."; if not, use
4626# the environment variable $LANGUAGES if defined. $LANGUAGES might
4627# go away some day.
4628# NB: embedded tabs in this IF block -- do not untabify
4629if test -d ${srcdir}/gcc; then
4630 if test x"${enable_languages+set}" != xset; then
4631 if test x"${LANGUAGES+set}" = xset; then
4632 enable_languages="${LANGUAGES}"
4633 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4634 else
4635 enable_languages=all
4636 fi
4637 else
4638 if test x"${enable_languages}" = x ||
4639 test x"${enable_languages}" = xyes;
4640 then
4641 echo configure.in: --enable-languages needs at least one language argument 1>&2
4642 exit 1
4643 fi
4644 fi
4645 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4646
2c718da0 4647 # 'f95' is the old name for the 'fortran' language. We issue a warning
4648 # and make the substitution.
4649 case ,${enable_languages}, in
4650 *,f95,*)
4651 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4652 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4653 ;;
4654 esac
4655
8e1fea1a 4656 # First scan to see if an enabled language requires some other language.
4657 # We assume that a given config-lang.in will list all the language
4658 # front ends it requires, even if some are required indirectly.
4659 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4660 case ${lang_frag} in
4661 ..) ;;
4662 # The odd quoting in the next line works around
4663 # an apparent bug in bash 1.12 on linux.
4664 ${srcdir}/gcc/[*]/config-lang.in) ;;
4665 *)
4666 # From the config-lang.in, get $language, $lang_requires
4667 language=
4668 lang_requires=
4669 . ${lang_frag}
4670 for other in ${lang_requires} ; do
4671 case ,${enable_languages}, in
4672 *,$other,*) ;;
4673 *,all,*) ;;
4674 *,$language,*)
4675 echo " \`$other' language required by \`$language'; enabling" 1>&2
4676 enable_languages="${enable_languages},${other}"
4677 ;;
4678 esac
4679 done
4680 ;;
4681 esac
4682 done
4683
9c3a0a29 4684 new_enable_languages=,c,
8e1fea1a 4685 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 4686 potential_languages=,c,
8e1fea1a 4687
4688 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4689 case ${lang_frag} in
4690 ..) ;;
4691 # The odd quoting in the next line works around
4692 # an apparent bug in bash 1.12 on linux.
4693 ${srcdir}/gcc/[*]/config-lang.in) ;;
4694 *)
b30fcfae 4695 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 4696 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 4697 language=
4698 target_libs=
4699 lang_dirs=
5dee13c2 4700 subdir_requires=
9c3a0a29 4701 boot_language=no
4702 build_by_default=yes
8e1fea1a 4703 . ${lang_frag}
9c3a0a29 4704 if test x${language} = x; then
4705 echo "${lang_frag} doesn't set \$language." 1>&2
4706 exit 1
4707 fi
4708
4709 case ,${enable_languages}, in
4710 *,${language},*)
8e1fea1a 4711 # Language was explicitly selected; include it.
4712 add_this_lang=yes
4713 ;;
9c3a0a29 4714 *,all,*)
4715 # 'all' was selected, select it if it is a default language
4716 add_this_lang=${build_by_default}
8e1fea1a 4717 ;;
4718 *)
4719 add_this_lang=no
4720 ;;
4721 esac
4ee9c684 4722
5dee13c2 4723 # Disable languages that need other directories if these aren't available.
9333ae0b 4724 for i in $subdir_requires; do
3891e7d9 4725 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5dee13c2 4726 case ,${enable_languages}, in
4727 *,${language},*)
4728 # Specifically requested language; tell them.
b30fcfae 4729 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4730echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4731 { (exit 1); exit 1; }; }
5dee13c2 4732 ;;
4733 *)
4734 # Silently disable.
9c3a0a29 4735 add_this_lang=unsupported
5dee13c2 4736 ;;
4737 esac
4738 done
4739
9c3a0a29 4740 # Disable Ada if no preexisting GNAT is available.
4741 case ,${enable_languages},:${language}:${have_gnat} in
4742 *,${language},*:ada:no)
4743 # Specifically requested language; tell them.
b30fcfae 4744 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4745echo "$as_me: error: GNAT is required to build $language" >&2;}
4746 { (exit 1); exit 1; }; }
9c3a0a29 4747 ;;
4748 *:ada:no)
4749 # Silently disable.
4750 add_this_lang=unsupported
4751 ;;
4752 esac
4753
ff7dcf6a 4754 # Disable a language that is unsupported by the target.
4755 case " $unsupported_languages " in
4756 *" $language "*)
9c3a0a29 4757 add_this_lang=unsupported
ff7dcf6a 4758 ;;
4759 esac
4760
4ee9c684 4761 case $add_this_lang in
9c3a0a29 4762 unsupported)
8e1fea1a 4763 # Remove language-dependent dirs.
2d64c2fd 4764 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4765 ;;
9c3a0a29 4766 no)
4767 # Remove language-dependent dirs; still show language as supported.
4768 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4769 potential_languages="${potential_languages}${language},"
4770 ;;
4771 yes)
4772 new_enable_languages="${new_enable_languages}${language},"
4773 potential_languages="${potential_languages}${language},"
2d64c2fd 4774 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4775 case ${boot_language} in
4776 yes)
aff6cf7b 4777 # Add to (comma-separated) list of stage 1 languages.
9c3a0a29 4778 stage1_languages="${stage1_languages}${language},"
2d64c2fd 4779 ;;
4780 esac
4781 ;;
8e1fea1a 4782 esac
4783 ;;
4784 esac
4785 done
4786
5084f823 4787 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
9c3a0a29 4788if test "${enable_stage1_languages+set}" = set; then
5084f823 4789 enableval="$enable_stage1_languages"
4790 case ,${enable_stage1_languages}, in
9c3a0a29 4791 ,no,|,,)
4792 # Set it to something that will have no effect in the loop below
4793 enable_stage1_languages=c ;;
4794 ,yes,)
4795 enable_stage1_languages=`echo $new_enable_languages | \
4796 sed -e "s/^,//" -e "s/,$//" ` ;;
4797 *,all,*)
4798 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4799 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4800 esac
4801
4802 # Add "good" languages from enable_stage1_languages to stage1_languages,
4803 # while "bad" languages go in missing_languages. Leave no duplicates.
4804 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4805 case $potential_languages in
4806 *,$i,*)
4807 case $stage1_languages in
4808 *,$i,*) ;;
4809 *) stage1_languages="$stage1_languages$i," ;;
4810 esac ;;
4811 *)
4812 case $missing_languages in
4813 *,$i,*) ;;
4814 *) missing_languages="$missing_languages$i," ;;
4815 esac ;;
4816 esac
4817 done
5084f823 4818fi;
9c3a0a29 4819
4820 # Remove leading/trailing commas that were added for simplicity
4821 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 4822 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 4823 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4824 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4825
8e1fea1a 4826 if test "x$missing_languages" != x; then
b30fcfae 4827 { { echo "$as_me:$LINENO: error:
e8bfe1fa 4828The following requested languages could not be built: ${missing_languages}
b30fcfae 4829Supported languages are: ${potential_languages}" >&5
4830echo "$as_me: error:
4831The following requested languages could not be built: ${missing_languages}
4832Supported languages are: ${potential_languages}" >&2;}
4833 { (exit 1); exit 1; }; }
8e1fea1a 4834 fi
8e1fea1a 4835 if test "x$new_enable_languages" != "x$enable_languages"; then
4836 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 4837 enable_languages="$new_enable_languages"
8e1fea1a 4838 fi
9c3a0a29 4839
b30fcfae 4840
b0e9b581 4841 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 4842fi
4843
50996fe5 4844# Handle --disable-<component> generically.
4845for dir in $configdirs $build_configdirs $target_configdirs ; do
4846 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4847 if eval test x\${enable_${dirname}} "=" xno ; then
4848 noconfigdirs="$noconfigdirs $dir"
4849 fi
4850done
4851
dd6d3a67 4852# Check for Boehm's garbage collector
5084f823 4853# Check whether --enable-objc-gc or --disable-objc-gc was given.
dd6d3a67 4854if test "${enable_objc_gc+set}" = set; then
5084f823 4855 enableval="$enable_objc_gc"
4856 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
dd6d3a67 4857 *,objc,*:*:yes:*target-boehm-gc*)
b30fcfae 4858 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4859echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4860 { (exit 1); exit 1; }; }
dd6d3a67 4861 ;;
4862esac
5084f823 4863fi;
dd6d3a67 4864
4865# Make sure we only build Boehm's garbage collector if required.
f1716c67 4866case ,${enable_languages},:${enable_objc_gc} in
4867 *,objc,*:yes)
dd6d3a67 4868 # Keep target-boehm-gc if requested for Objective-C.
4869 ;;
dd6d3a67 4870 *)
f1716c67 4871 # Otherwise remove target-boehm-gc depending on target-libjava.
4872 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4873 noconfigdirs="$noconfigdirs target-boehm-gc"
4874 fi
dd6d3a67 4875 ;;
4876esac
4877
e8eddfdd 4878# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4879# $build_configdirs and $target_configdirs.
8e1fea1a 4880# If we have the source for $noconfigdirs entries, add them to $notsupp.
4881
4882notsupp=""
4883for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 4884 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 4885 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4886 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4887 if test -r $srcdir/$dirname/configure ; then
4888 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4889 true
4890 else
4891 notsupp="$notsupp $dir"
4892 fi
4893 fi
4894 fi
e8eddfdd 4895 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4896 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4897 if test -r $srcdir/$dirname/configure ; then
4898 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4899 true
4900 else
4901 notsupp="$notsupp $dir"
4902 fi
4903 fi
4904 fi
8e1fea1a 4905 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4906 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4907 if test -r $srcdir/$dirname/configure ; then
4908 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4909 true
4910 else
4911 notsupp="$notsupp $dir"
4912 fi
4913 fi
4914 fi
4915done
4916
4917# Sometimes the tools are distributed with libiberty but with no other
4918# libraries. In that case, we don't want to build target-libiberty.
0a2e6193 4919# Don't let libgcc imply libiberty either.
8e1fea1a 4920if test -n "${target_configdirs}" ; then
0a2e6193 4921 libgcc=
8e1fea1a 4922 others=
4923 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
0a2e6193 4924 if test "$i" = "libgcc"; then
4925 libgcc=target-libgcc
4926 elif test "$i" != "libiberty" ; then
8e1fea1a 4927 if test -r $srcdir/$i/configure ; then
4928 others=yes;
4929 break;
4930 fi
4931 fi
4932 done
4933 if test -z "${others}" ; then
0a2e6193 4934 target_configdirs=$libgcc
8e1fea1a 4935 fi
4936fi
4937
4938# Quietly strip out all directories which aren't configurable in this tree.
4939# This relies on all configurable subdirectories being autoconfiscated, which
4940# is now the case.
2f8725b0 4941build_configdirs_all="$build_configdirs"
4942build_configdirs=
4943for i in ${build_configdirs_all} ; do
b30fcfae 4944 j=`echo $i | sed -e s/build-//g`
2f8725b0 4945 if test -f ${srcdir}/$j/configure ; then
4946 build_configdirs="${build_configdirs} $i"
4947 fi
4948done
4949
8e1fea1a 4950configdirs_all="$configdirs"
4951configdirs=
4952for i in ${configdirs_all} ; do
4953 if test -f ${srcdir}/$i/configure ; then
4954 configdirs="${configdirs} $i"
4955 fi
4956done
2f8725b0 4957
8e1fea1a 4958target_configdirs_all="$target_configdirs"
4959target_configdirs=
4960for i in ${target_configdirs_all} ; do
b30fcfae 4961 j=`echo $i | sed -e s/target-//g`
8e1fea1a 4962 if test -f ${srcdir}/$j/configure ; then
4963 target_configdirs="${target_configdirs} $i"
4964 fi
4965done
4966
4967# Produce a warning message for the subdirs we can't configure.
4968# This isn't especially interesting in the Cygnus tree, but in the individual
4969# FSF releases, it's important to let people know when their machine isn't
4970# supported by the one or two programs in a package.
4971
4972if test -n "${notsupp}" && test -z "${norecursion}" ; then
4973 # If $appdirs is non-empty, at least one of those directories must still
4974 # be configured, or we error out. (E.g., if the gas release supports a
4975 # specified target in some subdirs but not the gas subdir, we shouldn't
4976 # pretend that all is well.)
4977 if test -n "$appdirs" ; then
4978 for dir in $appdirs ; do
4979 if test -r $dir/Makefile.in ; then
4980 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4981 appdirs=""
4982 break
4983 fi
2f8725b0 4984 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 4985 appdirs=""
4986 break
4987 fi
4988 fi
4989 done
4990 if test -n "$appdirs" ; then
4991 echo "*** This configuration is not supported by this package." 1>&2
4992 exit 1
4993 fi
4994 fi
4995 # Okay, some application will build, or we don't care to check. Still
4996 # notify of subdirs not getting built.
4997 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4998 echo " ${notsupp}" 1>&2
4999 echo " (Any other directories should still work fine.)" 1>&2
5000fi
5001
5002case "$host" in
5003 *msdosdjgpp*)
5004 enable_gdbtk=no ;;
5005esac
5006
eae5b2bc 5007# To find our prefix, in gcc_cv_tool_prefix.
5008
5009# The user is always right.
5010if test "${PATH_SEPARATOR+set}" != set; then
5011 echo "#! /bin/sh" >conf$$.sh
5012 echo "exit 0" >>conf$$.sh
5013 chmod +x conf$$.sh
5014 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5015 PATH_SEPARATOR=';'
5016 else
5017 PATH_SEPARATOR=:
5018 fi
5019 rm -f conf$$.sh
5020fi
5021
5022
5023
5024if test "x$exec_prefix" = xNONE; then
5025 if test "x$prefix" = xNONE; then
5026 gcc_cv_tool_prefix=$ac_default_prefix
5027 else
5028 gcc_cv_tool_prefix=$prefix
5029 fi
5030else
5031 gcc_cv_tool_prefix=$exec_prefix
5032fi
5033
5034# If there is no compiler in the tree, use the PATH only. In any
5035# case, if there is no compiler in the tree nobody should use
5036# AS_FOR_TARGET and LD_FOR_TARGET.
5037if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5038 gcc_version=`cat $srcdir/gcc/BASE-VER`
5039 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5040 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5041 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5042 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5043 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5044 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5045else
5046 gcc_cv_tool_dirs=
5047fi
5048
5049if test x$build = x$target && test -n "$md_exec_prefix"; then
5050 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5051fi
5052
5053
5054
8e1fea1a 5055copy_dirs=
5056
b30fcfae 5057
5084f823 5058# Check whether --with-build-sysroot or --without-build-sysroot was given.
ffa8502d 5059if test "${with_build_sysroot+set}" = set; then
5084f823 5060 withval="$with_build_sysroot"
5061 if test x"$withval" != x ; then
ffa8502d 5062 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5063 fi
5064else
5065 SYSROOT_CFLAGS_FOR_TARGET=
5084f823 5066fi;
ffa8502d 5067
5068
8e1fea1a 5069# Handle --with-headers=XXX. If the value is not "yes", the contents of
5070# the named directory are copied to $(tooldir)/sys-include.
5071if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5072 if test x${is_cross_compiler} = xno ; then
5073 echo 1>&2 '***' --with-headers is only supported when cross compiling
5074 exit 1
5075 fi
5076 if test x"${with_headers}" != xyes ; then
eae5b2bc 5077 x=${gcc_cv_tool_prefix}
b30fcfae 5078 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 5079 fi
5080fi
5081
5082# Handle --with-libs=XXX. If the value is not "yes", the contents of
5083# the name directories are copied to $(tooldir)/lib. Multiple directories
5084# are permitted.
5085if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5086 if test x${is_cross_compiler} = xno ; then
5087 echo 1>&2 '***' --with-libs is only supported when cross compiling
5088 exit 1
5089 fi
5090 if test x"${with_libs}" != xyes ; then
5091 # Copy the libraries in reverse order, so that files in the first named
5092 # library override files in subsequent libraries.
eae5b2bc 5093 x=${gcc_cv_tool_prefix}
8e1fea1a 5094 for l in ${with_libs}; do
b30fcfae 5095 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 5096 done
5097 fi
5098fi
5099
c47832b1 5100# Set with_gnu_as and with_gnu_ld as appropriate.
5101#
5102# This is done by determining whether or not the appropriate directory
5103# is available, and by checking whether or not specific configurations
5104# have requested that this magic not happen.
b30fcfae 5105#
5106# The command line options always override the explicit settings in
c47832b1 5107# configure.in, and the settings in configure.in override this magic.
5108#
b30fcfae 5109# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 5110# want to do that, then you should use the --without-gnu-as and
5111# --without-gnu-ld options for the configure script.
5112
5113if test x${use_gnu_as} = x &&
5114 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5115 with_gnu_as=yes
5116 extra_host_args="$extra_host_args --with-gnu-as"
5117fi
5118
5119if test x${use_gnu_ld} = x &&
5120 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5121 with_gnu_ld=yes
5122 extra_host_args="$extra_host_args --with-gnu-ld"
5123fi
5124
5125# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5126# can detect this case.
5127
5128if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5129 with_newlib=yes
5130 extra_host_args="$extra_host_args --with-newlib"
5131fi
5132
8e1fea1a 5133# Handle ${copy_dirs}
5134set fnord ${copy_dirs}
5135shift
5136while test $# != 0 ; do
5137 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5138 :
5139 else
5140 echo Copying $1 to $2
5141
5142 # Use the install script to create the directory and all required
5143 # parent directories.
5144 if test -d $2 ; then
5145 :
5146 else
5147 echo >config.temp
5148 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5149 fi
5150
5151 # Copy the directory, assuming we have tar.
5152 # FIXME: Should we use B in the second tar? Not all systems support it.
5153 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5154
5155 # It is the responsibility of the user to correctly adjust all
5156 # symlinks. If somebody can figure out how to handle them correctly
5157 # here, feel free to add the code.
5158
5159 echo $1 > $2/COPIED
5160 fi
5161 shift; shift
5162done
5163
c47832b1 5164# Determine a target-dependent exec_prefix that the installed
5165# gcc will search in. Keep this list sorted by triplet, with
5166# the *-*-osname triplets last.
5167md_exec_prefix=
5168case "${target}" in
5169 alpha*-*-*vms*)
5170 md_exec_prefix=/gnu/lib/gcc-lib
5171 ;;
09c2d953 5172 i[34567]86-pc-msdosdjgpp*)
c47832b1 5173 md_exec_prefix=/dev/env/DJDIR/bin
5174 ;;
09c2d953 5175 i[34567]86-*-sco3.2v5*)
c47832b1 5176 if test $with_gnu_as = yes; then
5177 md_exec_prefix=/usr/gnu/bin
5178 else
5179 md_exec_prefix=/usr/ccs/bin/elf
5180 fi
5181 ;;
5182
5183 mn10300-*-* | \
5184 powerpc-*-chorusos* | \
5185 powerpc*-*-eabi* | \
5186 powerpc*-*-sysv* | \
5187 powerpc*-*-kaos* | \
5188 s390x-ibm-tpf*)
5189 md_exec_prefix=/usr/ccs/bin
5190 ;;
5191 sparc64-*-elf*)
5192 ;;
5193 v850*-*-*)
5194 md_exec_prefix=/usr/ccs/bin
5195 ;;
5196 xtensa-*-elf*)
5197 ;;
5198
5199 *-*-beos* | \
5200 *-*-elf* | \
5201 *-*-hpux* | \
5202 *-*-netware* | \
5203 *-*-nto-qnx* | \
5204 *-*-rtems* | \
5205 *-*-solaris2* | \
09c2d953 5206 *-*-sysv[45]* | \
c47832b1 5207 *-*-vxworks* | \
5208 *-wrs-windiss)
5209 md_exec_prefix=/usr/ccs/bin
5210 ;;
5211esac
5212
71ab34df 5213extra_arflags_for_target=
5214extra_nmflags_for_target=
5215extra_ranlibflags_for_target=
5216target_makefile_frag=/dev/null
5217case "${target}" in
38d7211b 5218 mep*-*-*)
5219 target_makefile_frag="config/mt-mep"
5220 ;;
57c7de11 5221 spu-*-*)
5222 target_makefile_frag="config/mt-spu"
5223 ;;
634f7a13 5224 *-*-netware*)
71ab34df 5225 target_makefile_frag="config/mt-netware"
5226 ;;
cb8a7007 5227 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5228 target_makefile_frag="config/mt-gnu"
71ab34df 5229 ;;
5230 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 5231 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 5232 # commands to handle both 32-bit and 64-bit objects. These flags are
5233 # harmless if we're using GNU nm or ar.
5234 extra_arflags_for_target=" -X32_64"
5235 extra_nmflags_for_target=" -B -X32_64"
5236 ;;
5237 *-*-darwin*)
5238 # ranlib from Darwin requires the -c flag to look at common symbols.
5239 extra_ranlibflags_for_target=" -c"
5240 ;;
5241 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5242 target_makefile_frag="config/mt-wince"
5243 ;;
5244esac
5245
5246alphaieee_frag=/dev/null
5247case $target in
5248 alpha*-*-*)
5249 # This just makes sure to use the -mieee option to build target libs.
5250 # This should probably be set individually by each library.
5251 alphaieee_frag="config/mt-alphaieee"
5252 ;;
5253esac
5254
5255# If --enable-target-optspace always use -Os instead of -O2 to build
5256# the target libraries, similarly if it is not specified, use -Os
5257# on selected platforms.
5258ospace_frag=/dev/null
5259case "${enable_target_optspace}:${target}" in
5260 yes:*)
5261 ospace_frag="config/mt-ospace"
5262 ;;
5263 :d30v-*)
5264 ospace_frag="config/mt-d30v"
5265 ;;
5266 :m32r-* | :d10v-* | :fr30-*)
5267 ospace_frag="config/mt-ospace"
5268 ;;
5269 no:* | :*)
5270 ;;
5271 *)
5272 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5273 ;;
5274esac
5275
71ab34df 5276# Default to using --with-stabs for certain targets.
5277if test x${with_stabs} = x ; then
5278 case "${target}" in
d74dd50d 5279 mips*-*-irix[56]*)
71ab34df 5280 ;;
5281 mips*-*-* | alpha*-*-osf*)
5282 with_stabs=yes;
5283 extra_host_args="${extra_host_args} --with-stabs"
5284 ;;
5285 esac
5286fi
5287
5288# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5289# them automatically.
5290case "${host}" in
b30fcfae 5291 hppa*64*-*-hpux11*)
71ab34df 5292 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5293 ;;
5294esac
5295
71ab34df 5296# Some systems (e.g., one of the i386-aix systems the gas testers are
5297# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 5298tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 5299build_tooldir=${tooldir}
5300
71ab34df 5301# Create a .gdbinit file which runs the one in srcdir
5302# and tells GDB to look there for source files.
5303
5304if test -r ${srcdir}/.gdbinit ; then
5305 case ${srcdir} in
5306 .) ;;
5307 *) cat > ./.gdbinit <<EOF
5308# ${NO_EDIT}
5309dir ${srcdir}
5310dir .
5311source ${srcdir}/.gdbinit
5312EOF
5313 ;;
5314 esac
5315fi
5316
71ab34df 5317# Make sure that the compiler is able to generate an executable. If it
5318# can't, we are probably in trouble. We don't care whether we can run the
5319# executable--we might be using a cross compiler--we only care whether it
5320# can be created. At this point the main configure script has set CC.
5321we_are_ok=no
5322echo "int main () { return 0; }" > conftest.c
5323${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5324if test $? = 0 ; then
5325 if test -s conftest || test -s conftest.exe ; then
5326 we_are_ok=yes
5327 fi
b30fcfae 5328fi
71ab34df 5329case $we_are_ok in
5330 no)
5331 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5332 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5333 rm -f conftest*
5334 exit 1
5335 ;;
5336esac
5337rm -f conftest*
5338
5339# The Solaris /usr/ucb/cc compiler does not appear to work.
5340case "${host}" in
5341 sparc-sun-solaris2*)
5342 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5343 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5344 could_use=
5345 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5346 if test -d /opt/cygnus/bin ; then
5347 if test "$could_use" = "" ; then
5348 could_use="/opt/cygnus/bin"
5349 else
5350 could_use="$could_use or /opt/cygnus/bin"
5351 fi
5352 fi
5353 if test "$could_use" = "" ; then
5354 echo "Warning: compilation may fail because you're using"
5355 echo "/usr/ucb/cc. You should change your PATH or CC "
5356 echo "variable and rerun configure."
5357 else
5358 echo "Warning: compilation may fail because you're using"
5359 echo "/usr/ucb/cc, when you should use the C compiler from"
5360 echo "$could_use. You should change your"
5361 echo "PATH or CC variable and rerun configure."
5362 fi
5363 fi
5364 ;;
5365esac
5366
71ab34df 5367case "${host}" in
5368 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
697e01c8 5369 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
71ab34df 5370 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5371esac
5372
5373# Record target_configdirs and the configure arguments for target and
5374# build configuration in Makefile.
5375target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 5376build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
71ab34df 5377
71ab34df 5378# Determine whether gdb needs tk/tcl or not.
5379# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5380# and in that case we want gdb to be built without tk. Ugh!
5381# In fact I believe gdb is the *only* package directly dependent on tk,
5382# so we should be able to put the 'maybe's in unconditionally and
5383# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5384# 100% sure that that's safe though.
8fdaf281 5385
f843f075 5386gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 5387case "$enable_gdbtk" in
5388 no)
5389 GDB_TK="" ;;
8fdaf281 5390 yes)
5391 GDB_TK="${gdb_tk}" ;;
71ab34df 5392 *)
8fdaf281 5393 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5394 # distro. Eventually someone will fix this and move Insight, nee
5395 # gdbtk to a separate directory.
5396 if test -d ${srcdir}/gdb/gdbtk ; then
5397 GDB_TK="${gdb_tk}"
5398 else
5399 GDB_TK=""
5400 fi
5401 ;;
71ab34df 5402esac
415470be 5403CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5404INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 5405
01b41571 5406# Strip out unwanted targets.
6f4f34a7 5407
5408# While at that, we remove Makefiles if we were started for recursive
5409# configuration, so that the top-level Makefile reconfigures them,
5410# like we used to do when configure itself was recursive.
6f4f34a7 5411
01b41571 5412# Loop over modules. $extrasub must be used with care, limiting as
5413# much as possible the usage of range addresses. That's because autoconf
5414# splits the sed script to overcome limits in the number of commands,
5415# and relying on carefully-timed sed passes may turn out to be very hard
5416# to maintain later. In this particular case, you just have to be careful
5417# not to nest @if/@endif pairs, because configure will not warn you at all.
6f4f34a7 5418
5084f823 5419# Check whether --enable-bootstrap or --disable-bootstrap was given.
54f0538b 5420if test "${enable_bootstrap+set}" = set; then
5084f823 5421 enableval="$enable_bootstrap"
5422
54f0538b 5423else
3c782584 5424 enable_bootstrap=default
5084f823 5425fi;
54f0538b 5426
3c782584 5427# Issue errors and warnings for invalid/strange bootstrap combinations.
5428case "$configdirs" in
5429 *gcc*) have_compiler=yes ;;
5430 *) have_compiler=no ;;
5431esac
5432
5433case "$have_compiler:$host:$target:$enable_bootstrap" in
5434 *:*:*:no) ;;
5435
98777423 5436 # Default behavior. Enable bootstrap if we have a compiler
3c782584 5437 # and we are in a native configuration.
5438 yes:$build:$build:default)
98777423 5439 enable_bootstrap=yes ;;
3c782584 5440
5441 *:*:*:default)
5442 enable_bootstrap=no ;;
5443
5444 # We have a compiler and we are in a native configuration, bootstrap is ok
0c8a85c6 5445 yes:$build:$build:yes)
3c782584 5446 ;;
5447
5448 # Other configurations, but we have a compiler. Assume the user knows
5449 # what he's doing.
0c8a85c6 5450 yes:*:*:yes)
b30fcfae 5451 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5452echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
3c782584 5453 ;;
5454
5455 # No compiler: if they passed --enable-bootstrap explicitly, fail
0c8a85c6 5456 no:*:*:yes)
b30fcfae 5457 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5458echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5459 { (exit 1); exit 1; }; } ;;
3c782584 5460
5461 # Fail if wrong command line
5462 *)
b30fcfae 5463 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5464echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5465 { (exit 1); exit 1; }; }
3c782584 5466 ;;
5467esac
5468
5469# Adjust the toplevel makefile according to whether bootstrap was selected.
54f0538b 5470case "$enable_bootstrap" in
5471 yes)
93f93279 5472 bootstrap_suffix=bootstrap ;;
54f0538b 5473 no)
93f93279 5474 bootstrap_suffix=no-bootstrap ;;
54f0538b 5475esac
5476
2f8725b0 5477for module in ${build_configdirs} ; do
93f93279 5478 if test -z "${no_recursion}" \
5479 && test -f ${build_subdir}/${module}/Makefile; then
5480 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5481 rm -f ${build_subdir}/${module}/Makefile
5482 fi
5483 extrasub="$extrasub
5484/^@if build-$module\$/d
5485/^@endif build-$module\$/d
5486/^@if build-$module-$bootstrap_suffix\$/d
5487/^@endif build-$module-$bootstrap_suffix\$/d"
5488done
5489for module in ${configdirs} ; do
9c19a746 5490 if test -z "${no_recursion}"; then
35d84d10 5491 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 5492 if test -f ${file}; then
5493 echo 1>&2 "*** removing ${file} to force reconfigure"
5494 rm -f ${file}
5495 fi
5496 done
93f93279 5497 fi
5498 extrasub="$extrasub
5499/^@if $module\$/d
5500/^@endif $module\$/d
5501/^@if $module-$bootstrap_suffix\$/d
5502/^@endif $module-$bootstrap_suffix\$/d"
5503done
5504for module in ${target_configdirs} ; do
5505 if test -z "${no_recursion}" \
5506 && test -f ${target_subdir}/${module}/Makefile; then
5507 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5508 rm -f ${target_subdir}/${module}/Makefile
5509 fi
5510 extrasub="$extrasub
5511/^@if target-$module\$/d
5512/^@endif target-$module\$/d
5513/^@if target-$module-$bootstrap_suffix\$/d
5514/^@endif target-$module-$bootstrap_suffix\$/d"
5515done
5516
01b41571 5517extrasub="$extrasub
5518/^@if /,/^@endif /d"
71ab34df 5519
5520# Create the serialization dependencies. This uses a temporary file.
5521
5084f823 5522# Check whether --enable-serial-configure or --disable-serial-configure was given.
11d8013a 5523if test "${enable_serial_configure+set}" = set; then
5084f823 5524 enableval="$enable_serial_configure"
11d8013a 5525
5084f823 5526fi;
11d8013a 5527
622c1fa9 5528case ${enable_serial_configure} in
5529 yes)
5530 enable_serial_build_configure=yes
5531 enable_serial_host_configure=yes
5532 enable_serial_target_configure=yes
5533 ;;
5534esac
5535
71ab34df 5536# These force 'configure's to be done one at a time, to avoid problems
5537# with contention over a shared config.cache.
5538rm -f serdep.tmp
11d8013a 5539echo '# serdep.tmp' > serdep.tmp
71ab34df 5540olditem=
622c1fa9 5541test "x${enable_serial_build_configure}" = xyes &&
71ab34df 5542for item in ${build_configdirs} ; do
5543 case ${olditem} in
5544 "") ;;
11d8013a 5545 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 5546 esac
5547 olditem=${item}
5548done
5549olditem=
622c1fa9 5550test "x${enable_serial_host_configure}" = xyes &&
71ab34df 5551for item in ${configdirs} ; do
5552 case ${olditem} in
5553 "") ;;
11d8013a 5554 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 5555 esac
5556 olditem=${item}
5557done
5558olditem=
622c1fa9 5559test "x${enable_serial_target_configure}" = xyes &&
71ab34df 5560for item in ${target_configdirs} ; do
5561 case ${olditem} in
5562 "") ;;
11d8013a 5563 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 5564 esac
5565 olditem=${item}
5566done
5567serialization_dependencies=serdep.tmp
5568
5569
11d8013a 5570# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 5571# target, nonopt, and variable assignments. These are the ones we
5572# might not want to pass down to subconfigures. Also strip
5573# program-prefix, program-suffix, and program-transform-name, so that
5574# we can pass down a consistent program-transform-name.
5575baseargs=
5576keep_next=no
5577skip_next=no
5578eval "set -- $ac_configure_args"
4ff792a4 5579for ac_arg
5580do
b30fcfae 5581 if test X"$skip_next" = X"yes"; then
5582 skip_next=no
5583 continue
5584 fi
5585 if test X"$keep_next" = X"yes"; then
5586 case $ac_arg in
5587 *\'*)
5588 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5589 esac
5590 baseargs="$baseargs '$ac_arg'"
5591 keep_next=no
5592 continue
5593 fi
5594
5595 # Handle separated arguments. Based on the logic generated by
5596 # autoconf 2.59.
5597 case $ac_arg in
5598 *=* | --config-cache | -C | -disable-* | --disable-* \
5599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5601 | -with-* | --with-* | -without-* | --without-* | --x)
5602 separate_arg=no
5603 ;;
5604 -*)
5605 separate_arg=yes
5606 ;;
5607 *)
5608 separate_arg=no
5609 ;;
5610 esac
5611
5612 case "$ac_arg" in
5613 --no*)
5614 continue
5615 ;;
5616 --c* | \
5617 --sr* | \
5618 --ho* | \
5619 --bu* | \
5620 --t* | \
5621 --program-* | \
5622 -cache_file* | \
5623 -srcdir* | \
5624 -host* | \
5625 -build* | \
5626 -target* | \
5627 -program-prefix* | \
5628 -program-suffix* | \
5629 -program-transform-name* )
5630 skip_next=$separate_arg
5631 continue
5632 ;;
5633 -*)
5634 # An option. Add it.
5635 case $ac_arg in
5636 *\'*)
5637 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5638 esac
5639 baseargs="$baseargs '$ac_arg'"
5640 keep_next=$separate_arg
5641 ;;
5642 *)
5643 # Either a variable assignment, or a nonopt (triplet). Don't
5644 # pass it down; let the Makefile handle this.
5645 continue
5646 ;;
5647 esac
5648done
5649# Remove the initial space we just introduced and, as these will be
5650# expanded by make, quote '$'.
5651baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 5652
fbfea1fa 5653# Add in --program-transform-name, after --program-prefix and
5654# --program-suffix have been applied to it. Autoconf has already
5655# doubled dollar signs and backslashes in program_transform_name; we want
5656# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 5657# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 5658# Also, because we want to override the logic in subdir configure scripts to
5659# choose program_transform_name, replace any s,x,x, with s,y,y,.
5660sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5661${program_transform_name}
5662EOF_SED
5663gcc_transform_name=`cat conftestsed.out`
5664rm -f conftestsed.out
5665baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5666
71ab34df 5667# For the build-side libraries, we just need to pretend we're native,
5668# and not use the same cache file. Multilibs are neither needed nor
5669# desired.
d45318b3 5670build_configargs="--cache-file=../config.cache ${baseargs}"
71ab34df 5671
5672# For host modules, accept cache file option, or specification as blank.
5673case "${cache_file}" in
5674"") # empty
5675 cache_file_option="" ;;
5676/* | [A-Za-z]:[\\/]* ) # absolute path
5677 cache_file_option="--cache-file=${cache_file}" ;;
5678*) # relative path
5679 cache_file_option="--cache-file=../${cache_file}" ;;
5680esac
5681
ba1081ef 5682# Host dirs don't like to share a cache file either, horribly enough.
5683# This seems to be due to autoconf 2.5x stupidity.
d45318b3 5684host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 5685
5686target_configargs=${baseargs}
5687
5688# Passing a --with-cross-host argument lets the target libraries know
5689# whether they are being built with a cross-compiler or being built
5690# native. However, it would be better to use other mechanisms to make the
5691# sorts of decisions they want to make on this basis. Please consider
5692# this option to be deprecated. FIXME.
5693if test x${is_cross_compiler} = xyes ; then
b30fcfae 5694 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 5695fi
5696
5697# Default to --enable-multilib.
5698if test x${enable_multilib} = x ; then
5699 target_configargs="--enable-multilib ${target_configargs}"
5700fi
5701
5702# Pass --with-newlib if appropriate. Note that target_configdirs has
5703# changed from the earlier setting of with_newlib.
5704if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5705 target_configargs="--with-newlib ${target_configargs}"
5706fi
5707
74fef112 5708# Different target subdirs use different values of certain variables
5709# (notably CXX). Worse, multilibs use *lots* of different values.
5710# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5711# it doesn't automatically accept command-line overrides of them.
5712# This means it's not safe for target subdirs to share a cache file,
5713# which is disgusting, but there you have it. Hopefully this can be
5714# fixed in future. It's still worthwhile to use a cache file for each
5715# directory. I think.
5716
a8abbd9d 5717# Pass the appropriate --build, --host, --target and --cache-file arguments.
5718# We need to pass --target, as newer autoconf's requires consistency
5719# for target_alias and gcc doesn't manage it consistently.
d45318b3 5720target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 5721
71ab34df 5722FLAGS_FOR_TARGET=
5723case " $target_configdirs " in
5724 *" newlib "*)
5725 case " $target_configargs " in
5726 *" --with-newlib "*)
5727 case "$target" in
5728 *-cygwin*)
d957c480 5729 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' ;;
71ab34df 5730 esac
5731
5732 # If we're not building GCC, don't discard standard headers.
5733 if test -d ${srcdir}/gcc; then
5734 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5735
5736 if test "${build}" != "${host}"; then
5737 # On Canadian crosses, CC_FOR_TARGET will have already been set
5738 # by `configure', so we won't have an opportunity to add -Bgcc/
5739 # to it. This is right: we don't want to search that directory
5740 # for binaries, but we want the header files in there, so add
5741 # them explicitly.
c1eb9e31 5742 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
71ab34df 5743
5744 # Someone might think of using the pre-installed headers on
5745 # Canadian crosses, in case the installed compiler is not fully
5746 # compatible with the compiler being built. In this case, it
5747 # would be better to flag an error than risking having
5748 # incompatible object files being constructed. We can't
5749 # guarantee that an error will be flagged, but let's hope the
5750 # compiler will do it, when presented with incompatible header
5751 # files.
5752 fi
5753 fi
5754
5755 case "${target}-${is_cross_compiler}" in
f74ea578 5756 i[3456789]86-*-linux*-no)
71ab34df 5757 # Here host == target, so we don't need to build gcc,
5758 # so we don't want to discard standard headers.
5759 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5760 ;;
5761 *)
5762 # If we're building newlib, use its generic headers last, but search
5763 # for any libc-related directories first (so make it the last -B
5764 # switch).
5765 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5766 ;;
5767 esac
5768 ;;
5769 esac
5770 ;;
5771esac
d6d689df 5772case "$target" in
5773*-mingw*)
5774 # Can't be handled as Cygwin above since Mingw does not use newlib.
5775 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' ;;
5776esac
71ab34df 5777
d8e9ea04 5778# Allow the user to override the flags for
5779# our build compiler if desired.
5780CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5781
71ab34df 5782# On Canadian crosses, we'll be searching the right directories for
5783# the previously-installed cross compiler, so don't bother to add
5784# flags for directories within the install tree of the compiler
5785# being built; programs in there won't even run.
5786if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5787 # Search for pre-installed headers if nothing else fits.
5750c7d4 5788 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 5789fi
5790
5791if test "x${use_gnu_ld}" = x &&
5792 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5793 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 5794 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 5795fi
5796
24714a39 5797# Search for other target-specific linker scripts and such.
5798case "${target}" in
5799 m32c-*-* )
5800 if test -d ${srcdir}/libgloss/m32c; then
5801 # This is for crt0.o
5802 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5803 # This is for r8c.ld
5804 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5805 # This is for libnosys.a
5806 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5807 fi
5808 ;;
38d7211b 5809 mep*)
5810 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5811 ;;
24714a39 5812esac
5813
71ab34df 5814# Makefile fragments.
03c65091 5815for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5816do
5817 eval fragval=\$$frag
5818 if test $fragval != /dev/null; then
5819 eval $frag=${srcdir}/$fragval
5820 fi
5821done
71ab34df 5822
5823
5824
5825
5826
5827# Miscellanea: directories, flags, etc.
5828
5829
5830
5831
5832
5833
5834
2f8725b0 5835# Build module lists & subconfigure args.
71ab34df 5836
5837
5838
f5aebe3e 5839# Host module lists & subconfigure args.
5840
5841
5842
5843# Target module lists & subconfigure args.
5844
5845
5846
5847# Build tools.
5848
5849
5850
5851# Generate default definitions for YACC, M4, LEX and other programs that run
5852# on the build machine. These are used if the Makefile can't locate these
5853# programs in objdir.
5854MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5855
5856for ac_prog in 'bison -y' byacc yacc
5857do
b30fcfae 5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 5859set dummy $ac_prog; ac_word=$2
5084f823 5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 5862if test "${ac_cv_prog_YACC+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 5864else
5865 if test -n "$YACC"; then
5866 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5867else
b30fcfae 5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 5874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5875 ac_cv_prog_YACC="$ac_prog"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879done
5880done
5881
f5aebe3e 5882fi
5883fi
b30fcfae 5884YACC=$ac_cv_prog_YACC
f5aebe3e 5885if test -n "$YACC"; then
5084f823 5886 echo "$as_me:$LINENO: result: $YACC" >&5
5887echo "${ECHO_T}$YACC" >&6
f5aebe3e 5888else
5084f823 5889 echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
f5aebe3e 5891fi
5892
b30fcfae 5893 test -n "$YACC" && break
f5aebe3e 5894done
5895test -n "$YACC" || YACC="$MISSING bison -y"
5896
5897case " $build_configdirs " in
5898 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5899 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5900esac
5901
5902for ac_prog in bison
5903do
b30fcfae 5904 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 5905set dummy $ac_prog; ac_word=$2
5084f823 5906echo "$as_me:$LINENO: checking for $ac_word" >&5
5907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 5908if test "${ac_cv_prog_BISON+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 5910else
5911 if test -n "$BISON"; then
5912 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5913else
b30fcfae 5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 5920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5921 ac_cv_prog_BISON="$ac_prog"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925done
5926done
5927
f5aebe3e 5928fi
5929fi
b30fcfae 5930BISON=$ac_cv_prog_BISON
f5aebe3e 5931if test -n "$BISON"; then
5084f823 5932 echo "$as_me:$LINENO: result: $BISON" >&5
5933echo "${ECHO_T}$BISON" >&6
f5aebe3e 5934else
5084f823 5935 echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
f5aebe3e 5937fi
5938
b30fcfae 5939 test -n "$BISON" && break
f5aebe3e 5940done
5941test -n "$BISON" || BISON="$MISSING bison"
5942
5943case " $build_configdirs " in
5944 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5945esac
5946
5947for ac_prog in gm4 gnum4 m4
5948do
b30fcfae 5949 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 5950set dummy $ac_prog; ac_word=$2
5084f823 5951echo "$as_me:$LINENO: checking for $ac_word" >&5
5952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 5953if test "${ac_cv_prog_M4+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 5955else
5956 if test -n "$M4"; then
5957 ac_cv_prog_M4="$M4" # Let the user override the test.
5958else
b30fcfae 5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 5965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5966 ac_cv_prog_M4="$ac_prog"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971done
5972
f5aebe3e 5973fi
5974fi
b30fcfae 5975M4=$ac_cv_prog_M4
f5aebe3e 5976if test -n "$M4"; then
5084f823 5977 echo "$as_me:$LINENO: result: $M4" >&5
5978echo "${ECHO_T}$M4" >&6
f5aebe3e 5979else
5084f823 5980 echo "$as_me:$LINENO: result: no" >&5
5981echo "${ECHO_T}no" >&6
f5aebe3e 5982fi
5983
b30fcfae 5984 test -n "$M4" && break
f5aebe3e 5985done
5986test -n "$M4" || M4="$MISSING m4"
5987
5988case " $build_configdirs " in
5989 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5990esac
5991
5992for ac_prog in flex lex
5993do
b30fcfae 5994 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 5995set dummy $ac_prog; ac_word=$2
5084f823 5996echo "$as_me:$LINENO: checking for $ac_word" >&5
5997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 5998if test "${ac_cv_prog_LEX+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6000else
6001 if test -n "$LEX"; then
6002 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6003else
b30fcfae 6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6011 ac_cv_prog_LEX="$ac_prog"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016done
6017
f5aebe3e 6018fi
6019fi
b30fcfae 6020LEX=$ac_cv_prog_LEX
f5aebe3e 6021if test -n "$LEX"; then
5084f823 6022 echo "$as_me:$LINENO: result: $LEX" >&5
6023echo "${ECHO_T}$LEX" >&6
f5aebe3e 6024else
5084f823 6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
f5aebe3e 6027fi
6028
b30fcfae 6029 test -n "$LEX" && break
f5aebe3e 6030done
6031test -n "$LEX" || LEX="$MISSING flex"
6032
6033case " $build_configdirs " in
6034 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6035 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6036esac
6037
6038for ac_prog in flex
6039do
b30fcfae 6040 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6041set dummy $ac_prog; ac_word=$2
5084f823 6042echo "$as_me:$LINENO: checking for $ac_word" >&5
6043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6044if test "${ac_cv_prog_FLEX+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6046else
6047 if test -n "$FLEX"; then
6048 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6049else
b30fcfae 6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6057 ac_cv_prog_FLEX="$ac_prog"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6060 fi
6061done
6062done
6063
f5aebe3e 6064fi
6065fi
b30fcfae 6066FLEX=$ac_cv_prog_FLEX
f5aebe3e 6067if test -n "$FLEX"; then
5084f823 6068 echo "$as_me:$LINENO: result: $FLEX" >&5
6069echo "${ECHO_T}$FLEX" >&6
f5aebe3e 6070else
5084f823 6071 echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6
f5aebe3e 6073fi
6074
b30fcfae 6075 test -n "$FLEX" && break
f5aebe3e 6076done
6077test -n "$FLEX" || FLEX="$MISSING flex"
6078
6079case " $build_configdirs " in
6080 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6081esac
6082
6083for ac_prog in makeinfo
6084do
b30fcfae 6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6086set dummy $ac_prog; ac_word=$2
5084f823 6087echo "$as_me:$LINENO: checking for $ac_word" >&5
6088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6089if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6091else
6092 if test -n "$MAKEINFO"; then
6093 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6094else
b30fcfae 6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6102 ac_cv_prog_MAKEINFO="$ac_prog"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106done
6107done
6108
f5aebe3e 6109fi
6110fi
b30fcfae 6111MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 6112if test -n "$MAKEINFO"; then
5084f823 6113 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6114echo "${ECHO_T}$MAKEINFO" >&6
f5aebe3e 6115else
5084f823 6116 echo "$as_me:$LINENO: result: no" >&5
6117echo "${ECHO_T}no" >&6
f5aebe3e 6118fi
6119
b30fcfae 6120 test -n "$MAKEINFO" && break
f5aebe3e 6121done
6122test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6123
6124case " $build_configdirs " in
6125 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6126 *)
6127
2c45c903 6128 # For an installed makeinfo, we require it to be from texinfo 4.4 or
f5aebe3e 6129 # higher, else we use the "missing" dummy.
6130 if ${MAKEINFO} --version \
2c45c903 6131 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
f5aebe3e 6132 :
6133 else
6134 MAKEINFO="$MISSING makeinfo"
6135 fi
6136 ;;
6137
6138esac
71ab34df 6139
f5aebe3e 6140# FIXME: expect and dejagnu may become build tools?
71ab34df 6141
f5aebe3e 6142for ac_prog in expect
6143do
b30fcfae 6144 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6145set dummy $ac_prog; ac_word=$2
5084f823 6146echo "$as_me:$LINENO: checking for $ac_word" >&5
6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6148if test "${ac_cv_prog_EXPECT+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6150else
6151 if test -n "$EXPECT"; then
6152 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6153else
b30fcfae 6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6161 ac_cv_prog_EXPECT="$ac_prog"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165done
6166done
6167
f5aebe3e 6168fi
6169fi
b30fcfae 6170EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 6171if test -n "$EXPECT"; then
5084f823 6172 echo "$as_me:$LINENO: result: $EXPECT" >&5
6173echo "${ECHO_T}$EXPECT" >&6
f5aebe3e 6174else
5084f823 6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
f5aebe3e 6177fi
71ab34df 6178
b30fcfae 6179 test -n "$EXPECT" && break
f5aebe3e 6180done
6181test -n "$EXPECT" || EXPECT="expect"
71ab34df 6182
f5aebe3e 6183case " $configdirs " in
6184 *" expect "*)
6185 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6186 ;;
6187esac
71ab34df 6188
f5aebe3e 6189for ac_prog in runtest
6190do
b30fcfae 6191 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6192set dummy $ac_prog; ac_word=$2
5084f823 6193echo "$as_me:$LINENO: checking for $ac_word" >&5
6194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6195if test "${ac_cv_prog_RUNTEST+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6197else
6198 if test -n "$RUNTEST"; then
6199 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 6200else
b30fcfae 6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6208 ac_cv_prog_RUNTEST="$ac_prog"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212done
6213done
6214
f5aebe3e 6215fi
6216fi
b30fcfae 6217RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 6218if test -n "$RUNTEST"; then
5084f823 6219 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6220echo "${ECHO_T}$RUNTEST" >&6
f5aebe3e 6221else
5084f823 6222 echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6
f5aebe3e 6224fi
71ab34df 6225
b30fcfae 6226 test -n "$RUNTEST" && break
f5aebe3e 6227done
6228test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 6229
f5aebe3e 6230case " $configdirs " in
6231 *" dejagnu "*)
8d365775 6232 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 6233 ;;
6234esac
71ab34df 6235
6236
71ab34df 6237# Host tools.
bb612911 6238ncn_tool_prefix=
6239test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6240ncn_target_tool_prefix=
6241test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6242
95a05732 6243
6244
6245if test -n "$AR"; then
6246 ac_cv_prog_AR=$AR
6247elif test -n "$ac_cv_prog_AR"; then
6248 AR=$ac_cv_prog_AR
6249fi
6250
6251if test -n "$ac_cv_prog_AR"; then
6252 for ncn_progname in ar; do
6253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6254set dummy ${ncn_progname}; ac_word=$2
5084f823 6255echo "$as_me:$LINENO: checking for $ac_word" >&5
6256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6257if test "${ac_cv_prog_AR+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 if test -n "$AR"; then
6261 ac_cv_prog_AR="$AR" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6270 ac_cv_prog_AR="${ncn_progname}"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274done
6275done
6276
6277fi
6278fi
6279AR=$ac_cv_prog_AR
6280if test -n "$AR"; then
5084f823 6281 echo "$as_me:$LINENO: result: $AR" >&5
6282echo "${ECHO_T}$AR" >&6
95a05732 6283else
5084f823 6284 echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
95a05732 6286fi
6287
6288 done
6289fi
6290
6291for ncn_progname in ar; do
768691b5 6292 if test -n "$ncn_tool_prefix"; then
6293 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6294set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6295echo "$as_me:$LINENO: checking for $ac_word" >&5
6296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6297if test "${ac_cv_prog_AR+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6299else
6300 if test -n "$AR"; then
6301 ac_cv_prog_AR="$AR" # Let the user override the test.
6302else
b30fcfae 6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6310 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314done
6315done
6316
bb612911 6317fi
6318fi
b30fcfae 6319AR=$ac_cv_prog_AR
bb612911 6320if test -n "$AR"; then
5084f823 6321 echo "$as_me:$LINENO: result: $AR" >&5
6322echo "${ECHO_T}$AR" >&6
bb612911 6323else
5084f823 6324 echo "$as_me:$LINENO: result: no" >&5
6325echo "${ECHO_T}no" >&6
bb612911 6326fi
6327
768691b5 6328 fi
6329 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6331set dummy ${ncn_progname}; ac_word=$2
5084f823 6332echo "$as_me:$LINENO: checking for $ac_word" >&5
6333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6334if test "${ac_cv_prog_AR+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6336else
768691b5 6337 if test -n "$AR"; then
ae48753c 6338 ac_cv_prog_AR="$AR" # Let the user override the test.
6339else
b30fcfae 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6347 ac_cv_prog_AR="${ncn_progname}"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351done
6352done
6353
bb612911 6354fi
6355fi
b30fcfae 6356AR=$ac_cv_prog_AR
768691b5 6357if test -n "$AR"; then
5084f823 6358 echo "$as_me:$LINENO: result: $AR" >&5
6359echo "${ECHO_T}$AR" >&6
bb612911 6360else
5084f823 6361 echo "$as_me:$LINENO: result: no" >&5
6362echo "${ECHO_T}no" >&6
bb612911 6363fi
b30fcfae 6364
768691b5 6365 fi
6366 test -n "$ac_cv_prog_AR" && break
6367done
6368
6369if test -z "$ac_cv_prog_AR" ; then
6370 set dummy ar
6371 if test $build = $host ; then
6372 AR="$2"
bb612911 6373 else
768691b5 6374 AR="${ncn_tool_prefix}$2"
bb612911 6375 fi
bb612911 6376fi
6377
95a05732 6378
6379
6380if test -n "$AS"; then
6381 ac_cv_prog_AS=$AS
6382elif test -n "$ac_cv_prog_AS"; then
6383 AS=$ac_cv_prog_AS
6384fi
6385
6386if test -n "$ac_cv_prog_AS"; then
6387 for ncn_progname in as; do
6388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6389set dummy ${ncn_progname}; ac_word=$2
5084f823 6390echo "$as_me:$LINENO: checking for $ac_word" >&5
6391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6392if test "${ac_cv_prog_AS+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394else
6395 if test -n "$AS"; then
6396 ac_cv_prog_AS="$AS" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6405 ac_cv_prog_AS="${ncn_progname}"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409done
6410done
6411
6412fi
6413fi
6414AS=$ac_cv_prog_AS
6415if test -n "$AS"; then
5084f823 6416 echo "$as_me:$LINENO: result: $AS" >&5
6417echo "${ECHO_T}$AS" >&6
95a05732 6418else
5084f823 6419 echo "$as_me:$LINENO: result: no" >&5
6420echo "${ECHO_T}no" >&6
95a05732 6421fi
6422
6423 done
6424fi
6425
6426for ncn_progname in as; do
768691b5 6427 if test -n "$ncn_tool_prefix"; then
6428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6429set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6430echo "$as_me:$LINENO: checking for $ac_word" >&5
6431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6432if test "${ac_cv_prog_AS+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6434else
6435 if test -n "$AS"; then
6436 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 6437else
b30fcfae 6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6445 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
6450done
6451
bb612911 6452fi
6453fi
b30fcfae 6454AS=$ac_cv_prog_AS
bb612911 6455if test -n "$AS"; then
5084f823 6456 echo "$as_me:$LINENO: result: $AS" >&5
6457echo "${ECHO_T}$AS" >&6
bb612911 6458else
5084f823 6459 echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
bb612911 6461fi
6462
768691b5 6463 fi
6464 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6466set dummy ${ncn_progname}; ac_word=$2
5084f823 6467echo "$as_me:$LINENO: checking for $ac_word" >&5
6468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6469if test "${ac_cv_prog_AS+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6471else
768691b5 6472 if test -n "$AS"; then
6473 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 6474else
b30fcfae 6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6482 ac_cv_prog_AS="${ncn_progname}"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486done
6487done
6488
bb612911 6489fi
6490fi
b30fcfae 6491AS=$ac_cv_prog_AS
768691b5 6492if test -n "$AS"; then
5084f823 6493 echo "$as_me:$LINENO: result: $AS" >&5
6494echo "${ECHO_T}$AS" >&6
bb612911 6495else
5084f823 6496 echo "$as_me:$LINENO: result: no" >&5
6497echo "${ECHO_T}no" >&6
bb612911 6498fi
b30fcfae 6499
768691b5 6500 fi
6501 test -n "$ac_cv_prog_AS" && break
6502done
6503
6504if test -z "$ac_cv_prog_AS" ; then
6505 set dummy as
6506 if test $build = $host ; then
6507 AS="$2"
bb612911 6508 else
768691b5 6509 AS="${ncn_tool_prefix}$2"
bb612911 6510 fi
bb612911 6511fi
6512
95a05732 6513
6514
6515if test -n "$DLLTOOL"; then
6516 ac_cv_prog_DLLTOOL=$DLLTOOL
6517elif test -n "$ac_cv_prog_DLLTOOL"; then
6518 DLLTOOL=$ac_cv_prog_DLLTOOL
6519fi
6520
6521if test -n "$ac_cv_prog_DLLTOOL"; then
6522 for ncn_progname in dlltool; do
6523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6524set dummy ${ncn_progname}; ac_word=$2
5084f823 6525echo "$as_me:$LINENO: checking for $ac_word" >&5
6526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6527if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530 if test -n "$DLLTOOL"; then
6531 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6540 ac_cv_prog_DLLTOOL="${ncn_progname}"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544done
6545done
6546
6547fi
6548fi
6549DLLTOOL=$ac_cv_prog_DLLTOOL
6550if test -n "$DLLTOOL"; then
5084f823 6551 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6552echo "${ECHO_T}$DLLTOOL" >&6
95a05732 6553else
5084f823 6554 echo "$as_me:$LINENO: result: no" >&5
6555echo "${ECHO_T}no" >&6
95a05732 6556fi
6557
6558 done
6559fi
6560
6561for ncn_progname in dlltool; do
768691b5 6562 if test -n "$ncn_tool_prefix"; then
6563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6564set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6565echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6567if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6569else
6570 if test -n "$DLLTOOL"; then
6571 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6572else
b30fcfae 6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6580 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584done
6585done
6586
bb612911 6587fi
6588fi
b30fcfae 6589DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 6590if test -n "$DLLTOOL"; then
5084f823 6591 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6592echo "${ECHO_T}$DLLTOOL" >&6
bb612911 6593else
5084f823 6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
bb612911 6596fi
6597
768691b5 6598 fi
6599 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6601set dummy ${ncn_progname}; ac_word=$2
5084f823 6602echo "$as_me:$LINENO: checking for $ac_word" >&5
6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6604if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6606else
768691b5 6607 if test -n "$DLLTOOL"; then
6608 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 6609else
b30fcfae 6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6617 ac_cv_prog_DLLTOOL="${ncn_progname}"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621done
6622done
6623
bb612911 6624fi
6625fi
b30fcfae 6626DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 6627if test -n "$DLLTOOL"; then
5084f823 6628 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6629echo "${ECHO_T}$DLLTOOL" >&6
bb612911 6630else
5084f823 6631 echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6
bb612911 6633fi
b30fcfae 6634
768691b5 6635 fi
6636 test -n "$ac_cv_prog_DLLTOOL" && break
6637done
6638
6639if test -z "$ac_cv_prog_DLLTOOL" ; then
6640 set dummy dlltool
6641 if test $build = $host ; then
6642 DLLTOOL="$2"
bb612911 6643 else
768691b5 6644 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 6645 fi
bb612911 6646fi
6647
95a05732 6648
6649
6650if test -n "$LD"; then
6651 ac_cv_prog_LD=$LD
6652elif test -n "$ac_cv_prog_LD"; then
6653 LD=$ac_cv_prog_LD
6654fi
6655
6656if test -n "$ac_cv_prog_LD"; then
6657 for ncn_progname in ld; do
6658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6659set dummy ${ncn_progname}; ac_word=$2
5084f823 6660echo "$as_me:$LINENO: checking for $ac_word" >&5
6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6662if test "${ac_cv_prog_LD+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665 if test -n "$LD"; then
6666 ac_cv_prog_LD="$LD" # Let the user override the test.
6667else
6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6675 ac_cv_prog_LD="${ncn_progname}"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6678 fi
6679done
6680done
6681
6682fi
6683fi
6684LD=$ac_cv_prog_LD
6685if test -n "$LD"; then
5084f823 6686 echo "$as_me:$LINENO: result: $LD" >&5
6687echo "${ECHO_T}$LD" >&6
95a05732 6688else
5084f823 6689 echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6
95a05732 6691fi
6692
6693 done
6694fi
6695
6696for ncn_progname in ld; do
768691b5 6697 if test -n "$ncn_tool_prefix"; then
6698 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6699set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6700echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6702if test "${ac_cv_prog_LD+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6704else
6705 if test -n "$LD"; then
6706 ac_cv_prog_LD="$LD" # Let the user override the test.
6707else
b30fcfae 6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6715 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720done
6721
bb612911 6722fi
6723fi
b30fcfae 6724LD=$ac_cv_prog_LD
bb612911 6725if test -n "$LD"; then
5084f823 6726 echo "$as_me:$LINENO: result: $LD" >&5
6727echo "${ECHO_T}$LD" >&6
bb612911 6728else
5084f823 6729 echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6
bb612911 6731fi
6732
768691b5 6733 fi
6734 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6736set dummy ${ncn_progname}; ac_word=$2
5084f823 6737echo "$as_me:$LINENO: checking for $ac_word" >&5
6738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6739if test "${ac_cv_prog_LD+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6741else
768691b5 6742 if test -n "$LD"; then
6743 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 6744else
b30fcfae 6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6752 ac_cv_prog_LD="${ncn_progname}"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756done
6757done
6758
bb612911 6759fi
6760fi
b30fcfae 6761LD=$ac_cv_prog_LD
768691b5 6762if test -n "$LD"; then
5084f823 6763 echo "$as_me:$LINENO: result: $LD" >&5
6764echo "${ECHO_T}$LD" >&6
bb612911 6765else
5084f823 6766 echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
bb612911 6768fi
b30fcfae 6769
768691b5 6770 fi
6771 test -n "$ac_cv_prog_LD" && break
6772done
6773
6774if test -z "$ac_cv_prog_LD" ; then
6775 set dummy ld
6776 if test $build = $host ; then
6777 LD="$2"
bb612911 6778 else
768691b5 6779 LD="${ncn_tool_prefix}$2"
bb612911 6780 fi
bb612911 6781fi
6782
95a05732 6783
6784
6785if test -n "$LIPO"; then
6786 ac_cv_prog_LIPO=$LIPO
6787elif test -n "$ac_cv_prog_LIPO"; then
6788 LIPO=$ac_cv_prog_LIPO
6789fi
6790
6791if test -n "$ac_cv_prog_LIPO"; then
6792 for ncn_progname in lipo; do
6793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6794set dummy ${ncn_progname}; ac_word=$2
5084f823 6795echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6797if test "${ac_cv_prog_LIPO+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800 if test -n "$LIPO"; then
6801 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6810 ac_cv_prog_LIPO="${ncn_progname}"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814done
6815done
6816
6817fi
6818fi
6819LIPO=$ac_cv_prog_LIPO
6820if test -n "$LIPO"; then
5084f823 6821 echo "$as_me:$LINENO: result: $LIPO" >&5
6822echo "${ECHO_T}$LIPO" >&6
95a05732 6823else
5084f823 6824 echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6
95a05732 6826fi
6827
6828 done
6829fi
6830
6831for ncn_progname in lipo; do
f5aebe3e 6832 if test -n "$ncn_tool_prefix"; then
6833 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6834set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6835echo "$as_me:$LINENO: checking for $ac_word" >&5
6836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6837if test "${ac_cv_prog_LIPO+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6839else
6840 if test -n "$LIPO"; then
6841 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6842else
b30fcfae 6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6850 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854done
6855done
6856
f5aebe3e 6857fi
6858fi
b30fcfae 6859LIPO=$ac_cv_prog_LIPO
f5aebe3e 6860if test -n "$LIPO"; then
5084f823 6861 echo "$as_me:$LINENO: result: $LIPO" >&5
6862echo "${ECHO_T}$LIPO" >&6
f5aebe3e 6863else
5084f823 6864 echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6
f5aebe3e 6866fi
6867
6868 fi
6869 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6871set dummy ${ncn_progname}; ac_word=$2
5084f823 6872echo "$as_me:$LINENO: checking for $ac_word" >&5
6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6874if test "${ac_cv_prog_LIPO+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6876else
6877 if test -n "$LIPO"; then
6878 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6879else
b30fcfae 6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6887 ac_cv_prog_LIPO="${ncn_progname}"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891done
6892done
6893
f5aebe3e 6894fi
6895fi
b30fcfae 6896LIPO=$ac_cv_prog_LIPO
f5aebe3e 6897if test -n "$LIPO"; then
5084f823 6898 echo "$as_me:$LINENO: result: $LIPO" >&5
6899echo "${ECHO_T}$LIPO" >&6
f5aebe3e 6900else
5084f823 6901 echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6
f5aebe3e 6903fi
b30fcfae 6904
f5aebe3e 6905 fi
6906 test -n "$ac_cv_prog_LIPO" && break
6907done
6908
6909if test -z "$ac_cv_prog_LIPO" ; then
6910 set dummy lipo
6911 if test $build = $host ; then
6912 LIPO="$2"
6913 else
6914 LIPO="${ncn_tool_prefix}$2"
6915 fi
6916fi
6917
95a05732 6918
6919
6920if test -n "$NM"; then
6921 ac_cv_prog_NM=$NM
6922elif test -n "$ac_cv_prog_NM"; then
6923 NM=$ac_cv_prog_NM
6924fi
6925
6926if test -n "$ac_cv_prog_NM"; then
6927 for ncn_progname in nm; do
6928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6929set dummy ${ncn_progname}; ac_word=$2
5084f823 6930echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6932if test "${ac_cv_prog_NM+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6934else
6935 if test -n "$NM"; then
6936 ac_cv_prog_NM="$NM" # Let the user override the test.
6937else
b30fcfae 6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6945 ac_cv_prog_NM="${ncn_progname}"
b30fcfae 6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950done
6951
bb612911 6952fi
6953fi
b30fcfae 6954NM=$ac_cv_prog_NM
bb612911 6955if test -n "$NM"; then
5084f823 6956 echo "$as_me:$LINENO: result: $NM" >&5
6957echo "${ECHO_T}$NM" >&6
bb612911 6958else
5084f823 6959 echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6
bb612911 6961fi
6962
95a05732 6963 done
6964fi
6965
6966for ncn_progname in nm; do
6967 if test -n "$ncn_tool_prefix"; then
6968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6969set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6970echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6972if test "${ac_cv_prog_NM+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6974else
768691b5 6975 if test -n "$NM"; then
6976 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 6977else
b30fcfae 6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6985 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
b30fcfae 6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989done
6990done
6991
bb612911 6992fi
6993fi
b30fcfae 6994NM=$ac_cv_prog_NM
768691b5 6995if test -n "$NM"; then
5084f823 6996 echo "$as_me:$LINENO: result: $NM" >&5
6997echo "${ECHO_T}$NM" >&6
bb612911 6998else
5084f823 6999 echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6
bb612911 7001fi
b30fcfae 7002
768691b5 7003 fi
95a05732 7004 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7006set dummy ${ncn_progname}; ac_word=$2
5084f823 7007echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7009if test "${ac_cv_prog_NM+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 if test -n "$NM"; then
7013 ac_cv_prog_NM="$NM" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7022 ac_cv_prog_NM="${ncn_progname}"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026done
7027done
7028
7029fi
7030fi
7031NM=$ac_cv_prog_NM
7032if test -n "$NM"; then
5084f823 7033 echo "$as_me:$LINENO: result: $NM" >&5
7034echo "${ECHO_T}$NM" >&6
95a05732 7035else
5084f823 7036 echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6
95a05732 7038fi
7039
7040 fi
7041 test -n "$ac_cv_prog_NM" && break
7042done
7043
7044if test -z "$ac_cv_prog_NM" ; then
7045 set dummy nm
7046 if test $build = $host ; then
7047 NM="$2"
7048 else
7049 NM="${ncn_tool_prefix}$2"
7050 fi
7051fi
7052
7053
7054
7055if test -n "$RANLIB"; then
7056 ac_cv_prog_RANLIB=$RANLIB
7057elif test -n "$ac_cv_prog_RANLIB"; then
7058 RANLIB=$ac_cv_prog_RANLIB
7059fi
7060
7061if test -n "$ac_cv_prog_RANLIB"; then
7062 for ncn_progname in ranlib; do
7063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7064set dummy ${ncn_progname}; ac_word=$2
5084f823 7065echo "$as_me:$LINENO: checking for $ac_word" >&5
7066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7067if test "${ac_cv_prog_RANLIB+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070 if test -n "$RANLIB"; then
7071 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7080 ac_cv_prog_RANLIB="${ncn_progname}"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084done
7085done
7086
7087fi
7088fi
7089RANLIB=$ac_cv_prog_RANLIB
7090if test -n "$RANLIB"; then
5084f823 7091 echo "$as_me:$LINENO: result: $RANLIB" >&5
7092echo "${ECHO_T}$RANLIB" >&6
95a05732 7093else
5084f823 7094 echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6
95a05732 7096fi
7097
7098 done
7099fi
bb612911 7100
95a05732 7101for ncn_progname in ranlib; do
768691b5 7102 if test -n "$ncn_tool_prefix"; then
7103 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7104set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7105echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7107if test "${ac_cv_prog_RANLIB+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7109else
7110 if test -n "$RANLIB"; then
7111 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7112else
b30fcfae 7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7120 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126
bb612911 7127fi
7128fi
b30fcfae 7129RANLIB=$ac_cv_prog_RANLIB
bb612911 7130if test -n "$RANLIB"; then
5084f823 7131 echo "$as_me:$LINENO: result: $RANLIB" >&5
7132echo "${ECHO_T}$RANLIB" >&6
bb612911 7133else
5084f823 7134 echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6
bb612911 7136fi
7137
768691b5 7138 fi
7139 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7141set dummy ${ncn_progname}; ac_word=$2
5084f823 7142echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7144if test "${ac_cv_prog_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7146else
768691b5 7147 if test -n "$RANLIB"; then
7148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 7149else
b30fcfae 7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7157 ac_cv_prog_RANLIB="${ncn_progname}"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161done
7162done
7163
bb612911 7164fi
7165fi
b30fcfae 7166RANLIB=$ac_cv_prog_RANLIB
768691b5 7167if test -n "$RANLIB"; then
5084f823 7168 echo "$as_me:$LINENO: result: $RANLIB" >&5
7169echo "${ECHO_T}$RANLIB" >&6
bb612911 7170else
5084f823 7171 echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6
bb612911 7173fi
b30fcfae 7174
bb612911 7175 fi
768691b5 7176 test -n "$ac_cv_prog_RANLIB" && break
7177done
7178
7179if test -z "$ac_cv_prog_RANLIB" ; then
7180 RANLIB=":"
bb612911 7181fi
7182
95a05732 7183
7184
7185if test -n "$STRIP"; then
7186 ac_cv_prog_STRIP=$STRIP
7187elif test -n "$ac_cv_prog_STRIP"; then
7188 STRIP=$ac_cv_prog_STRIP
7189fi
7190
7191if test -n "$ac_cv_prog_STRIP"; then
7192 for ncn_progname in strip; do
7193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7194set dummy ${ncn_progname}; ac_word=$2
5084f823 7195echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7197if test "${ac_cv_prog_STRIP+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 if test -n "$STRIP"; then
7201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7210 ac_cv_prog_STRIP="${ncn_progname}"
7211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214done
7215done
7216
7217fi
7218fi
7219STRIP=$ac_cv_prog_STRIP
7220if test -n "$STRIP"; then
5084f823 7221 echo "$as_me:$LINENO: result: $STRIP" >&5
7222echo "${ECHO_T}$STRIP" >&6
95a05732 7223else
5084f823 7224 echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6
95a05732 7226fi
7227
7228 done
7229fi
7230
7231for ncn_progname in strip; do
f5aebe3e 7232 if test -n "$ncn_tool_prefix"; then
7233 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7234set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7235echo "$as_me:$LINENO: checking for $ac_word" >&5
7236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7237if test "${ac_cv_prog_STRIP+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7239else
7240 if test -n "$STRIP"; then
7241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7242else
b30fcfae 7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7250 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254done
7255done
7256
f5aebe3e 7257fi
7258fi
b30fcfae 7259STRIP=$ac_cv_prog_STRIP
f5aebe3e 7260if test -n "$STRIP"; then
5084f823 7261 echo "$as_me:$LINENO: result: $STRIP" >&5
7262echo "${ECHO_T}$STRIP" >&6
f5aebe3e 7263else
5084f823 7264 echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6
f5aebe3e 7266fi
7267
7268 fi
7269 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7271set dummy ${ncn_progname}; ac_word=$2
5084f823 7272echo "$as_me:$LINENO: checking for $ac_word" >&5
7273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7274if test "${ac_cv_prog_STRIP+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7276else
7277 if test -n "$STRIP"; then
7278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7279else
b30fcfae 7280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7287 ac_cv_prog_STRIP="${ncn_progname}"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291done
7292done
7293
f5aebe3e 7294fi
7295fi
b30fcfae 7296STRIP=$ac_cv_prog_STRIP
f5aebe3e 7297if test -n "$STRIP"; then
5084f823 7298 echo "$as_me:$LINENO: result: $STRIP" >&5
7299echo "${ECHO_T}$STRIP" >&6
f5aebe3e 7300else
5084f823 7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
f5aebe3e 7303fi
b30fcfae 7304
f5aebe3e 7305 fi
7306 test -n "$ac_cv_prog_STRIP" && break
7307done
7308
7309if test -z "$ac_cv_prog_STRIP" ; then
7310 STRIP=":"
7311fi
7312
95a05732 7313
7314
7315if test -n "$WINDRES"; then
7316 ac_cv_prog_WINDRES=$WINDRES
7317elif test -n "$ac_cv_prog_WINDRES"; then
7318 WINDRES=$ac_cv_prog_WINDRES
7319fi
7320
7321if test -n "$ac_cv_prog_WINDRES"; then
7322 for ncn_progname in windres; do
7323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7324set dummy ${ncn_progname}; ac_word=$2
5084f823 7325echo "$as_me:$LINENO: checking for $ac_word" >&5
7326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7327if test "${ac_cv_prog_WINDRES+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330 if test -n "$WINDRES"; then
7331 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7332else
7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7340 ac_cv_prog_WINDRES="${ncn_progname}"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344done
7345done
7346
7347fi
7348fi
7349WINDRES=$ac_cv_prog_WINDRES
7350if test -n "$WINDRES"; then
5084f823 7351 echo "$as_me:$LINENO: result: $WINDRES" >&5
7352echo "${ECHO_T}$WINDRES" >&6
95a05732 7353else
5084f823 7354 echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
95a05732 7356fi
7357
7358 done
7359fi
7360
7361for ncn_progname in windres; do
768691b5 7362 if test -n "$ncn_tool_prefix"; then
7363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7364set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7365echo "$as_me:$LINENO: checking for $ac_word" >&5
7366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7367if test "${ac_cv_prog_WINDRES+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7369else
7370 if test -n "$WINDRES"; then
7371 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7372else
b30fcfae 7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7380 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384done
7385done
7386
bb612911 7387fi
7388fi
b30fcfae 7389WINDRES=$ac_cv_prog_WINDRES
bb612911 7390if test -n "$WINDRES"; then
5084f823 7391 echo "$as_me:$LINENO: result: $WINDRES" >&5
7392echo "${ECHO_T}$WINDRES" >&6
bb612911 7393else
5084f823 7394 echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
bb612911 7396fi
7397
768691b5 7398 fi
7399 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7401set dummy ${ncn_progname}; ac_word=$2
5084f823 7402echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7404if test "${ac_cv_prog_WINDRES+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7406else
768691b5 7407 if test -n "$WINDRES"; then
7408 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 7409else
b30fcfae 7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7417 ac_cv_prog_WINDRES="${ncn_progname}"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422done
7423
bb612911 7424fi
7425fi
b30fcfae 7426WINDRES=$ac_cv_prog_WINDRES
768691b5 7427if test -n "$WINDRES"; then
5084f823 7428 echo "$as_me:$LINENO: result: $WINDRES" >&5
7429echo "${ECHO_T}$WINDRES" >&6
bb612911 7430else
5084f823 7431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
bb612911 7433fi
b30fcfae 7434
768691b5 7435 fi
7436 test -n "$ac_cv_prog_WINDRES" && break
7437done
7438
7439if test -z "$ac_cv_prog_WINDRES" ; then
7440 set dummy windres
7441 if test $build = $host ; then
7442 WINDRES="$2"
bb612911 7443 else
768691b5 7444 WINDRES="${ncn_tool_prefix}$2"
bb612911 7445 fi
bb612911 7446fi
7447
95a05732 7448
7449
75d6a0a9 7450if test -n "$WINDMC"; then
7451 ac_cv_prog_WINDMC=$WINDMC
7452elif test -n "$ac_cv_prog_WINDMC"; then
7453 WINDMC=$ac_cv_prog_WINDMC
7454fi
7455
7456if test -n "$ac_cv_prog_WINDMC"; then
7457 for ncn_progname in windmc; do
7458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7459set dummy ${ncn_progname}; ac_word=$2
7460echo "$as_me:$LINENO: checking for $ac_word" >&5
7461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462if test "${ac_cv_prog_WINDMC+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465 if test -n "$WINDMC"; then
7466 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7467else
7468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_WINDMC="${ncn_progname}"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 break 2
7478 fi
7479done
7480done
7481
7482fi
7483fi
7484WINDMC=$ac_cv_prog_WINDMC
7485if test -n "$WINDMC"; then
7486 echo "$as_me:$LINENO: result: $WINDMC" >&5
7487echo "${ECHO_T}$WINDMC" >&6
7488else
7489 echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6
7491fi
7492
7493 done
7494fi
7495
7496for ncn_progname in windmc; do
7497 if test -n "$ncn_tool_prefix"; then
7498 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7499set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7500echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7502if test "${ac_cv_prog_WINDMC+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505 if test -n "$WINDMC"; then
7506 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519done
7520done
7521
7522fi
7523fi
7524WINDMC=$ac_cv_prog_WINDMC
7525if test -n "$WINDMC"; then
7526 echo "$as_me:$LINENO: result: $WINDMC" >&5
7527echo "${ECHO_T}$WINDMC" >&6
7528else
7529 echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6
7531fi
7532
7533 fi
7534 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7536set dummy ${ncn_progname}; ac_word=$2
7537echo "$as_me:$LINENO: checking for $ac_word" >&5
7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7539if test "${ac_cv_prog_WINDMC+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 if test -n "$WINDMC"; then
7543 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7544else
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_WINDMC="${ncn_progname}"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7555 fi
7556done
7557done
7558
7559fi
7560fi
7561WINDMC=$ac_cv_prog_WINDMC
7562if test -n "$WINDMC"; then
7563 echo "$as_me:$LINENO: result: $WINDMC" >&5
7564echo "${ECHO_T}$WINDMC" >&6
7565else
7566 echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6
7568fi
7569
7570 fi
7571 test -n "$ac_cv_prog_WINDMC" && break
7572done
7573
7574if test -z "$ac_cv_prog_WINDMC" ; then
7575 set dummy windmc
7576 if test $build = $host ; then
7577 WINDMC="$2"
7578 else
7579 WINDMC="${ncn_tool_prefix}$2"
7580 fi
7581fi
7582
7583
7584
95a05732 7585if test -n "$OBJCOPY"; then
7586 ac_cv_prog_OBJCOPY=$OBJCOPY
7587elif test -n "$ac_cv_prog_OBJCOPY"; then
7588 OBJCOPY=$ac_cv_prog_OBJCOPY
7589fi
7590
7591if test -n "$ac_cv_prog_OBJCOPY"; then
7592 for ncn_progname in objcopy; do
7593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7594set dummy ${ncn_progname}; ac_word=$2
5084f823 7595echo "$as_me:$LINENO: checking for $ac_word" >&5
7596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7597if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600 if test -n "$OBJCOPY"; then
7601 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7610 ac_cv_prog_OBJCOPY="${ncn_progname}"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614done
7615done
7616
7617fi
7618fi
7619OBJCOPY=$ac_cv_prog_OBJCOPY
7620if test -n "$OBJCOPY"; then
5084f823 7621 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7622echo "${ECHO_T}$OBJCOPY" >&6
95a05732 7623else
5084f823 7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
95a05732 7626fi
7627
7628 done
7629fi
7630
7631for ncn_progname in objcopy; do
768691b5 7632 if test -n "$ncn_tool_prefix"; then
7633 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7634set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7635echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7637if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7639else
7640 if test -n "$OBJCOPY"; then
7641 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7642else
b30fcfae 7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7650 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654done
7655done
7656
bb612911 7657fi
7658fi
b30fcfae 7659OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 7660if test -n "$OBJCOPY"; then
5084f823 7661 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7662echo "${ECHO_T}$OBJCOPY" >&6
bb612911 7663else
5084f823 7664 echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
bb612911 7666fi
7667
768691b5 7668 fi
7669 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7671set dummy ${ncn_progname}; ac_word=$2
5084f823 7672echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7674if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7676else
768691b5 7677 if test -n "$OBJCOPY"; then
7678 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 7679else
b30fcfae 7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7687 ac_cv_prog_OBJCOPY="${ncn_progname}"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691done
7692done
7693
bb612911 7694fi
7695fi
b30fcfae 7696OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 7697if test -n "$OBJCOPY"; then
5084f823 7698 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7699echo "${ECHO_T}$OBJCOPY" >&6
bb612911 7700else
5084f823 7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
bb612911 7703fi
b30fcfae 7704
768691b5 7705 fi
7706 test -n "$ac_cv_prog_OBJCOPY" && break
7707done
7708
7709if test -z "$ac_cv_prog_OBJCOPY" ; then
7710 set dummy objcopy
7711 if test $build = $host ; then
7712 OBJCOPY="$2"
bb612911 7713 else
768691b5 7714 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 7715 fi
bb612911 7716fi
7717
95a05732 7718
7719
7720if test -n "$OBJDUMP"; then
7721 ac_cv_prog_OBJDUMP=$OBJDUMP
7722elif test -n "$ac_cv_prog_OBJDUMP"; then
7723 OBJDUMP=$ac_cv_prog_OBJDUMP
7724fi
7725
7726if test -n "$ac_cv_prog_OBJDUMP"; then
7727 for ncn_progname in objdump; do
7728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7729set dummy ${ncn_progname}; ac_word=$2
5084f823 7730echo "$as_me:$LINENO: checking for $ac_word" >&5
7731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7732if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735 if test -n "$OBJDUMP"; then
7736 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7745 ac_cv_prog_OBJDUMP="${ncn_progname}"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750done
7751
7752fi
7753fi
7754OBJDUMP=$ac_cv_prog_OBJDUMP
7755if test -n "$OBJDUMP"; then
5084f823 7756 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7757echo "${ECHO_T}$OBJDUMP" >&6
95a05732 7758else
5084f823 7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
95a05732 7761fi
7762
7763 done
7764fi
7765
7766for ncn_progname in objdump; do
768691b5 7767 if test -n "$ncn_tool_prefix"; then
7768 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7769set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7770echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7772if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7774else
7775 if test -n "$OBJDUMP"; then
7776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7777else
b30fcfae 7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7785 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790done
7791
bb612911 7792fi
7793fi
b30fcfae 7794OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 7795if test -n "$OBJDUMP"; then
5084f823 7796 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7797echo "${ECHO_T}$OBJDUMP" >&6
bb612911 7798else
5084f823 7799 echo "$as_me:$LINENO: result: no" >&5
7800echo "${ECHO_T}no" >&6
bb612911 7801fi
7802
768691b5 7803 fi
7804 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7806set dummy ${ncn_progname}; ac_word=$2
5084f823 7807echo "$as_me:$LINENO: checking for $ac_word" >&5
7808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7809if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7811else
768691b5 7812 if test -n "$OBJDUMP"; then
7813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 7814else
b30fcfae 7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7822 ac_cv_prog_OBJDUMP="${ncn_progname}"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826done
7827done
7828
bb612911 7829fi
7830fi
b30fcfae 7831OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 7832if test -n "$OBJDUMP"; then
5084f823 7833 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7834echo "${ECHO_T}$OBJDUMP" >&6
bb612911 7835else
5084f823 7836 echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6
bb612911 7838fi
b30fcfae 7839
768691b5 7840 fi
7841 test -n "$ac_cv_prog_OBJDUMP" && break
7842done
7843
7844if test -z "$ac_cv_prog_OBJDUMP" ; then
7845 set dummy objdump
7846 if test $build = $host ; then
7847 OBJDUMP="$2"
bb612911 7848 else
768691b5 7849 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 7850 fi
bb612911 7851fi
7852
71ab34df 7853
7854
7855
7856
7857
7858
f5aebe3e 7859# Target tools.
b30fcfae 7860
5084f823 7861# Check whether --with-build-time-tools or --without-build-time-tools was given.
c47832b1 7862if test "${with_build_time_tools+set}" = set; then
5084f823 7863 withval="$with_build_time_tools"
7864 case x"$withval" in
c47832b1 7865 x/*) ;;
7866 *)
7867 with_build_time_tools=
b30fcfae 7868 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7869echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 7870 ;;
7871 esac
bb612911 7872else
c47832b1 7873 with_build_time_tools=
5084f823 7874fi;
bb612911 7875
95a05732 7876
7877
7878if test -n "$CC_FOR_TARGET"; then
7879 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7880elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7881 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7882fi
7883
7884if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7885 for ncn_progname in cc gcc; do
7886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7887set dummy ${ncn_progname}; ac_word=$2
5084f823 7888echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7890if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893 if test -n "$CC_FOR_TARGET"; then
7894 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7903 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907done
7908done
7909
7910fi
7911fi
7912CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7913if test -n "$CC_FOR_TARGET"; then
5084f823 7914 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7915echo "${ECHO_T}$CC_FOR_TARGET" >&6
95a05732 7916else
5084f823 7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
95a05732 7919fi
7920
7921 done
7922fi
7923
7924if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 7925 for ncn_progname in cc gcc; do
5084f823 7926 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7927echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 7928 if test -x $with_build_time_tools/${ncn_progname}; then
7929 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 7930 echo "$as_me:$LINENO: result: yes" >&5
7931echo "${ECHO_T}yes" >&6
9886f3d1 7932 break
c47832b1 7933 else
5084f823 7934 echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6
9886f3d1 7936 fi
7937 done
ef8184c7 7938fi
7939
c47832b1 7940if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7941 for ncn_progname in cc gcc; do
7942 if test -n "$ncn_target_tool_prefix"; then
7943 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 7944set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7945echo "$as_me:$LINENO: checking for $ac_word" >&5
7946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7947if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 7949else
7950 if test -n "$CC_FOR_TARGET"; then
7951 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7952else
b30fcfae 7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7960 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964done
7965done
7966
ef8184c7 7967fi
7968fi
b30fcfae 7969CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 7970if test -n "$CC_FOR_TARGET"; then
5084f823 7971 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7972echo "${ECHO_T}$CC_FOR_TARGET" >&6
ef8184c7 7973else
5084f823 7974 echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6
ef8184c7 7976fi
7977
c47832b1 7978 fi
7979 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 7981set dummy ${ncn_progname}; ac_word=$2
5084f823 7982echo "$as_me:$LINENO: checking for $ac_word" >&5
7983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7984if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 7986else
768691b5 7987 if test -n "$CC_FOR_TARGET"; then
7988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 7989else
b30fcfae 7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001done
8002done
8003
ef8184c7 8004fi
8005fi
b30fcfae 8006CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 8007if test -n "$CC_FOR_TARGET"; then
5084f823 8008 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8009echo "${ECHO_T}$CC_FOR_TARGET" >&6
ef8184c7 8010else
5084f823 8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
ef8184c7 8013fi
b30fcfae 8014
c47832b1 8015 fi
8016 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8017 done
8018fi
b30fcfae 8019
768691b5 8020if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8021 set dummy cc gcc
8022 if test $build = $target ; then
8023 CC_FOR_TARGET="$2"
ef8184c7 8024 else
768691b5 8025 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 8026 fi
b7ef8464 8027else
8028 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 8029fi
8030
95a05732 8031
8032
8033if test -n "$CXX_FOR_TARGET"; then
8034 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8035elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8036 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8037fi
8038
8039if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8040 for ncn_progname in c++ g++ cxx gxx; do
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042set dummy ${ncn_progname}; ac_word=$2
5084f823 8043echo "$as_me:$LINENO: checking for $ac_word" >&5
8044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8045if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048 if test -n "$CXX_FOR_TARGET"; then
8049 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8050else
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8058 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062done
8063done
8064
8065fi
8066fi
8067CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8068if test -n "$CXX_FOR_TARGET"; then
5084f823 8069 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8070echo "${ECHO_T}$CXX_FOR_TARGET" >&6
95a05732 8071else
5084f823 8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
95a05732 8074fi
8075
8076 done
8077fi
8078
8079if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8080 for ncn_progname in c++ g++ cxx gxx; do
5084f823 8081 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8082echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8083 if test -x $with_build_time_tools/${ncn_progname}; then
8084 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8085 echo "$as_me:$LINENO: result: yes" >&5
8086echo "${ECHO_T}yes" >&6
c47832b1 8087 break
8088 else
5084f823 8089 echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6
c47832b1 8091 fi
8092 done
8093fi
8094
8095if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8096 for ncn_progname in c++ g++ cxx gxx; do
8097 if test -n "$ncn_target_tool_prefix"; then
8098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8099set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8100echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8102if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8104else
8105 if test -n "$CXX_FOR_TARGET"; then
8106 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8107else
b30fcfae 8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8115 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119done
8120done
8121
ef8184c7 8122fi
8123fi
b30fcfae 8124CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 8125if test -n "$CXX_FOR_TARGET"; then
5084f823 8126 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8127echo "${ECHO_T}$CXX_FOR_TARGET" >&6
ef8184c7 8128else
5084f823 8129 echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6
ef8184c7 8131fi
8132
c47832b1 8133 fi
8134 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 8136set dummy ${ncn_progname}; ac_word=$2
5084f823 8137echo "$as_me:$LINENO: checking for $ac_word" >&5
8138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8139if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8141else
768691b5 8142 if test -n "$CXX_FOR_TARGET"; then
8143 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 8144else
b30fcfae 8145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146for as_dir in $PATH
8147do
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8152 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8155 fi
8156done
8157done
8158
ef8184c7 8159fi
8160fi
b30fcfae 8161CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 8162if test -n "$CXX_FOR_TARGET"; then
5084f823 8163 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8164echo "${ECHO_T}$CXX_FOR_TARGET" >&6
ef8184c7 8165else
5084f823 8166 echo "$as_me:$LINENO: result: no" >&5
8167echo "${ECHO_T}no" >&6
ef8184c7 8168fi
b30fcfae 8169
c47832b1 8170 fi
8171 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8172 done
8173fi
b30fcfae 8174
768691b5 8175if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8176 set dummy c++ g++ cxx gxx
8177 if test $build = $target ; then
8178 CXX_FOR_TARGET="$2"
ef8184c7 8179 else
768691b5 8180 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 8181 fi
b7ef8464 8182else
8183 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 8184fi
8185
95a05732 8186
8187
8188if test -n "$GCC_FOR_TARGET"; then
8189 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8190elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8191 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8192fi
8193
8194if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8195 for ncn_progname in gcc; do
8196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8197set dummy ${ncn_progname}; ac_word=$2
5084f823 8198echo "$as_me:$LINENO: checking for $ac_word" >&5
8199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8200if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 if test -n "$GCC_FOR_TARGET"; then
8204 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8205else
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8213 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217done
8218done
8219
8220fi
8221fi
8222GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8223if test -n "$GCC_FOR_TARGET"; then
5084f823 8224 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8225echo "${ECHO_T}$GCC_FOR_TARGET" >&6
95a05732 8226else
5084f823 8227 echo "$as_me:$LINENO: result: no" >&5
8228echo "${ECHO_T}no" >&6
95a05732 8229fi
8230
8231 done
8232fi
8233
8234if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8235 for ncn_progname in gcc; do
5084f823 8236 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8237echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8238 if test -x $with_build_time_tools/${ncn_progname}; then
8239 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8240 echo "$as_me:$LINENO: result: yes" >&5
8241echo "${ECHO_T}yes" >&6
c47832b1 8242 break
8243 else
5084f823 8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
c47832b1 8246 fi
8247 done
8248fi
8249
8250if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8251 for ncn_progname in gcc; do
8252 if test -n "$ncn_target_tool_prefix"; then
8253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8254set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8255echo "$as_me:$LINENO: checking for $ac_word" >&5
8256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8257if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8259else
c47832b1 8260 if test -n "$GCC_FOR_TARGET"; then
8261 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 8262else
b30fcfae 8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264for as_dir in $PATH
8265do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8270 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274done
8275done
8276
bb612911 8277fi
8278fi
b30fcfae 8279GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 8280if test -n "$GCC_FOR_TARGET"; then
5084f823 8281 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8282echo "${ECHO_T}$GCC_FOR_TARGET" >&6
bb612911 8283else
5084f823 8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
bb612911 8286fi
8287
c47832b1 8288 fi
8289 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 8291set dummy ${ncn_progname}; ac_word=$2
5084f823 8292echo "$as_me:$LINENO: checking for $ac_word" >&5
8293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8294if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8296else
c47832b1 8297 if test -n "$GCC_FOR_TARGET"; then
8298 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 8299else
b30fcfae 8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8307 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311done
8312done
8313
bb612911 8314fi
8315fi
b30fcfae 8316GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 8317if test -n "$GCC_FOR_TARGET"; then
5084f823 8318 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8319echo "${ECHO_T}$GCC_FOR_TARGET" >&6
bb612911 8320else
5084f823 8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
bb612911 8323fi
b30fcfae 8324
c47832b1 8325 fi
8326 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8327 done
8328fi
b30fcfae 8329
c47832b1 8330if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8331 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 8332else
8333 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 8334fi
8335
95a05732 8336
8337
8338if test -n "$GCJ_FOR_TARGET"; then
8339 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8340elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8341 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8342fi
8343
8344if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8345 for ncn_progname in gcj; do
8346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8347set dummy ${ncn_progname}; ac_word=$2
5084f823 8348echo "$as_me:$LINENO: checking for $ac_word" >&5
8349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8350if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 if test -n "$GCJ_FOR_TARGET"; then
8354 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8355else
8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357for as_dir in $PATH
8358do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8363 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367done
8368done
8369
8370fi
8371fi
8372GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8373if test -n "$GCJ_FOR_TARGET"; then
5084f823 8374 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8375echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8376else
5084f823 8377 echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6
95a05732 8379fi
8380
8381 done
8382fi
8383
8384if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8385 for ncn_progname in gcj; do
5084f823 8386 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8387echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8388 if test -x $with_build_time_tools/${ncn_progname}; then
8389 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8390 echo "$as_me:$LINENO: result: yes" >&5
8391echo "${ECHO_T}yes" >&6
c47832b1 8392 break
8393 else
5084f823 8394 echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6
c47832b1 8396 fi
8397 done
8398fi
8399
8400if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8401 for ncn_progname in gcj; do
8402 if test -n "$ncn_target_tool_prefix"; then
8403 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8404set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8405echo "$as_me:$LINENO: checking for $ac_word" >&5
8406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8407if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8409else
a4af6a58 8410 if test -n "$GCJ_FOR_TARGET"; then
8411 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8412else
b30fcfae 8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8420 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424done
8425done
8426
c47832b1 8427fi
8428fi
95a05732 8429GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8430if test -n "$GCJ_FOR_TARGET"; then
5084f823 8431 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8432echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8433else
5084f823 8434 echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6
95a05732 8436fi
8437
8438 fi
8439 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8441set dummy ${ncn_progname}; ac_word=$2
5084f823 8442echo "$as_me:$LINENO: checking for $ac_word" >&5
8443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8444if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447 if test -n "$GCJ_FOR_TARGET"; then
8448 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8449else
8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8457 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461done
8462done
8463
8464fi
8465fi
8466GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8467if test -n "$GCJ_FOR_TARGET"; then
5084f823 8468 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8469echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8470else
5084f823 8471 echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6
95a05732 8473fi
8474
8475 fi
8476 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8477 done
8478fi
8479
8480if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8481 set dummy gcj
8482 if test $build = $target ; then
8483 GCJ_FOR_TARGET="$2"
8484 else
8485 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8486 fi
b7ef8464 8487else
8488 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
95a05732 8489fi
8490
8491
8492
8493if test -n "$GFORTRAN_FOR_TARGET"; then
8494 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8495elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8496 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8497fi
8498
95a05732 8499if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8500 for ncn_progname in gfortran; do
8501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 8502set dummy ${ncn_progname}; ac_word=$2
5084f823 8503echo "$as_me:$LINENO: checking for $ac_word" >&5
8504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8505if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
b30fcfae 8506 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8507else
95a05732 8508 if test -n "$GFORTRAN_FOR_TARGET"; then
8509 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 8510else
b30fcfae 8511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512for as_dir in $PATH
8513do
8514 IFS=$as_save_IFS
8515 test -z "$as_dir" && as_dir=.
8516 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8518 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
b30fcfae 8519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 break 2
8521 fi
8522done
8523done
8524
c47832b1 8525fi
8526fi
95a05732 8527GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8528if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8529 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8530echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8531else
5084f823 8532 echo "$as_me:$LINENO: result: no" >&5
8533echo "${ECHO_T}no" >&6
c47832b1 8534fi
b30fcfae 8535
c47832b1 8536 done
8537fi
b30fcfae 8538
95a05732 8539if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8540 for ncn_progname in gfortran; do
5084f823 8541 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8542echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8543 if test -x $with_build_time_tools/${ncn_progname}; then
8544 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8545 echo "$as_me:$LINENO: result: yes" >&5
8546echo "${ECHO_T}yes" >&6
c47832b1 8547 break
8548 else
5084f823 8549 echo "$as_me:$LINENO: result: no" >&5
8550echo "${ECHO_T}no" >&6
c47832b1 8551 fi
8552 done
8553fi
8554
8555if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8556 for ncn_progname in gfortran; do
8557 if test -n "$ncn_target_tool_prefix"; then
8558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8559set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8560echo "$as_me:$LINENO: checking for $ac_word" >&5
8561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8562if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8564else
8565 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 8566 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8567else
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8575 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8578 fi
8579done
8580done
8581
c47832b1 8582fi
8583fi
b30fcfae 8584GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8585if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8586 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8587echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8588else
5084f823 8589 echo "$as_me:$LINENO: result: no" >&5
8590echo "${ECHO_T}no" >&6
c47832b1 8591fi
8592
8593 fi
8594 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8596set dummy ${ncn_progname}; ac_word=$2
5084f823 8597echo "$as_me:$LINENO: checking for $ac_word" >&5
8598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8599if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8601else
8602 if test -n "$GFORTRAN_FOR_TARGET"; then
8603 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8604else
b30fcfae 8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8612 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8615 fi
8616done
8617done
8618
c47832b1 8619fi
8620fi
b30fcfae 8621GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8622if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8623 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8624echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8625else
5084f823 8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
c47832b1 8628fi
b30fcfae 8629
c47832b1 8630 fi
8631 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8632 done
8633fi
b30fcfae 8634
c47832b1 8635if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8636 set dummy gfortran
768691b5 8637 if test $build = $target ; then
c47832b1 8638 GFORTRAN_FOR_TARGET="$2"
bb612911 8639 else
c47832b1 8640 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8641 fi
b7ef8464 8642else
8643 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 8644fi
8645
8646
8647
c47832b1 8648cat > conftest.c << \EOF
8649#ifdef __GNUC__
8650 gcc_yay;
8651#endif
8652EOF
8653if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8654 have_gcc_for_target=yes
8655else
8656 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8657 have_gcc_for_target=no
8658fi
8659rm conftest.c
8660
8661
8662
8663
8664if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8665 if test -n "$with_build_time_tools"; then
5084f823 8666 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8667echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8668 if test -x $with_build_time_tools/ar; then
8669 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8670 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5084f823 8671 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8672echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
ab0da556 8673 else
5084f823 8674 echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
ab0da556 8676 fi
c47832b1 8677 elif test $build != $host && test $have_gcc_for_target = yes; then
8678 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 8679 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8680 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 8681 fi
8682fi
38d7211b 8683if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 8684 # Extract the first word of "ar", so it can be a program name with args.
8685set dummy ar; ac_word=$2
5084f823 8686echo "$as_me:$LINENO: checking for $ac_word" >&5
8687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8688if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8690else
b30fcfae 8691 case $AR_FOR_TARGET in
8692 [\\/]* | ?:[\\/]*)
c47832b1 8693 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8694 ;;
c47832b1 8695 *)
b30fcfae 8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697for as_dir in $gcc_cv_tool_dirs
8698do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8703 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8706 fi
8707done
8708done
8709
c47832b1 8710 ;;
8711esac
8712fi
b30fcfae 8713AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5084f823 8714
c47832b1 8715if test -n "$AR_FOR_TARGET"; then
5084f823 8716 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8717echo "${ECHO_T}$AR_FOR_TARGET" >&6
c47832b1 8718else
5084f823 8719 echo "$as_me:$LINENO: result: no" >&5
8720echo "${ECHO_T}no" >&6
ef8184c7 8721fi
8722
c47832b1 8723fi
8724if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 8725
8726
8727if test -n "$AR_FOR_TARGET"; then
8728 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8729elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8730 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8731fi
8732
8733if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8734 for ncn_progname in ar; do
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736set dummy ${ncn_progname}; ac_word=$2
5084f823 8737echo "$as_me:$LINENO: checking for $ac_word" >&5
8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8739if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742 if test -n "$AR_FOR_TARGET"; then
8743 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8752 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757done
8758
8759fi
8760fi
8761AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8762if test -n "$AR_FOR_TARGET"; then
5084f823 8763 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8764echo "${ECHO_T}$AR_FOR_TARGET" >&6
95a05732 8765else
5084f823 8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
95a05732 8768fi
8769
8770 done
8771fi
8772
8773if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8774 for ncn_progname in ar; do
5084f823 8775 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8776echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8777 if test -x $with_build_time_tools/${ncn_progname}; then
8778 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8779 echo "$as_me:$LINENO: result: yes" >&5
8780echo "${ECHO_T}yes" >&6
c47832b1 8781 break
8782 else
5084f823 8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
c47832b1 8785 fi
8786 done
8787fi
8788
8789if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8790 for ncn_progname in ar; do
8791 if test -n "$ncn_target_tool_prefix"; then
8792 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8793set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8794echo "$as_me:$LINENO: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8796if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8798else
c47832b1 8799 if test -n "$AR_FOR_TARGET"; then
8800 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 8801else
b30fcfae 8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8809 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
ef8184c7 8816fi
8817fi
b30fcfae 8818AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 8819if test -n "$AR_FOR_TARGET"; then
5084f823 8820 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8821echo "${ECHO_T}$AR_FOR_TARGET" >&6
ef8184c7 8822else
5084f823 8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
ef8184c7 8825fi
8826
c47832b1 8827 fi
8828 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8830set dummy ${ncn_progname}; ac_word=$2
5084f823 8831echo "$as_me:$LINENO: checking for $ac_word" >&5
8832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8833if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8835else
8836 if test -n "$AR_FOR_TARGET"; then
8837 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8838else
b30fcfae 8839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840for as_dir in $PATH
8841do
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8846 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2
8849 fi
8850done
8851done
8852
c47832b1 8853fi
8854fi
b30fcfae 8855AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 8856if test -n "$AR_FOR_TARGET"; then
5084f823 8857 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8858echo "${ECHO_T}$AR_FOR_TARGET" >&6
c47832b1 8859else
5084f823 8860 echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6
c47832b1 8862fi
b30fcfae 8863
c47832b1 8864 fi
8865 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8866 done
8867fi
b30fcfae 8868
c47832b1 8869if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8870 set dummy ar
8871 if test $build = $target ; then
8872 AR_FOR_TARGET="$2"
8873 else
8874 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 8875 fi
b7ef8464 8876else
8877 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 8878fi
8879
ab0da556 8880else
8881 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 8882fi
8883
8884
8885
8886
8887if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8888 if test -n "$with_build_time_tools"; then
5084f823 8889 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8890echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8891 if test -x $with_build_time_tools/as; then
8892 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8893 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5084f823 8894 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8895echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
ab0da556 8896 else
5084f823 8897 echo "$as_me:$LINENO: result: no" >&5
8898echo "${ECHO_T}no" >&6
ab0da556 8899 fi
c47832b1 8900 elif test $build != $host && test $have_gcc_for_target = yes; then
8901 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 8902 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8903 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 8904 fi
8905fi
38d7211b 8906if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 8907 # Extract the first word of "as", so it can be a program name with args.
8908set dummy as; ac_word=$2
5084f823 8909echo "$as_me:$LINENO: checking for $ac_word" >&5
8910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8911if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8913else
b30fcfae 8914 case $AS_FOR_TARGET in
8915 [\\/]* | ?:[\\/]*)
c47832b1 8916 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8917 ;;
c47832b1 8918 *)
b30fcfae 8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920for as_dir in $gcc_cv_tool_dirs
8921do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8926 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8929 fi
8930done
8931done
8932
c47832b1 8933 ;;
8934esac
8935fi
b30fcfae 8936AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5084f823 8937
c47832b1 8938if test -n "$AS_FOR_TARGET"; then
5084f823 8939 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8940echo "${ECHO_T}$AS_FOR_TARGET" >&6
c47832b1 8941else
5084f823 8942 echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6
c47832b1 8944fi
8945
8946fi
8947if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 8948
8949
8950if test -n "$AS_FOR_TARGET"; then
8951 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8952elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8953 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8954fi
8955
8956if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8957 for ncn_progname in as; do
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959set dummy ${ncn_progname}; ac_word=$2
5084f823 8960echo "$as_me:$LINENO: checking for $ac_word" >&5
8961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8962if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965 if test -n "$AS_FOR_TARGET"; then
8966 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8967else
8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969for as_dir in $PATH
8970do
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8975 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8978 fi
8979done
8980done
8981
8982fi
8983fi
8984AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8985if test -n "$AS_FOR_TARGET"; then
5084f823 8986 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8987echo "${ECHO_T}$AS_FOR_TARGET" >&6
95a05732 8988else
5084f823 8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
95a05732 8991fi
8992
8993 done
8994fi
8995
8996if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8997 for ncn_progname in as; do
5084f823 8998 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8999echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9000 if test -x $with_build_time_tools/${ncn_progname}; then
9001 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9002 echo "$as_me:$LINENO: result: yes" >&5
9003echo "${ECHO_T}yes" >&6
c47832b1 9004 break
9005 else
5084f823 9006 echo "$as_me:$LINENO: result: no" >&5
9007echo "${ECHO_T}no" >&6
c47832b1 9008 fi
9009 done
9010fi
9011
9012if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9013 for ncn_progname in as; do
9014 if test -n "$ncn_target_tool_prefix"; then
9015 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9016set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9017echo "$as_me:$LINENO: checking for $ac_word" >&5
9018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9019if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9021else
9022 if test -n "$AS_FOR_TARGET"; then
9023 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9024else
b30fcfae 9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9032 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
c47832b1 9039fi
9040fi
b30fcfae 9041AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 9042if test -n "$AS_FOR_TARGET"; then
5084f823 9043 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9044echo "${ECHO_T}$AS_FOR_TARGET" >&6
c47832b1 9045else
5084f823 9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
c47832b1 9048fi
9049
9050 fi
9051 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9053set dummy ${ncn_progname}; ac_word=$2
5084f823 9054echo "$as_me:$LINENO: checking for $ac_word" >&5
9055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9056if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9058else
c47832b1 9059 if test -n "$AS_FOR_TARGET"; then
9060 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 9061else
b30fcfae 9062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063for as_dir in $PATH
9064do
9065 IFS=$as_save_IFS
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9069 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 break 2
9072 fi
9073done
9074done
9075
ef8184c7 9076fi
9077fi
b30fcfae 9078AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 9079if test -n "$AS_FOR_TARGET"; then
5084f823 9080 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9081echo "${ECHO_T}$AS_FOR_TARGET" >&6
ef8184c7 9082else
5084f823 9083 echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
ef8184c7 9085fi
b30fcfae 9086
c47832b1 9087 fi
9088 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9089 done
9090fi
b30fcfae 9091
c47832b1 9092if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9093 set dummy as
9094 if test $build = $target ; then
9095 AS_FOR_TARGET="$2"
9096 else
9097 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 9098 fi
b7ef8464 9099else
9100 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 9101fi
768691b5 9102
ab0da556 9103else
9104 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 9105fi
9106
c47832b1 9107
9108
9109
9110if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9111 if test -n "$with_build_time_tools"; then
5084f823 9112 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9113echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9114 if test -x $with_build_time_tools/dlltool; then
9115 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9116 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5084f823 9117 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9118echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
ab0da556 9119 else
5084f823 9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
ab0da556 9122 fi
c47832b1 9123 elif test $build != $host && test $have_gcc_for_target = yes; then
9124 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 9125 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9126 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 9127 fi
9128fi
38d7211b 9129if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9130 # Extract the first word of "dlltool", so it can be a program name with args.
9131set dummy dlltool; ac_word=$2
5084f823 9132echo "$as_me:$LINENO: checking for $ac_word" >&5
9133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9134if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9136else
b30fcfae 9137 case $DLLTOOL_FOR_TARGET in
9138 [\\/]* | ?:[\\/]*)
c47832b1 9139 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9140 ;;
c47832b1 9141 *)
b30fcfae 9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143for as_dir in $gcc_cv_tool_dirs
9144do
9145 IFS=$as_save_IFS
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9149 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 break 2
9152 fi
9153done
9154done
9155
c47832b1 9156 ;;
9157esac
ef8184c7 9158fi
b30fcfae 9159DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5084f823 9160
c47832b1 9161if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9162 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9163echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9164else
5084f823 9165 echo "$as_me:$LINENO: result: no" >&5
9166echo "${ECHO_T}no" >&6
ef8184c7 9167fi
9168
c47832b1 9169fi
9170if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 9171
9172
9173if test -n "$DLLTOOL_FOR_TARGET"; then
9174 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9175elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9176 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9177fi
9178
9179if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9180 for ncn_progname in dlltool; do
9181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9182set dummy ${ncn_progname}; ac_word=$2
5084f823 9183echo "$as_me:$LINENO: checking for $ac_word" >&5
9184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9185if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188 if test -n "$DLLTOOL_FOR_TARGET"; then
9189 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9190else
9191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192for as_dir in $PATH
9193do
9194 IFS=$as_save_IFS
9195 test -z "$as_dir" && as_dir=.
9196 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9198 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9200 break 2
9201 fi
9202done
9203done
9204
9205fi
9206fi
9207DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9208if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9209 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9210echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
95a05732 9211else
5084f823 9212 echo "$as_me:$LINENO: result: no" >&5
9213echo "${ECHO_T}no" >&6
95a05732 9214fi
9215
9216 done
9217fi
9218
9219if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9220 for ncn_progname in dlltool; do
5084f823 9221 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9222echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9223 if test -x $with_build_time_tools/${ncn_progname}; then
9224 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9225 echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6
c47832b1 9227 break
9228 else
5084f823 9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
c47832b1 9231 fi
9232 done
9233fi
9234
9235if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9236 for ncn_progname in dlltool; do
9237 if test -n "$ncn_target_tool_prefix"; then
9238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9240echo "$as_me:$LINENO: checking for $ac_word" >&5
9241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9242if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9244else
c47832b1 9245 if test -n "$DLLTOOL_FOR_TARGET"; then
9246 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 9247else
b30fcfae 9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9255 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260done
9261
ef8184c7 9262fi
9263fi
b30fcfae 9264DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 9265if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9266 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9267echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9268else
5084f823 9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
ef8184c7 9271fi
ef8184c7 9272
c47832b1 9273 fi
9274 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9276set dummy ${ncn_progname}; ac_word=$2
5084f823 9277echo "$as_me:$LINENO: checking for $ac_word" >&5
9278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9279if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9281else
c47832b1 9282 if test -n "$DLLTOOL_FOR_TARGET"; then
9283 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 9284else
b30fcfae 9285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286for as_dir in $PATH
9287do
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9292 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 break 2
9295 fi
9296done
9297done
9298
ef8184c7 9299fi
9300fi
b30fcfae 9301DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 9302if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9303 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9304echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9305else
5084f823 9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
ef8184c7 9308fi
b30fcfae 9309
c47832b1 9310 fi
9311 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9312 done
9313fi
b30fcfae 9314
c47832b1 9315if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9316 set dummy dlltool
9317 if test $build = $target ; then
9318 DLLTOOL_FOR_TARGET="$2"
9319 else
9320 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9321 fi
b7ef8464 9322else
9323 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 9324fi
9325
ab0da556 9326else
9327 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 9328fi
9329
ef8184c7 9330
c47832b1 9331
9332
9333if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9334 if test -n "$with_build_time_tools"; then
5084f823 9335 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9336echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9337 if test -x $with_build_time_tools/ld; then
9338 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9339 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5084f823 9340 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9341echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
ab0da556 9342 else
5084f823 9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
ab0da556 9345 fi
c47832b1 9346 elif test $build != $host && test $have_gcc_for_target = yes; then
9347 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 9348 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9349 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 9350 fi
c47832b1 9351fi
38d7211b 9352if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9353 # Extract the first word of "ld", so it can be a program name with args.
9354set dummy ld; ac_word=$2
5084f823 9355echo "$as_me:$LINENO: checking for $ac_word" >&5
9356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9357if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9359else
b30fcfae 9360 case $LD_FOR_TARGET in
9361 [\\/]* | ?:[\\/]*)
c47832b1 9362 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9363 ;;
c47832b1 9364 *)
b30fcfae 9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $gcc_cv_tool_dirs
9367do
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9372 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9375 fi
9376done
9377done
9378
c47832b1 9379 ;;
9380esac
ef8184c7 9381fi
b30fcfae 9382LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5084f823 9383
c47832b1 9384if test -n "$LD_FOR_TARGET"; then
5084f823 9385 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9386echo "${ECHO_T}$LD_FOR_TARGET" >&6
ef8184c7 9387else
5084f823 9388 echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
ef8184c7 9390fi
768691b5 9391
c47832b1 9392fi
9393if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 9394
9395
9396if test -n "$LD_FOR_TARGET"; then
9397 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9398elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9399 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9400fi
9401
9402if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9403 for ncn_progname in ld; do
9404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405set dummy ${ncn_progname}; ac_word=$2
5084f823 9406echo "$as_me:$LINENO: checking for $ac_word" >&5
9407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9408if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411 if test -n "$LD_FOR_TARGET"; then
9412 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9413else
9414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415for as_dir in $PATH
9416do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9421 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9424 fi
9425done
9426done
9427
9428fi
9429fi
9430LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9431if test -n "$LD_FOR_TARGET"; then
5084f823 9432 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9433echo "${ECHO_T}$LD_FOR_TARGET" >&6
95a05732 9434else
5084f823 9435 echo "$as_me:$LINENO: result: no" >&5
9436echo "${ECHO_T}no" >&6
95a05732 9437fi
9438
9439 done
9440fi
9441
9442if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9443 for ncn_progname in ld; do
5084f823 9444 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9445echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9446 if test -x $with_build_time_tools/${ncn_progname}; then
9447 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9448 echo "$as_me:$LINENO: result: yes" >&5
9449echo "${ECHO_T}yes" >&6
c47832b1 9450 break
9451 else
5084f823 9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
c47832b1 9454 fi
9455 done
bb612911 9456fi
9457
c47832b1 9458if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9459 for ncn_progname in ld; do
9460 if test -n "$ncn_target_tool_prefix"; then
9461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9462set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9463echo "$as_me:$LINENO: checking for $ac_word" >&5
9464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9465if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9467else
ef8184c7 9468 if test -n "$LD_FOR_TARGET"; then
9469 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 9470else
b30fcfae 9471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $PATH
9473do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9478 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482done
9483done
9484
bb612911 9485fi
9486fi
b30fcfae 9487LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 9488if test -n "$LD_FOR_TARGET"; then
5084f823 9489 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9490echo "${ECHO_T}$LD_FOR_TARGET" >&6
bb612911 9491else
5084f823 9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
bb612911 9494fi
9495
c47832b1 9496 fi
9497 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9499set dummy ${ncn_progname}; ac_word=$2
5084f823 9500echo "$as_me:$LINENO: checking for $ac_word" >&5
9501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9502if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9504else
768691b5 9505 if test -n "$LD_FOR_TARGET"; then
9506 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 9507else
b30fcfae 9508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509for as_dir in $PATH
9510do
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9515 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 break 2
9518 fi
9519done
9520done
9521
bb612911 9522fi
9523fi
b30fcfae 9524LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 9525if test -n "$LD_FOR_TARGET"; then
5084f823 9526 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9527echo "${ECHO_T}$LD_FOR_TARGET" >&6
bb612911 9528else
5084f823 9529 echo "$as_me:$LINENO: result: no" >&5
9530echo "${ECHO_T}no" >&6
bb612911 9531fi
b30fcfae 9532
c47832b1 9533 fi
9534 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9535 done
9536fi
b30fcfae 9537
768691b5 9538if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9539 set dummy ld
9540 if test $build = $target ; then
9541 LD_FOR_TARGET="$2"
bb612911 9542 else
768691b5 9543 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 9544 fi
b7ef8464 9545else
9546 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 9547fi
9548
ab0da556 9549else
9550 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 9551fi
9552
9553
9554
9555
9556if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9557 if test -n "$with_build_time_tools"; then
5084f823 9558 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9559echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9560 if test -x $with_build_time_tools/lipo; then
9561 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9562 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5084f823 9563 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9564echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
ab0da556 9565 else
5084f823 9566 echo "$as_me:$LINENO: result: no" >&5
9567echo "${ECHO_T}no" >&6
ab0da556 9568 fi
c47832b1 9569 elif test $build != $host && test $have_gcc_for_target = yes; then
9570 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 9571 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9572 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 9573 fi
9574fi
95a05732 9575if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9576 # Extract the first word of "lipo", so it can be a program name with args.
9577set dummy lipo; ac_word=$2
5084f823 9578echo "$as_me:$LINENO: checking for $ac_word" >&5
9579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9580if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583 case $LIPO_FOR_TARGET in
9584 [\\/]* | ?:[\\/]*)
9585 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9586 ;;
9587 *)
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $gcc_cv_tool_dirs
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9595 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599done
9600done
9601
9602 ;;
9603esac
9604fi
9605LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5084f823 9606
95a05732 9607if test -n "$LIPO_FOR_TARGET"; then
5084f823 9608 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9609echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
95a05732 9610else
5084f823 9611 echo "$as_me:$LINENO: result: no" >&5
9612echo "${ECHO_T}no" >&6
95a05732 9613fi
9614
9615fi
9616if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9617
9618
9619if test -n "$LIPO_FOR_TARGET"; then
9620 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9621elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9622 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9623fi
9624
9625if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9626 for ncn_progname in lipo; do
9627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9628set dummy ${ncn_progname}; ac_word=$2
5084f823 9629echo "$as_me:$LINENO: checking for $ac_word" >&5
9630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9631if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
b30fcfae 9632 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9633else
95a05732 9634 if test -n "$LIPO_FOR_TARGET"; then
9635 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9636else
9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638for as_dir in $PATH
b30fcfae 9639do
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9644 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
b30fcfae 9645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9647 fi
9648done
9649done
9650
c47832b1 9651fi
95a05732 9652fi
9653LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 9654if test -n "$LIPO_FOR_TARGET"; then
5084f823 9655 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9656echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
c47832b1 9657else
5084f823 9658 echo "$as_me:$LINENO: result: no" >&5
9659echo "${ECHO_T}no" >&6
c47832b1 9660fi
9661
95a05732 9662 done
c47832b1 9663fi
95a05732 9664
9665if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9666 for ncn_progname in lipo; do
5084f823 9667 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9668echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9669 if test -x $with_build_time_tools/${ncn_progname}; then
9670 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
c47832b1 9673 break
9674 else
5084f823 9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
c47832b1 9677 fi
9678 done
9679fi
9680
9681if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9682 for ncn_progname in lipo; do
9683 if test -n "$ncn_target_tool_prefix"; then
9684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9685set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9686echo "$as_me:$LINENO: checking for $ac_word" >&5
9687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9688if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 9690else
9691 if test -n "$LIPO_FOR_TARGET"; then
9692 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9693else
b30fcfae 9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9701 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706done
9707
9fec3fa8 9708fi
9709fi
b30fcfae 9710LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 9711if test -n "$LIPO_FOR_TARGET"; then
5084f823 9712 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9713echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9fec3fa8 9714else
5084f823 9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9fec3fa8 9717fi
9718
c47832b1 9719 fi
9720 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 9722set dummy ${ncn_progname}; ac_word=$2
5084f823 9723echo "$as_me:$LINENO: checking for $ac_word" >&5
9724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9725if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 9727else
9728 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 9729 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9730else
b30fcfae 9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9738 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742done
9743done
9744
9fec3fa8 9745fi
9746fi
b30fcfae 9747LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 9748if test -n "$LIPO_FOR_TARGET"; then
5084f823 9749 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9750echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9fec3fa8 9751else
5084f823 9752 echo "$as_me:$LINENO: result: no" >&5
9753echo "${ECHO_T}no" >&6
9fec3fa8 9754fi
b30fcfae 9755
c47832b1 9756 fi
9757 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9758 done
9759fi
b30fcfae 9760
9fec3fa8 9761if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9762 set dummy lipo
9763 if test $build = $target ; then
9764 LIPO_FOR_TARGET="$2"
9765 else
9766 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9767 fi
b7ef8464 9768else
9769 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 9770fi
9771
ab0da556 9772else
9773 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 9774fi
9775
9776
9777
9778
9779if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9780 if test -n "$with_build_time_tools"; then
5084f823 9781 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9782echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9783 if test -x $with_build_time_tools/nm; then
9784 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9785 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5084f823 9786 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9787echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
ab0da556 9788 else
5084f823 9789 echo "$as_me:$LINENO: result: no" >&5
9790echo "${ECHO_T}no" >&6
ab0da556 9791 fi
c47832b1 9792 elif test $build != $host && test $have_gcc_for_target = yes; then
9793 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 9794 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9795 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 9796 fi
9797fi
38d7211b 9798if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9799 # Extract the first word of "nm", so it can be a program name with args.
9800set dummy nm; ac_word=$2
5084f823 9801echo "$as_me:$LINENO: checking for $ac_word" >&5
9802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9803if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9805else
b30fcfae 9806 case $NM_FOR_TARGET in
9807 [\\/]* | ?:[\\/]*)
c47832b1 9808 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9809 ;;
c47832b1 9810 *)
b30fcfae 9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $gcc_cv_tool_dirs
9813do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9818 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9821 fi
9822done
9823done
9824
c47832b1 9825 ;;
9826esac
9827fi
b30fcfae 9828NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
5084f823 9829
c47832b1 9830if test -n "$NM_FOR_TARGET"; then
5084f823 9831 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9832echo "${ECHO_T}$NM_FOR_TARGET" >&6
c47832b1 9833else
5084f823 9834 echo "$as_me:$LINENO: result: no" >&5
9835echo "${ECHO_T}no" >&6
c47832b1 9836fi
9837
9838fi
9839if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 9840
9841
9842if test -n "$NM_FOR_TARGET"; then
9843 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9844elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9845 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9846fi
9847
9848if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9849 for ncn_progname in nm; do
9850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9851set dummy ${ncn_progname}; ac_word=$2
5084f823 9852echo "$as_me:$LINENO: checking for $ac_word" >&5
9853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9854if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857 if test -n "$NM_FOR_TARGET"; then
9858 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9859else
9860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9867 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871done
9872done
9873
9874fi
9875fi
9876NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9877if test -n "$NM_FOR_TARGET"; then
5084f823 9878 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9879echo "${ECHO_T}$NM_FOR_TARGET" >&6
95a05732 9880else
5084f823 9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
95a05732 9883fi
9884
9885 done
9886fi
9887
9888if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9889 for ncn_progname in nm; do
5084f823 9890 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9891echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9892 if test -x $with_build_time_tools/${ncn_progname}; then
9893 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9894 echo "$as_me:$LINENO: result: yes" >&5
9895echo "${ECHO_T}yes" >&6
c47832b1 9896 break
9897 else
5084f823 9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
c47832b1 9900 fi
9901 done
9902fi
9903
9904if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9905 for ncn_progname in nm; do
9906 if test -n "$ncn_target_tool_prefix"; then
9907 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 9908set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9909echo "$as_me:$LINENO: checking for $ac_word" >&5
9910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9911if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9913else
ef8184c7 9914 if test -n "$NM_FOR_TARGET"; then
9915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 9916else
b30fcfae 9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9924 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929done
9930
bb612911 9931fi
9932fi
b30fcfae 9933NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 9934if test -n "$NM_FOR_TARGET"; then
5084f823 9935 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9936echo "${ECHO_T}$NM_FOR_TARGET" >&6
bb612911 9937else
5084f823 9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
bb612911 9940fi
9941
c47832b1 9942 fi
9943 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9945set dummy ${ncn_progname}; ac_word=$2
5084f823 9946echo "$as_me:$LINENO: checking for $ac_word" >&5
9947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9948if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9950else
768691b5 9951 if test -n "$NM_FOR_TARGET"; then
9952 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 9953else
b30fcfae 9954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955for as_dir in $PATH
9956do
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9961 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 break 2
9964 fi
9965done
9966done
9967
bb612911 9968fi
9969fi
b30fcfae 9970NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 9971if test -n "$NM_FOR_TARGET"; then
5084f823 9972 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9973echo "${ECHO_T}$NM_FOR_TARGET" >&6
bb612911 9974else
5084f823 9975 echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6
bb612911 9977fi
b30fcfae 9978
c47832b1 9979 fi
9980 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9981 done
9982fi
b30fcfae 9983
768691b5 9984if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9985 set dummy nm
9986 if test $build = $target ; then
9987 NM_FOR_TARGET="$2"
bb612911 9988 else
768691b5 9989 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 9990 fi
b7ef8464 9991else
9992 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 9993fi
9994
ab0da556 9995else
9996 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 9997fi
9998
9999
10000
10001
10002if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10003 if test -n "$with_build_time_tools"; then
5084f823 10004 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10005echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10006 if test -x $with_build_time_tools/objdump; then
10007 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10008 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5084f823 10009 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10010echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
ab0da556 10011 else
5084f823 10012 echo "$as_me:$LINENO: result: no" >&5
10013echo "${ECHO_T}no" >&6
ab0da556 10014 fi
c47832b1 10015 elif test $build != $host && test $have_gcc_for_target = yes; then
10016 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 10017 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10018 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 10019 fi
10020fi
38d7211b 10021if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10022 # Extract the first word of "objdump", so it can be a program name with args.
10023set dummy objdump; ac_word=$2
5084f823 10024echo "$as_me:$LINENO: checking for $ac_word" >&5
10025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10026if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10028else
b30fcfae 10029 case $OBJDUMP_FOR_TARGET in
10030 [\\/]* | ?:[\\/]*)
c47832b1 10031 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10032 ;;
c47832b1 10033 *)
b30fcfae 10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $gcc_cv_tool_dirs
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10041 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045done
10046done
10047
c47832b1 10048 ;;
10049esac
10050fi
b30fcfae 10051OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
5084f823 10052
c47832b1 10053if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10054 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10055echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
c47832b1 10056else
5084f823 10057 echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
c47832b1 10059fi
10060
10061fi
10062if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 10063
10064
10065if test -n "$OBJDUMP_FOR_TARGET"; then
10066 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10067elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10068 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10069fi
10070
10071if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10072 for ncn_progname in objdump; do
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074set dummy ${ncn_progname}; ac_word=$2
5084f823 10075echo "$as_me:$LINENO: checking for $ac_word" >&5
10076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10077if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10079else
10080 if test -n "$OBJDUMP_FOR_TARGET"; then
10081 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10090 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095done
10096
10097fi
10098fi
10099OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10100if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10101 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10102echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
95a05732 10103else
5084f823 10104 echo "$as_me:$LINENO: result: no" >&5
10105echo "${ECHO_T}no" >&6
95a05732 10106fi
10107
10108 done
10109fi
10110
10111if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10112 for ncn_progname in objdump; do
5084f823 10113 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10114echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10115 if test -x $with_build_time_tools/${ncn_progname}; then
10116 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10117 echo "$as_me:$LINENO: result: yes" >&5
10118echo "${ECHO_T}yes" >&6
c47832b1 10119 break
10120 else
5084f823 10121 echo "$as_me:$LINENO: result: no" >&5
10122echo "${ECHO_T}no" >&6
c47832b1 10123 fi
10124 done
10125fi
10126
10127if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10128 for ncn_progname in objdump; do
10129 if test -n "$ncn_target_tool_prefix"; then
10130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10131set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10132echo "$as_me:$LINENO: checking for $ac_word" >&5
10133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10134if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
ae74ffb7 10136else
10137 if test -n "$OBJDUMP_FOR_TARGET"; then
10138 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10139else
b30fcfae 10140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $PATH
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10147 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10150 fi
10151done
10152done
10153
ae74ffb7 10154fi
10155fi
b30fcfae 10156OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 10157if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10158 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10159echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
ae74ffb7 10160else
5084f823 10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
ae74ffb7 10163fi
10164
c47832b1 10165 fi
10166 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 10168set dummy ${ncn_progname}; ac_word=$2
5084f823 10169echo "$as_me:$LINENO: checking for $ac_word" >&5
10170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10171if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
ae74ffb7 10173else
10174 if test -n "$OBJDUMP_FOR_TARGET"; then
10175 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10176else
b30fcfae 10177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178for as_dir in $PATH
10179do
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10184 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10187 fi
10188done
10189done
10190
ae74ffb7 10191fi
10192fi
b30fcfae 10193OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 10194if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10195 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10196echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
ae74ffb7 10197else
5084f823 10198 echo "$as_me:$LINENO: result: no" >&5
10199echo "${ECHO_T}no" >&6
ae74ffb7 10200fi
b30fcfae 10201
c47832b1 10202 fi
10203 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10204 done
10205fi
b30fcfae 10206
ae74ffb7 10207if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10208 set dummy objdump
10209 if test $build = $target ; then
10210 OBJDUMP_FOR_TARGET="$2"
10211 else
10212 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10213 fi
b7ef8464 10214else
10215 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 10216fi
10217
ab0da556 10218else
10219 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 10220fi
10221
10222
10223
10224
10225if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10226 if test -n "$with_build_time_tools"; then
5084f823 10227 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10228echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10229 if test -x $with_build_time_tools/ranlib; then
10230 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10231 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5084f823 10232 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10233echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
ab0da556 10234 else
5084f823 10235 echo "$as_me:$LINENO: result: no" >&5
10236echo "${ECHO_T}no" >&6
ab0da556 10237 fi
c47832b1 10238 elif test $build != $host && test $have_gcc_for_target = yes; then
10239 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 10240 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10241 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 10242 fi
10243fi
38d7211b 10244if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10245 # Extract the first word of "ranlib", so it can be a program name with args.
10246set dummy ranlib; ac_word=$2
5084f823 10247echo "$as_me:$LINENO: checking for $ac_word" >&5
10248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10249if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10251else
b30fcfae 10252 case $RANLIB_FOR_TARGET in
10253 [\\/]* | ?:[\\/]*)
c47832b1 10254 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10255 ;;
c47832b1 10256 *)
b30fcfae 10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $gcc_cv_tool_dirs
10259do
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10264 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 break 2
10267 fi
10268done
10269done
10270
c47832b1 10271 ;;
10272esac
10273fi
b30fcfae 10274RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
5084f823 10275
c47832b1 10276if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10277 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10278echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
c47832b1 10279else
5084f823 10280 echo "$as_me:$LINENO: result: no" >&5
10281echo "${ECHO_T}no" >&6
c47832b1 10282fi
10283
10284fi
10285if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 10286
10287
10288if test -n "$RANLIB_FOR_TARGET"; then
10289 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10290elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10291 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10292fi
10293
10294if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10295 for ncn_progname in ranlib; do
10296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297set dummy ${ncn_progname}; ac_word=$2
5084f823 10298echo "$as_me:$LINENO: checking for $ac_word" >&5
10299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10300if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 if test -n "$RANLIB_FOR_TARGET"; then
10304 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10305else
10306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307for as_dir in $PATH
10308do
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10313 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10316 fi
10317done
10318done
10319
10320fi
10321fi
10322RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10323if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10324 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10325echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
95a05732 10326else
5084f823 10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
95a05732 10329fi
10330
10331 done
10332fi
10333
10334if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10335 for ncn_progname in ranlib; do
5084f823 10336 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10337echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10338 if test -x $with_build_time_tools/${ncn_progname}; then
10339 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10340 echo "$as_me:$LINENO: result: yes" >&5
10341echo "${ECHO_T}yes" >&6
c47832b1 10342 break
10343 else
5084f823 10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
c47832b1 10346 fi
10347 done
10348fi
10349
10350if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10351 for ncn_progname in ranlib; do
10352 if test -n "$ncn_target_tool_prefix"; then
10353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 10354set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10355echo "$as_me:$LINENO: checking for $ac_word" >&5
10356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10357if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10359else
ef8184c7 10360 if test -n "$RANLIB_FOR_TARGET"; then
10361 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 10362else
b30fcfae 10363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $PATH
10365do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10370 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374done
10375done
10376
bb612911 10377fi
10378fi
b30fcfae 10379RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 10380if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10381 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10382echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
bb612911 10383else
5084f823 10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
bb612911 10386fi
10387
c47832b1 10388 fi
10389 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10391set dummy ${ncn_progname}; ac_word=$2
5084f823 10392echo "$as_me:$LINENO: checking for $ac_word" >&5
10393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10394if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10396else
768691b5 10397 if test -n "$RANLIB_FOR_TARGET"; then
10398 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 10399else
b30fcfae 10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
10405 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10407 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 break 2
10410 fi
10411done
10412done
10413
bb612911 10414fi
10415fi
b30fcfae 10416RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 10417if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10418 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10419echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
bb612911 10420else
5084f823 10421 echo "$as_me:$LINENO: result: no" >&5
10422echo "${ECHO_T}no" >&6
bb612911 10423fi
b30fcfae 10424
c47832b1 10425 fi
10426 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10427 done
10428fi
b30fcfae 10429
c47832b1 10430if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10431 set dummy ranlib
10432 if test $build = $target ; then
10433 RANLIB_FOR_TARGET="$2"
10434 else
10435 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10436 fi
b7ef8464 10437else
10438 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 10439fi
768691b5 10440
ab0da556 10441else
10442 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 10443fi
10444
c47832b1 10445
10446
10447
10448if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10449 if test -n "$with_build_time_tools"; then
5084f823 10450 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10451echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10452 if test -x $with_build_time_tools/strip; then
10453 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10454 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5084f823 10455 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10456echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
ab0da556 10457 else
5084f823 10458 echo "$as_me:$LINENO: result: no" >&5
10459echo "${ECHO_T}no" >&6
ab0da556 10460 fi
c47832b1 10461 elif test $build != $host && test $have_gcc_for_target = yes; then
10462 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 10463 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10464 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 10465 fi
10466fi
38d7211b 10467if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10468 # Extract the first word of "strip", so it can be a program name with args.
10469set dummy strip; ac_word=$2
5084f823 10470echo "$as_me:$LINENO: checking for $ac_word" >&5
10471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10472if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10474else
b30fcfae 10475 case $STRIP_FOR_TARGET in
10476 [\\/]* | ?:[\\/]*)
c47832b1 10477 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10478 ;;
c47832b1 10479 *)
b30fcfae 10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $gcc_cv_tool_dirs
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10487 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10490 fi
10491done
10492done
10493
c47832b1 10494 ;;
10495esac
10496fi
b30fcfae 10497STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
5084f823 10498
c47832b1 10499if test -n "$STRIP_FOR_TARGET"; then
5084f823 10500 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10501echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
c47832b1 10502else
5084f823 10503 echo "$as_me:$LINENO: result: no" >&5
10504echo "${ECHO_T}no" >&6
c47832b1 10505fi
10506
10507fi
10508if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 10509
10510
10511if test -n "$STRIP_FOR_TARGET"; then
10512 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10513elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10514 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10515fi
10516
10517if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10518 for ncn_progname in strip; do
10519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10520set dummy ${ncn_progname}; ac_word=$2
5084f823 10521echo "$as_me:$LINENO: checking for $ac_word" >&5
10522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10523if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525else
10526 if test -n "$STRIP_FOR_TARGET"; then
10527 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10528else
10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $PATH
10531do
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10536 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10539 fi
10540done
10541done
10542
10543fi
10544fi
10545STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10546if test -n "$STRIP_FOR_TARGET"; then
5084f823 10547 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10548echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
95a05732 10549else
5084f823 10550 echo "$as_me:$LINENO: result: no" >&5
10551echo "${ECHO_T}no" >&6
95a05732 10552fi
10553
10554 done
10555fi
10556
10557if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10558 for ncn_progname in strip; do
5084f823 10559 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10560echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10561 if test -x $with_build_time_tools/${ncn_progname}; then
10562 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10563 echo "$as_me:$LINENO: result: yes" >&5
10564echo "${ECHO_T}yes" >&6
c47832b1 10565 break
10566 else
5084f823 10567 echo "$as_me:$LINENO: result: no" >&5
10568echo "${ECHO_T}no" >&6
c47832b1 10569 fi
10570 done
10571fi
10572
10573if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10574 for ncn_progname in strip; do
10575 if test -n "$ncn_target_tool_prefix"; then
10576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 10577set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10578echo "$as_me:$LINENO: checking for $ac_word" >&5
10579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10580if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
ae48753c 10582else
10583 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 10584 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10585else
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10593 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597done
10598done
10599
9fec3fa8 10600fi
10601fi
b30fcfae 10602STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 10603if test -n "$STRIP_FOR_TARGET"; then
5084f823 10604 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10605echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9fec3fa8 10606else
5084f823 10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
9fec3fa8 10609fi
10610
c47832b1 10611 fi
10612 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 10614set dummy ${ncn_progname}; ac_word=$2
5084f823 10615echo "$as_me:$LINENO: checking for $ac_word" >&5
10616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10617if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 10619else
10620 if test -n "$STRIP_FOR_TARGET"; then
10621 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10622else
b30fcfae 10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10630 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634done
10635done
10636
9fec3fa8 10637fi
10638fi
b30fcfae 10639STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 10640if test -n "$STRIP_FOR_TARGET"; then
5084f823 10641 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10642echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9fec3fa8 10643else
5084f823 10644 echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6
9fec3fa8 10646fi
b30fcfae 10647
c47832b1 10648 fi
10649 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10650 done
10651fi
b30fcfae 10652
9fec3fa8 10653if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10654 set dummy strip
10655 if test $build = $target ; then
10656 STRIP_FOR_TARGET="$2"
10657 else
10658 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10659 fi
b7ef8464 10660else
10661 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 10662fi
10663
ab0da556 10664else
10665 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 10666fi
10667
10668
10669
10670
10671if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10672 if test -n "$with_build_time_tools"; then
5084f823 10673 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10674echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10675 if test -x $with_build_time_tools/windres; then
10676 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10677 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5084f823 10678 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10679echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
ab0da556 10680 else
5084f823 10681 echo "$as_me:$LINENO: result: no" >&5
10682echo "${ECHO_T}no" >&6
ab0da556 10683 fi
c47832b1 10684 elif test $build != $host && test $have_gcc_for_target = yes; then
10685 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 10686 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10687 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 10688 fi
10689fi
38d7211b 10690if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10691 # Extract the first word of "windres", so it can be a program name with args.
10692set dummy windres; ac_word=$2
5084f823 10693echo "$as_me:$LINENO: checking for $ac_word" >&5
10694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10695if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10697else
b30fcfae 10698 case $WINDRES_FOR_TARGET in
10699 [\\/]* | ?:[\\/]*)
c47832b1 10700 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10701 ;;
c47832b1 10702 *)
b30fcfae 10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704for as_dir in $gcc_cv_tool_dirs
10705do
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10710 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10713 fi
10714done
10715done
10716
c47832b1 10717 ;;
10718esac
10719fi
b30fcfae 10720WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
5084f823 10721
c47832b1 10722if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10723 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10724echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
c47832b1 10725else
5084f823 10726 echo "$as_me:$LINENO: result: no" >&5
10727echo "${ECHO_T}no" >&6
c47832b1 10728fi
10729
10730fi
10731if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 10732
10733
10734if test -n "$WINDRES_FOR_TARGET"; then
10735 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10736elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10737 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10738fi
10739
10740if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10741 for ncn_progname in windres; do
10742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10743set dummy ${ncn_progname}; ac_word=$2
5084f823 10744echo "$as_me:$LINENO: checking for $ac_word" >&5
10745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10746if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749 if test -n "$WINDRES_FOR_TARGET"; then
10750 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10751else
10752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753for as_dir in $PATH
10754do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10759 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10762 fi
10763done
10764done
10765
10766fi
10767fi
10768WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10769if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10770 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10771echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
95a05732 10772else
5084f823 10773 echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6
95a05732 10775fi
10776
10777 done
10778fi
10779
10780if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10781 for ncn_progname in windres; do
5084f823 10782 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10783echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10784 if test -x $with_build_time_tools/${ncn_progname}; then
10785 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10786 echo "$as_me:$LINENO: result: yes" >&5
10787echo "${ECHO_T}yes" >&6
c47832b1 10788 break
10789 else
5084f823 10790 echo "$as_me:$LINENO: result: no" >&5
10791echo "${ECHO_T}no" >&6
c47832b1 10792 fi
10793 done
10794fi
10795
10796if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10797 for ncn_progname in windres; do
10798 if test -n "$ncn_target_tool_prefix"; then
10799 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10800set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10801echo "$as_me:$LINENO: checking for $ac_word" >&5
10802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10803if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10805else
ef8184c7 10806 if test -n "$WINDRES_FOR_TARGET"; then
10807 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 10808else
b30fcfae 10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10816 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821done
10822
bb612911 10823fi
10824fi
b30fcfae 10825WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 10826if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10827 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10828echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
bb612911 10829else
5084f823 10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
bb612911 10832fi
10833
c47832b1 10834 fi
10835 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10837set dummy ${ncn_progname}; ac_word=$2
5084f823 10838echo "$as_me:$LINENO: checking for $ac_word" >&5
10839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10840if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10842else
768691b5 10843 if test -n "$WINDRES_FOR_TARGET"; then
10844 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 10845else
b30fcfae 10846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $PATH
10848do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10853 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857done
10858done
10859
bb612911 10860fi
10861fi
b30fcfae 10862WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 10863if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10864 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10865echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
bb612911 10866else
5084f823 10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
bb612911 10869fi
b30fcfae 10870
c47832b1 10871 fi
10872 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10873 done
10874fi
b30fcfae 10875
768691b5 10876if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10877 set dummy windres
10878 if test $build = $target ; then
10879 WINDRES_FOR_TARGET="$2"
bb612911 10880 else
768691b5 10881 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10882 fi
b7ef8464 10883else
10884 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 10885fi
10886
ab0da556 10887else
10888 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 10889fi
10890
805e22b2 10891
75d6a0a9 10892
10893
10894if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10895 if test -n "$with_build_time_tools"; then
10896 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10897echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10898 if test -x $with_build_time_tools/windmc; then
10899 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10900 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10901 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10902echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10903 else
10904 echo "$as_me:$LINENO: result: no" >&5
10905echo "${ECHO_T}no" >&6
10906 fi
10907 elif test $build != $host && test $have_gcc_for_target = yes; then
10908 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 10909 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10910 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 10911 fi
10912fi
10913if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10914 # Extract the first word of "windmc", so it can be a program name with args.
10915set dummy windmc; ac_word=$2
10916echo "$as_me:$LINENO: checking for $ac_word" >&5
10917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10918if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 case $WINDMC_FOR_TARGET in
10922 [\\/]* | ?:[\\/]*)
10923 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10924 ;;
10925 *)
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $gcc_cv_tool_dirs
10928do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10936 fi
10937done
10938done
10939
10940 ;;
10941esac
10942fi
10943WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10944
10945if test -n "$WINDMC_FOR_TARGET"; then
10946 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10947echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10948else
10949 echo "$as_me:$LINENO: result: no" >&5
10950echo "${ECHO_T}no" >&6
10951fi
10952
10953fi
10954if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10955
10956
10957if test -n "$WINDMC_FOR_TARGET"; then
10958 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10959elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10960 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10961fi
10962
10963if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10964 for ncn_progname in windmc; do
10965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10966set dummy ${ncn_progname}; ac_word=$2
10967echo "$as_me:$LINENO: checking for $ac_word" >&5
10968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 if test -n "$WINDMC_FOR_TARGET"; then
10973 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987done
10988
10989fi
10990fi
10991WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10992if test -n "$WINDMC_FOR_TARGET"; then
10993 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10994echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10995else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998fi
10999
11000 done
11001fi
11002
11003if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11004 for ncn_progname in windmc; do
11005 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11006echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11007 if test -x $with_build_time_tools/${ncn_progname}; then
11008 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11009 echo "$as_me:$LINENO: result: yes" >&5
11010echo "${ECHO_T}yes" >&6
11011 break
11012 else
11013 echo "$as_me:$LINENO: result: no" >&5
11014echo "${ECHO_T}no" >&6
11015 fi
11016 done
11017fi
11018
11019if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11020 for ncn_progname in windmc; do
11021 if test -n "$ncn_target_tool_prefix"; then
11022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11023set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11024echo "$as_me:$LINENO: checking for $ac_word" >&5
11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 if test -n "$WINDMC_FOR_TARGET"; then
11030 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044done
11045
11046fi
11047fi
11048WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11049if test -n "$WINDMC_FOR_TARGET"; then
11050 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11051echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11052else
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
11055fi
11056
11057 fi
11058 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11060set dummy ${ncn_progname}; ac_word=$2
11061echo "$as_me:$LINENO: checking for $ac_word" >&5
11062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11063if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065else
11066 if test -n "$WINDMC_FOR_TARGET"; then
11067 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11068else
11069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070for as_dir in $PATH
11071do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11079 fi
11080done
11081done
11082
11083fi
11084fi
11085WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11086if test -n "$WINDMC_FOR_TARGET"; then
11087 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11088echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11089else
11090 echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6
11092fi
11093
11094 fi
11095 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11096 done
11097fi
11098
11099if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11100 set dummy windmc
11101 if test $build = $target ; then
11102 WINDMC_FOR_TARGET="$2"
11103 else
11104 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11105 fi
b7ef8464 11106else
11107 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 11108fi
11109
11110else
11111 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11112fi
11113
11114
f5aebe3e 11115RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11116
5084f823 11117echo "$as_me:$LINENO: checking where to find the target ar" >&5
11118echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
f5aebe3e 11119if test "x${build}" != "x${host}" ; then
c47832b1 11120 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11121 # We already found the complete path
a6c599b5 11122 ac_dir=`dirname $AR_FOR_TARGET`
5084f823 11123 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11124echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11125 else
11126 # Canadian cross, just use what we found
5084f823 11127 echo "$as_me:$LINENO: result: pre-installed" >&5
11128echo "${ECHO_T}pre-installed" >&6
c47832b1 11129 fi
f5aebe3e 11130else
11131 ok=yes
11132 case " ${configdirs} " in
11133 *" binutils "*) ;;
11134 *) ok=no ;;
11135 esac
b30fcfae 11136
f5aebe3e 11137 if test $ok = yes; then
11138 # An in-tree tool is available and we can use it
11139 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5084f823 11140 echo "$as_me:$LINENO: result: just compiled" >&5
11141echo "${ECHO_T}just compiled" >&6
c47832b1 11142 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11143 # We already found the complete path
a6c599b5 11144 ac_dir=`dirname $AR_FOR_TARGET`
5084f823 11145 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11146echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11147 elif test "x$target" = "x$host"; then
11148 # We can use an host tool
11149 AR_FOR_TARGET='$(AR)'
5084f823 11150 echo "$as_me:$LINENO: result: host tool" >&5
11151echo "${ECHO_T}host tool" >&6
f5aebe3e 11152 else
11153 # We need a cross tool
5084f823 11154 echo "$as_me:$LINENO: result: pre-installed" >&5
11155echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11156 fi
11157fi
a83ffacf 11158
5084f823 11159echo "$as_me:$LINENO: checking where to find the target as" >&5
11160echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
f5aebe3e 11161if test "x${build}" != "x${host}" ; then
c47832b1 11162 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11163 # We already found the complete path
a6c599b5 11164 ac_dir=`dirname $AS_FOR_TARGET`
5084f823 11165 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11166echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11167 else
11168 # Canadian cross, just use what we found
5084f823 11169 echo "$as_me:$LINENO: result: pre-installed" >&5
11170echo "${ECHO_T}pre-installed" >&6
c47832b1 11171 fi
f5aebe3e 11172else
11173 ok=yes
11174 case " ${configdirs} " in
11175 *" gas "*) ;;
11176 *) ok=no ;;
11177 esac
b30fcfae 11178
f5aebe3e 11179 if test $ok = yes; then
11180 # An in-tree tool is available and we can use it
11181 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5084f823 11182 echo "$as_me:$LINENO: result: just compiled" >&5
11183echo "${ECHO_T}just compiled" >&6
c47832b1 11184 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11185 # We already found the complete path
a6c599b5 11186 ac_dir=`dirname $AS_FOR_TARGET`
5084f823 11187 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11188echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11189 elif test "x$target" = "x$host"; then
11190 # We can use an host tool
11191 AS_FOR_TARGET='$(AS)'
5084f823 11192 echo "$as_me:$LINENO: result: host tool" >&5
11193echo "${ECHO_T}host tool" >&6
f5aebe3e 11194 else
11195 # We need a cross tool
5084f823 11196 echo "$as_me:$LINENO: result: pre-installed" >&5
11197echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11198 fi
11199fi
a83ffacf 11200
5084f823 11201echo "$as_me:$LINENO: checking where to find the target cc" >&5
11202echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
f5aebe3e 11203if test "x${build}" != "x${host}" ; then
c47832b1 11204 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11205 # We already found the complete path
a6c599b5 11206 ac_dir=`dirname $CC_FOR_TARGET`
5084f823 11207 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11208echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11209 else
11210 # Canadian cross, just use what we found
5084f823 11211 echo "$as_me:$LINENO: result: pre-installed" >&5
11212echo "${ECHO_T}pre-installed" >&6
c47832b1 11213 fi
f5aebe3e 11214else
11215 ok=yes
11216 case " ${configdirs} " in
11217 *" gcc "*) ;;
11218 *) ok=no ;;
11219 esac
b30fcfae 11220
f5aebe3e 11221 if test $ok = yes; then
11222 # An in-tree tool is available and we can use it
11223 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11224 echo "$as_me:$LINENO: result: just compiled" >&5
11225echo "${ECHO_T}just compiled" >&6
c47832b1 11226 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
a6c599b5 11228 ac_dir=`dirname $CC_FOR_TARGET`
5084f823 11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11231 elif test "x$target" = "x$host"; then
11232 # We can use an host tool
11233 CC_FOR_TARGET='$(CC)'
5084f823 11234 echo "$as_me:$LINENO: result: host tool" >&5
11235echo "${ECHO_T}host tool" >&6
f5aebe3e 11236 else
11237 # We need a cross tool
5084f823 11238 echo "$as_me:$LINENO: result: pre-installed" >&5
11239echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11240 fi
11241fi
a83ffacf 11242
5084f823 11243echo "$as_me:$LINENO: checking where to find the target c++" >&5
11244echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
f5aebe3e 11245if test "x${build}" != "x${host}" ; then
c47832b1 11246 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11247 # We already found the complete path
a6c599b5 11248 ac_dir=`dirname $CXX_FOR_TARGET`
5084f823 11249 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11250echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11251 else
11252 # Canadian cross, just use what we found
5084f823 11253 echo "$as_me:$LINENO: result: pre-installed" >&5
11254echo "${ECHO_T}pre-installed" >&6
c47832b1 11255 fi
f5aebe3e 11256else
11257 ok=yes
11258 case " ${configdirs} " in
11259 *" gcc "*) ;;
11260 *) ok=no ;;
11261 esac
11262 case ,${enable_languages}, in
11263 *,c++,*) ;;
11264 *) ok=no ;;
11265 esac
11266 if test $ok = yes; then
11267 # An in-tree tool is available and we can use it
11268 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5084f823 11269 echo "$as_me:$LINENO: result: just compiled" >&5
11270echo "${ECHO_T}just compiled" >&6
c47832b1 11271 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11272 # We already found the complete path
a6c599b5 11273 ac_dir=`dirname $CXX_FOR_TARGET`
5084f823 11274 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11275echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11276 elif test "x$target" = "x$host"; then
11277 # We can use an host tool
11278 CXX_FOR_TARGET='$(CXX)'
5084f823 11279 echo "$as_me:$LINENO: result: host tool" >&5
11280echo "${ECHO_T}host tool" >&6
f5aebe3e 11281 else
11282 # We need a cross tool
5084f823 11283 echo "$as_me:$LINENO: result: pre-installed" >&5
11284echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11285 fi
11286fi
a83ffacf 11287
5084f823 11288echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11289echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
f5aebe3e 11290if test "x${build}" != "x${host}" ; then
c47832b1 11291 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11292 # We already found the complete path
a6c599b5 11293 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5084f823 11294 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11295echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11296 else
11297 # Canadian cross, just use what we found
5084f823 11298 echo "$as_me:$LINENO: result: pre-installed" >&5
11299echo "${ECHO_T}pre-installed" >&6
c47832b1 11300 fi
f5aebe3e 11301else
11302 ok=yes
11303 case " ${configdirs} " in
11304 *" gcc "*) ;;
11305 *) ok=no ;;
11306 esac
11307 case ,${enable_languages}, in
11308 *,c++,*) ;;
11309 *) ok=no ;;
11310 esac
11311 if test $ok = yes; then
11312 # An in-tree tool is available and we can use it
11313 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'
5084f823 11314 echo "$as_me:$LINENO: result: just compiled" >&5
11315echo "${ECHO_T}just compiled" >&6
c47832b1 11316 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11317 # We already found the complete path
a6c599b5 11318 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5084f823 11319 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11320echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11321 elif test "x$target" = "x$host"; then
11322 # We can use an host tool
11323 RAW_CXX_FOR_TARGET='$(CXX)'
5084f823 11324 echo "$as_me:$LINENO: result: host tool" >&5
11325echo "${ECHO_T}host tool" >&6
f5aebe3e 11326 else
11327 # We need a cross tool
5084f823 11328 echo "$as_me:$LINENO: result: pre-installed" >&5
11329echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11330 fi
11331fi
a83ffacf 11332
5084f823 11333echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11334echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
f5aebe3e 11335if test "x${build}" != "x${host}" ; then
c47832b1 11336 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11337 # We already found the complete path
a6c599b5 11338 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5084f823 11339 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11340echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11341 else
11342 # Canadian cross, just use what we found
5084f823 11343 echo "$as_me:$LINENO: result: pre-installed" >&5
11344echo "${ECHO_T}pre-installed" >&6
c47832b1 11345 fi
f5aebe3e 11346else
11347 ok=yes
11348 case " ${configdirs} " in
11349 *" binutils "*) ;;
11350 *) ok=no ;;
11351 esac
b30fcfae 11352
f5aebe3e 11353 if test $ok = yes; then
11354 # An in-tree tool is available and we can use it
11355 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5084f823 11356 echo "$as_me:$LINENO: result: just compiled" >&5
11357echo "${ECHO_T}just compiled" >&6
c47832b1 11358 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11359 # We already found the complete path
a6c599b5 11360 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5084f823 11361 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11362echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11363 elif test "x$target" = "x$host"; then
11364 # We can use an host tool
11365 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5084f823 11366 echo "$as_me:$LINENO: result: host tool" >&5
11367echo "${ECHO_T}host tool" >&6
f5aebe3e 11368 else
11369 # We need a cross tool
5084f823 11370 echo "$as_me:$LINENO: result: pre-installed" >&5
11371echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11372 fi
11373fi
a83ffacf 11374
5084f823 11375echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11376echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
f5aebe3e 11377if test "x${build}" != "x${host}" ; then
c47832b1 11378 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11379 # We already found the complete path
a6c599b5 11380 ac_dir=`dirname $GCC_FOR_TARGET`
5084f823 11381 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11382echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11383 else
11384 # Canadian cross, just use what we found
5084f823 11385 echo "$as_me:$LINENO: result: pre-installed" >&5
11386echo "${ECHO_T}pre-installed" >&6
c47832b1 11387 fi
f5aebe3e 11388else
11389 ok=yes
11390 case " ${configdirs} " in
11391 *" gcc "*) ;;
11392 *) ok=no ;;
11393 esac
b30fcfae 11394
f5aebe3e 11395 if test $ok = yes; then
11396 # An in-tree tool is available and we can use it
11397 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11398 echo "$as_me:$LINENO: result: just compiled" >&5
11399echo "${ECHO_T}just compiled" >&6
c47832b1 11400 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11401 # We already found the complete path
a6c599b5 11402 ac_dir=`dirname $GCC_FOR_TARGET`
5084f823 11403 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11404echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11405 elif test "x$target" = "x$host"; then
11406 # We can use an host tool
11407 GCC_FOR_TARGET='$()'
5084f823 11408 echo "$as_me:$LINENO: result: host tool" >&5
11409echo "${ECHO_T}host tool" >&6
f5aebe3e 11410 else
11411 # We need a cross tool
5084f823 11412 echo "$as_me:$LINENO: result: pre-installed" >&5
11413echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11414 fi
11415fi
a83ffacf 11416
5084f823 11417echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11418echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
f5aebe3e 11419if test "x${build}" != "x${host}" ; then
c47832b1 11420 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11421 # We already found the complete path
a6c599b5 11422 ac_dir=`dirname $GCJ_FOR_TARGET`
5084f823 11423 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11424echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11425 else
11426 # Canadian cross, just use what we found
5084f823 11427 echo "$as_me:$LINENO: result: pre-installed" >&5
11428echo "${ECHO_T}pre-installed" >&6
c47832b1 11429 fi
f5aebe3e 11430else
11431 ok=yes
11432 case " ${configdirs} " in
11433 *" gcc "*) ;;
11434 *) ok=no ;;
11435 esac
11436 case ,${enable_languages}, in
11437 *,java,*) ;;
11438 *) ok=no ;;
11439 esac
11440 if test $ok = yes; then
11441 # An in-tree tool is available and we can use it
11442 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11443 echo "$as_me:$LINENO: result: just compiled" >&5
11444echo "${ECHO_T}just compiled" >&6
c47832b1 11445 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11446 # We already found the complete path
a6c599b5 11447 ac_dir=`dirname $GCJ_FOR_TARGET`
5084f823 11448 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11449echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11450 elif test "x$target" = "x$host"; then
11451 # We can use an host tool
11452 GCJ_FOR_TARGET='$(GCJ)'
5084f823 11453 echo "$as_me:$LINENO: result: host tool" >&5
11454echo "${ECHO_T}host tool" >&6
f5aebe3e 11455 else
11456 # We need a cross tool
5084f823 11457 echo "$as_me:$LINENO: result: pre-installed" >&5
11458echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11459 fi
11460fi
a83ffacf 11461
5084f823 11462echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11463echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
f5aebe3e 11464if test "x${build}" != "x${host}" ; then
c47832b1 11465 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11466 # We already found the complete path
a6c599b5 11467 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5084f823 11468 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11469echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11470 else
11471 # Canadian cross, just use what we found
5084f823 11472 echo "$as_me:$LINENO: result: pre-installed" >&5
11473echo "${ECHO_T}pre-installed" >&6
c47832b1 11474 fi
f5aebe3e 11475else
11476 ok=yes
11477 case " ${configdirs} " in
11478 *" gcc "*) ;;
11479 *) ok=no ;;
11480 esac
11481 case ,${enable_languages}, in
11482 *,fortran,*) ;;
11483 *) ok=no ;;
11484 esac
11485 if test $ok = yes; then
11486 # An in-tree tool is available and we can use it
11487 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11488 echo "$as_me:$LINENO: result: just compiled" >&5
11489echo "${ECHO_T}just compiled" >&6
c47832b1 11490 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11491 # We already found the complete path
a6c599b5 11492 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5084f823 11493 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11494echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11495 elif test "x$target" = "x$host"; then
11496 # We can use an host tool
11497 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5084f823 11498 echo "$as_me:$LINENO: result: host tool" >&5
11499echo "${ECHO_T}host tool" >&6
f5aebe3e 11500 else
11501 # We need a cross tool
5084f823 11502 echo "$as_me:$LINENO: result: pre-installed" >&5
11503echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11504 fi
11505fi
a83ffacf 11506
5084f823 11507echo "$as_me:$LINENO: checking where to find the target ld" >&5
11508echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
f5aebe3e 11509if test "x${build}" != "x${host}" ; then
c47832b1 11510 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11511 # We already found the complete path
a6c599b5 11512 ac_dir=`dirname $LD_FOR_TARGET`
5084f823 11513 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11514echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11515 else
11516 # Canadian cross, just use what we found
5084f823 11517 echo "$as_me:$LINENO: result: pre-installed" >&5
11518echo "${ECHO_T}pre-installed" >&6
c47832b1 11519 fi
f5aebe3e 11520else
11521 ok=yes
11522 case " ${configdirs} " in
11523 *" ld "*) ;;
11524 *) ok=no ;;
11525 esac
b30fcfae 11526
f5aebe3e 11527 if test $ok = yes; then
11528 # An in-tree tool is available and we can use it
11529 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5084f823 11530 echo "$as_me:$LINENO: result: just compiled" >&5
11531echo "${ECHO_T}just compiled" >&6
c47832b1 11532 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11533 # We already found the complete path
a6c599b5 11534 ac_dir=`dirname $LD_FOR_TARGET`
5084f823 11535 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11536echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11537 elif test "x$target" = "x$host"; then
11538 # We can use an host tool
11539 LD_FOR_TARGET='$(LD)'
5084f823 11540 echo "$as_me:$LINENO: result: host tool" >&5
11541echo "${ECHO_T}host tool" >&6
f5aebe3e 11542 else
11543 # We need a cross tool
5084f823 11544 echo "$as_me:$LINENO: result: pre-installed" >&5
11545echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11546 fi
11547fi
a83ffacf 11548
5084f823 11549echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11550echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
f5aebe3e 11551if test "x${build}" != "x${host}" ; then
c47832b1 11552 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11553 # We already found the complete path
a6c599b5 11554 ac_dir=`dirname $LIPO_FOR_TARGET`
5084f823 11555 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11556echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11557 else
11558 # Canadian cross, just use what we found
5084f823 11559 echo "$as_me:$LINENO: result: pre-installed" >&5
11560echo "${ECHO_T}pre-installed" >&6
c47832b1 11561 fi
f5aebe3e 11562else
c47832b1 11563 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11564 # We already found the complete path
a6c599b5 11565 ac_dir=`dirname $LIPO_FOR_TARGET`
5084f823 11566 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11567echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11568 elif test "x$target" = "x$host"; then
f5aebe3e 11569 # We can use an host tool
11570 LIPO_FOR_TARGET='$(LIPO)'
5084f823 11571 echo "$as_me:$LINENO: result: host tool" >&5
11572echo "${ECHO_T}host tool" >&6
f5aebe3e 11573 else
11574 # We need a cross tool
5084f823 11575 echo "$as_me:$LINENO: result: pre-installed" >&5
11576echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11577 fi
11578fi
a83ffacf 11579
5084f823 11580echo "$as_me:$LINENO: checking where to find the target nm" >&5
11581echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
f5aebe3e 11582if test "x${build}" != "x${host}" ; then
c47832b1 11583 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11584 # We already found the complete path
a6c599b5 11585 ac_dir=`dirname $NM_FOR_TARGET`
5084f823 11586 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11587echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11588 else
11589 # Canadian cross, just use what we found
5084f823 11590 echo "$as_me:$LINENO: result: pre-installed" >&5
11591echo "${ECHO_T}pre-installed" >&6
c47832b1 11592 fi
f5aebe3e 11593else
11594 ok=yes
11595 case " ${configdirs} " in
11596 *" binutils "*) ;;
11597 *) ok=no ;;
11598 esac
b30fcfae 11599
f5aebe3e 11600 if test $ok = yes; then
11601 # An in-tree tool is available and we can use it
11602 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5084f823 11603 echo "$as_me:$LINENO: result: just compiled" >&5
11604echo "${ECHO_T}just compiled" >&6
c47832b1 11605 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11606 # We already found the complete path
a6c599b5 11607 ac_dir=`dirname $NM_FOR_TARGET`
5084f823 11608 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11609echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11610 elif test "x$target" = "x$host"; then
11611 # We can use an host tool
11612 NM_FOR_TARGET='$(NM)'
5084f823 11613 echo "$as_me:$LINENO: result: host tool" >&5
11614echo "${ECHO_T}host tool" >&6
f5aebe3e 11615 else
11616 # We need a cross tool
5084f823 11617 echo "$as_me:$LINENO: result: pre-installed" >&5
11618echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11619 fi
11620fi
a83ffacf 11621
5084f823 11622echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11623echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
f5aebe3e 11624if test "x${build}" != "x${host}" ; then
c47832b1 11625 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11626 # We already found the complete path
a6c599b5 11627 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5084f823 11628 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11629echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11630 else
11631 # Canadian cross, just use what we found
5084f823 11632 echo "$as_me:$LINENO: result: pre-installed" >&5
11633echo "${ECHO_T}pre-installed" >&6
c47832b1 11634 fi
f5aebe3e 11635else
11636 ok=yes
11637 case " ${configdirs} " in
11638 *" binutils "*) ;;
11639 *) ok=no ;;
11640 esac
b30fcfae 11641
f5aebe3e 11642 if test $ok = yes; then
11643 # An in-tree tool is available and we can use it
11644 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5084f823 11645 echo "$as_me:$LINENO: result: just compiled" >&5
11646echo "${ECHO_T}just compiled" >&6
c47832b1 11647 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11648 # We already found the complete path
a6c599b5 11649 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5084f823 11650 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11651echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11652 elif test "x$target" = "x$host"; then
11653 # We can use an host tool
11654 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5084f823 11655 echo "$as_me:$LINENO: result: host tool" >&5
11656echo "${ECHO_T}host tool" >&6
f5aebe3e 11657 else
11658 # We need a cross tool
5084f823 11659 echo "$as_me:$LINENO: result: pre-installed" >&5
11660echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11661 fi
11662fi
a83ffacf 11663
5084f823 11664echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11665echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
f5aebe3e 11666if test "x${build}" != "x${host}" ; then
c47832b1 11667 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11668 # We already found the complete path
a6c599b5 11669 ac_dir=`dirname $RANLIB_FOR_TARGET`
5084f823 11670 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11671echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11672 else
11673 # Canadian cross, just use what we found
5084f823 11674 echo "$as_me:$LINENO: result: pre-installed" >&5
11675echo "${ECHO_T}pre-installed" >&6
c47832b1 11676 fi
f5aebe3e 11677else
11678 ok=yes
11679 case " ${configdirs} " in
11680 *" binutils "*) ;;
11681 *) ok=no ;;
11682 esac
b30fcfae 11683
f5aebe3e 11684 if test $ok = yes; then
11685 # An in-tree tool is available and we can use it
11686 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5084f823 11687 echo "$as_me:$LINENO: result: just compiled" >&5
11688echo "${ECHO_T}just compiled" >&6
c47832b1 11689 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
a6c599b5 11691 ac_dir=`dirname $RANLIB_FOR_TARGET`
5084f823 11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11694 elif test "x$target" = "x$host"; then
11695 # We can use an host tool
11696 RANLIB_FOR_TARGET='$(RANLIB)'
5084f823 11697 echo "$as_me:$LINENO: result: host tool" >&5
11698echo "${ECHO_T}host tool" >&6
f5aebe3e 11699 else
11700 # We need a cross tool
5084f823 11701 echo "$as_me:$LINENO: result: pre-installed" >&5
11702echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11703 fi
11704fi
a83ffacf 11705
5084f823 11706echo "$as_me:$LINENO: checking where to find the target strip" >&5
11707echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
f5aebe3e 11708if test "x${build}" != "x${host}" ; then
c47832b1 11709 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11710 # We already found the complete path
a6c599b5 11711 ac_dir=`dirname $STRIP_FOR_TARGET`
5084f823 11712 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11713echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11714 else
11715 # Canadian cross, just use what we found
5084f823 11716 echo "$as_me:$LINENO: result: pre-installed" >&5
11717echo "${ECHO_T}pre-installed" >&6
c47832b1 11718 fi
f5aebe3e 11719else
11720 ok=yes
11721 case " ${configdirs} " in
11722 *" binutils "*) ;;
11723 *) ok=no ;;
11724 esac
b30fcfae 11725
f5aebe3e 11726 if test $ok = yes; then
11727 # An in-tree tool is available and we can use it
11728 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5084f823 11729 echo "$as_me:$LINENO: result: just compiled" >&5
11730echo "${ECHO_T}just compiled" >&6
c47832b1 11731 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
a6c599b5 11733 ac_dir=`dirname $STRIP_FOR_TARGET`
5084f823 11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11736 elif test "x$target" = "x$host"; then
11737 # We can use an host tool
11738 STRIP_FOR_TARGET='$(STRIP)'
5084f823 11739 echo "$as_me:$LINENO: result: host tool" >&5
11740echo "${ECHO_T}host tool" >&6
f5aebe3e 11741 else
11742 # We need a cross tool
5084f823 11743 echo "$as_me:$LINENO: result: pre-installed" >&5
11744echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11745 fi
11746fi
a83ffacf 11747
5084f823 11748echo "$as_me:$LINENO: checking where to find the target windres" >&5
11749echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
f5aebe3e 11750if test "x${build}" != "x${host}" ; then
c47832b1 11751 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11752 # We already found the complete path
a6c599b5 11753 ac_dir=`dirname $WINDRES_FOR_TARGET`
5084f823 11754 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11755echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11756 else
11757 # Canadian cross, just use what we found
5084f823 11758 echo "$as_me:$LINENO: result: pre-installed" >&5
11759echo "${ECHO_T}pre-installed" >&6
c47832b1 11760 fi
f5aebe3e 11761else
11762 ok=yes
11763 case " ${configdirs} " in
11764 *" binutils "*) ;;
11765 *) ok=no ;;
11766 esac
b30fcfae 11767
f5aebe3e 11768 if test $ok = yes; then
11769 # An in-tree tool is available and we can use it
11770 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5084f823 11771 echo "$as_me:$LINENO: result: just compiled" >&5
11772echo "${ECHO_T}just compiled" >&6
c47832b1 11773 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
a6c599b5 11775 ac_dir=`dirname $WINDRES_FOR_TARGET`
5084f823 11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11778 elif test "x$target" = "x$host"; then
11779 # We can use an host tool
11780 WINDRES_FOR_TARGET='$(WINDRES)'
5084f823 11781 echo "$as_me:$LINENO: result: host tool" >&5
11782echo "${ECHO_T}host tool" >&6
f5aebe3e 11783 else
11784 # We need a cross tool
5084f823 11785 echo "$as_me:$LINENO: result: pre-installed" >&5
11786echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11787 fi
71ab34df 11788fi
49aae208 11789
75d6a0a9 11790echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11791echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11792if test "x${build}" != "x${host}" ; then
11793 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11794 # We already found the complete path
11795 ac_dir=`dirname $WINDMC_FOR_TARGET`
11796 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11797echo "${ECHO_T}pre-installed in $ac_dir" >&6
11798 else
11799 # Canadian cross, just use what we found
11800 echo "$as_me:$LINENO: result: pre-installed" >&5
11801echo "${ECHO_T}pre-installed" >&6
11802 fi
11803else
11804 ok=yes
11805 case " ${configdirs} " in
11806 *" binutils "*) ;;
11807 *) ok=no ;;
11808 esac
11809
11810 if test $ok = yes; then
11811 # An in-tree tool is available and we can use it
11812 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11813 echo "$as_me:$LINENO: result: just compiled" >&5
11814echo "${ECHO_T}just compiled" >&6
11815 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
11817 ac_dir=`dirname $WINDMC_FOR_TARGET`
11818 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819echo "${ECHO_T}pre-installed in $ac_dir" >&6
11820 elif test "x$target" = "x$host"; then
11821 # We can use an host tool
11822 WINDMC_FOR_TARGET='$(WINDMC)'
11823 echo "$as_me:$LINENO: result: host tool" >&5
11824echo "${ECHO_T}host tool" >&6
11825 else
11826 # We need a cross tool
11827 echo "$as_me:$LINENO: result: pre-installed" >&5
11828echo "${ECHO_T}pre-installed" >&6
11829 fi
11830fi
11831
49aae208 11832
11833
f5aebe3e 11834
a83ffacf 11835
71ab34df 11836# Certain tools may need extra flags.
11837AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11838RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11839NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11840
f5aebe3e 11841# When building target libraries, except in a Canadian cross, we use
11842# the same toolchain as the compiler we just built.
11843COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11844COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11845COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11846if test $host = $build; then
11847 case " $configdirs " in
11848 *" gcc "*)
11849 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11850 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11851 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11852 ;;
11853 esac
11854fi
11855
11856
11857
11858
11859
5084f823 11860echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11861echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11862# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3290c0cf 11863if test "${enable_maintainer_mode+set}" = set; then
5084f823 11864 enableval="$enable_maintainer_mode"
11865 USE_MAINTAINER_MODE=$enableval
3290c0cf 11866else
11867 USE_MAINTAINER_MODE=no
5084f823 11868fi;
11869echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11870echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3290c0cf 11871
11872
11873if test "$USE_MAINTAINER_MODE" = yes; then
11874 MAINTAINER_MODE_TRUE=
11875 MAINTAINER_MODE_FALSE='#'
11876else
11877 MAINTAINER_MODE_TRUE='#'
11878 MAINTAINER_MODE_FALSE=
b30fcfae 11879fi
3290c0cf 11880MAINT=$MAINTAINER_MODE_TRUE
11881
2d64c2fd 11882# ---------------------
11883# GCC bootstrap support
11884# ---------------------
11885
11886# Stage specific cflags for build.
11887stage1_cflags="-g"
11888case $build in
11889 vax-*-*)
11890 case ${GCC} in
11891 yes) stage1_cflags="-g -Wa,-J" ;;
11892 *) stage1_cflags="-g -J" ;;
11893 esac ;;
2d64c2fd 11894esac
11895
f508ba97 11896# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11897if test "$GCC" = yes; then
11898 saved_CFLAGS="$CFLAGS"
11899
11900 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11901 CFLAGS="$CFLAGS -fkeep-inline-functions"
5084f823 11902 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11903echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
b30fcfae 11904 cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
11910
505abe0c 11911#if (__GNUC__ < 3) \
11912 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11913 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11914#error http://gcc.gnu.org/PR29382
11915#endif
11916
b30fcfae 11917int
11918main ()
11919{
11920
11921 ;
11922 return 0;
11923}
11924_ACEOF
11925rm -f conftest.$ac_objext
5084f823 11926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927 (eval $ac_compile) 2>conftest.er1
b30fcfae 11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag"
11935 || test ! -s conftest.err'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 echo "$as_me:$LINENO: result: yes" >&5
11948echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
b30fcfae 11949else
11950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
5084f823 11953echo "$as_me:$LINENO: result: no" >&5
11954echo "${ECHO_T}no" >&6
b30fcfae 11955fi
5084f823 11956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f508ba97 11957
11958 CFLAGS="$saved_CFLAGS"
11959fi
11960
11961
2d64c2fd 11962
39f34cfc 11963# Enable --enable-checking in stage1 of the compiler.
5084f823 11964# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
39f34cfc 11965if test "${enable_stage1_checking+set}" = set; then
5084f823 11966 enableval="$enable_stage1_checking"
11967 stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 11968else
11969 if test "x$enable_checking" = xno; then
11970 stage1_checking=--enable-checking
11971else
11972 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11973fi
5084f823 11974fi;
39f34cfc 11975
11976
2d64c2fd 11977# Enable -Werror in bootstrap stage2 and later.
5084f823 11978# Check whether --enable-werror or --disable-werror was given.
2d64c2fd 11979if test "${enable_werror+set}" = set; then
5084f823 11980 enableval="$enable_werror"
11981
2d64c2fd 11982else
dd979235 11983 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2d64c2fd 11984 enable_werror=yes
dc914c6d 11985else
11986 enable_werror=no
11987fi
5084f823 11988fi;
c0c5068d 11989case ${enable_werror} in
11990 yes) stage2_werror_flag="--enable-werror-always" ;;
11991 *) stage2_werror_flag="" ;;
2d64c2fd 11992esac
11993
11994
d06227a7 11995# Flags needed to enable html installing and building
b30fcfae 11996
5084f823 11997# Check whether --with-datarootdir or --without-datarootdir was given.
d06227a7 11998if test "${with_datarootdir+set}" = set; then
5084f823 11999 withval="$with_datarootdir"
12000 datarootdir="\${prefix}/${withval}"
d06227a7 12001else
12002 datarootdir="\${prefix}/share"
5084f823 12003fi;
d06227a7 12004
12005
5084f823 12006# Check whether --with-docdir or --without-docdir was given.
d06227a7 12007if test "${with_docdir+set}" = set; then
5084f823 12008 withval="$with_docdir"
12009 docdir="\${prefix}/${withval}"
d06227a7 12010else
12011 docdir="\${datarootdir}/doc"
5084f823 12012fi;
d06227a7 12013
12014
5084f823 12015# Check whether --with-pdfdir or --without-pdfdir was given.
130effca 12016if test "${with_pdfdir+set}" = set; then
5084f823 12017 withval="$with_pdfdir"
12018 pdfdir="\${prefix}/${withval}"
130effca 12019else
12020 pdfdir="\${docdir}"
5084f823 12021fi;
130effca 12022
12023
5084f823 12024# Check whether --with-htmldir or --without-htmldir was given.
d06227a7 12025if test "${with_htmldir+set}" = set; then
5084f823 12026 withval="$with_htmldir"
12027 htmldir="\${prefix}/${withval}"
d06227a7 12028else
12029 htmldir="\${docdir}"
5084f823 12030fi;
d06227a7 12031
12032
12033
12034
a6c599b5 12035
570af75a 12036
5084f823 12037 ac_config_files="$ac_config_files Makefile"
b30fcfae 12038cat >confcache <<\_ACEOF
71ab34df 12039# This file is a shell script that caches the results of configure
12040# tests run on this system so they can be shared between configure
b30fcfae 12041# scripts and configure runs, see configure's option --config-cache.
12042# It is not useful on other systems. If it contains results you don't
12043# want to keep, you may remove or edit it.
71ab34df 12044#
b30fcfae 12045# config.status only pays attention to the cache file if you give it
12046# the --recheck option to rerun configure.
71ab34df 12047#
b30fcfae 12048# `ac_cv_env_foo' variables (set or unset) will be overridden when
12049# loading this file, other *unset* `ac_cv_foo' will be assigned the
12050# following values.
12051
12052_ACEOF
12053
71ab34df 12054# The following way of writing the cache mishandles newlines in values,
12055# but we know of no workaround that is simple, portable, and efficient.
5084f823 12056# So, don't put newlines in cache variables' values.
71ab34df 12057# Ultrix sh set writes to stderr and can't be redirected directly,
12058# and sets the high bit in the cache file unless we assign to the vars.
5084f823 12059{
b30fcfae 12060 (set) 2>&1 |
5084f823 12061 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12062 *ac_space=\ *)
b30fcfae 12063 # `set' does not quote correctly, so add quotes (double-quote
12064 # substitution turns \\\\ into \\, and sed turns \\ into \).
12065 sed -n \
12066 "s/'/'\\\\''/g;
12067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5084f823 12068 ;;
b30fcfae 12069 *)
12070 # `set' quotes correctly as required by POSIX, so do not add quotes.
5084f823 12071 sed -n \
12072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b30fcfae 12073 ;;
5084f823 12074 esac;
12075} |
b30fcfae 12076 sed '
12077 t clear
5084f823 12078 : clear
b30fcfae 12079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12080 t end
5084f823 12081 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12082 : end' >>confcache
12083if diff $cache_file confcache >/dev/null 2>&1; then :; else
12084 if test -w $cache_file; then
12085 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
b30fcfae 12086 cat confcache >$cache_file
71ab34df 12087 else
5084f823 12088 echo "not updating unwritable cache $cache_file"
71ab34df 12089 fi
805e22b2 12090fi
71ab34df 12091rm -f confcache
a8298541 12092
71ab34df 12093test "x$prefix" = xNONE && prefix=$ac_default_prefix
12094# Let make expand exec_prefix.
12095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 12096
5084f823 12097# VPATH may cause trouble with some makes, so we remove $(srcdir),
12098# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12099# trailing colons and then remove the whole line if VPATH becomes empty
12100# (actually we leave an empty line to preserve line numbers).
12101if test "x$srcdir" = x.; then
12102 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12103s/:*\$(srcdir):*/:/;
12104s/:*\${srcdir}:*/:/;
12105s/:*@srcdir@:*/:/;
12106s/^\([^=]*=[ ]*\):*/\1/;
12107s/:*$//;
12108s/^[^=]*=[ ]*$//;
12109}'
12110fi
12111
71ab34df 12112# Transform confdefs.h into DEFS.
12113# Protect against shell expansion while executing Makefile rules.
12114# Protect against Makefile macro expansion.
b30fcfae 12115#
12116# If the first sed substitution is executed (which looks for macros that
5084f823 12117# take arguments), then we branch to the quote section. Otherwise,
b30fcfae 12118# look for a macro that doesn't take arguments.
5084f823 12119cat >confdef2opt.sed <<\_ACEOF
b30fcfae 12120t clear
5084f823 12121: clear
12122s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
b30fcfae 12123t quote
5084f823 12124s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
b30fcfae 12125t quote
5084f823 12126d
12127: quote
12128s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12129s,\[,\\&,g
12130s,\],\\&,g
12131s,\$,$$,g
12132p
12133_ACEOF
12134# We use echo to avoid assuming a particular line-breaking character.
12135# The extra dot is to prevent the shell from consuming trailing
12136# line-breaks from the sub-command output. A line-break within
12137# single-quotes doesn't work because, if this script is created in a
12138# platform that uses two characters for line-breaks (e.g., DOS), tr
12139# would break.
12140ac_LF_and_DOT=`echo; echo .`
12141DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12142rm -f confdef2opt.sed
b30fcfae 12143
12144
12145ac_libobjs=
12146ac_ltlibobjs=
12147for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12148 # 1. Remove the extension, and $U if already installed.
5084f823 12149 ac_i=`echo "$ac_i" |
12150 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12151 # 2. Add them.
12152 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12153 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
b30fcfae 12154done
12155LIBOBJS=$ac_libobjs
a4af6a58 12156
b30fcfae 12157LTLIBOBJS=$ac_ltlibobjs
a83ffacf 12158
ae48753c 12159
b30fcfae 12160
12161: ${CONFIG_STATUS=./config.status}
12162ac_clean_files_save=$ac_clean_files
12163ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12164{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12165echo "$as_me: creating $CONFIG_STATUS" >&6;}
12166cat >$CONFIG_STATUS <<_ACEOF
12167#! $SHELL
12168# Generated by $as_me.
71ab34df 12169# Run this file to recreate the current configuration.
71ab34df 12170# Compiler output produced by configure, useful for debugging
b30fcfae 12171# configure, is in config.log if it exists.
a83ffacf 12172
b30fcfae 12173debug=false
12174ac_cs_recheck=false
12175ac_cs_silent=false
12176SHELL=\${CONFIG_SHELL-$SHELL}
12177_ACEOF
12178
12179cat >>$CONFIG_STATUS <<\_ACEOF
12180## --------------------- ##
12181## M4sh Initialization. ##
12182## --------------------- ##
12183
5084f823 12184# Be Bourne compatible
b30fcfae 12185if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12186 emulate sh
12187 NULLCMD=:
12188 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12189 # is contrary to our usage. Disable this feature.
12190 alias -g '${1+"$@"}'='"$@"'
5084f823 12191elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12192 set -o posix
b30fcfae 12193fi
5084f823 12194DUALCASE=1; export DUALCASE # for MKS sh
b30fcfae 12195
12196# Support unset when possible.
12197if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12198 as_unset=unset
12199else
12200 as_unset=false
12201fi
12202
12203
12204# Work around bugs in pre-3.0 UWIN ksh.
5084f823 12205$as_unset ENV MAIL MAILPATH
b30fcfae 12206PS1='$ '
12207PS2='> '
12208PS4='+ '
12209
12210# NLS nuisances.
12211for as_var in \
12212 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12213 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12214 LC_TELEPHONE LC_TIME
12215do
12216 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12217 eval $as_var=C; export $as_var
12218 else
5084f823 12219 $as_unset $as_var
b30fcfae 12220 fi
12221done
12222
12223# Required to use basename.
5084f823 12224if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 12225 as_expr=expr
12226else
12227 as_expr=false
12228fi
12229
5084f823 12230if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
b30fcfae 12231 as_basename=basename
12232else
12233 as_basename=false
12234fi
12235
12236
12237# Name of the executable.
5084f823 12238as_me=`$as_basename "$0" ||
b30fcfae 12239$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12240 X"$0" : 'X\(//\)$' \| \
5084f823 12241 X"$0" : 'X\(/\)$' \| \
12242 . : '\(.\)' 2>/dev/null ||
b30fcfae 12243echo X/"$0" |
5084f823 12244 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12245 /^X\/\(\/\/\)$/{ s//\1/; q; }
12246 /^X\/\(\/\).*/{ s//\1/; q; }
12247 s/.*/./; q'`
b30fcfae 12248
5084f823 12249
12250# PATH needs CR, and LINENO needs CR and PATH.
12251# Avoid depending upon Character Ranges.
12252as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12253as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12254as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12255as_cr_digits='0123456789'
12256as_cr_alnum=$as_cr_Letters$as_cr_digits
12257
12258# The user is always right.
12259if test "${PATH_SEPARATOR+set}" != set; then
12260 echo "#! /bin/sh" >conf$$.sh
12261 echo "exit 0" >>conf$$.sh
12262 chmod +x conf$$.sh
12263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12264 PATH_SEPARATOR=';'
12265 else
12266 PATH_SEPARATOR=:
12267 fi
12268 rm -f conf$$.sh
12269fi
b30fcfae 12270
12271
5084f823 12272 as_lineno_1=$LINENO
12273 as_lineno_2=$LINENO
12274 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12275 test "x$as_lineno_1" != "x$as_lineno_2" &&
12276 test "x$as_lineno_3" = "x$as_lineno_2" || {
12277 # Find who we are. Look in the path if we contain no path at all
12278 # relative or not.
12279 case $0 in
12280 *[\\/]* ) as_myself=$0 ;;
12281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12287done
b30fcfae 12288
5084f823 12289 ;;
12290 esac
12291 # We did not find ourselves, most probably we were run as `sh COMMAND'
12292 # in which case we are not to be found in the path.
12293 if test "x$as_myself" = x; then
12294 as_myself=$0
12295 fi
12296 if test ! -f "$as_myself"; then
12297 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12298echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12299 { (exit 1); exit 1; }; }
12300 fi
12301 case $CONFIG_SHELL in
12302 '')
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12305do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for as_base in sh bash ksh sh5; do
12309 case $as_dir in
12310 /*)
12311 if ("$as_dir/$as_base" -c '
b30fcfae 12312 as_lineno_1=$LINENO
12313 as_lineno_2=$LINENO
5084f823 12314 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
b30fcfae 12315 test "x$as_lineno_1" != "x$as_lineno_2" &&
5084f823 12316 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12317 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12318 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12319 CONFIG_SHELL=$as_dir/$as_base
12320 export CONFIG_SHELL
12321 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12322 fi;;
12323 esac
12324 done
12325done
12326;;
12327 esac
b30fcfae 12328
12329 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12330 # uniformly replaced by the line number. The first 'sed' inserts a
5084f823 12331 # line-number line before each line; the second 'sed' does the real
12332 # work. The second script uses 'N' to pair each line-number line
12333 # with the numbered line, and appends trailing '-' during
12334 # substitution so that $LINENO is not a special case at line end.
b30fcfae 12335 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5084f823 12336 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12337 sed '=' <$as_myself |
b30fcfae 12338 sed '
12339 N
5084f823 12340 s,$,-,
12341 : loop
12342 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
b30fcfae 12343 t loop
5084f823 12344 s,-$,,
12345 s,^['$as_cr_digits']*\n,,
b30fcfae 12346 ' >$as_me.lineno &&
5084f823 12347 chmod +x $as_me.lineno ||
12348 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12349echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
b30fcfae 12350 { (exit 1); exit 1; }; }
12351
12352 # Don't try to exec as it changes $[0], causing all sort of problems
12353 # (the dirname of $[0] is not the place where we might find the
5084f823 12354 # original and so on. Autoconf is especially sensible to this).
12355 . ./$as_me.lineno
b30fcfae 12356 # Exit status is that of the last command.
12357 exit
12358}
12359
12360
5084f823 12361case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12362 *c*,-n*) ECHO_N= ECHO_C='
12363' ECHO_T=' ' ;;
12364 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12365 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
b30fcfae 12366esac
12367
5084f823 12368if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 12369 as_expr=expr
12370else
12371 as_expr=false
12372fi
12373
12374rm -f conf$$ conf$$.exe conf$$.file
12375echo >conf$$.file
12376if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 12377 # We could just check for DJGPP; but this test a) works b) is more generic
12378 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12379 if test -f conf$$.exe; then
12380 # Don't use ln at all; we don't have any links
b30fcfae 12381 as_ln_s='cp -p'
5084f823 12382 else
12383 as_ln_s='ln -s'
12384 fi
b30fcfae 12385elif ln conf$$.file conf$$ 2>/dev/null; then
12386 as_ln_s=ln
12387else
12388 as_ln_s='cp -p'
12389fi
5084f823 12390rm -f conf$$ conf$$.exe conf$$.file
b30fcfae 12391
12392if mkdir -p . 2>/dev/null; then
12393 as_mkdir_p=:
12394else
12395 test -d ./-p && rmdir ./-p
12396 as_mkdir_p=false
12397fi
12398
5084f823 12399as_executable_p="test -f"
b30fcfae 12400
12401# Sed expression to map a string onto a valid CPP name.
12402as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12403
12404# Sed expression to map a string onto a valid variable name.
12405as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12406
12407
5084f823 12408# IFS
12409# We need space, tab and new line, in precisely that order.
12410as_nl='
12411'
12412IFS=" $as_nl"
12413
12414# CDPATH.
12415$as_unset CDPATH
12416
b30fcfae 12417exec 6>&1
12418
5084f823 12419# Open the log real soon, to keep \$[0] and so on meaningful, and to
b30fcfae 12420# report actual input values of CONFIG_FILES etc. instead of their
5084f823 12421# values after options handling. Logging --version etc. is OK.
12422exec 5>>config.log
12423{
12424 echo
12425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12426## Running $as_me. ##
12427_ASBOX
12428} >&5
12429cat >&5 <<_CSEOF
12430
b30fcfae 12431This file was extended by $as_me, which was
5084f823 12432generated by GNU Autoconf 2.59. Invocation command line was
b30fcfae 12433
12434 CONFIG_FILES = $CONFIG_FILES
12435 CONFIG_HEADERS = $CONFIG_HEADERS
12436 CONFIG_LINKS = $CONFIG_LINKS
12437 CONFIG_COMMANDS = $CONFIG_COMMANDS
12438 $ $0 $@
12439
5084f823 12440_CSEOF
12441echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12442echo >&5
b30fcfae 12443_ACEOF
12444
12445# Files that config.status was made for.
5084f823 12446if test -n "$ac_config_files"; then
12447 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12448fi
b30fcfae 12449
5084f823 12450if test -n "$ac_config_headers"; then
12451 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12452fi
12453
12454if test -n "$ac_config_links"; then
12455 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12456fi
12457
12458if test -n "$ac_config_commands"; then
12459 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12460fi
b30fcfae 12461
12462cat >>$CONFIG_STATUS <<\_ACEOF
5084f823 12463
b30fcfae 12464ac_cs_usage="\
12465\`$as_me' instantiates files from templates according to the
12466current configuration.
12467
12468Usage: $0 [OPTIONS] [FILE]...
12469
12470 -h, --help print this help, then exit
5084f823 12471 -V, --version print version number, then exit
b30fcfae 12472 -q, --quiet do not print progress messages
12473 -d, --debug don't remove temporary files
12474 --recheck update $as_me by reconfiguring in the same conditions
12475 --file=FILE[:TEMPLATE]
12476 instantiate the configuration file FILE
12477
12478Configuration files:
12479$config_files
12480
12481Report bugs to <bug-autoconf@gnu.org>."
570af75a 12482_ACEOF
5084f823 12483
b30fcfae 12484cat >>$CONFIG_STATUS <<_ACEOF
12485ac_cs_version="\\
12486config.status
5084f823 12487configured by $0, generated by GNU Autoconf 2.59,
12488 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
b30fcfae 12489
5084f823 12490Copyright (C) 2003 Free Software Foundation, Inc.
b30fcfae 12491This config.status script is free software; the Free Software Foundation
12492gives unlimited permission to copy, distribute and modify it."
5084f823 12493srcdir=$srcdir
12494INSTALL="$INSTALL"
b30fcfae 12495_ACEOF
12496
12497cat >>$CONFIG_STATUS <<\_ACEOF
12498# If no file are specified by the user, then we need to provide default
12499# value. By we need to know if files were specified by the user.
12500ac_need_defaults=:
12501while test $# != 0
b1660f25 12502do
b30fcfae 12503 case $1 in
12504 --*=*)
5084f823 12505 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12506 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
b30fcfae 12507 ac_shift=:
12508 ;;
5084f823 12509 -*)
b30fcfae 12510 ac_option=$1
12511 ac_optarg=$2
12512 ac_shift=shift
12513 ;;
5084f823 12514 *) # This is not an option, so the user has probably given explicit
12515 # arguments.
12516 ac_option=$1
12517 ac_need_defaults=false;;
b30fcfae 12518 esac
12519
12520 case $ac_option in
12521 # Handling of the options.
5084f823 12522_ACEOF
12523cat >>$CONFIG_STATUS <<\_ACEOF
71ab34df 12524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 12525 ac_cs_recheck=: ;;
5084f823 12526 --version | --vers* | -V )
12527 echo "$ac_cs_version"; exit 0 ;;
12528 --he | --h)
12529 # Conflict between --help and --header
12530 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12531Try \`$0 --help' for more information." >&5
12532echo "$as_me: error: ambiguous option: $1
12533Try \`$0 --help' for more information." >&2;}
12534 { (exit 1); exit 1; }; };;
12535 --help | --hel | -h )
12536 echo "$ac_cs_usage"; exit 0 ;;
12537 --debug | --d* | -d )
b30fcfae 12538 debug=: ;;
12539 --file | --fil | --fi | --f )
12540 $ac_shift
12541 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12542 ac_need_defaults=false;;
5084f823 12543 --header | --heade | --head | --hea )
12544 $ac_shift
12545 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12546 ac_need_defaults=false;;
b30fcfae 12547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12549 ac_cs_silent=: ;;
12550
12551 # This is an error.
5084f823 12552 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12553Try \`$0 --help' for more information." >&5
12554echo "$as_me: error: unrecognized option: $1
12555Try \`$0 --help' for more information." >&2;}
b30fcfae 12556 { (exit 1); exit 1; }; } ;;
12557
5084f823 12558 *) ac_config_targets="$ac_config_targets $1" ;;
b30fcfae 12559
a83ffacf 12560 esac
b30fcfae 12561 shift
a83ffacf 12562done
12563
b30fcfae 12564ac_configure_extra_args=
a83ffacf 12565
b30fcfae 12566if $ac_cs_silent; then
12567 exec 6>/dev/null
12568 ac_configure_extra_args="$ac_configure_extra_args --silent"
12569fi
a83ffacf 12570
b30fcfae 12571_ACEOF
12572cat >>$CONFIG_STATUS <<_ACEOF
12573if \$ac_cs_recheck; then
5084f823 12574 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12575 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b30fcfae 12576fi
12577
12578_ACEOF
12579
b30fcfae 12580
570af75a 12581
5084f823 12582
12583
12584cat >>$CONFIG_STATUS <<\_ACEOF
b30fcfae 12585for ac_config_target in $ac_config_targets
12586do
5084f823 12587 case "$ac_config_target" in
12588 # Handling of arguments.
12589 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b30fcfae 12590 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12591echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12592 { (exit 1); exit 1; }; };;
12593 esac
12594done
12595
12596# If the user did not use the arguments to specify the items to instantiate,
12597# then the envvar interface is used. Set only those that are not.
12598# We use the long form for the default assignment because of an extremely
12599# bizarre bug on SunOS 4.1.3.
12600if $ac_need_defaults; then
12601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12602fi
12603
12604# Have a temporary directory for convenience. Make it in the build tree
5084f823 12605# simply because there is no reason to put it here, and in addition,
b30fcfae 12606# creating and moving files from /tmp can sometimes cause problems.
5084f823 12607# Create a temporary directory, and hook for its removal unless debugging.
b30fcfae 12608$debug ||
12609{
5084f823 12610 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
b30fcfae 12611 trap '{ (exit 1); exit 1; }' 1 2 13 15
12612}
5084f823 12613
b30fcfae 12614# Create a (secure) tmp directory for tmp files.
12615
12616{
5084f823 12617 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
b30fcfae 12618 test -n "$tmp" && test -d "$tmp"
12619} ||
12620{
5084f823 12621 tmp=./confstat$$-$RANDOM
12622 (umask 077 && mkdir $tmp)
b30fcfae 12623} ||
12624{
12625 echo "$me: cannot create a temporary directory in ." >&2
12626 { (exit 1); exit 1; }
12627}
12628
5084f823 12629_ACEOF
12630
12631cat >>$CONFIG_STATUS <<_ACEOF
12632
b30fcfae 12633#
5084f823 12634# CONFIG_FILES section.
b30fcfae 12635#
12636
12637# No need to generate the scripts if there are no CONFIG_FILES.
12638# This happens for instance when ./config.status config.h
5084f823 12639if test -n "\$CONFIG_FILES"; then
12640 # Protect against being on the right side of a sed subst in config.status.
12641 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12642 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12643s,@SHELL@,$SHELL,;t t
12644s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12645s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12646s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12647s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12648s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12649s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12650s,@exec_prefix@,$exec_prefix,;t t
12651s,@prefix@,$prefix,;t t
12652s,@program_transform_name@,$program_transform_name,;t t
12653s,@bindir@,$bindir,;t t
12654s,@sbindir@,$sbindir,;t t
12655s,@libexecdir@,$libexecdir,;t t
12656s,@datadir@,$datadir,;t t
12657s,@sysconfdir@,$sysconfdir,;t t
12658s,@sharedstatedir@,$sharedstatedir,;t t
12659s,@localstatedir@,$localstatedir,;t t
12660s,@libdir@,$libdir,;t t
12661s,@includedir@,$includedir,;t t
12662s,@oldincludedir@,$oldincludedir,;t t
12663s,@infodir@,$infodir,;t t
12664s,@mandir@,$mandir,;t t
12665s,@build_alias@,$build_alias,;t t
12666s,@host_alias@,$host_alias,;t t
12667s,@target_alias@,$target_alias,;t t
12668s,@DEFS@,$DEFS,;t t
12669s,@ECHO_C@,$ECHO_C,;t t
12670s,@ECHO_N@,$ECHO_N,;t t
12671s,@ECHO_T@,$ECHO_T,;t t
12672s,@LIBS@,$LIBS,;t t
12673s,@build@,$build,;t t
12674s,@build_cpu@,$build_cpu,;t t
12675s,@build_vendor@,$build_vendor,;t t
12676s,@build_os@,$build_os,;t t
12677s,@build_noncanonical@,$build_noncanonical,;t t
12678s,@host_noncanonical@,$host_noncanonical,;t t
12679s,@target_noncanonical@,$target_noncanonical,;t t
12680s,@host@,$host,;t t
12681s,@host_cpu@,$host_cpu,;t t
12682s,@host_vendor@,$host_vendor,;t t
12683s,@host_os@,$host_os,;t t
12684s,@target@,$target,;t t
12685s,@target_cpu@,$target_cpu,;t t
12686s,@target_vendor@,$target_vendor,;t t
12687s,@target_os@,$target_os,;t t
12688s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12689s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12690s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12691s,@LN@,$LN,;t t
12692s,@LN_S@,$LN_S,;t t
12693s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12694s,@build_libsubdir@,$build_libsubdir,;t t
12695s,@build_subdir@,$build_subdir,;t t
12696s,@host_subdir@,$host_subdir,;t t
12697s,@target_subdir@,$target_subdir,;t t
12698s,@CC@,$CC,;t t
12699s,@CFLAGS@,$CFLAGS,;t t
12700s,@LDFLAGS@,$LDFLAGS,;t t
12701s,@CPPFLAGS@,$CPPFLAGS,;t t
12702s,@ac_ct_CC@,$ac_ct_CC,;t t
12703s,@EXEEXT@,$EXEEXT,;t t
12704s,@OBJEXT@,$OBJEXT,;t t
12705s,@CXX@,$CXX,;t t
12706s,@CXXFLAGS@,$CXXFLAGS,;t t
12707s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12708s,@GNATBIND@,$GNATBIND,;t t
12709s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12710s,@GNATMAKE@,$GNATMAKE,;t t
12711s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12712s,@do_compare@,$do_compare,;t t
12713s,@gmplibs@,$gmplibs,;t t
12714s,@gmpinc@,$gmpinc,;t t
12715s,@stage1_languages@,$stage1_languages,;t t
12716s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12717s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12718s,@tooldir@,$tooldir,;t t
12719s,@build_tooldir@,$build_tooldir,;t t
12720s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12721s,@GDB_TK@,$GDB_TK,;t t
12722s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12723s,@build_configargs@,$build_configargs,;t t
12724s,@build_configdirs@,$build_configdirs,;t t
12725s,@host_configargs@,$host_configargs,;t t
12726s,@configdirs@,$configdirs,;t t
12727s,@target_configargs@,$target_configargs,;t t
12728s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12729s,@config_shell@,$config_shell,;t t
12730s,@YACC@,$YACC,;t t
12731s,@BISON@,$BISON,;t t
12732s,@M4@,$M4,;t t
12733s,@LEX@,$LEX,;t t
12734s,@FLEX@,$FLEX,;t t
12735s,@MAKEINFO@,$MAKEINFO,;t t
12736s,@EXPECT@,$EXPECT,;t t
12737s,@RUNTEST@,$RUNTEST,;t t
12738s,@AR@,$AR,;t t
12739s,@AS@,$AS,;t t
12740s,@DLLTOOL@,$DLLTOOL,;t t
12741s,@LD@,$LD,;t t
12742s,@LIPO@,$LIPO,;t t
12743s,@NM@,$NM,;t t
12744s,@RANLIB@,$RANLIB,;t t
12745s,@STRIP@,$STRIP,;t t
12746s,@WINDRES@,$WINDRES,;t t
75d6a0a9 12747s,@WINDMC@,$WINDMC,;t t
5084f823 12748s,@OBJCOPY@,$OBJCOPY,;t t
12749s,@OBJDUMP@,$OBJDUMP,;t t
12750s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12751s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12752s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12753s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12754s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12755s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12756s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12757s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12758s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12759s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12760s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12761s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12762s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12763s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12764s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12765s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
75d6a0a9 12766s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
5084f823 12767s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12768s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12769s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12770s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12771s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12772s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12773s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12774s,@MAINT@,$MAINT,;t t
12775s,@stage1_cflags@,$stage1_cflags,;t t
12776s,@stage1_checking@,$stage1_checking,;t t
12777s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12778s,@datarootdir@,$datarootdir,;t t
12779s,@docdir@,$docdir,;t t
12780s,@pdfdir@,$pdfdir,;t t
12781s,@htmldir@,$htmldir,;t t
12782s,@LIBOBJS@,$LIBOBJS,;t t
12783s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12784/@serialization_dependencies@/r $serialization_dependencies
12785s,@serialization_dependencies@,,;t t
12786/@host_makefile_frag@/r $host_makefile_frag
12787s,@host_makefile_frag@,,;t t
12788/@target_makefile_frag@/r $target_makefile_frag
12789s,@target_makefile_frag@,,;t t
12790/@alphaieee_frag@/r $alphaieee_frag
12791s,@alphaieee_frag@,,;t t
12792/@ospace_frag@/r $ospace_frag
12793s,@ospace_frag@,,;t t
12794CEOF
a8298541 12795
b30fcfae 12796_ACEOF
12797
5084f823 12798 cat >>$CONFIG_STATUS <<\_ACEOF
12799 # Split the substitutions into bite-sized pieces for seds with
12800 # small command number limits, like on Digital OSF/1 and HP-UX.
12801 ac_max_sed_lines=48
12802 ac_sed_frag=1 # Number of current file.
12803 ac_beg=1 # First line for current file.
12804 ac_end=$ac_max_sed_lines # Line after last line for current file.
12805 ac_more_lines=:
12806 ac_sed_cmds=
12807 while $ac_more_lines; do
12808 if test $ac_beg -gt 1; then
12809 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12810 else
12811 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12812 fi
12813 if test ! -s $tmp/subs.frag; then
12814 ac_more_lines=false
12815 else
12816 # The purpose of the label and of the branching condition is to
12817 # speed up the sed processing (if there are no `@' at all, there
12818 # is no need to browse any of the substitutions).
12819 # These are the two extra sed commands mentioned above.
12820 (echo ':t
12821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12822 if test -z "$ac_sed_cmds"; then
12823 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12824 else
12825 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12826 fi
12827 ac_sed_frag=`expr $ac_sed_frag + 1`
12828 ac_beg=$ac_end
12829 ac_end=`expr $ac_end + $ac_max_sed_lines`
12830 fi
12831 done
12832 if test -z "$ac_sed_cmds"; then
12833 ac_sed_cmds=cat
570af75a 12834 fi
5084f823 12835fi # test -n "$CONFIG_FILES"
570af75a 12836
570af75a 12837_ACEOF
b30fcfae 12838cat >>$CONFIG_STATUS <<\_ACEOF
5084f823 12839for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12841 case $ac_file in
12842 - | *:- | *:-:* ) # input from stdin
12843 cat >$tmp/stdin
12844 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12846 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12848 * ) ac_file_in=$ac_file.in ;;
570af75a 12849 esac
12850
5084f823 12851 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12852 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
b30fcfae 12853$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12854 X"$ac_file" : 'X\(//\)[^/]' \| \
12855 X"$ac_file" : 'X\(//\)$' \| \
5084f823 12856 X"$ac_file" : 'X\(/\)' \| \
12857 . : '\(.\)' 2>/dev/null ||
b30fcfae 12858echo X"$ac_file" |
5084f823 12859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12861 /^X\(\/\/\)$/{ s//\1/; q; }
12862 /^X\(\/\).*/{ s//\1/; q; }
12863 s/.*/./; q'`
12864 { if $as_mkdir_p; then
12865 mkdir -p "$ac_dir"
12866 else
12867 as_dir="$ac_dir"
b30fcfae 12868 as_dirs=
5084f823 12869 while test ! -d "$as_dir"; do
12870 as_dirs="$as_dir $as_dirs"
12871 as_dir=`(dirname "$as_dir") 2>/dev/null ||
b30fcfae 12872$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12873 X"$as_dir" : 'X\(//\)[^/]' \| \
12874 X"$as_dir" : 'X\(//\)$' \| \
5084f823 12875 X"$as_dir" : 'X\(/\)' \| \
12876 . : '\(.\)' 2>/dev/null ||
b30fcfae 12877echo X"$as_dir" |
5084f823 12878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12880 /^X\(\/\/\)$/{ s//\1/; q; }
12881 /^X\(\/\).*/{ s//\1/; q; }
12882 s/.*/./; q'`
b30fcfae 12883 done
5084f823 12884 test ! -n "$as_dirs" || mkdir $as_dirs
12885 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12886echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
b30fcfae 12887 { (exit 1); exit 1; }; }; }
5084f823 12888
b30fcfae 12889 ac_builddir=.
a83ffacf 12890
5084f823 12891if test "$ac_dir" != .; then
b30fcfae 12892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5084f823 12893 # A "../" for each directory in $ac_dir_suffix.
12894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12895else
12896 ac_dir_suffix= ac_top_builddir=
12897fi
b30fcfae 12898
12899case $srcdir in
5084f823 12900 .) # No --srcdir option. We are building in place.
b30fcfae 12901 ac_srcdir=.
5084f823 12902 if test -z "$ac_top_builddir"; then
12903 ac_top_srcdir=.
12904 else
12905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12906 fi ;;
12907 [\\/]* | ?:[\\/]* ) # Absolute path.
b30fcfae 12908 ac_srcdir=$srcdir$ac_dir_suffix;
5084f823 12909 ac_top_srcdir=$srcdir ;;
12910 *) # Relative path.
12911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
b30fcfae 12913esac
b1660f25 12914
5084f823 12915# Do not use `cd foo && pwd` to compute absolute paths, because
12916# the directories may not exist.
12917case `pwd` in
12918.) ac_abs_builddir="$ac_dir";;
12919*)
12920 case "$ac_dir" in
12921 .) ac_abs_builddir=`pwd`;;
12922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12924 esac;;
12925esac
12926case $ac_abs_builddir in
12927.) ac_abs_top_builddir=${ac_top_builddir}.;;
12928*)
12929 case ${ac_top_builddir}. in
12930 .) ac_abs_top_builddir=$ac_abs_builddir;;
12931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12933 esac;;
12934esac
12935case $ac_abs_builddir in
12936.) ac_abs_srcdir=$ac_srcdir;;
12937*)
12938 case $ac_srcdir in
12939 .) ac_abs_srcdir=$ac_abs_builddir;;
12940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12942 esac;;
12943esac
12944case $ac_abs_builddir in
12945.) ac_abs_top_srcdir=$ac_top_srcdir;;
12946*)
12947 case $ac_top_srcdir in
12948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12951 esac;;
12952esac
a83ffacf 12953
b30fcfae 12954
12955 case $INSTALL in
12956 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5084f823 12957 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
71ab34df 12958 esac
570af75a 12959
5084f823 12960 if test x"$ac_file" != x-; then
12961 { echo "$as_me:$LINENO: creating $ac_file" >&5
12962echo "$as_me: creating $ac_file" >&6;}
12963 rm -f "$ac_file"
12964 fi
12965 # Let's still pretend it is `configure' which instantiates (i.e., don't
12966 # use $as_me), people would be surprised to read:
12967 # /* config.h. Generated by config.status. */
12968 if test x"$ac_file" = x-; then
12969 configure_input=
12970 else
12971 configure_input="$ac_file. "
12972 fi
12973 configure_input=$configure_input"Generated from `echo $ac_file_in |
12974 sed 's,.*/,,'` by configure."
12975
12976 # First look for the input files in the build tree, otherwise in the
12977 # src tree.
12978 ac_file_inputs=`IFS=:
12979 for f in $ac_file_in; do
12980 case $f in
12981 -) echo $tmp/stdin ;;
12982 [\\/$]*)
12983 # Absolute (can't be DOS-style, as IFS=:)
12984 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12985echo "$as_me: error: cannot find input file: $f" >&2;}
12986 { (exit 1); exit 1; }; }
12987 echo "$f";;
12988 *) # Relative
12989 if test -f "$f"; then
12990 # Build tree
12991 echo "$f"
12992 elif test -f "$srcdir/$f"; then
12993 # Source tree
12994 echo "$srcdir/$f"
12995 else
12996 # /dev/null tree
12997 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12998echo "$as_me: error: cannot find input file: $f" >&2;}
12999 { (exit 1); exit 1; }; }
13000 fi;;
13001 esac
13002 done` || { (exit 1); exit 1; }
570af75a 13003_ACEOF
b30fcfae 13004cat >>$CONFIG_STATUS <<_ACEOF
13005 sed "$ac_vpsub
13006$extrasub
13007_ACEOF
13008cat >>$CONFIG_STATUS <<\_ACEOF
13009:t
13010/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5084f823 13011s,@configure_input@,$configure_input,;t t
13012s,@srcdir@,$ac_srcdir,;t t
13013s,@abs_srcdir@,$ac_abs_srcdir,;t t
13014s,@top_srcdir@,$ac_top_srcdir,;t t
13015s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13016s,@builddir@,$ac_builddir,;t t
13017s,@abs_builddir@,$ac_abs_builddir,;t t
13018s,@top_builddir@,$ac_top_builddir,;t t
13019s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13020s,@INSTALL@,$ac_INSTALL,;t t
13021" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13022 rm -f $tmp/stdin
13023 if test x"$ac_file" != x-; then
13024 mv $tmp/out $ac_file
13025 else
13026 cat $tmp/out
13027 rm -f $tmp/out
13028 fi
570af75a 13029
5084f823 13030done
13031_ACEOF
570af75a 13032
5084f823 13033cat >>$CONFIG_STATUS <<\_ACEOF
a8298541 13034
b30fcfae 13035{ (exit 0); exit 0; }
13036_ACEOF
71ab34df 13037chmod +x $CONFIG_STATUS
b30fcfae 13038ac_clean_files=$ac_clean_files_save
13039
13040
13041# configure is writing to config.log, and then calls config.status.
13042# config.status does its own redirection, appending to config.log.
13043# Unfortunately, on DOS this fails, as config.log is still kept open
13044# by configure, so config.status won't be able to write to it; its
13045# output is simply discarded. So we exec the FD to /dev/null,
13046# effectively closing config.log, so it can be properly (re)opened and
13047# appended to by config.status. When coming back to configure, we
13048# need to make the FD available again.
13049if test "$no_create" != yes; then
13050 ac_cs_success=:
13051 ac_config_status_args=
13052 test "$silent" = yes &&
13053 ac_config_status_args="$ac_config_status_args --quiet"
13054 exec 5>/dev/null
13055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13056 exec 5>>config.log
13057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13058 # would make configure fail if this is the last instruction.
13059 $ac_cs_success || { (exit 1); exit 1; }
13060fi
a8298541 13061