]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
fortran/
[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 \
a0191bfe 1868 target-libgomp \
54d7d5f2 1869 target-libstdc++-v3 \
4ee9c684 1870 target-libmudflap \
0d55f4d0 1871 target-libssp \
4ee9c684 1872 target-libgfortran \
dd6d3a67 1873 target-boehm-gc \
cdfc500e 1874 ${libgcj} \
93341878 1875 target-libobjc \
a0191bfe 1876 target-libada"
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 ;;
68c9bc25 2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
71ab34df 2517 mips*-*-irix5*)
d6f7b8f2 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2519 ;;
2520 mips*-*-irix6*)
71ab34df 2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
d6f7b8f2 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2526 ;;
71ab34df 2527 mips*-*-bsd*)
d6f7b8f2 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
71ab34df 2529 ;;
71ab34df 2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
d6f7b8f2 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1c5767f1 2535 libgloss_dir=mips
71ab34df 2536 ;;
2537 romp-*-*)
d6f7b8f2 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
71ab34df 2539 ;;
33974778 2540 sh-*-* | sh64-*-*)
71ab34df 2541 case "${host}" in
f74ea578 2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
71ab34df 2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
d6f7b8f2 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2548 ;;
1c5767f1 2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
71ab34df 2552 sparc-*-elf*)
d6f7b8f2 2553 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2554 ;;
2555 sparc64-*-elf*)
d6f7b8f2 2556 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2557 libgloss_dir=sparc
71ab34df 2558 ;;
2559 sparclite-*-*)
d6f7b8f2 2560 noconfigdirs="$noconfigdirs ${libgcj}"
1c5767f1 2561 libgloss_dir=sparc
71ab34df 2562 ;;
2563 sparc-*-sunos4*)
d6f7b8f2 2564 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
17336619 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
d6f7b8f2 2572 noconfigdirs="$noconfigdirs ${libgcj}"
17336619 2573 ;;
71ab34df 2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
644459d0 2576 spu-*-*)
f5b9de9c 2577 skipdirs="target-libssp"
644459d0 2578 ;;
71ab34df 2579 v810-*-*)
d6f7b8f2 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
71ab34df 2581 ;;
2582 v850-*-*)
d6f7b8f2 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2584 ;;
2585 v850e-*-*)
d6f7b8f2 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2587 ;;
2588 v850ea-*-*)
d6f7b8f2 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
71ab34df 2590 ;;
2591 vax-*-vms)
d6f7b8f2 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
71ab34df 2593 ;;
2594 vax-*-*)
d6f7b8f2 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
71ab34df 2596 ;;
678f5830 2597 xtensa-*-*)
d6f7b8f2 2598 noconfigdirs="$noconfigdirs ${libgcj}"
678f5830 2599 ;;
71ab34df 2600 ip2k-*-*)
d6f7b8f2 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
71ab34df 2602 ;;
c01dd063 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
71ab34df 2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
d6f7b8f2 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
b30fcfae 2608 ;;
71ab34df 2609 *-*-*)
d6f7b8f2 2610 noconfigdirs="$noconfigdirs ${libgcj}"
71ab34df 2611 ;;
2612esac
a8298541 2613
71ab34df 2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
71ab34df 2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
71ab34df 2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
f74ea578 2692 i[3456789]86-*-sysv5*)
71ab34df 2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
f74ea578 2695 i[3456789]86-*-dgux*)
71ab34df 2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
f74ea578 2699 i[3456789]86-ncr-sysv4.3*)
71ab34df 2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
f74ea578 2704 i[3456789]86-ncr-sysv4*)
71ab34df 2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
f74ea578 2713 i[3456789]86-*-sco3.2v5*)
71ab34df 2714 ;;
f74ea578 2715 i[3456789]86-*-sco*)
71ab34df 2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
f74ea578 2721 i[3456789]86-*-udk*)
71ab34df 2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
f74ea578 2724 i[3456789]86-*-solaris2*)
71ab34df 2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
f74ea578 2727 i[3456789]86-*-msdosdjgpp*)
71ab34df 2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
70d8e49e 2734 host_makefile_frag="config/mh-mingw"
71ab34df 2735 ;;
a378fc89 2736 *-mingw64*)
70d8e49e 2737 host_makefile_frag="config/mh-mingw"
a378fc89 2738 ;;
71ab34df 2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
2b64d19b 2765 powerpc-*-darwin*)
0222d984 2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
9d44a802 2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
71ab34df 2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
da9e6519 2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
71ab34df 2786esac
2787fi
2788
8e1fea1a 2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
8e1fea1a 2809 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
8e1fea1a 2810else
a4af6a58 2811 CC_FOR_BUILD="\$(CC)"
eae5b2bc 2812fi
2813
2814ac_ext=c
b30fcfae 2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}gcc; ac_word=$2
5084f823 2822echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2824if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842done
2843
2844fi
2845fi
2846CC=$ac_cv_prog_CC
2847if test -n "$CC"; then
5084f823 2848 echo "$as_me:$LINENO: result: $CC" >&5
2849echo "${ECHO_T}$CC" >&6
b30fcfae 2850else
5084f823 2851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
b30fcfae 2853fi
2854
2855fi
2856if test -z "$ac_cv_prog_CC"; then
2857 ac_ct_CC=$CC
a4af6a58 2858 # Extract the first word of "gcc", so it can be a program name with args.
2859set dummy gcc; ac_word=$2
5084f823 2860echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2875 ac_cv_prog_ac_ct_CC="gcc"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879done
2880done
2881
2882fi
2883fi
2884ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885if test -n "$ac_ct_CC"; then
5084f823 2886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887echo "${ECHO_T}$ac_ct_CC" >&6
b30fcfae 2888else
5084f823 2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
b30fcfae 2891fi
2892
5084f823 2893 CC=$ac_ct_CC
b30fcfae 2894else
2895 CC="$ac_cv_prog_CC"
2896fi
2897
2898if test -z "$CC"; then
5084f823 2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 2901set dummy ${ac_tool_prefix}cc; ac_word=$2
5084f823 2902echo "$as_me:$LINENO: checking for $ac_word" >&5
2903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2904if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 2906else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909else
b30fcfae 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2917 ac_cv_prog_CC="${ac_tool_prefix}cc"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921done
2922done
2923
a83ffacf 2924fi
a83ffacf 2925fi
b30fcfae 2926CC=$ac_cv_prog_CC
ae48753c 2927if test -n "$CC"; then
5084f823 2928 echo "$as_me:$LINENO: result: $CC" >&5
2929echo "${ECHO_T}$CC" >&6
a83ffacf 2930else
5084f823 2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
a83ffacf 2933fi
2934
5084f823 2935fi
2936if test -z "$ac_cv_prog_CC"; then
2937 ac_ct_CC=$CC
2938 # Extract the first word of "cc", so it can be a program name with args.
2939set dummy cc; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_CC="cc"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
570af75a 2958 fi
5084f823 2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969 echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973 CC=$ac_ct_CC
2974else
2975 CC="$ac_cv_prog_CC"
2976fi
2977
b30fcfae 2978fi
8e1fea1a 2979if test -z "$CC"; then
2980 # Extract the first word of "cc", so it can be a program name with args.
2981set dummy cc; ac_word=$2
5084f823 2982echo "$as_me:$LINENO: checking for $ac_word" >&5
2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 2984if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 2986else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
a83ffacf 2990 ac_prog_rejected=no
b30fcfae 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 2998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2999 ac_prog_rejected=yes
3000 continue
3001 fi
3002 ac_cv_prog_CC="cc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006done
3007done
3008
8e1fea1a 3009if test $ac_prog_rejected = yes; then
3010 # We found a bogon in the path, so make sure we never use it.
3011 set dummy $ac_cv_prog_CC
3012 shift
b30fcfae 3013 if test $# != 0; then
8e1fea1a 3014 # We chose a different compiler from the bogus one.
3015 # However, it has the same basename, so the bogon will be chosen
3016 # first if we set CC to just the basename; use the full file name.
3017 shift
b30fcfae 3018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 3019 fi
3020fi
3021fi
3022fi
b30fcfae 3023CC=$ac_cv_prog_CC
8e1fea1a 3024if test -n "$CC"; then
5084f823 3025 echo "$as_me:$LINENO: result: $CC" >&5
3026echo "${ECHO_T}$CC" >&6
8e1fea1a 3027else
5084f823 3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
8e1fea1a 3030fi
3031
b30fcfae 3032fi
3033if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
5084f823 3035 for ac_prog in cl
b30fcfae 3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084f823 3039echo "$as_me:$LINENO: checking for $ac_word" >&5
3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3041if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 3043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
b30fcfae 3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058done
3059done
3060
8e1fea1a 3061fi
3062fi
b30fcfae 3063CC=$ac_cv_prog_CC
8e1fea1a 3064if test -n "$CC"; then
5084f823 3065 echo "$as_me:$LINENO: result: $CC" >&5
3066echo "${ECHO_T}$CC" >&6
b1660f25 3067else
5084f823 3068 echo "$as_me:$LINENO: result: no" >&5
3069echo "${ECHO_T}no" >&6
a4af6a58 3070fi
ae48753c 3071
b30fcfae 3072 test -n "$CC" && break
3073 done
ae48753c 3074fi
b30fcfae 3075if test -z "$CC"; then
3076 ac_ct_CC=$CC
5084f823 3077 for ac_prog in cl
b30fcfae 3078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
5084f823 3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 3083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
a83ffacf 3085else
b30fcfae 3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 3088else
b30fcfae 3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 3096 ac_cv_prog_ac_ct_CC="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
ae48753c 3103fi
3104fi
b30fcfae 3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
5084f823 3107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3108echo "${ECHO_T}$ac_ct_CC" >&6
a4af6a58 3109else
5084f823 3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
ae48753c 3112fi
a83ffacf 3113
b30fcfae 3114 test -n "$ac_ct_CC" && break
3115done
3116
5084f823 3117 CC=$ac_ct_CC
b30fcfae 3118fi
3119
3120fi
3121
3122
3123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124See \`config.log' for more details." >&5
3125echo "$as_me: error: no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3128
3129# Provide some information about the compiler.
5084f823 3130echo "$as_me:$LINENO:" \
3131 "checking for C compiler version" >&5
b30fcfae 3132ac_compiler=`set X $ac_compile; echo $2`
5084f823 3133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3134 (eval $ac_compiler --version </dev/null >&5) 2>&5
b30fcfae 3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
5084f823 3138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3139 (eval $ac_compiler -v </dev/null >&5) 2>&5
b30fcfae 3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
5084f823 3143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3144 (eval $ac_compiler -V </dev/null >&5) 2>&5
b30fcfae 3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148
3149cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
3165ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
5084f823 3169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
b30fcfae 3171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5084f823 3172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3173 (eval $ac_link_default) 2>&5
b30fcfae 3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; then
5084f823 3177 # Find the output, starting from the most likely. This scheme is
3178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3179# resort.
3180
3181# Be careful to initialize this variable, since it used to be cached.
3182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3183ac_cv_exeext=
3184# b.out is created by i960 compilers.
3185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
b30fcfae 3186do
3187 test -f "$ac_file" || continue
3188 case $ac_file in
5084f823 3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3190 ;;
3191 conftest.$ac_ext )
3192 # This is the source file.
b30fcfae 3193 ;;
3194 [ab].out )
3195 # We found the default executable, but exeext='' is most
3196 # certainly right.
3197 break;;
3198 *.* )
5084f823 3199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 # FIXME: I believe we export ac_cv_exeext for Libtool,
3201 # but it would be cool to find out if it's true. Does anybody
3202 # maintain Libtool? --akim.
3203 export ac_cv_exeext
b30fcfae 3204 break;;
3205 * )
3206 break;;
3207 esac
3208done
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3214See \`config.log' for more details." >&5
3215echo "$as_me: error: C compiler cannot create executables
3216See \`config.log' for more details." >&2;}
3217 { (exit 77); exit 77; }; }
3218fi
3219
3220ac_exeext=$ac_cv_exeext
5084f823 3221echo "$as_me:$LINENO: result: $ac_file" >&5
3222echo "${ECHO_T}$ac_file" >&6
b30fcfae 3223
5084f823 3224# Check the compiler produces executables we can run. If not, either
b30fcfae 3225# the compiler is broken, or we cross compile.
5084f823 3226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
b30fcfae 3228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3229# If not cross compiling, check that we can run a simple program.
3230if test "$cross_compiling" != yes; then
3231 if { ac_try='./$ac_file'
5084f823 3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
b30fcfae 3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 cross_compiling=no
3238 else
3239 if test "$cross_compiling" = maybe; then
3240 cross_compiling=yes
3241 else
3242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3243If you meant to cross compile, use \`--host'.
3244See \`config.log' for more details." >&5
3245echo "$as_me: error: cannot run C compiled programs.
3246If you meant to cross compile, use \`--host'.
3247See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250 fi
3251fi
5084f823 3252echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
b30fcfae 3254
3255rm -f a.out a.exe conftest$ac_cv_exeext b.out
3256ac_clean_files=$ac_clean_files_save
5084f823 3257# Check the compiler produces executables we can run. If not, either
b30fcfae 3258# the compiler is broken, or we cross compile.
5084f823 3259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3261echo "$as_me:$LINENO: result: $cross_compiling" >&5
3262echo "${ECHO_T}$cross_compiling" >&6
3263
3264echo "$as_me:$LINENO: checking for suffix of executables" >&5
3265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>&5
b30fcfae 3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273# work properly (i.e., refer to `conftest.exe'), while it won't with
3274# `rm'.
3275for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
5084f823 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
b30fcfae 3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5084f823 3280 export ac_cv_exeext
b30fcfae 3281 break;;
3282 * ) break;;
3283 esac
3284done
ae48753c 3285else
b30fcfae 3286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details." >&5
3288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3289See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3291fi
3292
3293rm -f conftest$ac_cv_exeext
5084f823 3294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3295echo "${ECHO_T}$ac_cv_exeext" >&6
b30fcfae 3296
3297rm -f conftest.$ac_ext
3298EXEEXT=$ac_cv_exeext
3299ac_exeext=$EXEEXT
5084f823 3300echo "$as_me:$LINENO: checking for suffix of object files" >&5
3301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
b30fcfae 3302if test "${ac_cv_objext+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320rm -f conftest.o conftest.obj
5084f823 3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>&5
b30fcfae 3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
5084f823 3326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
b30fcfae 3327 case $ac_file in
5084f823 3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
b30fcfae 3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332done
3333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338See \`config.log' for more details." >&5
3339echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3342fi
3343
3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345fi
5084f823 3346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347echo "${ECHO_T}$ac_cv_objext" >&6
b30fcfae 3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
5084f823 3350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
b30fcfae 3352if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
3368
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
5084f823 3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
b30fcfae 3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
b30fcfae 3395 ac_compiler_gnu=yes
3396else
3397 echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
5084f823 3400ac_compiler_gnu=no
b30fcfae 3401fi
5084f823 3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 3403ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405fi
5084f823 3406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
b30fcfae 3408GCC=`test $ac_compiler_gnu = yes && echo yes`
3409ac_test_CFLAGS=${CFLAGS+set}
3410ac_save_CFLAGS=$CFLAGS
5084f823 3411CFLAGS="-g"
3412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
b30fcfae 3414if test "${ac_cv_prog_cc_g+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
5084f823 3417 cat >conftest.$ac_ext <<_ACEOF
b30fcfae 3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
5084f823 3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
b30fcfae 3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
b30fcfae 3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
b30fcfae 3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3453 (exit $ac_status); }; }; then
8e1fea1a 3454 ac_cv_prog_cc_g=yes
3455else
b30fcfae 3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
ae48753c 3458
5084f823 3459ac_cv_prog_cc_g=no
a83ffacf 3460fi
5084f823 3461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 3462fi
5084f823 3463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8e1fea1a 3465if test "$ac_test_CFLAGS" = set; then
b30fcfae 3466 CFLAGS=$ac_save_CFLAGS
8e1fea1a 3467elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3472 fi
3473else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3478 fi
3479fi
5084f823 3480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3482if test "${ac_cv_prog_cc_stdc+set}" = set; then
b30fcfae 3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
5084f823 3485 ac_cv_prog_cc_stdc=no
b30fcfae 3486ac_save_CC=$CC
3487cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493#include <stdarg.h>
3494#include <stdio.h>
3495#include <sys/types.h>
3496#include <sys/stat.h>
3497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3498struct buf { int x; };
3499FILE * (*rcsopen) (struct buf *, struct stat *, int);
3500static char *e (p, i)
3501 char **p;
3502 int i;
3503{
3504 return p[i];
3505}
3506static char *f (char * (*g) (char **, int), char **p, ...)
3507{
3508 char *s;
3509 va_list v;
3510 va_start (v,p);
3511 s = g (p, va_arg (v,int));
3512 va_end (v);
3513 return s;
3514}
3515
3516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3517 function prototypes and stuff, but not '\xHH' hex character constants.
3518 These don't provoke an error unfortunately, instead are silently treated
5084f823 3519 as 'x'. The following induces an error, until -std1 is added to get
b30fcfae 3520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3521 array size at least. It's necessary to write '\x00'==0 to get something
5084f823 3522 that's true only with -std1. */
b30fcfae 3523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3524
3525int test (int i, double x);
3526struct s1 {int (*f) (int a);};
3527struct s2 {int (*f) (double a);};
3528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529int argc;
3530char **argv;
3531int
3532main ()
3533{
3534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3535 ;
3536 return 0;
3537}
3538_ACEOF
5084f823 3539# Don't try gcc -ansi; that turns off useful extensions and
3540# breaks some systems' header files.
3541# AIX -qlanglvl=ansi
3542# Ultrix and OSF/1 -std1
3543# HP-UX 10.20 and later -Ae
3544# HP-UX older versions -Aa -D_HPUX_SOURCE
3545# SVR4 -Xc -D__EXTENSIONS__
3546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 3547do
3548 CC="$ac_save_CC $ac_arg"
3549 rm -f conftest.$ac_objext
5084f823 3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
b30fcfae 3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 ac_cv_prog_cc_stdc=$ac_arg
3572break
b30fcfae 3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577fi
5084f823 3578rm -f conftest.err conftest.$ac_objext
b30fcfae 3579done
5084f823 3580rm -f conftest.$ac_ext conftest.$ac_objext
b30fcfae 3581CC=$ac_save_CC
3582
3583fi
5084f823 3584
3585case "x$ac_cv_prog_cc_stdc" in
3586 x|xno)
3587 echo "$as_me:$LINENO: result: none needed" >&5
3588echo "${ECHO_T}none needed" >&6 ;;
b30fcfae 3589 *)
5084f823 3590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3592 CC="$CC $ac_cv_prog_cc_stdc" ;;
b30fcfae 3593esac
3594
5084f823 3595# Some people use a C++ compiler to compile C. Since we use `exit',
3596# in C++ we need to declare it. In case someone uses the same compiler
3597# for both compiling C and C++ we need to have the C++ compiler decide
3598# the declaration of exit, since it's the most demanding environment.
3599cat >conftest.$ac_ext <<_ACEOF
3600#ifndef __cplusplus
3601 choke me
3602#endif
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 for ac_declaration in \
3627 '' \
3628 'extern "C" void std::exit (int) throw (); using std::exit;' \
3629 'extern "C" void std::exit (int); using std::exit;' \
3630 'extern "C" void exit (int) throw ();' \
3631 'extern "C" void exit (int);' \
3632 'void exit (int);'
3633do
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640$ac_declaration
3641#include <stdlib.h>
3642int
3643main ()
3644{
3645exit (42);
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 :
3673else
3674 echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677continue
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680 cat >conftest.$ac_ext <<_ACEOF
3681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
3686$ac_declaration
3687int
3688main ()
3689{
3690exit (42);
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 break
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
3723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3724done
3725rm -f conftest*
3726if test -n "$ac_declaration"; then
3727 echo '#ifdef __cplusplus' >>confdefs.h
3728 echo $ac_declaration >>confdefs.h
3729 echo '#endif' >>confdefs.h
3730fi
3731
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736fi
3737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744ac_ext=cc
3745ac_cpp='$CXXCPP $CPPFLAGS'
3746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3749if test -n "$ac_tool_prefix"; then
3750 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3751 do
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754echo "$as_me:$LINENO: checking for $ac_word" >&5
3755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756if test "${ac_cv_prog_CXX+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 if test -n "$CXX"; then
3760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773done
3774done
8e1fea1a 3775
eae5b2bc 3776fi
3777fi
3778CXX=$ac_cv_prog_CXX
3779if test -n "$CXX"; then
5084f823 3780 echo "$as_me:$LINENO: result: $CXX" >&5
3781echo "${ECHO_T}$CXX" >&6
eae5b2bc 3782else
5084f823 3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
eae5b2bc 3785fi
3786
3787 test -n "$CXX" && break
3788 done
3789fi
3790if test -z "$CXX"; then
3791 ac_ct_CXX=$CXX
5084f823 3792 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
eae5b2bc 3793do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
5084f823 3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
eae5b2bc 3798if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 if test -n "$ac_ct_CXX"; then
3802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eae5b2bc 3811 ac_cv_prog_ac_ct_CXX="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
3817
3818fi
3819fi
3820ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821if test -n "$ac_ct_CXX"; then
5084f823 3822 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3823echo "${ECHO_T}$ac_ct_CXX" >&6
eae5b2bc 3824else
5084f823 3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
eae5b2bc 3827fi
3828
3829 test -n "$ac_ct_CXX" && break
3830done
5084f823 3831test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
eae5b2bc 3832
5084f823 3833 CXX=$ac_ct_CXX
eae5b2bc 3834fi
3835
5084f823 3836
eae5b2bc 3837# Provide some information about the compiler.
5084f823 3838echo "$as_me:$LINENO:" \
3839 "checking for C++ compiler version" >&5
eae5b2bc 3840ac_compiler=`set X $ac_compile; echo $2`
5084f823 3841{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3842 (eval $ac_compiler --version </dev/null >&5) 2>&5
eae5b2bc 3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
5084f823 3846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3847 (eval $ac_compiler -v </dev/null >&5) 2>&5
eae5b2bc 3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
5084f823 3851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3852 (eval $ac_compiler -V </dev/null >&5) 2>&5
eae5b2bc 3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856
5084f823 3857echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3858echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
eae5b2bc 3859if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
3868
3869int
3870main ()
3871{
3872#ifndef __GNUC__
3873 choke me
3874#endif
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
3880rm -f conftest.$ac_objext
5084f823 3881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882 (eval $ac_compile) 2>conftest.er1
eae5b2bc 3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_cxx_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
eae5b2bc 3902 ac_compiler_gnu=yes
3903else
3904 echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
5084f823 3907ac_compiler_gnu=no
eae5b2bc 3908fi
5084f823 3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 3910ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3911
3912fi
5084f823 3913echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3914echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
eae5b2bc 3915GXX=`test $ac_compiler_gnu = yes && echo yes`
3916ac_test_CXXFLAGS=${CXXFLAGS+set}
3917ac_save_CXXFLAGS=$CXXFLAGS
5084f823 3918CXXFLAGS="-g"
3919echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3920echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
eae5b2bc 3921if test "${ac_cv_prog_cxx_g+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
5084f823 3924 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930
3931int
3932main ()
3933{
3934
3935 ;
3936 return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext
5084f823 3940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>conftest.er1
eae5b2bc 3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 3947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_cxx_werror_flag"
3949 || test ! -s conftest.err'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; } &&
3955 { ac_try='test -s conftest.$ac_objext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
eae5b2bc 3961 ac_cv_prog_cxx_g=yes
3962else
3963 echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
5084f823 3966ac_cv_prog_cxx_g=no
3967fi
3968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3969fi
3970echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3971echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3972if test "$ac_test_CXXFLAGS" = set; then
3973 CXXFLAGS=$ac_save_CXXFLAGS
3974elif test $ac_cv_prog_cxx_g = yes; then
3975 if test "$GXX" = yes; then
3976 CXXFLAGS="-g -O2"
3977 else
3978 CXXFLAGS="-g"
3979 fi
3980else
3981 if test "$GXX" = yes; then
3982 CXXFLAGS="-O2"
3983 else
3984 CXXFLAGS=
3985 fi
3986fi
3987for ac_declaration in \
3988 '' \
3989 'extern "C" void std::exit (int) throw (); using std::exit;' \
3990 'extern "C" void std::exit (int); using std::exit;' \
3991 'extern "C" void exit (int) throw ();' \
3992 'extern "C" void exit (int);' \
3993 'void exit (int);'
3994do
3995 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
5084f823 4001$ac_declaration
4002#include <stdlib.h>
eae5b2bc 4003int
4004main ()
4005{
5084f823 4006exit (42);
eae5b2bc 4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext
5084f823 4012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_cxx_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
eae5b2bc 4033 :
4034else
4035 echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
2f8725b0 4037
5084f823 4038continue
4039fi
4040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 cat >conftest.$ac_ext <<_ACEOF
eae5b2bc 4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
5084f823 4047$ac_declaration
eae5b2bc 4048int
4049main ()
4050{
5084f823 4051exit (42);
eae5b2bc 4052 ;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext
5084f823 4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
eae5b2bc 4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_cxx_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 break
eae5b2bc 4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
570af75a 4083fi
5084f823 4084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085done
4086rm -f conftest*
4087if test -n "$ac_declaration"; then
4088 echo '#ifdef __cplusplus' >>confdefs.h
4089 echo $ac_declaration >>confdefs.h
4090 echo '#endif' >>confdefs.h
eae5b2bc 4091fi
4092
4093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099
4100# We must set the default linker to the linker used by gcc for the correct
4101# operation of libtool. If LD is not defined and we are using gcc, try to
4102# set the LD default to the ld used by gcc.
4103if test -z "$LD"; then
4104 if test "$GCC" = yes; then
4105 case $build in
4106 *-*-mingw*)
4107 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4108 *)
4109 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4110 esac
4111 case $gcc_prog_ld in
4112 # Accept absolute paths.
4113 [\\/]* | [A-Za-z]:[\\/]*)
4114 LD="$gcc_prog_ld" ;;
4115 esac
4116 fi
2f8725b0 4117fi
4118
2f8725b0 4119
4120
8e1fea1a 4121
b30fcfae 4122if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 4124set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5084f823 4125echo "$as_me:$LINENO: checking for $ac_word" >&5
4126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4127if test "${ac_cv_prog_GNATBIND+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4129else
4130 if test -n "$GNATBIND"; then
4131 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4132else
b30fcfae 4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4140 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
4145done
4146
8e1fea1a 4147fi
4148fi
b30fcfae 4149GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 4150if test -n "$GNATBIND"; then
5084f823 4151 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4152echo "${ECHO_T}$GNATBIND" >&6
8e1fea1a 4153else
5084f823 4154 echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6
8e1fea1a 4156fi
4157
b30fcfae 4158fi
8e1fea1a 4159if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 4160 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 4161 # Extract the first word of "gnatbind", so it can be a program name with args.
4162set dummy gnatbind; ac_word=$2
5084f823 4163echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4165if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4167else
b30fcfae 4168 if test -n "$ac_ct_GNATBIND"; then
4169 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 4170else
b30fcfae 4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4178 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183done
4184
5084f823 4185 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
8e1fea1a 4186fi
4187fi
b30fcfae 4188ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4189if test -n "$ac_ct_GNATBIND"; then
5084f823 4190 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4191echo "${ECHO_T}$ac_ct_GNATBIND" >&6
8e1fea1a 4192else
5084f823 4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
8e1fea1a 4195fi
4196
5084f823 4197 GNATBIND=$ac_ct_GNATBIND
8e1fea1a 4198else
b30fcfae 4199 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 4200fi
4201
b30fcfae 4202if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 4204set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5084f823 4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4207if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
a18b2c54 4209else
4210 if test -n "$GNATMAKE"; then
4211 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4212else
b30fcfae 4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4220 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225done
4226
a18b2c54 4227fi
4228fi
b30fcfae 4229GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 4230if test -n "$GNATMAKE"; then
5084f823 4231 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4232echo "${ECHO_T}$GNATMAKE" >&6
a18b2c54 4233else
5084f823 4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
a18b2c54 4236fi
4237
b30fcfae 4238fi
a18b2c54 4239if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 4240 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 4241 # Extract the first word of "gnatmake", so it can be a program name with args.
4242set dummy gnatmake; ac_word=$2
5084f823 4243echo "$as_me:$LINENO: checking for $ac_word" >&5
4244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 4245if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
a18b2c54 4247else
b30fcfae 4248 if test -n "$ac_ct_GNATMAKE"; then
4249 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 4250else
b30fcfae 4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 4258 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262done
4263done
4264
5084f823 4265 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
a18b2c54 4266fi
4267fi
b30fcfae 4268ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4269if test -n "$ac_ct_GNATMAKE"; then
5084f823 4270 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4271echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
a18b2c54 4272else
5084f823 4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
a18b2c54 4275fi
4276
5084f823 4277 GNATMAKE=$ac_ct_GNATMAKE
a18b2c54 4278else
b30fcfae 4279 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 4280fi
4281
5084f823 4282echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4283echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
b30fcfae 4284if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
8e1fea1a 4286else
4287 cat >conftest.adb <<EOF
4288procedure conftest is begin null; end conftest;
4289EOF
4290acx_cv_cc_gcc_supports_ada=no
4291# There is a bug in old released versions of GCC which causes the
4292# driver to exit successfully when the appropriate language module
4293# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4294# Therefore we must check for the error message as well as an
4295# unsuccessful exit.
216de822 4296# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4297# given a .adb file, but produce no object file. So we must check
4298# if an object file was really produced to guard against this.
8e1fea1a 4299errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 4300if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 4301 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 4302fi
4303rm -f conftest.*
4304fi
5084f823 4305echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4306echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
8e1fea1a 4307
a18b2c54 4308if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 4309 have_gnat=yes
4310else
4311 have_gnat=no
4312fi
4313
5084f823 4314echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4315echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
b30fcfae 4316if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
7bcc3b4a 4318else
4319 echo abfoo >t1
4320 echo cdfoo >t2
4321 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 4322 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4323 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4324 :
4325 else
4326 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4327 fi
4328 fi
7bcc3b4a 4329 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4330 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 4331 :
7bcc3b4a 4332 else
4333 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4334 fi
4335 fi
4336 rm t1 t2
4337
4338fi
5084f823 4339echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4340echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7bcc3b4a 4341do_compare="$gcc_cv_prog_cmp_skip"
4342
4343
8e1fea1a 4344
5ca838b8 4345# Check for GMP and MPFR
d45318b3 4346gmplibs="-lmpfr -lgmp"
4ee9c684 4347gmpinc=
d45318b3 4348have_gmp=no
4349
5ca838b8 4350# Specify a location for mpfr
4351# check for this first so it ends up on the link line before gmp.
b30fcfae 4352
5084f823 4353# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
5ca838b8 4354if test "${with_mpfr_dir+set}" = set; then
5084f823 4355 withval="$with_mpfr_dir"
4356 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
b30fcfae 4357Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4358echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4359Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4360 { (exit 1); exit 1; }; }
5084f823 4361fi;
5ca838b8 4362
4363
5084f823 4364# Check whether --with-mpfr or --without-mpfr was given.
5ca838b8 4365if test "${with_mpfr+set}" = set; then
5084f823 4366 withval="$with_mpfr"
b30fcfae 4367
5084f823 4368fi;
5ca838b8 4369
5084f823 4370# Check whether --with-mpfr_include or --without-mpfr_include was given.
a5144c1d 4371if test "${with_mpfr_include+set}" = set; then
5084f823 4372 withval="$with_mpfr_include"
b30fcfae 4373
5084f823 4374fi;
a5144c1d 4375
5084f823 4376# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
a5144c1d 4377if test "${with_mpfr_lib+set}" = set; then
5084f823 4378 withval="$with_mpfr_lib"
a5144c1d 4379
5084f823 4380fi;
5ca838b8 4381
4382if test "x$with_mpfr" != x; then
4383 gmplibs="-L$with_mpfr/lib $gmplibs"
4384 gmpinc="-I$with_mpfr/include"
4385fi
a5144c1d 4386if test "x$with_mpfr_include" != x; then
4387 gmpinc="-I$with_mpfr_include"
4388fi
4389if test "x$with_mpfr_lib" != x; then
4390 gmplibs="-L$with_mpfr_lib $gmplibs"
4391fi
d45318b3 4392if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4393 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4394 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4395 # Do not test the mpfr version. Assume that it is sufficient, since
4396 # it is in the source tree, and the library has not been built yet
4397 # but it would be included on the link line in the version check below
4398 # hence making the test fail.
4399 have_gmp=yes
4400fi
5ca838b8 4401
4ee9c684 4402# Specify a location for gmp
b30fcfae 4403
5084f823 4404# Check whether --with-gmp-dir or --without-gmp-dir was given.
4ee9c684 4405if test "${with_gmp_dir+set}" = set; then
5084f823 4406 withval="$with_gmp_dir"
4407 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
b30fcfae 4408Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4409echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4410Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4411 { (exit 1); exit 1; }; }
5084f823 4412fi;
4ee9c684 4413
4ee9c684 4414
5084f823 4415# Check whether --with-gmp or --without-gmp was given.
4ee9c684 4416if test "${with_gmp+set}" = set; then
5084f823 4417 withval="$with_gmp"
b30fcfae 4418
5084f823 4419fi;
4ee9c684 4420
5084f823 4421# Check whether --with-gmp_include or --without-gmp_include was given.
a5144c1d 4422if test "${with_gmp_include+set}" = set; then
5084f823 4423 withval="$with_gmp_include"
b30fcfae 4424
5084f823 4425fi;
a5144c1d 4426
5084f823 4427# Check whether --with-gmp_lib or --without-gmp_lib was given.
a5144c1d 4428if test "${with_gmp_lib+set}" = set; then
5084f823 4429 withval="$with_gmp_lib"
a5144c1d 4430
5084f823 4431fi;
a5144c1d 4432
4ee9c684 4433
5ca838b8 4434if test "x$with_gmp" != x; then
4435 gmplibs="-L$with_gmp/lib $gmplibs"
4436 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 4437fi
a5144c1d 4438if test "x$with_gmp_include" != x; then
4439 gmpinc="-I$with_gmp_include $gmpinc"
4440fi
4441if test "x$with_gmp_lib" != x; then
4442 gmplibs="-L$with_gmp_lib $gmplibs"
4443fi
d45318b3 4444if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4445 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4446 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4447 # Do not test the gmp version. Assume that it is sufficient, since
4448 # it is in the source tree, and the library has not been built yet
4449 # but it would be included on the link line in the version check below
4450 # hence making the test fail.
4451 have_gmp=yes
4452fi
4ee9c684 4453
16c9b2e3 4454if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 4455 have_gmp=yes
4456 saved_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS $gmpinc"
4458 # Check GMP actually works
5084f823 4459 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4460echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
b30fcfae 4461
4462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4ee9c684 4468#include "gmp.h"
b30fcfae 4469int
4470main ()
4471{
4ee9c684 4472
d45318b3 4473 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4474 choke me
4475 #endif
b30fcfae 4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
5084f823 4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
b30fcfae 4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
b30fcfae 4505else
4506 echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
5084f823 4509echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; have_gmp=no
b30fcfae 4511fi
5084f823 4512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 4513
d45318b3 4514 if test x"$have_gmp" = xyes; then
4515 saved_LIBS="$LIBS"
4516 LIBS="$LIBS $gmplibs"
5084f823 4517 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4518echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
b30fcfae 4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
6a086156 4525#include <gmp.h>
d45318b3 4526 #include <mpfr.h>
b30fcfae 4527int
4528main ()
4529{
112f3d57 4530
d45318b3 4531 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4532 choke me
4533 #endif
78a477ad 4534 mpfr_t n;
4535 mpfr_t x;
d45318b3 4536 int t;
78a477ad 4537 mpfr_init (n);
4538 mpfr_init (x);
d45318b3 4539 mpfr_atan2 (n, n, x, GMP_RNDN);
4540 mpfr_erfc (n, x, GMP_RNDN);
4541 mpfr_subnormalize (x, t, GMP_RNDN);
b30fcfae 4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547rm -f conftest.$ac_objext conftest$ac_exeext
5084f823 4548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>conftest.er1
b30fcfae 4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
b30fcfae 4569 cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
0157cc75 4575#include <gmp.h>
d45318b3 4576 #include <mpfr.h>
b30fcfae 4577int
4578main ()
4579{
0157cc75 4580
d45318b3 4581 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4582 choke me
4583 #endif
4584 mpfr_t n; mpfr_init(n);
b30fcfae 4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext conftest$ac_exeext
5084f823 4591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>conftest.er1
b30fcfae 4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag"
4600 || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
b30fcfae 4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
5084f823 4618echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4619echo "${ECHO_T}buggy but acceptable" >&6
b30fcfae 4620fi
5084f823 4621rm -f conftest.err conftest.$ac_objext \
b30fcfae 4622 conftest$ac_exeext conftest.$ac_ext
4623else
4624 echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
5084f823 4627echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; have_gmp=no
b30fcfae 4629fi
5084f823 4630rm -f conftest.err conftest.$ac_objext \
b30fcfae 4631 conftest$ac_exeext conftest.$ac_ext
d45318b3 4632 LIBS="$saved_LIBS"
4633 fi
4634 CFLAGS="$saved_CFLAGS"
4ee9c684 4635
d45318b3 4636 if test x$have_gmp != xyes; then
b30fcfae 4637 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
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/.
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.
4644They may be located in separate packages." >&5
4645echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
0818100b 4646Try the --with-gmp and/or --with-mpfr options to specify their locations.
4647Copies of these libraries' source code can be found at their respective
4648hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
6af0e733 4649See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4650If you obtained GMP and/or MPFR from a vendor distribution package, make
4651sure that you have installed both the libraries and the header files.
b30fcfae 4652They may be located in separate packages." >&2;}
4653 { (exit 1); exit 1; }; }
d45318b3 4654 fi
6a086156 4655fi
4656
5ca838b8 4657# Flags needed for both GMP and/or MPFR
4ee9c684 4658
4659
4660
8e6391a6 4661# By default, C is the only stage 1 language.
9c3a0a29 4662stage1_languages=,c,
2d64c2fd 4663
8e1fea1a 4664# Figure out what language subdirectories are present.
4665# Look if the user specified --enable-languages="..."; if not, use
4666# the environment variable $LANGUAGES if defined. $LANGUAGES might
4667# go away some day.
4668# NB: embedded tabs in this IF block -- do not untabify
4669if test -d ${srcdir}/gcc; then
4670 if test x"${enable_languages+set}" != xset; then
4671 if test x"${LANGUAGES+set}" = xset; then
4672 enable_languages="${LANGUAGES}"
4673 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4674 else
4675 enable_languages=all
4676 fi
4677 else
4678 if test x"${enable_languages}" = x ||
4679 test x"${enable_languages}" = xyes;
4680 then
4681 echo configure.in: --enable-languages needs at least one language argument 1>&2
4682 exit 1
4683 fi
4684 fi
4685 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4686
2c718da0 4687 # 'f95' is the old name for the 'fortran' language. We issue a warning
4688 # and make the substitution.
4689 case ,${enable_languages}, in
4690 *,f95,*)
4691 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4692 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4693 ;;
4694 esac
4695
8e1fea1a 4696 # First scan to see if an enabled language requires some other language.
4697 # We assume that a given config-lang.in will list all the language
4698 # front ends it requires, even if some are required indirectly.
4699 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4700 case ${lang_frag} in
4701 ..) ;;
4702 # The odd quoting in the next line works around
4703 # an apparent bug in bash 1.12 on linux.
4704 ${srcdir}/gcc/[*]/config-lang.in) ;;
4705 *)
4706 # From the config-lang.in, get $language, $lang_requires
4707 language=
4708 lang_requires=
4709 . ${lang_frag}
4710 for other in ${lang_requires} ; do
4711 case ,${enable_languages}, in
4712 *,$other,*) ;;
4713 *,all,*) ;;
4714 *,$language,*)
4715 echo " \`$other' language required by \`$language'; enabling" 1>&2
4716 enable_languages="${enable_languages},${other}"
4717 ;;
4718 esac
4719 done
4720 ;;
4721 esac
4722 done
4723
9c3a0a29 4724 new_enable_languages=,c,
8e1fea1a 4725 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 4726 potential_languages=,c,
8e1fea1a 4727
4728 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4729 case ${lang_frag} in
4730 ..) ;;
4731 # The odd quoting in the next line works around
4732 # an apparent bug in bash 1.12 on linux.
4733 ${srcdir}/gcc/[*]/config-lang.in) ;;
4734 *)
b30fcfae 4735 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 4736 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 4737 language=
4738 target_libs=
4739 lang_dirs=
5dee13c2 4740 subdir_requires=
9c3a0a29 4741 boot_language=no
4742 build_by_default=yes
8e1fea1a 4743 . ${lang_frag}
9c3a0a29 4744 if test x${language} = x; then
4745 echo "${lang_frag} doesn't set \$language." 1>&2
4746 exit 1
4747 fi
4748
4749 case ,${enable_languages}, in
4750 *,${language},*)
8e1fea1a 4751 # Language was explicitly selected; include it.
4752 add_this_lang=yes
4753 ;;
9c3a0a29 4754 *,all,*)
4755 # 'all' was selected, select it if it is a default language
4756 add_this_lang=${build_by_default}
8e1fea1a 4757 ;;
4758 *)
4759 add_this_lang=no
4760 ;;
4761 esac
4ee9c684 4762
5dee13c2 4763 # Disable languages that need other directories if these aren't available.
9333ae0b 4764 for i in $subdir_requires; do
3891e7d9 4765 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5dee13c2 4766 case ,${enable_languages}, in
4767 *,${language},*)
4768 # Specifically requested language; tell them.
b30fcfae 4769 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4770echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4771 { (exit 1); exit 1; }; }
5dee13c2 4772 ;;
4773 *)
4774 # Silently disable.
9c3a0a29 4775 add_this_lang=unsupported
5dee13c2 4776 ;;
4777 esac
4778 done
4779
9c3a0a29 4780 # Disable Ada if no preexisting GNAT is available.
4781 case ,${enable_languages},:${language}:${have_gnat} in
4782 *,${language},*:ada:no)
4783 # Specifically requested language; tell them.
b30fcfae 4784 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4785echo "$as_me: error: GNAT is required to build $language" >&2;}
4786 { (exit 1); exit 1; }; }
9c3a0a29 4787 ;;
4788 *:ada:no)
4789 # Silently disable.
4790 add_this_lang=unsupported
4791 ;;
4792 esac
4793
ff7dcf6a 4794 # Disable a language that is unsupported by the target.
4795 case " $unsupported_languages " in
4796 *" $language "*)
9c3a0a29 4797 add_this_lang=unsupported
ff7dcf6a 4798 ;;
4799 esac
4800
4ee9c684 4801 case $add_this_lang in
9c3a0a29 4802 unsupported)
8e1fea1a 4803 # Remove language-dependent dirs.
2d64c2fd 4804 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4805 ;;
9c3a0a29 4806 no)
4807 # Remove language-dependent dirs; still show language as supported.
4808 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4809 potential_languages="${potential_languages}${language},"
4810 ;;
4811 yes)
4812 new_enable_languages="${new_enable_languages}${language},"
4813 potential_languages="${potential_languages}${language},"
2d64c2fd 4814 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4815 case ${boot_language} in
4816 yes)
aff6cf7b 4817 # Add to (comma-separated) list of stage 1 languages.
9c3a0a29 4818 stage1_languages="${stage1_languages}${language},"
2d64c2fd 4819 ;;
4820 esac
4821 ;;
8e1fea1a 4822 esac
4823 ;;
4824 esac
4825 done
4826
5084f823 4827 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
9c3a0a29 4828if test "${enable_stage1_languages+set}" = set; then
5084f823 4829 enableval="$enable_stage1_languages"
4830 case ,${enable_stage1_languages}, in
9c3a0a29 4831 ,no,|,,)
4832 # Set it to something that will have no effect in the loop below
4833 enable_stage1_languages=c ;;
4834 ,yes,)
4835 enable_stage1_languages=`echo $new_enable_languages | \
4836 sed -e "s/^,//" -e "s/,$//" ` ;;
4837 *,all,*)
4838 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4839 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4840 esac
4841
4842 # Add "good" languages from enable_stage1_languages to stage1_languages,
4843 # while "bad" languages go in missing_languages. Leave no duplicates.
4844 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4845 case $potential_languages in
4846 *,$i,*)
4847 case $stage1_languages in
4848 *,$i,*) ;;
4849 *) stage1_languages="$stage1_languages$i," ;;
4850 esac ;;
4851 *)
4852 case $missing_languages in
4853 *,$i,*) ;;
4854 *) missing_languages="$missing_languages$i," ;;
4855 esac ;;
4856 esac
4857 done
5084f823 4858fi;
9c3a0a29 4859
4860 # Remove leading/trailing commas that were added for simplicity
4861 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 4862 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 4863 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4864 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4865
8e1fea1a 4866 if test "x$missing_languages" != x; then
b30fcfae 4867 { { echo "$as_me:$LINENO: error:
e8bfe1fa 4868The following requested languages could not be built: ${missing_languages}
b30fcfae 4869Supported languages are: ${potential_languages}" >&5
4870echo "$as_me: error:
4871The following requested languages could not be built: ${missing_languages}
4872Supported languages are: ${potential_languages}" >&2;}
4873 { (exit 1); exit 1; }; }
8e1fea1a 4874 fi
8e1fea1a 4875 if test "x$new_enable_languages" != "x$enable_languages"; then
4876 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 4877 enable_languages="$new_enable_languages"
8e1fea1a 4878 fi
9c3a0a29 4879
b30fcfae 4880
b0e9b581 4881 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 4882fi
4883
50996fe5 4884# Handle --disable-<component> generically.
4885for dir in $configdirs $build_configdirs $target_configdirs ; do
4886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4887 if eval test x\${enable_${dirname}} "=" xno ; then
4888 noconfigdirs="$noconfigdirs $dir"
4889 fi
4890done
4891
dd6d3a67 4892# Check for Boehm's garbage collector
5084f823 4893# Check whether --enable-objc-gc or --disable-objc-gc was given.
dd6d3a67 4894if test "${enable_objc_gc+set}" = set; then
5084f823 4895 enableval="$enable_objc_gc"
4896 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
dd6d3a67 4897 *,objc,*:*:yes:*target-boehm-gc*)
b30fcfae 4898 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4899echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4900 { (exit 1); exit 1; }; }
dd6d3a67 4901 ;;
4902esac
5084f823 4903fi;
dd6d3a67 4904
4905# Make sure we only build Boehm's garbage collector if required.
f1716c67 4906case ,${enable_languages},:${enable_objc_gc} in
4907 *,objc,*:yes)
dd6d3a67 4908 # Keep target-boehm-gc if requested for Objective-C.
4909 ;;
dd6d3a67 4910 *)
f1716c67 4911 # Otherwise remove target-boehm-gc depending on target-libjava.
4912 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4913 noconfigdirs="$noconfigdirs target-boehm-gc"
4914 fi
dd6d3a67 4915 ;;
4916esac
4917
e8eddfdd 4918# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4919# $build_configdirs and $target_configdirs.
8e1fea1a 4920# If we have the source for $noconfigdirs entries, add them to $notsupp.
4921
4922notsupp=""
4923for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 4924 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 4925 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4926 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4927 if test -r $srcdir/$dirname/configure ; then
4928 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4929 true
4930 else
4931 notsupp="$notsupp $dir"
4932 fi
4933 fi
4934 fi
e8eddfdd 4935 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4936 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4937 if test -r $srcdir/$dirname/configure ; then
4938 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4939 true
4940 else
4941 notsupp="$notsupp $dir"
4942 fi
4943 fi
4944 fi
8e1fea1a 4945 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4946 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4947 if test -r $srcdir/$dirname/configure ; then
4948 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4949 true
4950 else
4951 notsupp="$notsupp $dir"
4952 fi
4953 fi
4954 fi
4955done
4956
4957# Sometimes the tools are distributed with libiberty but with no other
4958# libraries. In that case, we don't want to build target-libiberty.
0a2e6193 4959# Don't let libgcc imply libiberty either.
8e1fea1a 4960if test -n "${target_configdirs}" ; then
0a2e6193 4961 libgcc=
8e1fea1a 4962 others=
4963 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
0a2e6193 4964 if test "$i" = "libgcc"; then
4965 libgcc=target-libgcc
4966 elif test "$i" != "libiberty" ; then
8e1fea1a 4967 if test -r $srcdir/$i/configure ; then
4968 others=yes;
4969 break;
4970 fi
4971 fi
4972 done
4973 if test -z "${others}" ; then
0a2e6193 4974 target_configdirs=$libgcc
8e1fea1a 4975 fi
4976fi
4977
4978# Quietly strip out all directories which aren't configurable in this tree.
4979# This relies on all configurable subdirectories being autoconfiscated, which
4980# is now the case.
2f8725b0 4981build_configdirs_all="$build_configdirs"
4982build_configdirs=
4983for i in ${build_configdirs_all} ; do
b30fcfae 4984 j=`echo $i | sed -e s/build-//g`
2f8725b0 4985 if test -f ${srcdir}/$j/configure ; then
4986 build_configdirs="${build_configdirs} $i"
4987 fi
4988done
4989
8e1fea1a 4990configdirs_all="$configdirs"
4991configdirs=
4992for i in ${configdirs_all} ; do
4993 if test -f ${srcdir}/$i/configure ; then
4994 configdirs="${configdirs} $i"
4995 fi
4996done
2f8725b0 4997
8e1fea1a 4998target_configdirs_all="$target_configdirs"
4999target_configdirs=
5000for i in ${target_configdirs_all} ; do
b30fcfae 5001 j=`echo $i | sed -e s/target-//g`
8e1fea1a 5002 if test -f ${srcdir}/$j/configure ; then
5003 target_configdirs="${target_configdirs} $i"
5004 fi
5005done
5006
5007# Produce a warning message for the subdirs we can't configure.
5008# This isn't especially interesting in the Cygnus tree, but in the individual
5009# FSF releases, it's important to let people know when their machine isn't
5010# supported by the one or two programs in a package.
5011
5012if test -n "${notsupp}" && test -z "${norecursion}" ; then
5013 # If $appdirs is non-empty, at least one of those directories must still
5014 # be configured, or we error out. (E.g., if the gas release supports a
5015 # specified target in some subdirs but not the gas subdir, we shouldn't
5016 # pretend that all is well.)
5017 if test -n "$appdirs" ; then
5018 for dir in $appdirs ; do
5019 if test -r $dir/Makefile.in ; then
5020 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5021 appdirs=""
5022 break
5023 fi
2f8725b0 5024 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 5025 appdirs=""
5026 break
5027 fi
5028 fi
5029 done
5030 if test -n "$appdirs" ; then
5031 echo "*** This configuration is not supported by this package." 1>&2
5032 exit 1
5033 fi
5034 fi
5035 # Okay, some application will build, or we don't care to check. Still
5036 # notify of subdirs not getting built.
5037 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5038 echo " ${notsupp}" 1>&2
5039 echo " (Any other directories should still work fine.)" 1>&2
5040fi
5041
5042case "$host" in
5043 *msdosdjgpp*)
5044 enable_gdbtk=no ;;
5045esac
5046
eae5b2bc 5047# To find our prefix, in gcc_cv_tool_prefix.
5048
5049# The user is always right.
5050if test "${PATH_SEPARATOR+set}" != set; then
5051 echo "#! /bin/sh" >conf$$.sh
5052 echo "exit 0" >>conf$$.sh
5053 chmod +x conf$$.sh
5054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5055 PATH_SEPARATOR=';'
5056 else
5057 PATH_SEPARATOR=:
5058 fi
5059 rm -f conf$$.sh
5060fi
5061
5062
5063
5064if test "x$exec_prefix" = xNONE; then
5065 if test "x$prefix" = xNONE; then
5066 gcc_cv_tool_prefix=$ac_default_prefix
5067 else
5068 gcc_cv_tool_prefix=$prefix
5069 fi
5070else
5071 gcc_cv_tool_prefix=$exec_prefix
5072fi
5073
5074# If there is no compiler in the tree, use the PATH only. In any
5075# case, if there is no compiler in the tree nobody should use
5076# AS_FOR_TARGET and LD_FOR_TARGET.
5077if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5078 gcc_version=`cat $srcdir/gcc/BASE-VER`
5079 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5080 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5085else
5086 gcc_cv_tool_dirs=
5087fi
5088
5089if test x$build = x$target && test -n "$md_exec_prefix"; then
5090 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5091fi
5092
5093
5094
8e1fea1a 5095copy_dirs=
5096
b30fcfae 5097
5084f823 5098# Check whether --with-build-sysroot or --without-build-sysroot was given.
ffa8502d 5099if test "${with_build_sysroot+set}" = set; then
5084f823 5100 withval="$with_build_sysroot"
5101 if test x"$withval" != x ; then
ffa8502d 5102 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5103 fi
5104else
5105 SYSROOT_CFLAGS_FOR_TARGET=
5084f823 5106fi;
ffa8502d 5107
5108
5f1f2de5 5109
5110# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5111if test "${with_debug_prefix_map+set}" = set; then
5112 withval="$with_debug_prefix_map"
5113 if test x"$withval" != x; then
5114 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5115 for debug_map in $withval; do
5116 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5117 done
5118 fi
5119else
5120 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5121fi;
5122
5123
8e1fea1a 5124# Handle --with-headers=XXX. If the value is not "yes", the contents of
5125# the named directory are copied to $(tooldir)/sys-include.
5126if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5127 if test x${is_cross_compiler} = xno ; then
5128 echo 1>&2 '***' --with-headers is only supported when cross compiling
5129 exit 1
5130 fi
5131 if test x"${with_headers}" != xyes ; then
eae5b2bc 5132 x=${gcc_cv_tool_prefix}
b30fcfae 5133 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 5134 fi
5135fi
5136
5137# Handle --with-libs=XXX. If the value is not "yes", the contents of
5138# the name directories are copied to $(tooldir)/lib. Multiple directories
5139# are permitted.
5140if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5141 if test x${is_cross_compiler} = xno ; then
5142 echo 1>&2 '***' --with-libs is only supported when cross compiling
5143 exit 1
5144 fi
5145 if test x"${with_libs}" != xyes ; then
5146 # Copy the libraries in reverse order, so that files in the first named
5147 # library override files in subsequent libraries.
eae5b2bc 5148 x=${gcc_cv_tool_prefix}
8e1fea1a 5149 for l in ${with_libs}; do
b30fcfae 5150 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 5151 done
5152 fi
5153fi
5154
c47832b1 5155# Set with_gnu_as and with_gnu_ld as appropriate.
5156#
5157# This is done by determining whether or not the appropriate directory
5158# is available, and by checking whether or not specific configurations
5159# have requested that this magic not happen.
b30fcfae 5160#
5161# The command line options always override the explicit settings in
c47832b1 5162# configure.in, and the settings in configure.in override this magic.
5163#
b30fcfae 5164# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 5165# want to do that, then you should use the --without-gnu-as and
5166# --without-gnu-ld options for the configure script.
5167
5168if test x${use_gnu_as} = x &&
5169 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5170 with_gnu_as=yes
5171 extra_host_args="$extra_host_args --with-gnu-as"
5172fi
5173
5174if test x${use_gnu_ld} = x &&
5175 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5176 with_gnu_ld=yes
5177 extra_host_args="$extra_host_args --with-gnu-ld"
5178fi
5179
5180# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5181# can detect this case.
5182
5183if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5184 with_newlib=yes
5185 extra_host_args="$extra_host_args --with-newlib"
5186fi
5187
8e1fea1a 5188# Handle ${copy_dirs}
5189set fnord ${copy_dirs}
5190shift
5191while test $# != 0 ; do
5192 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5193 :
5194 else
5195 echo Copying $1 to $2
5196
5197 # Use the install script to create the directory and all required
5198 # parent directories.
5199 if test -d $2 ; then
5200 :
5201 else
5202 echo >config.temp
5203 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5204 fi
5205
5206 # Copy the directory, assuming we have tar.
5207 # FIXME: Should we use B in the second tar? Not all systems support it.
5208 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5209
5210 # It is the responsibility of the user to correctly adjust all
5211 # symlinks. If somebody can figure out how to handle them correctly
5212 # here, feel free to add the code.
5213
5214 echo $1 > $2/COPIED
5215 fi
5216 shift; shift
5217done
5218
c47832b1 5219# Determine a target-dependent exec_prefix that the installed
5220# gcc will search in. Keep this list sorted by triplet, with
5221# the *-*-osname triplets last.
5222md_exec_prefix=
5223case "${target}" in
5224 alpha*-*-*vms*)
5225 md_exec_prefix=/gnu/lib/gcc-lib
5226 ;;
09c2d953 5227 i[34567]86-pc-msdosdjgpp*)
c47832b1 5228 md_exec_prefix=/dev/env/DJDIR/bin
5229 ;;
09c2d953 5230 i[34567]86-*-sco3.2v5*)
c47832b1 5231 if test $with_gnu_as = yes; then
5232 md_exec_prefix=/usr/gnu/bin
5233 else
5234 md_exec_prefix=/usr/ccs/bin/elf
5235 fi
5236 ;;
5237
5238 mn10300-*-* | \
5239 powerpc-*-chorusos* | \
5240 powerpc*-*-eabi* | \
5241 powerpc*-*-sysv* | \
5242 powerpc*-*-kaos* | \
5243 s390x-ibm-tpf*)
5244 md_exec_prefix=/usr/ccs/bin
5245 ;;
5246 sparc64-*-elf*)
5247 ;;
5248 v850*-*-*)
5249 md_exec_prefix=/usr/ccs/bin
5250 ;;
5251 xtensa-*-elf*)
5252 ;;
5253
5254 *-*-beos* | \
5255 *-*-elf* | \
5256 *-*-hpux* | \
5257 *-*-netware* | \
5258 *-*-nto-qnx* | \
5259 *-*-rtems* | \
5260 *-*-solaris2* | \
09c2d953 5261 *-*-sysv[45]* | \
c47832b1 5262 *-*-vxworks* | \
5263 *-wrs-windiss)
5264 md_exec_prefix=/usr/ccs/bin
5265 ;;
5266esac
5267
71ab34df 5268extra_arflags_for_target=
5269extra_nmflags_for_target=
5270extra_ranlibflags_for_target=
5271target_makefile_frag=/dev/null
5272case "${target}" in
38d7211b 5273 mep*-*-*)
5274 target_makefile_frag="config/mt-mep"
5275 ;;
57c7de11 5276 spu-*-*)
5277 target_makefile_frag="config/mt-spu"
5278 ;;
f8520ad7 5279 mips*-sde-elf*)
5280 target_makefile_frag="config/mt-sde"
5281 ;;
634f7a13 5282 *-*-netware*)
71ab34df 5283 target_makefile_frag="config/mt-netware"
5284 ;;
cb8a7007 5285 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5286 target_makefile_frag="config/mt-gnu"
71ab34df 5287 ;;
5288 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 5289 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 5290 # commands to handle both 32-bit and 64-bit objects. These flags are
5291 # harmless if we're using GNU nm or ar.
5292 extra_arflags_for_target=" -X32_64"
5293 extra_nmflags_for_target=" -B -X32_64"
5294 ;;
5295 *-*-darwin*)
5296 # ranlib from Darwin requires the -c flag to look at common symbols.
5297 extra_ranlibflags_for_target=" -c"
5298 ;;
5299 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5300 target_makefile_frag="config/mt-wince"
5301 ;;
5302esac
5303
5304alphaieee_frag=/dev/null
5305case $target in
5306 alpha*-*-*)
5307 # This just makes sure to use the -mieee option to build target libs.
5308 # This should probably be set individually by each library.
5309 alphaieee_frag="config/mt-alphaieee"
5310 ;;
5311esac
5312
5313# If --enable-target-optspace always use -Os instead of -O2 to build
5314# the target libraries, similarly if it is not specified, use -Os
5315# on selected platforms.
5316ospace_frag=/dev/null
5317case "${enable_target_optspace}:${target}" in
5318 yes:*)
5319 ospace_frag="config/mt-ospace"
5320 ;;
5321 :d30v-*)
5322 ospace_frag="config/mt-d30v"
5323 ;;
5324 :m32r-* | :d10v-* | :fr30-*)
5325 ospace_frag="config/mt-ospace"
5326 ;;
5327 no:* | :*)
5328 ;;
5329 *)
5330 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5331 ;;
5332esac
5333
71ab34df 5334# Default to using --with-stabs for certain targets.
5335if test x${with_stabs} = x ; then
5336 case "${target}" in
d74dd50d 5337 mips*-*-irix[56]*)
71ab34df 5338 ;;
5339 mips*-*-* | alpha*-*-osf*)
5340 with_stabs=yes;
5341 extra_host_args="${extra_host_args} --with-stabs"
5342 ;;
5343 esac
5344fi
5345
5346# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5347# them automatically.
5348case "${host}" in
b30fcfae 5349 hppa*64*-*-hpux11*)
71ab34df 5350 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5351 ;;
5352esac
5353
71ab34df 5354# Some systems (e.g., one of the i386-aix systems the gas testers are
5355# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 5356tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 5357build_tooldir=${tooldir}
5358
71ab34df 5359# Create a .gdbinit file which runs the one in srcdir
5360# and tells GDB to look there for source files.
5361
5362if test -r ${srcdir}/.gdbinit ; then
5363 case ${srcdir} in
5364 .) ;;
5365 *) cat > ./.gdbinit <<EOF
5366# ${NO_EDIT}
5367dir ${srcdir}
5368dir .
5369source ${srcdir}/.gdbinit
5370EOF
5371 ;;
5372 esac
5373fi
5374
71ab34df 5375# Make sure that the compiler is able to generate an executable. If it
5376# can't, we are probably in trouble. We don't care whether we can run the
5377# executable--we might be using a cross compiler--we only care whether it
5378# can be created. At this point the main configure script has set CC.
5379we_are_ok=no
5380echo "int main () { return 0; }" > conftest.c
5381${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5382if test $? = 0 ; then
5383 if test -s conftest || test -s conftest.exe ; then
5384 we_are_ok=yes
5385 fi
b30fcfae 5386fi
71ab34df 5387case $we_are_ok in
5388 no)
5389 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5390 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5391 rm -f conftest*
5392 exit 1
5393 ;;
5394esac
5395rm -f conftest*
5396
5397# The Solaris /usr/ucb/cc compiler does not appear to work.
5398case "${host}" in
5399 sparc-sun-solaris2*)
5400 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5401 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5402 could_use=
5403 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5404 if test -d /opt/cygnus/bin ; then
5405 if test "$could_use" = "" ; then
5406 could_use="/opt/cygnus/bin"
5407 else
5408 could_use="$could_use or /opt/cygnus/bin"
5409 fi
5410 fi
5411 if test "$could_use" = "" ; then
5412 echo "Warning: compilation may fail because you're using"
5413 echo "/usr/ucb/cc. You should change your PATH or CC "
5414 echo "variable and rerun configure."
5415 else
5416 echo "Warning: compilation may fail because you're using"
5417 echo "/usr/ucb/cc, when you should use the C compiler from"
5418 echo "$could_use. You should change your"
5419 echo "PATH or CC variable and rerun configure."
5420 fi
5421 fi
5422 ;;
5423esac
5424
71ab34df 5425case "${host}" in
5426 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
697e01c8 5427 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
71ab34df 5428 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5429esac
5430
5431# Record target_configdirs and the configure arguments for target and
5432# build configuration in Makefile.
5433target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 5434build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
71ab34df 5435
71ab34df 5436# Determine whether gdb needs tk/tcl or not.
5437# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5438# and in that case we want gdb to be built without tk. Ugh!
5439# In fact I believe gdb is the *only* package directly dependent on tk,
5440# so we should be able to put the 'maybe's in unconditionally and
5441# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5442# 100% sure that that's safe though.
8fdaf281 5443
f843f075 5444gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 5445case "$enable_gdbtk" in
5446 no)
5447 GDB_TK="" ;;
8fdaf281 5448 yes)
5449 GDB_TK="${gdb_tk}" ;;
71ab34df 5450 *)
8fdaf281 5451 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5452 # distro. Eventually someone will fix this and move Insight, nee
5453 # gdbtk to a separate directory.
5454 if test -d ${srcdir}/gdb/gdbtk ; then
5455 GDB_TK="${gdb_tk}"
5456 else
5457 GDB_TK=""
5458 fi
5459 ;;
71ab34df 5460esac
415470be 5461CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5462INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 5463
01b41571 5464# Strip out unwanted targets.
6f4f34a7 5465
5466# While at that, we remove Makefiles if we were started for recursive
5467# configuration, so that the top-level Makefile reconfigures them,
5468# like we used to do when configure itself was recursive.
6f4f34a7 5469
01b41571 5470# Loop over modules. $extrasub must be used with care, limiting as
5471# much as possible the usage of range addresses. That's because autoconf
5472# splits the sed script to overcome limits in the number of commands,
5473# and relying on carefully-timed sed passes may turn out to be very hard
5474# to maintain later. In this particular case, you just have to be careful
5475# not to nest @if/@endif pairs, because configure will not warn you at all.
6f4f34a7 5476
5084f823 5477# Check whether --enable-bootstrap or --disable-bootstrap was given.
54f0538b 5478if test "${enable_bootstrap+set}" = set; then
5084f823 5479 enableval="$enable_bootstrap"
5480
54f0538b 5481else
3c782584 5482 enable_bootstrap=default
5084f823 5483fi;
54f0538b 5484
3c782584 5485# Issue errors and warnings for invalid/strange bootstrap combinations.
5486case "$configdirs" in
5487 *gcc*) have_compiler=yes ;;
5488 *) have_compiler=no ;;
5489esac
5490
5491case "$have_compiler:$host:$target:$enable_bootstrap" in
5492 *:*:*:no) ;;
5493
98777423 5494 # Default behavior. Enable bootstrap if we have a compiler
3c782584 5495 # and we are in a native configuration.
5496 yes:$build:$build:default)
98777423 5497 enable_bootstrap=yes ;;
3c782584 5498
5499 *:*:*:default)
5500 enable_bootstrap=no ;;
5501
5502 # We have a compiler and we are in a native configuration, bootstrap is ok
0c8a85c6 5503 yes:$build:$build:yes)
3c782584 5504 ;;
5505
5506 # Other configurations, but we have a compiler. Assume the user knows
5507 # what he's doing.
0c8a85c6 5508 yes:*:*:yes)
b30fcfae 5509 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5510echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
3c782584 5511 ;;
5512
5513 # No compiler: if they passed --enable-bootstrap explicitly, fail
0c8a85c6 5514 no:*:*:yes)
b30fcfae 5515 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5516echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5517 { (exit 1); exit 1; }; } ;;
3c782584 5518
5519 # Fail if wrong command line
5520 *)
b30fcfae 5521 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5522echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5523 { (exit 1); exit 1; }; }
3c782584 5524 ;;
5525esac
5526
5527# Adjust the toplevel makefile according to whether bootstrap was selected.
54f0538b 5528case "$enable_bootstrap" in
5529 yes)
93f93279 5530 bootstrap_suffix=bootstrap ;;
54f0538b 5531 no)
93f93279 5532 bootstrap_suffix=no-bootstrap ;;
54f0538b 5533esac
5534
2f8725b0 5535for module in ${build_configdirs} ; do
93f93279 5536 if test -z "${no_recursion}" \
5537 && test -f ${build_subdir}/${module}/Makefile; then
5538 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5539 rm -f ${build_subdir}/${module}/Makefile
5540 fi
5541 extrasub="$extrasub
5542/^@if build-$module\$/d
5543/^@endif build-$module\$/d
5544/^@if build-$module-$bootstrap_suffix\$/d
5545/^@endif build-$module-$bootstrap_suffix\$/d"
5546done
5547for module in ${configdirs} ; do
9c19a746 5548 if test -z "${no_recursion}"; then
35d84d10 5549 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 5550 if test -f ${file}; then
5551 echo 1>&2 "*** removing ${file} to force reconfigure"
5552 rm -f ${file}
5553 fi
5554 done
93f93279 5555 fi
5556 extrasub="$extrasub
5557/^@if $module\$/d
5558/^@endif $module\$/d
5559/^@if $module-$bootstrap_suffix\$/d
5560/^@endif $module-$bootstrap_suffix\$/d"
5561done
5562for module in ${target_configdirs} ; do
5563 if test -z "${no_recursion}" \
5564 && test -f ${target_subdir}/${module}/Makefile; then
5565 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5566 rm -f ${target_subdir}/${module}/Makefile
5567 fi
5568 extrasub="$extrasub
5569/^@if target-$module\$/d
5570/^@endif target-$module\$/d
5571/^@if target-$module-$bootstrap_suffix\$/d
5572/^@endif target-$module-$bootstrap_suffix\$/d"
5573done
5574
01b41571 5575extrasub="$extrasub
5576/^@if /,/^@endif /d"
71ab34df 5577
5578# Create the serialization dependencies. This uses a temporary file.
5579
5084f823 5580# Check whether --enable-serial-configure or --disable-serial-configure was given.
11d8013a 5581if test "${enable_serial_configure+set}" = set; then
5084f823 5582 enableval="$enable_serial_configure"
11d8013a 5583
5084f823 5584fi;
11d8013a 5585
622c1fa9 5586case ${enable_serial_configure} in
5587 yes)
5588 enable_serial_build_configure=yes
5589 enable_serial_host_configure=yes
5590 enable_serial_target_configure=yes
5591 ;;
5592esac
5593
71ab34df 5594# These force 'configure's to be done one at a time, to avoid problems
5595# with contention over a shared config.cache.
5596rm -f serdep.tmp
11d8013a 5597echo '# serdep.tmp' > serdep.tmp
71ab34df 5598olditem=
622c1fa9 5599test "x${enable_serial_build_configure}" = xyes &&
71ab34df 5600for item in ${build_configdirs} ; do
5601 case ${olditem} in
5602 "") ;;
11d8013a 5603 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 5604 esac
5605 olditem=${item}
5606done
5607olditem=
622c1fa9 5608test "x${enable_serial_host_configure}" = xyes &&
71ab34df 5609for item in ${configdirs} ; do
5610 case ${olditem} in
5611 "") ;;
11d8013a 5612 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 5613 esac
5614 olditem=${item}
5615done
5616olditem=
622c1fa9 5617test "x${enable_serial_target_configure}" = xyes &&
71ab34df 5618for item in ${target_configdirs} ; do
5619 case ${olditem} in
5620 "") ;;
11d8013a 5621 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 5622 esac
5623 olditem=${item}
5624done
5625serialization_dependencies=serdep.tmp
5626
5627
11d8013a 5628# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 5629# target, nonopt, and variable assignments. These are the ones we
5630# might not want to pass down to subconfigures. Also strip
5631# program-prefix, program-suffix, and program-transform-name, so that
5632# we can pass down a consistent program-transform-name.
5633baseargs=
5634keep_next=no
5635skip_next=no
5636eval "set -- $ac_configure_args"
4ff792a4 5637for ac_arg
5638do
b30fcfae 5639 if test X"$skip_next" = X"yes"; then
5640 skip_next=no
5641 continue
5642 fi
5643 if test X"$keep_next" = X"yes"; then
5644 case $ac_arg in
5645 *\'*)
5646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5647 esac
5648 baseargs="$baseargs '$ac_arg'"
5649 keep_next=no
5650 continue
5651 fi
5652
5653 # Handle separated arguments. Based on the logic generated by
5654 # autoconf 2.59.
5655 case $ac_arg in
5656 *=* | --config-cache | -C | -disable-* | --disable-* \
5657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5659 | -with-* | --with-* | -without-* | --without-* | --x)
5660 separate_arg=no
5661 ;;
5662 -*)
5663 separate_arg=yes
5664 ;;
5665 *)
5666 separate_arg=no
5667 ;;
5668 esac
5669
5670 case "$ac_arg" in
5671 --no*)
5672 continue
5673 ;;
5674 --c* | \
5675 --sr* | \
5676 --ho* | \
5677 --bu* | \
5678 --t* | \
5679 --program-* | \
5680 -cache_file* | \
5681 -srcdir* | \
5682 -host* | \
5683 -build* | \
5684 -target* | \
5685 -program-prefix* | \
5686 -program-suffix* | \
5687 -program-transform-name* )
5688 skip_next=$separate_arg
5689 continue
5690 ;;
5691 -*)
5692 # An option. Add it.
5693 case $ac_arg in
5694 *\'*)
5695 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5696 esac
5697 baseargs="$baseargs '$ac_arg'"
5698 keep_next=$separate_arg
5699 ;;
5700 *)
5701 # Either a variable assignment, or a nonopt (triplet). Don't
5702 # pass it down; let the Makefile handle this.
5703 continue
5704 ;;
5705 esac
5706done
5707# Remove the initial space we just introduced and, as these will be
5708# expanded by make, quote '$'.
5709baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 5710
fbfea1fa 5711# Add in --program-transform-name, after --program-prefix and
5712# --program-suffix have been applied to it. Autoconf has already
5713# doubled dollar signs and backslashes in program_transform_name; we want
5714# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 5715# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 5716# Also, because we want to override the logic in subdir configure scripts to
5717# choose program_transform_name, replace any s,x,x, with s,y,y,.
5718sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5719${program_transform_name}
5720EOF_SED
5721gcc_transform_name=`cat conftestsed.out`
5722rm -f conftestsed.out
5723baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 5724if test "$silent" = yes; then
5725 baseargs="$baseargs --silent"
5726fi
fbfea1fa 5727
71ab34df 5728# For the build-side libraries, we just need to pretend we're native,
5729# and not use the same cache file. Multilibs are neither needed nor
5730# desired.
d45318b3 5731build_configargs="--cache-file=../config.cache ${baseargs}"
71ab34df 5732
5733# For host modules, accept cache file option, or specification as blank.
5734case "${cache_file}" in
5735"") # empty
5736 cache_file_option="" ;;
5737/* | [A-Za-z]:[\\/]* ) # absolute path
5738 cache_file_option="--cache-file=${cache_file}" ;;
5739*) # relative path
5740 cache_file_option="--cache-file=../${cache_file}" ;;
5741esac
5742
ba1081ef 5743# Host dirs don't like to share a cache file either, horribly enough.
5744# This seems to be due to autoconf 2.5x stupidity.
d45318b3 5745host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 5746
5747target_configargs=${baseargs}
5748
5749# Passing a --with-cross-host argument lets the target libraries know
5750# whether they are being built with a cross-compiler or being built
5751# native. However, it would be better to use other mechanisms to make the
5752# sorts of decisions they want to make on this basis. Please consider
5753# this option to be deprecated. FIXME.
5754if test x${is_cross_compiler} = xyes ; then
b30fcfae 5755 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 5756fi
5757
5758# Default to --enable-multilib.
5759if test x${enable_multilib} = x ; then
5760 target_configargs="--enable-multilib ${target_configargs}"
5761fi
5762
5763# Pass --with-newlib if appropriate. Note that target_configdirs has
5764# changed from the earlier setting of with_newlib.
5765if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5766 target_configargs="--with-newlib ${target_configargs}"
5767fi
5768
74fef112 5769# Different target subdirs use different values of certain variables
5770# (notably CXX). Worse, multilibs use *lots* of different values.
5771# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5772# it doesn't automatically accept command-line overrides of them.
5773# This means it's not safe for target subdirs to share a cache file,
5774# which is disgusting, but there you have it. Hopefully this can be
5775# fixed in future. It's still worthwhile to use a cache file for each
5776# directory. I think.
5777
a8abbd9d 5778# Pass the appropriate --build, --host, --target and --cache-file arguments.
5779# We need to pass --target, as newer autoconf's requires consistency
5780# for target_alias and gcc doesn't manage it consistently.
d45318b3 5781target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 5782
71ab34df 5783FLAGS_FOR_TARGET=
5784case " $target_configdirs " in
5785 *" newlib "*)
5786 case " $target_configargs " in
5787 *" --with-newlib "*)
5788 case "$target" in
5789 *-cygwin*)
d957c480 5790 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 5791 esac
5792
5793 # If we're not building GCC, don't discard standard headers.
5794 if test -d ${srcdir}/gcc; then
5795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5796
5797 if test "${build}" != "${host}"; then
5798 # On Canadian crosses, CC_FOR_TARGET will have already been set
5799 # by `configure', so we won't have an opportunity to add -Bgcc/
5800 # to it. This is right: we don't want to search that directory
5801 # for binaries, but we want the header files in there, so add
5802 # them explicitly.
c1eb9e31 5803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
71ab34df 5804
5805 # Someone might think of using the pre-installed headers on
5806 # Canadian crosses, in case the installed compiler is not fully
5807 # compatible with the compiler being built. In this case, it
5808 # would be better to flag an error than risking having
5809 # incompatible object files being constructed. We can't
5810 # guarantee that an error will be flagged, but let's hope the
5811 # compiler will do it, when presented with incompatible header
5812 # files.
5813 fi
5814 fi
5815
5816 case "${target}-${is_cross_compiler}" in
f74ea578 5817 i[3456789]86-*-linux*-no)
71ab34df 5818 # Here host == target, so we don't need to build gcc,
5819 # so we don't want to discard standard headers.
5820 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5821 ;;
5822 *)
5823 # If we're building newlib, use its generic headers last, but search
5824 # for any libc-related directories first (so make it the last -B
5825 # switch).
5826 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 5827
5828 # If we're building libgloss, find the startup file, simulator library
5829 # and linker script.
5830 case " $target_configdirs " in
5831 *" libgloss "*)
5832 # Look for startup file, simulator library and maybe linker script.
5833 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5834 # Look for libnosys.a in case the target needs it.
5835 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5836 # Most targets have the linker script in the source directory.
5837 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5838 ;;
5839 esac
71ab34df 5840 ;;
5841 esac
5842 ;;
5843 esac
5844 ;;
5845esac
d6d689df 5846case "$target" in
5847*-mingw*)
5848 # Can't be handled as Cygwin above since Mingw does not use newlib.
5849 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' ;;
5850esac
71ab34df 5851
d8e9ea04 5852# Allow the user to override the flags for
5853# our build compiler if desired.
5854CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5855
71ab34df 5856# On Canadian crosses, we'll be searching the right directories for
5857# the previously-installed cross compiler, so don't bother to add
5858# flags for directories within the install tree of the compiler
5859# being built; programs in there won't even run.
5860if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5861 # Search for pre-installed headers if nothing else fits.
5750c7d4 5862 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 5863fi
5864
5865if test "x${use_gnu_ld}" = x &&
5866 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5867 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 5868 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 5869fi
5870
24714a39 5871# Search for other target-specific linker scripts and such.
5872case "${target}" in
38d7211b 5873 mep*)
5874 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5875 ;;
24714a39 5876esac
5877
71ab34df 5878# Makefile fragments.
03c65091 5879for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5880do
5881 eval fragval=\$$frag
5882 if test $fragval != /dev/null; then
5883 eval $frag=${srcdir}/$fragval
5884 fi
5885done
71ab34df 5886
5887
5888
5889
5890
5891# Miscellanea: directories, flags, etc.
5892
5893
5894
5895
5896
5897
5898
2f8725b0 5899# Build module lists & subconfigure args.
71ab34df 5900
5901
5902
f5aebe3e 5903# Host module lists & subconfigure args.
5904
5905
5906
5907# Target module lists & subconfigure args.
5908
5909
5910
5911# Build tools.
5912
5913
5914
5915# Generate default definitions for YACC, M4, LEX and other programs that run
5916# on the build machine. These are used if the Makefile can't locate these
5917# programs in objdir.
5918MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5919
5920for ac_prog in 'bison -y' byacc yacc
5921do
b30fcfae 5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 5923set dummy $ac_prog; ac_word=$2
5084f823 5924echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 5926if test "${ac_cv_prog_YACC+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 5928else
5929 if test -n "$YACC"; then
5930 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5931else
b30fcfae 5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5939 ac_cv_prog_YACC="$ac_prog"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944done
5945
f5aebe3e 5946fi
5947fi
b30fcfae 5948YACC=$ac_cv_prog_YACC
f5aebe3e 5949if test -n "$YACC"; then
5084f823 5950 echo "$as_me:$LINENO: result: $YACC" >&5
5951echo "${ECHO_T}$YACC" >&6
f5aebe3e 5952else
5084f823 5953 echo "$as_me:$LINENO: result: no" >&5
5954echo "${ECHO_T}no" >&6
f5aebe3e 5955fi
5956
b30fcfae 5957 test -n "$YACC" && break
f5aebe3e 5958done
5959test -n "$YACC" || YACC="$MISSING bison -y"
5960
5961case " $build_configdirs " in
5962 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5963 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5964esac
5965
5966for ac_prog in bison
5967do
b30fcfae 5968 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 5969set dummy $ac_prog; ac_word=$2
5084f823 5970echo "$as_me:$LINENO: checking for $ac_word" >&5
5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 5972if test "${ac_cv_prog_BISON+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 5974else
5975 if test -n "$BISON"; then
5976 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5977else
b30fcfae 5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 5984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 5985 ac_cv_prog_BISON="$ac_prog"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989done
5990done
5991
f5aebe3e 5992fi
5993fi
b30fcfae 5994BISON=$ac_cv_prog_BISON
f5aebe3e 5995if test -n "$BISON"; then
5084f823 5996 echo "$as_me:$LINENO: result: $BISON" >&5
5997echo "${ECHO_T}$BISON" >&6
f5aebe3e 5998else
5084f823 5999 echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6
f5aebe3e 6001fi
6002
b30fcfae 6003 test -n "$BISON" && break
f5aebe3e 6004done
6005test -n "$BISON" || BISON="$MISSING bison"
6006
6007case " $build_configdirs " in
6008 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6009esac
6010
6011for ac_prog in gm4 gnum4 m4
6012do
b30fcfae 6013 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6014set dummy $ac_prog; ac_word=$2
5084f823 6015echo "$as_me:$LINENO: checking for $ac_word" >&5
6016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6017if test "${ac_cv_prog_M4+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6019else
6020 if test -n "$M4"; then
6021 ac_cv_prog_M4="$M4" # Let the user override the test.
6022else
b30fcfae 6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6030 ac_cv_prog_M4="$ac_prog"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035done
6036
f5aebe3e 6037fi
6038fi
b30fcfae 6039M4=$ac_cv_prog_M4
f5aebe3e 6040if test -n "$M4"; then
5084f823 6041 echo "$as_me:$LINENO: result: $M4" >&5
6042echo "${ECHO_T}$M4" >&6
f5aebe3e 6043else
5084f823 6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
f5aebe3e 6046fi
6047
b30fcfae 6048 test -n "$M4" && break
f5aebe3e 6049done
6050test -n "$M4" || M4="$MISSING m4"
6051
6052case " $build_configdirs " in
6053 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6054esac
6055
6056for ac_prog in flex lex
6057do
b30fcfae 6058 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6059set dummy $ac_prog; ac_word=$2
5084f823 6060echo "$as_me:$LINENO: checking for $ac_word" >&5
6061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6062if test "${ac_cv_prog_LEX+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6064else
6065 if test -n "$LEX"; then
6066 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6067else
b30fcfae 6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6075 ac_cv_prog_LEX="$ac_prog"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079done
6080done
6081
f5aebe3e 6082fi
6083fi
b30fcfae 6084LEX=$ac_cv_prog_LEX
f5aebe3e 6085if test -n "$LEX"; then
5084f823 6086 echo "$as_me:$LINENO: result: $LEX" >&5
6087echo "${ECHO_T}$LEX" >&6
f5aebe3e 6088else
5084f823 6089 echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
f5aebe3e 6091fi
6092
b30fcfae 6093 test -n "$LEX" && break
f5aebe3e 6094done
6095test -n "$LEX" || LEX="$MISSING flex"
6096
6097case " $build_configdirs " in
6098 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6099 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6100esac
6101
6102for ac_prog in flex
6103do
b30fcfae 6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6105set dummy $ac_prog; ac_word=$2
5084f823 6106echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6108if test "${ac_cv_prog_FLEX+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6110else
6111 if test -n "$FLEX"; then
6112 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6113else
b30fcfae 6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6121 ac_cv_prog_FLEX="$ac_prog"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125done
6126done
6127
f5aebe3e 6128fi
6129fi
b30fcfae 6130FLEX=$ac_cv_prog_FLEX
f5aebe3e 6131if test -n "$FLEX"; then
5084f823 6132 echo "$as_me:$LINENO: result: $FLEX" >&5
6133echo "${ECHO_T}$FLEX" >&6
f5aebe3e 6134else
5084f823 6135 echo "$as_me:$LINENO: result: no" >&5
6136echo "${ECHO_T}no" >&6
f5aebe3e 6137fi
6138
b30fcfae 6139 test -n "$FLEX" && break
f5aebe3e 6140done
6141test -n "$FLEX" || FLEX="$MISSING flex"
6142
6143case " $build_configdirs " in
6144 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6145esac
6146
6147for ac_prog in makeinfo
6148do
b30fcfae 6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6150set dummy $ac_prog; ac_word=$2
5084f823 6151echo "$as_me:$LINENO: checking for $ac_word" >&5
6152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6153if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6155else
6156 if test -n "$MAKEINFO"; then
6157 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6158else
b30fcfae 6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6166 ac_cv_prog_MAKEINFO="$ac_prog"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171done
6172
f5aebe3e 6173fi
6174fi
b30fcfae 6175MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 6176if test -n "$MAKEINFO"; then
5084f823 6177 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6178echo "${ECHO_T}$MAKEINFO" >&6
f5aebe3e 6179else
5084f823 6180 echo "$as_me:$LINENO: result: no" >&5
6181echo "${ECHO_T}no" >&6
f5aebe3e 6182fi
6183
b30fcfae 6184 test -n "$MAKEINFO" && break
f5aebe3e 6185done
6186test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6187
6188case " $build_configdirs " in
6189 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6190 *)
6191
ef4a823a 6192 # For an installed makeinfo, we require it to be from texinfo 4.6 or
f5aebe3e 6193 # higher, else we use the "missing" dummy.
6194 if ${MAKEINFO} --version \
ef4a823a 6195 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 6196 :
6197 else
6198 MAKEINFO="$MISSING makeinfo"
6199 fi
6200 ;;
6201
6202esac
71ab34df 6203
f5aebe3e 6204# FIXME: expect and dejagnu may become build tools?
71ab34df 6205
f5aebe3e 6206for ac_prog in expect
6207do
b30fcfae 6208 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6209set dummy $ac_prog; ac_word=$2
5084f823 6210echo "$as_me:$LINENO: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6212if test "${ac_cv_prog_EXPECT+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6214else
6215 if test -n "$EXPECT"; then
6216 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6217else
b30fcfae 6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6225 ac_cv_prog_EXPECT="$ac_prog"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229done
6230done
6231
f5aebe3e 6232fi
6233fi
b30fcfae 6234EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 6235if test -n "$EXPECT"; then
5084f823 6236 echo "$as_me:$LINENO: result: $EXPECT" >&5
6237echo "${ECHO_T}$EXPECT" >&6
f5aebe3e 6238else
5084f823 6239 echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
f5aebe3e 6241fi
71ab34df 6242
b30fcfae 6243 test -n "$EXPECT" && break
f5aebe3e 6244done
6245test -n "$EXPECT" || EXPECT="expect"
71ab34df 6246
f5aebe3e 6247case " $configdirs " in
6248 *" expect "*)
6249 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6250 ;;
6251esac
71ab34df 6252
f5aebe3e 6253for ac_prog in runtest
6254do
b30fcfae 6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 6256set dummy $ac_prog; ac_word=$2
5084f823 6257echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6259if test "${ac_cv_prog_RUNTEST+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6261else
6262 if test -n "$RUNTEST"; then
6263 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 6264else
b30fcfae 6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6272 ac_cv_prog_RUNTEST="$ac_prog"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276done
6277done
6278
f5aebe3e 6279fi
6280fi
b30fcfae 6281RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 6282if test -n "$RUNTEST"; then
5084f823 6283 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6284echo "${ECHO_T}$RUNTEST" >&6
f5aebe3e 6285else
5084f823 6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
f5aebe3e 6288fi
71ab34df 6289
b30fcfae 6290 test -n "$RUNTEST" && break
f5aebe3e 6291done
6292test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 6293
f5aebe3e 6294case " $configdirs " in
6295 *" dejagnu "*)
8d365775 6296 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 6297 ;;
6298esac
71ab34df 6299
6300
71ab34df 6301# Host tools.
bb612911 6302ncn_tool_prefix=
6303test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6304ncn_target_tool_prefix=
6305test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6306
95a05732 6307
6308
6309if test -n "$AR"; then
6310 ac_cv_prog_AR=$AR
6311elif test -n "$ac_cv_prog_AR"; then
6312 AR=$ac_cv_prog_AR
6313fi
6314
6315if test -n "$ac_cv_prog_AR"; then
6316 for ncn_progname in ar; do
6317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6318set dummy ${ncn_progname}; ac_word=$2
5084f823 6319echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6321if test "${ac_cv_prog_AR+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 if test -n "$AR"; then
6325 ac_cv_prog_AR="$AR" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6334 ac_cv_prog_AR="${ncn_progname}"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338done
6339done
6340
6341fi
6342fi
6343AR=$ac_cv_prog_AR
6344if test -n "$AR"; then
5084f823 6345 echo "$as_me:$LINENO: result: $AR" >&5
6346echo "${ECHO_T}$AR" >&6
95a05732 6347else
5084f823 6348 echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
95a05732 6350fi
6351
6352 done
6353fi
6354
6355for ncn_progname in ar; do
768691b5 6356 if test -n "$ncn_tool_prefix"; then
6357 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6358set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6359echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6361if test "${ac_cv_prog_AR+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6363else
6364 if test -n "$AR"; then
6365 ac_cv_prog_AR="$AR" # Let the user override the test.
6366else
b30fcfae 6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6374 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378done
6379done
6380
bb612911 6381fi
6382fi
b30fcfae 6383AR=$ac_cv_prog_AR
bb612911 6384if test -n "$AR"; then
5084f823 6385 echo "$as_me:$LINENO: result: $AR" >&5
6386echo "${ECHO_T}$AR" >&6
bb612911 6387else
5084f823 6388 echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
bb612911 6390fi
6391
768691b5 6392 fi
6393 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6395set dummy ${ncn_progname}; ac_word=$2
5084f823 6396echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6398if test "${ac_cv_prog_AR+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6400else
768691b5 6401 if test -n "$AR"; then
ae48753c 6402 ac_cv_prog_AR="$AR" # Let the user override the test.
6403else
b30fcfae 6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6411 ac_cv_prog_AR="${ncn_progname}"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415done
6416done
6417
bb612911 6418fi
6419fi
b30fcfae 6420AR=$ac_cv_prog_AR
768691b5 6421if test -n "$AR"; then
5084f823 6422 echo "$as_me:$LINENO: result: $AR" >&5
6423echo "${ECHO_T}$AR" >&6
bb612911 6424else
5084f823 6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
bb612911 6427fi
b30fcfae 6428
768691b5 6429 fi
6430 test -n "$ac_cv_prog_AR" && break
6431done
6432
6433if test -z "$ac_cv_prog_AR" ; then
6434 set dummy ar
6435 if test $build = $host ; then
6436 AR="$2"
bb612911 6437 else
768691b5 6438 AR="${ncn_tool_prefix}$2"
bb612911 6439 fi
bb612911 6440fi
6441
95a05732 6442
6443
6444if test -n "$AS"; then
6445 ac_cv_prog_AS=$AS
6446elif test -n "$ac_cv_prog_AS"; then
6447 AS=$ac_cv_prog_AS
6448fi
6449
6450if test -n "$ac_cv_prog_AS"; then
6451 for ncn_progname in as; do
6452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6453set dummy ${ncn_progname}; ac_word=$2
5084f823 6454echo "$as_me:$LINENO: checking for $ac_word" >&5
6455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6456if test "${ac_cv_prog_AS+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
6459 if test -n "$AS"; then
6460 ac_cv_prog_AS="$AS" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6469 ac_cv_prog_AS="${ncn_progname}"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473done
6474done
6475
6476fi
6477fi
6478AS=$ac_cv_prog_AS
6479if test -n "$AS"; then
5084f823 6480 echo "$as_me:$LINENO: result: $AS" >&5
6481echo "${ECHO_T}$AS" >&6
95a05732 6482else
5084f823 6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
95a05732 6485fi
6486
6487 done
6488fi
6489
6490for ncn_progname in as; do
768691b5 6491 if test -n "$ncn_tool_prefix"; then
6492 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6493set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6494echo "$as_me:$LINENO: checking for $ac_word" >&5
6495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6496if test "${ac_cv_prog_AS+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6498else
6499 if test -n "$AS"; then
6500 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 6501else
b30fcfae 6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6509 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513done
6514done
6515
bb612911 6516fi
6517fi
b30fcfae 6518AS=$ac_cv_prog_AS
bb612911 6519if test -n "$AS"; then
5084f823 6520 echo "$as_me:$LINENO: result: $AS" >&5
6521echo "${ECHO_T}$AS" >&6
bb612911 6522else
5084f823 6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
bb612911 6525fi
6526
768691b5 6527 fi
6528 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6530set dummy ${ncn_progname}; ac_word=$2
5084f823 6531echo "$as_me:$LINENO: checking for $ac_word" >&5
6532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6533if test "${ac_cv_prog_AS+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6535else
768691b5 6536 if test -n "$AS"; then
6537 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 6538else
b30fcfae 6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6546 ac_cv_prog_AS="${ncn_progname}"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551done
6552
bb612911 6553fi
6554fi
b30fcfae 6555AS=$ac_cv_prog_AS
768691b5 6556if test -n "$AS"; then
5084f823 6557 echo "$as_me:$LINENO: result: $AS" >&5
6558echo "${ECHO_T}$AS" >&6
bb612911 6559else
5084f823 6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
bb612911 6562fi
b30fcfae 6563
768691b5 6564 fi
6565 test -n "$ac_cv_prog_AS" && break
6566done
6567
6568if test -z "$ac_cv_prog_AS" ; then
6569 set dummy as
6570 if test $build = $host ; then
6571 AS="$2"
bb612911 6572 else
768691b5 6573 AS="${ncn_tool_prefix}$2"
bb612911 6574 fi
bb612911 6575fi
6576
95a05732 6577
6578
6579if test -n "$DLLTOOL"; then
6580 ac_cv_prog_DLLTOOL=$DLLTOOL
6581elif test -n "$ac_cv_prog_DLLTOOL"; then
6582 DLLTOOL=$ac_cv_prog_DLLTOOL
6583fi
6584
6585if test -n "$ac_cv_prog_DLLTOOL"; then
6586 for ncn_progname in dlltool; do
6587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6588set dummy ${ncn_progname}; ac_word=$2
5084f823 6589echo "$as_me:$LINENO: checking for $ac_word" >&5
6590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6591if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594 if test -n "$DLLTOOL"; then
6595 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6604 ac_cv_prog_DLLTOOL="${ncn_progname}"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608done
6609done
6610
6611fi
6612fi
6613DLLTOOL=$ac_cv_prog_DLLTOOL
6614if test -n "$DLLTOOL"; then
5084f823 6615 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6616echo "${ECHO_T}$DLLTOOL" >&6
95a05732 6617else
5084f823 6618 echo "$as_me:$LINENO: result: no" >&5
6619echo "${ECHO_T}no" >&6
95a05732 6620fi
6621
6622 done
6623fi
6624
6625for ncn_progname in dlltool; do
768691b5 6626 if test -n "$ncn_tool_prefix"; then
6627 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6628set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6629echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6631if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6633else
6634 if test -n "$DLLTOOL"; then
6635 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6636else
b30fcfae 6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6644 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648done
6649done
6650
bb612911 6651fi
6652fi
b30fcfae 6653DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 6654if test -n "$DLLTOOL"; then
5084f823 6655 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6656echo "${ECHO_T}$DLLTOOL" >&6
bb612911 6657else
5084f823 6658 echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6
bb612911 6660fi
6661
768691b5 6662 fi
6663 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6665set dummy ${ncn_progname}; ac_word=$2
5084f823 6666echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6668if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6670else
768691b5 6671 if test -n "$DLLTOOL"; then
6672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 6673else
b30fcfae 6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6681 ac_cv_prog_DLLTOOL="${ncn_progname}"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686done
6687
bb612911 6688fi
6689fi
b30fcfae 6690DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 6691if test -n "$DLLTOOL"; then
5084f823 6692 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6693echo "${ECHO_T}$DLLTOOL" >&6
bb612911 6694else
5084f823 6695 echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
bb612911 6697fi
b30fcfae 6698
768691b5 6699 fi
6700 test -n "$ac_cv_prog_DLLTOOL" && break
6701done
6702
6703if test -z "$ac_cv_prog_DLLTOOL" ; then
6704 set dummy dlltool
6705 if test $build = $host ; then
6706 DLLTOOL="$2"
bb612911 6707 else
768691b5 6708 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 6709 fi
bb612911 6710fi
6711
95a05732 6712
6713
6714if test -n "$LD"; then
6715 ac_cv_prog_LD=$LD
6716elif test -n "$ac_cv_prog_LD"; then
6717 LD=$ac_cv_prog_LD
6718fi
6719
6720if test -n "$ac_cv_prog_LD"; then
6721 for ncn_progname in ld; do
6722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6723set dummy ${ncn_progname}; ac_word=$2
5084f823 6724echo "$as_me:$LINENO: checking for $ac_word" >&5
6725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6726if test "${ac_cv_prog_LD+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728else
6729 if test -n "$LD"; then
6730 ac_cv_prog_LD="$LD" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6739 ac_cv_prog_LD="${ncn_progname}"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744done
6745
6746fi
6747fi
6748LD=$ac_cv_prog_LD
6749if test -n "$LD"; then
5084f823 6750 echo "$as_me:$LINENO: result: $LD" >&5
6751echo "${ECHO_T}$LD" >&6
95a05732 6752else
5084f823 6753 echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6
95a05732 6755fi
6756
6757 done
6758fi
6759
6760for ncn_progname in ld; do
768691b5 6761 if test -n "$ncn_tool_prefix"; then
6762 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6763set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6764echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6766if test "${ac_cv_prog_LD+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6768else
6769 if test -n "$LD"; then
6770 ac_cv_prog_LD="$LD" # Let the user override the test.
6771else
b30fcfae 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6779 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784done
6785
bb612911 6786fi
6787fi
b30fcfae 6788LD=$ac_cv_prog_LD
bb612911 6789if test -n "$LD"; then
5084f823 6790 echo "$as_me:$LINENO: result: $LD" >&5
6791echo "${ECHO_T}$LD" >&6
bb612911 6792else
5084f823 6793 echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6
bb612911 6795fi
6796
768691b5 6797 fi
6798 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6800set dummy ${ncn_progname}; ac_word=$2
5084f823 6801echo "$as_me:$LINENO: checking for $ac_word" >&5
6802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6803if test "${ac_cv_prog_LD+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6805else
768691b5 6806 if test -n "$LD"; then
6807 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 6808else
b30fcfae 6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6816 ac_cv_prog_LD="${ncn_progname}"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821done
6822
bb612911 6823fi
6824fi
b30fcfae 6825LD=$ac_cv_prog_LD
768691b5 6826if test -n "$LD"; then
5084f823 6827 echo "$as_me:$LINENO: result: $LD" >&5
6828echo "${ECHO_T}$LD" >&6
bb612911 6829else
5084f823 6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
bb612911 6832fi
b30fcfae 6833
768691b5 6834 fi
6835 test -n "$ac_cv_prog_LD" && break
6836done
6837
6838if test -z "$ac_cv_prog_LD" ; then
6839 set dummy ld
6840 if test $build = $host ; then
6841 LD="$2"
bb612911 6842 else
768691b5 6843 LD="${ncn_tool_prefix}$2"
bb612911 6844 fi
bb612911 6845fi
6846
95a05732 6847
6848
6849if test -n "$LIPO"; then
6850 ac_cv_prog_LIPO=$LIPO
6851elif test -n "$ac_cv_prog_LIPO"; then
6852 LIPO=$ac_cv_prog_LIPO
6853fi
6854
6855if test -n "$ac_cv_prog_LIPO"; then
6856 for ncn_progname in lipo; do
6857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6858set dummy ${ncn_progname}; ac_word=$2
5084f823 6859echo "$as_me:$LINENO: checking for $ac_word" >&5
6860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 6861if test "${ac_cv_prog_LIPO+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864 if test -n "$LIPO"; then
6865 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 6874 ac_cv_prog_LIPO="${ncn_progname}"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879done
6880
6881fi
6882fi
6883LIPO=$ac_cv_prog_LIPO
6884if test -n "$LIPO"; then
5084f823 6885 echo "$as_me:$LINENO: result: $LIPO" >&5
6886echo "${ECHO_T}$LIPO" >&6
95a05732 6887else
5084f823 6888 echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6
95a05732 6890fi
6891
6892 done
6893fi
6894
6895for ncn_progname in lipo; do
f5aebe3e 6896 if test -n "$ncn_tool_prefix"; then
6897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6898set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 6899echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6901if test "${ac_cv_prog_LIPO+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6903else
6904 if test -n "$LIPO"; then
6905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6906else
b30fcfae 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6914 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918done
6919done
6920
f5aebe3e 6921fi
6922fi
b30fcfae 6923LIPO=$ac_cv_prog_LIPO
f5aebe3e 6924if test -n "$LIPO"; then
5084f823 6925 echo "$as_me:$LINENO: result: $LIPO" >&5
6926echo "${ECHO_T}$LIPO" >&6
f5aebe3e 6927else
5084f823 6928 echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6
f5aebe3e 6930fi
6931
6932 fi
6933 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6935set dummy ${ncn_progname}; ac_word=$2
5084f823 6936echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6938if test "${ac_cv_prog_LIPO+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 6940else
6941 if test -n "$LIPO"; then
6942 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6943else
b30fcfae 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 6950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 6951 ac_cv_prog_LIPO="${ncn_progname}"
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955done
6956done
6957
f5aebe3e 6958fi
6959fi
b30fcfae 6960LIPO=$ac_cv_prog_LIPO
f5aebe3e 6961if test -n "$LIPO"; then
5084f823 6962 echo "$as_me:$LINENO: result: $LIPO" >&5
6963echo "${ECHO_T}$LIPO" >&6
f5aebe3e 6964else
5084f823 6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
f5aebe3e 6967fi
b30fcfae 6968
f5aebe3e 6969 fi
6970 test -n "$ac_cv_prog_LIPO" && break
6971done
6972
6973if test -z "$ac_cv_prog_LIPO" ; then
6974 set dummy lipo
6975 if test $build = $host ; then
6976 LIPO="$2"
6977 else
6978 LIPO="${ncn_tool_prefix}$2"
6979 fi
6980fi
6981
95a05732 6982
6983
6984if test -n "$NM"; then
6985 ac_cv_prog_NM=$NM
6986elif test -n "$ac_cv_prog_NM"; then
6987 NM=$ac_cv_prog_NM
6988fi
6989
6990if test -n "$ac_cv_prog_NM"; then
6991 for ncn_progname in nm; do
6992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6993set dummy ${ncn_progname}; ac_word=$2
5084f823 6994echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 6996if test "${ac_cv_prog_NM+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 6998else
6999 if test -n "$NM"; then
7000 ac_cv_prog_NM="$NM" # Let the user override the test.
7001else
b30fcfae 7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7009 ac_cv_prog_NM="${ncn_progname}"
b30fcfae 7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015
bb612911 7016fi
7017fi
b30fcfae 7018NM=$ac_cv_prog_NM
bb612911 7019if test -n "$NM"; then
5084f823 7020 echo "$as_me:$LINENO: result: $NM" >&5
7021echo "${ECHO_T}$NM" >&6
bb612911 7022else
5084f823 7023 echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6
bb612911 7025fi
7026
95a05732 7027 done
7028fi
7029
7030for ncn_progname in nm; do
7031 if test -n "$ncn_tool_prefix"; then
7032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7033set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7034echo "$as_me:$LINENO: checking for $ac_word" >&5
7035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7036if test "${ac_cv_prog_NM+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7038else
768691b5 7039 if test -n "$NM"; then
7040 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 7041else
b30fcfae 7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7049 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
b30fcfae 7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054done
7055
bb612911 7056fi
7057fi
b30fcfae 7058NM=$ac_cv_prog_NM
768691b5 7059if test -n "$NM"; then
5084f823 7060 echo "$as_me:$LINENO: result: $NM" >&5
7061echo "${ECHO_T}$NM" >&6
bb612911 7062else
5084f823 7063 echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6
bb612911 7065fi
b30fcfae 7066
768691b5 7067 fi
95a05732 7068 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7070set dummy ${ncn_progname}; ac_word=$2
5084f823 7071echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7073if test "${ac_cv_prog_NM+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 if test -n "$NM"; then
7077 ac_cv_prog_NM="$NM" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7086 ac_cv_prog_NM="${ncn_progname}"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090done
7091done
7092
7093fi
7094fi
7095NM=$ac_cv_prog_NM
7096if test -n "$NM"; then
5084f823 7097 echo "$as_me:$LINENO: result: $NM" >&5
7098echo "${ECHO_T}$NM" >&6
95a05732 7099else
5084f823 7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
95a05732 7102fi
7103
7104 fi
7105 test -n "$ac_cv_prog_NM" && break
7106done
7107
7108if test -z "$ac_cv_prog_NM" ; then
7109 set dummy nm
7110 if test $build = $host ; then
7111 NM="$2"
7112 else
7113 NM="${ncn_tool_prefix}$2"
7114 fi
7115fi
7116
7117
7118
7119if test -n "$RANLIB"; then
7120 ac_cv_prog_RANLIB=$RANLIB
7121elif test -n "$ac_cv_prog_RANLIB"; then
7122 RANLIB=$ac_cv_prog_RANLIB
7123fi
7124
7125if test -n "$ac_cv_prog_RANLIB"; then
7126 for ncn_progname in ranlib; do
7127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7128set dummy ${ncn_progname}; ac_word=$2
5084f823 7129echo "$as_me:$LINENO: checking for $ac_word" >&5
7130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7131if test "${ac_cv_prog_RANLIB+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 if test -n "$RANLIB"; then
7135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7144 ac_cv_prog_RANLIB="${ncn_progname}"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150
7151fi
7152fi
7153RANLIB=$ac_cv_prog_RANLIB
7154if test -n "$RANLIB"; then
5084f823 7155 echo "$as_me:$LINENO: result: $RANLIB" >&5
7156echo "${ECHO_T}$RANLIB" >&6
95a05732 7157else
5084f823 7158 echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6
95a05732 7160fi
7161
7162 done
7163fi
bb612911 7164
95a05732 7165for ncn_progname in ranlib; do
768691b5 7166 if test -n "$ncn_tool_prefix"; then
7167 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7168set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7169echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7171if test "${ac_cv_prog_RANLIB+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7173else
7174 if test -n "$RANLIB"; then
7175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7176else
b30fcfae 7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7184 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188done
7189done
7190
bb612911 7191fi
7192fi
b30fcfae 7193RANLIB=$ac_cv_prog_RANLIB
bb612911 7194if test -n "$RANLIB"; then
5084f823 7195 echo "$as_me:$LINENO: result: $RANLIB" >&5
7196echo "${ECHO_T}$RANLIB" >&6
bb612911 7197else
5084f823 7198 echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6
bb612911 7200fi
7201
768691b5 7202 fi
7203 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7205set dummy ${ncn_progname}; ac_word=$2
5084f823 7206echo "$as_me:$LINENO: checking for $ac_word" >&5
7207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7208if test "${ac_cv_prog_RANLIB+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7210else
768691b5 7211 if test -n "$RANLIB"; then
7212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 7213else
b30fcfae 7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7221 ac_cv_prog_RANLIB="${ncn_progname}"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227
bb612911 7228fi
7229fi
b30fcfae 7230RANLIB=$ac_cv_prog_RANLIB
768691b5 7231if test -n "$RANLIB"; then
5084f823 7232 echo "$as_me:$LINENO: result: $RANLIB" >&5
7233echo "${ECHO_T}$RANLIB" >&6
bb612911 7234else
5084f823 7235 echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6
bb612911 7237fi
b30fcfae 7238
bb612911 7239 fi
768691b5 7240 test -n "$ac_cv_prog_RANLIB" && break
7241done
7242
7243if test -z "$ac_cv_prog_RANLIB" ; then
7244 RANLIB=":"
bb612911 7245fi
7246
95a05732 7247
7248
7249if test -n "$STRIP"; then
7250 ac_cv_prog_STRIP=$STRIP
7251elif test -n "$ac_cv_prog_STRIP"; then
7252 STRIP=$ac_cv_prog_STRIP
7253fi
7254
7255if test -n "$ac_cv_prog_STRIP"; then
7256 for ncn_progname in strip; do
7257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7258set dummy ${ncn_progname}; ac_word=$2
5084f823 7259echo "$as_me:$LINENO: checking for $ac_word" >&5
7260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7261if test "${ac_cv_prog_STRIP+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264 if test -n "$STRIP"; then
7265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7274 ac_cv_prog_STRIP="${ncn_progname}"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279done
7280
7281fi
7282fi
7283STRIP=$ac_cv_prog_STRIP
7284if test -n "$STRIP"; then
5084f823 7285 echo "$as_me:$LINENO: result: $STRIP" >&5
7286echo "${ECHO_T}$STRIP" >&6
95a05732 7287else
5084f823 7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
95a05732 7290fi
7291
7292 done
7293fi
7294
7295for ncn_progname in strip; do
f5aebe3e 7296 if test -n "$ncn_tool_prefix"; then
7297 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7298set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7299echo "$as_me:$LINENO: checking for $ac_word" >&5
7300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7301if test "${ac_cv_prog_STRIP+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7303else
7304 if test -n "$STRIP"; then
7305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7306else
b30fcfae 7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7314 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319done
7320
f5aebe3e 7321fi
7322fi
b30fcfae 7323STRIP=$ac_cv_prog_STRIP
f5aebe3e 7324if test -n "$STRIP"; then
5084f823 7325 echo "$as_me:$LINENO: result: $STRIP" >&5
7326echo "${ECHO_T}$STRIP" >&6
f5aebe3e 7327else
5084f823 7328 echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6
f5aebe3e 7330fi
7331
7332 fi
7333 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7335set dummy ${ncn_progname}; ac_word=$2
5084f823 7336echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7338if test "${ac_cv_prog_STRIP+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
f5aebe3e 7340else
7341 if test -n "$STRIP"; then
7342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7343else
b30fcfae 7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7351 ac_cv_prog_STRIP="${ncn_progname}"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355done
7356done
7357
f5aebe3e 7358fi
7359fi
b30fcfae 7360STRIP=$ac_cv_prog_STRIP
f5aebe3e 7361if test -n "$STRIP"; then
5084f823 7362 echo "$as_me:$LINENO: result: $STRIP" >&5
7363echo "${ECHO_T}$STRIP" >&6
f5aebe3e 7364else
5084f823 7365 echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6
f5aebe3e 7367fi
b30fcfae 7368
f5aebe3e 7369 fi
7370 test -n "$ac_cv_prog_STRIP" && break
7371done
7372
7373if test -z "$ac_cv_prog_STRIP" ; then
7374 STRIP=":"
7375fi
7376
95a05732 7377
7378
7379if test -n "$WINDRES"; then
7380 ac_cv_prog_WINDRES=$WINDRES
7381elif test -n "$ac_cv_prog_WINDRES"; then
7382 WINDRES=$ac_cv_prog_WINDRES
7383fi
7384
7385if test -n "$ac_cv_prog_WINDRES"; then
7386 for ncn_progname in windres; do
7387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7388set dummy ${ncn_progname}; ac_word=$2
5084f823 7389echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7391if test "${ac_cv_prog_WINDRES+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 if test -n "$WINDRES"; then
7395 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7404 ac_cv_prog_WINDRES="${ncn_progname}"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409done
7410
7411fi
7412fi
7413WINDRES=$ac_cv_prog_WINDRES
7414if test -n "$WINDRES"; then
5084f823 7415 echo "$as_me:$LINENO: result: $WINDRES" >&5
7416echo "${ECHO_T}$WINDRES" >&6
95a05732 7417else
5084f823 7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
95a05732 7420fi
7421
7422 done
7423fi
7424
7425for ncn_progname in windres; do
768691b5 7426 if test -n "$ncn_tool_prefix"; then
7427 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7428set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7429echo "$as_me:$LINENO: checking for $ac_word" >&5
7430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7431if test "${ac_cv_prog_WINDRES+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7433else
7434 if test -n "$WINDRES"; then
7435 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7436else
b30fcfae 7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7444 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448done
7449done
7450
bb612911 7451fi
7452fi
b30fcfae 7453WINDRES=$ac_cv_prog_WINDRES
bb612911 7454if test -n "$WINDRES"; then
5084f823 7455 echo "$as_me:$LINENO: result: $WINDRES" >&5
7456echo "${ECHO_T}$WINDRES" >&6
bb612911 7457else
5084f823 7458 echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6
bb612911 7460fi
7461
768691b5 7462 fi
7463 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7465set dummy ${ncn_progname}; ac_word=$2
5084f823 7466echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7468if test "${ac_cv_prog_WINDRES+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7470else
768691b5 7471 if test -n "$WINDRES"; then
7472 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 7473else
b30fcfae 7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7481 ac_cv_prog_WINDRES="${ncn_progname}"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487
bb612911 7488fi
7489fi
b30fcfae 7490WINDRES=$ac_cv_prog_WINDRES
768691b5 7491if test -n "$WINDRES"; then
5084f823 7492 echo "$as_me:$LINENO: result: $WINDRES" >&5
7493echo "${ECHO_T}$WINDRES" >&6
bb612911 7494else
5084f823 7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
bb612911 7497fi
b30fcfae 7498
768691b5 7499 fi
7500 test -n "$ac_cv_prog_WINDRES" && break
7501done
7502
7503if test -z "$ac_cv_prog_WINDRES" ; then
7504 set dummy windres
7505 if test $build = $host ; then
7506 WINDRES="$2"
bb612911 7507 else
768691b5 7508 WINDRES="${ncn_tool_prefix}$2"
bb612911 7509 fi
bb612911 7510fi
7511
95a05732 7512
7513
75d6a0a9 7514if test -n "$WINDMC"; then
7515 ac_cv_prog_WINDMC=$WINDMC
7516elif test -n "$ac_cv_prog_WINDMC"; then
7517 WINDMC=$ac_cv_prog_WINDMC
7518fi
7519
7520if test -n "$ac_cv_prog_WINDMC"; then
7521 for ncn_progname in windmc; do
7522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7523set dummy ${ncn_progname}; ac_word=$2
7524echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526if test "${ac_cv_prog_WINDMC+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 if test -n "$WINDMC"; then
7530 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_WINDMC="${ncn_progname}"
7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543done
7544done
7545
7546fi
7547fi
7548WINDMC=$ac_cv_prog_WINDMC
7549if test -n "$WINDMC"; then
7550 echo "$as_me:$LINENO: result: $WINDMC" >&5
7551echo "${ECHO_T}$WINDMC" >&6
7552else
7553 echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
7555fi
7556
7557 done
7558fi
7559
7560for ncn_progname in windmc; do
7561 if test -n "$ncn_tool_prefix"; then
7562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7563set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7564echo "$as_me:$LINENO: checking for $ac_word" >&5
7565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7566if test "${ac_cv_prog_WINDMC+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569 if test -n "$WINDMC"; then
7570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583done
7584done
7585
7586fi
7587fi
7588WINDMC=$ac_cv_prog_WINDMC
7589if test -n "$WINDMC"; then
7590 echo "$as_me:$LINENO: result: $WINDMC" >&5
7591echo "${ECHO_T}$WINDMC" >&6
7592else
7593 echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6
7595fi
7596
7597 fi
7598 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7600set dummy ${ncn_progname}; ac_word=$2
7601echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603if test "${ac_cv_prog_WINDMC+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606 if test -n "$WINDMC"; then
7607 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7608else
7609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_WINDMC="${ncn_progname}"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622
7623fi
7624fi
7625WINDMC=$ac_cv_prog_WINDMC
7626if test -n "$WINDMC"; then
7627 echo "$as_me:$LINENO: result: $WINDMC" >&5
7628echo "${ECHO_T}$WINDMC" >&6
7629else
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
7632fi
7633
7634 fi
7635 test -n "$ac_cv_prog_WINDMC" && break
7636done
7637
7638if test -z "$ac_cv_prog_WINDMC" ; then
7639 set dummy windmc
7640 if test $build = $host ; then
7641 WINDMC="$2"
7642 else
7643 WINDMC="${ncn_tool_prefix}$2"
7644 fi
7645fi
7646
7647
7648
95a05732 7649if test -n "$OBJCOPY"; then
7650 ac_cv_prog_OBJCOPY=$OBJCOPY
7651elif test -n "$ac_cv_prog_OBJCOPY"; then
7652 OBJCOPY=$ac_cv_prog_OBJCOPY
7653fi
7654
7655if test -n "$ac_cv_prog_OBJCOPY"; then
7656 for ncn_progname in objcopy; do
7657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7658set dummy ${ncn_progname}; ac_word=$2
5084f823 7659echo "$as_me:$LINENO: checking for $ac_word" >&5
7660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7661if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663else
7664 if test -n "$OBJCOPY"; then
7665 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7674 ac_cv_prog_OBJCOPY="${ncn_progname}"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678done
7679done
7680
7681fi
7682fi
7683OBJCOPY=$ac_cv_prog_OBJCOPY
7684if test -n "$OBJCOPY"; then
5084f823 7685 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7686echo "${ECHO_T}$OBJCOPY" >&6
95a05732 7687else
5084f823 7688 echo "$as_me:$LINENO: result: no" >&5
7689echo "${ECHO_T}no" >&6
95a05732 7690fi
7691
7692 done
7693fi
7694
7695for ncn_progname in objcopy; do
768691b5 7696 if test -n "$ncn_tool_prefix"; then
7697 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7698set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7699echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7701if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7703else
7704 if test -n "$OBJCOPY"; then
7705 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7706else
b30fcfae 7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7714 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719done
7720
bb612911 7721fi
7722fi
b30fcfae 7723OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 7724if test -n "$OBJCOPY"; then
5084f823 7725 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7726echo "${ECHO_T}$OBJCOPY" >&6
bb612911 7727else
5084f823 7728 echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6
bb612911 7730fi
7731
768691b5 7732 fi
7733 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7735set dummy ${ncn_progname}; ac_word=$2
5084f823 7736echo "$as_me:$LINENO: checking for $ac_word" >&5
7737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7738if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7740else
768691b5 7741 if test -n "$OBJCOPY"; then
7742 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 7743else
b30fcfae 7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7751 ac_cv_prog_OBJCOPY="${ncn_progname}"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756done
7757
bb612911 7758fi
7759fi
b30fcfae 7760OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 7761if test -n "$OBJCOPY"; then
5084f823 7762 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7763echo "${ECHO_T}$OBJCOPY" >&6
bb612911 7764else
5084f823 7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
bb612911 7767fi
b30fcfae 7768
768691b5 7769 fi
7770 test -n "$ac_cv_prog_OBJCOPY" && break
7771done
7772
7773if test -z "$ac_cv_prog_OBJCOPY" ; then
7774 set dummy objcopy
7775 if test $build = $host ; then
7776 OBJCOPY="$2"
bb612911 7777 else
768691b5 7778 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 7779 fi
bb612911 7780fi
7781
95a05732 7782
7783
7784if test -n "$OBJDUMP"; then
7785 ac_cv_prog_OBJDUMP=$OBJDUMP
7786elif test -n "$ac_cv_prog_OBJDUMP"; then
7787 OBJDUMP=$ac_cv_prog_OBJDUMP
7788fi
7789
7790if test -n "$ac_cv_prog_OBJDUMP"; then
7791 for ncn_progname in objdump; do
7792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7793set dummy ${ncn_progname}; ac_word=$2
5084f823 7794echo "$as_me:$LINENO: checking for $ac_word" >&5
7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7796if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 if test -n "$OBJDUMP"; then
7800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7801else
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7809 ac_cv_prog_OBJDUMP="${ncn_progname}"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814done
7815
7816fi
7817fi
7818OBJDUMP=$ac_cv_prog_OBJDUMP
7819if test -n "$OBJDUMP"; then
5084f823 7820 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7821echo "${ECHO_T}$OBJDUMP" >&6
95a05732 7822else
5084f823 7823 echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
95a05732 7825fi
7826
7827 done
7828fi
7829
7830for ncn_progname in objdump; do
768691b5 7831 if test -n "$ncn_tool_prefix"; then
7832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7833set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 7834echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7836if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7838else
7839 if test -n "$OBJDUMP"; then
7840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7841else
b30fcfae 7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7849 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853done
7854done
7855
bb612911 7856fi
7857fi
b30fcfae 7858OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 7859if test -n "$OBJDUMP"; then
5084f823 7860 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7861echo "${ECHO_T}$OBJDUMP" >&6
bb612911 7862else
5084f823 7863 echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6
bb612911 7865fi
7866
768691b5 7867 fi
7868 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7870set dummy ${ncn_progname}; ac_word=$2
5084f823 7871echo "$as_me:$LINENO: checking for $ac_word" >&5
7872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 7873if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 7875else
768691b5 7876 if test -n "$OBJDUMP"; then
7877 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 7878else
b30fcfae 7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 7886 ac_cv_prog_OBJDUMP="${ncn_progname}"
7887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890done
7891done
7892
bb612911 7893fi
7894fi
b30fcfae 7895OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 7896if test -n "$OBJDUMP"; then
5084f823 7897 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7898echo "${ECHO_T}$OBJDUMP" >&6
bb612911 7899else
5084f823 7900 echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
bb612911 7902fi
b30fcfae 7903
768691b5 7904 fi
7905 test -n "$ac_cv_prog_OBJDUMP" && break
7906done
7907
7908if test -z "$ac_cv_prog_OBJDUMP" ; then
7909 set dummy objdump
7910 if test $build = $host ; then
7911 OBJDUMP="$2"
bb612911 7912 else
768691b5 7913 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 7914 fi
bb612911 7915fi
7916
71ab34df 7917
7918
7919
7920
7921
7922
f5aebe3e 7923# Target tools.
b30fcfae 7924
5084f823 7925# Check whether --with-build-time-tools or --without-build-time-tools was given.
c47832b1 7926if test "${with_build_time_tools+set}" = set; then
5084f823 7927 withval="$with_build_time_tools"
7928 case x"$withval" in
c47832b1 7929 x/*) ;;
7930 *)
7931 with_build_time_tools=
b30fcfae 7932 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7933echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 7934 ;;
7935 esac
bb612911 7936else
c47832b1 7937 with_build_time_tools=
5084f823 7938fi;
bb612911 7939
95a05732 7940
7941
7942if test -n "$CC_FOR_TARGET"; then
7943 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7944elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7945 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7946fi
7947
7948if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7949 for ncn_progname in cc gcc; do
7950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7951set dummy ${ncn_progname}; ac_word=$2
5084f823 7952echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 7954if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957 if test -n "$CC_FOR_TARGET"; then
7958 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7959else
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 7966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 7967 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973
7974fi
7975fi
7976CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7977if test -n "$CC_FOR_TARGET"; then
5084f823 7978 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7979echo "${ECHO_T}$CC_FOR_TARGET" >&6
95a05732 7980else
5084f823 7981 echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6
95a05732 7983fi
7984
7985 done
7986fi
7987
7988if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 7989 for ncn_progname in cc gcc; do
5084f823 7990 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7991echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 7992 if test -x $with_build_time_tools/${ncn_progname}; then
7993 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 7994 echo "$as_me:$LINENO: result: yes" >&5
7995echo "${ECHO_T}yes" >&6
9886f3d1 7996 break
c47832b1 7997 else
5084f823 7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
9886f3d1 8000 fi
8001 done
ef8184c7 8002fi
8003
c47832b1 8004if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8005 for ncn_progname in cc gcc; do
8006 if test -n "$ncn_target_tool_prefix"; then
8007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8008set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8009echo "$as_me:$LINENO: checking for $ac_word" >&5
8010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8011if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8013else
8014 if test -n "$CC_FOR_TARGET"; then
8015 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8016else
b30fcfae 8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8024 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029done
8030
ef8184c7 8031fi
8032fi
b30fcfae 8033CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 8034if test -n "$CC_FOR_TARGET"; then
5084f823 8035 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8036echo "${ECHO_T}$CC_FOR_TARGET" >&6
ef8184c7 8037else
5084f823 8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
ef8184c7 8040fi
8041
c47832b1 8042 fi
8043 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 8045set dummy ${ncn_progname}; ac_word=$2
5084f823 8046echo "$as_me:$LINENO: checking for $ac_word" >&5
8047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8048if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8050else
768691b5 8051 if test -n "$CC_FOR_TARGET"; then
8052 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 8053else
b30fcfae 8054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8061 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065done
8066done
8067
ef8184c7 8068fi
8069fi
b30fcfae 8070CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 8071if test -n "$CC_FOR_TARGET"; then
5084f823 8072 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8073echo "${ECHO_T}$CC_FOR_TARGET" >&6
ef8184c7 8074else
5084f823 8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
ef8184c7 8077fi
b30fcfae 8078
c47832b1 8079 fi
8080 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8081 done
8082fi
b30fcfae 8083
768691b5 8084if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8085 set dummy cc gcc
8086 if test $build = $target ; then
8087 CC_FOR_TARGET="$2"
ef8184c7 8088 else
768691b5 8089 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 8090 fi
b7ef8464 8091else
8092 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 8093fi
8094
95a05732 8095
8096
8097if test -n "$CXX_FOR_TARGET"; then
8098 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8099elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8100 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8101fi
8102
8103if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8104 for ncn_progname in c++ g++ cxx gxx; do
8105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8106set dummy ${ncn_progname}; ac_word=$2
5084f823 8107echo "$as_me:$LINENO: checking for $ac_word" >&5
8108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8109if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111else
8112 if test -n "$CXX_FOR_TARGET"; then
8113 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8122 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127done
8128
8129fi
8130fi
8131CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8132if test -n "$CXX_FOR_TARGET"; then
5084f823 8133 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8134echo "${ECHO_T}$CXX_FOR_TARGET" >&6
95a05732 8135else
5084f823 8136 echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6
95a05732 8138fi
8139
8140 done
8141fi
8142
8143if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8144 for ncn_progname in c++ g++ cxx gxx; do
5084f823 8145 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8146echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8147 if test -x $with_build_time_tools/${ncn_progname}; then
8148 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
c47832b1 8151 break
8152 else
5084f823 8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
c47832b1 8155 fi
8156 done
8157fi
8158
8159if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8160 for ncn_progname in c++ g++ cxx gxx; do
8161 if test -n "$ncn_target_tool_prefix"; then
8162 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8163set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8164echo "$as_me:$LINENO: checking for $ac_word" >&5
8165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8166if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8168else
8169 if test -n "$CXX_FOR_TARGET"; then
8170 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8171else
b30fcfae 8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8179 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184done
8185
ef8184c7 8186fi
8187fi
b30fcfae 8188CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 8189if test -n "$CXX_FOR_TARGET"; then
5084f823 8190 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8191echo "${ECHO_T}$CXX_FOR_TARGET" >&6
ef8184c7 8192else
5084f823 8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
ef8184c7 8195fi
8196
c47832b1 8197 fi
8198 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 8200set dummy ${ncn_progname}; ac_word=$2
5084f823 8201echo "$as_me:$LINENO: checking for $ac_word" >&5
8202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8203if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8205else
768691b5 8206 if test -n "$CXX_FOR_TARGET"; then
8207 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 8208else
b30fcfae 8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8216 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220done
8221done
8222
ef8184c7 8223fi
8224fi
b30fcfae 8225CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 8226if test -n "$CXX_FOR_TARGET"; then
5084f823 8227 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8228echo "${ECHO_T}$CXX_FOR_TARGET" >&6
ef8184c7 8229else
5084f823 8230 echo "$as_me:$LINENO: result: no" >&5
8231echo "${ECHO_T}no" >&6
ef8184c7 8232fi
b30fcfae 8233
c47832b1 8234 fi
8235 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8236 done
8237fi
b30fcfae 8238
768691b5 8239if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8240 set dummy c++ g++ cxx gxx
8241 if test $build = $target ; then
8242 CXX_FOR_TARGET="$2"
ef8184c7 8243 else
768691b5 8244 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 8245 fi
b7ef8464 8246else
8247 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 8248fi
8249
95a05732 8250
8251
8252if test -n "$GCC_FOR_TARGET"; then
8253 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8254elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8255 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8256fi
8257
8258if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8259 for ncn_progname in gcc; do
8260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8261set dummy ${ncn_progname}; ac_word=$2
5084f823 8262echo "$as_me:$LINENO: checking for $ac_word" >&5
8263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8264if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 if test -n "$GCC_FOR_TARGET"; then
8268 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8277 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281done
8282done
8283
8284fi
8285fi
8286GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8287if test -n "$GCC_FOR_TARGET"; then
5084f823 8288 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8289echo "${ECHO_T}$GCC_FOR_TARGET" >&6
95a05732 8290else
5084f823 8291 echo "$as_me:$LINENO: result: no" >&5
8292echo "${ECHO_T}no" >&6
95a05732 8293fi
8294
8295 done
8296fi
8297
8298if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8299 for ncn_progname in gcc; do
5084f823 8300 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8301echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8302 if test -x $with_build_time_tools/${ncn_progname}; then
8303 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8304 echo "$as_me:$LINENO: result: yes" >&5
8305echo "${ECHO_T}yes" >&6
c47832b1 8306 break
8307 else
5084f823 8308 echo "$as_me:$LINENO: result: no" >&5
8309echo "${ECHO_T}no" >&6
c47832b1 8310 fi
8311 done
8312fi
8313
8314if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8315 for ncn_progname in gcc; do
8316 if test -n "$ncn_target_tool_prefix"; then
8317 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8318set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8319echo "$as_me:$LINENO: checking for $ac_word" >&5
8320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8321if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8323else
c47832b1 8324 if test -n "$GCC_FOR_TARGET"; then
8325 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 8326else
b30fcfae 8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8334 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338done
8339done
8340
bb612911 8341fi
8342fi
b30fcfae 8343GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 8344if test -n "$GCC_FOR_TARGET"; then
5084f823 8345 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8346echo "${ECHO_T}$GCC_FOR_TARGET" >&6
bb612911 8347else
5084f823 8348 echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6
bb612911 8350fi
8351
c47832b1 8352 fi
8353 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 8355set dummy ${ncn_progname}; ac_word=$2
5084f823 8356echo "$as_me:$LINENO: checking for $ac_word" >&5
8357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8358if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 8360else
c47832b1 8361 if test -n "$GCC_FOR_TARGET"; then
8362 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 8363else
b30fcfae 8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8371 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375done
8376done
8377
bb612911 8378fi
8379fi
b30fcfae 8380GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 8381if test -n "$GCC_FOR_TARGET"; then
5084f823 8382 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8383echo "${ECHO_T}$GCC_FOR_TARGET" >&6
bb612911 8384else
5084f823 8385 echo "$as_me:$LINENO: result: no" >&5
8386echo "${ECHO_T}no" >&6
bb612911 8387fi
b30fcfae 8388
c47832b1 8389 fi
8390 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8391 done
8392fi
b30fcfae 8393
c47832b1 8394if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8395 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 8396else
8397 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 8398fi
8399
95a05732 8400
8401
8402if test -n "$GCJ_FOR_TARGET"; then
8403 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8404elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8405 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8406fi
8407
8408if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8409 for ncn_progname in gcj; do
8410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8411set dummy ${ncn_progname}; ac_word=$2
5084f823 8412echo "$as_me:$LINENO: checking for $ac_word" >&5
8413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8414if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417 if test -n "$GCJ_FOR_TARGET"; then
8418 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8427 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431done
8432done
8433
8434fi
8435fi
8436GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8437if test -n "$GCJ_FOR_TARGET"; then
5084f823 8438 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8439echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8440else
5084f823 8441 echo "$as_me:$LINENO: result: no" >&5
8442echo "${ECHO_T}no" >&6
95a05732 8443fi
8444
8445 done
8446fi
8447
8448if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8449 for ncn_progname in gcj; do
5084f823 8450 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8451echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8452 if test -x $with_build_time_tools/${ncn_progname}; then
8453 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8454 echo "$as_me:$LINENO: result: yes" >&5
8455echo "${ECHO_T}yes" >&6
c47832b1 8456 break
8457 else
5084f823 8458 echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6
c47832b1 8460 fi
8461 done
8462fi
8463
8464if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8465 for ncn_progname in gcj; do
8466 if test -n "$ncn_target_tool_prefix"; then
8467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8469echo "$as_me:$LINENO: checking for $ac_word" >&5
8470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8471if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8473else
a4af6a58 8474 if test -n "$GCJ_FOR_TARGET"; then
8475 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8476else
b30fcfae 8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8484 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488done
8489done
8490
c47832b1 8491fi
8492fi
95a05732 8493GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8494if test -n "$GCJ_FOR_TARGET"; then
5084f823 8495 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8496echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8497else
5084f823 8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
95a05732 8500fi
8501
8502 fi
8503 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8505set dummy ${ncn_progname}; ac_word=$2
5084f823 8506echo "$as_me:$LINENO: checking for $ac_word" >&5
8507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8508if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511 if test -n "$GCJ_FOR_TARGET"; then
8512 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8513else
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8521 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525done
8526done
8527
8528fi
8529fi
8530GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8531if test -n "$GCJ_FOR_TARGET"; then
5084f823 8532 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8533echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
95a05732 8534else
5084f823 8535 echo "$as_me:$LINENO: result: no" >&5
8536echo "${ECHO_T}no" >&6
95a05732 8537fi
8538
8539 fi
8540 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8541 done
8542fi
8543
8544if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8545 set dummy gcj
8546 if test $build = $target ; then
8547 GCJ_FOR_TARGET="$2"
8548 else
8549 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8550 fi
b7ef8464 8551else
8552 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
95a05732 8553fi
8554
8555
8556
8557if test -n "$GFORTRAN_FOR_TARGET"; then
8558 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8559elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8560 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8561fi
8562
95a05732 8563if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8564 for ncn_progname in gfortran; do
8565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 8566set dummy ${ncn_progname}; ac_word=$2
5084f823 8567echo "$as_me:$LINENO: checking for $ac_word" >&5
8568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8569if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
b30fcfae 8570 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8571else
95a05732 8572 if test -n "$GFORTRAN_FOR_TARGET"; then
8573 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 8574else
b30fcfae 8575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576for as_dir in $PATH
8577do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8582 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
b30fcfae 8583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586done
8587done
8588
c47832b1 8589fi
8590fi
95a05732 8591GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8592if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8593 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8594echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8595else
5084f823 8596 echo "$as_me:$LINENO: result: no" >&5
8597echo "${ECHO_T}no" >&6
c47832b1 8598fi
b30fcfae 8599
c47832b1 8600 done
8601fi
b30fcfae 8602
95a05732 8603if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8604 for ncn_progname in gfortran; do
5084f823 8605 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8606echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8607 if test -x $with_build_time_tools/${ncn_progname}; then
8608 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8609 echo "$as_me:$LINENO: result: yes" >&5
8610echo "${ECHO_T}yes" >&6
c47832b1 8611 break
8612 else
5084f823 8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
c47832b1 8615 fi
8616 done
8617fi
8618
8619if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8620 for ncn_progname in gfortran; do
8621 if test -n "$ncn_target_tool_prefix"; then
8622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8623set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8624echo "$as_me:$LINENO: checking for $ac_word" >&5
8625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8626if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8628else
8629 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 8630 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8631else
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8639 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 break 2
8642 fi
8643done
8644done
8645
c47832b1 8646fi
8647fi
b30fcfae 8648GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8649if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8650 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8651echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8652else
5084f823 8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
c47832b1 8655fi
8656
8657 fi
8658 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8660set dummy ${ncn_progname}; ac_word=$2
5084f823 8661echo "$as_me:$LINENO: checking for $ac_word" >&5
8662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8663if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8665else
8666 if test -n "$GFORTRAN_FOR_TARGET"; then
8667 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8668else
b30fcfae 8669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670for as_dir in $PATH
8671do
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8676 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8679 fi
8680done
8681done
8682
c47832b1 8683fi
8684fi
b30fcfae 8685GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 8686if test -n "$GFORTRAN_FOR_TARGET"; then
5084f823 8687 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8688echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
c47832b1 8689else
5084f823 8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
c47832b1 8692fi
b30fcfae 8693
c47832b1 8694 fi
8695 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8696 done
8697fi
b30fcfae 8698
c47832b1 8699if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8700 set dummy gfortran
768691b5 8701 if test $build = $target ; then
c47832b1 8702 GFORTRAN_FOR_TARGET="$2"
bb612911 8703 else
c47832b1 8704 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8705 fi
b7ef8464 8706else
8707 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 8708fi
8709
8710
8711
c47832b1 8712cat > conftest.c << \EOF
8713#ifdef __GNUC__
8714 gcc_yay;
8715#endif
8716EOF
8717if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8718 have_gcc_for_target=yes
8719else
8720 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8721 have_gcc_for_target=no
8722fi
8723rm conftest.c
8724
8725
8726
8727
8728if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8729 if test -n "$with_build_time_tools"; then
5084f823 8730 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8731echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8732 if test -x $with_build_time_tools/ar; then
8733 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8734 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5084f823 8735 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8736echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
ab0da556 8737 else
5084f823 8738 echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
ab0da556 8740 fi
c47832b1 8741 elif test $build != $host && test $have_gcc_for_target = yes; then
8742 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 8743 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8744 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 8745 fi
8746fi
38d7211b 8747if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 8748 # Extract the first word of "ar", so it can be a program name with args.
8749set dummy ar; ac_word=$2
5084f823 8750echo "$as_me:$LINENO: checking for $ac_word" >&5
8751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8752if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8754else
b30fcfae 8755 case $AR_FOR_TARGET in
8756 [\\/]* | ?:[\\/]*)
c47832b1 8757 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8758 ;;
c47832b1 8759 *)
b30fcfae 8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761for as_dir in $gcc_cv_tool_dirs
8762do
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
8765 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8767 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 break 2
8770 fi
8771done
8772done
8773
c47832b1 8774 ;;
8775esac
8776fi
b30fcfae 8777AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5084f823 8778
c47832b1 8779if test -n "$AR_FOR_TARGET"; then
5084f823 8780 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8781echo "${ECHO_T}$AR_FOR_TARGET" >&6
c47832b1 8782else
5084f823 8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
ef8184c7 8785fi
8786
c47832b1 8787fi
8788if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 8789
8790
8791if test -n "$AR_FOR_TARGET"; then
8792 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8793elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8794 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8795fi
8796
8797if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8798 for ncn_progname in ar; do
8799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8800set dummy ${ncn_progname}; ac_word=$2
5084f823 8801echo "$as_me:$LINENO: checking for $ac_word" >&5
8802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 8803if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 if test -n "$AR_FOR_TARGET"; then
8807 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8808else
8809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810for as_dir in $PATH
8811do
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 8816 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8819 fi
8820done
8821done
8822
8823fi
8824fi
8825AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8826if test -n "$AR_FOR_TARGET"; then
5084f823 8827 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8828echo "${ECHO_T}$AR_FOR_TARGET" >&6
95a05732 8829else
5084f823 8830 echo "$as_me:$LINENO: result: no" >&5
8831echo "${ECHO_T}no" >&6
95a05732 8832fi
8833
8834 done
8835fi
8836
8837if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 8838 for ncn_progname in ar; do
5084f823 8839 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8840echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8841 if test -x $with_build_time_tools/${ncn_progname}; then
8842 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 8843 echo "$as_me:$LINENO: result: yes" >&5
8844echo "${ECHO_T}yes" >&6
c47832b1 8845 break
8846 else
5084f823 8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
c47832b1 8849 fi
8850 done
8851fi
8852
8853if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8854 for ncn_progname in ar; do
8855 if test -n "$ncn_target_tool_prefix"; then
8856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 8857set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 8858echo "$as_me:$LINENO: checking for $ac_word" >&5
8859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8860if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 8862else
c47832b1 8863 if test -n "$AR_FOR_TARGET"; then
8864 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 8865else
b30fcfae 8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH
8868do
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8873 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8876 fi
8877done
8878done
8879
ef8184c7 8880fi
8881fi
b30fcfae 8882AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 8883if test -n "$AR_FOR_TARGET"; then
5084f823 8884 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8885echo "${ECHO_T}$AR_FOR_TARGET" >&6
ef8184c7 8886else
5084f823 8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
ef8184c7 8889fi
8890
c47832b1 8891 fi
8892 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8894set dummy ${ncn_progname}; ac_word=$2
5084f823 8895echo "$as_me:$LINENO: checking for $ac_word" >&5
8896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8897if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8899else
8900 if test -n "$AR_FOR_TARGET"; then
8901 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8902else
b30fcfae 8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8910 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915done
8916
c47832b1 8917fi
8918fi
b30fcfae 8919AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 8920if test -n "$AR_FOR_TARGET"; then
5084f823 8921 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8922echo "${ECHO_T}$AR_FOR_TARGET" >&6
c47832b1 8923else
5084f823 8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
c47832b1 8926fi
b30fcfae 8927
c47832b1 8928 fi
8929 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8930 done
8931fi
b30fcfae 8932
c47832b1 8933if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8934 set dummy ar
8935 if test $build = $target ; then
8936 AR_FOR_TARGET="$2"
8937 else
8938 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 8939 fi
b7ef8464 8940else
8941 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 8942fi
8943
ab0da556 8944else
8945 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 8946fi
8947
8948
8949
8950
8951if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8952 if test -n "$with_build_time_tools"; then
5084f823 8953 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8954echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
ab0da556 8955 if test -x $with_build_time_tools/as; then
8956 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8957 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5084f823 8958 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8959echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
ab0da556 8960 else
5084f823 8961 echo "$as_me:$LINENO: result: no" >&5
8962echo "${ECHO_T}no" >&6
ab0da556 8963 fi
c47832b1 8964 elif test $build != $host && test $have_gcc_for_target = yes; then
8965 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 8966 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8967 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 8968 fi
8969fi
38d7211b 8970if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 8971 # Extract the first word of "as", so it can be a program name with args.
8972set dummy as; ac_word=$2
5084f823 8973echo "$as_me:$LINENO: checking for $ac_word" >&5
8974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 8975if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 8977else
b30fcfae 8978 case $AS_FOR_TARGET in
8979 [\\/]* | ?:[\\/]*)
c47832b1 8980 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8981 ;;
c47832b1 8982 *)
b30fcfae 8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984for as_dir in $gcc_cv_tool_dirs
8985do
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 8989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 8990 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8993 fi
8994done
8995done
8996
c47832b1 8997 ;;
8998esac
8999fi
b30fcfae 9000AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5084f823 9001
c47832b1 9002if test -n "$AS_FOR_TARGET"; then
5084f823 9003 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9004echo "${ECHO_T}$AS_FOR_TARGET" >&6
c47832b1 9005else
5084f823 9006 echo "$as_me:$LINENO: result: no" >&5
9007echo "${ECHO_T}no" >&6
c47832b1 9008fi
9009
9010fi
9011if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 9012
9013
9014if test -n "$AS_FOR_TARGET"; then
9015 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9016elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9017 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9018fi
9019
9020if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9021 for ncn_progname in as; do
9022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9023set dummy ${ncn_progname}; ac_word=$2
5084f823 9024echo "$as_me:$LINENO: checking for $ac_word" >&5
9025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9026if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028else
9029 if test -n "$AS_FOR_TARGET"; then
9030 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9031else
9032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033for as_dir in $PATH
9034do
9035 IFS=$as_save_IFS
9036 test -z "$as_dir" && as_dir=.
9037 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9039 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9041 break 2
9042 fi
9043done
9044done
9045
9046fi
9047fi
9048AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9049if test -n "$AS_FOR_TARGET"; then
5084f823 9050 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9051echo "${ECHO_T}$AS_FOR_TARGET" >&6
95a05732 9052else
5084f823 9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
95a05732 9055fi
9056
9057 done
9058fi
9059
9060if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9061 for ncn_progname in as; do
5084f823 9062 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9063echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9064 if test -x $with_build_time_tools/${ncn_progname}; then
9065 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
c47832b1 9068 break
9069 else
5084f823 9070 echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
c47832b1 9072 fi
9073 done
9074fi
9075
9076if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9077 for ncn_progname in as; do
9078 if test -n "$ncn_target_tool_prefix"; then
9079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9080set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9081echo "$as_me:$LINENO: checking for $ac_word" >&5
9082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9083if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9085else
9086 if test -n "$AS_FOR_TARGET"; then
9087 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9088else
b30fcfae 9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9096 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100done
9101done
9102
c47832b1 9103fi
9104fi
b30fcfae 9105AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 9106if test -n "$AS_FOR_TARGET"; then
5084f823 9107 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9108echo "${ECHO_T}$AS_FOR_TARGET" >&6
c47832b1 9109else
5084f823 9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
c47832b1 9112fi
9113
9114 fi
9115 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9117set dummy ${ncn_progname}; ac_word=$2
5084f823 9118echo "$as_me:$LINENO: checking for $ac_word" >&5
9119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9120if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9122else
c47832b1 9123 if test -n "$AS_FOR_TARGET"; then
9124 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 9125else
b30fcfae 9126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127for as_dir in $PATH
9128do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9133 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137done
9138done
9139
ef8184c7 9140fi
9141fi
b30fcfae 9142AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 9143if test -n "$AS_FOR_TARGET"; then
5084f823 9144 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9145echo "${ECHO_T}$AS_FOR_TARGET" >&6
ef8184c7 9146else
5084f823 9147 echo "$as_me:$LINENO: result: no" >&5
9148echo "${ECHO_T}no" >&6
ef8184c7 9149fi
b30fcfae 9150
c47832b1 9151 fi
9152 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9153 done
9154fi
b30fcfae 9155
c47832b1 9156if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9157 set dummy as
9158 if test $build = $target ; then
9159 AS_FOR_TARGET="$2"
9160 else
9161 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 9162 fi
b7ef8464 9163else
9164 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 9165fi
768691b5 9166
ab0da556 9167else
9168 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 9169fi
9170
c47832b1 9171
9172
9173
9174if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9175 if test -n "$with_build_time_tools"; then
5084f823 9176 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9177echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9178 if test -x $with_build_time_tools/dlltool; then
9179 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9180 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5084f823 9181 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9182echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
ab0da556 9183 else
5084f823 9184 echo "$as_me:$LINENO: result: no" >&5
9185echo "${ECHO_T}no" >&6
ab0da556 9186 fi
c47832b1 9187 elif test $build != $host && test $have_gcc_for_target = yes; then
9188 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 9189 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9190 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 9191 fi
9192fi
38d7211b 9193if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9194 # Extract the first word of "dlltool", so it can be a program name with args.
9195set dummy dlltool; ac_word=$2
5084f823 9196echo "$as_me:$LINENO: checking for $ac_word" >&5
9197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9198if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9200else
b30fcfae 9201 case $DLLTOOL_FOR_TARGET in
9202 [\\/]* | ?:[\\/]*)
c47832b1 9203 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9204 ;;
c47832b1 9205 *)
b30fcfae 9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $gcc_cv_tool_dirs
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9213 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217done
9218done
9219
c47832b1 9220 ;;
9221esac
ef8184c7 9222fi
b30fcfae 9223DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5084f823 9224
c47832b1 9225if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9226 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9227echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9228else
5084f823 9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
ef8184c7 9231fi
9232
c47832b1 9233fi
9234if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 9235
9236
9237if test -n "$DLLTOOL_FOR_TARGET"; then
9238 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9239elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9240 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9241fi
9242
9243if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9244 for ncn_progname in dlltool; do
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_progname}; ac_word=$2
5084f823 9247echo "$as_me:$LINENO: checking for $ac_word" >&5
9248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9249if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252 if test -n "$DLLTOOL_FOR_TARGET"; then
9253 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9254else
9255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256for as_dir in $PATH
9257do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9262 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9265 fi
9266done
9267done
9268
9269fi
9270fi
9271DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9272if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9273 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9274echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
95a05732 9275else
5084f823 9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
95a05732 9278fi
9279
9280 done
9281fi
9282
9283if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9284 for ncn_progname in dlltool; do
5084f823 9285 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9286echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9287 if test -x $with_build_time_tools/${ncn_progname}; then
9288 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9289 echo "$as_me:$LINENO: result: yes" >&5
9290echo "${ECHO_T}yes" >&6
c47832b1 9291 break
9292 else
5084f823 9293 echo "$as_me:$LINENO: result: no" >&5
9294echo "${ECHO_T}no" >&6
c47832b1 9295 fi
9296 done
9297fi
9298
9299if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9300 for ncn_progname in dlltool; do
9301 if test -n "$ncn_target_tool_prefix"; then
9302 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9303set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9304echo "$as_me:$LINENO: checking for $ac_word" >&5
9305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9306if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9308else
c47832b1 9309 if test -n "$DLLTOOL_FOR_TARGET"; then
9310 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 9311else
b30fcfae 9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9319 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9322 fi
9323done
9324done
9325
ef8184c7 9326fi
9327fi
b30fcfae 9328DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 9329if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9330 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9331echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9332else
5084f823 9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
ef8184c7 9335fi
ef8184c7 9336
c47832b1 9337 fi
9338 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9340set dummy ${ncn_progname}; ac_word=$2
5084f823 9341echo "$as_me:$LINENO: checking for $ac_word" >&5
9342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9343if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9345else
c47832b1 9346 if test -n "$DLLTOOL_FOR_TARGET"; then
9347 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 9348else
b30fcfae 9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $PATH
9351do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9356 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9359 fi
9360done
9361done
9362
ef8184c7 9363fi
9364fi
b30fcfae 9365DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 9366if test -n "$DLLTOOL_FOR_TARGET"; then
5084f823 9367 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9368echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
ef8184c7 9369else
5084f823 9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
ef8184c7 9372fi
b30fcfae 9373
c47832b1 9374 fi
9375 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9376 done
9377fi
b30fcfae 9378
c47832b1 9379if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9380 set dummy dlltool
9381 if test $build = $target ; then
9382 DLLTOOL_FOR_TARGET="$2"
9383 else
9384 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9385 fi
b7ef8464 9386else
9387 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 9388fi
9389
ab0da556 9390else
9391 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 9392fi
9393
ef8184c7 9394
c47832b1 9395
9396
9397if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9398 if test -n "$with_build_time_tools"; then
5084f823 9399 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9400echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9401 if test -x $with_build_time_tools/ld; then
9402 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9403 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5084f823 9404 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9405echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
ab0da556 9406 else
5084f823 9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
ab0da556 9409 fi
c47832b1 9410 elif test $build != $host && test $have_gcc_for_target = yes; then
9411 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 9412 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9413 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 9414 fi
c47832b1 9415fi
38d7211b 9416if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9417 # Extract the first word of "ld", so it can be a program name with args.
9418set dummy ld; ac_word=$2
5084f823 9419echo "$as_me:$LINENO: checking for $ac_word" >&5
9420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9421if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
ef8184c7 9423else
b30fcfae 9424 case $LD_FOR_TARGET in
9425 [\\/]* | ?:[\\/]*)
c47832b1 9426 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9427 ;;
c47832b1 9428 *)
b30fcfae 9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $gcc_cv_tool_dirs
9431do
9432 IFS=$as_save_IFS
9433 test -z "$as_dir" && as_dir=.
9434 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9436 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9438 break 2
9439 fi
9440done
9441done
9442
c47832b1 9443 ;;
9444esac
ef8184c7 9445fi
b30fcfae 9446LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5084f823 9447
c47832b1 9448if test -n "$LD_FOR_TARGET"; then
5084f823 9449 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9450echo "${ECHO_T}$LD_FOR_TARGET" >&6
ef8184c7 9451else
5084f823 9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
ef8184c7 9454fi
768691b5 9455
c47832b1 9456fi
9457if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 9458
9459
9460if test -n "$LD_FOR_TARGET"; then
9461 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9462elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9463 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9464fi
9465
9466if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9467 for ncn_progname in ld; do
9468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9469set dummy ${ncn_progname}; ac_word=$2
5084f823 9470echo "$as_me:$LINENO: checking for $ac_word" >&5
9471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9472if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475 if test -n "$LD_FOR_TARGET"; then
9476 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9477else
9478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479for as_dir in $PATH
9480do
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9485 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9488 fi
9489done
9490done
9491
9492fi
9493fi
9494LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9495if test -n "$LD_FOR_TARGET"; then
5084f823 9496 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9497echo "${ECHO_T}$LD_FOR_TARGET" >&6
95a05732 9498else
5084f823 9499 echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6
95a05732 9501fi
9502
9503 done
9504fi
9505
9506if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9507 for ncn_progname in ld; do
5084f823 9508 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9509echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9510 if test -x $with_build_time_tools/${ncn_progname}; then
9511 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9512 echo "$as_me:$LINENO: result: yes" >&5
9513echo "${ECHO_T}yes" >&6
c47832b1 9514 break
9515 else
5084f823 9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
c47832b1 9518 fi
9519 done
bb612911 9520fi
9521
c47832b1 9522if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9523 for ncn_progname in ld; do
9524 if test -n "$ncn_target_tool_prefix"; then
9525 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9526set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9527echo "$as_me:$LINENO: checking for $ac_word" >&5
9528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9529if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9531else
ef8184c7 9532 if test -n "$LD_FOR_TARGET"; then
9533 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 9534else
b30fcfae 9535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9542 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547done
9548
bb612911 9549fi
9550fi
b30fcfae 9551LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 9552if test -n "$LD_FOR_TARGET"; then
5084f823 9553 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9554echo "${ECHO_T}$LD_FOR_TARGET" >&6
bb612911 9555else
5084f823 9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
bb612911 9558fi
9559
c47832b1 9560 fi
9561 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9563set dummy ${ncn_progname}; ac_word=$2
5084f823 9564echo "$as_me:$LINENO: checking for $ac_word" >&5
9565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9566if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9568else
768691b5 9569 if test -n "$LD_FOR_TARGET"; then
9570 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 9571else
b30fcfae 9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9579 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9582 fi
9583done
9584done
9585
bb612911 9586fi
9587fi
b30fcfae 9588LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 9589if test -n "$LD_FOR_TARGET"; then
5084f823 9590 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9591echo "${ECHO_T}$LD_FOR_TARGET" >&6
bb612911 9592else
5084f823 9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
bb612911 9595fi
b30fcfae 9596
c47832b1 9597 fi
9598 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9599 done
9600fi
b30fcfae 9601
768691b5 9602if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9603 set dummy ld
9604 if test $build = $target ; then
9605 LD_FOR_TARGET="$2"
bb612911 9606 else
768691b5 9607 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 9608 fi
b7ef8464 9609else
9610 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 9611fi
9612
ab0da556 9613else
9614 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 9615fi
9616
9617
9618
9619
9620if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9621 if test -n "$with_build_time_tools"; then
5084f823 9622 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9623echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9624 if test -x $with_build_time_tools/lipo; then
9625 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9626 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5084f823 9627 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9628echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
ab0da556 9629 else
5084f823 9630 echo "$as_me:$LINENO: result: no" >&5
9631echo "${ECHO_T}no" >&6
ab0da556 9632 fi
c47832b1 9633 elif test $build != $host && test $have_gcc_for_target = yes; then
9634 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 9635 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9636 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 9637 fi
9638fi
95a05732 9639if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9640 # Extract the first word of "lipo", so it can be a program name with args.
9641set dummy lipo; ac_word=$2
5084f823 9642echo "$as_me:$LINENO: checking for $ac_word" >&5
9643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9644if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646else
9647 case $LIPO_FOR_TARGET in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9650 ;;
9651 *)
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653for as_dir in $gcc_cv_tool_dirs
9654do
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9659 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9662 fi
9663done
9664done
9665
9666 ;;
9667esac
9668fi
9669LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5084f823 9670
95a05732 9671if test -n "$LIPO_FOR_TARGET"; then
5084f823 9672 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9673echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
95a05732 9674else
5084f823 9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
95a05732 9677fi
9678
9679fi
9680if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9681
9682
9683if test -n "$LIPO_FOR_TARGET"; then
9684 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9685elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9686 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9687fi
9688
9689if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9690 for ncn_progname in lipo; do
9691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9692set dummy ${ncn_progname}; ac_word=$2
5084f823 9693echo "$as_me:$LINENO: checking for $ac_word" >&5
9694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9695if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
b30fcfae 9696 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9697else
95a05732 9698 if test -n "$LIPO_FOR_TARGET"; then
9699 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9700else
9701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702for as_dir in $PATH
b30fcfae 9703do
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9708 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
b30fcfae 9709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9711 fi
9712done
9713done
9714
c47832b1 9715fi
95a05732 9716fi
9717LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 9718if test -n "$LIPO_FOR_TARGET"; then
5084f823 9719 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9720echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
c47832b1 9721else
5084f823 9722 echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
c47832b1 9724fi
9725
95a05732 9726 done
c47832b1 9727fi
95a05732 9728
9729if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9730 for ncn_progname in lipo; do
5084f823 9731 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9732echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9733 if test -x $with_build_time_tools/${ncn_progname}; then
9734 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9735 echo "$as_me:$LINENO: result: yes" >&5
9736echo "${ECHO_T}yes" >&6
c47832b1 9737 break
9738 else
5084f823 9739 echo "$as_me:$LINENO: result: no" >&5
9740echo "${ECHO_T}no" >&6
c47832b1 9741 fi
9742 done
9743fi
9744
9745if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9746 for ncn_progname in lipo; do
9747 if test -n "$ncn_target_tool_prefix"; then
9748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9749set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9750echo "$as_me:$LINENO: checking for $ac_word" >&5
9751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9752if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 9754else
9755 if test -n "$LIPO_FOR_TARGET"; then
9756 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9757else
b30fcfae 9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9765 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9768 fi
9769done
9770done
9771
9fec3fa8 9772fi
9773fi
b30fcfae 9774LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 9775if test -n "$LIPO_FOR_TARGET"; then
5084f823 9776 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9777echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9fec3fa8 9778else
5084f823 9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
9fec3fa8 9781fi
9782
c47832b1 9783 fi
9784 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 9786set dummy ${ncn_progname}; ac_word=$2
5084f823 9787echo "$as_me:$LINENO: checking for $ac_word" >&5
9788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9789if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 9791else
9792 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 9793 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9794else
b30fcfae 9795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796for as_dir in $PATH
9797do
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9802 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9805 fi
9806done
9807done
9808
9fec3fa8 9809fi
9810fi
b30fcfae 9811LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 9812if test -n "$LIPO_FOR_TARGET"; then
5084f823 9813 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9814echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9fec3fa8 9815else
5084f823 9816 echo "$as_me:$LINENO: result: no" >&5
9817echo "${ECHO_T}no" >&6
9fec3fa8 9818fi
b30fcfae 9819
c47832b1 9820 fi
9821 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9822 done
9823fi
b30fcfae 9824
9fec3fa8 9825if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9826 set dummy lipo
9827 if test $build = $target ; then
9828 LIPO_FOR_TARGET="$2"
9829 else
9830 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9831 fi
b7ef8464 9832else
9833 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 9834fi
9835
ab0da556 9836else
9837 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 9838fi
9839
9840
9841
9842
9843if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9844 if test -n "$with_build_time_tools"; then
5084f823 9845 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9846echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9847 if test -x $with_build_time_tools/nm; then
9848 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9849 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5084f823 9850 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9851echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
ab0da556 9852 else
5084f823 9853 echo "$as_me:$LINENO: result: no" >&5
9854echo "${ECHO_T}no" >&6
ab0da556 9855 fi
c47832b1 9856 elif test $build != $host && test $have_gcc_for_target = yes; then
9857 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 9858 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9859 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 9860 fi
9861fi
38d7211b 9862if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 9863 # Extract the first word of "nm", so it can be a program name with args.
9864set dummy nm; ac_word=$2
5084f823 9865echo "$as_me:$LINENO: checking for $ac_word" >&5
9866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9867if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 9869else
b30fcfae 9870 case $NM_FOR_TARGET in
9871 [\\/]* | ?:[\\/]*)
c47832b1 9872 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9873 ;;
c47832b1 9874 *)
b30fcfae 9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $gcc_cv_tool_dirs
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9882 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886done
9887done
9888
c47832b1 9889 ;;
9890esac
9891fi
b30fcfae 9892NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
5084f823 9893
c47832b1 9894if test -n "$NM_FOR_TARGET"; then
5084f823 9895 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9896echo "${ECHO_T}$NM_FOR_TARGET" >&6
c47832b1 9897else
5084f823 9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
c47832b1 9900fi
9901
9902fi
9903if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 9904
9905
9906if test -n "$NM_FOR_TARGET"; then
9907 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9908elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9909 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9910fi
9911
9912if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9913 for ncn_progname in nm; do
9914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9915set dummy ${ncn_progname}; ac_word=$2
5084f823 9916echo "$as_me:$LINENO: checking for $ac_word" >&5
9917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 9918if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920else
9921 if test -n "$NM_FOR_TARGET"; then
9922 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9923else
9924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925for as_dir in $PATH
9926do
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 9931 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 break 2
9934 fi
9935done
9936done
9937
9938fi
9939fi
9940NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9941if test -n "$NM_FOR_TARGET"; then
5084f823 9942 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9943echo "${ECHO_T}$NM_FOR_TARGET" >&6
95a05732 9944else
5084f823 9945 echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6
95a05732 9947fi
9948
9949 done
9950fi
9951
9952if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9953 for ncn_progname in nm; do
5084f823 9954 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9955echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 9956 if test -x $with_build_time_tools/${ncn_progname}; then
9957 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
c47832b1 9960 break
9961 else
5084f823 9962 echo "$as_me:$LINENO: result: no" >&5
9963echo "${ECHO_T}no" >&6
c47832b1 9964 fi
9965 done
9966fi
9967
9968if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9969 for ncn_progname in nm; do
9970 if test -n "$ncn_target_tool_prefix"; then
9971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 9972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 9973echo "$as_me:$LINENO: checking for $ac_word" >&5
9974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 9975if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 9977else
ef8184c7 9978 if test -n "$NM_FOR_TARGET"; then
9979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 9980else
b30fcfae 9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 9987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 9988 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9991 fi
9992done
9993done
9994
bb612911 9995fi
9996fi
b30fcfae 9997NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 9998if test -n "$NM_FOR_TARGET"; then
5084f823 9999 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10000echo "${ECHO_T}$NM_FOR_TARGET" >&6
bb612911 10001else
5084f823 10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
bb612911 10004fi
10005
c47832b1 10006 fi
10007 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10009set dummy ${ncn_progname}; ac_word=$2
5084f823 10010echo "$as_me:$LINENO: checking for $ac_word" >&5
10011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10012if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10014else
768691b5 10015 if test -n "$NM_FOR_TARGET"; then
10016 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 10017else
b30fcfae 10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10025 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029done
10030done
10031
bb612911 10032fi
10033fi
b30fcfae 10034NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 10035if test -n "$NM_FOR_TARGET"; then
5084f823 10036 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10037echo "${ECHO_T}$NM_FOR_TARGET" >&6
bb612911 10038else
5084f823 10039 echo "$as_me:$LINENO: result: no" >&5
10040echo "${ECHO_T}no" >&6
bb612911 10041fi
b30fcfae 10042
c47832b1 10043 fi
10044 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10045 done
10046fi
b30fcfae 10047
768691b5 10048if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10049 set dummy nm
10050 if test $build = $target ; then
10051 NM_FOR_TARGET="$2"
bb612911 10052 else
768691b5 10053 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10054 fi
b7ef8464 10055else
10056 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 10057fi
10058
ab0da556 10059else
10060 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 10061fi
10062
10063
10064
10065
10066if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10067 if test -n "$with_build_time_tools"; then
5084f823 10068 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10069echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10070 if test -x $with_build_time_tools/objdump; then
10071 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10072 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5084f823 10073 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10074echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
ab0da556 10075 else
5084f823 10076 echo "$as_me:$LINENO: result: no" >&5
10077echo "${ECHO_T}no" >&6
ab0da556 10078 fi
c47832b1 10079 elif test $build != $host && test $have_gcc_for_target = yes; then
10080 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 10081 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10082 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 10083 fi
10084fi
38d7211b 10085if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10086 # Extract the first word of "objdump", so it can be a program name with args.
10087set dummy objdump; ac_word=$2
5084f823 10088echo "$as_me:$LINENO: checking for $ac_word" >&5
10089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10090if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10092else
b30fcfae 10093 case $OBJDUMP_FOR_TARGET in
10094 [\\/]* | ?:[\\/]*)
c47832b1 10095 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10096 ;;
c47832b1 10097 *)
b30fcfae 10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $gcc_cv_tool_dirs
10100do
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10105 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10108 fi
10109done
10110done
10111
c47832b1 10112 ;;
10113esac
10114fi
b30fcfae 10115OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
5084f823 10116
c47832b1 10117if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10118 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10119echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
c47832b1 10120else
5084f823 10121 echo "$as_me:$LINENO: result: no" >&5
10122echo "${ECHO_T}no" >&6
c47832b1 10123fi
10124
10125fi
10126if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 10127
10128
10129if test -n "$OBJDUMP_FOR_TARGET"; then
10130 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10131elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10132 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10133fi
10134
10135if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10136 for ncn_progname in objdump; do
10137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138set dummy ${ncn_progname}; ac_word=$2
5084f823 10139echo "$as_me:$LINENO: checking for $ac_word" >&5
10140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10141if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144 if test -n "$OBJDUMP_FOR_TARGET"; then
10145 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10146else
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10154 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10157 fi
10158done
10159done
10160
10161fi
10162fi
10163OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10164if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10165 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10166echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
95a05732 10167else
5084f823 10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
95a05732 10170fi
10171
10172 done
10173fi
10174
10175if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10176 for ncn_progname in objdump; do
5084f823 10177 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10178echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10179 if test -x $with_build_time_tools/${ncn_progname}; then
10180 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10181 echo "$as_me:$LINENO: result: yes" >&5
10182echo "${ECHO_T}yes" >&6
c47832b1 10183 break
10184 else
5084f823 10185 echo "$as_me:$LINENO: result: no" >&5
10186echo "${ECHO_T}no" >&6
c47832b1 10187 fi
10188 done
10189fi
10190
10191if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10192 for ncn_progname in objdump; do
10193 if test -n "$ncn_target_tool_prefix"; then
10194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10195set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10196echo "$as_me:$LINENO: checking for $ac_word" >&5
10197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10198if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
ae74ffb7 10200else
10201 if test -n "$OBJDUMP_FOR_TARGET"; then
10202 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10203else
b30fcfae 10204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205for as_dir in $PATH
10206do
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10211 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10214 fi
10215done
10216done
10217
ae74ffb7 10218fi
10219fi
b30fcfae 10220OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 10221if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10222 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10223echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
ae74ffb7 10224else
5084f823 10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
ae74ffb7 10227fi
10228
c47832b1 10229 fi
10230 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 10232set dummy ${ncn_progname}; ac_word=$2
5084f823 10233echo "$as_me:$LINENO: checking for $ac_word" >&5
10234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10235if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
ae74ffb7 10237else
10238 if test -n "$OBJDUMP_FOR_TARGET"; then
10239 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10240else
b30fcfae 10241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242for as_dir in $PATH
10243do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10248 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10251 fi
10252done
10253done
10254
ae74ffb7 10255fi
10256fi
b30fcfae 10257OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 10258if test -n "$OBJDUMP_FOR_TARGET"; then
5084f823 10259 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10260echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
ae74ffb7 10261else
5084f823 10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
ae74ffb7 10264fi
b30fcfae 10265
c47832b1 10266 fi
10267 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10268 done
10269fi
b30fcfae 10270
ae74ffb7 10271if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10272 set dummy objdump
10273 if test $build = $target ; then
10274 OBJDUMP_FOR_TARGET="$2"
10275 else
10276 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10277 fi
b7ef8464 10278else
10279 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 10280fi
10281
ab0da556 10282else
10283 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 10284fi
10285
10286
10287
10288
10289if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10290 if test -n "$with_build_time_tools"; then
5084f823 10291 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10292echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10293 if test -x $with_build_time_tools/ranlib; then
10294 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10295 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5084f823 10296 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10297echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
ab0da556 10298 else
5084f823 10299 echo "$as_me:$LINENO: result: no" >&5
10300echo "${ECHO_T}no" >&6
ab0da556 10301 fi
c47832b1 10302 elif test $build != $host && test $have_gcc_for_target = yes; then
10303 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 10304 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10305 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 10306 fi
10307fi
38d7211b 10308if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10309 # Extract the first word of "ranlib", so it can be a program name with args.
10310set dummy ranlib; ac_word=$2
5084f823 10311echo "$as_me:$LINENO: checking for $ac_word" >&5
10312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10313if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10315else
b30fcfae 10316 case $RANLIB_FOR_TARGET in
10317 [\\/]* | ?:[\\/]*)
c47832b1 10318 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10319 ;;
c47832b1 10320 *)
b30fcfae 10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $gcc_cv_tool_dirs
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10328 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10331 fi
10332done
10333done
10334
c47832b1 10335 ;;
10336esac
10337fi
b30fcfae 10338RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
5084f823 10339
c47832b1 10340if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10341 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10342echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
c47832b1 10343else
5084f823 10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
c47832b1 10346fi
10347
10348fi
10349if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 10350
10351
10352if test -n "$RANLIB_FOR_TARGET"; then
10353 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10354elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10355 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10356fi
10357
10358if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10359 for ncn_progname in ranlib; do
10360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10361set dummy ${ncn_progname}; ac_word=$2
5084f823 10362echo "$as_me:$LINENO: checking for $ac_word" >&5
10363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10364if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366else
10367 if test -n "$RANLIB_FOR_TARGET"; then
10368 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10369else
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10377 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381done
10382done
10383
10384fi
10385fi
10386RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10387if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10388 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10389echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
95a05732 10390else
5084f823 10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
95a05732 10393fi
10394
10395 done
10396fi
10397
10398if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10399 for ncn_progname in ranlib; do
5084f823 10400 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10401echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10402 if test -x $with_build_time_tools/${ncn_progname}; then
10403 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10404 echo "$as_me:$LINENO: result: yes" >&5
10405echo "${ECHO_T}yes" >&6
c47832b1 10406 break
10407 else
5084f823 10408 echo "$as_me:$LINENO: result: no" >&5
10409echo "${ECHO_T}no" >&6
c47832b1 10410 fi
10411 done
10412fi
10413
10414if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10415 for ncn_progname in ranlib; do
10416 if test -n "$ncn_target_tool_prefix"; then
10417 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 10418set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10419echo "$as_me:$LINENO: checking for $ac_word" >&5
10420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10421if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10423else
ef8184c7 10424 if test -n "$RANLIB_FOR_TARGET"; then
10425 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 10426else
b30fcfae 10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10434 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 break 2
10437 fi
10438done
10439done
10440
bb612911 10441fi
10442fi
b30fcfae 10443RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 10444if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10445 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10446echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
bb612911 10447else
5084f823 10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
bb612911 10450fi
10451
c47832b1 10452 fi
10453 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10455set dummy ${ncn_progname}; ac_word=$2
5084f823 10456echo "$as_me:$LINENO: checking for $ac_word" >&5
10457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10458if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10460else
768691b5 10461 if test -n "$RANLIB_FOR_TARGET"; then
10462 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 10463else
b30fcfae 10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10471 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476done
10477
bb612911 10478fi
10479fi
b30fcfae 10480RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 10481if test -n "$RANLIB_FOR_TARGET"; then
5084f823 10482 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10483echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
bb612911 10484else
5084f823 10485 echo "$as_me:$LINENO: result: no" >&5
10486echo "${ECHO_T}no" >&6
bb612911 10487fi
b30fcfae 10488
c47832b1 10489 fi
10490 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10491 done
10492fi
b30fcfae 10493
c47832b1 10494if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10495 set dummy ranlib
10496 if test $build = $target ; then
10497 RANLIB_FOR_TARGET="$2"
10498 else
10499 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10500 fi
b7ef8464 10501else
10502 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 10503fi
768691b5 10504
ab0da556 10505else
10506 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 10507fi
10508
c47832b1 10509
10510
10511
10512if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10513 if test -n "$with_build_time_tools"; then
5084f823 10514 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10515echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10516 if test -x $with_build_time_tools/strip; then
10517 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10518 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5084f823 10519 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10520echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
ab0da556 10521 else
5084f823 10522 echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
ab0da556 10524 fi
c47832b1 10525 elif test $build != $host && test $have_gcc_for_target = yes; then
10526 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 10527 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10528 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 10529 fi
10530fi
38d7211b 10531if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10532 # Extract the first word of "strip", so it can be a program name with args.
10533set dummy strip; ac_word=$2
5084f823 10534echo "$as_me:$LINENO: checking for $ac_word" >&5
10535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10536if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10538else
b30fcfae 10539 case $STRIP_FOR_TARGET in
10540 [\\/]* | ?:[\\/]*)
c47832b1 10541 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10542 ;;
c47832b1 10543 *)
b30fcfae 10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545for as_dir in $gcc_cv_tool_dirs
10546do
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10551 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10554 fi
10555done
10556done
10557
c47832b1 10558 ;;
10559esac
10560fi
b30fcfae 10561STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
5084f823 10562
c47832b1 10563if test -n "$STRIP_FOR_TARGET"; then
5084f823 10564 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10565echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
c47832b1 10566else
5084f823 10567 echo "$as_me:$LINENO: result: no" >&5
10568echo "${ECHO_T}no" >&6
c47832b1 10569fi
10570
10571fi
10572if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 10573
10574
10575if test -n "$STRIP_FOR_TARGET"; then
10576 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10577elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10578 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10579fi
10580
10581if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10582 for ncn_progname in strip; do
10583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10584set dummy ${ncn_progname}; ac_word=$2
5084f823 10585echo "$as_me:$LINENO: checking for $ac_word" >&5
10586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10587if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589else
10590 if test -n "$STRIP_FOR_TARGET"; then
10591 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10592else
10593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594for as_dir in $PATH
10595do
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10600 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10603 fi
10604done
10605done
10606
10607fi
10608fi
10609STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10610if test -n "$STRIP_FOR_TARGET"; then
5084f823 10611 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10612echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
95a05732 10613else
5084f823 10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
95a05732 10616fi
10617
10618 done
10619fi
10620
10621if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10622 for ncn_progname in strip; do
5084f823 10623 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10624echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10625 if test -x $with_build_time_tools/${ncn_progname}; then
10626 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10627 echo "$as_me:$LINENO: result: yes" >&5
10628echo "${ECHO_T}yes" >&6
c47832b1 10629 break
10630 else
5084f823 10631 echo "$as_me:$LINENO: result: no" >&5
10632echo "${ECHO_T}no" >&6
c47832b1 10633 fi
10634 done
10635fi
10636
10637if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10638 for ncn_progname in strip; do
10639 if test -n "$ncn_target_tool_prefix"; then
10640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 10641set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10642echo "$as_me:$LINENO: checking for $ac_word" >&5
10643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10644if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
ae48753c 10646else
10647 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 10648 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10649else
10650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651for as_dir in $PATH
10652do
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10657 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10660 fi
10661done
10662done
10663
9fec3fa8 10664fi
10665fi
b30fcfae 10666STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 10667if test -n "$STRIP_FOR_TARGET"; then
5084f823 10668 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10669echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9fec3fa8 10670else
5084f823 10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
9fec3fa8 10673fi
10674
c47832b1 10675 fi
10676 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 10678set dummy ${ncn_progname}; ac_word=$2
5084f823 10679echo "$as_me:$LINENO: checking for $ac_word" >&5
10680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10681if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
9fec3fa8 10683else
10684 if test -n "$STRIP_FOR_TARGET"; then
10685 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10686else
b30fcfae 10687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688for as_dir in $PATH
10689do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10694 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698done
10699done
10700
9fec3fa8 10701fi
10702fi
b30fcfae 10703STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 10704if test -n "$STRIP_FOR_TARGET"; then
5084f823 10705 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10706echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9fec3fa8 10707else
5084f823 10708 echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6
9fec3fa8 10710fi
b30fcfae 10711
c47832b1 10712 fi
10713 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10714 done
10715fi
b30fcfae 10716
9fec3fa8 10717if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10718 set dummy strip
10719 if test $build = $target ; then
10720 STRIP_FOR_TARGET="$2"
10721 else
10722 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10723 fi
b7ef8464 10724else
10725 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 10726fi
10727
ab0da556 10728else
10729 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 10730fi
10731
10732
10733
10734
10735if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10736 if test -n "$with_build_time_tools"; then
5084f823 10737 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10738echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10739 if test -x $with_build_time_tools/windres; then
10740 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10741 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5084f823 10742 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10743echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
ab0da556 10744 else
5084f823 10745 echo "$as_me:$LINENO: result: no" >&5
10746echo "${ECHO_T}no" >&6
ab0da556 10747 fi
c47832b1 10748 elif test $build != $host && test $have_gcc_for_target = yes; then
10749 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 10750 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10751 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 10752 fi
10753fi
38d7211b 10754if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10755 # Extract the first word of "windres", so it can be a program name with args.
10756set dummy windres; ac_word=$2
5084f823 10757echo "$as_me:$LINENO: checking for $ac_word" >&5
10758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10759if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
c47832b1 10761else
b30fcfae 10762 case $WINDRES_FOR_TARGET in
10763 [\\/]* | ?:[\\/]*)
c47832b1 10764 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10765 ;;
c47832b1 10766 *)
b30fcfae 10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $gcc_cv_tool_dirs
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10774 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10777 fi
10778done
10779done
10780
c47832b1 10781 ;;
10782esac
10783fi
b30fcfae 10784WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
5084f823 10785
c47832b1 10786if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10787 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10788echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
c47832b1 10789else
5084f823 10790 echo "$as_me:$LINENO: result: no" >&5
10791echo "${ECHO_T}no" >&6
c47832b1 10792fi
10793
10794fi
10795if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 10796
10797
10798if test -n "$WINDRES_FOR_TARGET"; then
10799 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10800elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10801 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10802fi
10803
10804if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10805 for ncn_progname in windres; do
10806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10807set dummy ${ncn_progname}; ac_word=$2
5084f823 10808echo "$as_me:$LINENO: checking for $ac_word" >&5
10809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95a05732 10810if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812else
10813 if test -n "$WINDRES_FOR_TARGET"; then
10814 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10815else
10816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817for as_dir in $PATH
10818do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
95a05732 10823 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827done
10828done
10829
10830fi
10831fi
10832WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10833if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10834 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10835echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
95a05732 10836else
5084f823 10837 echo "$as_me:$LINENO: result: no" >&5
10838echo "${ECHO_T}no" >&6
95a05732 10839fi
10840
10841 done
10842fi
10843
10844if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10845 for ncn_progname in windres; do
5084f823 10846 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10847echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
ab0da556 10848 if test -x $with_build_time_tools/${ncn_progname}; then
10849 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5084f823 10850 echo "$as_me:$LINENO: result: yes" >&5
10851echo "${ECHO_T}yes" >&6
c47832b1 10852 break
10853 else
5084f823 10854 echo "$as_me:$LINENO: result: no" >&5
10855echo "${ECHO_T}no" >&6
c47832b1 10856 fi
10857 done
10858fi
10859
10860if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10861 for ncn_progname in windres; do
10862 if test -n "$ncn_target_tool_prefix"; then
10863 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10864set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5084f823 10865echo "$as_me:$LINENO: checking for $ac_word" >&5
10866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10867if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10869else
ef8184c7 10870 if test -n "$WINDRES_FOR_TARGET"; then
10871 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 10872else
b30fcfae 10873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874for as_dir in $PATH
10875do
10876 IFS=$as_save_IFS
10877 test -z "$as_dir" && as_dir=.
10878 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10880 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 break 2
10883 fi
10884done
10885done
10886
bb612911 10887fi
10888fi
b30fcfae 10889WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 10890if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10891 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10892echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
bb612911 10893else
5084f823 10894 echo "$as_me:$LINENO: result: no" >&5
10895echo "${ECHO_T}no" >&6
bb612911 10896fi
10897
c47832b1 10898 fi
10899 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10901set dummy ${ncn_progname}; ac_word=$2
5084f823 10902echo "$as_me:$LINENO: checking for $ac_word" >&5
10903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
b30fcfae 10904if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
bb612911 10906else
768691b5 10907 if test -n "$WINDRES_FOR_TARGET"; then
10908 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 10909else
b30fcfae 10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
5084f823 10916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b30fcfae 10917 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921done
10922done
10923
bb612911 10924fi
10925fi
b30fcfae 10926WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 10927if test -n "$WINDRES_FOR_TARGET"; then
5084f823 10928 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10929echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
bb612911 10930else
5084f823 10931 echo "$as_me:$LINENO: result: no" >&5
10932echo "${ECHO_T}no" >&6
bb612911 10933fi
b30fcfae 10934
c47832b1 10935 fi
10936 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10937 done
10938fi
b30fcfae 10939
768691b5 10940if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10941 set dummy windres
10942 if test $build = $target ; then
10943 WINDRES_FOR_TARGET="$2"
bb612911 10944 else
768691b5 10945 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 10946 fi
b7ef8464 10947else
10948 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 10949fi
10950
ab0da556 10951else
10952 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 10953fi
10954
805e22b2 10955
75d6a0a9 10956
10957
10958if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10959 if test -n "$with_build_time_tools"; then
10960 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10961echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10962 if test -x $with_build_time_tools/windmc; then
10963 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10964 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10965 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10966echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10967 else
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
10970 fi
10971 elif test $build != $host && test $have_gcc_for_target = yes; then
10972 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 10973 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10974 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 10975 fi
10976fi
10977if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10978 # Extract the first word of "windmc", so it can be a program name with args.
10979set dummy windmc; ac_word=$2
10980echo "$as_me:$LINENO: checking for $ac_word" >&5
10981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10982if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
10985 case $WINDMC_FOR_TARGET in
10986 [\\/]* | ?:[\\/]*)
10987 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10988 ;;
10989 *)
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $gcc_cv_tool_dirs
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10997 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 break 2
11000 fi
11001done
11002done
11003
11004 ;;
11005esac
11006fi
11007WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11008
11009if test -n "$WINDMC_FOR_TARGET"; then
11010 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11011echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11012else
11013 echo "$as_me:$LINENO: result: no" >&5
11014echo "${ECHO_T}no" >&6
11015fi
11016
11017fi
11018if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11019
11020
11021if test -n "$WINDMC_FOR_TARGET"; then
11022 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11023elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11024 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11025fi
11026
11027if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11028 for ncn_progname in windmc; do
11029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11030set dummy ${ncn_progname}; ac_word=$2
11031echo "$as_me:$LINENO: checking for $ac_word" >&5
11032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11033if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035else
11036 if test -n "$WINDMC_FOR_TARGET"; then
11037 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11038else
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050done
11051done
11052
11053fi
11054fi
11055WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11056if test -n "$WINDMC_FOR_TARGET"; then
11057 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11058echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11059else
11060 echo "$as_me:$LINENO: result: no" >&5
11061echo "${ECHO_T}no" >&6
11062fi
11063
11064 done
11065fi
11066
11067if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11068 for ncn_progname in windmc; do
11069 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11070echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11071 if test -x $with_build_time_tools/${ncn_progname}; then
11072 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11073 echo "$as_me:$LINENO: result: yes" >&5
11074echo "${ECHO_T}yes" >&6
11075 break
11076 else
11077 echo "$as_me:$LINENO: result: no" >&5
11078echo "${ECHO_T}no" >&6
11079 fi
11080 done
11081fi
11082
11083if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11084 for ncn_progname in windmc; do
11085 if test -n "$ncn_target_tool_prefix"; then
11086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11087set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11088echo "$as_me:$LINENO: checking for $ac_word" >&5
11089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092else
11093 if test -n "$WINDMC_FOR_TARGET"; then
11094 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11095else
11096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097for as_dir in $PATH
11098do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 break 2
11106 fi
11107done
11108done
11109
11110fi
11111fi
11112WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11113if test -n "$WINDMC_FOR_TARGET"; then
11114 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11115echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11116else
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
11119fi
11120
11121 fi
11122 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124set dummy ${ncn_progname}; ac_word=$2
11125echo "$as_me:$LINENO: checking for $ac_word" >&5
11126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11127if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 if test -n "$WINDMC_FOR_TARGET"; then
11131 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11132else
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11143 fi
11144done
11145done
11146
11147fi
11148fi
11149WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11150if test -n "$WINDMC_FOR_TARGET"; then
11151 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11152echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11153else
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
11156fi
11157
11158 fi
11159 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11160 done
11161fi
11162
11163if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11164 set dummy windmc
11165 if test $build = $target ; then
11166 WINDMC_FOR_TARGET="$2"
11167 else
11168 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11169 fi
b7ef8464 11170else
11171 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 11172fi
11173
11174else
11175 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11176fi
11177
11178
f5aebe3e 11179RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11180
5084f823 11181echo "$as_me:$LINENO: checking where to find the target ar" >&5
11182echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
f5aebe3e 11183if test "x${build}" != "x${host}" ; then
c47832b1 11184 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11185 # We already found the complete path
a6c599b5 11186 ac_dir=`dirname $AR_FOR_TARGET`
5084f823 11187 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11188echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11189 else
11190 # Canadian cross, just use what we found
5084f823 11191 echo "$as_me:$LINENO: result: pre-installed" >&5
11192echo "${ECHO_T}pre-installed" >&6
c47832b1 11193 fi
f5aebe3e 11194else
11195 ok=yes
11196 case " ${configdirs} " in
11197 *" binutils "*) ;;
11198 *) ok=no ;;
11199 esac
b30fcfae 11200
f5aebe3e 11201 if test $ok = yes; then
11202 # An in-tree tool is available and we can use it
11203 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5084f823 11204 echo "$as_me:$LINENO: result: just compiled" >&5
11205echo "${ECHO_T}just compiled" >&6
c47832b1 11206 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11207 # We already found the complete path
a6c599b5 11208 ac_dir=`dirname $AR_FOR_TARGET`
5084f823 11209 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11210echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11211 elif test "x$target" = "x$host"; then
11212 # We can use an host tool
11213 AR_FOR_TARGET='$(AR)'
5084f823 11214 echo "$as_me:$LINENO: result: host tool" >&5
11215echo "${ECHO_T}host tool" >&6
f5aebe3e 11216 else
11217 # We need a cross tool
5084f823 11218 echo "$as_me:$LINENO: result: pre-installed" >&5
11219echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11220 fi
11221fi
a83ffacf 11222
5084f823 11223echo "$as_me:$LINENO: checking where to find the target as" >&5
11224echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
f5aebe3e 11225if test "x${build}" != "x${host}" ; then
c47832b1 11226 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
a6c599b5 11228 ac_dir=`dirname $AS_FOR_TARGET`
5084f823 11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11231 else
11232 # Canadian cross, just use what we found
5084f823 11233 echo "$as_me:$LINENO: result: pre-installed" >&5
11234echo "${ECHO_T}pre-installed" >&6
c47832b1 11235 fi
f5aebe3e 11236else
11237 ok=yes
11238 case " ${configdirs} " in
11239 *" gas "*) ;;
11240 *) ok=no ;;
11241 esac
b30fcfae 11242
f5aebe3e 11243 if test $ok = yes; then
11244 # An in-tree tool is available and we can use it
11245 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5084f823 11246 echo "$as_me:$LINENO: result: just compiled" >&5
11247echo "${ECHO_T}just compiled" >&6
c47832b1 11248 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11249 # We already found the complete path
a6c599b5 11250 ac_dir=`dirname $AS_FOR_TARGET`
5084f823 11251 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11252echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11253 elif test "x$target" = "x$host"; then
11254 # We can use an host tool
11255 AS_FOR_TARGET='$(AS)'
5084f823 11256 echo "$as_me:$LINENO: result: host tool" >&5
11257echo "${ECHO_T}host tool" >&6
f5aebe3e 11258 else
11259 # We need a cross tool
5084f823 11260 echo "$as_me:$LINENO: result: pre-installed" >&5
11261echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11262 fi
11263fi
a83ffacf 11264
5084f823 11265echo "$as_me:$LINENO: checking where to find the target cc" >&5
11266echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
f5aebe3e 11267if test "x${build}" != "x${host}" ; then
c47832b1 11268 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11269 # We already found the complete path
a6c599b5 11270 ac_dir=`dirname $CC_FOR_TARGET`
5084f823 11271 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11272echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11273 else
11274 # Canadian cross, just use what we found
5084f823 11275 echo "$as_me:$LINENO: result: pre-installed" >&5
11276echo "${ECHO_T}pre-installed" >&6
c47832b1 11277 fi
f5aebe3e 11278else
11279 ok=yes
11280 case " ${configdirs} " in
11281 *" gcc "*) ;;
11282 *) ok=no ;;
11283 esac
b30fcfae 11284
f5aebe3e 11285 if test $ok = yes; then
11286 # An in-tree tool is available and we can use it
11287 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11288 echo "$as_me:$LINENO: result: just compiled" >&5
11289echo "${ECHO_T}just compiled" >&6
c47832b1 11290 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11291 # We already found the complete path
a6c599b5 11292 ac_dir=`dirname $CC_FOR_TARGET`
5084f823 11293 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11294echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11295 elif test "x$target" = "x$host"; then
11296 # We can use an host tool
11297 CC_FOR_TARGET='$(CC)'
5084f823 11298 echo "$as_me:$LINENO: result: host tool" >&5
11299echo "${ECHO_T}host tool" >&6
f5aebe3e 11300 else
11301 # We need a cross tool
5084f823 11302 echo "$as_me:$LINENO: result: pre-installed" >&5
11303echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11304 fi
11305fi
a83ffacf 11306
5084f823 11307echo "$as_me:$LINENO: checking where to find the target c++" >&5
11308echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
f5aebe3e 11309if test "x${build}" != "x${host}" ; then
c47832b1 11310 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11311 # We already found the complete path
a6c599b5 11312 ac_dir=`dirname $CXX_FOR_TARGET`
5084f823 11313 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11314echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11315 else
11316 # Canadian cross, just use what we found
5084f823 11317 echo "$as_me:$LINENO: result: pre-installed" >&5
11318echo "${ECHO_T}pre-installed" >&6
c47832b1 11319 fi
f5aebe3e 11320else
11321 ok=yes
11322 case " ${configdirs} " in
11323 *" gcc "*) ;;
11324 *) ok=no ;;
11325 esac
11326 case ,${enable_languages}, in
11327 *,c++,*) ;;
11328 *) ok=no ;;
11329 esac
11330 if test $ok = yes; then
11331 # An in-tree tool is available and we can use it
11332 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 11333 echo "$as_me:$LINENO: result: just compiled" >&5
11334echo "${ECHO_T}just compiled" >&6
c47832b1 11335 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11336 # We already found the complete path
a6c599b5 11337 ac_dir=`dirname $CXX_FOR_TARGET`
5084f823 11338 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11339echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11340 elif test "x$target" = "x$host"; then
11341 # We can use an host tool
11342 CXX_FOR_TARGET='$(CXX)'
5084f823 11343 echo "$as_me:$LINENO: result: host tool" >&5
11344echo "${ECHO_T}host tool" >&6
f5aebe3e 11345 else
11346 # We need a cross tool
5084f823 11347 echo "$as_me:$LINENO: result: pre-installed" >&5
11348echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11349 fi
11350fi
a83ffacf 11351
5084f823 11352echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11353echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
f5aebe3e 11354if test "x${build}" != "x${host}" ; then
c47832b1 11355 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11356 # We already found the complete path
a6c599b5 11357 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5084f823 11358 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11359echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11360 else
11361 # Canadian cross, just use what we found
5084f823 11362 echo "$as_me:$LINENO: result: pre-installed" >&5
11363echo "${ECHO_T}pre-installed" >&6
c47832b1 11364 fi
f5aebe3e 11365else
11366 ok=yes
11367 case " ${configdirs} " in
11368 *" gcc "*) ;;
11369 *) ok=no ;;
11370 esac
11371 case ,${enable_languages}, in
11372 *,c++,*) ;;
11373 *) ok=no ;;
11374 esac
11375 if test $ok = yes; then
11376 # An in-tree tool is available and we can use it
11377 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 11378 echo "$as_me:$LINENO: result: just compiled" >&5
11379echo "${ECHO_T}just compiled" >&6
c47832b1 11380 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11381 # We already found the complete path
a6c599b5 11382 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5084f823 11383 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11384echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11385 elif test "x$target" = "x$host"; then
11386 # We can use an host tool
11387 RAW_CXX_FOR_TARGET='$(CXX)'
5084f823 11388 echo "$as_me:$LINENO: result: host tool" >&5
11389echo "${ECHO_T}host tool" >&6
f5aebe3e 11390 else
11391 # We need a cross tool
5084f823 11392 echo "$as_me:$LINENO: result: pre-installed" >&5
11393echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11394 fi
11395fi
a83ffacf 11396
5084f823 11397echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11398echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
f5aebe3e 11399if test "x${build}" != "x${host}" ; then
c47832b1 11400 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11401 # We already found the complete path
a6c599b5 11402 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5084f823 11403 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11404echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11405 else
11406 # Canadian cross, just use what we found
5084f823 11407 echo "$as_me:$LINENO: result: pre-installed" >&5
11408echo "${ECHO_T}pre-installed" >&6
c47832b1 11409 fi
f5aebe3e 11410else
11411 ok=yes
11412 case " ${configdirs} " in
11413 *" binutils "*) ;;
11414 *) ok=no ;;
11415 esac
b30fcfae 11416
f5aebe3e 11417 if test $ok = yes; then
11418 # An in-tree tool is available and we can use it
11419 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5084f823 11420 echo "$as_me:$LINENO: result: just compiled" >&5
11421echo "${ECHO_T}just compiled" >&6
c47832b1 11422 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11423 # We already found the complete path
a6c599b5 11424 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5084f823 11425 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11426echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11427 elif test "x$target" = "x$host"; then
11428 # We can use an host tool
11429 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5084f823 11430 echo "$as_me:$LINENO: result: host tool" >&5
11431echo "${ECHO_T}host tool" >&6
f5aebe3e 11432 else
11433 # We need a cross tool
5084f823 11434 echo "$as_me:$LINENO: result: pre-installed" >&5
11435echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11436 fi
11437fi
a83ffacf 11438
5084f823 11439echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11440echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
f5aebe3e 11441if test "x${build}" != "x${host}" ; then
c47832b1 11442 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11443 # We already found the complete path
a6c599b5 11444 ac_dir=`dirname $GCC_FOR_TARGET`
5084f823 11445 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11446echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11447 else
11448 # Canadian cross, just use what we found
5084f823 11449 echo "$as_me:$LINENO: result: pre-installed" >&5
11450echo "${ECHO_T}pre-installed" >&6
c47832b1 11451 fi
f5aebe3e 11452else
11453 ok=yes
11454 case " ${configdirs} " in
11455 *" gcc "*) ;;
11456 *) ok=no ;;
11457 esac
b30fcfae 11458
f5aebe3e 11459 if test $ok = yes; then
11460 # An in-tree tool is available and we can use it
11461 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11462 echo "$as_me:$LINENO: result: just compiled" >&5
11463echo "${ECHO_T}just compiled" >&6
c47832b1 11464 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11465 # We already found the complete path
a6c599b5 11466 ac_dir=`dirname $GCC_FOR_TARGET`
5084f823 11467 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11468echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11469 elif test "x$target" = "x$host"; then
11470 # We can use an host tool
11471 GCC_FOR_TARGET='$()'
5084f823 11472 echo "$as_me:$LINENO: result: host tool" >&5
11473echo "${ECHO_T}host tool" >&6
f5aebe3e 11474 else
11475 # We need a cross tool
5084f823 11476 echo "$as_me:$LINENO: result: pre-installed" >&5
11477echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11478 fi
11479fi
a83ffacf 11480
5084f823 11481echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11482echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
f5aebe3e 11483if test "x${build}" != "x${host}" ; then
c47832b1 11484 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11485 # We already found the complete path
a6c599b5 11486 ac_dir=`dirname $GCJ_FOR_TARGET`
5084f823 11487 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11488echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11489 else
11490 # Canadian cross, just use what we found
5084f823 11491 echo "$as_me:$LINENO: result: pre-installed" >&5
11492echo "${ECHO_T}pre-installed" >&6
c47832b1 11493 fi
f5aebe3e 11494else
11495 ok=yes
11496 case " ${configdirs} " in
11497 *" gcc "*) ;;
11498 *) ok=no ;;
11499 esac
11500 case ,${enable_languages}, in
11501 *,java,*) ;;
11502 *) ok=no ;;
11503 esac
11504 if test $ok = yes; then
11505 # An in-tree tool is available and we can use it
11506 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11507 echo "$as_me:$LINENO: result: just compiled" >&5
11508echo "${ECHO_T}just compiled" >&6
c47832b1 11509 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11510 # We already found the complete path
a6c599b5 11511 ac_dir=`dirname $GCJ_FOR_TARGET`
5084f823 11512 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11513echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11514 elif test "x$target" = "x$host"; then
11515 # We can use an host tool
11516 GCJ_FOR_TARGET='$(GCJ)'
5084f823 11517 echo "$as_me:$LINENO: result: host tool" >&5
11518echo "${ECHO_T}host tool" >&6
f5aebe3e 11519 else
11520 # We need a cross tool
5084f823 11521 echo "$as_me:$LINENO: result: pre-installed" >&5
11522echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11523 fi
11524fi
a83ffacf 11525
5084f823 11526echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11527echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
f5aebe3e 11528if test "x${build}" != "x${host}" ; then
c47832b1 11529 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11530 # We already found the complete path
a6c599b5 11531 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5084f823 11532 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11533echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11534 else
11535 # Canadian cross, just use what we found
5084f823 11536 echo "$as_me:$LINENO: result: pre-installed" >&5
11537echo "${ECHO_T}pre-installed" >&6
c47832b1 11538 fi
f5aebe3e 11539else
11540 ok=yes
11541 case " ${configdirs} " in
11542 *" gcc "*) ;;
11543 *) ok=no ;;
11544 esac
11545 case ,${enable_languages}, in
11546 *,fortran,*) ;;
11547 *) ok=no ;;
11548 esac
11549 if test $ok = yes; then
11550 # An in-tree tool is available and we can use it
11551 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5084f823 11552 echo "$as_me:$LINENO: result: just compiled" >&5
11553echo "${ECHO_T}just compiled" >&6
c47832b1 11554 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11555 # We already found the complete path
a6c599b5 11556 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5084f823 11557 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11558echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11559 elif test "x$target" = "x$host"; then
11560 # We can use an host tool
11561 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5084f823 11562 echo "$as_me:$LINENO: result: host tool" >&5
11563echo "${ECHO_T}host tool" >&6
f5aebe3e 11564 else
11565 # We need a cross tool
5084f823 11566 echo "$as_me:$LINENO: result: pre-installed" >&5
11567echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11568 fi
11569fi
a83ffacf 11570
5084f823 11571echo "$as_me:$LINENO: checking where to find the target ld" >&5
11572echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
f5aebe3e 11573if test "x${build}" != "x${host}" ; then
c47832b1 11574 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11575 # We already found the complete path
a6c599b5 11576 ac_dir=`dirname $LD_FOR_TARGET`
5084f823 11577 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11578echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11579 else
11580 # Canadian cross, just use what we found
5084f823 11581 echo "$as_me:$LINENO: result: pre-installed" >&5
11582echo "${ECHO_T}pre-installed" >&6
c47832b1 11583 fi
f5aebe3e 11584else
11585 ok=yes
11586 case " ${configdirs} " in
11587 *" ld "*) ;;
11588 *) ok=no ;;
11589 esac
b30fcfae 11590
f5aebe3e 11591 if test $ok = yes; then
11592 # An in-tree tool is available and we can use it
11593 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5084f823 11594 echo "$as_me:$LINENO: result: just compiled" >&5
11595echo "${ECHO_T}just compiled" >&6
c47832b1 11596 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11597 # We already found the complete path
a6c599b5 11598 ac_dir=`dirname $LD_FOR_TARGET`
5084f823 11599 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11600echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11601 elif test "x$target" = "x$host"; then
11602 # We can use an host tool
11603 LD_FOR_TARGET='$(LD)'
5084f823 11604 echo "$as_me:$LINENO: result: host tool" >&5
11605echo "${ECHO_T}host tool" >&6
f5aebe3e 11606 else
11607 # We need a cross tool
5084f823 11608 echo "$as_me:$LINENO: result: pre-installed" >&5
11609echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11610 fi
11611fi
a83ffacf 11612
5084f823 11613echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11614echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
f5aebe3e 11615if test "x${build}" != "x${host}" ; then
c47832b1 11616 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11617 # We already found the complete path
a6c599b5 11618 ac_dir=`dirname $LIPO_FOR_TARGET`
5084f823 11619 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11620echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11621 else
11622 # Canadian cross, just use what we found
5084f823 11623 echo "$as_me:$LINENO: result: pre-installed" >&5
11624echo "${ECHO_T}pre-installed" >&6
c47832b1 11625 fi
f5aebe3e 11626else
c47832b1 11627 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11628 # We already found the complete path
a6c599b5 11629 ac_dir=`dirname $LIPO_FOR_TARGET`
5084f823 11630 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11631echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11632 elif test "x$target" = "x$host"; then
f5aebe3e 11633 # We can use an host tool
11634 LIPO_FOR_TARGET='$(LIPO)'
5084f823 11635 echo "$as_me:$LINENO: result: host tool" >&5
11636echo "${ECHO_T}host tool" >&6
f5aebe3e 11637 else
11638 # We need a cross tool
5084f823 11639 echo "$as_me:$LINENO: result: pre-installed" >&5
11640echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11641 fi
11642fi
a83ffacf 11643
5084f823 11644echo "$as_me:$LINENO: checking where to find the target nm" >&5
11645echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
f5aebe3e 11646if test "x${build}" != "x${host}" ; then
c47832b1 11647 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11648 # We already found the complete path
a6c599b5 11649 ac_dir=`dirname $NM_FOR_TARGET`
5084f823 11650 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11651echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11652 else
11653 # Canadian cross, just use what we found
5084f823 11654 echo "$as_me:$LINENO: result: pre-installed" >&5
11655echo "${ECHO_T}pre-installed" >&6
c47832b1 11656 fi
f5aebe3e 11657else
11658 ok=yes
11659 case " ${configdirs} " in
11660 *" binutils "*) ;;
11661 *) ok=no ;;
11662 esac
b30fcfae 11663
f5aebe3e 11664 if test $ok = yes; then
11665 # An in-tree tool is available and we can use it
11666 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5084f823 11667 echo "$as_me:$LINENO: result: just compiled" >&5
11668echo "${ECHO_T}just compiled" >&6
c47832b1 11669 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11670 # We already found the complete path
a6c599b5 11671 ac_dir=`dirname $NM_FOR_TARGET`
5084f823 11672 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11673echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11674 elif test "x$target" = "x$host"; then
11675 # We can use an host tool
11676 NM_FOR_TARGET='$(NM)'
5084f823 11677 echo "$as_me:$LINENO: result: host tool" >&5
11678echo "${ECHO_T}host tool" >&6
f5aebe3e 11679 else
11680 # We need a cross tool
5084f823 11681 echo "$as_me:$LINENO: result: pre-installed" >&5
11682echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11683 fi
11684fi
a83ffacf 11685
5084f823 11686echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11687echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
f5aebe3e 11688if test "x${build}" != "x${host}" ; then
c47832b1 11689 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
a6c599b5 11691 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5084f823 11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11694 else
11695 # Canadian cross, just use what we found
5084f823 11696 echo "$as_me:$LINENO: result: pre-installed" >&5
11697echo "${ECHO_T}pre-installed" >&6
c47832b1 11698 fi
f5aebe3e 11699else
11700 ok=yes
11701 case " ${configdirs} " in
11702 *" binutils "*) ;;
11703 *) ok=no ;;
11704 esac
b30fcfae 11705
f5aebe3e 11706 if test $ok = yes; then
11707 # An in-tree tool is available and we can use it
11708 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5084f823 11709 echo "$as_me:$LINENO: result: just compiled" >&5
11710echo "${ECHO_T}just compiled" >&6
c47832b1 11711 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11712 # We already found the complete path
a6c599b5 11713 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5084f823 11714 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11715echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11716 elif test "x$target" = "x$host"; then
11717 # We can use an host tool
11718 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5084f823 11719 echo "$as_me:$LINENO: result: host tool" >&5
11720echo "${ECHO_T}host tool" >&6
f5aebe3e 11721 else
11722 # We need a cross tool
5084f823 11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11725 fi
11726fi
a83ffacf 11727
5084f823 11728echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11729echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
f5aebe3e 11730if test "x${build}" != "x${host}" ; then
c47832b1 11731 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
a6c599b5 11733 ac_dir=`dirname $RANLIB_FOR_TARGET`
5084f823 11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11736 else
11737 # Canadian cross, just use what we found
5084f823 11738 echo "$as_me:$LINENO: result: pre-installed" >&5
11739echo "${ECHO_T}pre-installed" >&6
c47832b1 11740 fi
f5aebe3e 11741else
11742 ok=yes
11743 case " ${configdirs} " in
11744 *" binutils "*) ;;
11745 *) ok=no ;;
11746 esac
b30fcfae 11747
f5aebe3e 11748 if test $ok = yes; then
11749 # An in-tree tool is available and we can use it
11750 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5084f823 11751 echo "$as_me:$LINENO: result: just compiled" >&5
11752echo "${ECHO_T}just compiled" >&6
c47832b1 11753 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11754 # We already found the complete path
a6c599b5 11755 ac_dir=`dirname $RANLIB_FOR_TARGET`
5084f823 11756 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11757echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11758 elif test "x$target" = "x$host"; then
11759 # We can use an host tool
11760 RANLIB_FOR_TARGET='$(RANLIB)'
5084f823 11761 echo "$as_me:$LINENO: result: host tool" >&5
11762echo "${ECHO_T}host tool" >&6
f5aebe3e 11763 else
11764 # We need a cross tool
5084f823 11765 echo "$as_me:$LINENO: result: pre-installed" >&5
11766echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11767 fi
11768fi
a83ffacf 11769
5084f823 11770echo "$as_me:$LINENO: checking where to find the target strip" >&5
11771echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
f5aebe3e 11772if test "x${build}" != "x${host}" ; then
c47832b1 11773 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
a6c599b5 11775 ac_dir=`dirname $STRIP_FOR_TARGET`
5084f823 11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11778 else
11779 # Canadian cross, just use what we found
5084f823 11780 echo "$as_me:$LINENO: result: pre-installed" >&5
11781echo "${ECHO_T}pre-installed" >&6
c47832b1 11782 fi
f5aebe3e 11783else
11784 ok=yes
11785 case " ${configdirs} " in
11786 *" binutils "*) ;;
11787 *) ok=no ;;
11788 esac
b30fcfae 11789
f5aebe3e 11790 if test $ok = yes; then
11791 # An in-tree tool is available and we can use it
11792 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5084f823 11793 echo "$as_me:$LINENO: result: just compiled" >&5
11794echo "${ECHO_T}just compiled" >&6
c47832b1 11795 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11796 # We already found the complete path
a6c599b5 11797 ac_dir=`dirname $STRIP_FOR_TARGET`
5084f823 11798 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11799echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11800 elif test "x$target" = "x$host"; then
11801 # We can use an host tool
11802 STRIP_FOR_TARGET='$(STRIP)'
5084f823 11803 echo "$as_me:$LINENO: result: host tool" >&5
11804echo "${ECHO_T}host tool" >&6
f5aebe3e 11805 else
11806 # We need a cross tool
5084f823 11807 echo "$as_me:$LINENO: result: pre-installed" >&5
11808echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11809 fi
11810fi
a83ffacf 11811
5084f823 11812echo "$as_me:$LINENO: checking where to find the target windres" >&5
11813echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
f5aebe3e 11814if test "x${build}" != "x${host}" ; then
c47832b1 11815 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
a6c599b5 11817 ac_dir=`dirname $WINDRES_FOR_TARGET`
5084f823 11818 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819echo "${ECHO_T}pre-installed in $ac_dir" >&6
c47832b1 11820 else
11821 # Canadian cross, just use what we found
5084f823 11822 echo "$as_me:$LINENO: result: pre-installed" >&5
11823echo "${ECHO_T}pre-installed" >&6
c47832b1 11824 fi
f5aebe3e 11825else
11826 ok=yes
11827 case " ${configdirs} " in
11828 *" binutils "*) ;;
11829 *) ok=no ;;
11830 esac
b30fcfae 11831
f5aebe3e 11832 if test $ok = yes; then
11833 # An in-tree tool is available and we can use it
11834 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5084f823 11835 echo "$as_me:$LINENO: result: just compiled" >&5
11836echo "${ECHO_T}just compiled" >&6
c47832b1 11837 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11838 # We already found the complete path
a6c599b5 11839 ac_dir=`dirname $WINDRES_FOR_TARGET`
5084f823 11840 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11841echo "${ECHO_T}pre-installed in $ac_dir" >&6
f5aebe3e 11842 elif test "x$target" = "x$host"; then
11843 # We can use an host tool
11844 WINDRES_FOR_TARGET='$(WINDRES)'
5084f823 11845 echo "$as_me:$LINENO: result: host tool" >&5
11846echo "${ECHO_T}host tool" >&6
f5aebe3e 11847 else
11848 # We need a cross tool
5084f823 11849 echo "$as_me:$LINENO: result: pre-installed" >&5
11850echo "${ECHO_T}pre-installed" >&6
f5aebe3e 11851 fi
71ab34df 11852fi
49aae208 11853
75d6a0a9 11854echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11855echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11856if test "x${build}" != "x${host}" ; then
11857 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11858 # We already found the complete path
11859 ac_dir=`dirname $WINDMC_FOR_TARGET`
11860 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11861echo "${ECHO_T}pre-installed in $ac_dir" >&6
11862 else
11863 # Canadian cross, just use what we found
11864 echo "$as_me:$LINENO: result: pre-installed" >&5
11865echo "${ECHO_T}pre-installed" >&6
11866 fi
11867else
11868 ok=yes
11869 case " ${configdirs} " in
11870 *" binutils "*) ;;
11871 *) ok=no ;;
11872 esac
11873
11874 if test $ok = yes; then
11875 # An in-tree tool is available and we can use it
11876 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11877 echo "$as_me:$LINENO: result: just compiled" >&5
11878echo "${ECHO_T}just compiled" >&6
11879 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11880 # We already found the complete path
11881 ac_dir=`dirname $WINDMC_FOR_TARGET`
11882 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11883echo "${ECHO_T}pre-installed in $ac_dir" >&6
11884 elif test "x$target" = "x$host"; then
11885 # We can use an host tool
11886 WINDMC_FOR_TARGET='$(WINDMC)'
11887 echo "$as_me:$LINENO: result: host tool" >&5
11888echo "${ECHO_T}host tool" >&6
11889 else
11890 # We need a cross tool
11891 echo "$as_me:$LINENO: result: pre-installed" >&5
11892echo "${ECHO_T}pre-installed" >&6
11893 fi
11894fi
11895
49aae208 11896
11897
f5aebe3e 11898
a83ffacf 11899
71ab34df 11900# Certain tools may need extra flags.
11901AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11902RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11903NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11904
f5aebe3e 11905# When building target libraries, except in a Canadian cross, we use
11906# the same toolchain as the compiler we just built.
11907COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11908COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11909COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11910if test $host = $build; then
11911 case " $configdirs " in
11912 *" gcc "*)
11913 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11914 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11915 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11916 ;;
11917 esac
11918fi
11919
11920
11921
11922
11923
5084f823 11924echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11925echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11926# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3290c0cf 11927if test "${enable_maintainer_mode+set}" = set; then
5084f823 11928 enableval="$enable_maintainer_mode"
11929 USE_MAINTAINER_MODE=$enableval
3290c0cf 11930else
11931 USE_MAINTAINER_MODE=no
5084f823 11932fi;
11933echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11934echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3290c0cf 11935
11936
11937if test "$USE_MAINTAINER_MODE" = yes; then
11938 MAINTAINER_MODE_TRUE=
11939 MAINTAINER_MODE_FALSE='#'
11940else
11941 MAINTAINER_MODE_TRUE='#'
11942 MAINTAINER_MODE_FALSE=
b30fcfae 11943fi
3290c0cf 11944MAINT=$MAINTAINER_MODE_TRUE
11945
2d64c2fd 11946# ---------------------
11947# GCC bootstrap support
11948# ---------------------
11949
11950# Stage specific cflags for build.
11951stage1_cflags="-g"
11952case $build in
11953 vax-*-*)
11954 case ${GCC} in
11955 yes) stage1_cflags="-g -Wa,-J" ;;
11956 *) stage1_cflags="-g -J" ;;
11957 esac ;;
2d64c2fd 11958esac
11959
f508ba97 11960# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11961if test "$GCC" = yes; then
11962 saved_CFLAGS="$CFLAGS"
11963
11964 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11965 CFLAGS="$CFLAGS -fkeep-inline-functions"
5084f823 11966 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11967echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
b30fcfae 11968 cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
11974
505abe0c 11975#if (__GNUC__ < 3) \
11976 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11977 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11978#error http://gcc.gnu.org/PR29382
11979#endif
11980
b30fcfae 11981int
11982main ()
11983{
11984
11985 ;
11986 return 0;
11987}
11988_ACEOF
11989rm -f conftest.$ac_objext
5084f823 11990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>conftest.er1
b30fcfae 11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084f823 11997 (exit $ac_status); } &&
11998 { ac_try='test -z "$ac_c_werror_flag"
11999 || test ! -s conftest.err'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 echo "$as_me:$LINENO: result: yes" >&5
12012echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
b30fcfae 12013else
12014 echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
5084f823 12017echo "$as_me:$LINENO: result: no" >&5
12018echo "${ECHO_T}no" >&6
b30fcfae 12019fi
5084f823 12020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f508ba97 12021
12022 CFLAGS="$saved_CFLAGS"
12023fi
12024
12025
2d64c2fd 12026
39f34cfc 12027# Enable --enable-checking in stage1 of the compiler.
5084f823 12028# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
39f34cfc 12029if test "${enable_stage1_checking+set}" = set; then
5084f823 12030 enableval="$enable_stage1_checking"
12031 stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 12032else
f6be6a96 12033 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
f03e0ae4 12034 stage1_checking=--enable-checking=yes,types
39f34cfc 12035else
f6be6a96 12036 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 12037fi
5084f823 12038fi;
39f34cfc 12039
12040
2d64c2fd 12041# Enable -Werror in bootstrap stage2 and later.
5084f823 12042# Check whether --enable-werror or --disable-werror was given.
2d64c2fd 12043if test "${enable_werror+set}" = set; then
5084f823 12044 enableval="$enable_werror"
12045
2d64c2fd 12046else
dd979235 12047 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2d64c2fd 12048 enable_werror=yes
dc914c6d 12049else
12050 enable_werror=no
12051fi
5084f823 12052fi;
c0c5068d 12053case ${enable_werror} in
12054 yes) stage2_werror_flag="--enable-werror-always" ;;
12055 *) stage2_werror_flag="" ;;
2d64c2fd 12056esac
12057
12058
d06227a7 12059# Flags needed to enable html installing and building
b30fcfae 12060
5084f823 12061# Check whether --with-datarootdir or --without-datarootdir was given.
d06227a7 12062if test "${with_datarootdir+set}" = set; then
5084f823 12063 withval="$with_datarootdir"
12064 datarootdir="\${prefix}/${withval}"
d06227a7 12065else
12066 datarootdir="\${prefix}/share"
5084f823 12067fi;
d06227a7 12068
12069
5084f823 12070# Check whether --with-docdir or --without-docdir was given.
d06227a7 12071if test "${with_docdir+set}" = set; then
5084f823 12072 withval="$with_docdir"
12073 docdir="\${prefix}/${withval}"
d06227a7 12074else
12075 docdir="\${datarootdir}/doc"
5084f823 12076fi;
d06227a7 12077
12078
5084f823 12079# Check whether --with-pdfdir or --without-pdfdir was given.
130effca 12080if test "${with_pdfdir+set}" = set; then
5084f823 12081 withval="$with_pdfdir"
12082 pdfdir="\${prefix}/${withval}"
130effca 12083else
12084 pdfdir="\${docdir}"
5084f823 12085fi;
130effca 12086
12087
5084f823 12088# Check whether --with-htmldir or --without-htmldir was given.
d06227a7 12089if test "${with_htmldir+set}" = set; then
5084f823 12090 withval="$with_htmldir"
12091 htmldir="\${prefix}/${withval}"
d06227a7 12092else
12093 htmldir="\${docdir}"
5084f823 12094fi;
d06227a7 12095
12096
12097
12098
a6c599b5 12099
570af75a 12100
5084f823 12101 ac_config_files="$ac_config_files Makefile"
b30fcfae 12102cat >confcache <<\_ACEOF
71ab34df 12103# This file is a shell script that caches the results of configure
12104# tests run on this system so they can be shared between configure
b30fcfae 12105# scripts and configure runs, see configure's option --config-cache.
12106# It is not useful on other systems. If it contains results you don't
12107# want to keep, you may remove or edit it.
71ab34df 12108#
b30fcfae 12109# config.status only pays attention to the cache file if you give it
12110# the --recheck option to rerun configure.
71ab34df 12111#
b30fcfae 12112# `ac_cv_env_foo' variables (set or unset) will be overridden when
12113# loading this file, other *unset* `ac_cv_foo' will be assigned the
12114# following values.
12115
12116_ACEOF
12117
71ab34df 12118# The following way of writing the cache mishandles newlines in values,
12119# but we know of no workaround that is simple, portable, and efficient.
5084f823 12120# So, don't put newlines in cache variables' values.
71ab34df 12121# Ultrix sh set writes to stderr and can't be redirected directly,
12122# and sets the high bit in the cache file unless we assign to the vars.
5084f823 12123{
b30fcfae 12124 (set) 2>&1 |
5084f823 12125 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12126 *ac_space=\ *)
b30fcfae 12127 # `set' does not quote correctly, so add quotes (double-quote
12128 # substitution turns \\\\ into \\, and sed turns \\ into \).
12129 sed -n \
12130 "s/'/'\\\\''/g;
12131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5084f823 12132 ;;
b30fcfae 12133 *)
12134 # `set' quotes correctly as required by POSIX, so do not add quotes.
5084f823 12135 sed -n \
12136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b30fcfae 12137 ;;
5084f823 12138 esac;
12139} |
b30fcfae 12140 sed '
12141 t clear
5084f823 12142 : clear
b30fcfae 12143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12144 t end
5084f823 12145 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12146 : end' >>confcache
12147if diff $cache_file confcache >/dev/null 2>&1; then :; else
12148 if test -w $cache_file; then
12149 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
b30fcfae 12150 cat confcache >$cache_file
71ab34df 12151 else
5084f823 12152 echo "not updating unwritable cache $cache_file"
71ab34df 12153 fi
805e22b2 12154fi
71ab34df 12155rm -f confcache
a8298541 12156
71ab34df 12157test "x$prefix" = xNONE && prefix=$ac_default_prefix
12158# Let make expand exec_prefix.
12159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 12160
5084f823 12161# VPATH may cause trouble with some makes, so we remove $(srcdir),
12162# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12163# trailing colons and then remove the whole line if VPATH becomes empty
12164# (actually we leave an empty line to preserve line numbers).
12165if test "x$srcdir" = x.; then
12166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12167s/:*\$(srcdir):*/:/;
12168s/:*\${srcdir}:*/:/;
12169s/:*@srcdir@:*/:/;
12170s/^\([^=]*=[ ]*\):*/\1/;
12171s/:*$//;
12172s/^[^=]*=[ ]*$//;
12173}'
12174fi
12175
71ab34df 12176# Transform confdefs.h into DEFS.
12177# Protect against shell expansion while executing Makefile rules.
12178# Protect against Makefile macro expansion.
b30fcfae 12179#
12180# If the first sed substitution is executed (which looks for macros that
5084f823 12181# take arguments), then we branch to the quote section. Otherwise,
b30fcfae 12182# look for a macro that doesn't take arguments.
5084f823 12183cat >confdef2opt.sed <<\_ACEOF
b30fcfae 12184t clear
5084f823 12185: clear
12186s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
b30fcfae 12187t quote
5084f823 12188s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
b30fcfae 12189t quote
5084f823 12190d
12191: quote
12192s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12193s,\[,\\&,g
12194s,\],\\&,g
12195s,\$,$$,g
12196p
12197_ACEOF
12198# We use echo to avoid assuming a particular line-breaking character.
12199# The extra dot is to prevent the shell from consuming trailing
12200# line-breaks from the sub-command output. A line-break within
12201# single-quotes doesn't work because, if this script is created in a
12202# platform that uses two characters for line-breaks (e.g., DOS), tr
12203# would break.
12204ac_LF_and_DOT=`echo; echo .`
12205DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12206rm -f confdef2opt.sed
b30fcfae 12207
12208
12209ac_libobjs=
12210ac_ltlibobjs=
12211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12212 # 1. Remove the extension, and $U if already installed.
5084f823 12213 ac_i=`echo "$ac_i" |
12214 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12215 # 2. Add them.
12216 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12217 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
b30fcfae 12218done
12219LIBOBJS=$ac_libobjs
a4af6a58 12220
b30fcfae 12221LTLIBOBJS=$ac_ltlibobjs
a83ffacf 12222
ae48753c 12223
b30fcfae 12224
12225: ${CONFIG_STATUS=./config.status}
12226ac_clean_files_save=$ac_clean_files
12227ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12228{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12229echo "$as_me: creating $CONFIG_STATUS" >&6;}
12230cat >$CONFIG_STATUS <<_ACEOF
12231#! $SHELL
12232# Generated by $as_me.
71ab34df 12233# Run this file to recreate the current configuration.
71ab34df 12234# Compiler output produced by configure, useful for debugging
b30fcfae 12235# configure, is in config.log if it exists.
a83ffacf 12236
b30fcfae 12237debug=false
12238ac_cs_recheck=false
12239ac_cs_silent=false
12240SHELL=\${CONFIG_SHELL-$SHELL}
12241_ACEOF
12242
12243cat >>$CONFIG_STATUS <<\_ACEOF
12244## --------------------- ##
12245## M4sh Initialization. ##
12246## --------------------- ##
12247
5084f823 12248# Be Bourne compatible
b30fcfae 12249if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12250 emulate sh
12251 NULLCMD=:
12252 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12253 # is contrary to our usage. Disable this feature.
12254 alias -g '${1+"$@"}'='"$@"'
5084f823 12255elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12256 set -o posix
b30fcfae 12257fi
5084f823 12258DUALCASE=1; export DUALCASE # for MKS sh
b30fcfae 12259
12260# Support unset when possible.
12261if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12262 as_unset=unset
12263else
12264 as_unset=false
12265fi
12266
12267
12268# Work around bugs in pre-3.0 UWIN ksh.
5084f823 12269$as_unset ENV MAIL MAILPATH
b30fcfae 12270PS1='$ '
12271PS2='> '
12272PS4='+ '
12273
12274# NLS nuisances.
12275for as_var in \
12276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12278 LC_TELEPHONE LC_TIME
12279do
12280 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12281 eval $as_var=C; export $as_var
12282 else
5084f823 12283 $as_unset $as_var
b30fcfae 12284 fi
12285done
12286
12287# Required to use basename.
5084f823 12288if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 12289 as_expr=expr
12290else
12291 as_expr=false
12292fi
12293
5084f823 12294if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
b30fcfae 12295 as_basename=basename
12296else
12297 as_basename=false
12298fi
12299
12300
12301# Name of the executable.
5084f823 12302as_me=`$as_basename "$0" ||
b30fcfae 12303$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12304 X"$0" : 'X\(//\)$' \| \
5084f823 12305 X"$0" : 'X\(/\)$' \| \
12306 . : '\(.\)' 2>/dev/null ||
b30fcfae 12307echo X/"$0" |
5084f823 12308 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12309 /^X\/\(\/\/\)$/{ s//\1/; q; }
12310 /^X\/\(\/\).*/{ s//\1/; q; }
12311 s/.*/./; q'`
b30fcfae 12312
5084f823 12313
12314# PATH needs CR, and LINENO needs CR and PATH.
12315# Avoid depending upon Character Ranges.
12316as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12317as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12318as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12319as_cr_digits='0123456789'
12320as_cr_alnum=$as_cr_Letters$as_cr_digits
12321
12322# The user is always right.
12323if test "${PATH_SEPARATOR+set}" != set; then
12324 echo "#! /bin/sh" >conf$$.sh
12325 echo "exit 0" >>conf$$.sh
12326 chmod +x conf$$.sh
12327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12328 PATH_SEPARATOR=';'
12329 else
12330 PATH_SEPARATOR=:
12331 fi
12332 rm -f conf$$.sh
12333fi
b30fcfae 12334
12335
5084f823 12336 as_lineno_1=$LINENO
12337 as_lineno_2=$LINENO
12338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12339 test "x$as_lineno_1" != "x$as_lineno_2" &&
12340 test "x$as_lineno_3" = "x$as_lineno_2" || {
12341 # Find who we are. Look in the path if we contain no path at all
12342 # relative or not.
12343 case $0 in
12344 *[\\/]* ) as_myself=$0 ;;
12345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346for as_dir in $PATH
12347do
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
12350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12351done
b30fcfae 12352
5084f823 12353 ;;
12354 esac
12355 # We did not find ourselves, most probably we were run as `sh COMMAND'
12356 # in which case we are not to be found in the path.
12357 if test "x$as_myself" = x; then
12358 as_myself=$0
12359 fi
12360 if test ! -f "$as_myself"; then
12361 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12362echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12363 { (exit 1); exit 1; }; }
12364 fi
12365 case $CONFIG_SHELL in
12366 '')
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for as_base in sh bash ksh sh5; do
12373 case $as_dir in
12374 /*)
12375 if ("$as_dir/$as_base" -c '
b30fcfae 12376 as_lineno_1=$LINENO
12377 as_lineno_2=$LINENO
5084f823 12378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
b30fcfae 12379 test "x$as_lineno_1" != "x$as_lineno_2" &&
5084f823 12380 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12381 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12382 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12383 CONFIG_SHELL=$as_dir/$as_base
12384 export CONFIG_SHELL
12385 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12386 fi;;
12387 esac
12388 done
12389done
12390;;
12391 esac
b30fcfae 12392
12393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12394 # uniformly replaced by the line number. The first 'sed' inserts a
5084f823 12395 # line-number line before each line; the second 'sed' does the real
12396 # work. The second script uses 'N' to pair each line-number line
12397 # with the numbered line, and appends trailing '-' during
12398 # substitution so that $LINENO is not a special case at line end.
b30fcfae 12399 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5084f823 12400 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12401 sed '=' <$as_myself |
b30fcfae 12402 sed '
12403 N
5084f823 12404 s,$,-,
12405 : loop
12406 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
b30fcfae 12407 t loop
5084f823 12408 s,-$,,
12409 s,^['$as_cr_digits']*\n,,
b30fcfae 12410 ' >$as_me.lineno &&
5084f823 12411 chmod +x $as_me.lineno ||
12412 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12413echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
b30fcfae 12414 { (exit 1); exit 1; }; }
12415
12416 # Don't try to exec as it changes $[0], causing all sort of problems
12417 # (the dirname of $[0] is not the place where we might find the
5084f823 12418 # original and so on. Autoconf is especially sensible to this).
12419 . ./$as_me.lineno
b30fcfae 12420 # Exit status is that of the last command.
12421 exit
12422}
12423
12424
5084f823 12425case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12426 *c*,-n*) ECHO_N= ECHO_C='
12427' ECHO_T=' ' ;;
12428 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12429 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
b30fcfae 12430esac
12431
5084f823 12432if expr a : '\(a\)' >/dev/null 2>&1; then
b30fcfae 12433 as_expr=expr
12434else
12435 as_expr=false
12436fi
12437
12438rm -f conf$$ conf$$.exe conf$$.file
12439echo >conf$$.file
12440if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 12441 # We could just check for DJGPP; but this test a) works b) is more generic
12442 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12443 if test -f conf$$.exe; then
12444 # Don't use ln at all; we don't have any links
b30fcfae 12445 as_ln_s='cp -p'
5084f823 12446 else
12447 as_ln_s='ln -s'
12448 fi
b30fcfae 12449elif ln conf$$.file conf$$ 2>/dev/null; then
12450 as_ln_s=ln
12451else
12452 as_ln_s='cp -p'
12453fi
5084f823 12454rm -f conf$$ conf$$.exe conf$$.file
b30fcfae 12455
12456if mkdir -p . 2>/dev/null; then
12457 as_mkdir_p=:
12458else
12459 test -d ./-p && rmdir ./-p
12460 as_mkdir_p=false
12461fi
12462
5084f823 12463as_executable_p="test -f"
b30fcfae 12464
12465# Sed expression to map a string onto a valid CPP name.
12466as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12467
12468# Sed expression to map a string onto a valid variable name.
12469as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12470
12471
5084f823 12472# IFS
12473# We need space, tab and new line, in precisely that order.
12474as_nl='
12475'
12476IFS=" $as_nl"
12477
12478# CDPATH.
12479$as_unset CDPATH
12480
b30fcfae 12481exec 6>&1
12482
5084f823 12483# Open the log real soon, to keep \$[0] and so on meaningful, and to
b30fcfae 12484# report actual input values of CONFIG_FILES etc. instead of their
5084f823 12485# values after options handling. Logging --version etc. is OK.
12486exec 5>>config.log
12487{
12488 echo
12489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12490## Running $as_me. ##
12491_ASBOX
12492} >&5
12493cat >&5 <<_CSEOF
12494
b30fcfae 12495This file was extended by $as_me, which was
5084f823 12496generated by GNU Autoconf 2.59. Invocation command line was
b30fcfae 12497
12498 CONFIG_FILES = $CONFIG_FILES
12499 CONFIG_HEADERS = $CONFIG_HEADERS
12500 CONFIG_LINKS = $CONFIG_LINKS
12501 CONFIG_COMMANDS = $CONFIG_COMMANDS
12502 $ $0 $@
12503
5084f823 12504_CSEOF
12505echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12506echo >&5
b30fcfae 12507_ACEOF
12508
12509# Files that config.status was made for.
5084f823 12510if test -n "$ac_config_files"; then
12511 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12512fi
b30fcfae 12513
5084f823 12514if test -n "$ac_config_headers"; then
12515 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12516fi
12517
12518if test -n "$ac_config_links"; then
12519 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12520fi
12521
12522if test -n "$ac_config_commands"; then
12523 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12524fi
b30fcfae 12525
12526cat >>$CONFIG_STATUS <<\_ACEOF
5084f823 12527
b30fcfae 12528ac_cs_usage="\
12529\`$as_me' instantiates files from templates according to the
12530current configuration.
12531
12532Usage: $0 [OPTIONS] [FILE]...
12533
12534 -h, --help print this help, then exit
5084f823 12535 -V, --version print version number, then exit
b30fcfae 12536 -q, --quiet do not print progress messages
12537 -d, --debug don't remove temporary files
12538 --recheck update $as_me by reconfiguring in the same conditions
12539 --file=FILE[:TEMPLATE]
12540 instantiate the configuration file FILE
12541
12542Configuration files:
12543$config_files
12544
12545Report bugs to <bug-autoconf@gnu.org>."
570af75a 12546_ACEOF
5084f823 12547
b30fcfae 12548cat >>$CONFIG_STATUS <<_ACEOF
12549ac_cs_version="\\
12550config.status
5084f823 12551configured by $0, generated by GNU Autoconf 2.59,
12552 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
b30fcfae 12553
5084f823 12554Copyright (C) 2003 Free Software Foundation, Inc.
b30fcfae 12555This config.status script is free software; the Free Software Foundation
12556gives unlimited permission to copy, distribute and modify it."
5084f823 12557srcdir=$srcdir
12558INSTALL="$INSTALL"
b30fcfae 12559_ACEOF
12560
12561cat >>$CONFIG_STATUS <<\_ACEOF
12562# If no file are specified by the user, then we need to provide default
12563# value. By we need to know if files were specified by the user.
12564ac_need_defaults=:
12565while test $# != 0
b1660f25 12566do
b30fcfae 12567 case $1 in
12568 --*=*)
5084f823 12569 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12570 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
b30fcfae 12571 ac_shift=:
12572 ;;
5084f823 12573 -*)
b30fcfae 12574 ac_option=$1
12575 ac_optarg=$2
12576 ac_shift=shift
12577 ;;
5084f823 12578 *) # This is not an option, so the user has probably given explicit
12579 # arguments.
12580 ac_option=$1
12581 ac_need_defaults=false;;
b30fcfae 12582 esac
12583
12584 case $ac_option in
12585 # Handling of the options.
5084f823 12586_ACEOF
12587cat >>$CONFIG_STATUS <<\_ACEOF
71ab34df 12588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 12589 ac_cs_recheck=: ;;
5084f823 12590 --version | --vers* | -V )
12591 echo "$ac_cs_version"; exit 0 ;;
12592 --he | --h)
12593 # Conflict between --help and --header
12594 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12595Try \`$0 --help' for more information." >&5
12596echo "$as_me: error: ambiguous option: $1
12597Try \`$0 --help' for more information." >&2;}
12598 { (exit 1); exit 1; }; };;
12599 --help | --hel | -h )
12600 echo "$ac_cs_usage"; exit 0 ;;
12601 --debug | --d* | -d )
b30fcfae 12602 debug=: ;;
12603 --file | --fil | --fi | --f )
12604 $ac_shift
12605 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12606 ac_need_defaults=false;;
5084f823 12607 --header | --heade | --head | --hea )
12608 $ac_shift
12609 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12610 ac_need_defaults=false;;
b30fcfae 12611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12613 ac_cs_silent=: ;;
12614
12615 # This is an error.
5084f823 12616 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12617Try \`$0 --help' for more information." >&5
12618echo "$as_me: error: unrecognized option: $1
12619Try \`$0 --help' for more information." >&2;}
b30fcfae 12620 { (exit 1); exit 1; }; } ;;
12621
5084f823 12622 *) ac_config_targets="$ac_config_targets $1" ;;
b30fcfae 12623
a83ffacf 12624 esac
b30fcfae 12625 shift
a83ffacf 12626done
12627
b30fcfae 12628ac_configure_extra_args=
a83ffacf 12629
b30fcfae 12630if $ac_cs_silent; then
12631 exec 6>/dev/null
12632 ac_configure_extra_args="$ac_configure_extra_args --silent"
12633fi
a83ffacf 12634
b30fcfae 12635_ACEOF
12636cat >>$CONFIG_STATUS <<_ACEOF
12637if \$ac_cs_recheck; then
5084f823 12638 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12639 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b30fcfae 12640fi
12641
12642_ACEOF
12643
b30fcfae 12644
570af75a 12645
5084f823 12646
12647
12648cat >>$CONFIG_STATUS <<\_ACEOF
b30fcfae 12649for ac_config_target in $ac_config_targets
12650do
5084f823 12651 case "$ac_config_target" in
12652 # Handling of arguments.
12653 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b30fcfae 12654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12655echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12656 { (exit 1); exit 1; }; };;
12657 esac
12658done
12659
12660# If the user did not use the arguments to specify the items to instantiate,
12661# then the envvar interface is used. Set only those that are not.
12662# We use the long form for the default assignment because of an extremely
12663# bizarre bug on SunOS 4.1.3.
12664if $ac_need_defaults; then
12665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12666fi
12667
12668# Have a temporary directory for convenience. Make it in the build tree
5084f823 12669# simply because there is no reason to put it here, and in addition,
b30fcfae 12670# creating and moving files from /tmp can sometimes cause problems.
5084f823 12671# Create a temporary directory, and hook for its removal unless debugging.
b30fcfae 12672$debug ||
12673{
5084f823 12674 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
b30fcfae 12675 trap '{ (exit 1); exit 1; }' 1 2 13 15
12676}
5084f823 12677
b30fcfae 12678# Create a (secure) tmp directory for tmp files.
12679
12680{
5084f823 12681 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
b30fcfae 12682 test -n "$tmp" && test -d "$tmp"
12683} ||
12684{
5084f823 12685 tmp=./confstat$$-$RANDOM
12686 (umask 077 && mkdir $tmp)
b30fcfae 12687} ||
12688{
12689 echo "$me: cannot create a temporary directory in ." >&2
12690 { (exit 1); exit 1; }
12691}
12692
5084f823 12693_ACEOF
12694
12695cat >>$CONFIG_STATUS <<_ACEOF
12696
b30fcfae 12697#
5084f823 12698# CONFIG_FILES section.
b30fcfae 12699#
12700
12701# No need to generate the scripts if there are no CONFIG_FILES.
12702# This happens for instance when ./config.status config.h
5084f823 12703if test -n "\$CONFIG_FILES"; then
12704 # Protect against being on the right side of a sed subst in config.status.
12705 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12706 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12707s,@SHELL@,$SHELL,;t t
12708s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12709s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12710s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12711s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12712s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12713s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12714s,@exec_prefix@,$exec_prefix,;t t
12715s,@prefix@,$prefix,;t t
12716s,@program_transform_name@,$program_transform_name,;t t
12717s,@bindir@,$bindir,;t t
12718s,@sbindir@,$sbindir,;t t
12719s,@libexecdir@,$libexecdir,;t t
12720s,@datadir@,$datadir,;t t
12721s,@sysconfdir@,$sysconfdir,;t t
12722s,@sharedstatedir@,$sharedstatedir,;t t
12723s,@localstatedir@,$localstatedir,;t t
12724s,@libdir@,$libdir,;t t
12725s,@includedir@,$includedir,;t t
12726s,@oldincludedir@,$oldincludedir,;t t
12727s,@infodir@,$infodir,;t t
12728s,@mandir@,$mandir,;t t
12729s,@build_alias@,$build_alias,;t t
12730s,@host_alias@,$host_alias,;t t
12731s,@target_alias@,$target_alias,;t t
12732s,@DEFS@,$DEFS,;t t
12733s,@ECHO_C@,$ECHO_C,;t t
12734s,@ECHO_N@,$ECHO_N,;t t
12735s,@ECHO_T@,$ECHO_T,;t t
12736s,@LIBS@,$LIBS,;t t
12737s,@build@,$build,;t t
12738s,@build_cpu@,$build_cpu,;t t
12739s,@build_vendor@,$build_vendor,;t t
12740s,@build_os@,$build_os,;t t
12741s,@build_noncanonical@,$build_noncanonical,;t t
12742s,@host_noncanonical@,$host_noncanonical,;t t
12743s,@target_noncanonical@,$target_noncanonical,;t t
12744s,@host@,$host,;t t
12745s,@host_cpu@,$host_cpu,;t t
12746s,@host_vendor@,$host_vendor,;t t
12747s,@host_os@,$host_os,;t t
12748s,@target@,$target,;t t
12749s,@target_cpu@,$target_cpu,;t t
12750s,@target_vendor@,$target_vendor,;t t
12751s,@target_os@,$target_os,;t t
12752s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12753s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12754s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12755s,@LN@,$LN,;t t
12756s,@LN_S@,$LN_S,;t t
12757s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12758s,@build_libsubdir@,$build_libsubdir,;t t
12759s,@build_subdir@,$build_subdir,;t t
12760s,@host_subdir@,$host_subdir,;t t
12761s,@target_subdir@,$target_subdir,;t t
12762s,@CC@,$CC,;t t
12763s,@CFLAGS@,$CFLAGS,;t t
12764s,@LDFLAGS@,$LDFLAGS,;t t
12765s,@CPPFLAGS@,$CPPFLAGS,;t t
12766s,@ac_ct_CC@,$ac_ct_CC,;t t
12767s,@EXEEXT@,$EXEEXT,;t t
12768s,@OBJEXT@,$OBJEXT,;t t
12769s,@CXX@,$CXX,;t t
12770s,@CXXFLAGS@,$CXXFLAGS,;t t
12771s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12772s,@GNATBIND@,$GNATBIND,;t t
12773s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12774s,@GNATMAKE@,$GNATMAKE,;t t
12775s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12776s,@do_compare@,$do_compare,;t t
12777s,@gmplibs@,$gmplibs,;t t
12778s,@gmpinc@,$gmpinc,;t t
12779s,@stage1_languages@,$stage1_languages,;t t
12780s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
5f1f2de5 12781s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
5084f823 12782s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12783s,@tooldir@,$tooldir,;t t
12784s,@build_tooldir@,$build_tooldir,;t t
12785s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12786s,@GDB_TK@,$GDB_TK,;t t
12787s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12788s,@build_configargs@,$build_configargs,;t t
12789s,@build_configdirs@,$build_configdirs,;t t
12790s,@host_configargs@,$host_configargs,;t t
12791s,@configdirs@,$configdirs,;t t
12792s,@target_configargs@,$target_configargs,;t t
12793s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12794s,@config_shell@,$config_shell,;t t
12795s,@YACC@,$YACC,;t t
12796s,@BISON@,$BISON,;t t
12797s,@M4@,$M4,;t t
12798s,@LEX@,$LEX,;t t
12799s,@FLEX@,$FLEX,;t t
12800s,@MAKEINFO@,$MAKEINFO,;t t
12801s,@EXPECT@,$EXPECT,;t t
12802s,@RUNTEST@,$RUNTEST,;t t
12803s,@AR@,$AR,;t t
12804s,@AS@,$AS,;t t
12805s,@DLLTOOL@,$DLLTOOL,;t t
12806s,@LD@,$LD,;t t
12807s,@LIPO@,$LIPO,;t t
12808s,@NM@,$NM,;t t
12809s,@RANLIB@,$RANLIB,;t t
12810s,@STRIP@,$STRIP,;t t
12811s,@WINDRES@,$WINDRES,;t t
75d6a0a9 12812s,@WINDMC@,$WINDMC,;t t
5084f823 12813s,@OBJCOPY@,$OBJCOPY,;t t
12814s,@OBJDUMP@,$OBJDUMP,;t t
12815s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12816s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12817s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12818s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12819s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12820s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12821s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12822s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12823s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12824s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12825s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12826s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12827s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12828s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12829s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12830s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
75d6a0a9 12831s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
5084f823 12832s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12833s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12834s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12835s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12836s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12837s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12838s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12839s,@MAINT@,$MAINT,;t t
12840s,@stage1_cflags@,$stage1_cflags,;t t
12841s,@stage1_checking@,$stage1_checking,;t t
12842s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12843s,@datarootdir@,$datarootdir,;t t
12844s,@docdir@,$docdir,;t t
12845s,@pdfdir@,$pdfdir,;t t
12846s,@htmldir@,$htmldir,;t t
12847s,@LIBOBJS@,$LIBOBJS,;t t
12848s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12849/@serialization_dependencies@/r $serialization_dependencies
12850s,@serialization_dependencies@,,;t t
12851/@host_makefile_frag@/r $host_makefile_frag
12852s,@host_makefile_frag@,,;t t
12853/@target_makefile_frag@/r $target_makefile_frag
12854s,@target_makefile_frag@,,;t t
12855/@alphaieee_frag@/r $alphaieee_frag
12856s,@alphaieee_frag@,,;t t
12857/@ospace_frag@/r $ospace_frag
12858s,@ospace_frag@,,;t t
12859CEOF
a8298541 12860
b30fcfae 12861_ACEOF
12862
5084f823 12863 cat >>$CONFIG_STATUS <<\_ACEOF
12864 # Split the substitutions into bite-sized pieces for seds with
12865 # small command number limits, like on Digital OSF/1 and HP-UX.
12866 ac_max_sed_lines=48
12867 ac_sed_frag=1 # Number of current file.
12868 ac_beg=1 # First line for current file.
12869 ac_end=$ac_max_sed_lines # Line after last line for current file.
12870 ac_more_lines=:
12871 ac_sed_cmds=
12872 while $ac_more_lines; do
12873 if test $ac_beg -gt 1; then
12874 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12875 else
12876 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12877 fi
12878 if test ! -s $tmp/subs.frag; then
12879 ac_more_lines=false
12880 else
12881 # The purpose of the label and of the branching condition is to
12882 # speed up the sed processing (if there are no `@' at all, there
12883 # is no need to browse any of the substitutions).
12884 # These are the two extra sed commands mentioned above.
12885 (echo ':t
12886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12887 if test -z "$ac_sed_cmds"; then
12888 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12889 else
12890 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12891 fi
12892 ac_sed_frag=`expr $ac_sed_frag + 1`
12893 ac_beg=$ac_end
12894 ac_end=`expr $ac_end + $ac_max_sed_lines`
12895 fi
12896 done
12897 if test -z "$ac_sed_cmds"; then
12898 ac_sed_cmds=cat
570af75a 12899 fi
5084f823 12900fi # test -n "$CONFIG_FILES"
570af75a 12901
570af75a 12902_ACEOF
b30fcfae 12903cat >>$CONFIG_STATUS <<\_ACEOF
5084f823 12904for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12905 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12906 case $ac_file in
12907 - | *:- | *:-:* ) # input from stdin
12908 cat >$tmp/stdin
12909 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12911 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12912 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12913 * ) ac_file_in=$ac_file.in ;;
570af75a 12914 esac
12915
5084f823 12916 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12917 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
b30fcfae 12918$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12919 X"$ac_file" : 'X\(//\)[^/]' \| \
12920 X"$ac_file" : 'X\(//\)$' \| \
5084f823 12921 X"$ac_file" : 'X\(/\)' \| \
12922 . : '\(.\)' 2>/dev/null ||
b30fcfae 12923echo X"$ac_file" |
5084f823 12924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12926 /^X\(\/\/\)$/{ s//\1/; q; }
12927 /^X\(\/\).*/{ s//\1/; q; }
12928 s/.*/./; q'`
12929 { if $as_mkdir_p; then
12930 mkdir -p "$ac_dir"
12931 else
12932 as_dir="$ac_dir"
b30fcfae 12933 as_dirs=
5084f823 12934 while test ! -d "$as_dir"; do
12935 as_dirs="$as_dir $as_dirs"
12936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
b30fcfae 12937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12938 X"$as_dir" : 'X\(//\)[^/]' \| \
12939 X"$as_dir" : 'X\(//\)$' \| \
5084f823 12940 X"$as_dir" : 'X\(/\)' \| \
12941 . : '\(.\)' 2>/dev/null ||
b30fcfae 12942echo X"$as_dir" |
5084f823 12943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12945 /^X\(\/\/\)$/{ s//\1/; q; }
12946 /^X\(\/\).*/{ s//\1/; q; }
12947 s/.*/./; q'`
b30fcfae 12948 done
5084f823 12949 test ! -n "$as_dirs" || mkdir $as_dirs
12950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12951echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
b30fcfae 12952 { (exit 1); exit 1; }; }; }
5084f823 12953
b30fcfae 12954 ac_builddir=.
a83ffacf 12955
5084f823 12956if test "$ac_dir" != .; then
b30fcfae 12957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5084f823 12958 # A "../" for each directory in $ac_dir_suffix.
12959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12960else
12961 ac_dir_suffix= ac_top_builddir=
12962fi
b30fcfae 12963
12964case $srcdir in
5084f823 12965 .) # No --srcdir option. We are building in place.
b30fcfae 12966 ac_srcdir=.
5084f823 12967 if test -z "$ac_top_builddir"; then
12968 ac_top_srcdir=.
12969 else
12970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12971 fi ;;
12972 [\\/]* | ?:[\\/]* ) # Absolute path.
b30fcfae 12973 ac_srcdir=$srcdir$ac_dir_suffix;
5084f823 12974 ac_top_srcdir=$srcdir ;;
12975 *) # Relative path.
12976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
b30fcfae 12978esac
b1660f25 12979
5084f823 12980# Do not use `cd foo && pwd` to compute absolute paths, because
12981# the directories may not exist.
12982case `pwd` in
12983.) ac_abs_builddir="$ac_dir";;
12984*)
12985 case "$ac_dir" in
12986 .) ac_abs_builddir=`pwd`;;
12987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12989 esac;;
12990esac
12991case $ac_abs_builddir in
12992.) ac_abs_top_builddir=${ac_top_builddir}.;;
12993*)
12994 case ${ac_top_builddir}. in
12995 .) ac_abs_top_builddir=$ac_abs_builddir;;
12996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12998 esac;;
12999esac
13000case $ac_abs_builddir in
13001.) ac_abs_srcdir=$ac_srcdir;;
13002*)
13003 case $ac_srcdir in
13004 .) ac_abs_srcdir=$ac_abs_builddir;;
13005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13007 esac;;
13008esac
13009case $ac_abs_builddir in
13010.) ac_abs_top_srcdir=$ac_top_srcdir;;
13011*)
13012 case $ac_top_srcdir in
13013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13016 esac;;
13017esac
a83ffacf 13018
b30fcfae 13019
13020 case $INSTALL in
13021 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5084f823 13022 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
71ab34df 13023 esac
570af75a 13024
5084f823 13025 if test x"$ac_file" != x-; then
13026 { echo "$as_me:$LINENO: creating $ac_file" >&5
13027echo "$as_me: creating $ac_file" >&6;}
13028 rm -f "$ac_file"
13029 fi
13030 # Let's still pretend it is `configure' which instantiates (i.e., don't
13031 # use $as_me), people would be surprised to read:
13032 # /* config.h. Generated by config.status. */
13033 if test x"$ac_file" = x-; then
13034 configure_input=
13035 else
13036 configure_input="$ac_file. "
13037 fi
13038 configure_input=$configure_input"Generated from `echo $ac_file_in |
13039 sed 's,.*/,,'` by configure."
13040
13041 # First look for the input files in the build tree, otherwise in the
13042 # src tree.
13043 ac_file_inputs=`IFS=:
13044 for f in $ac_file_in; do
13045 case $f in
13046 -) echo $tmp/stdin ;;
13047 [\\/$]*)
13048 # Absolute (can't be DOS-style, as IFS=:)
13049 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13050echo "$as_me: error: cannot find input file: $f" >&2;}
13051 { (exit 1); exit 1; }; }
13052 echo "$f";;
13053 *) # Relative
13054 if test -f "$f"; then
13055 # Build tree
13056 echo "$f"
13057 elif test -f "$srcdir/$f"; then
13058 # Source tree
13059 echo "$srcdir/$f"
13060 else
13061 # /dev/null tree
13062 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13063echo "$as_me: error: cannot find input file: $f" >&2;}
13064 { (exit 1); exit 1; }; }
13065 fi;;
13066 esac
13067 done` || { (exit 1); exit 1; }
570af75a 13068_ACEOF
b30fcfae 13069cat >>$CONFIG_STATUS <<_ACEOF
13070 sed "$ac_vpsub
13071$extrasub
13072_ACEOF
13073cat >>$CONFIG_STATUS <<\_ACEOF
13074:t
13075/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5084f823 13076s,@configure_input@,$configure_input,;t t
13077s,@srcdir@,$ac_srcdir,;t t
13078s,@abs_srcdir@,$ac_abs_srcdir,;t t
13079s,@top_srcdir@,$ac_top_srcdir,;t t
13080s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13081s,@builddir@,$ac_builddir,;t t
13082s,@abs_builddir@,$ac_abs_builddir,;t t
13083s,@top_builddir@,$ac_top_builddir,;t t
13084s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13085s,@INSTALL@,$ac_INSTALL,;t t
13086" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13087 rm -f $tmp/stdin
13088 if test x"$ac_file" != x-; then
13089 mv $tmp/out $ac_file
13090 else
13091 cat $tmp/out
13092 rm -f $tmp/out
13093 fi
570af75a 13094
5084f823 13095done
13096_ACEOF
570af75a 13097
5084f823 13098cat >>$CONFIG_STATUS <<\_ACEOF
a8298541 13099
b30fcfae 13100{ (exit 0); exit 0; }
13101_ACEOF
71ab34df 13102chmod +x $CONFIG_STATUS
b30fcfae 13103ac_clean_files=$ac_clean_files_save
13104
13105
13106# configure is writing to config.log, and then calls config.status.
13107# config.status does its own redirection, appending to config.log.
13108# Unfortunately, on DOS this fails, as config.log is still kept open
13109# by configure, so config.status won't be able to write to it; its
13110# output is simply discarded. So we exec the FD to /dev/null,
13111# effectively closing config.log, so it can be properly (re)opened and
13112# appended to by config.status. When coming back to configure, we
13113# need to make the FD available again.
13114if test "$no_create" != yes; then
13115 ac_cs_success=:
13116 ac_config_status_args=
13117 test "$silent" = yes &&
13118 ac_config_status_args="$ac_config_status_args --quiet"
13119 exec 5>/dev/null
13120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13121 exec 5>>config.log
13122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13123 # would make configure fail if this is the last instruction.
13124 $ac_cs_success || { (exit 1); exit 1; }
13125fi
a8298541 13126