]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
* gfortran.dg/nint_2.f90: Revert previous commit.
[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"
5f1f2de5 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 DEBUG_PREFIX_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
5f1f2de5 968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
09c2d953 970 --with-build-time-tools=PATH
b30fcfae 971 use given path to find target tools during the build
09c2d953 972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
b30fcfae 976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
5084f823 982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
eae5b2bc 984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
95a05732 986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
75d6a0a9 995 WINDMC WINDMC for the host
95a05732 996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
75d6a0a9 1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
b30fcfae 1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
5084f823 1039 ac_popdir=`pwd`
b30fcfae 1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5084f823 1041 test -d $ac_dir || continue
b30fcfae 1042 ac_builddir=.
1043
5084f823 1044if test "$ac_dir" != .; then
b30fcfae 1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5084f823 1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
b30fcfae 1051
1052case $srcdir in
5084f823 1053 .) # No --srcdir option. We are building in place.
b30fcfae 1054 ac_srcdir=.
5084f823 1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
b30fcfae 1061 ac_srcdir=$srcdir$ac_dir_suffix;
5084f823 1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
b30fcfae 1105esac
5084f823 1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
b30fcfae 1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5084f823 1121 fi
1122 cd $ac_popdir
b30fcfae 1123 done
1124fi
1125
5084f823 1126test -n "$ac_init_help" && exit 0
b30fcfae 1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
5084f823 1130Copyright (C) 2003 Free Software Foundation, Inc.
b30fcfae 1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
5084f823 1134 exit 0
a83ffacf 1135fi
5084f823 1136exec 5>config.log
1137cat >&5 <<_ACEOF
b30fcfae 1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
5084f823 1142generated by GNU Autoconf 2.59. Invocation command line was
b30fcfae 1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5084f823 1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
5084f823 1200ac_sep=
b30fcfae 1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
5084f823 1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
b30fcfae 1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
5084f823 1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
b30fcfae 1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
5084f823 1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
b30fcfae 1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
5084f823 1260{
b30fcfae 1261 (set) 2>&1 |
5084f823 1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
b30fcfae 1264 sed -n \
5084f823 1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
b30fcfae 1268 *)
5084f823 1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b30fcfae 1271 ;;
5084f823 1272 esac;
1273}
b30fcfae 1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
5084f823 1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
b30fcfae 1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
5084f823 1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
b30fcfae 1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
5084f823 1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
b30fcfae 1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
5084f823 1311 sed "/^$/d" confdefs.h | sort
b30fcfae 1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
5084f823 1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 1320 exit $exit_status
5084f823 1321 ' 0
b30fcfae 1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
5084f823 1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
b30fcfae 1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
a83ffacf 1347
b30fcfae 1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
71ab34df 1360# Prefer explicitly selected file to automatically selected ones.
5084f823 1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 fi
71ab34df 1367fi
5084f823 1368for ac_site_file in $CONFIG_SITE; do
71ab34df 1369 if test -r "$ac_site_file"; then
b30fcfae 1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
71ab34df 1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
b30fcfae 1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
5084f823 1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
b30fcfae 1386 esac
1387 fi
71ab34df 1388else
b30fcfae 1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
5084f823 1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
b30fcfae 1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
5084f823 1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
b30fcfae 1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
5084f823 1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
71ab34df 1443fi
1444
5084f823 1445ac_ext=c
1446ac_cpp='$CPP $CPPFLAGS'
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
b30fcfae 1451
1452
1453
1454
71ab34df 1455
1456
d65dd253 1457
b30fcfae 1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
71ab34df 1472ac_aux_dir=
5084f823 1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
71ab34df 1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
5084f823 1478 elif test -f $ac_dir/install.sh; then
71ab34df 1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
5084f823 1482 elif test -f $ac_dir/shtool; then
b30fcfae 1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
71ab34df 1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
5084f823 1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
b30fcfae 1491 { (exit 1); exit 1; }; }
71ab34df 1492fi
5084f823 1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
71ab34df 1496
b30fcfae 1497# Make sure we can run config.sub.
5084f823 1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
b30fcfae 1501 { (exit 1); exit 1; }; }
1502
5084f823 1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
b30fcfae 1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
5084f823 1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
b30fcfae 1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
5084f823 1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
b30fcfae 1518 { (exit 1); exit 1; }; }
1519
1520fi
5084f823 1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
b30fcfae 1523build=$ac_cv_build
5084f823 1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
71ab34df 1527
71ab34df 1528
b30fcfae 1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
ae48753c 1532esac
1533
1534
ae48753c 1535
b30fcfae 1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
ae48753c 1539esac
1540
ae48753c 1541
b30fcfae 1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
ae48753c 1546esac
1547
ae48753c 1548
b30fcfae 1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
b30fcfae 1554 program_transform_name=s,y,y,
ae48753c 1555
5084f823 1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
b30fcfae 1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
ae48753c 1560else
5084f823 1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
b30fcfae 1567 { (exit 1); exit 1; }; }
1568
ae48753c 1569fi
5084f823 1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
b30fcfae 1572host=$ac_cv_host
5084f823 1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
b30fcfae 1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
5084f823 1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
b30fcfae 1589 { (exit 1); exit 1; }; }
1590
1591fi
5084f823 1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
b30fcfae 1594target=$ac_cv_target
5084f823 1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b30fcfae 1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
71ab34df 1606test "$program_prefix" != NONE &&
5084f823 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
71ab34df 1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
5084f823 1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
b30fcfae 1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5084f823 1617rm conftest.sed
ae48753c 1618
71ab34df 1619
1620
450e6c84 1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
b30fcfae 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 1633# OS/2's system install, which has a completely different semantic
450e6c84 1634# ./install, which can be erroneously created by make from ./install.sh.
5084f823 1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
450e6c84 1637if test -z "$INSTALL"; then
b30fcfae 1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
450e6c84 1659 if test $ac_prog = install &&
b30fcfae 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 1661 # AIX install. It has an incompatible calling convention.
1662 :
b30fcfae 1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
450e6c84 1667 else
b30fcfae 1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
450e6c84 1670 fi
1671 fi
1672 done
b30fcfae 1673 done
1674 ;;
1675esac
1676done
1677
450e6c84 1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 1681 INSTALL=$ac_cv_path_install
450e6c84 1682 else
5084f823 1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
450e6c84 1685 # break other packages using the cache if that directory is
5084f823 1686 # removed, or if the path is relative.
b30fcfae 1687 INSTALL=$ac_install_sh
450e6c84 1688 fi
1689fi
5084f823 1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
450e6c84 1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
b30fcfae 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
5084f823 1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
b30fcfae 1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
599a3eac 1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
5084f823 1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
599a3eac 1721else
1722 LN="$acx_cv_prog_LN"
5084f823 1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
599a3eac 1725fi
1726
5084f823 1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
b30fcfae 1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
5084f823 1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
a4af6a58 1733else
5084f823 1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
5965d276 1736fi
1737
450e6c84 1738
a8298541 1739### we might need to use some other shell than /bin/sh for running subshells
a8298541 1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
71ab34df 1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
a8298541 1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
a8298541 1773progname=$0
1774# if PWD already has a value, it is probably wrong.
71ab34df 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
a8298541 1776
77ae4d79 1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
ae8552b7 1781for ac_arg
1782do
77ae4d79 1783 case "$ac_arg" in
d623d587 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
77ae4d79 1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
af7bb0c0 1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
77ae4d79 1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a16b5a9d 1799
9371935c 1800
71ab34df 1801moveifchange=${srcdir}/move-if-change
a8298541 1802
e8eddfdd 1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
71ab34df 1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
71ab34df 1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
a8298541 1816fi
1817
71ab34df 1818topsrcdir=$srcpwd
ed37269d 1819
71ab34df 1820extra_host_args=
14ac9144 1821
71ab34df 1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
a8298541 1825
b30fcfae 1826# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 1827# configdirs, or target_configdirs; see the serialization section below.
a8298541 1828
b30fcfae 1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
71ab34df 1831# the Makefile, whether or not it's implicitly specified here.
a8298541 1832
71ab34df 1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
a8298541 1835
2f8725b0 1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
2b59cb05 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2f8725b0 1843
71ab34df 1844# these libraries are used by various programs built for the host environment
1845#
d45318b3 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
71ab34df 1847
71ab34df 1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
a136b23d 1853host_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 1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
71ab34df 1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
27bfe7b7 1864target_libraries="target-libgcc \
1865 target-libiberty \
71ab34df 1866 target-libgloss \
1867 target-newlib \
54d7d5f2 1868 target-libstdc++-v3 \
4ee9c684 1869 target-libmudflap \
0d55f4d0 1870 target-libssp \
4ee9c684 1871 target-libgfortran \
dd6d3a67 1872 target-boehm-gc \
cdfc500e 1873 ${libgcj} \
93341878 1874 target-libobjc \
1e8e9920 1875 target-libada \
1876 target-libgomp"
71ab34df 1877
328637e8 1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
71ab34df 1880#
328637e8 1881# note: any program that *uses* libraries that are in the "target_libraries"
71ab34df 1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
410f1dde 1885target_tools="target-examples target-groff target-gperf target-rda"
a8298541 1886
71ab34df 1887################################################################################
a8298541 1888
71ab34df 1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
71ab34df 1894configdirs=`echo ${host_libs} ${host_tools}`
328637e8 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 1896build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 1897
71ab34df 1898################################################################################
a8298541 1899
71ab34df 1900srcname="gnu development package"
a8298541 1901
71ab34df 1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
a8298541 1904
71ab34df 1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
a8298541 1909else
71ab34df 1910 is_cross_compiler=yes
b30fcfae 1911fi
a8298541 1912
2f61b8ca 1913# Find the build and target subdir names.
6f4f34a7 1914
d3e7b04c 1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 1925build_subdir="build-${build_noncanonical}"
b30fcfae 1926
5084f823 1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
d3e7b04c 1928if test "${with_build_libsubdir+set}" = set; then
5084f823 1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
d3e7b04c 1931else
1932 build_libsubdir="$build_subdir"
5084f823 1933fi;
c1eb9e31 1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
6f4f34a7 1941# No prefix.
1942target_subdir=${target_noncanonical}
b30fcfae 1943
a8298541 1944
71ab34df 1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
a8298541 1949
71ab34df 1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
a8298541 1955fi
1956
71ab34df 1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
a8298541 1962fi
1963
b30fcfae 1964# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 1965# it's not even worth trying to configure, much less build, that tool.
a8298541 1966
71ab34df 1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
f843f075 1970 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 1971 # We won't be able to build gdbtk without X.
b30fcfae 1972 enable_gdbtk=no
71ab34df 1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
a8298541 1976
71ab34df 1977# Some tools are only suitable for building in a "native" situation.
b30fcfae 1978# Remove these if host!=target.
a2c13723 1979native_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 1980
71ab34df 1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
a8298541 1989
71ab34df 1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
e8eddfdd 1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
a8298541 1997fi
1998
71ab34df 1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
a8298541 2004
71ab34df 2005# Configure extra directories which are host specific
a8298541 2006
71ab34df 2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
a8298541 2011
ff7dcf6a 2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
b30fcfae 2016# Remove more programs from consideration, based on the host or
71ab34df 2017# target this usually means that a port of the program doesn't
2018# exist yet.
c7879c37 2019
71ab34df 2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
f74ea578 2024 i[3456789]86-*-vsta)
f843f075 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
71ab34df 2026 ;;
f74ea578 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
f843f075 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
602d002b 2029 ;;
a378fc89 2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
f74ea578 2033 i[3456789]86-*-mingw32*)
f843f075 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
d6d689df 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
602d002b 2036 ;;
f74ea578 2037 i[3456789]86-*-beos*)
f843f075 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
602d002b 2039 ;;
71ab34df 2040 *-*-cygwin*)
9dec93ca 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
71ab34df 2042 ;;
2043 *-*-netbsd*)
9dec93ca 2044 noconfigdirs="$noconfigdirs rcs"
71ab34df 2045 ;;
2046 ppc*-*-pe)
f843f075 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
71ab34df 2048 ;;
2049 powerpc-*-beos*)
f843f075 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
71ab34df 2051 ;;
71ab34df 2052esac
c7879c37 2053
4ee9c684 2054
5084f823 2055# Check whether --enable-libada or --disable-libada was given.
93341878 2056if test "${enable_libada+set}" = set; then
5084f823 2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
93341878 2059else
2060 ENABLE_LIBADA=yes
5084f823 2061fi;
93341878 2062if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 2063 noconfigdirs="$noconfigdirs gnattools"
93341878 2064fi
2065
5084f823 2066# Check whether --enable-libssp or --disable-libssp was given.
07da5214 2067if test "${enable_libssp+set}" = set; then
5084f823 2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
07da5214 2070else
2071 ENABLE_LIBSSP=yes
5084f823 2072fi;
07da5214 2073
71ab34df 2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
c7879c37 2089
4ee9c684 2090
50996fe5 2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
344b2784 2093 case "${target}" in
b7ef8464 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
cb8a7007 2095 # Enable libmudflap by default in GNU and friends.
344b2784 2096 ;;
122ae8c7 2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
344b2784 2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
50996fe5 2105fi
4ee9c684 2106
50996fe5 2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
1e8e9920 2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
4938df8a 2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1e8e9920 2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
778f2e8d 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1e8e9920 2116 ;;
634efbee 2117 *-*-darwin* | *-*-aix*)
1e8e9920 2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
50996fe5 2123fi
1e8e9920 2124
1c5767f1 2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
4ee9c684 2127
71ab34df 2128case "${target}" in
2129 *-*-chorusos)
d6f7b8f2 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2131 ;;
fce068fd 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
ffe859e6 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
d28caca4 2134 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 2135 ;;
fce068fd 2136 *-*-darwin*)
2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2138 noconfigdirs="$noconfigdirs sim target-rda"
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2140 ;;
71ab34df 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
d6f7b8f2 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2143 ;;
c01dd063 2144 *-*-freebsd*)
4ee9c684 2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
d6f7b8f2 2156 noconfigdirs="$noconfigdirs ${libgcj}"
4ee9c684 2157 ;;
2158 esac
2159 ;;
336577be 2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
d6f7b8f2 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
336577be 2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
71ab34df 2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
c8a4cc21 2174 arm*-*-netbsdelf*) ;;
71ab34df 2175 *)
d6f7b8f2 2176 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2177 ;;
2178 esac
2179 ;;
634f7a13 2180 *-*-netware*)
d6f7b8f2 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
71ab34df 2182 ;;
2183 *-*-rtems*)
d6f7b8f2 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2185 ;;
9f88bc9d 2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
d6f7b8f2 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
9f88bc9d 2189 ;;
688429c4 2190 *-*-uclinux*)
d6f7b8f2 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
688429c4 2192 ;;
71ab34df 2193 *-*-vxworks*)
d6f7b8f2 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
d6f7b8f2 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
71ab34df 2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
71ab34df 2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
d6f7b8f2 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2212 ;;
700d38c2 2213 am33_2.0-*-linux*)
d6f7b8f2 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
700d38c2 2215 ;;
71ab34df 2216 sh-*-linux*)
d6f7b8f2 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
b30fcfae 2218 ;;
71ab34df 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
d6f7b8f2 2220 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
f843f075 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
54d7d5f2 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
71ab34df 2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
123bd2df 2230 *) noconfigdirs="$noconfigdirs gdb readline"
71ab34df 2231 ;;
2232 esac
1c5767f1 2233 libgloss_dir=wince
71ab34df 2234 ;;
2235 arc-*-*)
d6f7b8f2 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2237 ;;
e8eddfdd 2238 arm-semi-aof )
e8eddfdd 2239 ;;
71ab34df 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
d6f7b8f2 2241 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2242 libgloss_dir=arm
71ab34df 2243 ;;
30e9913f 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
71ab34df 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1c5767f1 2246 libgloss_dir=arm
71ab34df 2247 ;;
6783d878 2248 arm*-*-linux-gnueabi)
b9eb3c64 2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
b7ef8464 2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
1c5767f1 2254 libgloss_dir=arm
6783d878 2255 ;;
8647a116 2256 arm*-*-symbianelf*)
d6f7b8f2 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1c5767f1 2258 libgloss_dir=arm
8647a116 2259 ;;
71ab34df 2260 arm-*-pe*)
d6f7b8f2 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2262 ;;
71ab34df 2263 thumb-*-coff)
d6f7b8f2 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2265 ;;
2266 thumb-*-elf)
d6f7b8f2 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2268 ;;
71ab34df 2269 thumb-*-pe)
d6f7b8f2 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2271 ;;
2272 arm-*-riscix*)
d6f7b8f2 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
71ab34df 2274 ;;
2275 avr-*-*)
d6f7b8f2 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2277 ;;
7172be51 2278 bfin-*-*)
067bdab5 2279 noconfigdirs="$noconfigdirs gdb"
8d687193 2280 if test x${is_cross_compiler} != xno ; then
7172be51 2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
71ab34df 2284 c4x-*-* | tic4x-*-*)
d6f7b8f2 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2286 ;;
2287 c54x*-*-* | tic54x-*-*)
d6f7b8f2 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
71ab34df 2289 ;;
06b2086e 2290 cris-*-* | crisv32-*-*)
ff7dcf6a 2291 unsupported_languages="$unsupported_languages java"
06b2086e 2292 case "${target}" in
c0188550 2293 *-*-aout)
2c718da0 2294 unsupported_languages="$unsupported_languages fortran"
ff7dcf6a 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c0188550 2296 *-*-elf)
2c718da0 2297 unsupported_languages="$unsupported_languages fortran"
d0c03476 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
c0188550 2299 *-*-linux*)
d0c03476 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
06b2086e 2301 *)
2c718da0 2302 unsupported_languages="$unsupported_languages fortran"
d6f7b8f2 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
06b2086e 2304 esac
1c5767f1 2305 libgloss_dir=cris
71ab34df 2306 ;;
75b6260c 2307 crx-*-*)
d6f7b8f2 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
75b6260c 2309 ;;
71ab34df 2310 d10v-*-*)
d6f7b8f2 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2312 ;;
2313 d30v-*-*)
d6f7b8f2 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
71ab34df 2315 ;;
1c5767f1 2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
71ab34df 2319 fr30-*-elf*)
d6f7b8f2 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
71ab34df 2321 ;;
2322 frv-*-*)
d6f7b8f2 2323 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2324 ;;
2325 h8300*-*-*)
d6f7b8f2 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2327 ;;
2328 h8500-*-*)
d6f7b8f2 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2330 ;;
e8eddfdd 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 2332 ;;
71ab34df 2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
08261f02 2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
71ab34df 2341 hppa*-*-*elf* | \
71ab34df 2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
d6f7b8f2 2345 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2346 ;;
75d59721 2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
2349 ;;
1c5767f1 2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
71ab34df 2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
d6f7b8f2 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
71ab34df 2357 ;;
4a9237fb 2358 i960-*-*)
d6f7b8f2 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
4a9237fb 2360 ;;
71ab34df 2361 ia64*-*-elf*)
2362 # No gdb support yet.
f843f075 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
71ab34df 2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
d6f7b8f2 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
71ab34df 2368 ;;
e8eddfdd 2369 i370-*-opened*)
e8eddfdd 2370 ;;
f74ea578 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
d6f7b8f2 2372 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2373 libgloss_dir=i386
71ab34df 2374 ;;
f74ea578 2375 i[3456789]86-*-linux*)
71ab34df 2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
d6f7b8f2 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
71ab34df 2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
602d002b 2386 noconfigdirs="$noconfigdirs target-newlib"
71ab34df 2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
f74ea578 2394 i[3456789]86-*-mingw32*)
d6d689df 2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b30fcfae 2397 ;;
a378fc89 2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b30fcfae 2401 ;;
71ab34df 2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
d6f7b8f2 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2c10944d 2405 # always build newlib if winsup directory is present.
d6d689df 2406 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 2408 elif test -d "$srcdir/newlib"; then
d6d689df 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 2410 fi
b30fcfae 2411 ;;
e8eddfdd 2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
e8eddfdd 2414 ;;
f74ea578 2415 i[3456789]86-*-pe)
d6f7b8f2 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
71ab34df 2417 ;;
f74ea578 2418 i[3456789]86-*-sco3.2v5*)
71ab34df 2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
d6f7b8f2 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
71ab34df 2422 ;;
f74ea578 2423 i[3456789]86-*-sco*)
d6f7b8f2 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2425 ;;
f74ea578 2426 i[3456789]86-*-solaris2*)
71ab34df 2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
f74ea578 2429 i[3456789]86-*-sysv4*)
d6f7b8f2 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2431 ;;
f74ea578 2432 i[3456789]86-*-beos*)
d6f7b8f2 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
602d002b 2434 ;;
ab0da556 2435 i[3456789]86-*-rdos*)
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
4a9237fb 2438 m32r-*-*)
d6f7b8f2 2439 noconfigdirs="$noconfigdirs ${libgcj}"
4a9237fb 2440 ;;
71ab34df 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
d6f7b8f2 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1c5767f1 2443 libgloss_dir=m68hc11
71ab34df 2444 ;;
2445 m68k-*-elf*)
d6f7b8f2 2446 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2447 ;;
2448 m68k-*-coff*)
d6f7b8f2 2449 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2450 ;;
1c5767f1 2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
71ab34df 2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
ff7dcf6a 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2c718da0 2461 unsupported_languages="$unsupported_languages fortran java"
71ab34df 2462 ;;
2463 mn10200-*-*)
d6f7b8f2 2464 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2465 ;;
2466 mn10300-*-*)
d6f7b8f2 2467 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2468 ;;
957985d9 2469 mt-*-*)
f6fa11cb 2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
71ab34df 2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
d6f7b8f2 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
71ab34df 2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
d6f7b8f2 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
71ab34df 2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
d6f7b8f2 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1c5767f1 2485 libgloss_dir=rs6000
71ab34df 2486 ;;
2487 powerpc-*-beos*)
d6f7b8f2 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
71ab34df 2489 ;;
71ab34df 2490 powerpc-*-eabi)
d6f7b8f2 2491 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2492 libgloss_dir=rs6000
e8eddfdd 2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1c5767f1 2495 libgloss_dir=rs6000
71ab34df 2496 ;;
71ab34df 2497 rs6000-*-lynxos*)
d6f7b8f2 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
71ab34df 2499 ;;
2500 rs6000-*-aix*)
d6f7b8f2 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
71ab34df 2502 ;;
2503 rs6000-*-*)
d6f7b8f2 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
71ab34df 2505 ;;
2506 m68k-apollo-*)
d6f7b8f2 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
71ab34df 2508 ;;
2509 mips*-*-irix5*)
d6f7b8f2 2510 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2511 ;;
2512 mips*-*-irix6*)
71ab34df 2513 # Linking libjava exceeds command-line length limits on at least
2514 # IRIX 6.2, but not on IRIX 6.5.
2515 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2516 # <oldham@codesourcery.com>
d6f7b8f2 2517 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2518 ;;
71ab34df 2519 mips*-*-bsd*)
d6f7b8f2 2520 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2521 ;;
71ab34df 2522 mips*-*-linux*)
2523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2524 ;;
2525 mips*-*-*)
d6f7b8f2 2526 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1c5767f1 2527 libgloss_dir=mips
71ab34df 2528 ;;
2529 romp-*-*)
d6f7b8f2 2530 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
71ab34df 2531 ;;
33974778 2532 sh-*-* | sh64-*-*)
71ab34df 2533 case "${host}" in
f74ea578 2534 i[3456789]86-*-vsta) ;; # don't add gprof back in
2535 i[3456789]86-*-go32*) ;; # don't add gprof back in
2536 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
71ab34df 2537 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2538 esac
d6f7b8f2 2539 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2540 ;;
1c5767f1 2541 sparclet-*-aout* | sparc86x-*-*)
2542 libgloss_dir=sparc
2543 ;;
71ab34df 2544 sparc-*-elf*)
d6f7b8f2 2545 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2546 ;;
2547 sparc64-*-elf*)
d6f7b8f2 2548 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2549 libgloss_dir=sparc
71ab34df 2550 ;;
2551 sparclite-*-*)
d6f7b8f2 2552 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2553 libgloss_dir=sparc
71ab34df 2554 ;;
2555 sparc-*-sunos4*)
d6f7b8f2 2556 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2557 if test x${is_cross_compiler} != xno ; then
2558 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2559 else
2560 use_gnu_ld=no
2561 fi
2562 ;;
17336619 2563 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
d6f7b8f2 2564 noconfigdirs="$noconfigdirs ${libgcj}"
17336619 2565 ;;
71ab34df 2566 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2567 ;;
644459d0 2568 spu-*-*)
f5b9de9c 2569 skipdirs="target-libssp"
644459d0 2570 ;;
71ab34df 2571 v810-*-*)
d6f7b8f2 2572 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
71ab34df 2573 ;;
2574 v850-*-*)
d6f7b8f2 2575 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2576 ;;
2577 v850e-*-*)
d6f7b8f2 2578 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2579 ;;
2580 v850ea-*-*)
d6f7b8f2 2581 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2582 ;;
2583 vax-*-vms)
d6f7b8f2 2584 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
71ab34df 2585 ;;
2586 vax-*-*)
d6f7b8f2 2587 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2588 ;;
678f5830 2589 xtensa-*-*)
d6f7b8f2 2590 noconfigdirs="$noconfigdirs ${libgcj}"
678f5830 2591 ;;
71ab34df 2592 ip2k-*-*)
d6f7b8f2 2593 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2594 ;;
c01dd063 2595 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
71ab34df 2596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2597 ;;
2598 *-*-lynxos*)
d6f7b8f2 2599 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
b30fcfae 2600 ;;
71ab34df 2601 *-*-*)
d6f7b8f2 2602 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2603 ;;
2604esac
a8298541 2605
71ab34df 2606# If we aren't building newlib, then don't build libgloss, since libgloss
2607# depends upon some newlib header files.
2608case "${noconfigdirs}" in
2609 *target-libgloss*) ;;
2610 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2611esac
2612
71ab34df 2613# Work in distributions that contain no compiler tools, like Autoconf.
2614tentative_cc=""
2615host_makefile_frag=/dev/null
2616if test -d ${srcdir}/config ; then
2617case "${host}" in
2618 m68k-hp-hpux*)
2619 # Avoid "too much defining" errors from HPUX compiler.
2620 tentative_cc="cc -Wp,-H256000"
2621 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2622 # If it's HP/UX ar, this should be harmless.
2623 RANLIB="ar ts"
2624 ;;
2625 m68k-apollo-sysv*)
2626 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2627 ;;
2628 m68k-apollo-bsd*)
2629 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2630 # chokes on bfd, the compiler won't let you assign integers to enums, and
2631 # other problems. Defining CC to gcc is a questionable way to say "don't use
2632 # the apollo compiler" (the preferred version of GCC could be called cc,
2633 # or whatever), but I'm not sure leaving CC as cc is any better...
2634 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2635 # Used to have BISON=yacc.
2636 tentative_cc=gcc
2637 ;;
2638 m88k-dg-dgux*)
2639 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
71ab34df 2640 ;;
2641 m88k-harris-cxux*)
2642 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2643 tentative_cc="cc -Xa"
2644 host_makefile_frag="config/mh-cxux"
2645 ;;
2646 m88k-motorola-sysv*)
2647 ;;
2648 mips*-dec-ultrix*)
2649 tentative_cc="cc -Wf,-XNg1000"
2650 host_makefile_frag="config/mh-decstation"
2651 ;;
2652 mips*-nec-sysv4*)
2653 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2654 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2655 host_makefile_frag="config/mh-necv4"
2656 ;;
2657 mips*-sgi-irix4*)
2658 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2659 # environment. Also bump switch table size so that cp-parse will
2660 # compile. Bump string length limit so linker builds.
2661 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2662 ;;
2663 mips*-*-sysv4*)
2664 host_makefile_frag="config/mh-sysv4"
2665 ;;
2666 mips*-*-sysv*)
2667 # This is for a MIPS running RISC/os 4.52C.
2668
2669 # This is needed for GDB, but needs to be in the top-level make because
2670 # if a library is compiled with the bsd headers and gets linked with the
2671 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2672 # a different size).
2673 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2674 # known except to select the sysv environment. Could we use /proc instead?
2675 # These "sysv environments" and "bsd environments" often end up being a pain.
2676 #
2677 # This is not part of CFLAGS because perhaps not all C compilers have this
2678 # option.
2679 tentative_cc="cc -systype sysv"
2680 ;;
2681 i370-ibm-opened*)
2682 tentative_cc="c89"
2683 ;;
f74ea578 2684 i[3456789]86-*-sysv5*)
71ab34df 2685 host_makefile_frag="config/mh-sysv5"
2686 ;;
f74ea578 2687 i[3456789]86-*-dgux*)
71ab34df 2688 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2689 host_makefile_frag="config/mh-dgux386"
2690 ;;
f74ea578 2691 i[3456789]86-ncr-sysv4.3*)
71ab34df 2692 # The MetaWare compiler will generate a copyright message unless you
2693 # turn it off by adding the -Hnocopyr flag.
2694 tentative_cc="cc -Hnocopyr"
2695 ;;
f74ea578 2696 i[3456789]86-ncr-sysv4*)
71ab34df 2697 # for an NCR 3000 (i486/SVR4) system.
2698 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2699 # This compiler not only emits obnoxious copyright messages every time
2700 # you run it, but it chokes and dies on a whole bunch of GNU source
2701 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2702 tentative_cc="/usr/ccs/ATT/cc"
2703 host_makefile_frag="config/mh-ncr3000"
2704 ;;
f74ea578 2705 i[3456789]86-*-sco3.2v5*)
71ab34df 2706 ;;
f74ea578 2707 i[3456789]86-*-sco*)
71ab34df 2708 # The native C compiler botches some simple uses of const. Unfortunately,
2709 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2710 tentative_cc="cc -Dconst="
2711 host_makefile_frag="config/mh-sco"
2712 ;;
f74ea578 2713 i[3456789]86-*-udk*)
71ab34df 2714 host_makefile_frag="config/mh-sysv5"
2715 ;;
f74ea578 2716 i[3456789]86-*-solaris2*)
71ab34df 2717 host_makefile_frag="config/mh-sysv4"
2718 ;;
f74ea578 2719 i[3456789]86-*-msdosdjgpp*)
71ab34df 2720 host_makefile_frag="config/mh-djgpp"
2721 ;;
2722 *-cygwin*)
2723 host_makefile_frag="config/mh-cygwin"
2724 ;;
2725 *-mingw32*)
70d8e49e 2726 host_makefile_frag="config/mh-mingw"
71ab34df 2727 ;;
a378fc89 2728 *-mingw64*)
70d8e49e 2729 host_makefile_frag="config/mh-mingw"
a378fc89 2730 ;;
71ab34df 2731 *-interix*)
2732 host_makefile_frag="config/mh-interix"
2733 ;;
2734 vax-*-ultrix2*)
2735 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2736 tentative_cc=gcc
2737 ;;
2738 *-*-solaris2*)
2739 host_makefile_frag="config/mh-solaris"
2740 ;;
2741 m68k-sun-sunos*)
2742 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2743 # without overflowing the jump tables (-J says to use a 32 bit table)
2744 tentative_cc="cc -J"
2745 ;;
2746 *-hp-hpux*)
2747 tentative_cc="cc -Wp,-H256000"
2748 ;;
2749 *-*-hiux*)
2750 tentative_cc="cc -Wp,-H256000"
2751 ;;
2752 rs6000-*-lynxos*)
2753 # /bin/cc is less than useful for our purposes. Always use GCC
2754 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2755 host_makefile_frag="config/mh-lynxrs6k"
2756 ;;
2b64d19b 2757 powerpc-*-darwin*)
0222d984 2758 host_makefile_frag="config/mh-ppc-darwin"
2759 ;;
9d44a802 2760 powerpc-*-aix*)
2761 host_makefile_frag="config/mh-ppc-aix"
2762 ;;
2763 rs6000-*-aix*)
2764 host_makefile_frag="config/mh-ppc-aix"
2765 ;;
71ab34df 2766 *-*-lynxos*)
2767 # /bin/cc is less than useful for our purposes. Always use GCC
2768 tentative_cc="/bin/gcc"
2769 ;;
2770 *-*-sysv4*)
2771 host_makefile_frag="config/mh-sysv4"
2772 ;;
da9e6519 2773 # This is placed last to prevent interfering with the cases above.
2774 i[3456789]86-*-*)
2775 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2776 host_makefile_frag="config/mh-x86omitfp"
2777 ;;
71ab34df 2778esac
2779fi
2780
8e1fea1a 2781# If we aren't going to be using gcc, see if we can extract a definition
2782# of CC from the fragment.
2783# Actually, use the 'pre-extracted' version above.
2784if test -z "${CC}" && test "${build}" = "${host}" ; then
2785 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2786 found=
2787 for dir in $PATH; do
2788 test -z "$dir" && dir=.
2789 if test -f $dir/gcc; then
2790 found=yes
2791 break
2792 fi
2793 done
2794 IFS="$save_ifs"
2795 if test -z "${found}" && test -n "${tentative_cc}" ; then
2796 CC=$tentative_cc
2797 fi
2798fi
2799
2800if test "${build}" != "${host}" ; then
8e1fea1a 2801 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
8e1fea1a 2802else
a4af6a58 2803 CC_FOR_BUILD="\$(CC)"
eae5b2bc 2804fi
2805
2806ac_ext=c
b30fcfae 2807ac_cpp='$CPP $CPPFLAGS'
2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813set dummy ${ac_tool_prefix}gcc; ac_word=$2
5084f823 2814echo "$as_me:$LINENO: checking for $ac_word" >&5
2815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2816if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835
2836fi
2837fi
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
5084f823 2840 echo "$as_me:$LINENO: result: $CC" >&5
2841echo "${ECHO_T}$CC" >&6
b30fcfae 2842else
5084f823 2843 echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6
b30fcfae 2845fi
2846
2847fi
2848if test -z "$ac_cv_prog_CC"; then
2849 ac_ct_CC=$CC
a4af6a58 2850 # Extract the first word of "gcc", so it can be a program name with args.
2851set dummy gcc; ac_word=$2
5084f823 2852echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2867 ac_cv_prog_ac_ct_CC="gcc"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871done
2872done
2873
2874fi
2875fi
2876ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877if test -n "$ac_ct_CC"; then
5084f823 2878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879echo "${ECHO_T}$ac_ct_CC" >&6
b30fcfae 2880else
5084f823 2881 echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
b30fcfae 2883fi
2884
5084f823 2885 CC=$ac_ct_CC
b30fcfae 2886else
2887 CC="$ac_cv_prog_CC"
2888fi
2889
2890if test -z "$CC"; then
5084f823 2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 2893set dummy ${ac_tool_prefix}cc; ac_word=$2
5084f823 2894echo "$as_me:$LINENO: checking for $ac_word" >&5
2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2896if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 2898else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
b30fcfae 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2909 ac_cv_prog_CC="${ac_tool_prefix}cc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913done
2914done
2915
a83ffacf 2916fi
a83ffacf 2917fi
b30fcfae 2918CC=$ac_cv_prog_CC
ae48753c 2919if test -n "$CC"; then
5084f823 2920 echo "$as_me:$LINENO: result: $CC" >&5
2921echo "${ECHO_T}$CC" >&6
a83ffacf 2922else
5084f823 2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
a83ffacf 2925fi
2926
5084f823 2927fi
2928if test -z "$ac_cv_prog_CC"; then
2929 ac_ct_CC=$CC
2930 # Extract the first word of "cc", so it can be a program name with args.
2931set dummy cc; ac_word=$2
2932echo "$as_me:$LINENO: checking for $ac_word" >&5
2933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="cc"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
570af75a 2950 fi
5084f823 2951done
2952done
2953
2954fi
2955fi
2956ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957if test -n "$ac_ct_CC"; then
2958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959echo "${ECHO_T}$ac_ct_CC" >&6
2960else
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963fi
2964
2965 CC=$ac_ct_CC
2966else
2967 CC="$ac_cv_prog_CC"
2968fi
2969
b30fcfae 2970fi
8e1fea1a 2971if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973set dummy cc; ac_word=$2
5084f823 2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2976if test "${ac_cv_prog_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 2978else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
a83ffacf 2982 ac_prog_rejected=no
b30fcfae 2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2992 continue
2993 fi
2994 ac_cv_prog_CC="cc"
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999done
3000
8e1fea1a 3001if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3004 shift
b30fcfae 3005 if test $# != 0; then
8e1fea1a 3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3009 shift
b30fcfae 3010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 3011 fi
3012fi
3013fi
3014fi
b30fcfae 3015CC=$ac_cv_prog_CC
8e1fea1a 3016if test -n "$CC"; then
5084f823 3017 echo "$as_me:$LINENO: result: $CC" >&5
3018echo "${ECHO_T}$CC" >&6
8e1fea1a 3019else
5084f823 3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
8e1fea1a 3022fi
3023
b30fcfae 3024fi
3025if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
5084f823 3027 for ac_prog in cl
b30fcfae 3028 do
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084f823 3031echo "$as_me:$LINENO: checking for $ac_word" >&5
3032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3033if test "${ac_cv_prog_CC+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 3035else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
b30fcfae 3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050done
3051done
3052
8e1fea1a 3053fi
3054fi
b30fcfae 3055CC=$ac_cv_prog_CC
8e1fea1a 3056if test -n "$CC"; then
5084f823 3057 echo "$as_me:$LINENO: result: $CC" >&5
3058echo "${ECHO_T}$CC" >&6
b1660f25 3059else
5084f823 3060 echo "$as_me:$LINENO: result: no" >&5
3061echo "${ECHO_T}no" >&6
a4af6a58 3062fi
ae48753c 3063
b30fcfae 3064 test -n "$CC" && break
3065 done
ae48753c 3066fi
b30fcfae 3067if test -z "$CC"; then
3068 ac_ct_CC=$CC
5084f823 3069 for ac_prog in cl
b30fcfae 3070do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072set dummy $ac_prog; ac_word=$2
5084f823 3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
a83ffacf 3077else
b30fcfae 3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 3080else
b30fcfae 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
ae48753c 3095fi
3096fi
b30fcfae 3097ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098if test -n "$ac_ct_CC"; then
5084f823 3099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100echo "${ECHO_T}$ac_ct_CC" >&6
a4af6a58 3101else
5084f823 3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
ae48753c 3104fi
a83ffacf 3105
b30fcfae 3106 test -n "$ac_ct_CC" && break
3107done
3108
5084f823 3109 CC=$ac_ct_CC
b30fcfae 3110fi
3111
3112fi
3113
3114
3115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3116See \`config.log' for more details." >&5
3117echo "$as_me: error: no acceptable C compiler found in \$PATH
3118See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3120
3121# Provide some information about the compiler.
5084f823 3122echo "$as_me:$LINENO:" \
3123 "checking for C compiler version" >&5
b30fcfae 3124ac_compiler=`set X $ac_compile; echo $2`
5084f823 3125{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3126 (eval $ac_compiler --version </dev/null >&5) 2>&5
b30fcfae 3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }
5084f823 3130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3131 (eval $ac_compiler -v </dev/null >&5) 2>&5
b30fcfae 3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }
5084f823 3135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3136 (eval $ac_compiler -V </dev/null >&5) 2>&5
b30fcfae 3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }
3140
3141cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156ac_clean_files_save=$ac_clean_files
3157ac_clean_files="$ac_clean_files a.out a.exe b.out"
3158# Try to create an executable without -o first, disregard a.out.
3159# It will help us diagnose broken compilers, and finding out an intuition
3160# of exeext.
5084f823 3161echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
b30fcfae 3163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5084f823 3164if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3165 (eval $ac_link_default) 2>&5
b30fcfae 3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
5084f823 3169 # Find the output, starting from the most likely. This scheme is
3170# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3171# resort.
3172
3173# Be careful to initialize this variable, since it used to be cached.
3174# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3175ac_cv_exeext=
3176# b.out is created by i960 compilers.
3177for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
b30fcfae 3178do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
5084f823 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3182 ;;
3183 conftest.$ac_ext )
3184 # This is the source file.
b30fcfae 3185 ;;
3186 [ab].out )
3187 # We found the default executable, but exeext='' is most
3188 # certainly right.
3189 break;;
3190 *.* )
5084f823 3191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192 # FIXME: I believe we export ac_cv_exeext for Libtool,
3193 # but it would be cool to find out if it's true. Does anybody
3194 # maintain Libtool? --akim.
3195 export ac_cv_exeext
b30fcfae 3196 break;;
3197 * )
3198 break;;
3199 esac
3200done
3201else
3202 echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3206See \`config.log' for more details." >&5
3207echo "$as_me: error: C compiler cannot create executables
3208See \`config.log' for more details." >&2;}
3209 { (exit 77); exit 77; }; }
3210fi
3211
3212ac_exeext=$ac_cv_exeext
5084f823 3213echo "$as_me:$LINENO: result: $ac_file" >&5
3214echo "${ECHO_T}$ac_file" >&6
b30fcfae 3215
5084f823 3216# Check the compiler produces executables we can run. If not, either
b30fcfae 3217# the compiler is broken, or we cross compile.
5084f823 3218echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
b30fcfae 3220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3221# If not cross compiling, check that we can run a simple program.
3222if test "$cross_compiling" != yes; then
3223 if { ac_try='./$ac_file'
5084f823 3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
b30fcfae 3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 cross_compiling=no
3230 else
3231 if test "$cross_compiling" = maybe; then
3232 cross_compiling=yes
3233 else
3234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3235If you meant to cross compile, use \`--host'.
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: cannot run C compiled programs.
3238If you meant to cross compile, use \`--host'.
3239See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242 fi
3243fi
5084f823 3244echo "$as_me:$LINENO: result: yes" >&5
3245echo "${ECHO_T}yes" >&6
b30fcfae 3246
3247rm -f a.out a.exe conftest$ac_cv_exeext b.out
3248ac_clean_files=$ac_clean_files_save
5084f823 3249# Check the compiler produces executables we can run. If not, either
b30fcfae 3250# the compiler is broken, or we cross compile.
5084f823 3251echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3253echo "$as_me:$LINENO: result: $cross_compiling" >&5
3254echo "${ECHO_T}$cross_compiling" >&6
3255
3256echo "$as_me:$LINENO: checking for suffix of executables" >&5
3257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>&5
b30fcfae 3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; then
3263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265# work properly (i.e., refer to `conftest.exe'), while it won't with
3266# `rm'.
3267for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
3269 case $ac_file in
5084f823 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
b30fcfae 3271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5084f823 3272 export ac_cv_exeext
b30fcfae 3273 break;;
3274 * ) break;;
3275 esac
3276done
ae48753c 3277else
b30fcfae 3278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3279See \`config.log' for more details." >&5
3280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3281See \`config.log' for more details." >&2;}
3282 { (exit 1); exit 1; }; }
3283fi
3284
3285rm -f conftest$ac_cv_exeext
5084f823 3286echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3287echo "${ECHO_T}$ac_cv_exeext" >&6
b30fcfae 3288
3289rm -f conftest.$ac_ext
3290EXEEXT=$ac_cv_exeext
3291ac_exeext=$EXEEXT
5084f823 3292echo "$as_me:$LINENO: checking for suffix of object files" >&5
3293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
b30fcfae 3294if test "${ac_cv_objext+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312rm -f conftest.o conftest.obj
5084f823 3313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>&5
b30fcfae 3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; then
5084f823 3318 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
b30fcfae 3319 case $ac_file in
5084f823 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
b30fcfae 3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3322 break;;
3323 esac
3324done
3325else
3326 echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3330See \`config.log' for more details." >&5
3331echo "$as_me: error: cannot compute suffix of object files: cannot compile
3332See \`config.log' for more details." >&2;}
3333 { (exit 1); exit 1; }; }
3334fi
3335
3336rm -f conftest.$ac_cv_objext conftest.$ac_ext
3337fi
5084f823 3338echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3339echo "${ECHO_T}$ac_cv_objext" >&6
b30fcfae 3340OBJEXT=$ac_cv_objext
3341ac_objext=$OBJEXT
5084f823 3342echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3343echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
b30fcfae 3344if test "${ac_cv_c_compiler_gnu+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347 cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */
3353
3354int
3355main ()
3356{
3357#ifndef __GNUC__
3358 choke me
3359#endif
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365rm -f conftest.$ac_objext
5084f823 3366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>conftest.er1
b30fcfae 3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag"
3375 || test ! -s conftest.err'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
b30fcfae 3387 ac_compiler_gnu=yes
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
5084f823 3392ac_compiler_gnu=no
b30fcfae 3393fi
5084f823 3394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 3395ac_cv_c_compiler_gnu=$ac_compiler_gnu
3396
3397fi
5084f823 3398echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3399echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
b30fcfae 3400GCC=`test $ac_compiler_gnu = yes && echo yes`
3401ac_test_CFLAGS=${CFLAGS+set}
3402ac_save_CFLAGS=$CFLAGS
5084f823 3403CFLAGS="-g"
3404echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3405echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
b30fcfae 3406if test "${ac_cv_prog_cc_g+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
5084f823 3409 cat >conftest.$ac_ext <<_ACEOF
b30fcfae 3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415
3416int
3417main ()
3418{
3419
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
5084f823 3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
b30fcfae 3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
b30fcfae 3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
b30fcfae 3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3445 (exit $ac_status); }; }; then
8e1fea1a 3446 ac_cv_prog_cc_g=yes
3447else
b30fcfae 3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
ae48753c 3450
5084f823 3451ac_cv_prog_cc_g=no
a83ffacf 3452fi
5084f823 3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 3454fi
5084f823 3455echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3456echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8e1fea1a 3457if test "$ac_test_CFLAGS" = set; then
b30fcfae 3458 CFLAGS=$ac_save_CFLAGS
8e1fea1a 3459elif test $ac_cv_prog_cc_g = yes; then
3460 if test "$GCC" = yes; then
3461 CFLAGS="-g -O2"
3462 else
3463 CFLAGS="-g"
3464 fi
3465else
3466 if test "$GCC" = yes; then
3467 CFLAGS="-O2"
3468 else
3469 CFLAGS=
3470 fi
3471fi
5084f823 3472echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3473echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3474if test "${ac_cv_prog_cc_stdc+set}" = set; then
b30fcfae 3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
5084f823 3477 ac_cv_prog_cc_stdc=no
b30fcfae 3478ac_save_CC=$CC
3479cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h. */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h. */
3485#include <stdarg.h>
3486#include <stdio.h>
3487#include <sys/types.h>
3488#include <sys/stat.h>
3489/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3490struct buf { int x; };
3491FILE * (*rcsopen) (struct buf *, struct stat *, int);
3492static char *e (p, i)
3493 char **p;
3494 int i;
3495{
3496 return p[i];
3497}
3498static char *f (char * (*g) (char **, int), char **p, ...)
3499{
3500 char *s;
3501 va_list v;
3502 va_start (v,p);
3503 s = g (p, va_arg (v,int));
3504 va_end (v);
3505 return s;
3506}
3507
3508/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3509 function prototypes and stuff, but not '\xHH' hex character constants.
3510 These don't provoke an error unfortunately, instead are silently treated
5084f823 3511 as 'x'. The following induces an error, until -std1 is added to get
b30fcfae 3512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3513 array size at least. It's necessary to write '\x00'==0 to get something
5084f823 3514 that's true only with -std1. */
b30fcfae 3515int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3516
3517int test (int i, double x);
3518struct s1 {int (*f) (int a);};
3519struct s2 {int (*f) (double a);};
3520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521int argc;
3522char **argv;
3523int
3524main ()
3525{
3526return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 ;
3528 return 0;
3529}
3530_ACEOF
5084f823 3531# Don't try gcc -ansi; that turns off useful extensions and
3532# breaks some systems' header files.
3533# AIX -qlanglvl=ansi
3534# Ultrix and OSF/1 -std1
3535# HP-UX 10.20 and later -Ae
3536# HP-UX older versions -Aa -D_HPUX_SOURCE
3537# SVR4 -Xc -D__EXTENSIONS__
3538for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 3539do
3540 CC="$ac_save_CC $ac_arg"
3541 rm -f conftest.$ac_objext
5084f823 3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>conftest.er1
b30fcfae 3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_prog_cc_stdc=$ac_arg
3564break
b30fcfae 3565else
3566 echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569fi
5084f823 3570rm -f conftest.err conftest.$ac_objext
b30fcfae 3571done
5084f823 3572rm -f conftest.$ac_ext conftest.$ac_objext
b30fcfae 3573CC=$ac_save_CC
3574
3575fi
5084f823 3576
3577case "x$ac_cv_prog_cc_stdc" in
3578 x|xno)
3579 echo "$as_me:$LINENO: result: none needed" >&5
3580echo "${ECHO_T}none needed" >&6 ;;
b30fcfae 3581 *)
5084f823 3582 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3583echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3584 CC="$CC $ac_cv_prog_cc_stdc" ;;
b30fcfae 3585esac
3586
5084f823 3587# Some people use a C++ compiler to compile C. Since we use `exit',
3588# in C++ we need to declare it. In case someone uses the same compiler
3589# for both compiling C and C++ we need to have the C++ compiler decide
3590# the declaration of exit, since it's the most demanding environment.
3591cat >conftest.$ac_ext <<_ACEOF
3592#ifndef __cplusplus
3593 choke me
3594#endif
3595_ACEOF
3596rm -f conftest.$ac_objext
3597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 for ac_declaration in \
3619 '' \
3620 'extern "C" void std::exit (int) throw (); using std::exit;' \
3621 'extern "C" void std::exit (int); using std::exit;' \
3622 'extern "C" void exit (int) throw ();' \
3623 'extern "C" void exit (int);' \
3624 'void exit (int);'
3625do
3626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632$ac_declaration
3633#include <stdlib.h>
3634int
3635main ()
3636{
3637exit (42);
3638 ;
3639 return 0;
3640}
3641_ACEOF
3642rm -f conftest.$ac_objext
3643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644 (eval $ac_compile) 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -z "$ac_c_werror_flag"
3652 || test ! -s conftest.err'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 :
3665else
3666 echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669continue
3670fi
3671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3672 cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
3678$ac_declaration
3679int
3680main ()
3681{
3682exit (42);
3683 ;
3684 return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 break
3710else
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714fi
3715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716done
3717rm -f conftest*
3718if test -n "$ac_declaration"; then
3719 echo '#ifdef __cplusplus' >>confdefs.h
3720 echo $ac_declaration >>confdefs.h
3721 echo '#endif' >>confdefs.h
3722fi
3723
3724else
3725 echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728fi
3729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730ac_ext=c
3731ac_cpp='$CPP $CPPFLAGS'
3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735
3736ac_ext=cc
3737ac_cpp='$CXXCPP $CPPFLAGS'
3738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3741if test -n "$ac_tool_prefix"; then
3742 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3743 do
3744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3746echo "$as_me:$LINENO: checking for $ac_word" >&5
3747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748if test "${ac_cv_prog_CXX+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if test -n "$CXX"; then
3752 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765done
3766done
8e1fea1a 3767
eae5b2bc 3768fi
3769fi
3770CXX=$ac_cv_prog_CXX
3771if test -n "$CXX"; then
5084f823 3772 echo "$as_me:$LINENO: result: $CXX" >&5
3773echo "${ECHO_T}$CXX" >&6
eae5b2bc 3774else
5084f823 3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
eae5b2bc 3777fi
3778
3779 test -n "$CXX" && break
3780 done
3781fi
3782if test -z "$CXX"; then
3783 ac_ct_CXX=$CXX
5084f823 3784 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
eae5b2bc 3785do
3786 # Extract the first word of "$ac_prog", so it can be a program name with args.
3787set dummy $ac_prog; ac_word=$2
5084f823 3788echo "$as_me:$LINENO: checking for $ac_word" >&5
3789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
eae5b2bc 3790if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 if test -n "$ac_ct_CXX"; then
3794 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eae5b2bc 3803 ac_cv_prog_ac_ct_CXX="$ac_prog"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3806 fi
3807done
3808done
3809
3810fi
3811fi
3812ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3813if test -n "$ac_ct_CXX"; then
5084f823 3814 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3815echo "${ECHO_T}$ac_ct_CXX" >&6
eae5b2bc 3816else
5084f823 3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
eae5b2bc 3819fi
3820
3821 test -n "$ac_ct_CXX" && break
3822done
5084f823 3823test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
eae5b2bc 3824
5084f823 3825 CXX=$ac_ct_CXX
eae5b2bc 3826fi
3827
5084f823 3828
eae5b2bc 3829# Provide some information about the compiler.
5084f823 3830echo "$as_me:$LINENO:" \
3831 "checking for C++ compiler version" >&5
eae5b2bc 3832ac_compiler=`set X $ac_compile; echo $2`
5084f823 3833{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3834 (eval $ac_compiler --version </dev/null >&5) 2>&5
eae5b2bc 3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }
5084f823 3838{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3839 (eval $ac_compiler -v </dev/null >&5) 2>&5
eae5b2bc 3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }
5084f823 3843{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3844 (eval $ac_compiler -V </dev/null >&5) 2>&5
eae5b2bc 3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }
3848
5084f823 3849echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3850echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
eae5b2bc 3851if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h. */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
3859/* end confdefs.h. */
3860
3861int
3862main ()
3863{
3864#ifndef __GNUC__
3865 choke me
3866#endif
3867
3868 ;
3869 return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext
5084f823 3873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3874 (eval $ac_compile) 2>conftest.er1
eae5b2bc 3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3880 (exit $ac_status); } &&
3881 { ac_try='test -z "$ac_cxx_werror_flag"
3882 || test ! -s conftest.err'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; } &&
3888 { ac_try='test -s conftest.$ac_objext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
eae5b2bc 3894 ac_compiler_gnu=yes
3895else
3896 echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
5084f823 3899ac_compiler_gnu=no
eae5b2bc 3900fi
5084f823 3901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 3902ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3903
3904fi
5084f823 3905echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3906echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
eae5b2bc 3907GXX=`test $ac_compiler_gnu = yes && echo yes`
3908ac_test_CXXFLAGS=${CXXFLAGS+set}
3909ac_save_CXXFLAGS=$CXXFLAGS
5084f823 3910CXXFLAGS="-g"
3911echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3912echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
eae5b2bc 3913if test "${ac_cv_prog_cxx_g+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
5084f823 3916 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
3922
3923int
3924main ()
3925{
3926
3927 ;
3928 return 0;
3929}
3930_ACEOF
3931rm -f conftest.$ac_objext
5084f823 3932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>conftest.er1
eae5b2bc 3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3939 (exit $ac_status); } &&
3940 { ac_try='test -z "$ac_cxx_werror_flag"
3941 || test ! -s conftest.err'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; } &&
3947 { ac_try='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
eae5b2bc 3953 ac_cv_prog_cxx_g=yes
3954else
3955 echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
5084f823 3958ac_cv_prog_cxx_g=no
3959fi
3960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3961fi
3962echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3963echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3964if test "$ac_test_CXXFLAGS" = set; then
3965 CXXFLAGS=$ac_save_CXXFLAGS
3966elif test $ac_cv_prog_cxx_g = yes; then
3967 if test "$GXX" = yes; then
3968 CXXFLAGS="-g -O2"
3969 else
3970 CXXFLAGS="-g"
3971 fi
3972else
3973 if test "$GXX" = yes; then
3974 CXXFLAGS="-O2"
3975 else
3976 CXXFLAGS=
3977 fi
3978fi
3979for ac_declaration in \
3980 '' \
3981 'extern "C" void std::exit (int) throw (); using std::exit;' \
3982 'extern "C" void std::exit (int); using std::exit;' \
3983 'extern "C" void exit (int) throw ();' \
3984 'extern "C" void exit (int);' \
3985 'void exit (int);'
3986do
3987 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
5084f823 3993$ac_declaration
3994#include <stdlib.h>
eae5b2bc 3995int
3996main ()
3997{
5084f823 3998exit (42);
eae5b2bc 3999 ;
4000 return 0;
4001}
4002_ACEOF
4003rm -f conftest.$ac_objext
5084f823 4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_cxx_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
eae5b2bc 4025 :
4026else
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
2f8725b0 4029
5084f823 4030continue
4031fi
4032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
5084f823 4039$ac_declaration
eae5b2bc 4040int
4041main ()
4042{
5084f823 4043exit (42);
eae5b2bc 4044 ;
4045 return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext
5084f823 4049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4056 (exit $ac_status); } &&
4057 { ac_try='test -z "$ac_cxx_werror_flag"
4058 || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 break
eae5b2bc 4071else
4072 echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
570af75a 4075fi
5084f823 4076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4077done
4078rm -f conftest*
4079if test -n "$ac_declaration"; then
4080 echo '#ifdef __cplusplus' >>confdefs.h
4081 echo $ac_declaration >>confdefs.h
4082 echo '#endif' >>confdefs.h
eae5b2bc 4083fi
4084
4085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091
4092# We must set the default linker to the linker used by gcc for the correct
4093# operation of libtool. If LD is not defined and we are using gcc, try to
4094# set the LD default to the ld used by gcc.
4095if test -z "$LD"; then
4096 if test "$GCC" = yes; then
4097 case $build in
4098 *-*-mingw*)
4099 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4100 *)
4101 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4102 esac
4103 case $gcc_prog_ld in
4104 # Accept absolute paths.
4105 [\\/]* | [A-Za-z]:[\\/]*)
4106 LD="$gcc_prog_ld" ;;
4107 esac
4108 fi
2f8725b0 4109fi
4110
2f8725b0 4111
4112
8e1fea1a 4113
b30fcfae 4114if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 4116set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5084f823 4117echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4119if test "${ac_cv_prog_GNATBIND+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4121else
4122 if test -n "$GNATBIND"; then
4123 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4124else
b30fcfae 4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4132 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136done
4137done
4138
8e1fea1a 4139fi
4140fi
b30fcfae 4141GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 4142if test -n "$GNATBIND"; then
5084f823 4143 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4144echo "${ECHO_T}$GNATBIND" >&6
8e1fea1a 4145else
5084f823 4146 echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
8e1fea1a 4148fi
4149
b30fcfae 4150fi
8e1fea1a 4151if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 4152 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 4153 # Extract the first word of "gnatbind", so it can be a program name with args.
4154set dummy gnatbind; ac_word=$2
5084f823 4155echo "$as_me:$LINENO: checking for $ac_word" >&5
4156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4157if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4159else
b30fcfae 4160 if test -n "$ac_ct_GNATBIND"; then
4161 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 4162else
b30fcfae 4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH
4165do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4170 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174done
4175done
4176
5084f823 4177 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
8e1fea1a 4178fi
4179fi
b30fcfae 4180ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4181if test -n "$ac_ct_GNATBIND"; then
5084f823 4182 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4183echo "${ECHO_T}$ac_ct_GNATBIND" >&6
8e1fea1a 4184else
5084f823 4185 echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
8e1fea1a 4187fi
4188
5084f823 4189 GNATBIND=$ac_ct_GNATBIND
8e1fea1a 4190else
b30fcfae 4191 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 4192fi
4193
b30fcfae 4194if test -n "$ac_tool_prefix"; then
4195 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 4196set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5084f823 4197echo "$as_me:$LINENO: checking for $ac_word" >&5
4198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4199if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
a18b2c54 4201else
4202 if test -n "$GNATMAKE"; then
4203 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4204else
b30fcfae 4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4212 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216done
4217done
4218
a18b2c54 4219fi
4220fi
b30fcfae 4221GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 4222if test -n "$GNATMAKE"; then
5084f823 4223 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4224echo "${ECHO_T}$GNATMAKE" >&6
a18b2c54 4225else
5084f823 4226 echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6
a18b2c54 4228fi
4229
b30fcfae 4230fi
a18b2c54 4231if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 4232 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 4233 # Extract the first word of "gnatmake", so it can be a program name with args.
4234set dummy gnatmake; ac_word=$2
5084f823 4235echo "$as_me:$LINENO: checking for $ac_word" >&5
4236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4237if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
a18b2c54 4239else
b30fcfae 4240 if test -n "$ac_ct_GNATMAKE"; then
4241 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 4242else
b30fcfae 4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4250 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254done
4255done
4256
5084f823 4257 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
a18b2c54 4258fi
4259fi
b30fcfae 4260ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4261if test -n "$ac_ct_GNATMAKE"; then
5084f823 4262 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4263echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
a18b2c54 4264else
5084f823 4265 echo "$as_me:$LINENO: result: no" >&5
4266echo "${ECHO_T}no" >&6
a18b2c54 4267fi
4268
5084f823 4269 GNATMAKE=$ac_ct_GNATMAKE
a18b2c54 4270else
b30fcfae 4271 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 4272fi
4273
5084f823 4274echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4275echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
b30fcfae 4276if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4278else
4279 cat >conftest.adb <<EOF
4280procedure conftest is begin null; end conftest;
4281EOF
4282acx_cv_cc_gcc_supports_ada=no
4283# There is a bug in old released versions of GCC which causes the
4284# driver to exit successfully when the appropriate language module
4285# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4286# Therefore we must check for the error message as well as an
4287# unsuccessful exit.
216de822 4288# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4289# given a .adb file, but produce no object file. So we must check
4290# if an object file was really produced to guard against this.
8e1fea1a 4291errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 4292if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 4293 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 4294fi
4295rm -f conftest.*
4296fi
5084f823 4297echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4298echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
8e1fea1a 4299
a18b2c54 4300if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 4301 have_gnat=yes
4302else
4303 have_gnat=no
4304fi
4305
5084f823 4306echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4307echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
b30fcfae 4308if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
7bcc3b4a 4310else
4311 echo abfoo >t1
4312 echo cdfoo >t2
4313 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 4314 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4315 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4316 :
4317 else
4318 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4319 fi
4320 fi
7bcc3b4a 4321 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4322 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 4323 :
7bcc3b4a 4324 else
4325 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4326 fi
4327 fi
4328 rm t1 t2
4329
4330fi
5084f823 4331echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4332echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7bcc3b4a 4333do_compare="$gcc_cv_prog_cmp_skip"
4334
4335
8e1fea1a 4336
5ca838b8 4337# Check for GMP and MPFR
d45318b3 4338gmplibs="-lmpfr -lgmp"
4ee9c684 4339gmpinc=
d45318b3 4340have_gmp=no
4341
5ca838b8 4342# Specify a location for mpfr
4343# check for this first so it ends up on the link line before gmp.
b30fcfae 4344
5084f823 4345# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
5ca838b8 4346if test "${with_mpfr_dir+set}" = set; then
5084f823 4347 withval="$with_mpfr_dir"
4348 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
b30fcfae 4349Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4350echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4351Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4352 { (exit 1); exit 1; }; }
5084f823 4353fi;
5ca838b8 4354
4355
5084f823 4356# Check whether --with-mpfr or --without-mpfr was given.
5ca838b8 4357if test "${with_mpfr+set}" = set; then
5084f823 4358 withval="$with_mpfr"
b30fcfae 4359
5084f823 4360fi;
5ca838b8 4361
5084f823 4362# Check whether --with-mpfr_include or --without-mpfr_include was given.
a5144c1d 4363if test "${with_mpfr_include+set}" = set; then
5084f823 4364 withval="$with_mpfr_include"
b30fcfae 4365
5084f823 4366fi;
a5144c1d 4367
5084f823 4368# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
a5144c1d 4369if test "${with_mpfr_lib+set}" = set; then
5084f823 4370 withval="$with_mpfr_lib"
a5144c1d 4371
5084f823 4372fi;
5ca838b8 4373
4374if test "x$with_mpfr" != x; then
4375 gmplibs="-L$with_mpfr/lib $gmplibs"
4376 gmpinc="-I$with_mpfr/include"
4377fi
a5144c1d 4378if test "x$with_mpfr_include" != x; then
4379 gmpinc="-I$with_mpfr_include"
4380fi
4381if test "x$with_mpfr_lib" != x; then
4382 gmplibs="-L$with_mpfr_lib $gmplibs"
4383fi
d45318b3 4384if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4385 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4386 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4387 # Do not test the mpfr version. Assume that it is sufficient, since
4388 # it is in the source tree, and the library has not been built yet
4389 # but it would be included on the link line in the version check below
4390 # hence making the test fail.
4391 have_gmp=yes
4392fi
5ca838b8 4393
4ee9c684 4394# Specify a location for gmp
b30fcfae 4395
5084f823 4396# Check whether --with-gmp-dir or --without-gmp-dir was given.
4ee9c684 4397if test "${with_gmp_dir+set}" = set; then
5084f823 4398 withval="$with_gmp_dir"
4399 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
b30fcfae 4400Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4401echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4402Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4403 { (exit 1); exit 1; }; }
5084f823 4404fi;
4ee9c684 4405
4ee9c684 4406
5084f823 4407# Check whether --with-gmp or --without-gmp was given.
4ee9c684 4408if test "${with_gmp+set}" = set; then
5084f823 4409 withval="$with_gmp"
b30fcfae 4410
5084f823 4411fi;
4ee9c684 4412
5084f823 4413# Check whether --with-gmp_include or --without-gmp_include was given.
a5144c1d 4414if test "${with_gmp_include+set}" = set; then
5084f823 4415 withval="$with_gmp_include"
b30fcfae 4416
5084f823 4417fi;
a5144c1d 4418
5084f823 4419# Check whether --with-gmp_lib or --without-gmp_lib was given.
a5144c1d 4420if test "${with_gmp_lib+set}" = set; then
5084f823 4421 withval="$with_gmp_lib"
a5144c1d 4422
5084f823 4423fi;
a5144c1d 4424
4ee9c684 4425
5ca838b8 4426if test "x$with_gmp" != x; then
4427 gmplibs="-L$with_gmp/lib $gmplibs"
4428 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 4429fi
a5144c1d 4430if test "x$with_gmp_include" != x; then
4431 gmpinc="-I$with_gmp_include $gmpinc"
4432fi
4433if test "x$with_gmp_lib" != x; then
4434 gmplibs="-L$with_gmp_lib $gmplibs"
4435fi
d45318b3 4436if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4437 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4438 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4439 # Do not test the gmp version. Assume that it is sufficient, since
4440 # it is in the source tree, and the library has not been built yet
4441 # but it would be included on the link line in the version check below
4442 # hence making the test fail.
4443 have_gmp=yes
4444fi
4ee9c684 4445
16c9b2e3 4446if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 4447 have_gmp=yes
4448 saved_CFLAGS="$CFLAGS"
4449 CFLAGS="$CFLAGS $gmpinc"
4450 # Check GMP actually works
5084f823 4451 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4452echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
b30fcfae 4453
4454cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h. */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h. */
4ee9c684 4460#include "gmp.h"
b30fcfae 4461int
4462main ()
4463{
4ee9c684 4464
d45318b3 4465 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4466 choke me
4467 #endif
b30fcfae 4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext
5084f823 4474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>conftest.er1
b30fcfae 4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
b30fcfae 4497else
4498 echo "$as_me: failed program was:" >&5
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
5084f823 4501echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6; have_gmp=no
b30fcfae 4503fi
5084f823 4504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 4505
d45318b3 4506 if test x"$have_gmp" = xyes; then
4507 saved_LIBS="$LIBS"
4508 LIBS="$LIBS $gmplibs"
5084f823 4509 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4510echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
b30fcfae 4511 cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
6a086156 4517#include <gmp.h>
d45318b3 4518 #include <mpfr.h>
b30fcfae 4519int
4520main ()
4521{
112f3d57 4522
d45318b3 4523 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4524 choke me
4525 #endif
78a477ad 4526 mpfr_t n;
4527 mpfr_t x;
d45318b3 4528 int t;
78a477ad 4529 mpfr_init (n);
4530 mpfr_init (x);
d45318b3 4531 mpfr_atan2 (n, n, x, GMP_RNDN);
4532 mpfr_erfc (n, x, GMP_RNDN);
4533 mpfr_subnormalize (x, t, GMP_RNDN);
b30fcfae 4534
4535 ;
4536 return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
5084f823 4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541 (eval $ac_link) 2>conftest.er1
b30fcfae 4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
b30fcfae 4561 cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
0157cc75 4567#include <gmp.h>
d45318b3 4568 #include <mpfr.h>
b30fcfae 4569int
4570main ()
4571{
0157cc75 4572
d45318b3 4573 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4574 choke me
4575 #endif
4576 mpfr_t n; mpfr_init(n);
b30fcfae 4577
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582rm -f conftest.$ac_objext conftest$ac_exeext
5084f823 4583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4584 (eval $ac_link) 2>conftest.er1
b30fcfae 4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
b30fcfae 4606else
4607 echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
5084f823 4610echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4611echo "${ECHO_T}buggy but acceptable" >&6
b30fcfae 4612fi
5084f823 4613rm -f conftest.err conftest.$ac_objext \
b30fcfae 4614 conftest$ac_exeext conftest.$ac_ext
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
5084f823 4619echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; have_gmp=no
b30fcfae 4621fi
5084f823 4622rm -f conftest.err conftest.$ac_objext \
b30fcfae 4623 conftest$ac_exeext conftest.$ac_ext
d45318b3 4624 LIBS="$saved_LIBS"
4625 fi
4626 CFLAGS="$saved_CFLAGS"
4ee9c684 4627
d45318b3 4628 if test x$have_gmp != xyes; then
b30fcfae 4629 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4630Try the --with-gmp and/or --with-mpfr options to specify their locations.
4631Copies of these libraries' source code can be found at their respective
4632hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4633See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4634If you obtained GMP and/or MPFR from a vendor distribution package, make
4635sure that you have installed both the libraries and the header files.
4636They may be located in separate packages." >&5
4637echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
0818100b 4638Try the --with-gmp and/or --with-mpfr options to specify their locations.
4639Copies of these libraries' source code can be found at their respective
4640hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
6af0e733 4641See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4642If you obtained GMP and/or MPFR from a vendor distribution package, make
4643sure that you have installed both the libraries and the header files.
b30fcfae 4644They may be located in separate packages." >&2;}
4645 { (exit 1); exit 1; }; }
d45318b3 4646 fi
6a086156 4647fi
4648
5ca838b8 4649# Flags needed for both GMP and/or MPFR
4ee9c684 4650
4651
4652
8e6391a6 4653# By default, C is the only stage 1 language.
9c3a0a29 4654stage1_languages=,c,
2d64c2fd 4655
8e1fea1a 4656# Figure out what language subdirectories are present.
4657# Look if the user specified --enable-languages="..."; if not, use
4658# the environment variable $LANGUAGES if defined. $LANGUAGES might
4659# go away some day.
4660# NB: embedded tabs in this IF block -- do not untabify
4661if test -d ${srcdir}/gcc; then
4662 if test x"${enable_languages+set}" != xset; then
4663 if test x"${LANGUAGES+set}" = xset; then
4664 enable_languages="${LANGUAGES}"
4665 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4666 else
4667 enable_languages=all
4668 fi
4669 else
4670 if test x"${enable_languages}" = x ||
4671 test x"${enable_languages}" = xyes;
4672 then
4673 echo configure.in: --enable-languages needs at least one language argument 1>&2
4674 exit 1
4675 fi
4676 fi
4677 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4678
2c718da0 4679 # 'f95' is the old name for the 'fortran' language. We issue a warning
4680 # and make the substitution.
4681 case ,${enable_languages}, in
4682 *,f95,*)
4683 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4684 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4685 ;;
4686 esac
4687
8e1fea1a 4688 # First scan to see if an enabled language requires some other language.
4689 # We assume that a given config-lang.in will list all the language
4690 # front ends it requires, even if some are required indirectly.
4691 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4692 case ${lang_frag} in
4693 ..) ;;
4694 # The odd quoting in the next line works around
4695 # an apparent bug in bash 1.12 on linux.
4696 ${srcdir}/gcc/[*]/config-lang.in) ;;
4697 *)
4698 # From the config-lang.in, get $language, $lang_requires
4699 language=
4700 lang_requires=
4701 . ${lang_frag}
4702 for other in ${lang_requires} ; do
4703 case ,${enable_languages}, in
4704 *,$other,*) ;;
4705 *,all,*) ;;
4706 *,$language,*)
4707 echo " \`$other' language required by \`$language'; enabling" 1>&2
4708 enable_languages="${enable_languages},${other}"
4709 ;;
4710 esac
4711 done
4712 ;;
4713 esac
4714 done
4715
9c3a0a29 4716 new_enable_languages=,c,
8e1fea1a 4717 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 4718 potential_languages=,c,
8e1fea1a 4719
4720 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4721 case ${lang_frag} in
4722 ..) ;;
4723 # The odd quoting in the next line works around
4724 # an apparent bug in bash 1.12 on linux.
4725 ${srcdir}/gcc/[*]/config-lang.in) ;;
4726 *)
b30fcfae 4727 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 4728 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 4729 language=
4730 target_libs=
4731 lang_dirs=
5dee13c2 4732 subdir_requires=
9c3a0a29 4733 boot_language=no
4734 build_by_default=yes
8e1fea1a 4735 . ${lang_frag}
9c3a0a29 4736 if test x${language} = x; then
4737 echo "${lang_frag} doesn't set \$language." 1>&2
4738 exit 1
4739 fi
4740
4741 case ,${enable_languages}, in
4742 *,${language},*)
8e1fea1a 4743 # Language was explicitly selected; include it.
4744 add_this_lang=yes
4745 ;;
9c3a0a29 4746 *,all,*)
4747 # 'all' was selected, select it if it is a default language
4748 add_this_lang=${build_by_default}
8e1fea1a 4749 ;;
4750 *)
4751 add_this_lang=no
4752 ;;
4753 esac
4ee9c684 4754
5dee13c2 4755 # Disable languages that need other directories if these aren't available.
9333ae0b 4756 for i in $subdir_requires; do
3891e7d9 4757 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5dee13c2 4758 case ,${enable_languages}, in
4759 *,${language},*)
4760 # Specifically requested language; tell them.
b30fcfae 4761 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4762echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4763 { (exit 1); exit 1; }; }
5dee13c2 4764 ;;
4765 *)
4766 # Silently disable.
9c3a0a29 4767 add_this_lang=unsupported
5dee13c2 4768 ;;
4769 esac
4770 done
4771
9c3a0a29 4772 # Disable Ada if no preexisting GNAT is available.
4773 case ,${enable_languages},:${language}:${have_gnat} in
4774 *,${language},*:ada:no)
4775 # Specifically requested language; tell them.
b30fcfae 4776 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4777echo "$as_me: error: GNAT is required to build $language" >&2;}
4778 { (exit 1); exit 1; }; }
9c3a0a29 4779 ;;
4780 *:ada:no)
4781 # Silently disable.
4782 add_this_lang=unsupported
4783 ;;
4784 esac
4785
ff7dcf6a 4786 # Disable a language that is unsupported by the target.
4787 case " $unsupported_languages " in
4788 *" $language "*)
9c3a0a29 4789 add_this_lang=unsupported
ff7dcf6a 4790 ;;
4791 esac
4792
4ee9c684 4793 case $add_this_lang in
9c3a0a29 4794 unsupported)
8e1fea1a 4795 # Remove language-dependent dirs.
2d64c2fd 4796 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4797 ;;
9c3a0a29 4798 no)
4799 # Remove language-dependent dirs; still show language as supported.
4800 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4801 potential_languages="${potential_languages}${language},"
4802 ;;
4803 yes)
4804 new_enable_languages="${new_enable_languages}${language},"
4805 potential_languages="${potential_languages}${language},"
2d64c2fd 4806 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4807 case ${boot_language} in
4808 yes)
aff6cf7b 4809 # Add to (comma-separated) list of stage 1 languages.
9c3a0a29 4810 stage1_languages="${stage1_languages}${language},"
2d64c2fd 4811 ;;
4812 esac
4813 ;;
8e1fea1a 4814 esac
4815 ;;
4816 esac
4817 done
4818
5084f823 4819 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
9c3a0a29 4820if test "${enable_stage1_languages+set}" = set; then
5084f823 4821 enableval="$enable_stage1_languages"
4822 case ,${enable_stage1_languages}, in
9c3a0a29 4823 ,no,|,,)
4824 # Set it to something that will have no effect in the loop below
4825 enable_stage1_languages=c ;;
4826 ,yes,)
4827 enable_stage1_languages=`echo $new_enable_languages | \
4828 sed -e "s/^,//" -e "s/,$//" ` ;;
4829 *,all,*)
4830 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4831 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4832 esac
4833
4834 # Add "good" languages from enable_stage1_languages to stage1_languages,
4835 # while "bad" languages go in missing_languages. Leave no duplicates.
4836 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4837 case $potential_languages in
4838 *,$i,*)
4839 case $stage1_languages in
4840 *,$i,*) ;;
4841 *) stage1_languages="$stage1_languages$i," ;;
4842 esac ;;
4843 *)
4844 case $missing_languages in
4845 *,$i,*) ;;
4846 *) missing_languages="$missing_languages$i," ;;
4847 esac ;;
4848 esac
4849 done
5084f823 4850fi;
9c3a0a29 4851
4852 # Remove leading/trailing commas that were added for simplicity
4853 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 4854 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 4855 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4856 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4857
8e1fea1a 4858 if test "x$missing_languages" != x; then
b30fcfae 4859 { { echo "$as_me:$LINENO: error:
e8bfe1fa 4860The following requested languages could not be built: ${missing_languages}
b30fcfae 4861Supported languages are: ${potential_languages}" >&5
4862echo "$as_me: error:
4863The following requested languages could not be built: ${missing_languages}
4864Supported languages are: ${potential_languages}" >&2;}
4865 { (exit 1); exit 1; }; }
8e1fea1a 4866 fi
8e1fea1a 4867 if test "x$new_enable_languages" != "x$enable_languages"; then
4868 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 4869 enable_languages="$new_enable_languages"
8e1fea1a 4870 fi
9c3a0a29 4871
b30fcfae 4872
b0e9b581 4873 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 4874fi
4875
50996fe5 4876# Handle --disable-<component> generically.
4877for dir in $configdirs $build_configdirs $target_configdirs ; do
4878 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4879 if eval test x\${enable_${dirname}} "=" xno ; then
4880 noconfigdirs="$noconfigdirs $dir"
4881 fi
4882done
4883
dd6d3a67 4884# Check for Boehm's garbage collector
5084f823 4885# Check whether --enable-objc-gc or --disable-objc-gc was given.
dd6d3a67 4886if test "${enable_objc_gc+set}" = set; then
5084f823 4887 enableval="$enable_objc_gc"
4888 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
dd6d3a67 4889 *,objc,*:*:yes:*target-boehm-gc*)
b30fcfae 4890 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4891echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4892 { (exit 1); exit 1; }; }
dd6d3a67 4893 ;;
4894esac
5084f823 4895fi;
dd6d3a67 4896
4897# Make sure we only build Boehm's garbage collector if required.
f1716c67 4898case ,${enable_languages},:${enable_objc_gc} in
4899 *,objc,*:yes)
dd6d3a67 4900 # Keep target-boehm-gc if requested for Objective-C.
4901 ;;
dd6d3a67 4902 *)
f1716c67 4903 # Otherwise remove target-boehm-gc depending on target-libjava.
4904 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4905 noconfigdirs="$noconfigdirs target-boehm-gc"
4906 fi
dd6d3a67 4907 ;;
4908esac
4909
e8eddfdd 4910# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4911# $build_configdirs and $target_configdirs.
8e1fea1a 4912# If we have the source for $noconfigdirs entries, add them to $notsupp.
4913
4914notsupp=""
4915for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 4916 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 4917 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4918 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4919 if test -r $srcdir/$dirname/configure ; then
4920 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4921 true
4922 else
4923 notsupp="$notsupp $dir"
4924 fi
4925 fi
4926 fi
e8eddfdd 4927 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4928 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4929 if test -r $srcdir/$dirname/configure ; then
4930 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4931 true
4932 else
4933 notsupp="$notsupp $dir"
4934 fi
4935 fi
4936 fi
8e1fea1a 4937 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4938 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4939 if test -r $srcdir/$dirname/configure ; then
4940 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4941 true
4942 else
4943 notsupp="$notsupp $dir"
4944 fi
4945 fi
4946 fi
4947done
4948
4949# Sometimes the tools are distributed with libiberty but with no other
4950# libraries. In that case, we don't want to build target-libiberty.
0a2e6193 4951# Don't let libgcc imply libiberty either.
8e1fea1a 4952if test -n "${target_configdirs}" ; then
0a2e6193 4953 libgcc=
8e1fea1a 4954 others=
4955 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
0a2e6193 4956 if test "$i" = "libgcc"; then
4957 libgcc=target-libgcc
4958 elif test "$i" != "libiberty" ; then
8e1fea1a 4959 if test -r $srcdir/$i/configure ; then
4960 others=yes;
4961 break;
4962 fi
4963 fi
4964 done
4965 if test -z "${others}" ; then
0a2e6193 4966 target_configdirs=$libgcc
8e1fea1a 4967 fi
4968fi
4969
4970# Quietly strip out all directories which aren't configurable in this tree.
4971# This relies on all configurable subdirectories being autoconfiscated, which
4972# is now the case.
2f8725b0 4973build_configdirs_all="$build_configdirs"
4974build_configdirs=
4975for i in ${build_configdirs_all} ; do
b30fcfae 4976 j=`echo $i | sed -e s/build-//g`
2f8725b0 4977 if test -f ${srcdir}/$j/configure ; then
4978 build_configdirs="${build_configdirs} $i"
4979 fi
4980done
4981
8e1fea1a 4982configdirs_all="$configdirs"
4983configdirs=
4984for i in ${configdirs_all} ; do
4985 if test -f ${srcdir}/$i/configure ; then
4986 configdirs="${configdirs} $i"
4987 fi
4988done
2f8725b0 4989
8e1fea1a 4990target_configdirs_all="$target_configdirs"
4991target_configdirs=
4992for i in ${target_configdirs_all} ; do
b30fcfae 4993 j=`echo $i | sed -e s/target-//g`
8e1fea1a 4994 if test -f ${srcdir}/$j/configure ; then
4995 target_configdirs="${target_configdirs} $i"
4996 fi
4997done
4998
4999# Produce a warning message for the subdirs we can't configure.
5000# This isn't especially interesting in the Cygnus tree, but in the individual
5001# FSF releases, it's important to let people know when their machine isn't
5002# supported by the one or two programs in a package.
5003
5004if test -n "${notsupp}" && test -z "${norecursion}" ; then
5005 # If $appdirs is non-empty, at least one of those directories must still
5006 # be configured, or we error out. (E.g., if the gas release supports a
5007 # specified target in some subdirs but not the gas subdir, we shouldn't
5008 # pretend that all is well.)
5009 if test -n "$appdirs" ; then
5010 for dir in $appdirs ; do
5011 if test -r $dir/Makefile.in ; then
5012 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5013 appdirs=""
5014 break
5015 fi
2f8725b0 5016 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 5017 appdirs=""
5018 break
5019 fi
5020 fi
5021 done
5022 if test -n "$appdirs" ; then
5023 echo "*** This configuration is not supported by this package." 1>&2
5024 exit 1
5025 fi
5026 fi
5027 # Okay, some application will build, or we don't care to check. Still
5028 # notify of subdirs not getting built.
5029 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5030 echo " ${notsupp}" 1>&2
5031 echo " (Any other directories should still work fine.)" 1>&2
5032fi
5033
5034case "$host" in
5035 *msdosdjgpp*)
5036 enable_gdbtk=no ;;
5037esac
5038
eae5b2bc 5039# To find our prefix, in gcc_cv_tool_prefix.
5040
5041# The user is always right.
5042if test "${PATH_SEPARATOR+set}" != set; then
5043 echo "#! /bin/sh" >conf$$.sh
5044 echo "exit 0" >>conf$$.sh
5045 chmod +x conf$$.sh
5046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5047 PATH_SEPARATOR=';'
5048 else
5049 PATH_SEPARATOR=:
5050 fi
5051 rm -f conf$$.sh
5052fi
5053
5054
5055
5056if test "x$exec_prefix" = xNONE; then
5057 if test "x$prefix" = xNONE; then
5058 gcc_cv_tool_prefix=$ac_default_prefix
5059 else
5060 gcc_cv_tool_prefix=$prefix
5061 fi
5062else
5063 gcc_cv_tool_prefix=$exec_prefix
5064fi
5065
5066# If there is no compiler in the tree, use the PATH only. In any
5067# case, if there is no compiler in the tree nobody should use
5068# AS_FOR_TARGET and LD_FOR_TARGET.
5069if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5070 gcc_version=`cat $srcdir/gcc/BASE-VER`
5071 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5072 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5077else
5078 gcc_cv_tool_dirs=
5079fi
5080
5081if test x$build = x$target && test -n "$md_exec_prefix"; then
5082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5083fi
5084
5085
5086
8e1fea1a 5087copy_dirs=
5088
b30fcfae 5089
5084f823 5090# Check whether --with-build-sysroot or --without-build-sysroot was given.
ffa8502d 5091if test "${with_build_sysroot+set}" = set; then
5084f823 5092 withval="$with_build_sysroot"
5093 if test x"$withval" != x ; then
ffa8502d 5094 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5095 fi
5096else
5097 SYSROOT_CFLAGS_FOR_TARGET=
5084f823 5098fi;
ffa8502d 5099
5100
5f1f2de5 5101
5102# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5103if test "${with_debug_prefix_map+set}" = set; then
5104 withval="$with_debug_prefix_map"
5105 if test x"$withval" != x; then
5106 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5107 for debug_map in $withval; do
5108 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5109 done
5110 fi
5111else
5112 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5113fi;
5114
5115
8e1fea1a 5116# Handle --with-headers=XXX. If the value is not "yes", the contents of
5117# the named directory are copied to $(tooldir)/sys-include.
5118if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5119 if test x${is_cross_compiler} = xno ; then
5120 echo 1>&2 '***' --with-headers is only supported when cross compiling
5121 exit 1
5122 fi
5123 if test x"${with_headers}" != xyes ; then
eae5b2bc 5124 x=${gcc_cv_tool_prefix}
b30fcfae 5125 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 5126 fi
5127fi
5128
5129# Handle --with-libs=XXX. If the value is not "yes", the contents of
5130# the name directories are copied to $(tooldir)/lib. Multiple directories
5131# are permitted.
5132if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5133 if test x${is_cross_compiler} = xno ; then
5134 echo 1>&2 '***' --with-libs is only supported when cross compiling
5135 exit 1
5136 fi
5137 if test x"${with_libs}" != xyes ; then
5138 # Copy the libraries in reverse order, so that files in the first named
5139 # library override files in subsequent libraries.
eae5b2bc 5140 x=${gcc_cv_tool_prefix}
8e1fea1a 5141 for l in ${with_libs}; do
b30fcfae 5142 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 5143 done
5144 fi
5145fi
5146
c47832b1 5147# Set with_gnu_as and with_gnu_ld as appropriate.
5148#
5149# This is done by determining whether or not the appropriate directory
5150# is available, and by checking whether or not specific configurations
5151# have requested that this magic not happen.
b30fcfae 5152#
5153# The command line options always override the explicit settings in
c47832b1 5154# configure.in, and the settings in configure.in override this magic.
5155#
b30fcfae 5156# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 5157# want to do that, then you should use the --without-gnu-as and
5158# --without-gnu-ld options for the configure script.
5159
5160if test x${use_gnu_as} = x &&
5161 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5162 with_gnu_as=yes
5163 extra_host_args="$extra_host_args --with-gnu-as"
5164fi
5165
5166if test x${use_gnu_ld} = x &&
5167 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5168 with_gnu_ld=yes
5169 extra_host_args="$extra_host_args --with-gnu-ld"
5170fi
5171
5172# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5173# can detect this case.
5174
5175if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5176 with_newlib=yes
5177 extra_host_args="$extra_host_args --with-newlib"
5178fi
5179
8e1fea1a 5180# Handle ${copy_dirs}
5181set fnord ${copy_dirs}
5182shift
5183while test $# != 0 ; do
5184 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5185 :
5186 else
5187 echo Copying $1 to $2
5188
5189 # Use the install script to create the directory and all required
5190 # parent directories.
5191 if test -d $2 ; then
5192 :
5193 else
5194 echo >config.temp
5195 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5196 fi
5197
5198 # Copy the directory, assuming we have tar.
5199 # FIXME: Should we use B in the second tar? Not all systems support it.
5200 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5201
5202 # It is the responsibility of the user to correctly adjust all
5203 # symlinks. If somebody can figure out how to handle them correctly
5204 # here, feel free to add the code.
5205
5206 echo $1 > $2/COPIED
5207 fi
5208 shift; shift
5209done
5210
c47832b1 5211# Determine a target-dependent exec_prefix that the installed
5212# gcc will search in. Keep this list sorted by triplet, with
5213# the *-*-osname triplets last.
5214md_exec_prefix=
5215case "${target}" in
5216 alpha*-*-*vms*)
5217 md_exec_prefix=/gnu/lib/gcc-lib
5218 ;;
09c2d953 5219 i[34567]86-pc-msdosdjgpp*)
c47832b1 5220 md_exec_prefix=/dev/env/DJDIR/bin
5221 ;;
09c2d953 5222 i[34567]86-*-sco3.2v5*)
c47832b1 5223 if test $with_gnu_as = yes; then
5224 md_exec_prefix=/usr/gnu/bin
5225 else
5226 md_exec_prefix=/usr/ccs/bin/elf
5227 fi
5228 ;;
5229
5230 mn10300-*-* | \
5231 powerpc-*-chorusos* | \
5232 powerpc*-*-eabi* | \
5233 powerpc*-*-sysv* | \
5234 powerpc*-*-kaos* | \
5235 s390x-ibm-tpf*)
5236 md_exec_prefix=/usr/ccs/bin
5237 ;;
5238 sparc64-*-elf*)
5239 ;;
5240 v850*-*-*)
5241 md_exec_prefix=/usr/ccs/bin
5242 ;;
5243 xtensa-*-elf*)
5244 ;;
5245
5246 *-*-beos* | \
5247 *-*-elf* | \
5248 *-*-hpux* | \
5249 *-*-netware* | \
5250 *-*-nto-qnx* | \
5251 *-*-rtems* | \
5252 *-*-solaris2* | \
09c2d953 5253 *-*-sysv[45]* | \
c47832b1 5254 *-*-vxworks* | \
5255 *-wrs-windiss)
5256 md_exec_prefix=/usr/ccs/bin
5257 ;;
5258esac
5259
71ab34df 5260extra_arflags_for_target=
5261extra_nmflags_for_target=
5262extra_ranlibflags_for_target=
5263target_makefile_frag=/dev/null
5264case "${target}" in
38d7211b 5265 mep*-*-*)
5266 target_makefile_frag="config/mt-mep"
5267 ;;
57c7de11 5268 spu-*-*)
5269 target_makefile_frag="config/mt-spu"
5270 ;;
f8520ad7 5271 mips*-sde-elf*)
5272 target_makefile_frag="config/mt-sde"
5273 ;;
634f7a13 5274 *-*-netware*)
71ab34df 5275 target_makefile_frag="config/mt-netware"
5276 ;;
cb8a7007 5277 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5278 target_makefile_frag="config/mt-gnu"
71ab34df 5279 ;;
5280 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 5281 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 5282 # commands to handle both 32-bit and 64-bit objects. These flags are
5283 # harmless if we're using GNU nm or ar.
5284 extra_arflags_for_target=" -X32_64"
5285 extra_nmflags_for_target=" -B -X32_64"
5286 ;;
5287 *-*-darwin*)
5288 # ranlib from Darwin requires the -c flag to look at common symbols.
5289 extra_ranlibflags_for_target=" -c"
5290 ;;
5291 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5292 target_makefile_frag="config/mt-wince"
5293 ;;
5294esac
5295
5296alphaieee_frag=/dev/null
5297case $target in
5298 alpha*-*-*)
5299 # This just makes sure to use the -mieee option to build target libs.
5300 # This should probably be set individually by each library.
5301 alphaieee_frag="config/mt-alphaieee"
5302 ;;
5303esac
5304
5305# If --enable-target-optspace always use -Os instead of -O2 to build
5306# the target libraries, similarly if it is not specified, use -Os
5307# on selected platforms.
5308ospace_frag=/dev/null
5309case "${enable_target_optspace}:${target}" in
5310 yes:*)
5311 ospace_frag="config/mt-ospace"
5312 ;;
5313 :d30v-*)
5314 ospace_frag="config/mt-d30v"
5315 ;;
5316 :m32r-* | :d10v-* | :fr30-*)
5317 ospace_frag="config/mt-ospace"
5318 ;;
5319 no:* | :*)
5320 ;;
5321 *)
5322 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5323 ;;
5324esac
5325
71ab34df 5326# Default to using --with-stabs for certain targets.
5327if test x${with_stabs} = x ; then
5328 case "${target}" in
d74dd50d 5329 mips*-*-irix[56]*)
71ab34df 5330 ;;
5331 mips*-*-* | alpha*-*-osf*)
5332 with_stabs=yes;
5333 extra_host_args="${extra_host_args} --with-stabs"
5334 ;;
5335 esac
5336fi
5337
5338# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5339# them automatically.
5340case "${host}" in
b30fcfae 5341 hppa*64*-*-hpux11*)
71ab34df 5342 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5343 ;;
5344esac
5345
71ab34df 5346# Some systems (e.g., one of the i386-aix systems the gas testers are
5347# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 5348tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 5349build_tooldir=${tooldir}
5350
71ab34df 5351# Create a .gdbinit file which runs the one in srcdir
5352# and tells GDB to look there for source files.
5353
5354if test -r ${srcdir}/.gdbinit ; then
5355 case ${srcdir} in
5356 .) ;;
5357 *) cat > ./.gdbinit <<EOF
5358# ${NO_EDIT}
5359dir ${srcdir}
5360dir .
5361source ${srcdir}/.gdbinit
5362EOF
5363 ;;
5364 esac
5365fi
5366
71ab34df 5367# Make sure that the compiler is able to generate an executable. If it
5368# can't, we are probably in trouble. We don't care whether we can run the
5369# executable--we might be using a cross compiler--we only care whether it
5370# can be created. At this point the main configure script has set CC.
5371we_are_ok=no
5372echo "int main () { return 0; }" > conftest.c
5373${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5374if test $? = 0 ; then
5375 if test -s conftest || test -s conftest.exe ; then
5376 we_are_ok=yes
5377 fi
b30fcfae 5378fi
71ab34df 5379case $we_are_ok in
5380 no)
5381 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5382 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5383 rm -f conftest*
5384 exit 1
5385 ;;
5386esac
5387rm -f conftest*
5388
5389# The Solaris /usr/ucb/cc compiler does not appear to work.
5390case "${host}" in
5391 sparc-sun-solaris2*)
5392 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5393 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5394 could_use=
5395 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5396 if test -d /opt/cygnus/bin ; then
5397 if test "$could_use" = "" ; then
5398 could_use="/opt/cygnus/bin"
5399 else
5400 could_use="$could_use or /opt/cygnus/bin"
5401 fi
5402 fi
5403 if test "$could_use" = "" ; then
5404 echo "Warning: compilation may fail because you're using"
5405 echo "/usr/ucb/cc. You should change your PATH or CC "
5406 echo "variable and rerun configure."
5407 else
5408 echo "Warning: compilation may fail because you're using"
5409 echo "/usr/ucb/cc, when you should use the C compiler from"
5410 echo "$could_use. You should change your"
5411 echo "PATH or CC variable and rerun configure."
5412 fi
5413 fi
5414 ;;
5415esac
5416
71ab34df 5417case "${host}" in
5418 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
697e01c8 5419 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
71ab34df 5420 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5421esac
5422
5423# Record target_configdirs and the configure arguments for target and
5424# build configuration in Makefile.
5425target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 5426build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
71ab34df 5427
71ab34df 5428# Determine whether gdb needs tk/tcl or not.
5429# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5430# and in that case we want gdb to be built without tk. Ugh!
5431# In fact I believe gdb is the *only* package directly dependent on tk,
5432# so we should be able to put the 'maybe's in unconditionally and
5433# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5434# 100% sure that that's safe though.
8fdaf281 5435
f843f075 5436gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 5437case "$enable_gdbtk" in
5438 no)
5439 GDB_TK="" ;;
8fdaf281 5440 yes)
5441 GDB_TK="${gdb_tk}" ;;
71ab34df 5442 *)
8fdaf281 5443 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5444 # distro. Eventually someone will fix this and move Insight, nee
5445 # gdbtk to a separate directory.
5446 if test -d ${srcdir}/gdb/gdbtk ; then
5447 GDB_TK="${gdb_tk}"
5448 else
5449 GDB_TK=""
5450 fi
5451 ;;
71ab34df 5452esac
415470be 5453CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5454INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 5455
01b41571 5456# Strip out unwanted targets.
6f4f34a7 5457
5458# While at that, we remove Makefiles if we were started for recursive
5459# configuration, so that the top-level Makefile reconfigures them,
5460# like we used to do when configure itself was recursive.
6f4f34a7 5461
01b41571 5462# Loop over modules. $extrasub must be used with care, limiting as
5463# much as possible the usage of range addresses. That's because autoconf
5464# splits the sed script to overcome limits in the number of commands,
5465# and relying on carefully-timed sed passes may turn out to be very hard
5466# to maintain later. In this particular case, you just have to be careful
5467# not to nest @if/@endif pairs, because configure will not warn you at all.
6f4f34a7 5468
5084f823 5469# Check whether --enable-bootstrap or --disable-bootstrap was given.
54f0538b 5470if test "${enable_bootstrap+set}" = set; then
5084f823 5471 enableval="$enable_bootstrap"
5472
54f0538b 5473else
3c782584 5474 enable_bootstrap=default
5084f823 5475fi;
54f0538b 5476
3c782584 5477# Issue errors and warnings for invalid/strange bootstrap combinations.
5478case "$configdirs" in
5479 *gcc*) have_compiler=yes ;;
5480 *) have_compiler=no ;;
5481esac
5482
5483case "$have_compiler:$host:$target:$enable_bootstrap" in
5484 *:*:*:no) ;;
5485
98777423 5486 # Default behavior. Enable bootstrap if we have a compiler
3c782584 5487 # and we are in a native configuration.
5488 yes:$build:$build:default)
98777423 5489 enable_bootstrap=yes ;;
3c782584 5490
5491 *:*:*:default)
5492 enable_bootstrap=no ;;
5493
5494 # We have a compiler and we are in a native configuration, bootstrap is ok
0c8a85c6 5495 yes:$build:$build:yes)
3c782584 5496 ;;
5497
5498 # Other configurations, but we have a compiler. Assume the user knows
5499 # what he's doing.
0c8a85c6 5500 yes:*:*:yes)
b30fcfae 5501 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5502echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
3c782584 5503 ;;
5504
5505 # No compiler: if they passed --enable-bootstrap explicitly, fail
0c8a85c6 5506 no:*:*:yes)
b30fcfae 5507 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5508echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5509 { (exit 1); exit 1; }; } ;;
3c782584 5510
5511 # Fail if wrong command line
5512 *)
b30fcfae 5513 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5514echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5515 { (exit 1); exit 1; }; }
3c782584 5516 ;;
5517esac
5518
5519# Adjust the toplevel makefile according to whether bootstrap was selected.
54f0538b 5520case "$enable_bootstrap" in
5521 yes)
93f93279 5522 bootstrap_suffix=bootstrap ;;
54f0538b 5523 no)
93f93279 5524 bootstrap_suffix=no-bootstrap ;;
54f0538b 5525esac
5526
2f8725b0 5527for module in ${build_configdirs} ; do
93f93279 5528 if test -z "${no_recursion}" \
5529 && test -f ${build_subdir}/${module}/Makefile; then
5530 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5531 rm -f ${build_subdir}/${module}/Makefile
5532 fi
5533 extrasub="$extrasub
5534/^@if build-$module\$/d
5535/^@endif build-$module\$/d
5536/^@if build-$module-$bootstrap_suffix\$/d
5537/^@endif build-$module-$bootstrap_suffix\$/d"
5538done
5539for module in ${configdirs} ; do
9c19a746 5540 if test -z "${no_recursion}"; then
35d84d10 5541 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 5542 if test -f ${file}; then
5543 echo 1>&2 "*** removing ${file} to force reconfigure"
5544 rm -f ${file}
5545 fi
5546 done
93f93279 5547 fi
5548 extrasub="$extrasub
5549/^@if $module\$/d
5550/^@endif $module\$/d
5551/^@if $module-$bootstrap_suffix\$/d
5552/^@endif $module-$bootstrap_suffix\$/d"
5553done
5554for module in ${target_configdirs} ; do
5555 if test -z "${no_recursion}" \
5556 && test -f ${target_subdir}/${module}/Makefile; then
5557 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5558 rm -f ${target_subdir}/${module}/Makefile
5559 fi
5560 extrasub="$extrasub
5561/^@if target-$module\$/d
5562/^@endif target-$module\$/d
5563/^@if target-$module-$bootstrap_suffix\$/d
5564/^@endif target-$module-$bootstrap_suffix\$/d"
5565done
5566
01b41571 5567extrasub="$extrasub
5568/^@if /,/^@endif /d"
71ab34df 5569
5570# Create the serialization dependencies. This uses a temporary file.
5571
5084f823 5572# Check whether --enable-serial-configure or --disable-serial-configure was given.
11d8013a 5573if test "${enable_serial_configure+set}" = set; then
5084f823 5574 enableval="$enable_serial_configure"
11d8013a 5575
5084f823 5576fi;
11d8013a 5577
622c1fa9 5578case ${enable_serial_configure} in
5579 yes)
5580 enable_serial_build_configure=yes
5581 enable_serial_host_configure=yes
5582 enable_serial_target_configure=yes
5583 ;;
5584esac
5585
71ab34df 5586# These force 'configure's to be done one at a time, to avoid problems
5587# with contention over a shared config.cache.
5588rm -f serdep.tmp
11d8013a 5589echo '# serdep.tmp' > serdep.tmp
71ab34df 5590olditem=
622c1fa9 5591test "x${enable_serial_build_configure}" = xyes &&
71ab34df 5592for item in ${build_configdirs} ; do
5593 case ${olditem} in
5594 "") ;;
11d8013a 5595 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 5596 esac
5597 olditem=${item}
5598done
5599olditem=
622c1fa9 5600test "x${enable_serial_host_configure}" = xyes &&
71ab34df 5601for item in ${configdirs} ; do
5602 case ${olditem} in
5603 "") ;;
11d8013a 5604 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 5605 esac
5606 olditem=${item}
5607done
5608olditem=
622c1fa9 5609test "x${enable_serial_target_configure}" = xyes &&
71ab34df 5610for item in ${target_configdirs} ; do
5611 case ${olditem} in
5612 "") ;;
11d8013a 5613 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 5614 esac
5615 olditem=${item}
5616done
5617serialization_dependencies=serdep.tmp
5618
5619
11d8013a 5620# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 5621# target, nonopt, and variable assignments. These are the ones we
5622# might not want to pass down to subconfigures. Also strip
5623# program-prefix, program-suffix, and program-transform-name, so that
5624# we can pass down a consistent program-transform-name.
5625baseargs=
5626keep_next=no
5627skip_next=no
5628eval "set -- $ac_configure_args"
4ff792a4 5629for ac_arg
5630do
b30fcfae 5631 if test X"$skip_next" = X"yes"; then
5632 skip_next=no
5633 continue
5634 fi
5635 if test X"$keep_next" = X"yes"; then
5636 case $ac_arg in
5637 *\'*)
5638 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5639 esac
5640 baseargs="$baseargs '$ac_arg'"
5641 keep_next=no
5642 continue
5643 fi
5644
5645 # Handle separated arguments. Based on the logic generated by
5646 # autoconf 2.59.
5647 case $ac_arg in
5648 *=* | --config-cache | -C | -disable-* | --disable-* \
5649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5651 | -with-* | --with-* | -without-* | --without-* | --x)
5652 separate_arg=no
5653 ;;
5654 -*)
5655 separate_arg=yes
5656 ;;
5657 *)
5658 separate_arg=no
5659 ;;
5660 esac
5661
5662 case "$ac_arg" in
5663 --no*)
5664 continue
5665 ;;
5666 --c* | \
5667 --sr* | \
5668 --ho* | \
5669 --bu* | \
5670 --t* | \
5671 --program-* | \
5672 -cache_file* | \
5673 -srcdir* | \
5674 -host* | \
5675 -build* | \
5676 -target* | \
5677 -program-prefix* | \
5678 -program-suffix* | \
5679 -program-transform-name* )
5680 skip_next=$separate_arg
5681 continue
5682 ;;
5683 -*)
5684 # An option. Add it.
5685 case $ac_arg in
5686 *\'*)
5687 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5688 esac
5689 baseargs="$baseargs '$ac_arg'"
5690 keep_next=$separate_arg
5691 ;;
5692 *)
5693 # Either a variable assignment, or a nonopt (triplet). Don't
5694 # pass it down; let the Makefile handle this.
5695 continue
5696 ;;
5697 esac
5698done
5699# Remove the initial space we just introduced and, as these will be
5700# expanded by make, quote '$'.
5701baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 5702
fbfea1fa 5703# Add in --program-transform-name, after --program-prefix and
5704# --program-suffix have been applied to it. Autoconf has already
5705# doubled dollar signs and backslashes in program_transform_name; we want
5706# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 5707# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 5708# Also, because we want to override the logic in subdir configure scripts to
5709# choose program_transform_name, replace any s,x,x, with s,y,y,.
5710sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5711${program_transform_name}
5712EOF_SED
5713gcc_transform_name=`cat conftestsed.out`
5714rm -f conftestsed.out
5715baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 5716if test "$silent" = yes; then
5717 baseargs="$baseargs --silent"
5718fi
fbfea1fa 5719
71ab34df 5720# For the build-side libraries, we just need to pretend we're native,
5721# and not use the same cache file. Multilibs are neither needed nor
5722# desired.
d45318b3 5723build_configargs="--cache-file=../config.cache ${baseargs}"
71ab34df 5724
5725# For host modules, accept cache file option, or specification as blank.
5726case "${cache_file}" in
5727"") # empty
5728 cache_file_option="" ;;
5729/* | [A-Za-z]:[\\/]* ) # absolute path
5730 cache_file_option="--cache-file=${cache_file}" ;;
5731*) # relative path
5732 cache_file_option="--cache-file=../${cache_file}" ;;
5733esac
5734
ba1081ef 5735# Host dirs don't like to share a cache file either, horribly enough.
5736# This seems to be due to autoconf 2.5x stupidity.
d45318b3 5737host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 5738
5739target_configargs=${baseargs}
5740
5741# Passing a --with-cross-host argument lets the target libraries know
5742# whether they are being built with a cross-compiler or being built
5743# native. However, it would be better to use other mechanisms to make the
5744# sorts of decisions they want to make on this basis. Please consider
5745# this option to be deprecated. FIXME.
5746if test x${is_cross_compiler} = xyes ; then
b30fcfae 5747 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 5748fi
5749
5750# Default to --enable-multilib.
5751if test x${enable_multilib} = x ; then
5752 target_configargs="--enable-multilib ${target_configargs}"
5753fi
5754
5755# Pass --with-newlib if appropriate. Note that target_configdirs has
5756# changed from the earlier setting of with_newlib.
5757if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5758 target_configargs="--with-newlib ${target_configargs}"
5759fi
5760
74fef112 5761# Different target subdirs use different values of certain variables
5762# (notably CXX). Worse, multilibs use *lots* of different values.
5763# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5764# it doesn't automatically accept command-line overrides of them.
5765# This means it's not safe for target subdirs to share a cache file,
5766# which is disgusting, but there you have it. Hopefully this can be
5767# fixed in future. It's still worthwhile to use a cache file for each
5768# directory. I think.
5769
a8abbd9d 5770# Pass the appropriate --build, --host, --target and --cache-file arguments.
5771# We need to pass --target, as newer autoconf's requires consistency
5772# for target_alias and gcc doesn't manage it consistently.
d45318b3 5773target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 5774
71ab34df 5775FLAGS_FOR_TARGET=
5776case " $target_configdirs " in
5777 *" newlib "*)
5778 case " $target_configargs " in
5779 *" --with-newlib "*)
5780 case "$target" in
5781 *-cygwin*)
d957c480 5782 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 5783 esac
5784
5785 # If we're not building GCC, don't discard standard headers.
5786 if test -d ${srcdir}/gcc; then
5787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5788
5789 if test "${build}" != "${host}"; then
5790 # On Canadian crosses, CC_FOR_TARGET will have already been set
5791 # by `configure', so we won't have an opportunity to add -Bgcc/
5792 # to it. This is right: we don't want to search that directory
5793 # for binaries, but we want the header files in there, so add
5794 # them explicitly.
c1eb9e31 5795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
71ab34df 5796
5797 # Someone might think of using the pre-installed headers on
5798 # Canadian crosses, in case the installed compiler is not fully
5799 # compatible with the compiler being built. In this case, it
5800 # would be better to flag an error than risking having
5801 # incompatible object files being constructed. We can't
5802 # guarantee that an error will be flagged, but let's hope the
5803 # compiler will do it, when presented with incompatible header
5804 # files.
5805 fi
5806 fi
5807
5808 case "${target}-${is_cross_compiler}" in
f74ea578 5809 i[3456789]86-*-linux*-no)
71ab34df 5810 # Here host == target, so we don't need to build gcc,
5811 # so we don't want to discard standard headers.
5812 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5813 ;;
5814 *)
5815 # If we're building newlib, use its generic headers last, but search
5816 # for any libc-related directories first (so make it the last -B
5817 # switch).
5818 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 5819
5820 # If we're building libgloss, find the startup file, simulator library
5821 # and linker script.
5822 case " $target_configdirs " in
5823 *" libgloss "*)
5824 # Look for startup file, simulator library and maybe linker script.
5825 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5826 # Look for libnosys.a in case the target needs it.
5827 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5828 # Most targets have the linker script in the source directory.
5829 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5830 ;;
5831 esac
71ab34df 5832 ;;
5833 esac
5834 ;;
5835 esac
5836 ;;
5837esac
d6d689df 5838case "$target" in
5839*-mingw*)
5840 # Can't be handled as Cygwin above since Mingw does not use newlib.
5841 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' ;;
5842esac
71ab34df 5843
d8e9ea04 5844# Allow the user to override the flags for
5845# our build compiler if desired.
5846CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5847
71ab34df 5848# On Canadian crosses, we'll be searching the right directories for
5849# the previously-installed cross compiler, so don't bother to add
5850# flags for directories within the install tree of the compiler
5851# being built; programs in there won't even run.
5852if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5853 # Search for pre-installed headers if nothing else fits.
5750c7d4 5854 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 5855fi
5856
5857if test "x${use_gnu_ld}" = x &&
5858 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5859 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 5860 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 5861fi
5862
24714a39 5863# Search for other target-specific linker scripts and such.
5864case "${target}" in
38d7211b 5865 mep*)
5866 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5867 ;;
24714a39 5868esac
5869
71ab34df 5870# Makefile fragments.
03c65091 5871for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5872do
5873 eval fragval=\$$frag
5874 if test $fragval != /dev/null; then
5875 eval $frag=${srcdir}/$fragval
5876 fi
5877done
71ab34df 5878
5879
5880
5881
5882
5883# Miscellanea: directories, flags, etc.
5884
5885
5886
5887
5888
5889
5890
2f8725b0 5891# Build module lists & subconfigure args.
71ab34df 5892
5893
5894
f5aebe3e 5895# Host module lists & subconfigure args.
5896
5897
5898
5899# Target module lists & subconfigure args.
5900
5901
5902
5903# Build tools.
5904
5905
5906
5907# Generate default definitions for YACC, M4, LEX and other programs that run
5908# on the build machine. These are used if the Makefile can't locate these
5909# programs in objdir.
5910MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5911
5912for ac_prog in 'bison -y' byacc yacc
5913do
b30fcfae 5914 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 5915set dummy $ac_prog; ac_word=$2
5084f823 5916echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 5918if test "${ac_cv_prog_YACC+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 5920else
5921 if test -n "$YACC"; then
5922 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5923else
b30fcfae 5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5931 ac_cv_prog_YACC="$ac_prog"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936done
5937
f5aebe3e 5938fi
5939fi
b30fcfae 5940YACC=$ac_cv_prog_YACC
f5aebe3e 5941if test -n "$YACC"; then
5084f823 5942 echo "$as_me:$LINENO: result: $YACC" >&5
5943echo "${ECHO_T}$YACC" >&6
f5aebe3e 5944else
5084f823 5945 echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
f5aebe3e 5947fi
5948
b30fcfae 5949 test -n "$YACC" && break
f5aebe3e 5950done
5951test -n "$YACC" || YACC="$MISSING bison -y"
5952
5953case " $build_configdirs " in
5954 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5955 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5956esac
5957
5958for ac_prog in bison
5959do
b30fcfae 5960 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 5961set dummy $ac_prog; ac_word=$2
5084f823 5962echo "$as_me:$LINENO: checking for $ac_word" >&5
5963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 5964if test "${ac_cv_prog_BISON+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 5966else
5967 if test -n "$BISON"; then
5968 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5969else
b30fcfae 5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 5976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5977 ac_cv_prog_BISON="$ac_prog"
5978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981done
5982done
5983
f5aebe3e 5984fi
5985fi
b30fcfae 5986BISON=$ac_cv_prog_BISON
f5aebe3e 5987if test -n "$BISON"; then
5084f823 5988 echo "$as_me:$LINENO: result: $BISON" >&5
5989echo "${ECHO_T}$BISON" >&6
f5aebe3e 5990else
5084f823 5991 echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6
f5aebe3e 5993fi
5994
b30fcfae 5995 test -n "$BISON" && break
f5aebe3e 5996done
5997test -n "$BISON" || BISON="$MISSING bison"
5998
5999case " $build_configdirs " in
6000 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6001esac
6002
6003for ac_prog in gm4 gnum4 m4
6004do
b30fcfae 6005 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6006set dummy $ac_prog; ac_word=$2
5084f823 6007echo "$as_me:$LINENO: checking for $ac_word" >&5
6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6009if test "${ac_cv_prog_M4+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6011else
6012 if test -n "$M4"; then
6013 ac_cv_prog_M4="$M4" # Let the user override the test.
6014else
b30fcfae 6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6022 ac_cv_prog_M4="$ac_prog"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026done
6027done
6028
f5aebe3e 6029fi
6030fi
b30fcfae 6031M4=$ac_cv_prog_M4
f5aebe3e 6032if test -n "$M4"; then
5084f823 6033 echo "$as_me:$LINENO: result: $M4" >&5
6034echo "${ECHO_T}$M4" >&6
f5aebe3e 6035else
5084f823 6036 echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6
f5aebe3e 6038fi
6039
b30fcfae 6040 test -n "$M4" && break
f5aebe3e 6041done
6042test -n "$M4" || M4="$MISSING m4"
6043
6044case " $build_configdirs " in
6045 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6046esac
6047
6048for ac_prog in flex lex
6049do
b30fcfae 6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6051set dummy $ac_prog; ac_word=$2
5084f823 6052echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6054if test "${ac_cv_prog_LEX+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6056else
6057 if test -n "$LEX"; then
6058 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6059else
b30fcfae 6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6067 ac_cv_prog_LEX="$ac_prog"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072done
6073
f5aebe3e 6074fi
6075fi
b30fcfae 6076LEX=$ac_cv_prog_LEX
f5aebe3e 6077if test -n "$LEX"; then
5084f823 6078 echo "$as_me:$LINENO: result: $LEX" >&5
6079echo "${ECHO_T}$LEX" >&6
f5aebe3e 6080else
5084f823 6081 echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6
f5aebe3e 6083fi
6084
b30fcfae 6085 test -n "$LEX" && break
f5aebe3e 6086done
6087test -n "$LEX" || LEX="$MISSING flex"
6088
6089case " $build_configdirs " in
6090 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6091 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6092esac
6093
6094for ac_prog in flex
6095do
b30fcfae 6096 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6097set dummy $ac_prog; ac_word=$2
5084f823 6098echo "$as_me:$LINENO: checking for $ac_word" >&5
6099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6100if test "${ac_cv_prog_FLEX+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6102else
6103 if test -n "$FLEX"; then
6104 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6105else
b30fcfae 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6113 ac_cv_prog_FLEX="$ac_prog"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117done
6118done
6119
f5aebe3e 6120fi
6121fi
b30fcfae 6122FLEX=$ac_cv_prog_FLEX
f5aebe3e 6123if test -n "$FLEX"; then
5084f823 6124 echo "$as_me:$LINENO: result: $FLEX" >&5
6125echo "${ECHO_T}$FLEX" >&6
f5aebe3e 6126else
5084f823 6127 echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6
f5aebe3e 6129fi
6130
b30fcfae 6131 test -n "$FLEX" && break
f5aebe3e 6132done
6133test -n "$FLEX" || FLEX="$MISSING flex"
6134
6135case " $build_configdirs " in
6136 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6137esac
6138
6139for ac_prog in makeinfo
6140do
b30fcfae 6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6142set dummy $ac_prog; ac_word=$2
5084f823 6143echo "$as_me:$LINENO: checking for $ac_word" >&5
6144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6145if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6147else
6148 if test -n "$MAKEINFO"; then
6149 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6150else
b30fcfae 6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6158 ac_cv_prog_MAKEINFO="$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163done
6164
f5aebe3e 6165fi
6166fi
b30fcfae 6167MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 6168if test -n "$MAKEINFO"; then
5084f823 6169 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6170echo "${ECHO_T}$MAKEINFO" >&6
f5aebe3e 6171else
5084f823 6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
f5aebe3e 6174fi
6175
b30fcfae 6176 test -n "$MAKEINFO" && break
f5aebe3e 6177done
6178test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6179
6180case " $build_configdirs " in
6181 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6182 *)
6183
2c45c903 6184 # For an installed makeinfo, we require it to be from texinfo 4.4 or
f5aebe3e 6185 # higher, else we use the "missing" dummy.
6186 if ${MAKEINFO} --version \
2c45c903 6187 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
f5aebe3e 6188 :
6189 else
6190 MAKEINFO="$MISSING makeinfo"
6191 fi
6192 ;;
6193
6194esac
71ab34df 6195
f5aebe3e 6196# FIXME: expect and dejagnu may become build tools?
71ab34df 6197
f5aebe3e 6198for ac_prog in expect
6199do
b30fcfae 6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6201set dummy $ac_prog; ac_word=$2
5084f823 6202echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6204if test "${ac_cv_prog_EXPECT+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6206else
6207 if test -n "$EXPECT"; then
6208 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6209else
b30fcfae 6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6217 ac_cv_prog_EXPECT="$ac_prog"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221done
6222done
6223
f5aebe3e 6224fi
6225fi
b30fcfae 6226EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 6227if test -n "$EXPECT"; then
5084f823 6228 echo "$as_me:$LINENO: result: $EXPECT" >&5
6229echo "${ECHO_T}$EXPECT" >&6
f5aebe3e 6230else
5084f823 6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
f5aebe3e 6233fi
71ab34df 6234
b30fcfae 6235 test -n "$EXPECT" && break
f5aebe3e 6236done
6237test -n "$EXPECT" || EXPECT="expect"
71ab34df 6238
f5aebe3e 6239case " $configdirs " in
6240 *" expect "*)
6241 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6242 ;;
6243esac
71ab34df 6244
f5aebe3e 6245for ac_prog in runtest
6246do
b30fcfae 6247 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6248set dummy $ac_prog; ac_word=$2
5084f823 6249echo "$as_me:$LINENO: checking for $ac_word" >&5
6250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6251if test "${ac_cv_prog_RUNTEST+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6253else
6254 if test -n "$RUNTEST"; then
6255 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 6256else
b30fcfae 6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6264 ac_cv_prog_RUNTEST="$ac_prog"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269done
6270
f5aebe3e 6271fi
6272fi
b30fcfae 6273RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 6274if test -n "$RUNTEST"; then
5084f823 6275 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6276echo "${ECHO_T}$RUNTEST" >&6
f5aebe3e 6277else
5084f823 6278 echo "$as_me:$LINENO: result: no" >&5
6279echo "${ECHO_T}no" >&6
f5aebe3e 6280fi
71ab34df 6281
b30fcfae 6282 test -n "$RUNTEST" && break
f5aebe3e 6283done
6284test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 6285
f5aebe3e 6286case " $configdirs " in
6287 *" dejagnu "*)
8d365775 6288 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 6289 ;;
6290esac
71ab34df 6291
6292
71ab34df 6293# Host tools.
bb612911 6294ncn_tool_prefix=
6295test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6296ncn_target_tool_prefix=
6297test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6298
95a05732 6299
6300
6301if test -n "$AR"; then
6302 ac_cv_prog_AR=$AR
6303elif test -n "$ac_cv_prog_AR"; then
6304 AR=$ac_cv_prog_AR
6305fi
6306
6307if test -n "$ac_cv_prog_AR"; then
6308 for ncn_progname in ar; do
6309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6310set dummy ${ncn_progname}; ac_word=$2
5084f823 6311echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6313if test "${ac_cv_prog_AR+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 if test -n "$AR"; then
6317 ac_cv_prog_AR="$AR" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6326 ac_cv_prog_AR="${ncn_progname}"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330done
6331done
6332
6333fi
6334fi
6335AR=$ac_cv_prog_AR
6336if test -n "$AR"; then
5084f823 6337 echo "$as_me:$LINENO: result: $AR" >&5
6338echo "${ECHO_T}$AR" >&6
95a05732 6339else
5084f823 6340 echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6
95a05732 6342fi
6343
6344 done
6345fi
6346
6347for ncn_progname in ar; do
768691b5 6348 if test -n "$ncn_tool_prefix"; then
6349 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6350set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6351echo "$as_me:$LINENO: checking for $ac_word" >&5
6352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6353if test "${ac_cv_prog_AR+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6355else
6356 if test -n "$AR"; then
6357 ac_cv_prog_AR="$AR" # Let the user override the test.
6358else
b30fcfae 6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6366 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370done
6371done
6372
bb612911 6373fi
6374fi
b30fcfae 6375AR=$ac_cv_prog_AR
bb612911 6376if test -n "$AR"; then
5084f823 6377 echo "$as_me:$LINENO: result: $AR" >&5
6378echo "${ECHO_T}$AR" >&6
bb612911 6379else
5084f823 6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
bb612911 6382fi
6383
768691b5 6384 fi
6385 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6387set dummy ${ncn_progname}; ac_word=$2
5084f823 6388echo "$as_me:$LINENO: checking for $ac_word" >&5
6389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6390if test "${ac_cv_prog_AR+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6392else
768691b5 6393 if test -n "$AR"; then
ae48753c 6394 ac_cv_prog_AR="$AR" # Let the user override the test.
6395else
b30fcfae 6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6403 ac_cv_prog_AR="${ncn_progname}"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408done
6409
bb612911 6410fi
6411fi
b30fcfae 6412AR=$ac_cv_prog_AR
768691b5 6413if test -n "$AR"; then
5084f823 6414 echo "$as_me:$LINENO: result: $AR" >&5
6415echo "${ECHO_T}$AR" >&6
bb612911 6416else
5084f823 6417 echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6
bb612911 6419fi
b30fcfae 6420
768691b5 6421 fi
6422 test -n "$ac_cv_prog_AR" && break
6423done
6424
6425if test -z "$ac_cv_prog_AR" ; then
6426 set dummy ar
6427 if test $build = $host ; then
6428 AR="$2"
bb612911 6429 else
768691b5 6430 AR="${ncn_tool_prefix}$2"
bb612911 6431 fi
bb612911 6432fi
6433
95a05732 6434
6435
6436if test -n "$AS"; then
6437 ac_cv_prog_AS=$AS
6438elif test -n "$ac_cv_prog_AS"; then
6439 AS=$ac_cv_prog_AS
6440fi
6441
6442if test -n "$ac_cv_prog_AS"; then
6443 for ncn_progname in as; do
6444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6445set dummy ${ncn_progname}; ac_word=$2
5084f823 6446echo "$as_me:$LINENO: checking for $ac_word" >&5
6447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6448if test "${ac_cv_prog_AS+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 if test -n "$AS"; then
6452 ac_cv_prog_AS="$AS" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6461 ac_cv_prog_AS="${ncn_progname}"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465done
6466done
6467
6468fi
6469fi
6470AS=$ac_cv_prog_AS
6471if test -n "$AS"; then
5084f823 6472 echo "$as_me:$LINENO: result: $AS" >&5
6473echo "${ECHO_T}$AS" >&6
95a05732 6474else
5084f823 6475 echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
95a05732 6477fi
6478
6479 done
6480fi
6481
6482for ncn_progname in as; do
768691b5 6483 if test -n "$ncn_tool_prefix"; then
6484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6486echo "$as_me:$LINENO: checking for $ac_word" >&5
6487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6488if test "${ac_cv_prog_AS+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6490else
6491 if test -n "$AS"; then
6492 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 6493else
b30fcfae 6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6501 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506done
6507
bb612911 6508fi
6509fi
b30fcfae 6510AS=$ac_cv_prog_AS
bb612911 6511if test -n "$AS"; then
5084f823 6512 echo "$as_me:$LINENO: result: $AS" >&5
6513echo "${ECHO_T}$AS" >&6
bb612911 6514else
5084f823 6515 echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6
bb612911 6517fi
6518
768691b5 6519 fi
6520 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6522set dummy ${ncn_progname}; ac_word=$2
5084f823 6523echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6525if test "${ac_cv_prog_AS+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6527else
768691b5 6528 if test -n "$AS"; then
6529 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 6530else
b30fcfae 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6538 ac_cv_prog_AS="${ncn_progname}"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542done
6543done
6544
bb612911 6545fi
6546fi
b30fcfae 6547AS=$ac_cv_prog_AS
768691b5 6548if test -n "$AS"; then
5084f823 6549 echo "$as_me:$LINENO: result: $AS" >&5
6550echo "${ECHO_T}$AS" >&6
bb612911 6551else
5084f823 6552 echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
bb612911 6554fi
b30fcfae 6555
768691b5 6556 fi
6557 test -n "$ac_cv_prog_AS" && break
6558done
6559
6560if test -z "$ac_cv_prog_AS" ; then
6561 set dummy as
6562 if test $build = $host ; then
6563 AS="$2"
bb612911 6564 else
768691b5 6565 AS="${ncn_tool_prefix}$2"
bb612911 6566 fi
bb612911 6567fi
6568
95a05732 6569
6570
6571if test -n "$DLLTOOL"; then
6572 ac_cv_prog_DLLTOOL=$DLLTOOL
6573elif test -n "$ac_cv_prog_DLLTOOL"; then
6574 DLLTOOL=$ac_cv_prog_DLLTOOL
6575fi
6576
6577if test -n "$ac_cv_prog_DLLTOOL"; then
6578 for ncn_progname in dlltool; do
6579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6580set dummy ${ncn_progname}; ac_word=$2
5084f823 6581echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6583if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 if test -n "$DLLTOOL"; then
6587 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6596 ac_cv_prog_DLLTOOL="${ncn_progname}"
6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600done
6601done
6602
6603fi
6604fi
6605DLLTOOL=$ac_cv_prog_DLLTOOL
6606if test -n "$DLLTOOL"; then
5084f823 6607 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6608echo "${ECHO_T}$DLLTOOL" >&6
95a05732 6609else
5084f823 6610 echo "$as_me:$LINENO: result: no" >&5
6611echo "${ECHO_T}no" >&6
95a05732 6612fi
6613
6614 done
6615fi
6616
6617for ncn_progname in dlltool; do
768691b5 6618 if test -n "$ncn_tool_prefix"; then
6619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6620set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6621echo "$as_me:$LINENO: checking for $ac_word" >&5
6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6623if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6625else
6626 if test -n "$DLLTOOL"; then
6627 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6628else
b30fcfae 6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630for as_dir in $PATH
6631do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6636 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640done
6641done
6642
bb612911 6643fi
6644fi
b30fcfae 6645DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 6646if test -n "$DLLTOOL"; then
5084f823 6647 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6648echo "${ECHO_T}$DLLTOOL" >&6
bb612911 6649else
5084f823 6650 echo "$as_me:$LINENO: result: no" >&5
6651echo "${ECHO_T}no" >&6
bb612911 6652fi
6653
768691b5 6654 fi
6655 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6657set dummy ${ncn_progname}; ac_word=$2
5084f823 6658echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6660if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6662else
768691b5 6663 if test -n "$DLLTOOL"; then
6664 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 6665else
b30fcfae 6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6673 ac_cv_prog_DLLTOOL="${ncn_progname}"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679
bb612911 6680fi
6681fi
b30fcfae 6682DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 6683if test -n "$DLLTOOL"; then
5084f823 6684 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6685echo "${ECHO_T}$DLLTOOL" >&6
bb612911 6686else
5084f823 6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
bb612911 6689fi
b30fcfae 6690
768691b5 6691 fi
6692 test -n "$ac_cv_prog_DLLTOOL" && break
6693done
6694
6695if test -z "$ac_cv_prog_DLLTOOL" ; then
6696 set dummy dlltool
6697 if test $build = $host ; then
6698 DLLTOOL="$2"
bb612911 6699 else
768691b5 6700 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 6701 fi
bb612911 6702fi
6703
95a05732 6704
6705
6706if test -n "$LD"; then
6707 ac_cv_prog_LD=$LD
6708elif test -n "$ac_cv_prog_LD"; then
6709 LD=$ac_cv_prog_LD
6710fi
6711
6712if test -n "$ac_cv_prog_LD"; then
6713 for ncn_progname in ld; do
6714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6715set dummy ${ncn_progname}; ac_word=$2
5084f823 6716echo "$as_me:$LINENO: checking for $ac_word" >&5
6717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6718if test "${ac_cv_prog_LD+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721 if test -n "$LD"; then
6722 ac_cv_prog_LD="$LD" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6731 ac_cv_prog_LD="${ncn_progname}"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736done
6737
6738fi
6739fi
6740LD=$ac_cv_prog_LD
6741if test -n "$LD"; then
5084f823 6742 echo "$as_me:$LINENO: result: $LD" >&5
6743echo "${ECHO_T}$LD" >&6
95a05732 6744else
5084f823 6745 echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6
95a05732 6747fi
6748
6749 done
6750fi
6751
6752for ncn_progname in ld; do
768691b5 6753 if test -n "$ncn_tool_prefix"; then
6754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6755set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6756echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6758if test "${ac_cv_prog_LD+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6760else
6761 if test -n "$LD"; then
6762 ac_cv_prog_LD="$LD" # Let the user override the test.
6763else
b30fcfae 6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6771 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776done
6777
bb612911 6778fi
6779fi
b30fcfae 6780LD=$ac_cv_prog_LD
bb612911 6781if test -n "$LD"; then
5084f823 6782 echo "$as_me:$LINENO: result: $LD" >&5
6783echo "${ECHO_T}$LD" >&6
bb612911 6784else
5084f823 6785 echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6
bb612911 6787fi
6788
768691b5 6789 fi
6790 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6792set dummy ${ncn_progname}; ac_word=$2
5084f823 6793echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6795if test "${ac_cv_prog_LD+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6797else
768691b5 6798 if test -n "$LD"; then
6799 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 6800else
b30fcfae 6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6808 ac_cv_prog_LD="${ncn_progname}"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813done
6814
bb612911 6815fi
6816fi
b30fcfae 6817LD=$ac_cv_prog_LD
768691b5 6818if test -n "$LD"; then
5084f823 6819 echo "$as_me:$LINENO: result: $LD" >&5
6820echo "${ECHO_T}$LD" >&6
bb612911 6821else
5084f823 6822 echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
bb612911 6824fi
b30fcfae 6825
768691b5 6826 fi
6827 test -n "$ac_cv_prog_LD" && break
6828done
6829
6830if test -z "$ac_cv_prog_LD" ; then
6831 set dummy ld
6832 if test $build = $host ; then
6833 LD="$2"
bb612911 6834 else
768691b5 6835 LD="${ncn_tool_prefix}$2"
bb612911 6836 fi
bb612911 6837fi
6838
95a05732 6839
6840
6841if test -n "$LIPO"; then
6842 ac_cv_prog_LIPO=$LIPO
6843elif test -n "$ac_cv_prog_LIPO"; then
6844 LIPO=$ac_cv_prog_LIPO
6845fi
6846
6847if test -n "$ac_cv_prog_LIPO"; then
6848 for ncn_progname in lipo; do
6849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6850set dummy ${ncn_progname}; ac_word=$2
5084f823 6851echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6853if test "${ac_cv_prog_LIPO+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856 if test -n "$LIPO"; then
6857 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6866 ac_cv_prog_LIPO="${ncn_progname}"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872
6873fi
6874fi
6875LIPO=$ac_cv_prog_LIPO
6876if test -n "$LIPO"; then
5084f823 6877 echo "$as_me:$LINENO: result: $LIPO" >&5
6878echo "${ECHO_T}$LIPO" >&6
95a05732 6879else
5084f823 6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
95a05732 6882fi
6883
6884 done
6885fi
6886
6887for ncn_progname in lipo; do
f5aebe3e 6888 if test -n "$ncn_tool_prefix"; then
6889 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6890set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6891echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6893if test "${ac_cv_prog_LIPO+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6895else
6896 if test -n "$LIPO"; then
6897 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6898else
b30fcfae 6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6906 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
6912
f5aebe3e 6913fi
6914fi
b30fcfae 6915LIPO=$ac_cv_prog_LIPO
f5aebe3e 6916if test -n "$LIPO"; then
5084f823 6917 echo "$as_me:$LINENO: result: $LIPO" >&5
6918echo "${ECHO_T}$LIPO" >&6
f5aebe3e 6919else
5084f823 6920 echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6
f5aebe3e 6922fi
6923
6924 fi
6925 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6927set dummy ${ncn_progname}; ac_word=$2
5084f823 6928echo "$as_me:$LINENO: checking for $ac_word" >&5
6929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6930if test "${ac_cv_prog_LIPO+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6932else
6933 if test -n "$LIPO"; then
6934 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6935else
b30fcfae 6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6943 ac_cv_prog_LIPO="${ncn_progname}"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947done
6948done
6949
f5aebe3e 6950fi
6951fi
b30fcfae 6952LIPO=$ac_cv_prog_LIPO
f5aebe3e 6953if test -n "$LIPO"; then
5084f823 6954 echo "$as_me:$LINENO: result: $LIPO" >&5
6955echo "${ECHO_T}$LIPO" >&6
f5aebe3e 6956else
5084f823 6957 echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6
f5aebe3e 6959fi
b30fcfae 6960
f5aebe3e 6961 fi
6962 test -n "$ac_cv_prog_LIPO" && break
6963done
6964
6965if test -z "$ac_cv_prog_LIPO" ; then
6966 set dummy lipo
6967 if test $build = $host ; then
6968 LIPO="$2"
6969 else
6970 LIPO="${ncn_tool_prefix}$2"
6971 fi
6972fi
6973
95a05732 6974
6975
6976if test -n "$NM"; then
6977 ac_cv_prog_NM=$NM
6978elif test -n "$ac_cv_prog_NM"; then
6979 NM=$ac_cv_prog_NM
6980fi
6981
6982if test -n "$ac_cv_prog_NM"; then
6983 for ncn_progname in nm; do
6984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6985set dummy ${ncn_progname}; ac_word=$2
5084f823 6986echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6988if test "${ac_cv_prog_NM+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6990else
6991 if test -n "$NM"; then
6992 ac_cv_prog_NM="$NM" # Let the user override the test.
6993else
b30fcfae 6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7001 ac_cv_prog_NM="${ncn_progname}"
b30fcfae 7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006done
7007
bb612911 7008fi
7009fi
b30fcfae 7010NM=$ac_cv_prog_NM
bb612911 7011if test -n "$NM"; then
5084f823 7012 echo "$as_me:$LINENO: result: $NM" >&5
7013echo "${ECHO_T}$NM" >&6
bb612911 7014else
5084f823 7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
bb612911 7017fi
7018
95a05732 7019 done
7020fi
7021
7022for ncn_progname in nm; do
7023 if test -n "$ncn_tool_prefix"; then
7024 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7025set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7026echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7028if test "${ac_cv_prog_NM+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7030else
768691b5 7031 if test -n "$NM"; then
7032 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 7033else
b30fcfae 7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7041 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
b30fcfae 7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046done
7047
bb612911 7048fi
7049fi
b30fcfae 7050NM=$ac_cv_prog_NM
768691b5 7051if test -n "$NM"; then
5084f823 7052 echo "$as_me:$LINENO: result: $NM" >&5
7053echo "${ECHO_T}$NM" >&6
bb612911 7054else
5084f823 7055 echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6
bb612911 7057fi
b30fcfae 7058
768691b5 7059 fi
95a05732 7060 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7062set dummy ${ncn_progname}; ac_word=$2
5084f823 7063echo "$as_me:$LINENO: checking for $ac_word" >&5
7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7065if test "${ac_cv_prog_NM+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068 if test -n "$NM"; then
7069 ac_cv_prog_NM="$NM" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7078 ac_cv_prog_NM="${ncn_progname}"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082done
7083done
7084
7085fi
7086fi
7087NM=$ac_cv_prog_NM
7088if test -n "$NM"; then
5084f823 7089 echo "$as_me:$LINENO: result: $NM" >&5
7090echo "${ECHO_T}$NM" >&6
95a05732 7091else
5084f823 7092 echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
95a05732 7094fi
7095
7096 fi
7097 test -n "$ac_cv_prog_NM" && break
7098done
7099
7100if test -z "$ac_cv_prog_NM" ; then
7101 set dummy nm
7102 if test $build = $host ; then
7103 NM="$2"
7104 else
7105 NM="${ncn_tool_prefix}$2"
7106 fi
7107fi
7108
7109
7110
7111if test -n "$RANLIB"; then
7112 ac_cv_prog_RANLIB=$RANLIB
7113elif test -n "$ac_cv_prog_RANLIB"; then
7114 RANLIB=$ac_cv_prog_RANLIB
7115fi
7116
7117if test -n "$ac_cv_prog_RANLIB"; then
7118 for ncn_progname in ranlib; do
7119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7120set dummy ${ncn_progname}; ac_word=$2
5084f823 7121echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7123if test "${ac_cv_prog_RANLIB+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 if test -n "$RANLIB"; then
7127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7128else
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7136 ac_cv_prog_RANLIB="${ncn_progname}"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140done
7141done
7142
7143fi
7144fi
7145RANLIB=$ac_cv_prog_RANLIB
7146if test -n "$RANLIB"; then
5084f823 7147 echo "$as_me:$LINENO: result: $RANLIB" >&5
7148echo "${ECHO_T}$RANLIB" >&6
95a05732 7149else
5084f823 7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
95a05732 7152fi
7153
7154 done
7155fi
bb612911 7156
95a05732 7157for ncn_progname in ranlib; do
768691b5 7158 if test -n "$ncn_tool_prefix"; then
7159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7160set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7161echo "$as_me:$LINENO: checking for $ac_word" >&5
7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7163if test "${ac_cv_prog_RANLIB+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7165else
7166 if test -n "$RANLIB"; then
7167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7168else
b30fcfae 7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7176 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181done
7182
bb612911 7183fi
7184fi
b30fcfae 7185RANLIB=$ac_cv_prog_RANLIB
bb612911 7186if test -n "$RANLIB"; then
5084f823 7187 echo "$as_me:$LINENO: result: $RANLIB" >&5
7188echo "${ECHO_T}$RANLIB" >&6
bb612911 7189else
5084f823 7190 echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6
bb612911 7192fi
7193
768691b5 7194 fi
7195 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7197set dummy ${ncn_progname}; ac_word=$2
5084f823 7198echo "$as_me:$LINENO: checking for $ac_word" >&5
7199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7200if test "${ac_cv_prog_RANLIB+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7202else
768691b5 7203 if test -n "$RANLIB"; then
7204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 7205else
b30fcfae 7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7213 ac_cv_prog_RANLIB="${ncn_progname}"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217done
7218done
7219
bb612911 7220fi
7221fi
b30fcfae 7222RANLIB=$ac_cv_prog_RANLIB
768691b5 7223if test -n "$RANLIB"; then
5084f823 7224 echo "$as_me:$LINENO: result: $RANLIB" >&5
7225echo "${ECHO_T}$RANLIB" >&6
bb612911 7226else
5084f823 7227 echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6
bb612911 7229fi
b30fcfae 7230
bb612911 7231 fi
768691b5 7232 test -n "$ac_cv_prog_RANLIB" && break
7233done
7234
7235if test -z "$ac_cv_prog_RANLIB" ; then
7236 RANLIB=":"
bb612911 7237fi
7238
95a05732 7239
7240
7241if test -n "$STRIP"; then
7242 ac_cv_prog_STRIP=$STRIP
7243elif test -n "$ac_cv_prog_STRIP"; then
7244 STRIP=$ac_cv_prog_STRIP
7245fi
7246
7247if test -n "$ac_cv_prog_STRIP"; then
7248 for ncn_progname in strip; do
7249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7250set dummy ${ncn_progname}; ac_word=$2
5084f823 7251echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7253if test "${ac_cv_prog_STRIP+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256 if test -n "$STRIP"; then
7257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7266 ac_cv_prog_STRIP="${ncn_progname}"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270done
7271done
7272
7273fi
7274fi
7275STRIP=$ac_cv_prog_STRIP
7276if test -n "$STRIP"; then
5084f823 7277 echo "$as_me:$LINENO: result: $STRIP" >&5
7278echo "${ECHO_T}$STRIP" >&6
95a05732 7279else
5084f823 7280 echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6
95a05732 7282fi
7283
7284 done
7285fi
7286
7287for ncn_progname in strip; do
f5aebe3e 7288 if test -n "$ncn_tool_prefix"; then
7289 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7290set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7291echo "$as_me:$LINENO: checking for $ac_word" >&5
7292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7293if test "${ac_cv_prog_STRIP+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7295else
7296 if test -n "$STRIP"; then
7297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7298else
b30fcfae 7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7306 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310done
7311done
7312
f5aebe3e 7313fi
7314fi
b30fcfae 7315STRIP=$ac_cv_prog_STRIP
f5aebe3e 7316if test -n "$STRIP"; then
5084f823 7317 echo "$as_me:$LINENO: result: $STRIP" >&5
7318echo "${ECHO_T}$STRIP" >&6
f5aebe3e 7319else
5084f823 7320 echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6
f5aebe3e 7322fi
7323
7324 fi
7325 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7327set dummy ${ncn_progname}; ac_word=$2
5084f823 7328echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7330if test "${ac_cv_prog_STRIP+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7332else
7333 if test -n "$STRIP"; then
7334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7335else
b30fcfae 7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7343 ac_cv_prog_STRIP="${ncn_progname}"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347done
7348done
7349
f5aebe3e 7350fi
7351fi
b30fcfae 7352STRIP=$ac_cv_prog_STRIP
f5aebe3e 7353if test -n "$STRIP"; then
5084f823 7354 echo "$as_me:$LINENO: result: $STRIP" >&5
7355echo "${ECHO_T}$STRIP" >&6
f5aebe3e 7356else
5084f823 7357 echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6
f5aebe3e 7359fi
b30fcfae 7360
f5aebe3e 7361 fi
7362 test -n "$ac_cv_prog_STRIP" && break
7363done
7364
7365if test -z "$ac_cv_prog_STRIP" ; then
7366 STRIP=":"
7367fi
7368
95a05732 7369
7370
7371if test -n "$WINDRES"; then
7372 ac_cv_prog_WINDRES=$WINDRES
7373elif test -n "$ac_cv_prog_WINDRES"; then
7374 WINDRES=$ac_cv_prog_WINDRES
7375fi
7376
7377if test -n "$ac_cv_prog_WINDRES"; then
7378 for ncn_progname in windres; do
7379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7380set dummy ${ncn_progname}; ac_word=$2
5084f823 7381echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7383if test "${ac_cv_prog_WINDRES+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 if test -n "$WINDRES"; then
7387 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7388else
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7396 ac_cv_prog_WINDRES="${ncn_progname}"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400done
7401done
7402
7403fi
7404fi
7405WINDRES=$ac_cv_prog_WINDRES
7406if test -n "$WINDRES"; then
5084f823 7407 echo "$as_me:$LINENO: result: $WINDRES" >&5
7408echo "${ECHO_T}$WINDRES" >&6
95a05732 7409else
5084f823 7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
95a05732 7412fi
7413
7414 done
7415fi
7416
7417for ncn_progname in windres; do
768691b5 7418 if test -n "$ncn_tool_prefix"; then
7419 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7420set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7421echo "$as_me:$LINENO: checking for $ac_word" >&5
7422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7423if test "${ac_cv_prog_WINDRES+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7425else
7426 if test -n "$WINDRES"; then
7427 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7428else
b30fcfae 7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7436 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440done
7441done
7442
bb612911 7443fi
7444fi
b30fcfae 7445WINDRES=$ac_cv_prog_WINDRES
bb612911 7446if test -n "$WINDRES"; then
5084f823 7447 echo "$as_me:$LINENO: result: $WINDRES" >&5
7448echo "${ECHO_T}$WINDRES" >&6
bb612911 7449else
5084f823 7450 echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6
bb612911 7452fi
7453
768691b5 7454 fi
7455 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7457set dummy ${ncn_progname}; ac_word=$2
5084f823 7458echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7460if test "${ac_cv_prog_WINDRES+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7462else
768691b5 7463 if test -n "$WINDRES"; then
7464 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 7465else
b30fcfae 7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7473 ac_cv_prog_WINDRES="${ncn_progname}"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478done
7479
bb612911 7480fi
7481fi
b30fcfae 7482WINDRES=$ac_cv_prog_WINDRES
768691b5 7483if test -n "$WINDRES"; then
5084f823 7484 echo "$as_me:$LINENO: result: $WINDRES" >&5
7485echo "${ECHO_T}$WINDRES" >&6
bb612911 7486else
5084f823 7487 echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
bb612911 7489fi
b30fcfae 7490
768691b5 7491 fi
7492 test -n "$ac_cv_prog_WINDRES" && break
7493done
7494
7495if test -z "$ac_cv_prog_WINDRES" ; then
7496 set dummy windres
7497 if test $build = $host ; then
7498 WINDRES="$2"
bb612911 7499 else
768691b5 7500 WINDRES="${ncn_tool_prefix}$2"
bb612911 7501 fi
bb612911 7502fi
7503
95a05732 7504
7505
75d6a0a9 7506if test -n "$WINDMC"; then
7507 ac_cv_prog_WINDMC=$WINDMC
7508elif test -n "$ac_cv_prog_WINDMC"; then
7509 WINDMC=$ac_cv_prog_WINDMC
7510fi
7511
7512if test -n "$ac_cv_prog_WINDMC"; then
7513 for ncn_progname in windmc; do
7514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7515set dummy ${ncn_progname}; ac_word=$2
7516echo "$as_me:$LINENO: checking for $ac_word" >&5
7517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518if test "${ac_cv_prog_WINDMC+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521 if test -n "$WINDMC"; then
7522 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_WINDMC="${ncn_progname}"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535done
7536done
7537
7538fi
7539fi
7540WINDMC=$ac_cv_prog_WINDMC
7541if test -n "$WINDMC"; then
7542 echo "$as_me:$LINENO: result: $WINDMC" >&5
7543echo "${ECHO_T}$WINDMC" >&6
7544else
7545 echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547fi
7548
7549 done
7550fi
7551
7552for ncn_progname in windmc; do
7553 if test -n "$ncn_tool_prefix"; then
7554 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7555set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7556echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7558if test "${ac_cv_prog_WINDMC+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561 if test -n "$WINDMC"; then
7562 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575done
7576done
7577
7578fi
7579fi
7580WINDMC=$ac_cv_prog_WINDMC
7581if test -n "$WINDMC"; then
7582 echo "$as_me:$LINENO: result: $WINDMC" >&5
7583echo "${ECHO_T}$WINDMC" >&6
7584else
7585 echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
7587fi
7588
7589 fi
7590 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7592set dummy ${ncn_progname}; ac_word=$2
7593echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7595if test "${ac_cv_prog_WINDMC+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 if test -n "$WINDMC"; then
7599 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_WINDMC="${ncn_progname}"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614
7615fi
7616fi
7617WINDMC=$ac_cv_prog_WINDMC
7618if test -n "$WINDMC"; then
7619 echo "$as_me:$LINENO: result: $WINDMC" >&5
7620echo "${ECHO_T}$WINDMC" >&6
7621else
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
7624fi
7625
7626 fi
7627 test -n "$ac_cv_prog_WINDMC" && break
7628done
7629
7630if test -z "$ac_cv_prog_WINDMC" ; then
7631 set dummy windmc
7632 if test $build = $host ; then
7633 WINDMC="$2"
7634 else
7635 WINDMC="${ncn_tool_prefix}$2"
7636 fi
7637fi
7638
7639
7640
95a05732 7641if test -n "$OBJCOPY"; then
7642 ac_cv_prog_OBJCOPY=$OBJCOPY
7643elif test -n "$ac_cv_prog_OBJCOPY"; then
7644 OBJCOPY=$ac_cv_prog_OBJCOPY
7645fi
7646
7647if test -n "$ac_cv_prog_OBJCOPY"; then
7648 for ncn_progname in objcopy; do
7649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7650set dummy ${ncn_progname}; ac_word=$2
5084f823 7651echo "$as_me:$LINENO: checking for $ac_word" >&5
7652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7653if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655else
7656 if test -n "$OBJCOPY"; then
7657 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7658else
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7666 ac_cv_prog_OBJCOPY="${ncn_progname}"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670done
7671done
7672
7673fi
7674fi
7675OBJCOPY=$ac_cv_prog_OBJCOPY
7676if test -n "$OBJCOPY"; then
5084f823 7677 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7678echo "${ECHO_T}$OBJCOPY" >&6
95a05732 7679else
5084f823 7680 echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
95a05732 7682fi
7683
7684 done
7685fi
7686
7687for ncn_progname in objcopy; do
768691b5 7688 if test -n "$ncn_tool_prefix"; then
7689 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7690set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7691echo "$as_me:$LINENO: checking for $ac_word" >&5
7692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7693if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7695else
7696 if test -n "$OBJCOPY"; then
7697 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7698else
b30fcfae 7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7706 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711done
7712
bb612911 7713fi
7714fi
b30fcfae 7715OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 7716if test -n "$OBJCOPY"; then
5084f823 7717 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7718echo "${ECHO_T}$OBJCOPY" >&6
bb612911 7719else
5084f823 7720 echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6
bb612911 7722fi
7723
768691b5 7724 fi
7725 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7727set dummy ${ncn_progname}; ac_word=$2
5084f823 7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7730if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7732else
768691b5 7733 if test -n "$OBJCOPY"; then
7734 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 7735else
b30fcfae 7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7743 ac_cv_prog_OBJCOPY="${ncn_progname}"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748done
7749
bb612911 7750fi
7751fi
b30fcfae 7752OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 7753if test -n "$OBJCOPY"; then
5084f823 7754 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7755echo "${ECHO_T}$OBJCOPY" >&6
bb612911 7756else
5084f823 7757 echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
bb612911 7759fi
b30fcfae 7760
768691b5 7761 fi
7762 test -n "$ac_cv_prog_OBJCOPY" && break
7763done
7764
7765if test -z "$ac_cv_prog_OBJCOPY" ; then
7766 set dummy objcopy
7767 if test $build = $host ; then
7768 OBJCOPY="$2"
bb612911 7769 else
768691b5 7770 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 7771 fi
bb612911 7772fi
7773
95a05732 7774
7775
7776if test -n "$OBJDUMP"; then
7777 ac_cv_prog_OBJDUMP=$OBJDUMP
7778elif test -n "$ac_cv_prog_OBJDUMP"; then
7779 OBJDUMP=$ac_cv_prog_OBJDUMP
7780fi
7781
7782if test -n "$ac_cv_prog_OBJDUMP"; then
7783 for ncn_progname in objdump; do
7784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7785set dummy ${ncn_progname}; ac_word=$2
5084f823 7786echo "$as_me:$LINENO: checking for $ac_word" >&5
7787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7788if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791 if test -n "$OBJDUMP"; then
7792 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7793else
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7801 ac_cv_prog_OBJDUMP="${ncn_progname}"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806done
7807
7808fi
7809fi
7810OBJDUMP=$ac_cv_prog_OBJDUMP
7811if test -n "$OBJDUMP"; then
5084f823 7812 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7813echo "${ECHO_T}$OBJDUMP" >&6
95a05732 7814else
5084f823 7815 echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
95a05732 7817fi
7818
7819 done
7820fi
7821
7822for ncn_progname in objdump; do
768691b5 7823 if test -n "$ncn_tool_prefix"; then
7824 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7825set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7826echo "$as_me:$LINENO: checking for $ac_word" >&5
7827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7828if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7830else
7831 if test -n "$OBJDUMP"; then
7832 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7833else
b30fcfae 7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7841 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846done
7847
bb612911 7848fi
7849fi
b30fcfae 7850OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 7851if test -n "$OBJDUMP"; then
5084f823 7852 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7853echo "${ECHO_T}$OBJDUMP" >&6
bb612911 7854else
5084f823 7855 echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6
bb612911 7857fi
7858
768691b5 7859 fi
7860 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7862set dummy ${ncn_progname}; ac_word=$2
5084f823 7863echo "$as_me:$LINENO: checking for $ac_word" >&5
7864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7865if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7867else
768691b5 7868 if test -n "$OBJDUMP"; then
7869 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 7870else
b30fcfae 7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7878 ac_cv_prog_OBJDUMP="${ncn_progname}"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884
bb612911 7885fi
7886fi
b30fcfae 7887OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 7888if test -n "$OBJDUMP"; then
5084f823 7889 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7890echo "${ECHO_T}$OBJDUMP" >&6
bb612911 7891else
5084f823 7892 echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
bb612911 7894fi
b30fcfae 7895
768691b5 7896 fi
7897 test -n "$ac_cv_prog_OBJDUMP" && break
7898done
7899
7900if test -z "$ac_cv_prog_OBJDUMP" ; then
7901 set dummy objdump
7902 if test $build = $host ; then
7903 OBJDUMP="$2"
bb612911 7904 else
768691b5 7905 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 7906 fi
bb612911 7907fi
7908
71ab34df 7909
7910
7911
7912
7913
7914
f5aebe3e 7915# Target tools.
b30fcfae 7916
5084f823 7917# Check whether --with-build-time-tools or --without-build-time-tools was given.
c47832b1 7918if test "${with_build_time_tools+set}" = set; then
5084f823 7919 withval="$with_build_time_tools"
7920 case x"$withval" in
c47832b1 7921 x/*) ;;
7922 *)
7923 with_build_time_tools=
b30fcfae 7924 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7925echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 7926 ;;
7927 esac
bb612911 7928else
c47832b1 7929 with_build_time_tools=
5084f823 7930fi;
bb612911 7931
95a05732 7932
7933
7934if test -n "$CC_FOR_TARGET"; then
7935 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7936elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7937 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7938fi
7939
7940if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7941 for ncn_progname in cc gcc; do
7942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7943set dummy ${ncn_progname}; ac_word=$2
5084f823 7944echo "$as_me:$LINENO: checking for $ac_word" >&5
7945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7946if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949 if test -n "$CC_FOR_TARGET"; then
7950 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7959 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963done
7964done
7965
7966fi
7967fi
7968CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7969if test -n "$CC_FOR_TARGET"; then
5084f823 7970 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7971echo "${ECHO_T}$CC_FOR_TARGET" >&6
95a05732 7972else
5084f823 7973 echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6
95a05732 7975fi
7976
7977 done
7978fi
7979
7980if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 7981 for ncn_progname in cc gcc; do
5084f823 7982 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7983echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 7984 if test -x $with_build_time_tools/${ncn_progname}; then
7985 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
9886f3d1 7988 break
c47832b1 7989 else
5084f823 7990 echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6
9886f3d1 7992 fi
7993 done
ef8184c7 7994fi
7995
c47832b1 7996if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7997 for ncn_progname in cc gcc; do
7998 if test -n "$ncn_target_tool_prefix"; then
7999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8000set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8001echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8003if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8005else
8006 if test -n "$CC_FOR_TARGET"; then
8007 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8008else
b30fcfae 8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8016 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020done
8021done
8022
ef8184c7 8023fi
8024fi
b30fcfae 8025CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 8026if test -n "$CC_FOR_TARGET"; then
5084f823 8027 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8028echo "${ECHO_T}$CC_FOR_TARGET" >&6
ef8184c7 8029else
5084f823 8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
ef8184c7 8032fi
8033
c47832b1 8034 fi
8035 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 8037set dummy ${ncn_progname}; ac_word=$2
5084f823 8038echo "$as_me:$LINENO: checking for $ac_word" >&5
8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8040if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8042else
768691b5 8043 if test -n "$CC_FOR_TARGET"; then
8044 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 8045else
b30fcfae 8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8053 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057done
8058done
8059
ef8184c7 8060fi
8061fi
b30fcfae 8062CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 8063if test -n "$CC_FOR_TARGET"; then
5084f823 8064 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8065echo "${ECHO_T}$CC_FOR_TARGET" >&6
ef8184c7 8066else
5084f823 8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
ef8184c7 8069fi
b30fcfae 8070
c47832b1 8071 fi
8072 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8073 done
8074fi
b30fcfae 8075
768691b5 8076if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8077 set dummy cc gcc
8078 if test $build = $target ; then
8079 CC_FOR_TARGET="$2"
ef8184c7 8080 else
768691b5 8081 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 8082 fi
b7ef8464 8083else
8084 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 8085fi
8086
95a05732 8087
8088
8089if test -n "$CXX_FOR_TARGET"; then
8090 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8091elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8092 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8093fi
8094
8095if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8096 for ncn_progname in c++ g++ cxx gxx; do
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098set dummy ${ncn_progname}; ac_word=$2
5084f823 8099echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8101if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104 if test -n "$CXX_FOR_TARGET"; then
8105 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8114 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119done
8120
8121fi
8122fi
8123CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8124if test -n "$CXX_FOR_TARGET"; then
5084f823 8125 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8126echo "${ECHO_T}$CXX_FOR_TARGET" >&6
95a05732 8127else
5084f823 8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
95a05732 8130fi
8131
8132 done
8133fi
8134
8135if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8136 for ncn_progname in c++ g++ cxx gxx; do
5084f823 8137 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8138echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8139 if test -x $with_build_time_tools/${ncn_progname}; then
8140 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8141 echo "$as_me:$LINENO: result: yes" >&5
8142echo "${ECHO_T}yes" >&6
c47832b1 8143 break
8144 else
5084f823 8145 echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6
c47832b1 8147 fi
8148 done
8149fi
8150
8151if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8152 for ncn_progname in c++ g++ cxx gxx; do
8153 if test -n "$ncn_target_tool_prefix"; then
8154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8155set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8156echo "$as_me:$LINENO: checking for $ac_word" >&5
8157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8158if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8160else
8161 if test -n "$CXX_FOR_TARGET"; then
8162 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8163else
b30fcfae 8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8171 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8174 fi
8175done
8176done
8177
ef8184c7 8178fi
8179fi
b30fcfae 8180CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 8181if test -n "$CXX_FOR_TARGET"; then
5084f823 8182 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8183echo "${ECHO_T}$CXX_FOR_TARGET" >&6
ef8184c7 8184else
5084f823 8185 echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6
ef8184c7 8187fi
8188
c47832b1 8189 fi
8190 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 8192set dummy ${ncn_progname}; ac_word=$2
5084f823 8193echo "$as_me:$LINENO: checking for $ac_word" >&5
8194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8195if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8197else
768691b5 8198 if test -n "$CXX_FOR_TARGET"; then
8199 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 8200else
b30fcfae 8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8208 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212done
8213done
8214
ef8184c7 8215fi
8216fi
b30fcfae 8217CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 8218if test -n "$CXX_FOR_TARGET"; then
5084f823 8219 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8220echo "${ECHO_T}$CXX_FOR_TARGET" >&6
ef8184c7 8221else
5084f823 8222 echo "$as_me:$LINENO: result: no" >&5
8223echo "${ECHO_T}no" >&6
ef8184c7 8224fi
b30fcfae 8225
c47832b1 8226 fi
8227 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8228 done
8229fi
b30fcfae 8230
768691b5 8231if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8232 set dummy c++ g++ cxx gxx
8233 if test $build = $target ; then
8234 CXX_FOR_TARGET="$2"
ef8184c7 8235 else
768691b5 8236 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 8237 fi
b7ef8464 8238else
8239 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 8240fi
8241
95a05732 8242
8243
8244if test -n "$GCC_FOR_TARGET"; then
8245 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8246elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8247 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8248fi
8249
8250if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8251 for ncn_progname in gcc; do
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253set dummy ${ncn_progname}; ac_word=$2
5084f823 8254echo "$as_me:$LINENO: checking for $ac_word" >&5
8255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8256if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259 if test -n "$GCC_FOR_TARGET"; then
8260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8269 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273done
8274done
8275
8276fi
8277fi
8278GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8279if test -n "$GCC_FOR_TARGET"; then
5084f823 8280 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8281echo "${ECHO_T}$GCC_FOR_TARGET" >&6
95a05732 8282else
5084f823 8283 echo "$as_me:$LINENO: result: no" >&5
8284echo "${ECHO_T}no" >&6
95a05732 8285fi
8286
8287 done
8288fi
8289
8290if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8291 for ncn_progname in gcc; do
5084f823 8292 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8293echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8294 if test -x $with_build_time_tools/${ncn_progname}; then
8295 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8296 echo "$as_me:$LINENO: result: yes" >&5
8297echo "${ECHO_T}yes" >&6
c47832b1 8298 break
8299 else
5084f823 8300 echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6
c47832b1 8302 fi
8303 done
8304fi
8305
8306if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8307 for ncn_progname in gcc; do
8308 if test -n "$ncn_target_tool_prefix"; then
8309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8310set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8311echo "$as_me:$LINENO: checking for $ac_word" >&5
8312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8313if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8315else
c47832b1 8316 if test -n "$GCC_FOR_TARGET"; then
8317 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 8318else
b30fcfae 8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8326 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330done
8331done
8332
bb612911 8333fi
8334fi
b30fcfae 8335GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 8336if test -n "$GCC_FOR_TARGET"; then
5084f823 8337 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8338echo "${ECHO_T}$GCC_FOR_TARGET" >&6
bb612911 8339else
5084f823 8340 echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
bb612911 8342fi
8343
c47832b1 8344 fi
8345 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 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
b30fcfae 8350if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8352else
c47832b1 8353 if test -n "$GCC_FOR_TARGET"; then
8354 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 8355else
b30fcfae 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
b30fcfae 8363 ac_cv_prog_GCC_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
bb612911 8370fi
8371fi
b30fcfae 8372GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 8373if test -n "$GCC_FOR_TARGET"; then
5084f823 8374 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8375echo "${ECHO_T}$GCC_FOR_TARGET" >&6
bb612911 8376else
5084f823 8377 echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6
bb612911 8379fi
b30fcfae 8380
c47832b1 8381 fi
8382 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8383 done
8384fi
b30fcfae 8385
c47832b1 8386if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8387 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 8388else
8389 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 8390fi
8391
95a05732 8392
8393
8394if test -n "$GCJ_FOR_TARGET"; then
8395 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8396elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8397 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8398fi
8399
8400if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8401 for ncn_progname in gcj; do
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_progname}; ac_word=$2
5084f823 8404echo "$as_me:$LINENO: checking for $ac_word" >&5
8405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8406if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409 if test -n "$GCJ_FOR_TARGET"; then
8410 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8411else
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8419 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423done
8424done
8425
8426fi
8427fi
8428GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8429if test -n "$GCJ_FOR_TARGET"; then
5084f823 8430 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8431echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8432else
5084f823 8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
95a05732 8435fi
8436
8437 done
8438fi
8439
8440if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8441 for ncn_progname in gcj; do
5084f823 8442 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8443echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8444 if test -x $with_build_time_tools/${ncn_progname}; then
8445 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
c47832b1 8448 break
8449 else
5084f823 8450 echo "$as_me:$LINENO: result: no" >&5
8451echo "${ECHO_T}no" >&6
c47832b1 8452 fi
8453 done
8454fi
8455
8456if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8457 for ncn_progname in gcj; do
8458 if test -n "$ncn_target_tool_prefix"; then
8459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8461echo "$as_me:$LINENO: checking for $ac_word" >&5
8462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8463if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8465else
a4af6a58 8466 if test -n "$GCJ_FOR_TARGET"; then
8467 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8468else
b30fcfae 8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470for as_dir in $PATH
8471do
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8476 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8479 fi
8480done
8481done
8482
c47832b1 8483fi
8484fi
95a05732 8485GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8486if test -n "$GCJ_FOR_TARGET"; then
5084f823 8487 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8488echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8489else
5084f823 8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
95a05732 8492fi
8493
8494 fi
8495 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8497set dummy ${ncn_progname}; ac_word=$2
5084f823 8498echo "$as_me:$LINENO: checking for $ac_word" >&5
8499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8500if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 if test -n "$GCJ_FOR_TARGET"; then
8504 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8513 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8516 fi
8517done
8518done
8519
8520fi
8521fi
8522GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8523if test -n "$GCJ_FOR_TARGET"; then
5084f823 8524 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8525echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8526else
5084f823 8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
95a05732 8529fi
8530
8531 fi
8532 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8533 done
8534fi
8535
8536if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8537 set dummy gcj
8538 if test $build = $target ; then
8539 GCJ_FOR_TARGET="$2"
8540 else
8541 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8542 fi
b7ef8464 8543else
8544 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
95a05732 8545fi
8546
8547
8548
8549if test -n "$GFORTRAN_FOR_TARGET"; then
8550 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8551elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8552 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8553fi
8554
95a05732 8555if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8556 for ncn_progname in gfortran; do
8557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 8558set dummy ${ncn_progname}; ac_word=$2
5084f823 8559echo "$as_me:$LINENO: checking for $ac_word" >&5
8560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8561if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
b30fcfae 8562 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8563else
95a05732 8564 if test -n "$GFORTRAN_FOR_TARGET"; then
8565 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 8566else
b30fcfae 8567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8574 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
b30fcfae 8575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578done
8579done
8580
c47832b1 8581fi
8582fi
95a05732 8583GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8584if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8585 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8586echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8587else
5084f823 8588 echo "$as_me:$LINENO: result: no" >&5
8589echo "${ECHO_T}no" >&6
c47832b1 8590fi
b30fcfae 8591
c47832b1 8592 done
8593fi
b30fcfae 8594
95a05732 8595if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8596 for ncn_progname in gfortran; do
5084f823 8597 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8598echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8599 if test -x $with_build_time_tools/${ncn_progname}; then
8600 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
c47832b1 8603 break
8604 else
5084f823 8605 echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
c47832b1 8607 fi
8608 done
8609fi
8610
8611if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8612 for ncn_progname in gfortran; do
8613 if test -n "$ncn_target_tool_prefix"; then
8614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8615set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8616echo "$as_me:$LINENO: checking for $ac_word" >&5
8617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8618if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8620else
8621 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 8622 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8623else
8624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8631 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635done
8636done
8637
c47832b1 8638fi
8639fi
b30fcfae 8640GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8641if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8642 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8643echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8644else
5084f823 8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
c47832b1 8647fi
8648
8649 fi
8650 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8652set dummy ${ncn_progname}; ac_word=$2
5084f823 8653echo "$as_me:$LINENO: checking for $ac_word" >&5
8654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8655if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8657else
8658 if test -n "$GFORTRAN_FOR_TARGET"; then
8659 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8660else
b30fcfae 8661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8668 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 break 2
8671 fi
8672done
8673done
8674
c47832b1 8675fi
8676fi
b30fcfae 8677GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8678if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8679 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8680echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8681else
5084f823 8682 echo "$as_me:$LINENO: result: no" >&5
8683echo "${ECHO_T}no" >&6
c47832b1 8684fi
b30fcfae 8685
c47832b1 8686 fi
8687 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8688 done
8689fi
b30fcfae 8690
c47832b1 8691if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8692 set dummy gfortran
768691b5 8693 if test $build = $target ; then
c47832b1 8694 GFORTRAN_FOR_TARGET="$2"
bb612911 8695 else
c47832b1 8696 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8697 fi
b7ef8464 8698else
8699 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 8700fi
8701
8702
8703
c47832b1 8704cat > conftest.c << \EOF
8705#ifdef __GNUC__
8706 gcc_yay;
8707#endif
8708EOF
8709if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8710 have_gcc_for_target=yes
8711else
8712 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8713 have_gcc_for_target=no
8714fi
8715rm conftest.c
8716
8717
8718
8719
8720if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8721 if test -n "$with_build_time_tools"; then
5084f823 8722 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8723echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8724 if test -x $with_build_time_tools/ar; then
8725 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8726 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5084f823 8727 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8728echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
ab0da556 8729 else
5084f823 8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
ab0da556 8732 fi
c47832b1 8733 elif test $build != $host && test $have_gcc_for_target = yes; then
8734 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 8735 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8736 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 8737 fi
8738fi
38d7211b 8739if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 8740 # Extract the first word of "ar", so it can be a program name with args.
8741set dummy ar; ac_word=$2
5084f823 8742echo "$as_me:$LINENO: checking for $ac_word" >&5
8743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8744if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8746else
b30fcfae 8747 case $AR_FOR_TARGET in
8748 [\\/]* | ?:[\\/]*)
c47832b1 8749 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8750 ;;
c47832b1 8751 *)
b30fcfae 8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $gcc_cv_tool_dirs
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8759 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763done
8764done
8765
c47832b1 8766 ;;
8767esac
8768fi
b30fcfae 8769AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5084f823 8770
c47832b1 8771if test -n "$AR_FOR_TARGET"; then
5084f823 8772 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8773echo "${ECHO_T}$AR_FOR_TARGET" >&6
c47832b1 8774else
5084f823 8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
ef8184c7 8777fi
8778
c47832b1 8779fi
8780if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 8781
8782
8783if test -n "$AR_FOR_TARGET"; then
8784 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8785elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8786 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8787fi
8788
8789if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8790 for ncn_progname in ar; do
8791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8792set dummy ${ncn_progname}; ac_word=$2
5084f823 8793echo "$as_me:$LINENO: checking for $ac_word" >&5
8794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8795if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798 if test -n "$AR_FOR_TARGET"; then
8799 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8800else
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8808 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8811 fi
8812done
8813done
8814
8815fi
8816fi
8817AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8818if test -n "$AR_FOR_TARGET"; then
5084f823 8819 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8820echo "${ECHO_T}$AR_FOR_TARGET" >&6
95a05732 8821else
5084f823 8822 echo "$as_me:$LINENO: result: no" >&5
8823echo "${ECHO_T}no" >&6
95a05732 8824fi
8825
8826 done
8827fi
8828
8829if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8830 for ncn_progname in ar; do
5084f823 8831 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8832echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8833 if test -x $with_build_time_tools/${ncn_progname}; then
8834 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8835 echo "$as_me:$LINENO: result: yes" >&5
8836echo "${ECHO_T}yes" >&6
c47832b1 8837 break
8838 else
5084f823 8839 echo "$as_me:$LINENO: result: no" >&5
8840echo "${ECHO_T}no" >&6
c47832b1 8841 fi
8842 done
8843fi
8844
8845if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8846 for ncn_progname in ar; do
8847 if test -n "$ncn_target_tool_prefix"; then
8848 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8849set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8850echo "$as_me:$LINENO: checking for $ac_word" >&5
8851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8852if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8854else
c47832b1 8855 if test -n "$AR_FOR_TARGET"; then
8856 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 8857else
b30fcfae 8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8865 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8868 fi
8869done
8870done
8871
ef8184c7 8872fi
8873fi
b30fcfae 8874AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 8875if test -n "$AR_FOR_TARGET"; then
5084f823 8876 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8877echo "${ECHO_T}$AR_FOR_TARGET" >&6
ef8184c7 8878else
5084f823 8879 echo "$as_me:$LINENO: result: no" >&5
8880echo "${ECHO_T}no" >&6
ef8184c7 8881fi
8882
c47832b1 8883 fi
8884 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886set dummy ${ncn_progname}; ac_word=$2
5084f823 8887echo "$as_me:$LINENO: checking for $ac_word" >&5
8888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8889if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8891else
8892 if test -n "$AR_FOR_TARGET"; then
8893 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8894else
b30fcfae 8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8902 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906done
8907done
8908
c47832b1 8909fi
8910fi
b30fcfae 8911AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 8912if test -n "$AR_FOR_TARGET"; then
5084f823 8913 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8914echo "${ECHO_T}$AR_FOR_TARGET" >&6
c47832b1 8915else
5084f823 8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
c47832b1 8918fi
b30fcfae 8919
c47832b1 8920 fi
8921 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8922 done
8923fi
b30fcfae 8924
c47832b1 8925if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8926 set dummy ar
8927 if test $build = $target ; then
8928 AR_FOR_TARGET="$2"
8929 else
8930 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 8931 fi
b7ef8464 8932else
8933 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 8934fi
8935
ab0da556 8936else
8937 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 8938fi
8939
8940
8941
8942
8943if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8944 if test -n "$with_build_time_tools"; then
5084f823 8945 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8946echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8947 if test -x $with_build_time_tools/as; then
8948 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8949 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5084f823 8950 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8951echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
ab0da556 8952 else
5084f823 8953 echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6
ab0da556 8955 fi
c47832b1 8956 elif test $build != $host && test $have_gcc_for_target = yes; then
8957 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 8958 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8959 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 8960 fi
8961fi
38d7211b 8962if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 8963 # Extract the first word of "as", so it can be a program name with args.
8964set dummy as; ac_word=$2
5084f823 8965echo "$as_me:$LINENO: checking for $ac_word" >&5
8966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8967if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8969else
b30fcfae 8970 case $AS_FOR_TARGET in
8971 [\\/]* | ?:[\\/]*)
c47832b1 8972 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8973 ;;
c47832b1 8974 *)
b30fcfae 8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $gcc_cv_tool_dirs
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8982 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986done
8987done
8988
c47832b1 8989 ;;
8990esac
8991fi
b30fcfae 8992AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5084f823 8993
c47832b1 8994if test -n "$AS_FOR_TARGET"; then
5084f823 8995 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8996echo "${ECHO_T}$AS_FOR_TARGET" >&6
c47832b1 8997else
5084f823 8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
c47832b1 9000fi
9001
9002fi
9003if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 9004
9005
9006if test -n "$AS_FOR_TARGET"; then
9007 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9008elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9009 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9010fi
9011
9012if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9013 for ncn_progname in as; do
9014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9015set dummy ${ncn_progname}; ac_word=$2
5084f823 9016echo "$as_me:$LINENO: checking for $ac_word" >&5
9017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9018if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021 if test -n "$AS_FOR_TARGET"; then
9022 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9023else
9024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025for as_dir in $PATH
9026do
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9031 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 break 2
9034 fi
9035done
9036done
9037
9038fi
9039fi
9040AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9041if test -n "$AS_FOR_TARGET"; then
5084f823 9042 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9043echo "${ECHO_T}$AS_FOR_TARGET" >&6
95a05732 9044else
5084f823 9045 echo "$as_me:$LINENO: result: no" >&5
9046echo "${ECHO_T}no" >&6
95a05732 9047fi
9048
9049 done
9050fi
9051
9052if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9053 for ncn_progname in as; do
5084f823 9054 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9055echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9056 if test -x $with_build_time_tools/${ncn_progname}; then
9057 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
c47832b1 9060 break
9061 else
5084f823 9062 echo "$as_me:$LINENO: result: no" >&5
9063echo "${ECHO_T}no" >&6
c47832b1 9064 fi
9065 done
9066fi
9067
9068if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9069 for ncn_progname in as; do
9070 if test -n "$ncn_target_tool_prefix"; then
9071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9073echo "$as_me:$LINENO: checking for $ac_word" >&5
9074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9075if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9077else
9078 if test -n "$AS_FOR_TARGET"; then
9079 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9080else
b30fcfae 9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9088 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093done
9094
c47832b1 9095fi
9096fi
b30fcfae 9097AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 9098if test -n "$AS_FOR_TARGET"; then
5084f823 9099 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9100echo "${ECHO_T}$AS_FOR_TARGET" >&6
c47832b1 9101else
5084f823 9102 echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
c47832b1 9104fi
9105
9106 fi
9107 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9109set dummy ${ncn_progname}; ac_word=$2
5084f823 9110echo "$as_me:$LINENO: checking for $ac_word" >&5
9111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9112if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9114else
c47832b1 9115 if test -n "$AS_FOR_TARGET"; then
9116 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 9117else
b30fcfae 9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9125 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130done
9131
ef8184c7 9132fi
9133fi
b30fcfae 9134AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 9135if test -n "$AS_FOR_TARGET"; then
5084f823 9136 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9137echo "${ECHO_T}$AS_FOR_TARGET" >&6
ef8184c7 9138else
5084f823 9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
ef8184c7 9141fi
b30fcfae 9142
c47832b1 9143 fi
9144 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9145 done
9146fi
b30fcfae 9147
c47832b1 9148if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9149 set dummy as
9150 if test $build = $target ; then
9151 AS_FOR_TARGET="$2"
9152 else
9153 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 9154 fi
b7ef8464 9155else
9156 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 9157fi
768691b5 9158
ab0da556 9159else
9160 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 9161fi
9162
c47832b1 9163
9164
9165
9166if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9167 if test -n "$with_build_time_tools"; then
5084f823 9168 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9169echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9170 if test -x $with_build_time_tools/dlltool; then
9171 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9172 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5084f823 9173 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9174echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
ab0da556 9175 else
5084f823 9176 echo "$as_me:$LINENO: result: no" >&5
9177echo "${ECHO_T}no" >&6
ab0da556 9178 fi
c47832b1 9179 elif test $build != $host && test $have_gcc_for_target = yes; then
9180 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 9181 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9182 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 9183 fi
9184fi
38d7211b 9185if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9186 # Extract the first word of "dlltool", so it can be a program name with args.
9187set dummy dlltool; ac_word=$2
5084f823 9188echo "$as_me:$LINENO: checking for $ac_word" >&5
9189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9190if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9192else
b30fcfae 9193 case $DLLTOOL_FOR_TARGET in
9194 [\\/]* | ?:[\\/]*)
c47832b1 9195 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9196 ;;
c47832b1 9197 *)
b30fcfae 9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199for as_dir in $gcc_cv_tool_dirs
9200do
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9205 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 break 2
9208 fi
9209done
9210done
9211
c47832b1 9212 ;;
9213esac
ef8184c7 9214fi
b30fcfae 9215DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5084f823 9216
c47832b1 9217if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9218 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9219echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9220else
5084f823 9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
ef8184c7 9223fi
9224
c47832b1 9225fi
9226if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 9227
9228
9229if test -n "$DLLTOOL_FOR_TARGET"; then
9230 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9231elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9232 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9233fi
9234
9235if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9236 for ncn_progname in dlltool; do
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238set dummy ${ncn_progname}; ac_word=$2
5084f823 9239echo "$as_me:$LINENO: checking for $ac_word" >&5
9240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9241if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243else
9244 if test -n "$DLLTOOL_FOR_TARGET"; then
9245 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9246else
9247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9254 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258done
9259done
9260
9261fi
9262fi
9263DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9264if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9265 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9266echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
95a05732 9267else
5084f823 9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
95a05732 9270fi
9271
9272 done
9273fi
9274
9275if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9276 for ncn_progname in dlltool; do
5084f823 9277 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9278echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9279 if test -x $with_build_time_tools/${ncn_progname}; then
9280 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
c47832b1 9283 break
9284 else
5084f823 9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
c47832b1 9287 fi
9288 done
9289fi
9290
9291if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9292 for ncn_progname in dlltool; do
9293 if test -n "$ncn_target_tool_prefix"; then
9294 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9295set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9296echo "$as_me:$LINENO: checking for $ac_word" >&5
9297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9298if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9300else
c47832b1 9301 if test -n "$DLLTOOL_FOR_TARGET"; then
9302 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 9303else
b30fcfae 9304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307 IFS=$as_save_IFS
9308 test -z "$as_dir" && as_dir=.
9309 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9311 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9313 break 2
9314 fi
9315done
9316done
9317
ef8184c7 9318fi
9319fi
b30fcfae 9320DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 9321if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9322 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9323echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9324else
5084f823 9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
ef8184c7 9327fi
ef8184c7 9328
c47832b1 9329 fi
9330 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9332set dummy ${ncn_progname}; ac_word=$2
5084f823 9333echo "$as_me:$LINENO: checking for $ac_word" >&5
9334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9335if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9337else
c47832b1 9338 if test -n "$DLLTOOL_FOR_TARGET"; then
9339 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 9340else
b30fcfae 9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342for as_dir in $PATH
9343do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9348 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352done
9353done
9354
ef8184c7 9355fi
9356fi
b30fcfae 9357DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 9358if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9359 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9360echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9361else
5084f823 9362 echo "$as_me:$LINENO: result: no" >&5
9363echo "${ECHO_T}no" >&6
ef8184c7 9364fi
b30fcfae 9365
c47832b1 9366 fi
9367 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9368 done
9369fi
b30fcfae 9370
c47832b1 9371if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9372 set dummy dlltool
9373 if test $build = $target ; then
9374 DLLTOOL_FOR_TARGET="$2"
9375 else
9376 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9377 fi
b7ef8464 9378else
9379 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 9380fi
9381
ab0da556 9382else
9383 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 9384fi
9385
ef8184c7 9386
c47832b1 9387
9388
9389if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9390 if test -n "$with_build_time_tools"; then
5084f823 9391 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9392echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9393 if test -x $with_build_time_tools/ld; then
9394 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9395 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5084f823 9396 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9397echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
ab0da556 9398 else
5084f823 9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
ab0da556 9401 fi
c47832b1 9402 elif test $build != $host && test $have_gcc_for_target = yes; then
9403 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 9404 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9405 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 9406 fi
c47832b1 9407fi
38d7211b 9408if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9409 # Extract the first word of "ld", so it can be a program name with args.
9410set dummy ld; ac_word=$2
5084f823 9411echo "$as_me:$LINENO: checking for $ac_word" >&5
9412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9413if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9415else
b30fcfae 9416 case $LD_FOR_TARGET in
9417 [\\/]* | ?:[\\/]*)
c47832b1 9418 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9419 ;;
c47832b1 9420 *)
b30fcfae 9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422for as_dir in $gcc_cv_tool_dirs
9423do
9424 IFS=$as_save_IFS
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9428 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 break 2
9431 fi
9432done
9433done
9434
c47832b1 9435 ;;
9436esac
ef8184c7 9437fi
b30fcfae 9438LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5084f823 9439
c47832b1 9440if test -n "$LD_FOR_TARGET"; then
5084f823 9441 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9442echo "${ECHO_T}$LD_FOR_TARGET" >&6
ef8184c7 9443else
5084f823 9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
ef8184c7 9446fi
768691b5 9447
c47832b1 9448fi
9449if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 9450
9451
9452if test -n "$LD_FOR_TARGET"; then
9453 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9454elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9455 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9456fi
9457
9458if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9459 for ncn_progname in ld; do
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461set dummy ${ncn_progname}; ac_word=$2
5084f823 9462echo "$as_me:$LINENO: checking for $ac_word" >&5
9463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9464if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466else
9467 if test -n "$LD_FOR_TARGET"; then
9468 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9469else
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9477 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9480 fi
9481done
9482done
9483
9484fi
9485fi
9486LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9487if test -n "$LD_FOR_TARGET"; then
5084f823 9488 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9489echo "${ECHO_T}$LD_FOR_TARGET" >&6
95a05732 9490else
5084f823 9491 echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
95a05732 9493fi
9494
9495 done
9496fi
9497
9498if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9499 for ncn_progname in ld; do
5084f823 9500 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9501echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9502 if test -x $with_build_time_tools/${ncn_progname}; then
9503 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
c47832b1 9506 break
9507 else
5084f823 9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
c47832b1 9510 fi
9511 done
bb612911 9512fi
9513
c47832b1 9514if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9515 for ncn_progname in ld; do
9516 if test -n "$ncn_target_tool_prefix"; then
9517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9518set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9519echo "$as_me:$LINENO: checking for $ac_word" >&5
9520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9521if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9523else
ef8184c7 9524 if test -n "$LD_FOR_TARGET"; then
9525 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 9526else
b30fcfae 9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9534 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9537 fi
9538done
9539done
9540
bb612911 9541fi
9542fi
b30fcfae 9543LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 9544if test -n "$LD_FOR_TARGET"; then
5084f823 9545 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9546echo "${ECHO_T}$LD_FOR_TARGET" >&6
bb612911 9547else
5084f823 9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
bb612911 9550fi
9551
c47832b1 9552 fi
9553 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9555set dummy ${ncn_progname}; ac_word=$2
5084f823 9556echo "$as_me:$LINENO: checking for $ac_word" >&5
9557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9558if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9560else
768691b5 9561 if test -n "$LD_FOR_TARGET"; then
9562 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 9563else
b30fcfae 9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9571 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9574 fi
9575done
9576done
9577
bb612911 9578fi
9579fi
b30fcfae 9580LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 9581if test -n "$LD_FOR_TARGET"; then
5084f823 9582 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9583echo "${ECHO_T}$LD_FOR_TARGET" >&6
bb612911 9584else
5084f823 9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
bb612911 9587fi
b30fcfae 9588
c47832b1 9589 fi
9590 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9591 done
9592fi
b30fcfae 9593
768691b5 9594if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9595 set dummy ld
9596 if test $build = $target ; then
9597 LD_FOR_TARGET="$2"
bb612911 9598 else
768691b5 9599 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 9600 fi
b7ef8464 9601else
9602 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 9603fi
9604
ab0da556 9605else
9606 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 9607fi
9608
9609
9610
9611
9612if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9613 if test -n "$with_build_time_tools"; then
5084f823 9614 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9615echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9616 if test -x $with_build_time_tools/lipo; then
9617 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9618 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5084f823 9619 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9620echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
ab0da556 9621 else
5084f823 9622 echo "$as_me:$LINENO: result: no" >&5
9623echo "${ECHO_T}no" >&6
ab0da556 9624 fi
c47832b1 9625 elif test $build != $host && test $have_gcc_for_target = yes; then
9626 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 9627 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9628 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 9629 fi
9630fi
95a05732 9631if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9632 # Extract the first word of "lipo", so it can be a program name with args.
9633set dummy lipo; ac_word=$2
5084f823 9634echo "$as_me:$LINENO: checking for $ac_word" >&5
9635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9636if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639 case $LIPO_FOR_TARGET in
9640 [\\/]* | ?:[\\/]*)
9641 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9642 ;;
9643 *)
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $gcc_cv_tool_dirs
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9651 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656done
9657
9658 ;;
9659esac
9660fi
9661LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5084f823 9662
95a05732 9663if test -n "$LIPO_FOR_TARGET"; then
5084f823 9664 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9665echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
95a05732 9666else
5084f823 9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
95a05732 9669fi
9670
9671fi
9672if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9673
9674
9675if test -n "$LIPO_FOR_TARGET"; then
9676 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9677elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9678 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9679fi
9680
9681if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9682 for ncn_progname in lipo; do
9683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9684set dummy ${ncn_progname}; ac_word=$2
5084f823 9685echo "$as_me:$LINENO: checking for $ac_word" >&5
9686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9687if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
b30fcfae 9688 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9689else
95a05732 9690 if test -n "$LIPO_FOR_TARGET"; then
9691 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9692else
9693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694for as_dir in $PATH
b30fcfae 9695do
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9700 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
b30fcfae 9701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704done
9705done
9706
c47832b1 9707fi
95a05732 9708fi
9709LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 9710if test -n "$LIPO_FOR_TARGET"; then
5084f823 9711 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9712echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
c47832b1 9713else
5084f823 9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
c47832b1 9716fi
9717
95a05732 9718 done
c47832b1 9719fi
95a05732 9720
9721if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9722 for ncn_progname in lipo; do
5084f823 9723 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9724echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9725 if test -x $with_build_time_tools/${ncn_progname}; then
9726 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9727 echo "$as_me:$LINENO: result: yes" >&5
9728echo "${ECHO_T}yes" >&6
c47832b1 9729 break
9730 else
5084f823 9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
c47832b1 9733 fi
9734 done
9735fi
9736
9737if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9738 for ncn_progname in lipo; do
9739 if test -n "$ncn_target_tool_prefix"; then
9740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9741set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9742echo "$as_me:$LINENO: checking for $ac_word" >&5
9743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9744if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 9746else
9747 if test -n "$LIPO_FOR_TARGET"; then
9748 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9749else
b30fcfae 9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9757 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761done
9762done
9763
9fec3fa8 9764fi
9765fi
b30fcfae 9766LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 9767if test -n "$LIPO_FOR_TARGET"; then
5084f823 9768 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9769echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9fec3fa8 9770else
5084f823 9771 echo "$as_me:$LINENO: result: no" >&5
9772echo "${ECHO_T}no" >&6
9fec3fa8 9773fi
9774
c47832b1 9775 fi
9776 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 9778set dummy ${ncn_progname}; ac_word=$2
5084f823 9779echo "$as_me:$LINENO: checking for $ac_word" >&5
9780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9781if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 9783else
9784 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 9785 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9786else
b30fcfae 9787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788for as_dir in $PATH
9789do
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9794 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9797 fi
9798done
9799done
9800
9fec3fa8 9801fi
9802fi
b30fcfae 9803LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 9804if test -n "$LIPO_FOR_TARGET"; then
5084f823 9805 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9806echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9fec3fa8 9807else
5084f823 9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9fec3fa8 9810fi
b30fcfae 9811
c47832b1 9812 fi
9813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9814 done
9815fi
b30fcfae 9816
9fec3fa8 9817if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9818 set dummy lipo
9819 if test $build = $target ; then
9820 LIPO_FOR_TARGET="$2"
9821 else
9822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9823 fi
b7ef8464 9824else
9825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 9826fi
9827
ab0da556 9828else
9829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 9830fi
9831
9832
9833
9834
9835if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9836 if test -n "$with_build_time_tools"; then
5084f823 9837 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9838echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9839 if test -x $with_build_time_tools/nm; then
9840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5084f823 9842 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9843echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
ab0da556 9844 else
5084f823 9845 echo "$as_me:$LINENO: result: no" >&5
9846echo "${ECHO_T}no" >&6
ab0da556 9847 fi
c47832b1 9848 elif test $build != $host && test $have_gcc_for_target = yes; then
9849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 9850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 9852 fi
9853fi
38d7211b 9854if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9855 # Extract the first word of "nm", so it can be a program name with args.
9856set dummy nm; ac_word=$2
5084f823 9857echo "$as_me:$LINENO: checking for $ac_word" >&5
9858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9859if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9861else
b30fcfae 9862 case $NM_FOR_TARGET in
9863 [\\/]* | ?:[\\/]*)
c47832b1 9864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9865 ;;
c47832b1 9866 *)
b30fcfae 9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868for as_dir in $gcc_cv_tool_dirs
9869do
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9877 fi
9878done
9879done
9880
c47832b1 9881 ;;
9882esac
9883fi
b30fcfae 9884NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
5084f823 9885
c47832b1 9886if test -n "$NM_FOR_TARGET"; then
5084f823 9887 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9888echo "${ECHO_T}$NM_FOR_TARGET" >&6
c47832b1 9889else
5084f823 9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
c47832b1 9892fi
9893
9894fi
9895if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 9896
9897
9898if test -n "$NM_FOR_TARGET"; then
9899 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9900elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9901 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9902fi
9903
9904if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9905 for ncn_progname in nm; do
9906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9907set dummy ${ncn_progname}; ac_word=$2
5084f823 9908echo "$as_me:$LINENO: checking for $ac_word" >&5
9909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9910if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912else
9913 if test -n "$NM_FOR_TARGET"; then
9914 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9915else
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9923 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927done
9928done
9929
9930fi
9931fi
9932NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9933if test -n "$NM_FOR_TARGET"; then
5084f823 9934 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9935echo "${ECHO_T}$NM_FOR_TARGET" >&6
95a05732 9936else
5084f823 9937 echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
95a05732 9939fi
9940
9941 done
9942fi
9943
9944if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9945 for ncn_progname in nm; do
5084f823 9946 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9947echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9948 if test -x $with_build_time_tools/${ncn_progname}; then
9949 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9950 echo "$as_me:$LINENO: result: yes" >&5
9951echo "${ECHO_T}yes" >&6
c47832b1 9952 break
9953 else
5084f823 9954 echo "$as_me:$LINENO: result: no" >&5
9955echo "${ECHO_T}no" >&6
c47832b1 9956 fi
9957 done
9958fi
9959
9960if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9961 for ncn_progname in nm; do
9962 if test -n "$ncn_target_tool_prefix"; then
9963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 9964set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9965echo "$as_me:$LINENO: checking for $ac_word" >&5
9966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9967if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9969else
ef8184c7 9970 if test -n "$NM_FOR_TARGET"; then
9971 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 9972else
b30fcfae 9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9980 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984done
9985done
9986
bb612911 9987fi
9988fi
b30fcfae 9989NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 9990if test -n "$NM_FOR_TARGET"; then
5084f823 9991 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9992echo "${ECHO_T}$NM_FOR_TARGET" >&6
bb612911 9993else
5084f823 9994 echo "$as_me:$LINENO: result: no" >&5
9995echo "${ECHO_T}no" >&6
bb612911 9996fi
9997
c47832b1 9998 fi
9999 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10001set dummy ${ncn_progname}; ac_word=$2
5084f823 10002echo "$as_me:$LINENO: checking for $ac_word" >&5
10003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10004if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10006else
768691b5 10007 if test -n "$NM_FOR_TARGET"; then
10008 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 10009else
b30fcfae 10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10017 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021done
10022done
10023
bb612911 10024fi
10025fi
b30fcfae 10026NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 10027if test -n "$NM_FOR_TARGET"; then
5084f823 10028 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10029echo "${ECHO_T}$NM_FOR_TARGET" >&6
bb612911 10030else
5084f823 10031 echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6
bb612911 10033fi
b30fcfae 10034
c47832b1 10035 fi
10036 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10037 done
10038fi
b30fcfae 10039
768691b5 10040if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10041 set dummy nm
10042 if test $build = $target ; then
10043 NM_FOR_TARGET="$2"
bb612911 10044 else
768691b5 10045 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10046 fi
b7ef8464 10047else
10048 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 10049fi
10050
ab0da556 10051else
10052 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 10053fi
10054
10055
10056
10057
10058if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10059 if test -n "$with_build_time_tools"; then
5084f823 10060 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10061echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10062 if test -x $with_build_time_tools/objdump; then
10063 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10064 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5084f823 10065 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10066echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
ab0da556 10067 else
5084f823 10068 echo "$as_me:$LINENO: result: no" >&5
10069echo "${ECHO_T}no" >&6
ab0da556 10070 fi
c47832b1 10071 elif test $build != $host && test $have_gcc_for_target = yes; then
10072 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 10073 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10074 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 10075 fi
10076fi
38d7211b 10077if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10078 # Extract the first word of "objdump", so it can be a program name with args.
10079set dummy objdump; ac_word=$2
5084f823 10080echo "$as_me:$LINENO: checking for $ac_word" >&5
10081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10082if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10084else
b30fcfae 10085 case $OBJDUMP_FOR_TARGET in
10086 [\\/]* | ?:[\\/]*)
c47832b1 10087 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10088 ;;
c47832b1 10089 *)
b30fcfae 10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $gcc_cv_tool_dirs
10092do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10097 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10100 fi
10101done
10102done
10103
c47832b1 10104 ;;
10105esac
10106fi
b30fcfae 10107OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
5084f823 10108
c47832b1 10109if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10110 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10111echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
c47832b1 10112else
5084f823 10113 echo "$as_me:$LINENO: result: no" >&5
10114echo "${ECHO_T}no" >&6
c47832b1 10115fi
10116
10117fi
10118if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 10119
10120
10121if test -n "$OBJDUMP_FOR_TARGET"; then
10122 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10123elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10124 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10125fi
10126
10127if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10128 for ncn_progname in objdump; do
10129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10130set dummy ${ncn_progname}; ac_word=$2
5084f823 10131echo "$as_me:$LINENO: checking for $ac_word" >&5
10132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10133if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 if test -n "$OBJDUMP_FOR_TARGET"; then
10137 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10138else
10139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10146 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10149 fi
10150done
10151done
10152
10153fi
10154fi
10155OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10156if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10157 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10158echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
95a05732 10159else
5084f823 10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
95a05732 10162fi
10163
10164 done
10165fi
10166
10167if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10168 for ncn_progname in objdump; do
5084f823 10169 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10170echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10171 if test -x $with_build_time_tools/${ncn_progname}; then
10172 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10173 echo "$as_me:$LINENO: result: yes" >&5
10174echo "${ECHO_T}yes" >&6
c47832b1 10175 break
10176 else
5084f823 10177 echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
c47832b1 10179 fi
10180 done
10181fi
10182
10183if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10184 for ncn_progname in objdump; do
10185 if test -n "$ncn_target_tool_prefix"; then
10186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10187set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10188echo "$as_me:$LINENO: checking for $ac_word" >&5
10189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10190if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
ae74ffb7 10192else
10193 if test -n "$OBJDUMP_FOR_TARGET"; then
10194 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10195else
b30fcfae 10196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10203 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207done
10208done
10209
ae74ffb7 10210fi
10211fi
b30fcfae 10212OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 10213if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10214 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10215echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
ae74ffb7 10216else
5084f823 10217 echo "$as_me:$LINENO: result: no" >&5
10218echo "${ECHO_T}no" >&6
ae74ffb7 10219fi
10220
c47832b1 10221 fi
10222 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 10224set dummy ${ncn_progname}; ac_word=$2
5084f823 10225echo "$as_me:$LINENO: checking for $ac_word" >&5
10226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10227if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
ae74ffb7 10229else
10230 if test -n "$OBJDUMP_FOR_TARGET"; then
10231 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10232else
b30fcfae 10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10240 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244done
10245done
10246
ae74ffb7 10247fi
10248fi
b30fcfae 10249OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 10250if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10251 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10252echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
ae74ffb7 10253else
5084f823 10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
ae74ffb7 10256fi
b30fcfae 10257
c47832b1 10258 fi
10259 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10260 done
10261fi
b30fcfae 10262
ae74ffb7 10263if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10264 set dummy objdump
10265 if test $build = $target ; then
10266 OBJDUMP_FOR_TARGET="$2"
10267 else
10268 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10269 fi
b7ef8464 10270else
10271 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 10272fi
10273
ab0da556 10274else
10275 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 10276fi
10277
10278
10279
10280
10281if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10282 if test -n "$with_build_time_tools"; then
5084f823 10283 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10284echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10285 if test -x $with_build_time_tools/ranlib; then
10286 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10287 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5084f823 10288 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10289echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
ab0da556 10290 else
5084f823 10291 echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6
ab0da556 10293 fi
c47832b1 10294 elif test $build != $host && test $have_gcc_for_target = yes; then
10295 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 10296 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10297 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 10298 fi
10299fi
38d7211b 10300if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10301 # Extract the first word of "ranlib", so it can be a program name with args.
10302set dummy ranlib; ac_word=$2
5084f823 10303echo "$as_me:$LINENO: checking for $ac_word" >&5
10304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10305if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10307else
b30fcfae 10308 case $RANLIB_FOR_TARGET in
10309 [\\/]* | ?:[\\/]*)
c47832b1 10310 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10311 ;;
c47832b1 10312 *)
b30fcfae 10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $gcc_cv_tool_dirs
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10320 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10323 fi
10324done
10325done
10326
c47832b1 10327 ;;
10328esac
10329fi
b30fcfae 10330RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
5084f823 10331
c47832b1 10332if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10333 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10334echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
c47832b1 10335else
5084f823 10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
c47832b1 10338fi
10339
10340fi
10341if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 10342
10343
10344if test -n "$RANLIB_FOR_TARGET"; then
10345 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10346elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10347 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10348fi
10349
10350if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10351 for ncn_progname in ranlib; do
10352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10353set dummy ${ncn_progname}; ac_word=$2
5084f823 10354echo "$as_me:$LINENO: checking for $ac_word" >&5
10355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10356if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359 if test -n "$RANLIB_FOR_TARGET"; then
10360 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10361else
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10369 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373done
10374done
10375
10376fi
10377fi
10378RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10379if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10380 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10381echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
95a05732 10382else
5084f823 10383 echo "$as_me:$LINENO: result: no" >&5
10384echo "${ECHO_T}no" >&6
95a05732 10385fi
10386
10387 done
10388fi
10389
10390if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10391 for ncn_progname in ranlib; do
5084f823 10392 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10393echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10394 if test -x $with_build_time_tools/${ncn_progname}; then
10395 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10396 echo "$as_me:$LINENO: result: yes" >&5
10397echo "${ECHO_T}yes" >&6
c47832b1 10398 break
10399 else
5084f823 10400 echo "$as_me:$LINENO: result: no" >&5
10401echo "${ECHO_T}no" >&6
c47832b1 10402 fi
10403 done
10404fi
10405
10406if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10407 for ncn_progname in ranlib; do
10408 if test -n "$ncn_target_tool_prefix"; then
10409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 10410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10411echo "$as_me:$LINENO: checking for $ac_word" >&5
10412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10413if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10415else
ef8184c7 10416 if test -n "$RANLIB_FOR_TARGET"; then
10417 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 10418else
b30fcfae 10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10426 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10429 fi
10430done
10431done
10432
bb612911 10433fi
10434fi
b30fcfae 10435RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 10436if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10437 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10438echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
bb612911 10439else
5084f823 10440 echo "$as_me:$LINENO: result: no" >&5
10441echo "${ECHO_T}no" >&6
bb612911 10442fi
10443
c47832b1 10444 fi
10445 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10447set dummy ${ncn_progname}; ac_word=$2
5084f823 10448echo "$as_me:$LINENO: checking for $ac_word" >&5
10449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10450if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10452else
768691b5 10453 if test -n "$RANLIB_FOR_TARGET"; then
10454 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 10455else
b30fcfae 10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10463 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10466 fi
10467done
10468done
10469
bb612911 10470fi
10471fi
b30fcfae 10472RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 10473if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10474 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10475echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
bb612911 10476else
5084f823 10477 echo "$as_me:$LINENO: result: no" >&5
10478echo "${ECHO_T}no" >&6
bb612911 10479fi
b30fcfae 10480
c47832b1 10481 fi
10482 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10483 done
10484fi
b30fcfae 10485
c47832b1 10486if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10487 set dummy ranlib
10488 if test $build = $target ; then
10489 RANLIB_FOR_TARGET="$2"
10490 else
10491 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10492 fi
b7ef8464 10493else
10494 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 10495fi
768691b5 10496
ab0da556 10497else
10498 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 10499fi
10500
c47832b1 10501
10502
10503
10504if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10505 if test -n "$with_build_time_tools"; then
5084f823 10506 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10507echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10508 if test -x $with_build_time_tools/strip; then
10509 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10510 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5084f823 10511 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10512echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
ab0da556 10513 else
5084f823 10514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
ab0da556 10516 fi
c47832b1 10517 elif test $build != $host && test $have_gcc_for_target = yes; then
10518 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 10519 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10520 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 10521 fi
10522fi
38d7211b 10523if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10524 # Extract the first word of "strip", so it can be a program name with args.
10525set dummy strip; ac_word=$2
5084f823 10526echo "$as_me:$LINENO: checking for $ac_word" >&5
10527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10528if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10530else
b30fcfae 10531 case $STRIP_FOR_TARGET in
10532 [\\/]* | ?:[\\/]*)
c47832b1 10533 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10534 ;;
c47832b1 10535 *)
b30fcfae 10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $gcc_cv_tool_dirs
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10543 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548done
10549
c47832b1 10550 ;;
10551esac
10552fi
b30fcfae 10553STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
5084f823 10554
c47832b1 10555if test -n "$STRIP_FOR_TARGET"; then
5084f823 10556 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10557echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
c47832b1 10558else
5084f823 10559 echo "$as_me:$LINENO: result: no" >&5
10560echo "${ECHO_T}no" >&6
c47832b1 10561fi
10562
10563fi
10564if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 10565
10566
10567if test -n "$STRIP_FOR_TARGET"; then
10568 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10569elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10570 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10571fi
10572
10573if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10574 for ncn_progname in strip; do
10575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10576set dummy ${ncn_progname}; ac_word=$2
5084f823 10577echo "$as_me:$LINENO: checking for $ac_word" >&5
10578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10579if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582 if test -n "$STRIP_FOR_TARGET"; then
10583 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10584else
10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10592 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596done
10597done
10598
10599fi
10600fi
10601STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10602if test -n "$STRIP_FOR_TARGET"; then
5084f823 10603 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10604echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
95a05732 10605else
5084f823 10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
95a05732 10608fi
10609
10610 done
10611fi
10612
10613if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10614 for ncn_progname in strip; do
5084f823 10615 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10616echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10617 if test -x $with_build_time_tools/${ncn_progname}; then
10618 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10619 echo "$as_me:$LINENO: result: yes" >&5
10620echo "${ECHO_T}yes" >&6
c47832b1 10621 break
10622 else
5084f823 10623 echo "$as_me:$LINENO: result: no" >&5
10624echo "${ECHO_T}no" >&6
c47832b1 10625 fi
10626 done
10627fi
10628
10629if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10630 for ncn_progname in strip; do
10631 if test -n "$ncn_target_tool_prefix"; then
10632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 10633set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10634echo "$as_me:$LINENO: checking for $ac_word" >&5
10635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10636if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
ae48753c 10638else
10639 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 10640 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10641else
10642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643for as_dir in $PATH
10644do
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10649 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10652 fi
10653done
10654done
10655
9fec3fa8 10656fi
10657fi
b30fcfae 10658STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 10659if test -n "$STRIP_FOR_TARGET"; then
5084f823 10660 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10661echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9fec3fa8 10662else
5084f823 10663 echo "$as_me:$LINENO: result: no" >&5
10664echo "${ECHO_T}no" >&6
9fec3fa8 10665fi
10666
c47832b1 10667 fi
10668 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 10670set dummy ${ncn_progname}; ac_word=$2
5084f823 10671echo "$as_me:$LINENO: checking for $ac_word" >&5
10672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10673if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 10675else
10676 if test -n "$STRIP_FOR_TARGET"; then
10677 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10678else
b30fcfae 10679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $PATH
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10686 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690done
10691done
10692
9fec3fa8 10693fi
10694fi
b30fcfae 10695STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 10696if test -n "$STRIP_FOR_TARGET"; then
5084f823 10697 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10698echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9fec3fa8 10699else
5084f823 10700 echo "$as_me:$LINENO: result: no" >&5
10701echo "${ECHO_T}no" >&6
9fec3fa8 10702fi
b30fcfae 10703
c47832b1 10704 fi
10705 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10706 done
10707fi
b30fcfae 10708
9fec3fa8 10709if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10710 set dummy strip
10711 if test $build = $target ; then
10712 STRIP_FOR_TARGET="$2"
10713 else
10714 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10715 fi
b7ef8464 10716else
10717 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 10718fi
10719
ab0da556 10720else
10721 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 10722fi
10723
10724
10725
10726
10727if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10728 if test -n "$with_build_time_tools"; then
5084f823 10729 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10730echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10731 if test -x $with_build_time_tools/windres; then
10732 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10733 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5084f823 10734 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10735echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
ab0da556 10736 else
5084f823 10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
ab0da556 10739 fi
c47832b1 10740 elif test $build != $host && test $have_gcc_for_target = yes; then
10741 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 10742 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10743 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 10744 fi
10745fi
38d7211b 10746if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10747 # Extract the first word of "windres", so it can be a program name with args.
10748set dummy windres; ac_word=$2
5084f823 10749echo "$as_me:$LINENO: checking for $ac_word" >&5
10750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10751if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10753else
b30fcfae 10754 case $WINDRES_FOR_TARGET in
10755 [\\/]* | ?:[\\/]*)
c47832b1 10756 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10757 ;;
c47832b1 10758 *)
b30fcfae 10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $gcc_cv_tool_dirs
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10766 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771done
10772
c47832b1 10773 ;;
10774esac
10775fi
b30fcfae 10776WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
5084f823 10777
c47832b1 10778if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10779 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10780echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
c47832b1 10781else
5084f823 10782 echo "$as_me:$LINENO: result: no" >&5
10783echo "${ECHO_T}no" >&6
c47832b1 10784fi
10785
10786fi
10787if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 10788
10789
10790if test -n "$WINDRES_FOR_TARGET"; then
10791 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10792elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10793 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10794fi
10795
10796if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10797 for ncn_progname in windres; do
10798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10799set dummy ${ncn_progname}; ac_word=$2
5084f823 10800echo "$as_me:$LINENO: checking for $ac_word" >&5
10801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10802if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 if test -n "$WINDRES_FOR_TARGET"; then
10806 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10807else
10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10815 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10818 fi
10819done
10820done
10821
10822fi
10823fi
10824WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10825if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10826 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10827echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
95a05732 10828else
5084f823 10829 echo "$as_me:$LINENO: result: no" >&5
10830echo "${ECHO_T}no" >&6
95a05732 10831fi
10832
10833 done
10834fi
10835
10836if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10837 for ncn_progname in windres; do
5084f823 10838 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10839echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10840 if test -x $with_build_time_tools/${ncn_progname}; then
10841 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10842 echo "$as_me:$LINENO: result: yes" >&5
10843echo "${ECHO_T}yes" >&6
c47832b1 10844 break
10845 else
5084f823 10846 echo "$as_me:$LINENO: result: no" >&5
10847echo "${ECHO_T}no" >&6
c47832b1 10848 fi
10849 done
10850fi
10851
10852if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10853 for ncn_progname in windres; do
10854 if test -n "$ncn_target_tool_prefix"; then
10855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10856set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10857echo "$as_me:$LINENO: checking for $ac_word" >&5
10858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10859if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10861else
ef8184c7 10862 if test -n "$WINDRES_FOR_TARGET"; then
10863 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 10864else
b30fcfae 10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10872 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10875 fi
10876done
10877done
10878
bb612911 10879fi
10880fi
b30fcfae 10881WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 10882if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10883 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10884echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
bb612911 10885else
5084f823 10886 echo "$as_me:$LINENO: result: no" >&5
10887echo "${ECHO_T}no" >&6
bb612911 10888fi
10889
c47832b1 10890 fi
10891 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10893set dummy ${ncn_progname}; ac_word=$2
5084f823 10894echo "$as_me:$LINENO: checking for $ac_word" >&5
10895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10896if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10898else
768691b5 10899 if test -n "$WINDRES_FOR_TARGET"; then
10900 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 10901else
b30fcfae 10902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903for as_dir in $PATH
10904do
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10909 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913done
10914done
10915
bb612911 10916fi
10917fi
b30fcfae 10918WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 10919if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10920 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10921echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
bb612911 10922else
5084f823 10923 echo "$as_me:$LINENO: result: no" >&5
10924echo "${ECHO_T}no" >&6
bb612911 10925fi
b30fcfae 10926
c47832b1 10927 fi
10928 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10929 done
10930fi
b30fcfae 10931
768691b5 10932if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10933 set dummy windres
10934 if test $build = $target ; then
10935 WINDRES_FOR_TARGET="$2"
bb612911 10936 else
768691b5 10937 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10938 fi
b7ef8464 10939else
10940 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 10941fi
10942
ab0da556 10943else
10944 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 10945fi
10946
805e22b2 10947
75d6a0a9 10948
10949
10950if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10951 if test -n "$with_build_time_tools"; then
10952 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10953echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10954 if test -x $with_build_time_tools/windmc; then
10955 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10956 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10957 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10958echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10959 else
10960 echo "$as_me:$LINENO: result: no" >&5
10961echo "${ECHO_T}no" >&6
10962 fi
10963 elif test $build != $host && test $have_gcc_for_target = yes; then
10964 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 10965 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10966 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 10967 fi
10968fi
10969if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10970 # Extract the first word of "windmc", so it can be a program name with args.
10971set dummy windmc; ac_word=$2
10972echo "$as_me:$LINENO: checking for $ac_word" >&5
10973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10974if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 case $WINDMC_FOR_TARGET in
10978 [\\/]* | ?:[\\/]*)
10979 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10980 ;;
10981 *)
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $gcc_cv_tool_dirs
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10992 fi
10993done
10994done
10995
10996 ;;
10997esac
10998fi
10999WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11000
11001if test -n "$WINDMC_FOR_TARGET"; then
11002 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11003echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11004else
11005 echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6
11007fi
11008
11009fi
11010if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11011
11012
11013if test -n "$WINDMC_FOR_TARGET"; then
11014 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11015elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11016 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11017fi
11018
11019if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11020 for ncn_progname in windmc; do
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022set dummy ${ncn_progname}; ac_word=$2
11023echo "$as_me:$LINENO: checking for $ac_word" >&5
11024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11025if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028 if test -n "$WINDMC_FOR_TARGET"; then
11029 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11030else
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043done
11044
11045fi
11046fi
11047WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11048if test -n "$WINDMC_FOR_TARGET"; then
11049 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11050echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11051else
11052 echo "$as_me:$LINENO: result: no" >&5
11053echo "${ECHO_T}no" >&6
11054fi
11055
11056 done
11057fi
11058
11059if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11060 for ncn_progname in windmc; do
11061 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11062echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11063 if test -x $with_build_time_tools/${ncn_progname}; then
11064 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11065 echo "$as_me:$LINENO: result: yes" >&5
11066echo "${ECHO_T}yes" >&6
11067 break
11068 else
11069 echo "$as_me:$LINENO: result: no" >&5
11070echo "${ECHO_T}no" >&6
11071 fi
11072 done
11073fi
11074
11075if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11076 for ncn_progname in windmc; do
11077 if test -n "$ncn_target_tool_prefix"; then
11078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11079set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11080echo "$as_me:$LINENO: checking for $ac_word" >&5
11081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11082if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084else
11085 if test -n "$WINDMC_FOR_TARGET"; then
11086 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11098 fi
11099done
11100done
11101
11102fi
11103fi
11104WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11105if test -n "$WINDMC_FOR_TARGET"; then
11106 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11107echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11108else
11109 echo "$as_me:$LINENO: result: no" >&5
11110echo "${ECHO_T}no" >&6
11111fi
11112
11113 fi
11114 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11116set dummy ${ncn_progname}; ac_word=$2
11117echo "$as_me:$LINENO: checking for $ac_word" >&5
11118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11119if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122 if test -n "$WINDMC_FOR_TARGET"; then
11123 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136done
11137done
11138
11139fi
11140fi
11141WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11142if test -n "$WINDMC_FOR_TARGET"; then
11143 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11144echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11145else
11146 echo "$as_me:$LINENO: result: no" >&5
11147echo "${ECHO_T}no" >&6
11148fi
11149
11150 fi
11151 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11152 done
11153fi
11154
11155if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11156 set dummy windmc
11157 if test $build = $target ; then
11158 WINDMC_FOR_TARGET="$2"
11159 else
11160 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11161 fi
b7ef8464 11162else
11163 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 11164fi
11165
11166else
11167 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11168fi
11169
11170
f5aebe3e 11171RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11172
5084f823 11173echo "$as_me:$LINENO: checking where to find the target ar" >&5
11174echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
f5aebe3e 11175if test "x${build}" != "x${host}" ; then
c47832b1 11176 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11177 # We already found the complete path
a6c599b5 11178 ac_dir=`dirname $AR_FOR_TARGET`
5084f823 11179 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11180echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11181 else
11182 # Canadian cross, just use what we found
5084f823 11183 echo "$as_me:$LINENO: result: pre-installed" >&5
11184echo "${ECHO_T}pre-installed" >&6
c47832b1 11185 fi
f5aebe3e 11186else
11187 ok=yes
11188 case " ${configdirs} " in
11189 *" binutils "*) ;;
11190 *) ok=no ;;
11191 esac
b30fcfae 11192
f5aebe3e 11193 if test $ok = yes; then
11194 # An in-tree tool is available and we can use it
11195 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5084f823 11196 echo "$as_me:$LINENO: result: just compiled" >&5
11197echo "${ECHO_T}just compiled" >&6
c47832b1 11198 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11199 # We already found the complete path
a6c599b5 11200 ac_dir=`dirname $AR_FOR_TARGET`
5084f823 11201 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11202echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11203 elif test "x$target" = "x$host"; then
11204 # We can use an host tool
11205 AR_FOR_TARGET='$(AR)'
5084f823 11206 echo "$as_me:$LINENO: result: host tool" >&5
11207echo "${ECHO_T}host tool" >&6
f5aebe3e 11208 else
11209 # We need a cross tool
5084f823 11210 echo "$as_me:$LINENO: result: pre-installed" >&5
11211echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11212 fi
11213fi
a83ffacf 11214
5084f823 11215echo "$as_me:$LINENO: checking where to find the target as" >&5
11216echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
f5aebe3e 11217if test "x${build}" != "x${host}" ; then
c47832b1 11218 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11219 # We already found the complete path
a6c599b5 11220 ac_dir=`dirname $AS_FOR_TARGET`
5084f823 11221 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11222echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11223 else
11224 # Canadian cross, just use what we found
5084f823 11225 echo "$as_me:$LINENO: result: pre-installed" >&5
11226echo "${ECHO_T}pre-installed" >&6
c47832b1 11227 fi
f5aebe3e 11228else
11229 ok=yes
11230 case " ${configdirs} " in
11231 *" gas "*) ;;
11232 *) ok=no ;;
11233 esac
b30fcfae 11234
f5aebe3e 11235 if test $ok = yes; then
11236 # An in-tree tool is available and we can use it
11237 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5084f823 11238 echo "$as_me:$LINENO: result: just compiled" >&5
11239echo "${ECHO_T}just compiled" >&6
c47832b1 11240 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11241 # We already found the complete path
a6c599b5 11242 ac_dir=`dirname $AS_FOR_TARGET`
5084f823 11243 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11244echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11245 elif test "x$target" = "x$host"; then
11246 # We can use an host tool
11247 AS_FOR_TARGET='$(AS)'
5084f823 11248 echo "$as_me:$LINENO: result: host tool" >&5
11249echo "${ECHO_T}host tool" >&6
f5aebe3e 11250 else
11251 # We need a cross tool
5084f823 11252 echo "$as_me:$LINENO: result: pre-installed" >&5
11253echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11254 fi
11255fi
a83ffacf 11256
5084f823 11257echo "$as_me:$LINENO: checking where to find the target cc" >&5
11258echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
f5aebe3e 11259if test "x${build}" != "x${host}" ; then
c47832b1 11260 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11261 # We already found the complete path
a6c599b5 11262 ac_dir=`dirname $CC_FOR_TARGET`
5084f823 11263 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11264echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11265 else
11266 # Canadian cross, just use what we found
5084f823 11267 echo "$as_me:$LINENO: result: pre-installed" >&5
11268echo "${ECHO_T}pre-installed" >&6
c47832b1 11269 fi
f5aebe3e 11270else
11271 ok=yes
11272 case " ${configdirs} " in
11273 *" gcc "*) ;;
11274 *) ok=no ;;
11275 esac
b30fcfae 11276
f5aebe3e 11277 if test $ok = yes; then
11278 # An in-tree tool is available and we can use it
11279 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11280 echo "$as_me:$LINENO: result: just compiled" >&5
11281echo "${ECHO_T}just compiled" >&6
c47832b1 11282 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11283 # We already found the complete path
a6c599b5 11284 ac_dir=`dirname $CC_FOR_TARGET`
5084f823 11285 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11286echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11287 elif test "x$target" = "x$host"; then
11288 # We can use an host tool
11289 CC_FOR_TARGET='$(CC)'
5084f823 11290 echo "$as_me:$LINENO: result: host tool" >&5
11291echo "${ECHO_T}host tool" >&6
f5aebe3e 11292 else
11293 # We need a cross tool
5084f823 11294 echo "$as_me:$LINENO: result: pre-installed" >&5
11295echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11296 fi
11297fi
a83ffacf 11298
5084f823 11299echo "$as_me:$LINENO: checking where to find the target c++" >&5
11300echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
f5aebe3e 11301if test "x${build}" != "x${host}" ; then
c47832b1 11302 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11303 # We already found the complete path
a6c599b5 11304 ac_dir=`dirname $CXX_FOR_TARGET`
5084f823 11305 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11306echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11307 else
11308 # Canadian cross, just use what we found
5084f823 11309 echo "$as_me:$LINENO: result: pre-installed" >&5
11310echo "${ECHO_T}pre-installed" >&6
c47832b1 11311 fi
f5aebe3e 11312else
11313 ok=yes
11314 case " ${configdirs} " in
11315 *" gcc "*) ;;
11316 *) ok=no ;;
11317 esac
11318 case ,${enable_languages}, in
11319 *,c++,*) ;;
11320 *) ok=no ;;
11321 esac
11322 if test $ok = yes; then
11323 # An in-tree tool is available and we can use it
11324 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 11325 echo "$as_me:$LINENO: result: just compiled" >&5
11326echo "${ECHO_T}just compiled" >&6
c47832b1 11327 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11328 # We already found the complete path
a6c599b5 11329 ac_dir=`dirname $CXX_FOR_TARGET`
5084f823 11330 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11331echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11332 elif test "x$target" = "x$host"; then
11333 # We can use an host tool
11334 CXX_FOR_TARGET='$(CXX)'
5084f823 11335 echo "$as_me:$LINENO: result: host tool" >&5
11336echo "${ECHO_T}host tool" >&6
f5aebe3e 11337 else
11338 # We need a cross tool
5084f823 11339 echo "$as_me:$LINENO: result: pre-installed" >&5
11340echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11341 fi
11342fi
a83ffacf 11343
5084f823 11344echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11345echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
f5aebe3e 11346if test "x${build}" != "x${host}" ; then
c47832b1 11347 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11348 # We already found the complete path
a6c599b5 11349 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5084f823 11350 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11351echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11352 else
11353 # Canadian cross, just use what we found
5084f823 11354 echo "$as_me:$LINENO: result: pre-installed" >&5
11355echo "${ECHO_T}pre-installed" >&6
c47832b1 11356 fi
f5aebe3e 11357else
11358 ok=yes
11359 case " ${configdirs} " in
11360 *" gcc "*) ;;
11361 *) ok=no ;;
11362 esac
11363 case ,${enable_languages}, in
11364 *,c++,*) ;;
11365 *) ok=no ;;
11366 esac
11367 if test $ok = yes; then
11368 # An in-tree tool is available and we can use it
11369 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 11370 echo "$as_me:$LINENO: result: just compiled" >&5
11371echo "${ECHO_T}just compiled" >&6
c47832b1 11372 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11373 # We already found the complete path
a6c599b5 11374 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5084f823 11375 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11376echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11377 elif test "x$target" = "x$host"; then
11378 # We can use an host tool
11379 RAW_CXX_FOR_TARGET='$(CXX)'
5084f823 11380 echo "$as_me:$LINENO: result: host tool" >&5
11381echo "${ECHO_T}host tool" >&6
f5aebe3e 11382 else
11383 # We need a cross tool
5084f823 11384 echo "$as_me:$LINENO: result: pre-installed" >&5
11385echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11386 fi
11387fi
a83ffacf 11388
5084f823 11389echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11390echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
f5aebe3e 11391if test "x${build}" != "x${host}" ; then
c47832b1 11392 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11393 # We already found the complete path
a6c599b5 11394 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5084f823 11395 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11396echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11397 else
11398 # Canadian cross, just use what we found
5084f823 11399 echo "$as_me:$LINENO: result: pre-installed" >&5
11400echo "${ECHO_T}pre-installed" >&6
c47832b1 11401 fi
f5aebe3e 11402else
11403 ok=yes
11404 case " ${configdirs} " in
11405 *" binutils "*) ;;
11406 *) ok=no ;;
11407 esac
b30fcfae 11408
f5aebe3e 11409 if test $ok = yes; then
11410 # An in-tree tool is available and we can use it
11411 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5084f823 11412 echo "$as_me:$LINENO: result: just compiled" >&5
11413echo "${ECHO_T}just compiled" >&6
c47832b1 11414 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11415 # We already found the complete path
a6c599b5 11416 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5084f823 11417 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11418echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11419 elif test "x$target" = "x$host"; then
11420 # We can use an host tool
11421 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5084f823 11422 echo "$as_me:$LINENO: result: host tool" >&5
11423echo "${ECHO_T}host tool" >&6
f5aebe3e 11424 else
11425 # We need a cross tool
5084f823 11426 echo "$as_me:$LINENO: result: pre-installed" >&5
11427echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11428 fi
11429fi
a83ffacf 11430
5084f823 11431echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11432echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
f5aebe3e 11433if test "x${build}" != "x${host}" ; then
c47832b1 11434 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11435 # We already found the complete path
a6c599b5 11436 ac_dir=`dirname $GCC_FOR_TARGET`
5084f823 11437 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11438echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11439 else
11440 # Canadian cross, just use what we found
5084f823 11441 echo "$as_me:$LINENO: result: pre-installed" >&5
11442echo "${ECHO_T}pre-installed" >&6
c47832b1 11443 fi
f5aebe3e 11444else
11445 ok=yes
11446 case " ${configdirs} " in
11447 *" gcc "*) ;;
11448 *) ok=no ;;
11449 esac
b30fcfae 11450
f5aebe3e 11451 if test $ok = yes; then
11452 # An in-tree tool is available and we can use it
11453 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11454 echo "$as_me:$LINENO: result: just compiled" >&5
11455echo "${ECHO_T}just compiled" >&6
c47832b1 11456 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11457 # We already found the complete path
a6c599b5 11458 ac_dir=`dirname $GCC_FOR_TARGET`
5084f823 11459 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11460echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11461 elif test "x$target" = "x$host"; then
11462 # We can use an host tool
11463 GCC_FOR_TARGET='$()'
5084f823 11464 echo "$as_me:$LINENO: result: host tool" >&5
11465echo "${ECHO_T}host tool" >&6
f5aebe3e 11466 else
11467 # We need a cross tool
5084f823 11468 echo "$as_me:$LINENO: result: pre-installed" >&5
11469echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11470 fi
11471fi
a83ffacf 11472
5084f823 11473echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11474echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
f5aebe3e 11475if test "x${build}" != "x${host}" ; then
c47832b1 11476 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11477 # We already found the complete path
a6c599b5 11478 ac_dir=`dirname $GCJ_FOR_TARGET`
5084f823 11479 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11480echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11481 else
11482 # Canadian cross, just use what we found
5084f823 11483 echo "$as_me:$LINENO: result: pre-installed" >&5
11484echo "${ECHO_T}pre-installed" >&6
c47832b1 11485 fi
f5aebe3e 11486else
11487 ok=yes
11488 case " ${configdirs} " in
11489 *" gcc "*) ;;
11490 *) ok=no ;;
11491 esac
11492 case ,${enable_languages}, in
11493 *,java,*) ;;
11494 *) ok=no ;;
11495 esac
11496 if test $ok = yes; then
11497 # An in-tree tool is available and we can use it
11498 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11499 echo "$as_me:$LINENO: result: just compiled" >&5
11500echo "${ECHO_T}just compiled" >&6
c47832b1 11501 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11502 # We already found the complete path
a6c599b5 11503 ac_dir=`dirname $GCJ_FOR_TARGET`
5084f823 11504 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11505echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11506 elif test "x$target" = "x$host"; then
11507 # We can use an host tool
11508 GCJ_FOR_TARGET='$(GCJ)'
5084f823 11509 echo "$as_me:$LINENO: result: host tool" >&5
11510echo "${ECHO_T}host tool" >&6
f5aebe3e 11511 else
11512 # We need a cross tool
5084f823 11513 echo "$as_me:$LINENO: result: pre-installed" >&5
11514echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11515 fi
11516fi
a83ffacf 11517
5084f823 11518echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11519echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
f5aebe3e 11520if test "x${build}" != "x${host}" ; then
c47832b1 11521 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11522 # We already found the complete path
a6c599b5 11523 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5084f823 11524 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11525echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11526 else
11527 # Canadian cross, just use what we found
5084f823 11528 echo "$as_me:$LINENO: result: pre-installed" >&5
11529echo "${ECHO_T}pre-installed" >&6
c47832b1 11530 fi
f5aebe3e 11531else
11532 ok=yes
11533 case " ${configdirs} " in
11534 *" gcc "*) ;;
11535 *) ok=no ;;
11536 esac
11537 case ,${enable_languages}, in
11538 *,fortran,*) ;;
11539 *) ok=no ;;
11540 esac
11541 if test $ok = yes; then
11542 # An in-tree tool is available and we can use it
11543 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11544 echo "$as_me:$LINENO: result: just compiled" >&5
11545echo "${ECHO_T}just compiled" >&6
c47832b1 11546 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11547 # We already found the complete path
a6c599b5 11548 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5084f823 11549 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11550echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11551 elif test "x$target" = "x$host"; then
11552 # We can use an host tool
11553 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5084f823 11554 echo "$as_me:$LINENO: result: host tool" >&5
11555echo "${ECHO_T}host tool" >&6
f5aebe3e 11556 else
11557 # We need a cross tool
5084f823 11558 echo "$as_me:$LINENO: result: pre-installed" >&5
11559echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11560 fi
11561fi
a83ffacf 11562
5084f823 11563echo "$as_me:$LINENO: checking where to find the target ld" >&5
11564echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
f5aebe3e 11565if test "x${build}" != "x${host}" ; then
c47832b1 11566 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11567 # We already found the complete path
a6c599b5 11568 ac_dir=`dirname $LD_FOR_TARGET`
5084f823 11569 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11570echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11571 else
11572 # Canadian cross, just use what we found
5084f823 11573 echo "$as_me:$LINENO: result: pre-installed" >&5
11574echo "${ECHO_T}pre-installed" >&6
c47832b1 11575 fi
f5aebe3e 11576else
11577 ok=yes
11578 case " ${configdirs} " in
11579 *" ld "*) ;;
11580 *) ok=no ;;
11581 esac
b30fcfae 11582
f5aebe3e 11583 if test $ok = yes; then
11584 # An in-tree tool is available and we can use it
11585 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5084f823 11586 echo "$as_me:$LINENO: result: just compiled" >&5
11587echo "${ECHO_T}just compiled" >&6
c47832b1 11588 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11589 # We already found the complete path
a6c599b5 11590 ac_dir=`dirname $LD_FOR_TARGET`
5084f823 11591 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11592echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11593 elif test "x$target" = "x$host"; then
11594 # We can use an host tool
11595 LD_FOR_TARGET='$(LD)'
5084f823 11596 echo "$as_me:$LINENO: result: host tool" >&5
11597echo "${ECHO_T}host tool" >&6
f5aebe3e 11598 else
11599 # We need a cross tool
5084f823 11600 echo "$as_me:$LINENO: result: pre-installed" >&5
11601echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11602 fi
11603fi
a83ffacf 11604
5084f823 11605echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11606echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
f5aebe3e 11607if test "x${build}" != "x${host}" ; then
c47832b1 11608 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11609 # We already found the complete path
a6c599b5 11610 ac_dir=`dirname $LIPO_FOR_TARGET`
5084f823 11611 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11612echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11613 else
11614 # Canadian cross, just use what we found
5084f823 11615 echo "$as_me:$LINENO: result: pre-installed" >&5
11616echo "${ECHO_T}pre-installed" >&6
c47832b1 11617 fi
f5aebe3e 11618else
c47832b1 11619 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11620 # We already found the complete path
a6c599b5 11621 ac_dir=`dirname $LIPO_FOR_TARGET`
5084f823 11622 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11623echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11624 elif test "x$target" = "x$host"; then
f5aebe3e 11625 # We can use an host tool
11626 LIPO_FOR_TARGET='$(LIPO)'
5084f823 11627 echo "$as_me:$LINENO: result: host tool" >&5
11628echo "${ECHO_T}host tool" >&6
f5aebe3e 11629 else
11630 # We need a cross tool
5084f823 11631 echo "$as_me:$LINENO: result: pre-installed" >&5
11632echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11633 fi
11634fi
a83ffacf 11635
5084f823 11636echo "$as_me:$LINENO: checking where to find the target nm" >&5
11637echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
f5aebe3e 11638if test "x${build}" != "x${host}" ; then
c47832b1 11639 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11640 # We already found the complete path
a6c599b5 11641 ac_dir=`dirname $NM_FOR_TARGET`
5084f823 11642 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11643echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11644 else
11645 # Canadian cross, just use what we found
5084f823 11646 echo "$as_me:$LINENO: result: pre-installed" >&5
11647echo "${ECHO_T}pre-installed" >&6
c47832b1 11648 fi
f5aebe3e 11649else
11650 ok=yes
11651 case " ${configdirs} " in
11652 *" binutils "*) ;;
11653 *) ok=no ;;
11654 esac
b30fcfae 11655
f5aebe3e 11656 if test $ok = yes; then
11657 # An in-tree tool is available and we can use it
11658 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5084f823 11659 echo "$as_me:$LINENO: result: just compiled" >&5
11660echo "${ECHO_T}just compiled" >&6
c47832b1 11661 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11662 # We already found the complete path
a6c599b5 11663 ac_dir=`dirname $NM_FOR_TARGET`
5084f823 11664 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11665echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11666 elif test "x$target" = "x$host"; then
11667 # We can use an host tool
11668 NM_FOR_TARGET='$(NM)'
5084f823 11669 echo "$as_me:$LINENO: result: host tool" >&5
11670echo "${ECHO_T}host tool" >&6
f5aebe3e 11671 else
11672 # We need a cross tool
5084f823 11673 echo "$as_me:$LINENO: result: pre-installed" >&5
11674echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11675 fi
11676fi
a83ffacf 11677
5084f823 11678echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11679echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
f5aebe3e 11680if test "x${build}" != "x${host}" ; then
c47832b1 11681 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11682 # We already found the complete path
a6c599b5 11683 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5084f823 11684 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11685echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11686 else
11687 # Canadian cross, just use what we found
5084f823 11688 echo "$as_me:$LINENO: result: pre-installed" >&5
11689echo "${ECHO_T}pre-installed" >&6
c47832b1 11690 fi
f5aebe3e 11691else
11692 ok=yes
11693 case " ${configdirs} " in
11694 *" binutils "*) ;;
11695 *) ok=no ;;
11696 esac
b30fcfae 11697
f5aebe3e 11698 if test $ok = yes; then
11699 # An in-tree tool is available and we can use it
11700 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5084f823 11701 echo "$as_me:$LINENO: result: just compiled" >&5
11702echo "${ECHO_T}just compiled" >&6
c47832b1 11703 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11704 # We already found the complete path
a6c599b5 11705 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5084f823 11706 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11707echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11708 elif test "x$target" = "x$host"; then
11709 # We can use an host tool
11710 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5084f823 11711 echo "$as_me:$LINENO: result: host tool" >&5
11712echo "${ECHO_T}host tool" >&6
f5aebe3e 11713 else
11714 # We need a cross tool
5084f823 11715 echo "$as_me:$LINENO: result: pre-installed" >&5
11716echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11717 fi
11718fi
a83ffacf 11719
5084f823 11720echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11721echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
f5aebe3e 11722if test "x${build}" != "x${host}" ; then
c47832b1 11723 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11724 # We already found the complete path
a6c599b5 11725 ac_dir=`dirname $RANLIB_FOR_TARGET`
5084f823 11726 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11727echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11728 else
11729 # Canadian cross, just use what we found
5084f823 11730 echo "$as_me:$LINENO: result: pre-installed" >&5
11731echo "${ECHO_T}pre-installed" >&6
c47832b1 11732 fi
f5aebe3e 11733else
11734 ok=yes
11735 case " ${configdirs} " in
11736 *" binutils "*) ;;
11737 *) ok=no ;;
11738 esac
b30fcfae 11739
f5aebe3e 11740 if test $ok = yes; then
11741 # An in-tree tool is available and we can use it
11742 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5084f823 11743 echo "$as_me:$LINENO: result: just compiled" >&5
11744echo "${ECHO_T}just compiled" >&6
c47832b1 11745 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11746 # We already found the complete path
a6c599b5 11747 ac_dir=`dirname $RANLIB_FOR_TARGET`
5084f823 11748 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11749echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11750 elif test "x$target" = "x$host"; then
11751 # We can use an host tool
11752 RANLIB_FOR_TARGET='$(RANLIB)'
5084f823 11753 echo "$as_me:$LINENO: result: host tool" >&5
11754echo "${ECHO_T}host tool" >&6
f5aebe3e 11755 else
11756 # We need a cross tool
5084f823 11757 echo "$as_me:$LINENO: result: pre-installed" >&5
11758echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11759 fi
11760fi
a83ffacf 11761
5084f823 11762echo "$as_me:$LINENO: checking where to find the target strip" >&5
11763echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
f5aebe3e 11764if test "x${build}" != "x${host}" ; then
c47832b1 11765 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11766 # We already found the complete path
a6c599b5 11767 ac_dir=`dirname $STRIP_FOR_TARGET`
5084f823 11768 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11769echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11770 else
11771 # Canadian cross, just use what we found
5084f823 11772 echo "$as_me:$LINENO: result: pre-installed" >&5
11773echo "${ECHO_T}pre-installed" >&6
c47832b1 11774 fi
f5aebe3e 11775else
11776 ok=yes
11777 case " ${configdirs} " in
11778 *" binutils "*) ;;
11779 *) ok=no ;;
11780 esac
b30fcfae 11781
f5aebe3e 11782 if test $ok = yes; then
11783 # An in-tree tool is available and we can use it
11784 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5084f823 11785 echo "$as_me:$LINENO: result: just compiled" >&5
11786echo "${ECHO_T}just compiled" >&6
c47832b1 11787 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11788 # We already found the complete path
a6c599b5 11789 ac_dir=`dirname $STRIP_FOR_TARGET`
5084f823 11790 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11791echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11792 elif test "x$target" = "x$host"; then
11793 # We can use an host tool
11794 STRIP_FOR_TARGET='$(STRIP)'
5084f823 11795 echo "$as_me:$LINENO: result: host tool" >&5
11796echo "${ECHO_T}host tool" >&6
f5aebe3e 11797 else
11798 # We need a cross tool
5084f823 11799 echo "$as_me:$LINENO: result: pre-installed" >&5
11800echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11801 fi
11802fi
a83ffacf 11803
5084f823 11804echo "$as_me:$LINENO: checking where to find the target windres" >&5
11805echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
f5aebe3e 11806if test "x${build}" != "x${host}" ; then
c47832b1 11807 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11808 # We already found the complete path
a6c599b5 11809 ac_dir=`dirname $WINDRES_FOR_TARGET`
5084f823 11810 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11811echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11812 else
11813 # Canadian cross, just use what we found
5084f823 11814 echo "$as_me:$LINENO: result: pre-installed" >&5
11815echo "${ECHO_T}pre-installed" >&6
c47832b1 11816 fi
f5aebe3e 11817else
11818 ok=yes
11819 case " ${configdirs} " in
11820 *" binutils "*) ;;
11821 *) ok=no ;;
11822 esac
b30fcfae 11823
f5aebe3e 11824 if test $ok = yes; then
11825 # An in-tree tool is available and we can use it
11826 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5084f823 11827 echo "$as_me:$LINENO: result: just compiled" >&5
11828echo "${ECHO_T}just compiled" >&6
c47832b1 11829 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11830 # We already found the complete path
a6c599b5 11831 ac_dir=`dirname $WINDRES_FOR_TARGET`
5084f823 11832 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11833echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11834 elif test "x$target" = "x$host"; then
11835 # We can use an host tool
11836 WINDRES_FOR_TARGET='$(WINDRES)'
5084f823 11837 echo "$as_me:$LINENO: result: host tool" >&5
11838echo "${ECHO_T}host tool" >&6
f5aebe3e 11839 else
11840 # We need a cross tool
5084f823 11841 echo "$as_me:$LINENO: result: pre-installed" >&5
11842echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11843 fi
71ab34df 11844fi
49aae208 11845
75d6a0a9 11846echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11847echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11848if test "x${build}" != "x${host}" ; then
11849 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11850 # We already found the complete path
11851 ac_dir=`dirname $WINDMC_FOR_TARGET`
11852 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11853echo "${ECHO_T}pre-installed in $ac_dir" >&6
11854 else
11855 # Canadian cross, just use what we found
11856 echo "$as_me:$LINENO: result: pre-installed" >&5
11857echo "${ECHO_T}pre-installed" >&6
11858 fi
11859else
11860 ok=yes
11861 case " ${configdirs} " in
11862 *" binutils "*) ;;
11863 *) ok=no ;;
11864 esac
11865
11866 if test $ok = yes; then
11867 # An in-tree tool is available and we can use it
11868 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11869 echo "$as_me:$LINENO: result: just compiled" >&5
11870echo "${ECHO_T}just compiled" >&6
11871 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11872 # We already found the complete path
11873 ac_dir=`dirname $WINDMC_FOR_TARGET`
11874 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11875echo "${ECHO_T}pre-installed in $ac_dir" >&6
11876 elif test "x$target" = "x$host"; then
11877 # We can use an host tool
11878 WINDMC_FOR_TARGET='$(WINDMC)'
11879 echo "$as_me:$LINENO: result: host tool" >&5
11880echo "${ECHO_T}host tool" >&6
11881 else
11882 # We need a cross tool
11883 echo "$as_me:$LINENO: result: pre-installed" >&5
11884echo "${ECHO_T}pre-installed" >&6
11885 fi
11886fi
11887
49aae208 11888
11889
f5aebe3e 11890
a83ffacf 11891
71ab34df 11892# Certain tools may need extra flags.
11893AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11894RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11895NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11896
f5aebe3e 11897# When building target libraries, except in a Canadian cross, we use
11898# the same toolchain as the compiler we just built.
11899COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11900COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11901COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11902if test $host = $build; then
11903 case " $configdirs " in
11904 *" gcc "*)
11905 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11906 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11907 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11908 ;;
11909 esac
11910fi
11911
11912
11913
11914
11915
5084f823 11916echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11917echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11918# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3290c0cf 11919if test "${enable_maintainer_mode+set}" = set; then
5084f823 11920 enableval="$enable_maintainer_mode"
11921 USE_MAINTAINER_MODE=$enableval
3290c0cf 11922else
11923 USE_MAINTAINER_MODE=no
5084f823 11924fi;
11925echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11926echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3290c0cf 11927
11928
11929if test "$USE_MAINTAINER_MODE" = yes; then
11930 MAINTAINER_MODE_TRUE=
11931 MAINTAINER_MODE_FALSE='#'
11932else
11933 MAINTAINER_MODE_TRUE='#'
11934 MAINTAINER_MODE_FALSE=
b30fcfae 11935fi
3290c0cf 11936MAINT=$MAINTAINER_MODE_TRUE
11937
2d64c2fd 11938# ---------------------
11939# GCC bootstrap support
11940# ---------------------
11941
11942# Stage specific cflags for build.
11943stage1_cflags="-g"
11944case $build in
11945 vax-*-*)
11946 case ${GCC} in
11947 yes) stage1_cflags="-g -Wa,-J" ;;
11948 *) stage1_cflags="-g -J" ;;
11949 esac ;;
2d64c2fd 11950esac
11951
f508ba97 11952# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11953if test "$GCC" = yes; then
11954 saved_CFLAGS="$CFLAGS"
11955
11956 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11957 CFLAGS="$CFLAGS -fkeep-inline-functions"
5084f823 11958 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11959echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
b30fcfae 11960 cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
11966
505abe0c 11967#if (__GNUC__ < 3) \
11968 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11969 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11970#error http://gcc.gnu.org/PR29382
11971#endif
11972
b30fcfae 11973int
11974main ()
11975{
11976
11977 ;
11978 return 0;
11979}
11980_ACEOF
11981rm -f conftest.$ac_objext
5084f823 11982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11983 (eval $ac_compile) 2>conftest.er1
b30fcfae 11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag"
11991 || test ! -s conftest.err'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; } &&
11997 { ac_try='test -s conftest.$ac_objext'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 echo "$as_me:$LINENO: result: yes" >&5
12004echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
b30fcfae 12005else
12006 echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
5084f823 12009echo "$as_me:$LINENO: result: no" >&5
12010echo "${ECHO_T}no" >&6
b30fcfae 12011fi
5084f823 12012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f508ba97 12013
12014 CFLAGS="$saved_CFLAGS"
12015fi
12016
12017
2d64c2fd 12018
39f34cfc 12019# Enable --enable-checking in stage1 of the compiler.
5084f823 12020# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
39f34cfc 12021if test "${enable_stage1_checking+set}" = set; then
5084f823 12022 enableval="$enable_stage1_checking"
12023 stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 12024else
f6be6a96 12025 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
f03e0ae4 12026 stage1_checking=--enable-checking=yes,types
39f34cfc 12027else
f6be6a96 12028 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 12029fi
5084f823 12030fi;
39f34cfc 12031
12032
2d64c2fd 12033# Enable -Werror in bootstrap stage2 and later.
5084f823 12034# Check whether --enable-werror or --disable-werror was given.
2d64c2fd 12035if test "${enable_werror+set}" = set; then
5084f823 12036 enableval="$enable_werror"
12037
2d64c2fd 12038else
dd979235 12039 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2d64c2fd 12040 enable_werror=yes
dc914c6d 12041else
12042 enable_werror=no
12043fi
5084f823 12044fi;
c0c5068d 12045case ${enable_werror} in
12046 yes) stage2_werror_flag="--enable-werror-always" ;;
12047 *) stage2_werror_flag="" ;;
2d64c2fd 12048esac
12049
12050
d06227a7 12051# Flags needed to enable html installing and building
b30fcfae 12052
5084f823 12053# Check whether --with-datarootdir or --without-datarootdir was given.
d06227a7 12054if test "${with_datarootdir+set}" = set; then
5084f823 12055 withval="$with_datarootdir"
12056 datarootdir="\${prefix}/${withval}"
d06227a7 12057else
12058 datarootdir="\${prefix}/share"
5084f823 12059fi;
d06227a7 12060
12061
5084f823 12062# Check whether --with-docdir or --without-docdir was given.
d06227a7 12063if test "${with_docdir+set}" = set; then
5084f823 12064 withval="$with_docdir"
12065 docdir="\${prefix}/${withval}"
d06227a7 12066else
12067 docdir="\${datarootdir}/doc"
5084f823 12068fi;
d06227a7 12069
12070
5084f823 12071# Check whether --with-pdfdir or --without-pdfdir was given.
130effca 12072if test "${with_pdfdir+set}" = set; then
5084f823 12073 withval="$with_pdfdir"
12074 pdfdir="\${prefix}/${withval}"
130effca 12075else
12076 pdfdir="\${docdir}"
5084f823 12077fi;
130effca 12078
12079
5084f823 12080# Check whether --with-htmldir or --without-htmldir was given.
d06227a7 12081if test "${with_htmldir+set}" = set; then
5084f823 12082 withval="$with_htmldir"
12083 htmldir="\${prefix}/${withval}"
d06227a7 12084else
12085 htmldir="\${docdir}"
5084f823 12086fi;
d06227a7 12087
12088
12089
12090
a6c599b5 12091
570af75a 12092
5084f823 12093 ac_config_files="$ac_config_files Makefile"
b30fcfae 12094cat >confcache <<\_ACEOF
71ab34df 12095# This file is a shell script that caches the results of configure
12096# tests run on this system so they can be shared between configure
b30fcfae 12097# scripts and configure runs, see configure's option --config-cache.
12098# It is not useful on other systems. If it contains results you don't
12099# want to keep, you may remove or edit it.
71ab34df 12100#
b30fcfae 12101# config.status only pays attention to the cache file if you give it
12102# the --recheck option to rerun configure.
71ab34df 12103#
b30fcfae 12104# `ac_cv_env_foo' variables (set or unset) will be overridden when
12105# loading this file, other *unset* `ac_cv_foo' will be assigned the
12106# following values.
12107
12108_ACEOF
12109
71ab34df 12110# The following way of writing the cache mishandles newlines in values,
12111# but we know of no workaround that is simple, portable, and efficient.
5084f823 12112# So, don't put newlines in cache variables' values.
71ab34df 12113# Ultrix sh set writes to stderr and can't be redirected directly,
12114# and sets the high bit in the cache file unless we assign to the vars.
5084f823 12115{
b30fcfae 12116 (set) 2>&1 |
5084f823 12117 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12118 *ac_space=\ *)
b30fcfae 12119 # `set' does not quote correctly, so add quotes (double-quote
12120 # substitution turns \\\\ into \\, and sed turns \\ into \).
12121 sed -n \
12122 "s/'/'\\\\''/g;
12123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5084f823 12124 ;;
b30fcfae 12125 *)
12126 # `set' quotes correctly as required by POSIX, so do not add quotes.
5084f823 12127 sed -n \
12128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b30fcfae 12129 ;;
5084f823 12130 esac;
12131} |
b30fcfae 12132 sed '
12133 t clear
5084f823 12134 : clear
b30fcfae 12135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12136 t end
5084f823 12137 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12138 : end' >>confcache
12139if diff $cache_file confcache >/dev/null 2>&1; then :; else
12140 if test -w $cache_file; then
12141 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
b30fcfae 12142 cat confcache >$cache_file
71ab34df 12143 else
5084f823 12144 echo "not updating unwritable cache $cache_file"
71ab34df 12145 fi
805e22b2 12146fi
71ab34df 12147rm -f confcache
a8298541 12148
71ab34df 12149test "x$prefix" = xNONE && prefix=$ac_default_prefix
12150# Let make expand exec_prefix.
12151test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 12152
5084f823 12153# VPATH may cause trouble with some makes, so we remove $(srcdir),
12154# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12155# trailing colons and then remove the whole line if VPATH becomes empty
12156# (actually we leave an empty line to preserve line numbers).
12157if test "x$srcdir" = x.; then
12158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12159s/:*\$(srcdir):*/:/;
12160s/:*\${srcdir}:*/:/;
12161s/:*@srcdir@:*/:/;
12162s/^\([^=]*=[ ]*\):*/\1/;
12163s/:*$//;
12164s/^[^=]*=[ ]*$//;
12165}'
12166fi
12167
71ab34df 12168# Transform confdefs.h into DEFS.
12169# Protect against shell expansion while executing Makefile rules.
12170# Protect against Makefile macro expansion.
b30fcfae 12171#
12172# If the first sed substitution is executed (which looks for macros that
5084f823 12173# take arguments), then we branch to the quote section. Otherwise,
b30fcfae 12174# look for a macro that doesn't take arguments.
5084f823 12175cat >confdef2opt.sed <<\_ACEOF
b30fcfae 12176t clear
5084f823 12177: clear
12178s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
b30fcfae 12179t quote
5084f823 12180s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
b30fcfae 12181t quote
5084f823 12182d
12183: quote
12184s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12185s,\[,\\&,g
12186s,\],\\&,g
12187s,\$,$$,g
12188p
12189_ACEOF
12190# We use echo to avoid assuming a particular line-breaking character.
12191# The extra dot is to prevent the shell from consuming trailing
12192# line-breaks from the sub-command output. A line-break within
12193# single-quotes doesn't work because, if this script is created in a
12194# platform that uses two characters for line-breaks (e.g., DOS), tr
12195# would break.
12196ac_LF_and_DOT=`echo; echo .`
12197DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12198rm -f confdef2opt.sed
b30fcfae 12199
12200
12201ac_libobjs=
12202ac_ltlibobjs=
12203for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12204 # 1. Remove the extension, and $U if already installed.
5084f823 12205 ac_i=`echo "$ac_i" |
12206 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12207 # 2. Add them.
12208 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12209 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
b30fcfae 12210done
12211LIBOBJS=$ac_libobjs
a4af6a58 12212
b30fcfae 12213LTLIBOBJS=$ac_ltlibobjs
a83ffacf 12214
ae48753c 12215
b30fcfae 12216
12217: ${CONFIG_STATUS=./config.status}
12218ac_clean_files_save=$ac_clean_files
12219ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12220{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12221echo "$as_me: creating $CONFIG_STATUS" >&6;}
12222cat >$CONFIG_STATUS <<_ACEOF
12223#! $SHELL
12224# Generated by $as_me.
71ab34df 12225# Run this file to recreate the current configuration.
71ab34df 12226# Compiler output produced by configure, useful for debugging
b30fcfae 12227# configure, is in config.log if it exists.
a83ffacf 12228
b30fcfae 12229debug=false
12230ac_cs_recheck=false
12231ac_cs_silent=false
12232SHELL=\${CONFIG_SHELL-$SHELL}
12233_ACEOF
12234
12235cat >>$CONFIG_STATUS <<\_ACEOF
12236## --------------------- ##
12237## M4sh Initialization. ##
12238## --------------------- ##
12239
5084f823 12240# Be Bourne compatible
b30fcfae 12241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12242 emulate sh
12243 NULLCMD=:
12244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12245 # is contrary to our usage. Disable this feature.
12246 alias -g '${1+"$@"}'='"$@"'
5084f823 12247elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12248 set -o posix
b30fcfae 12249fi
5084f823 12250DUALCASE=1; export DUALCASE # for MKS sh
b30fcfae 12251
12252# Support unset when possible.
12253if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12254 as_unset=unset
12255else
12256 as_unset=false
12257fi
12258
12259
12260# Work around bugs in pre-3.0 UWIN ksh.
5084f823 12261$as_unset ENV MAIL MAILPATH
b30fcfae 12262PS1='$ '
12263PS2='> '
12264PS4='+ '
12265
12266# NLS nuisances.
12267for as_var in \
12268 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12269 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12270 LC_TELEPHONE LC_TIME
12271do
12272 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12273 eval $as_var=C; export $as_var
12274 else
5084f823 12275 $as_unset $as_var
b30fcfae 12276 fi
12277done
12278
12279# Required to use basename.
5084f823 12280if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 12281 as_expr=expr
12282else
12283 as_expr=false
12284fi
12285
5084f823 12286if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
b30fcfae 12287 as_basename=basename
12288else
12289 as_basename=false
12290fi
12291
12292
12293# Name of the executable.
5084f823 12294as_me=`$as_basename "$0" ||
b30fcfae 12295$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12296 X"$0" : 'X\(//\)$' \| \
5084f823 12297 X"$0" : 'X\(/\)$' \| \
12298 . : '\(.\)' 2>/dev/null ||
b30fcfae 12299echo X/"$0" |
5084f823 12300 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12301 /^X\/\(\/\/\)$/{ s//\1/; q; }
12302 /^X\/\(\/\).*/{ s//\1/; q; }
12303 s/.*/./; q'`
b30fcfae 12304
5084f823 12305
12306# PATH needs CR, and LINENO needs CR and PATH.
12307# Avoid depending upon Character Ranges.
12308as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12309as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12310as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12311as_cr_digits='0123456789'
12312as_cr_alnum=$as_cr_Letters$as_cr_digits
12313
12314# The user is always right.
12315if test "${PATH_SEPARATOR+set}" != set; then
12316 echo "#! /bin/sh" >conf$$.sh
12317 echo "exit 0" >>conf$$.sh
12318 chmod +x conf$$.sh
12319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12320 PATH_SEPARATOR=';'
12321 else
12322 PATH_SEPARATOR=:
12323 fi
12324 rm -f conf$$.sh
12325fi
b30fcfae 12326
12327
5084f823 12328 as_lineno_1=$LINENO
12329 as_lineno_2=$LINENO
12330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12331 test "x$as_lineno_1" != "x$as_lineno_2" &&
12332 test "x$as_lineno_3" = "x$as_lineno_2" || {
12333 # Find who we are. Look in the path if we contain no path at all
12334 # relative or not.
12335 case $0 in
12336 *[\\/]* ) as_myself=$0 ;;
12337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338for as_dir in $PATH
12339do
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12343done
b30fcfae 12344
5084f823 12345 ;;
12346 esac
12347 # We did not find ourselves, most probably we were run as `sh COMMAND'
12348 # in which case we are not to be found in the path.
12349 if test "x$as_myself" = x; then
12350 as_myself=$0
12351 fi
12352 if test ! -f "$as_myself"; then
12353 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12354echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12355 { (exit 1); exit 1; }; }
12356 fi
12357 case $CONFIG_SHELL in
12358 '')
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12361do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for as_base in sh bash ksh sh5; do
12365 case $as_dir in
12366 /*)
12367 if ("$as_dir/$as_base" -c '
b30fcfae 12368 as_lineno_1=$LINENO
12369 as_lineno_2=$LINENO
5084f823 12370 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
b30fcfae 12371 test "x$as_lineno_1" != "x$as_lineno_2" &&
5084f823 12372 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12373 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12374 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12375 CONFIG_SHELL=$as_dir/$as_base
12376 export CONFIG_SHELL
12377 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12378 fi;;
12379 esac
12380 done
12381done
12382;;
12383 esac
b30fcfae 12384
12385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12386 # uniformly replaced by the line number. The first 'sed' inserts a
5084f823 12387 # line-number line before each line; the second 'sed' does the real
12388 # work. The second script uses 'N' to pair each line-number line
12389 # with the numbered line, and appends trailing '-' during
12390 # substitution so that $LINENO is not a special case at line end.
b30fcfae 12391 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5084f823 12392 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12393 sed '=' <$as_myself |
b30fcfae 12394 sed '
12395 N
5084f823 12396 s,$,-,
12397 : loop
12398 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
b30fcfae 12399 t loop
5084f823 12400 s,-$,,
12401 s,^['$as_cr_digits']*\n,,
b30fcfae 12402 ' >$as_me.lineno &&
5084f823 12403 chmod +x $as_me.lineno ||
12404 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12405echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
b30fcfae 12406 { (exit 1); exit 1; }; }
12407
12408 # Don't try to exec as it changes $[0], causing all sort of problems
12409 # (the dirname of $[0] is not the place where we might find the
5084f823 12410 # original and so on. Autoconf is especially sensible to this).
12411 . ./$as_me.lineno
b30fcfae 12412 # Exit status is that of the last command.
12413 exit
12414}
12415
12416
5084f823 12417case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12418 *c*,-n*) ECHO_N= ECHO_C='
12419' ECHO_T=' ' ;;
12420 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12421 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
b30fcfae 12422esac
12423
5084f823 12424if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 12425 as_expr=expr
12426else
12427 as_expr=false
12428fi
12429
12430rm -f conf$$ conf$$.exe conf$$.file
12431echo >conf$$.file
12432if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 12433 # We could just check for DJGPP; but this test a) works b) is more generic
12434 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12435 if test -f conf$$.exe; then
12436 # Don't use ln at all; we don't have any links
b30fcfae 12437 as_ln_s='cp -p'
5084f823 12438 else
12439 as_ln_s='ln -s'
12440 fi
b30fcfae 12441elif ln conf$$.file conf$$ 2>/dev/null; then
12442 as_ln_s=ln
12443else
12444 as_ln_s='cp -p'
12445fi
5084f823 12446rm -f conf$$ conf$$.exe conf$$.file
b30fcfae 12447
12448if mkdir -p . 2>/dev/null; then
12449 as_mkdir_p=:
12450else
12451 test -d ./-p && rmdir ./-p
12452 as_mkdir_p=false
12453fi
12454
5084f823 12455as_executable_p="test -f"
b30fcfae 12456
12457# Sed expression to map a string onto a valid CPP name.
12458as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12459
12460# Sed expression to map a string onto a valid variable name.
12461as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12462
12463
5084f823 12464# IFS
12465# We need space, tab and new line, in precisely that order.
12466as_nl='
12467'
12468IFS=" $as_nl"
12469
12470# CDPATH.
12471$as_unset CDPATH
12472
b30fcfae 12473exec 6>&1
12474
5084f823 12475# Open the log real soon, to keep \$[0] and so on meaningful, and to
b30fcfae 12476# report actual input values of CONFIG_FILES etc. instead of their
5084f823 12477# values after options handling. Logging --version etc. is OK.
12478exec 5>>config.log
12479{
12480 echo
12481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12482## Running $as_me. ##
12483_ASBOX
12484} >&5
12485cat >&5 <<_CSEOF
12486
b30fcfae 12487This file was extended by $as_me, which was
5084f823 12488generated by GNU Autoconf 2.59. Invocation command line was
b30fcfae 12489
12490 CONFIG_FILES = $CONFIG_FILES
12491 CONFIG_HEADERS = $CONFIG_HEADERS
12492 CONFIG_LINKS = $CONFIG_LINKS
12493 CONFIG_COMMANDS = $CONFIG_COMMANDS
12494 $ $0 $@
12495
5084f823 12496_CSEOF
12497echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12498echo >&5
b30fcfae 12499_ACEOF
12500
12501# Files that config.status was made for.
5084f823 12502if test -n "$ac_config_files"; then
12503 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12504fi
b30fcfae 12505
5084f823 12506if test -n "$ac_config_headers"; then
12507 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12508fi
12509
12510if test -n "$ac_config_links"; then
12511 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12512fi
12513
12514if test -n "$ac_config_commands"; then
12515 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12516fi
b30fcfae 12517
12518cat >>$CONFIG_STATUS <<\_ACEOF
5084f823 12519
b30fcfae 12520ac_cs_usage="\
12521\`$as_me' instantiates files from templates according to the
12522current configuration.
12523
12524Usage: $0 [OPTIONS] [FILE]...
12525
12526 -h, --help print this help, then exit
5084f823 12527 -V, --version print version number, then exit
b30fcfae 12528 -q, --quiet do not print progress messages
12529 -d, --debug don't remove temporary files
12530 --recheck update $as_me by reconfiguring in the same conditions
12531 --file=FILE[:TEMPLATE]
12532 instantiate the configuration file FILE
12533
12534Configuration files:
12535$config_files
12536
12537Report bugs to <bug-autoconf@gnu.org>."
570af75a 12538_ACEOF
5084f823 12539
b30fcfae 12540cat >>$CONFIG_STATUS <<_ACEOF
12541ac_cs_version="\\
12542config.status
5084f823 12543configured by $0, generated by GNU Autoconf 2.59,
12544 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
b30fcfae 12545
5084f823 12546Copyright (C) 2003 Free Software Foundation, Inc.
b30fcfae 12547This config.status script is free software; the Free Software Foundation
12548gives unlimited permission to copy, distribute and modify it."
5084f823 12549srcdir=$srcdir
12550INSTALL="$INSTALL"
b30fcfae 12551_ACEOF
12552
12553cat >>$CONFIG_STATUS <<\_ACEOF
12554# If no file are specified by the user, then we need to provide default
12555# value. By we need to know if files were specified by the user.
12556ac_need_defaults=:
12557while test $# != 0
b1660f25 12558do
b30fcfae 12559 case $1 in
12560 --*=*)
5084f823 12561 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12562 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
b30fcfae 12563 ac_shift=:
12564 ;;
5084f823 12565 -*)
b30fcfae 12566 ac_option=$1
12567 ac_optarg=$2
12568 ac_shift=shift
12569 ;;
5084f823 12570 *) # This is not an option, so the user has probably given explicit
12571 # arguments.
12572 ac_option=$1
12573 ac_need_defaults=false;;
b30fcfae 12574 esac
12575
12576 case $ac_option in
12577 # Handling of the options.
5084f823 12578_ACEOF
12579cat >>$CONFIG_STATUS <<\_ACEOF
71ab34df 12580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 12581 ac_cs_recheck=: ;;
5084f823 12582 --version | --vers* | -V )
12583 echo "$ac_cs_version"; exit 0 ;;
12584 --he | --h)
12585 # Conflict between --help and --header
12586 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12587Try \`$0 --help' for more information." >&5
12588echo "$as_me: error: ambiguous option: $1
12589Try \`$0 --help' for more information." >&2;}
12590 { (exit 1); exit 1; }; };;
12591 --help | --hel | -h )
12592 echo "$ac_cs_usage"; exit 0 ;;
12593 --debug | --d* | -d )
b30fcfae 12594 debug=: ;;
12595 --file | --fil | --fi | --f )
12596 $ac_shift
12597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12598 ac_need_defaults=false;;
5084f823 12599 --header | --heade | --head | --hea )
12600 $ac_shift
12601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12602 ac_need_defaults=false;;
b30fcfae 12603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12605 ac_cs_silent=: ;;
12606
12607 # This is an error.
5084f823 12608 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12609Try \`$0 --help' for more information." >&5
12610echo "$as_me: error: unrecognized option: $1
12611Try \`$0 --help' for more information." >&2;}
b30fcfae 12612 { (exit 1); exit 1; }; } ;;
12613
5084f823 12614 *) ac_config_targets="$ac_config_targets $1" ;;
b30fcfae 12615
a83ffacf 12616 esac
b30fcfae 12617 shift
a83ffacf 12618done
12619
b30fcfae 12620ac_configure_extra_args=
a83ffacf 12621
b30fcfae 12622if $ac_cs_silent; then
12623 exec 6>/dev/null
12624 ac_configure_extra_args="$ac_configure_extra_args --silent"
12625fi
a83ffacf 12626
b30fcfae 12627_ACEOF
12628cat >>$CONFIG_STATUS <<_ACEOF
12629if \$ac_cs_recheck; then
5084f823 12630 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12631 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b30fcfae 12632fi
12633
12634_ACEOF
12635
b30fcfae 12636
570af75a 12637
5084f823 12638
12639
12640cat >>$CONFIG_STATUS <<\_ACEOF
b30fcfae 12641for ac_config_target in $ac_config_targets
12642do
5084f823 12643 case "$ac_config_target" in
12644 # Handling of arguments.
12645 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b30fcfae 12646 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12647echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12648 { (exit 1); exit 1; }; };;
12649 esac
12650done
12651
12652# If the user did not use the arguments to specify the items to instantiate,
12653# then the envvar interface is used. Set only those that are not.
12654# We use the long form for the default assignment because of an extremely
12655# bizarre bug on SunOS 4.1.3.
12656if $ac_need_defaults; then
12657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12658fi
12659
12660# Have a temporary directory for convenience. Make it in the build tree
5084f823 12661# simply because there is no reason to put it here, and in addition,
b30fcfae 12662# creating and moving files from /tmp can sometimes cause problems.
5084f823 12663# Create a temporary directory, and hook for its removal unless debugging.
b30fcfae 12664$debug ||
12665{
5084f823 12666 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
b30fcfae 12667 trap '{ (exit 1); exit 1; }' 1 2 13 15
12668}
5084f823 12669
b30fcfae 12670# Create a (secure) tmp directory for tmp files.
12671
12672{
5084f823 12673 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
b30fcfae 12674 test -n "$tmp" && test -d "$tmp"
12675} ||
12676{
5084f823 12677 tmp=./confstat$$-$RANDOM
12678 (umask 077 && mkdir $tmp)
b30fcfae 12679} ||
12680{
12681 echo "$me: cannot create a temporary directory in ." >&2
12682 { (exit 1); exit 1; }
12683}
12684
5084f823 12685_ACEOF
12686
12687cat >>$CONFIG_STATUS <<_ACEOF
12688
b30fcfae 12689#
5084f823 12690# CONFIG_FILES section.
b30fcfae 12691#
12692
12693# No need to generate the scripts if there are no CONFIG_FILES.
12694# This happens for instance when ./config.status config.h
5084f823 12695if test -n "\$CONFIG_FILES"; then
12696 # Protect against being on the right side of a sed subst in config.status.
12697 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12698 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12699s,@SHELL@,$SHELL,;t t
12700s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12701s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12702s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12703s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12704s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12705s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12706s,@exec_prefix@,$exec_prefix,;t t
12707s,@prefix@,$prefix,;t t
12708s,@program_transform_name@,$program_transform_name,;t t
12709s,@bindir@,$bindir,;t t
12710s,@sbindir@,$sbindir,;t t
12711s,@libexecdir@,$libexecdir,;t t
12712s,@datadir@,$datadir,;t t
12713s,@sysconfdir@,$sysconfdir,;t t
12714s,@sharedstatedir@,$sharedstatedir,;t t
12715s,@localstatedir@,$localstatedir,;t t
12716s,@libdir@,$libdir,;t t
12717s,@includedir@,$includedir,;t t
12718s,@oldincludedir@,$oldincludedir,;t t
12719s,@infodir@,$infodir,;t t
12720s,@mandir@,$mandir,;t t
12721s,@build_alias@,$build_alias,;t t
12722s,@host_alias@,$host_alias,;t t
12723s,@target_alias@,$target_alias,;t t
12724s,@DEFS@,$DEFS,;t t
12725s,@ECHO_C@,$ECHO_C,;t t
12726s,@ECHO_N@,$ECHO_N,;t t
12727s,@ECHO_T@,$ECHO_T,;t t
12728s,@LIBS@,$LIBS,;t t
12729s,@build@,$build,;t t
12730s,@build_cpu@,$build_cpu,;t t
12731s,@build_vendor@,$build_vendor,;t t
12732s,@build_os@,$build_os,;t t
12733s,@build_noncanonical@,$build_noncanonical,;t t
12734s,@host_noncanonical@,$host_noncanonical,;t t
12735s,@target_noncanonical@,$target_noncanonical,;t t
12736s,@host@,$host,;t t
12737s,@host_cpu@,$host_cpu,;t t
12738s,@host_vendor@,$host_vendor,;t t
12739s,@host_os@,$host_os,;t t
12740s,@target@,$target,;t t
12741s,@target_cpu@,$target_cpu,;t t
12742s,@target_vendor@,$target_vendor,;t t
12743s,@target_os@,$target_os,;t t
12744s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12745s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12746s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12747s,@LN@,$LN,;t t
12748s,@LN_S@,$LN_S,;t t
12749s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12750s,@build_libsubdir@,$build_libsubdir,;t t
12751s,@build_subdir@,$build_subdir,;t t
12752s,@host_subdir@,$host_subdir,;t t
12753s,@target_subdir@,$target_subdir,;t t
12754s,@CC@,$CC,;t t
12755s,@CFLAGS@,$CFLAGS,;t t
12756s,@LDFLAGS@,$LDFLAGS,;t t
12757s,@CPPFLAGS@,$CPPFLAGS,;t t
12758s,@ac_ct_CC@,$ac_ct_CC,;t t
12759s,@EXEEXT@,$EXEEXT,;t t
12760s,@OBJEXT@,$OBJEXT,;t t
12761s,@CXX@,$CXX,;t t
12762s,@CXXFLAGS@,$CXXFLAGS,;t t
12763s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12764s,@GNATBIND@,$GNATBIND,;t t
12765s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12766s,@GNATMAKE@,$GNATMAKE,;t t
12767s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12768s,@do_compare@,$do_compare,;t t
12769s,@gmplibs@,$gmplibs,;t t
12770s,@gmpinc@,$gmpinc,;t t
12771s,@stage1_languages@,$stage1_languages,;t t
12772s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
5f1f2de5 12773s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
5084f823 12774s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12775s,@tooldir@,$tooldir,;t t
12776s,@build_tooldir@,$build_tooldir,;t t
12777s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12778s,@GDB_TK@,$GDB_TK,;t t
12779s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12780s,@build_configargs@,$build_configargs,;t t
12781s,@build_configdirs@,$build_configdirs,;t t
12782s,@host_configargs@,$host_configargs,;t t
12783s,@configdirs@,$configdirs,;t t
12784s,@target_configargs@,$target_configargs,;t t
12785s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12786s,@config_shell@,$config_shell,;t t
12787s,@YACC@,$YACC,;t t
12788s,@BISON@,$BISON,;t t
12789s,@M4@,$M4,;t t
12790s,@LEX@,$LEX,;t t
12791s,@FLEX@,$FLEX,;t t
12792s,@MAKEINFO@,$MAKEINFO,;t t
12793s,@EXPECT@,$EXPECT,;t t
12794s,@RUNTEST@,$RUNTEST,;t t
12795s,@AR@,$AR,;t t
12796s,@AS@,$AS,;t t
12797s,@DLLTOOL@,$DLLTOOL,;t t
12798s,@LD@,$LD,;t t
12799s,@LIPO@,$LIPO,;t t
12800s,@NM@,$NM,;t t
12801s,@RANLIB@,$RANLIB,;t t
12802s,@STRIP@,$STRIP,;t t
12803s,@WINDRES@,$WINDRES,;t t
75d6a0a9 12804s,@WINDMC@,$WINDMC,;t t
5084f823 12805s,@OBJCOPY@,$OBJCOPY,;t t
12806s,@OBJDUMP@,$OBJDUMP,;t t
12807s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12808s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12809s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12810s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12811s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12812s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12813s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12814s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12815s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12816s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12817s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12818s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12819s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12820s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12821s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12822s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
75d6a0a9 12823s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
5084f823 12824s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12825s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12826s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12827s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12828s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12829s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12830s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12831s,@MAINT@,$MAINT,;t t
12832s,@stage1_cflags@,$stage1_cflags,;t t
12833s,@stage1_checking@,$stage1_checking,;t t
12834s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12835s,@datarootdir@,$datarootdir,;t t
12836s,@docdir@,$docdir,;t t
12837s,@pdfdir@,$pdfdir,;t t
12838s,@htmldir@,$htmldir,;t t
12839s,@LIBOBJS@,$LIBOBJS,;t t
12840s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12841/@serialization_dependencies@/r $serialization_dependencies
12842s,@serialization_dependencies@,,;t t
12843/@host_makefile_frag@/r $host_makefile_frag
12844s,@host_makefile_frag@,,;t t
12845/@target_makefile_frag@/r $target_makefile_frag
12846s,@target_makefile_frag@,,;t t
12847/@alphaieee_frag@/r $alphaieee_frag
12848s,@alphaieee_frag@,,;t t
12849/@ospace_frag@/r $ospace_frag
12850s,@ospace_frag@,,;t t
12851CEOF
a8298541 12852
b30fcfae 12853_ACEOF
12854
5084f823 12855 cat >>$CONFIG_STATUS <<\_ACEOF
12856 # Split the substitutions into bite-sized pieces for seds with
12857 # small command number limits, like on Digital OSF/1 and HP-UX.
12858 ac_max_sed_lines=48
12859 ac_sed_frag=1 # Number of current file.
12860 ac_beg=1 # First line for current file.
12861 ac_end=$ac_max_sed_lines # Line after last line for current file.
12862 ac_more_lines=:
12863 ac_sed_cmds=
12864 while $ac_more_lines; do
12865 if test $ac_beg -gt 1; then
12866 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12867 else
12868 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12869 fi
12870 if test ! -s $tmp/subs.frag; then
12871 ac_more_lines=false
12872 else
12873 # The purpose of the label and of the branching condition is to
12874 # speed up the sed processing (if there are no `@' at all, there
12875 # is no need to browse any of the substitutions).
12876 # These are the two extra sed commands mentioned above.
12877 (echo ':t
12878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12879 if test -z "$ac_sed_cmds"; then
12880 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12881 else
12882 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12883 fi
12884 ac_sed_frag=`expr $ac_sed_frag + 1`
12885 ac_beg=$ac_end
12886 ac_end=`expr $ac_end + $ac_max_sed_lines`
12887 fi
12888 done
12889 if test -z "$ac_sed_cmds"; then
12890 ac_sed_cmds=cat
570af75a 12891 fi
5084f823 12892fi # test -n "$CONFIG_FILES"
570af75a 12893
570af75a 12894_ACEOF
b30fcfae 12895cat >>$CONFIG_STATUS <<\_ACEOF
5084f823 12896for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12898 case $ac_file in
12899 - | *:- | *:-:* ) # input from stdin
12900 cat >$tmp/stdin
12901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12905 * ) ac_file_in=$ac_file.in ;;
570af75a 12906 esac
12907
5084f823 12908 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12909 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
b30fcfae 12910$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12911 X"$ac_file" : 'X\(//\)[^/]' \| \
12912 X"$ac_file" : 'X\(//\)$' \| \
5084f823 12913 X"$ac_file" : 'X\(/\)' \| \
12914 . : '\(.\)' 2>/dev/null ||
b30fcfae 12915echo X"$ac_file" |
5084f823 12916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12918 /^X\(\/\/\)$/{ s//\1/; q; }
12919 /^X\(\/\).*/{ s//\1/; q; }
12920 s/.*/./; q'`
12921 { if $as_mkdir_p; then
12922 mkdir -p "$ac_dir"
12923 else
12924 as_dir="$ac_dir"
b30fcfae 12925 as_dirs=
5084f823 12926 while test ! -d "$as_dir"; do
12927 as_dirs="$as_dir $as_dirs"
12928 as_dir=`(dirname "$as_dir") 2>/dev/null ||
b30fcfae 12929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12930 X"$as_dir" : 'X\(//\)[^/]' \| \
12931 X"$as_dir" : 'X\(//\)$' \| \
5084f823 12932 X"$as_dir" : 'X\(/\)' \| \
12933 . : '\(.\)' 2>/dev/null ||
b30fcfae 12934echo X"$as_dir" |
5084f823 12935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12937 /^X\(\/\/\)$/{ s//\1/; q; }
12938 /^X\(\/\).*/{ s//\1/; q; }
12939 s/.*/./; q'`
b30fcfae 12940 done
5084f823 12941 test ! -n "$as_dirs" || mkdir $as_dirs
12942 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12943echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
b30fcfae 12944 { (exit 1); exit 1; }; }; }
5084f823 12945
b30fcfae 12946 ac_builddir=.
a83ffacf 12947
5084f823 12948if test "$ac_dir" != .; then
b30fcfae 12949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5084f823 12950 # A "../" for each directory in $ac_dir_suffix.
12951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12952else
12953 ac_dir_suffix= ac_top_builddir=
12954fi
b30fcfae 12955
12956case $srcdir in
5084f823 12957 .) # No --srcdir option. We are building in place.
b30fcfae 12958 ac_srcdir=.
5084f823 12959 if test -z "$ac_top_builddir"; then
12960 ac_top_srcdir=.
12961 else
12962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12963 fi ;;
12964 [\\/]* | ?:[\\/]* ) # Absolute path.
b30fcfae 12965 ac_srcdir=$srcdir$ac_dir_suffix;
5084f823 12966 ac_top_srcdir=$srcdir ;;
12967 *) # Relative path.
12968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
b30fcfae 12970esac
b1660f25 12971
5084f823 12972# Do not use `cd foo && pwd` to compute absolute paths, because
12973# the directories may not exist.
12974case `pwd` in
12975.) ac_abs_builddir="$ac_dir";;
12976*)
12977 case "$ac_dir" in
12978 .) ac_abs_builddir=`pwd`;;
12979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12981 esac;;
12982esac
12983case $ac_abs_builddir in
12984.) ac_abs_top_builddir=${ac_top_builddir}.;;
12985*)
12986 case ${ac_top_builddir}. in
12987 .) ac_abs_top_builddir=$ac_abs_builddir;;
12988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12990 esac;;
12991esac
12992case $ac_abs_builddir in
12993.) ac_abs_srcdir=$ac_srcdir;;
12994*)
12995 case $ac_srcdir in
12996 .) ac_abs_srcdir=$ac_abs_builddir;;
12997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12999 esac;;
13000esac
13001case $ac_abs_builddir in
13002.) ac_abs_top_srcdir=$ac_top_srcdir;;
13003*)
13004 case $ac_top_srcdir in
13005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13008 esac;;
13009esac
a83ffacf 13010
b30fcfae 13011
13012 case $INSTALL in
13013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5084f823 13014 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
71ab34df 13015 esac
570af75a 13016
5084f823 13017 if test x"$ac_file" != x-; then
13018 { echo "$as_me:$LINENO: creating $ac_file" >&5
13019echo "$as_me: creating $ac_file" >&6;}
13020 rm -f "$ac_file"
13021 fi
13022 # Let's still pretend it is `configure' which instantiates (i.e., don't
13023 # use $as_me), people would be surprised to read:
13024 # /* config.h. Generated by config.status. */
13025 if test x"$ac_file" = x-; then
13026 configure_input=
13027 else
13028 configure_input="$ac_file. "
13029 fi
13030 configure_input=$configure_input"Generated from `echo $ac_file_in |
13031 sed 's,.*/,,'` by configure."
13032
13033 # First look for the input files in the build tree, otherwise in the
13034 # src tree.
13035 ac_file_inputs=`IFS=:
13036 for f in $ac_file_in; do
13037 case $f in
13038 -) echo $tmp/stdin ;;
13039 [\\/$]*)
13040 # Absolute (can't be DOS-style, as IFS=:)
13041 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13042echo "$as_me: error: cannot find input file: $f" >&2;}
13043 { (exit 1); exit 1; }; }
13044 echo "$f";;
13045 *) # Relative
13046 if test -f "$f"; then
13047 # Build tree
13048 echo "$f"
13049 elif test -f "$srcdir/$f"; then
13050 # Source tree
13051 echo "$srcdir/$f"
13052 else
13053 # /dev/null tree
13054 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13055echo "$as_me: error: cannot find input file: $f" >&2;}
13056 { (exit 1); exit 1; }; }
13057 fi;;
13058 esac
13059 done` || { (exit 1); exit 1; }
570af75a 13060_ACEOF
b30fcfae 13061cat >>$CONFIG_STATUS <<_ACEOF
13062 sed "$ac_vpsub
13063$extrasub
13064_ACEOF
13065cat >>$CONFIG_STATUS <<\_ACEOF
13066:t
13067/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5084f823 13068s,@configure_input@,$configure_input,;t t
13069s,@srcdir@,$ac_srcdir,;t t
13070s,@abs_srcdir@,$ac_abs_srcdir,;t t
13071s,@top_srcdir@,$ac_top_srcdir,;t t
13072s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13073s,@builddir@,$ac_builddir,;t t
13074s,@abs_builddir@,$ac_abs_builddir,;t t
13075s,@top_builddir@,$ac_top_builddir,;t t
13076s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13077s,@INSTALL@,$ac_INSTALL,;t t
13078" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13079 rm -f $tmp/stdin
13080 if test x"$ac_file" != x-; then
13081 mv $tmp/out $ac_file
13082 else
13083 cat $tmp/out
13084 rm -f $tmp/out
13085 fi
570af75a 13086
5084f823 13087done
13088_ACEOF
570af75a 13089
5084f823 13090cat >>$CONFIG_STATUS <<\_ACEOF
a8298541 13091
b30fcfae 13092{ (exit 0); exit 0; }
13093_ACEOF
71ab34df 13094chmod +x $CONFIG_STATUS
b30fcfae 13095ac_clean_files=$ac_clean_files_save
13096
13097
13098# configure is writing to config.log, and then calls config.status.
13099# config.status does its own redirection, appending to config.log.
13100# Unfortunately, on DOS this fails, as config.log is still kept open
13101# by configure, so config.status won't be able to write to it; its
13102# output is simply discarded. So we exec the FD to /dev/null,
13103# effectively closing config.log, so it can be properly (re)opened and
13104# appended to by config.status. When coming back to configure, we
13105# need to make the FD available again.
13106if test "$no_create" != yes; then
13107 ac_cs_success=:
13108 ac_config_status_args=
13109 test "$silent" = yes &&
13110 ac_config_status_args="$ac_config_status_args --quiet"
13111 exec 5>/dev/null
13112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13113 exec 5>>config.log
13114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13115 # would make configure fail if this is the last instruction.
13116 $ac_cs_success || { (exit 1); exit 1; }
13117fi
a8298541 13118